From 437be020329a4f9ae9701fd913ff2d75994524e3 Mon Sep 17 00:00:00 2001 From: lilu Date: Thu, 2 Mar 2023 14:28:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BB=E5=8D=95?= =?UTF-8?q?=E4=BF=9D=E5=AD=98/=20=E6=94=B6=E5=8F=91=E9=80=9A=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20-=20select=20=E5=B0=81=E8=A3=85=EF=BC=8C=E6=A8=A1?= =?UTF-8?q?=E7=B3=8A=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/components/sedOrder.vue | 2 +- src/views/main/BookingLedger/detail/index.vue | 10 +- .../detail/modules/autoCompleteView.vue | 30 +- .../detail/modules/basicInfo.vue | 2 +- .../detail/modules/mailingInfo.vue | 1082 ++--------------- .../detail/modules/selectView.vue | 128 ++ .../detail/style/mailingInfo.less | 482 ++++++++ 7 files changed, 756 insertions(+), 980 deletions(-) create mode 100644 src/views/main/BookingLedger/detail/modules/selectView.vue create mode 100644 src/views/main/BookingLedger/detail/style/mailingInfo.less diff --git a/src/views/main/BookingLedger/detail/components/sedOrder.vue b/src/views/main/BookingLedger/detail/components/sedOrder.vue index 32d5bd7..358bb5a 100644 --- a/src/views/main/BookingLedger/detail/components/sedOrder.vue +++ b/src/views/main/BookingLedger/detail/components/sedOrder.vue @@ -241,7 +241,7 @@ export default { yard: [ { required: false, message: '请输入场站', trigger: 'change' } ], customser: [ { required: false, message: '请输入报关行', trigger: 'change' } ], trucker: [ { required: false, message: '请输入车队', trigger: 'change' } ], - agentid: [ { required: false, message: '请输入国外代理', trigger: 'change' } ], + agentname: [ { required: false, message: '请输入国外代理', trigger: 'change' } ], eta: [ { required: false, message: '请选择预抵日期', trigger: 'change' } ], closingdate: [ { required: false, message: '请选择截港时间', trigger: 'change' } ], closedocdate: [ { required: false, message: '请选择截单时间', trigger: 'change' } ], diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 0560941..148d7ef 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -253,7 +253,7 @@ const initDetail = { yard: '', customser: '', trucker: '', - agentid: '', + agentname: '', eta: '', closingdate: '', closedocdate: '', @@ -395,7 +395,7 @@ export default { yard: [{ required: false, message: '请输入场站', trigger: 'change' }], customser: [{ required: false, message: '请输入报关行', trigger: 'change' }], trucker: [{ required: false, message: '请输入车队', trigger: 'change' }], - agentid: [{ required: false, message: '请输入国外代理', trigger: 'change' }], + agentname: [{ required: false, message: '请输入国外代理', trigger: 'change' }], eta: [{ required: false, message: '请选择预抵日期', trigger: 'change' }], closingdate: [{ required: false, message: '请选择截港时间', trigger: 'change' }], closedocdate: [{ required: false, message: '请选择截单时间', trigger: 'change' }], @@ -1061,6 +1061,7 @@ export default { BookingOrderAddOrUpdate(_data) .then(res => { if (res.success) { + this.$message.destroy() that.$message.success('保存成功') if (that.isAdd) { that.isCopy = false @@ -1078,7 +1079,7 @@ export default { that.isCopy = false that.isAdd = false console.log('1.1 == 保存成功 - 不切换路由 ==', that.id) - // that.init() + that.init() that.checkSaveFun({ type: 'hbList', hasChange: false }) that.checkSaveFun({ type: 'details', hasChange: false }) } else { @@ -1253,6 +1254,7 @@ export default { BookingOrderAddOrUpdate(_data) .then(res => { if (res.success) { + this.$message.destroy() that.$message.success('保存成功') if (that.isAdd) { that.isCopy = false @@ -1270,7 +1272,7 @@ export default { that.isCopy = false that.isAdd = false console.log('1.1 == 保存成功 - 不切换路由 ==', that.id) - // that.init() + that.init() that.checkSaveFun({ type: 'hbList', hasChange: false }) that.checkSaveFun({ type: 'details', hasChange: false }) } else { diff --git a/src/views/main/BookingLedger/detail/modules/autoCompleteView.vue b/src/views/main/BookingLedger/detail/modules/autoCompleteView.vue index f104fcf..7bbbc76 100644 --- a/src/views/main/BookingLedger/detail/modules/autoCompleteView.vue +++ b/src/views/main/BookingLedger/detail/modules/autoCompleteView.vue @@ -12,7 +12,6 @@ @focus="handleChangeFirst" >