From 0237840b118f6e4392771effbc19b5081eb72997 Mon Sep 17 00:00:00 2001 From: lilu Date: Wed, 11 Jan 2023 17:19:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E8=88=B1=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=8D=A1=E9=A1=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/BookingLedger/detail/index.vue | 2 +- .../detail/modules/basicInfo.vue | 135 ++++++++---------- .../BookingLedger/detail/modules/billInfo.vue | 2 +- .../detail/modules/cargoInfo.vue | 5 +- .../detail/modules/inputView.vue | 60 ++++++++ .../detail/modules/mailingInfo.vue | 91 +++++++++--- .../detail/modules/textareaView.vue | 51 +++++++ 7 files changed, 241 insertions(+), 105 deletions(-) create mode 100644 src/views/main/BookingLedger/detail/modules/inputView.vue create mode 100644 src/views/main/BookingLedger/detail/modules/textareaView.vue diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 77af4f3..2209fc5 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -25,7 +25,7 @@
- +
- + - + + @@ -105,7 +106,8 @@ :wrapperCol="wrapperCol2" has-feedback prop="pono"> - + + @@ -117,7 +119,8 @@ has-feedback prop="hblno" > - + + @@ -129,7 +132,8 @@ has-feedback prop="bookingno" > - + + @@ -176,7 +181,8 @@ @@ -225,7 +231,8 @@ has-feedback prop="lanecode" > - + + @@ -239,7 +246,9 @@ has-feedback prop="voynoinner" > - + + @@ -262,7 +271,8 @@ has-feedback prop="voyno" > - + + @@ -278,7 +288,7 @@ - W{{ etdWeek || '--' }} + W{{ etdWeek || '--' }}
@@ -308,7 +318,9 @@ :wrapperCol="wrapperCol" has-feedback prop="lanename"> - + + @@ -352,7 +364,8 @@ has-feedback prop="contractno" > - + + @@ -478,67 +491,6 @@ - - import { XCard } from '@/components' import { AutoComplete } from 'ant-design-vue' +import inputView from './inputView' import { DjyCustomerpage, DjyCustomerSuggest, @@ -580,7 +533,8 @@ export default { name: 'BookingDetail', components: { XCard, - AutoComplete + AutoComplete, + inputView, }, props: { details: { @@ -598,6 +552,10 @@ export default { default: () => { return {} } + }, + inPageLoading: { + type: Boolean, + default: false } }, data() { @@ -898,6 +856,12 @@ export default { detail: nval, type: 'baseInfo' }) + console.log('== 数据更新 ==', nval.etd) + if (nval.etd) { + this.etdWeek = this.getWeek(nval.etd) + } else { + this.etdWeek = '' + } }, deep: true }, @@ -921,6 +885,7 @@ export default { resolve(true); } else { console.log('验证失败!'); + // eslint-disable-next-line prefer-promise-reject-errors reject(false); } }); @@ -1022,6 +987,8 @@ export default { this.getUserList('custservice') if (this.details.etd) { this.etdWeek = this.getWeek(this.details.etd) + } else { + this.etdWeek = '' } this.ContactType = this.$options.filters['dictData']('booking_contact_type') }, @@ -1046,6 +1013,7 @@ export default { }) }, customerSelect(value) { + console.log('客户 - 这里点击更新了数据', value) this.customerData.forEach(item => { if (item.shortName == value) { this.details.op = item.op @@ -1365,7 +1333,11 @@ export default { }, // 关系人弹窗 - end changeEtd(date, dateString) { - this.details.etd = dateString + if (!dateString) { + this.details.etd = null + } else { + this.details.etd = dateString + } this.etdWeek = this.getWeek(dateString) }, getWeek(dateTime) { @@ -1417,8 +1389,13 @@ export default { this.details.vessel = this.details.vessel ? this.details.vessel : '' } this.getContractno(value) - } + }, // 约号 - end + inputChange ({ type, value }) { + this.details[type] = value + console.log(this.details[type]) + this.$forceUpdate() + } } } diff --git a/src/views/main/BookingLedger/detail/modules/billInfo.vue b/src/views/main/BookingLedger/detail/modules/billInfo.vue index 0e5092f..5b7cf7f 100644 --- a/src/views/main/BookingLedger/detail/modules/billInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/billInfo.vue @@ -59,9 +59,9 @@ has-feedback prop="issueplace" > +
- + +
- +
+ + + diff --git a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue index 1d3ad6c..e92aab7 100644 --- a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue @@ -35,14 +35,15 @@
- +
- +
- +
- + @@ -352,7 +355,8 @@ has-feedback prop="placereceipt" > - + + @@ -386,7 +390,8 @@ has-feedback prop="portload" > - + + @@ -420,7 +425,8 @@ has-feedback prop="transport" > - + + @@ -454,7 +460,8 @@ has-feedback prop="portdischarge" > - + + @@ -488,7 +495,8 @@ has-feedback prop="destination" > - + + @@ -522,7 +530,8 @@ has-feedback prop="placedelivery" > - + + @@ -534,7 +543,8 @@ has-feedback prop="pkgs" > - + + @@ -569,7 +579,9 @@ prop="kgs" >
- KGS + + + KGS
@@ -583,7 +595,9 @@ prop="cbm" >
- CBM + + + CBM
@@ -669,7 +683,8 @@