Commit 723e7d92 authored by zhengyi's avatar zhengyi

订单编辑目的城市必填改目的国必填

parent d7daea72
...@@ -814,7 +814,7 @@ export default { ...@@ -814,7 +814,7 @@ export default {
consignorContactsId : [{required: true, message: this.$t('发货人不能为空')}], consignorContactsId : [{required: true, message: this.$t('发货人不能为空')}],
transportId : [{required: true, message: this.$t('请选择运输方式')}], transportId : [{required: true, message: this.$t('请选择运输方式')}],
departureId : [{required: true, message: this.$t('请选择始发城市')}], departureId : [{required: true, message: this.$t('请选择始发城市')}],
objectiveId : [{required: true, message: this.$t('请选择目的城市')}], destCountryId : [{required: true, message: this.$t('请选择目的国家')}],
lineId : [{required: true, message: this.$t('请选择路线')}], lineId : [{required: true, message: this.$t('请选择路线')}],
channelId : [{required: true, message: this.$t('请选择出货渠道')}], channelId : [{required: true, message: this.$t('请选择出货渠道')}],
deliveryDate : [{required: true, message: this.$t('请选择预计送货日期')}], deliveryDate : [{required: true, message: this.$t('请选择预计送货日期')}],
...@@ -1648,7 +1648,7 @@ export default { ...@@ -1648,7 +1648,7 @@ export default {
if(+this.form.drawee === 1 && this.form.displayBillLadingPrice && !this.updateChannel){ if(+this.form.drawee === 1 && this.form.displayBillLadingPrice && !this.updateChannel){
await this.$confirm(this.$t('付款人=发货人,请再次确认提单是否显示价格明细')) await this.$confirm(this.$t('付款人=发货人,请再次确认提单是否显示价格明细'))
} }
// 校验手机号跟目的国是否匹配 // 校验手机号跟目的国是否匹配
if(this.hasConsignee && this.form.consigneeCountryCode && this.form.consigneePhone){ if(this.hasConsignee && this.form.consigneeCountryCode && this.form.consigneePhone){
const res = await checkCountryCode({ const res = await checkCountryCode({
...@@ -1694,7 +1694,7 @@ export default { ...@@ -1694,7 +1694,7 @@ export default {
hasConsignee: this.hasConsignee hasConsignee: this.hasConsignee
}) })
data.type = data.type.join(',') data.type = data.type.join(',')
// 添加的提交 // 添加的提交
createOrder(data).then(response => { createOrder(data).then(response => {
this.$modal.msgSuccess(this.$t("新增成功")); 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