From 69037139730587eeae67c8bba737503c13f8d1ce Mon Sep 17 00:00:00 2001 From: linfso Date: Wed, 29 May 2024 09:59:04 +0800 Subject: [PATCH] md --- .../vipSpecialQuotePriceList.vue | 1 + .../emisQuotePrice/vipTransQuotePriceList.vue | 2 + src/views/emis/emisWaybill/waybillModify.vue | 53 ++++++++++++------- src/views/emis/emisWaybill/waybillRecord.vue | 47 +++++++++++----- 4 files changed, 73 insertions(+), 30 deletions(-) diff --git a/src/views/emis/emisQuotePrice/vipSpecialQuotePriceList.vue b/src/views/emis/emisQuotePrice/vipSpecialQuotePriceList.vue index dd994cd0..ebda9939 100644 --- a/src/views/emis/emisQuotePrice/vipSpecialQuotePriceList.vue +++ b/src/views/emis/emisQuotePrice/vipSpecialQuotePriceList.vue @@ -174,6 +174,7 @@ + diff --git a/src/views/emis/emisQuotePrice/vipTransQuotePriceList.vue b/src/views/emis/emisQuotePrice/vipTransQuotePriceList.vue index b2ef5bcb..7a8ac351 100644 --- a/src/views/emis/emisQuotePrice/vipTransQuotePriceList.vue +++ b/src/views/emis/emisQuotePrice/vipTransQuotePriceList.vue @@ -174,6 +174,8 @@ + + diff --git a/src/views/emis/emisWaybill/waybillModify.vue b/src/views/emis/emisWaybill/waybillModify.vue index dc7c252c..343ed74b 100644 --- a/src/views/emis/emisWaybill/waybillModify.vue +++ b/src/views/emis/emisWaybill/waybillModify.vue @@ -371,7 +371,7 @@ - + @@ -414,22 +414,22 @@ @@ -742,6 +742,7 @@ import { realMatchWaybill,getTotalAvailablePag } from "@/api/emis/emisCommon"; import { getWaybillDetail,realSubmitOrder,calcWaybillFee,calcSetteldWeight,calcVolumeWeight} from "@/api/emis/emisWaybill"; import { parseTime } from "@/utils/custom"; +import { debounce } from 'throttle-debounce' import { getDestSite } from "@/api/emis/emisDestination"; import DestinationPicker from '@/views/emis/EmisBaseTools/DestinationPicker.vue'; @@ -761,17 +762,11 @@ import CountryPicker1 from '@/views/emis/EmisBaseTools/CountryPicker.vue'; import ProvincePicker1 from '@/views/emis/EmisBaseTools/ProvincePicker.vue'; import CityPicker1 from '@/views/emis/EmisBaseTools/CityPicker.vue'; import DistrictPicker1 from '@/views/emis/EmisBaseTools/DistrictPicker.vue'; -// import TownPicker1 from '@/views/emis/EmisBaseTools/TownPicker.vue'; import CountryPicker2 from '@/views/emis/EmisBaseTools/CountryPicker.vue'; import ProvincePicker2 from '@/views/emis/EmisBaseTools/ProvincePicker.vue'; import CityPicker2 from '@/views/emis/EmisBaseTools/CityPicker.vue'; import DistrictPicker2 from '@/views/emis/EmisBaseTools/DistrictPicker.vue'; -// import TownPicker2 from '@/views/emis/EmisBaseTools/TownPicker.vue'; - -// import CustomerPicker0 from '@/views/emis/EmisBaseTools/CustomerPicker.vue'; -// import CustomerPicker1 from '@/views/emis/EmisBaseTools/CustomerPicker.vue'; -// import CustomerPicker2 from '@/views/emis/EmisBaseTools/CustomerPicker.vue'; import GoodsSimplePicker from '@/views/emis/EmisBaseTools/GoodsSimplePicker.vue'; import GoodsMultiplePicker from '@/views/emis/EmisBaseTools/GoodsMultiplePicker.vue'; @@ -1533,6 +1528,11 @@ methods: { }); } }, + + handleCalcVolumeDebounce(row){ + // 控制触发频率 + debounce(250, this.handleCalcVolume(row)) + }, handleCalcVolume(row){ // 初始化不计算 if(!this.isNeedSave){ @@ -1758,13 +1758,19 @@ methods: { else{ let newList=[]; let incQty=0; - let zeroItem=null; + let zeroItem={ + "goodsCode": "", + "goodsName": "", + "cargoQty": 1, + "length": 0, + "width": 0, + "height": 0, + "volume": 0, + }; for(let i=0;i0){ + if(newList.length>=10 || this.form.parcelQty>=10){ + let newItem=Object.assign({},zeroItem); + newItem.cargoQty=bzLen; + newList.push(newItem); + }else{ + for(let i=0;i - + @@ -414,22 +414,22 @@ @@ -742,6 +742,7 @@ import { realMatchWaybill,getTotalAvailablePag } from "@/api/emis/emisCommon"; import { getWaybillDetail,realSubmitOrder,calcWaybillFee,calcSetteldWeight,calcVolumeWeight} from "@/api/emis/emisWaybill"; import { parseTime } from "@/utils/custom"; +import { debounce } from 'throttle-debounce' import { getDestSite } from "@/api/emis/emisDestination"; import DestinationPicker from '@/views/emis/EmisBaseTools/DestinationPicker.vue'; @@ -1533,6 +1534,11 @@ methods: { }); } }, + + handleCalcVolumeDebounce(row){ + // 控制触发频率 + debounce(250, this.handleCalcVolume(row)) + }, handleCalcVolume(row){ // 初始化不计算 if(!this.isNeedSave){ @@ -1758,13 +1764,19 @@ methods: { else{ let newList=[]; let incQty=0; - let zeroItem=null; + let zeroItem={ + "goodsCode": "", + "goodsName": "", + "cargoQty": 1, + "length": 0, + "width": 0, + "height": 0, + "volume": 0, + }; for(let i=0;i0){ + if(newList.length>=10 || this.form.parcelQty>=10){ + let newItem=Object.assign({},zeroItem); + newItem.cargoQty=bzLen; + newList.push(newItem); + }else{ + for(let i=0;i