Commit 41520827 authored by dragondean@qq.com's avatar dragondean@qq.com

Merge branch 'feature/order_edit' into pre-release

# Conflicts:
#	src/views/ecw/order/edit.vue
parents 6d580849 c9f6f982
......@@ -1393,9 +1393,10 @@ export default {
if(this.contactChooseType == 'consignor'){
this.noConsignee = contact.noConsignee
// 如果允许无收货人,则默认无收货人、控货
if(this.noConsignee){
// 241023 根据最新的原型,默认有收货人
/*if(this.noConsignee){
this.hasConsignee = false
}
}*/
// 如果发货人不允许无收货人,则重置为有收货人
if(!this.noConsignee && !this.hasConsignee){
this.$set(this, 'hasConsignee', true)
......@@ -1637,7 +1638,18 @@ export default {
if(+this.form.drawee === 1 && this.form.displayBillLadingPrice && !this.updateChannel){
await this.$confirm(this.$t('付款人=发货人,请再次确认提单是否显示价格明细'))
}
// 校验手机号跟目的国是否匹配
if(this.hasConsignee && this.form.consigneeCountryCode && this.form.consigneePhone){
const res = await checkCountryCode({
areaCode: this.form.consigneeCountryCode,
currencyId: this.form.destCountryId
})
// 并不一致则提示
if(!res.data){
await this.$confirm(this.$t('电话所在国与目的国不一致,请检查'))
}
}
// 修改的提交
if (this.form.orderId) {
......@@ -1668,17 +1680,7 @@ export default {
hasConsignee: this.hasConsignee
})
data.type = data.type.join(',')
// 校验手机号跟目的国是否匹配
if(this.hasConsignee && data.consigneeCountryCode && data.consigneePhone){
const res = await checkCountryCode({
areaCode: data.consigneeCountryCode,
currencyId: this.form.destCountryId
})
// 并不一致则提示
if(!res.data){
await this.$confirm(this.$t('电话所在国与目的国不一致,请检查'))
}
}
// 添加的提交
createOrder(data).then(response => {
this.$modal.msgSuccess(this.$t("新增成功"));
......
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 to comment