From 42b9df78a81c44f22235acc3a1cff722778485f5 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Fri, 25 Oct 2024 16:41:51 +0800 Subject: [PATCH] 10.25 --- .../src/views/oilConfig/oilPurchase/list.vue | 97 +++++++++++++------ .../entity/OilNumber.java | 2 + .../mapper/xml/OilNumberMapper.xml | 3 +- .../mapper/xml/OilPurchaseMapper.xml | 12 +++ .../vo/OilPurchaseVO.java | 1 + 5 files changed, 87 insertions(+), 28 deletions(-) diff --git a/fuintAdmin/src/views/oilConfig/oilPurchase/list.vue b/fuintAdmin/src/views/oilConfig/oilPurchase/list.vue index e53b75670..00a92cccd 100644 --- a/fuintAdmin/src/views/oilConfig/oilPurchase/list.vue +++ b/fuintAdmin/src/views/oilConfig/oilPurchase/list.vue @@ -2,9 +2,11 @@
- - + + + + + - - + + + + - - - + - - - - - - - - - + + + + 至 + + + 搜索 重置 添加采购 + >新增采购 @@ -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 @@