From 5465aec2c90d8a03d61e0024df2bdc367da5f49a Mon Sep 17 00:00:00 2001 From: Yangwl <1726150332@qq.com> Date: Mon, 1 Jul 2024 17:24:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=88=E5=BA=A6=E6=8A=A5=E8=A1=A8=E3=80=81?= =?UTF-8?q?=E8=AE=A1=E4=BB=B6=E5=B7=A5=E8=B5=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/monthProductionSut/index.vue | 350 +++++++++++++-------- src/views/mes/unitpriceReport/index.vue | 84 +++-- 2 files changed, 270 insertions(+), 164 deletions(-) diff --git a/src/views/mes/monthProductionSut/index.vue b/src/views/mes/monthProductionSut/index.vue index c853e32..fdfc1de 100644 --- a/src/views/mes/monthProductionSut/index.vue +++ b/src/views/mes/monthProductionSut/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/mes/unitpriceReport/index.vue b/src/views/mes/unitpriceReport/index.vue index 0fa0322..b025e1c 100644 --- a/src/views/mes/unitpriceReport/index.vue +++ b/src/views/mes/unitpriceReport/index.vue @@ -42,7 +42,25 @@ @keyup.enter.native="handleQuery" /> - + + + + + + 搜索 重置 @@ -77,40 +95,43 @@ + + - - - - - - - + + + + + - + - - - - + + + + + + + + + + + + + @@ -217,6 +238,8 @@ export default { // 是否显示弹出层 open: false, value: '', + // 日期范围 + dateRange: [], // 查询参数 queryParams: { pageNum: 1, @@ -262,7 +285,7 @@ export default { /** 查询unitPrice列表 */ getList() { this.loading = true; - listUnitPriceReport(this.queryParams).then(response => { + listUnitPriceReport(this.addDateRange(this.queryParams, this.dateRange)).then(response => { this.unitPriceList = response.rows; this.total = response.total; this.loading = false; @@ -328,11 +351,6 @@ export default { getReport(picId).then(response => { this.form = response.data.MesUnitpriceReport; this.open = true; - if (response.data.attr2 === null || response.data.attr2 === undefined) { - this.form.attr2 = row.result; - } else { - this.form.attr2 = response.data.attr2; - } this.MesUnitPriceInfo=response.data.MesUnitPriceInfo; }); },