-
-
+
+
+
+
+
-
-
+
+
+
+
-
-
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+ 至
+
+
+
搜索
重置
添加采购
+ >新增采购
@@ -58,6 +69,7 @@
:data="purchaseList"
border
:default-sort="defaultSort">
+
@@ -66,10 +78,10 @@
-
待审核
-
已审核入库
-
已作废
-
已审核
+
待审核
+
已审核入库
+
已作废
+
已审核
@@ -96,9 +108,21 @@
{{ scope.row.status == 'qrts'?'查看单据':'处理单据' }}
+ >油品入库
+
采购审核
+
查看详情
@@ -127,6 +151,7 @@
import {getPurchaseApi, getPurchaseOrderApi} from "@/api/oilConfig/oilPurchase";
import {getSuppliersListApi2} from "@/api/oilConfig/oilSuppliers";
import {getName,parseTime} from "../../../utils/fuint";
+import {getOilNameListApi} from "@/api/oilPrice";
export default {
@@ -156,6 +181,9 @@ export default {
page:null,
pageSize:null
},
+ selectOilTypeByPrice:[],
+ beginTime: "",
+ endTime: "",
// 遮罩层
loading: false,
// 默认排序
@@ -172,12 +200,25 @@ export default {
async created() {
await this.getList();
this.selectSuppliers();
+ this.getOilNameList();
},
methods: {
+ getOilNameList() {
+ var this_ = this
+ getOilNameListApi().then(response => {
+ var list = response.data
+ this_.selectOilTypeByPrice = list
+ });
+ },
// 获取列表
getList(){
this.loading = true;
- getPurchaseApi(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
+ let dateRange = []
+ if (this.beginTime && this.endTime) {
+ dateRange.push(this.beginTime.toLocaleDateString())
+ dateRange.push(this.endTime.toLocaleDateString())
+ }
+ getPurchaseApi(this.addDateRange(this.queryParams, dateRange)).then(response => {
this.purchaseList = response.data.records;
console.log("this.tankList",this.purchaseList)
this.total = response.data.total;
@@ -221,6 +262,8 @@ export default {
page:null,
pageSize:null
};
+ this.beginTime = ''
+ this.endTime = ''
this.getList();
},
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/entity/OilNumber.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/entity/OilNumber.java
index 6f568d036..497d8c4dc 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/entity/OilNumber.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/entity/OilNumber.java
@@ -45,6 +45,8 @@ public class OilNumber extends BaseEntity {
public String amplitudeOfChange; //涨幅
@TableField(exist = false)
public String oilNames;
+ @TableField(exist = false)
+ public String oilNameId;
/**
* 创建人
*/
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/xml/OilNumberMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/xml/OilNumberMapper.xml
index 340115178..7aad0d538 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/xml/OilNumberMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/xml/OilNumberMapper.xml
@@ -126,7 +126,8 @@