From 0c73337a9a8f5a7b6a9da53e978d9f4e87b51d22 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 14 Jul 2026 10:24:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=87=BA=E5=85=A5=E5=BA=93=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E9=A1=B5=E5=8D=95=E4=BB=B7/=E9=87=91=E9=A2=9D/?= =?UTF-8?q?=E5=90=88=E8=AE=A1=E6=94=B9=E7=94=A8=E5=90=8E=E7=AB=AF=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=9A=84unit=5Fprice=E3=80=81price=E3=80=81total=5Fpr?= =?UTF-8?q?ice,=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF=E6=B5=AE=E7=82=B9?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E8=AF=AF=E5=B7=AE;=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=80=BB=E9=87=91=E9=A2=9D=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E4=B8=A4=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- src/views/inm/helpso.vue | 2 +- src/views/inm/mioitem.vue | 18 ++++-------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/views/inm/helpso.vue b/src/views/inm/helpso.vue index 8c7ddb97..9660d897 100644 --- a/src/views/inm/helpso.vue +++ b/src/views/inm/helpso.vue @@ -214,7 +214,7 @@ export default { that.$API.inm.warehouse.batch.req({ page: 0, count__gte: 1, material__type__in: "40" }).then((res) => { res.forEach(item => { let data0 = []; - let total = Number(item.material_.unit_price)*Number(item.count); + let total = Math.round(Number(item.material_.unit_price)*Number(item.count)*100)/100; data0.push(item.update_time); data0.push(item.material_.number); data0.push(item.material_.name); diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index 0e51f43f..a7a7c71b 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -104,15 +104,9 @@ {{scope.row.count}} - - + - @@ -721,13 +715,9 @@ 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; + // 直接用后端汇总的单据总金额 + const total = this.mioObj ? this.mioObj.total_price : null; + sums[index] = total !== null && total !== undefined ? total : ''; } });