Commit f48d4497 by LJM

更新物流模式

parent c5c259cd
......@@ -175,7 +175,6 @@
}
}
.select-box {
height: 40rpx;
background: #ffffff;
border-radius: 10rpx;
border: 1px solid #1969f9;
......
......@@ -348,6 +348,13 @@
} else if (type == 2) {
this.real_shipping_id_index = e.detail.value;
this.formParams.real_shipping_id = this.real_shipping_id_data[e.detail.value].value;
//物流公司为跨越速运更新物流模式
this.updateRealShippingId(this.formParams.real_shipping_id);
if (this.formParams.real_shipping_id == 21) {
this.real_shipping_mode_index = 3; //设置默认为物流模式为陆运件
} else {
this.real_shipping_mode_index = 0; //设置默认为物流模式为空运
}
} else if (type == 3) {
this.real_shipping_mode_index = e.detail.value;
this.formParams.real_shipping_mode = this.real_shipping_mode_data[e.detail.value].value;
......@@ -377,13 +384,17 @@
/**
* 更新物流模式
*/
updateRealShippingId(real_shipping_id) {
updateRealShippingId(real_shipping_id, callback) {
//物流公司为跨越速运
if (real_shipping_id == 21) {
this.real_shipping_mode_data = [];
this.real_shipping_mode_data.push({ name: '当天达', value: 10 }, { name: '次日达', value: 20 }, { name: '隔日达', value: 30 }, { name: '陆运件', value: 40 }, { name: '同城次日', value: 50 }, { name: '同城即日', value: 70 }, { name: '省内次日', value: 160 }, { name: '省内即日', value: 170 }, { name: '空运', value: 210 }, { name: '专运', value: 220 });
this.$forceUpdate();
} else {
this.real_shipping_mode_data = [];
this.real_shipping_mode_data.push({ name: '空运', value: 1 }, { name: '陆运', value: 2 });
}
this.$forceUpdate();
typeof callback == 'function' && callback(data);
},
showDrawer(stock_out_sn) {
this.$refs.showRight.open();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment