From fd9b34c558fb707a46011777047eb8c5bf18607c Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 29 Apr 2026 15:29:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A6=85=E9=81=93381=E8=BE=85=E6=96=99?= =?UTF-8?q?=E5=BA=93-=E5=9C=A8=E5=87=BA=E5=85=A5=E5=BA=93=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=B8=AD=E5=B8=A6=E5=87=BA=E5=8D=95=E4=BB=B7=E4=B8=8E?= =?UTF-8?q?=E6=AD=A4=E6=AC=A1=E5=87=BA=E5=85=A5=E5=BA=93=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=9A=84=E6=80=BB=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitem.vue | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index 20f9fb5f..0e51f43f 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -104,6 +104,16 @@ {{scope.row.count}} + + + + + + @@ -679,12 +689,12 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => { if((index == 6||index == 7||index == 8||index == 9)&&column.label=='不合格数量'){ propert = 'count_notok'; } - // if((index == 6||index == 7||index == 8)&&column.label=='检验'){ - // propert = 'count_tested'; - // } if(index == 6 &&column.label == '发出数量'){ propert = 'count_send'; } + if(index == 7 &&column.label == '金额'){ + propert = 'material_.unit_price'; + } if (propert!=='') { const values = data.map((item) => Number(item[propert]) @@ -710,6 +720,16 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => { } } } + if(index==7&&this.cate == 'helpso'&&this.project_code=='gx'){ + let sumsss = 0; + data.forEach((item)=>{ + if(item.count&&item.material_.unit_price&&item.material_.unit_price!==null){ + sumsss += Number(item.count)*Number(item.material_.unit_price); + } + }) + sums[index] =sumsss; + } + }); return sums; },