From a7ec92c0fd4dbddc91cb96c7d58d169a9372dee5 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Fri, 12 Apr 2024 09:45:31 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E8=B4=A2=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/financialsector/Financialse/FinancialWarehousing.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/financialsector/Financialse/FinancialWarehousing.vue b/src/views/financialsector/Financialse/FinancialWarehousing.vue index c25e4a53..3e4158a4 100644 --- a/src/views/financialsector/Financialse/FinancialWarehousing.vue +++ b/src/views/financialsector/Financialse/FinancialWarehousing.vue @@ -95,7 +95,6 @@ :remote-method="categoriesearch" @focus="categoriesSearchfocus(item)" > - Date: Fri, 12 Apr 2024 10:25:41 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ConfigureBillingAndWarehousing/list.vue | 2 +- .../Financialse/FinancialBill.vue | 82 ++++- .../Financialse/FinancialTrunkLine.vue | 291 ++++++++++++------ 3 files changed, 272 insertions(+), 103 deletions(-) diff --git a/src/views/basicdata/ConfigureBillingAndWarehousing/list.vue b/src/views/basicdata/ConfigureBillingAndWarehousing/list.vue index fc04bf2c..8459b2f5 100644 --- a/src/views/basicdata/ConfigureBillingAndWarehousing/list.vue +++ b/src/views/basicdata/ConfigureBillingAndWarehousing/list.vue @@ -563,7 +563,7 @@ const remoteMethodBrand = async value => { } }; -remoteMethodBrand(); +remoteMethodBrand(''); /** 搜索仓库 */ const getMaterialTree = async value => { diff --git a/src/views/financialsector/Financialse/FinancialBill.vue b/src/views/financialsector/Financialse/FinancialBill.vue index d8807359..e7b5cb1c 100644 --- a/src/views/financialsector/Financialse/FinancialBill.vue +++ b/src/views/financialsector/Financialse/FinancialBill.vue @@ -317,13 +317,11 @@ const handleTrunkLinePricingType = response => { details.priceMethodType = data || []; - if (props.templateData) return; - const _billTemplateDetailArr = []; for (let i = 0; i < details.priceMethodType.length; i++) { const value = details.priceMethodType[i]; if (value.dictKey != '2') { - _billTemplateDetailArr.push({ + const _itemObj = { title: value.dictValue + '计费品类', code: value.dictKey, categories: [ @@ -337,18 +335,90 @@ const handleTrunkLinePricingType = response => { loading: false, }, ], - }); + }; - if (!props.templateData.request) continue; + if (!props.templateData.request) { + console.log('123123 :>> ', 123123); + _billTemplateDetailArr.push(_itemObj); + continue; + } - // 按件 + console.log('222 :>> ', 222); + const _arr = []; + // 按件 + if (value.dictKey === '1') { + const { pickupPieceCategorys } = props.templateData.request; + + if (pickupPieceCategorys && pickupPieceCategorys.length !== 0) { + for (let i = 0; i < pickupPieceCategorys.length; i++) { + const item = pickupPieceCategorys[i]; + + _arr.push({ + reduce: i === 0 ? false : true, + plus: true, + goodsName: item.name, + goodsId: item.id, + goods: item.name, + goodsArr: [], + loading: false, + }); + } + + _itemObj.categories = _arr; + } + } // 按重量 + if (value.dictKey === '4') { + const { pickupWeightCategorys } = props.templateData.request; + + if (pickupWeightCategorys && pickupWeightCategorys.length !== 0) { + for (let i = 0; i < pickupWeightCategorys.length; i++) { + const item = pickupWeightCategorys[i]; + + _arr.push({ + reduce: i === 0 ? false : true, + plus: true, + goodsName: item.name, + goodsId: item.id, + goods: item.name, + goodsArr: [], + loading: false, + }); + } + + _itemObj.categories = _arr; + } + } // 按方 + if (value.dictKey === '3') { + const { pickupCubeCategorys } = props.templateData.request; + + if (pickupCubeCategorys && pickupCubeCategorys.length !== 0) { + for (let i = 0; i < pickupCubeCategorys.length; i++) { + const item = pickupCubeCategorys[i]; + + _arr.push({ + reduce: i === 0 ? false : true, + plus: true, + goodsName: item.name, + goodsId: item.id, + goods: item.name, + goodsArr: [], + loading: false, + }); + } + + _itemObj.categories = _arr; + } + } + + _billTemplateDetailArr.push(_itemObj); } } + console.log('_billTemplateDetailArr :>> ', _billTemplateDetailArr); details.form.billTemplateDetail = _billTemplateDetailArr; }; diff --git a/src/views/financialsector/Financialse/FinancialTrunkLine.vue b/src/views/financialsector/Financialse/FinancialTrunkLine.vue index c92ec7db..71754b9a 100644 --- a/src/views/financialsector/Financialse/FinancialTrunkLine.vue +++ b/src/views/financialsector/Financialse/FinancialTrunkLine.vue @@ -73,7 +73,7 @@
-
{{ index+1 }}
+
{{ index + 1 }}