修体积重量调整重算保费
This commit is contained in:
parent
336acea36f
commit
9d89effd59
@ -362,9 +362,9 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item :label="$t('实际重量')" prop="billWeight" label-width="70px">
|
||||
<el-input v-model="form.billWeight" @blur="handleCalcSettlementWeight" @keyup.enter.native="handleCalcSettlementWeight" style="text-align: right;min-width: 80px" placeholder="" >
|
||||
<el-input v-model="form.billWeight" style="text-align: right;min-width: 80px" placeholder="" >
|
||||
<span slot="suffix">(kg)</span>
|
||||
</el-input>
|
||||
</el-input>
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -454,7 +454,7 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item :label="$t('总体积')" prop="totalVolume" label-width="70px" >
|
||||
<div style="">
|
||||
<el-input v-model="form.totalVolume" @blur="handleCalcVolumeWeight" @keyup.enter.native="handleCalcVolumeWeight" style="text-align: right;width: 120px" placeholder="体积" >
|
||||
<el-input v-model="form.totalVolume" style="text-align: right;width: 120px" placeholder="体积" >
|
||||
<span slot="suffix">(m³)</span>
|
||||
</el-input>
|
||||
</div>
|
||||
@ -1137,6 +1137,24 @@ computed: {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// 监听实际重量
|
||||
'form.billWeight': {
|
||||
handler(newVal, oldVal) {
|
||||
if(oldVal!=null){
|
||||
this.handleCalcSettlementWeightDebounce();
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
//监听总体积
|
||||
'form.totalVolume': {
|
||||
handler(newVal, oldVal) {
|
||||
if(oldVal!=null){
|
||||
this.handleCalcVolumeWeightDebounce();
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
|
||||
},
|
||||
created() {
|
||||
@ -2165,6 +2183,11 @@ methods: {
|
||||
}
|
||||
|
||||
},
|
||||
//防抖 计算体积重量
|
||||
handleCalcVolumeWeightDebounce:debounce(250,function(){
|
||||
this.handleCalcVolumeWeight();
|
||||
}),
|
||||
|
||||
// 计算结算重量
|
||||
handleCalcSettlementWeight(){
|
||||
|
||||
@ -2193,6 +2216,10 @@ methods: {
|
||||
}
|
||||
|
||||
},
|
||||
// 防抖 计算结算重量
|
||||
handleCalcSettlementWeightDebounce:debounce(250,function(){
|
||||
this.handleCalcSettlementWeight();
|
||||
}),
|
||||
|
||||
calcBillFee(){
|
||||
|
||||
|
||||
@ -364,7 +364,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item :label="$t('实际重量')" prop="billWeight" label-width="70px">
|
||||
<el-input v-model="form.billWeight" @blur="handleCalcSettlementWeight" @keyup.enter.native="handleCalcSettlementWeight" style="text-align: right;min-width: 80px" placeholder="" >
|
||||
<el-input v-model="form.billWeight" style="text-align: right;min-width: 80px" placeholder="" >
|
||||
<span slot="suffix">(kg)</span>
|
||||
</el-input>
|
||||
|
||||
@ -456,7 +456,7 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item :label="$t('总体积')" prop="totalVolume" label-width="70px" >
|
||||
<div style="">
|
||||
<el-input v-model="form.totalVolume" @blur="handleCalcVolumeWeight" @keyup.enter.native="handleCalcVolumeWeight" style="text-align: right;width: 120px" placeholder="体积" >
|
||||
<el-input v-model="form.totalVolume" style="text-align: right;width: 120px" placeholder="体积" >
|
||||
<span slot="suffix">(m³)</span>
|
||||
</el-input>
|
||||
</div>
|
||||
@ -1168,7 +1168,25 @@ computed: {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
|
||||
// 监听实际重量
|
||||
'form.billWeight': {
|
||||
handler(newVal, oldVal) {
|
||||
if(oldVal!=null){
|
||||
this.handleCalcSettlementWeightDebounce();
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
//监听总体积
|
||||
'form.totalVolume': {
|
||||
handler(newVal, oldVal) {
|
||||
if(oldVal!=null){
|
||||
this.handleCalcVolumeWeightDebounce();
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
},
|
||||
created() {
|
||||
|
||||
@ -2195,6 +2213,11 @@ methods: {
|
||||
}
|
||||
|
||||
},
|
||||
// 防抖 计算体积重量
|
||||
handleCalcVolumeWeightDebounce:debounce(250,function(){
|
||||
this.handleCalcVolumeWeight();
|
||||
}),
|
||||
|
||||
// 计算结算重量
|
||||
handleCalcSettlementWeight(){
|
||||
|
||||
@ -2224,6 +2247,11 @@ methods: {
|
||||
}
|
||||
|
||||
},
|
||||
// 防抖 计算结算重量
|
||||
handleCalcSettlementWeightDebounce:debounce(250,function(){
|
||||
this.handleCalcSettlementWeight();
|
||||
}),
|
||||
|
||||
|
||||
calcBillFee(){
|
||||
|
||||
|
||||
@ -365,7 +365,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item :label="$t('实际重量')" prop="billWeight" label-width="70px">
|
||||
<el-input v-model="form.billWeight" @blur="handleCalcSettlementWeight" @keyup.enter.native="handleCalcSettlementWeight" style="text-align: right;min-width: 80px" placeholder="" >
|
||||
<el-input v-model="form.billWeight" style="text-align: right;min-width: 80px" placeholder="" >
|
||||
<span slot="suffix">(kg)</span>
|
||||
</el-input>
|
||||
|
||||
@ -457,7 +457,7 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item :label="$t('总体积')" prop="totalVolume" label-width="70px" >
|
||||
<div style="">
|
||||
<el-input v-model="form.totalVolume" @blur="handleCalcVolumeWeight" @keyup.enter.native="handleCalcVolumeWeight" style="text-align: right;width: 120px" placeholder="体积" >
|
||||
<el-input v-model="form.totalVolume" style="text-align: right;width: 120px" placeholder="体积" >
|
||||
<span slot="suffix">(m³)</span>
|
||||
</el-input>
|
||||
</div>
|
||||
@ -1174,6 +1174,20 @@ computed: {
|
||||
},
|
||||
watch: {
|
||||
|
||||
// 监听实际重量
|
||||
'form.billWeight': {
|
||||
handler(newVal, oldVal) {
|
||||
this.handleCalcSettlementWeightDebounce();
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
//监听总体积
|
||||
'form.totalVolume': {
|
||||
handler(newVal, oldVal) {
|
||||
this.handleCalcVolumeWeightDebounce();
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
},
|
||||
created() {
|
||||
|
||||
@ -2187,6 +2201,10 @@ methods: {
|
||||
}
|
||||
|
||||
},
|
||||
//防抖 计算体积重量
|
||||
handleCalcVolumeWeightDebounce:debounce(250,function(){
|
||||
this.handleCalcVolumeWeight();
|
||||
}),
|
||||
// 计算结算重量
|
||||
handleCalcSettlementWeight(){
|
||||
|
||||
@ -2215,6 +2233,11 @@ methods: {
|
||||
}
|
||||
|
||||
},
|
||||
// 防抖 计算结算重量
|
||||
handleCalcSettlementWeightDebounce:debounce(250,function(){
|
||||
this.handleCalcSettlementWeight();
|
||||
}),
|
||||
|
||||
|
||||
calcBillFee(){
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user