From 9a727978adb8e8de1eebdf22ea2ee46ace83a765 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 12 Nov 2025 15:08:39 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat:=E4=BA=BA=E5=91=98=E5=B7=A5=E6=97=B6?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1-=E5=86=B7=E5=8A=A0=E5=B7=A5=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1,=E6=B7=BB=E5=8A=A0=E7=AC=AC=E4=B8=80=E8=A1=8C?= =?UTF-8?q?=E7=B3=BB=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/bxerp/workerTimes.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/statistics/bxerp/workerTimes.vue b/src/views/statistics/bxerp/workerTimes.vue index 007d6684..40eec856 100644 --- a/src/views/statistics/bxerp/workerTimes.vue +++ b/src/views/statistics/bxerp/workerTimes.vue @@ -49,7 +49,8 @@ @@ -85,17 +86,21 @@ export default { getData(){ let that = this; that.mgruops = []; + that.tableData = []; let params = {}; params.query = that.query; that.$API.bi.dataset.exec.req('lineDay_p', params).then((res) => { let data = res.data2.ds0; that.lists = []; + let coefficient = []; data.forEach(item=>{ let obj = JSON.parse(item.工段物料生产数); for(let key in obj){ + if(coefficient.indexOf(key)<0){ + coefficient.push(key); + } let mgroup = key.split('_')[0]; let pname = key.split('_')[1]; - if(that.mgruops.indexOf(mgroup)<0){ that.mgruops.push(mgroup); that.lists.push({text:mgroup,value:[pname]}); @@ -109,6 +114,11 @@ export default { item[pname]= obj[key]; } }) + let item0 = {日期:'系数',操作人:'',indexs:0}; + coefficient.forEach(cof=>{ + item0[cof]= 1; + }) + data.unshift(item0); that.tableData = data; }); }, From a7b874dcf48920f31b75b9f9ede3f87274a19407 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 12 Nov 2025 15:50:13 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix:=E4=BA=BA=E5=91=98=E5=B7=A5=E6=97=B6?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1-=E5=86=B7=E5=8A=A0=E5=B7=A5=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=8E=BB=E9=99=A4index=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/bxerp/workerTimes.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/statistics/bxerp/workerTimes.vue b/src/views/statistics/bxerp/workerTimes.vue index 40eec856..f639fc0b 100644 --- a/src/views/statistics/bxerp/workerTimes.vue +++ b/src/views/statistics/bxerp/workerTimes.vue @@ -41,12 +41,11 @@ id="exportDiv" stripe > - - + - + - +