From 0f1843cde5db01888390e12e658070b0c38c82b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=BA=86?= <18331150170@163.com> Date: Wed, 22 Oct 2025 21:47:34 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=BE=93=E5=85=A5=E7=AD=89=E4=BA=8E0?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E8=AE=A9=E5=85=B6=E4=BF=9D=E7=95=99=E4=B8=A4?= =?UTF-8?q?=E4=BD=8D=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/heli/partpurchase/index.vue | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/partpurchase/index.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/partpurchase/index.vue index 0a9ee8ad..02ec99b0 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/heli/partpurchase/index.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/partpurchase/index.vue @@ -158,7 +158,13 @@ @@ -166,7 +172,11 @@ @@ -445,11 +455,11 @@ const floatMul = (a, b) => { } catch (f) {} return Number(d.replace(".", "")) * Number(e.replace(".", "")) / Math.pow(10, c); } -const changeUnitPrice =(row:any)=>{ +const changeUnitPrice =(row:any)=>{ row.estimatedPrices=parseFloat((row.unitPrice* row.purchaseAmounts).toFixed(1)) } -const changeEstimatedPrices =(row:any)=>{ +const changeEstimatedPrices =(row:any)=>{ row.unitPrice=parseFloat((row.estimatedPrices/row.purchaseAmounts).toFixed(1)) } const change1 =(row:any)=>{ @@ -529,7 +539,7 @@ const handleSelectedUser = (currentIndex, newValue: any) => { } } -const singleSubmissions=()=>{ +const singleSubmissions=()=>{ submitForm(); } const submitForm = async () => {