From b371fe7893068e0db9f64b0fc4862ce6d829fbac Mon Sep 17 00:00:00 2001 From: jinna Date: Thu, 13 Feb 2025 10:25:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=A9=E6=96=99=E6=80=BB?= =?UTF-8?q?=E9=87=91=E9=A2=9D=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 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/components/workOrderDetail.vue b/src/views/components/workOrderDetail.vue index dd4f45f..0f261f0 100644 --- a/src/views/components/workOrderDetail.vue +++ b/src/views/components/workOrderDetail.vue @@ -210,7 +210,7 @@ @@ -234,7 +234,7 @@ @@ -661,7 +661,8 @@ export default { price: item.materialPrice, inventoryId: item.inventoryId, productId: '', - productList: [] + productList: [], + unifiedQuotation: Number(item.materialPrice) / Number(item.materialCount) }) }) this.getDeviceList(res.data.data.reportUnit) @@ -798,10 +799,11 @@ export default { }, // 切换物料数量 changeNumber(val, row) { + console.log('row--------------->',row) + console.log('val--------------->',val) if (row.unifiedQuotation) { // row.price = (row.unifiedQuotation * val).toFixed(2) row.price = Math.trunc(row.unifiedQuotation * val * 100) / 100 - } else { } }, // 运维主管输入折扣限制