From 57a5878dcbbcf7cd0ddecd586b7fc7e6ebbff20b Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Mon, 25 Nov 2024 14:21:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=B7=E6=A0=BC=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Pricesystem/Price/PriceBill.vue | 13 ++++++------- src/views/Pricesystem/Price/PriceTrunkLine.vue | 9 ++++----- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/views/Pricesystem/Price/PriceBill.vue b/src/views/Pricesystem/Price/PriceBill.vue index a1df554a..8392dae3 100644 --- a/src/views/Pricesystem/Price/PriceBill.vue +++ b/src/views/Pricesystem/Price/PriceBill.vue @@ -1111,8 +1111,8 @@ const handleAdd = () => { }, ]; details.form = deepClone(details.initForm); - console.log(details.initForm,'details.form'); - + console.log(details.initForm, 'details.form'); + for (let i = 0; i < details.form.billTemplateDetail.length; i++) { const value = details.form.billTemplateDetail[i]; @@ -1131,10 +1131,9 @@ const handleAdd = () => { /** 给form赋值 */ const initAssignmentForm = (data, isLine = true) => { + details.form.startCity = []; + details.form.endCity = []; if (isLine) { - details.form.startCity = []; - details.form.endCity = []; - data.startProvinceId && (details.form.startCity[0] = data.startProvinceId + ''); data.startCityId && (details.form.startCity[1] = data.startCityId + ''); data.startCountyId && (details.form.startCity[2] = data.startCountyId + ''); @@ -1147,8 +1146,8 @@ const initAssignmentForm = (data, isLine = true) => { details.form.sendOrg = data.sendOrgName; details.form.priceId = data.priceId; } - details.form.startCity = []; - details.form.endCity = []; + // details.form.startCity = []; + // details.form.endCity = []; details.form.minCost = data.minCost || 0; details.form.additionalCost = data.additionalCost || 0; diff --git a/src/views/Pricesystem/Price/PriceTrunkLine.vue b/src/views/Pricesystem/Price/PriceTrunkLine.vue index a1dfc634..9f5355c4 100644 --- a/src/views/Pricesystem/Price/PriceTrunkLine.vue +++ b/src/views/Pricesystem/Price/PriceTrunkLine.vue @@ -141,7 +141,7 @@