diff --git a/src/views/emis/EmisBaseTools/TransProductCasPicker.vue b/src/views/emis/EmisBaseTools/TransProductCasPicker.vue index 91f8a3a6..a58f69f6 100644 --- a/src/views/emis/EmisBaseTools/TransProductCasPicker.vue +++ b/src/views/emis/EmisBaseTools/TransProductCasPicker.vue @@ -95,7 +95,7 @@ export default { }, svalue(newVal, oldVal) { if (newVal !== oldVal) { - this.$emit("input", this.svalue); + } }, countryCode(newVal) { @@ -141,6 +141,8 @@ export default { }, handleChange(value) { console.log(value); + this.$emit("input", this.svalue); + this.$emit("onChange", this.svalue); }, }, }; diff --git a/src/views/emis/emisWaybill/emisWaybillRecord.vue b/src/views/emis/emisWaybill/emisWaybillRecord.vue index 72367c89..e2224150 100644 --- a/src/views/emis/emisWaybill/emisWaybillRecord.vue +++ b/src/views/emis/emisWaybill/emisWaybillRecord.vue @@ -26,7 +26,7 @@ --> - + @@ -599,7 +599,6 @@ data() { addressType:null, // 遮罩层 loading: true, - // 表单参数 form: {}, timer:null, @@ -830,6 +829,7 @@ methods: { this.loading = true; getWaybillDetail(this.billCode).then(response => { this.form = response.data; + this.form.productTypeSelArr=[this.form.transLine,this.form.productType]; this.loading = false; }); } @@ -884,6 +884,7 @@ methods: { paymentType: null, calcFeeType: '1', custNo: null, + productTypeSelArr: null, transLine: null, productType: null, customsClear: null, @@ -935,7 +936,12 @@ methods: { this.resetForm("form"); }, onTransLineChange(item){ - this.form.meterType = item.meterRate; + // this.form.meterType = item.meterRate; + }, + onProductChange(item){ + console.log(item); + this.form.transLine=item[0]; + this.form.productType=item[1]; }, /** 提交按钮 */ submitForm() { @@ -1008,14 +1014,15 @@ methods: { }); } }, + // 计算体积 calcVolume(){ - // 计算体积 if(this.form.length && this.form.width && this.form.height){ let totalVolume=parseFloat(this.form.length)*parseFloat(this.form.width)*parseFloat(this.form.height); this.form.totalVolume = totalVolume/1000000; this.calcVolumeWeightByTotalVolume(); } }, + // 计算体积重量 calcVolumeWeightByTotalVolume(){ let postData={ productType: this.form.productType, @@ -1023,28 +1030,26 @@ methods: { } calcVolumeWeight(postData).then(response => { - console.log(response); this.form.volumeWeight = response.data.volumeWeight; }); }, + // 计算计算重量 calcSettlementWeightByRemote(){ - if(this.form.billWeight && this.form.totalVolume && this.form.productType ){ let postData={ productType: this.form.productType, - totalVolume: this.form.totalVolume, + volumeWeight: this.form.volumeWeight, billWeight: this.form.billWeight, } // console.log(postData); calcSetteldWeight(postData).then(response => { console.log(response); - // this.form.volumeWeight = response.data.volumeWeight; this.form.settlementWeight = response.data.settlementWeight; - // this.form.feeWeight = this.form.settlementWeight ; + this.form.feeWeight = this.form.settlementWeight ; }); } diff --git a/src/views/emis/emisWaybill/waybillList.vue b/src/views/emis/emisWaybill/waybillList.vue index c6433808..578399bb 100644 --- a/src/views/emis/emisWaybill/waybillList.vue +++ b/src/views/emis/emisWaybill/waybillList.vue @@ -1313,7 +1313,9 @@ @@ -1470,32 +1472,8 @@ --> - - - - - -