From 29b9638840f718016788aa394033dbd932f5b167 Mon Sep 17 00:00:00 2001 From: jinna Date: Thu, 13 Feb 2025 10:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E6=80=BB=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/workOrderDetail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/components/workOrderDetail.vue b/src/views/components/workOrderDetail.vue index 0f261f0..f548913 100644 --- a/src/views/components/workOrderDetail.vue +++ b/src/views/components/workOrderDetail.vue @@ -668,7 +668,7 @@ export default { this.getDeviceList(res.data.data.reportUnit) this.repairForm.approveResult = res.data.data.approveResult != -1 ? res.data.data.approveResult : '' // this.totalPrice = res.data.data.totalPrice == -1 ? res.data.data.materials.reduce((sum, item) => sum + item.materialPrice, 0) : res.data.data.totalPrice - this.totalPrice = res.data.data.materials.length != 0 ? Math.trunc(res.data.data.materials.reduce((acc, obj) => acc + ((Number(obj.materialPrice) * obj.materialCount) || 0), 0) * 100) + this.totalPrice = res.data.data.materials.length != 0 ? Math.trunc(res.data.data.materials.reduce((acc, obj) => acc + ((Number(obj.materialPrice)) || 0), 0) * 100) / 100 : 0 this.discount = res.data.data.status == 402 ? '' : res.data.data.discount == -1 ? '' : res.data.data.discount this.discountPrice = res.data.data.status == 402 ? '' : res.data.data.discountPrice == -1 ? '' : res.data.data.discountPrice