From f41b80c41f0d0b42e9db69a96d696c87a8830a2a Mon Sep 17 00:00:00 2001 From: lilu Date: Wed, 4 Jan 2023 18:42:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=85=E5=A1=AB=E9=A1=B9=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/components/ediMore.vue | 44 +-- .../detail/components/sedOrder.vue | 288 +++++++++++++- src/views/main/BookingLedger/detail/index.vue | 358 ++++++++++++------ .../detail/modules/basicInfo.vue | 64 ++-- .../BookingLedger/detail/modules/billInfo.vue | 56 +-- .../detail/modules/cargoInfo.vue | 29 +- .../detail/modules/goodsTable.vue | 6 +- .../detail/modules/mailingInfo.vue | 47 +-- .../detail/modules/remarksInfo.vue | 22 +- .../detail/modules/rightContent.vue | 30 +- 10 files changed, 667 insertions(+), 277 deletions(-) diff --git a/src/views/main/BookingLedger/detail/components/ediMore.vue b/src/views/main/BookingLedger/detail/components/ediMore.vue index f379693..dafe701 100644 --- a/src/views/main/BookingLedger/detail/components/ediMore.vue +++ b/src/views/main/BookingLedger/detail/components/ediMore.vue @@ -282,37 +282,17 @@ export default { default: () => { return {} } + }, + rules: { + type: Object, + default: () => { + return {} + } } }, data() { return { - iscontainersoc: '', - rules: { - // 'bookingEDIExt.sendCode': [ { required: true, message: '请输入发送方EDI代码', trigger: 'blur' } ], - // 'bookingEDIExt.receiveCode': [ { required: true, message: '请输入接收方EDI代码', trigger: 'blur' } ], - // 'bookingEDIExt.notifyCdoe': [ { required: true, message: '请输入通知方EDI代码', trigger: 'blur' } ], - // 'bookingEDIExt.salerCode': [ { required: true, message: '请输入销售EDI代码', trigger: 'blur' } ], - // 'bookingEDIExt.masterBolIndicator': [ { required: true, message: '请输入Master Bol Indicator', trigger: 'blur' } ], - // 'bookingEDIExt.emanifestHbl': [ { required: true, message: '请输入EMANIFEST HBL', trigger: 'blur' } ], - // 'bookingEDIExt.consigneeEdiCode': [ { required: true, message: '请输入收货人EDI代码', trigger: 'blur' } ], - // 'bookingEDIExt.shipperEdiCode': [ { required: true, message: '请输入发货人EDI代码', trigger: 'blur' } ], - // 'bookingEDIExt.ediAttn': [ { required: true, message: '请输入EDI联系人名称', trigger: 'blur' } ], - // 'bookingEDIExt.ediAttnTel': [ { required: true, message: '请输入EDI联系人电话', trigger: 'blur' } ], - // 'bookingEDIExt.ediAttnMail': [ { required: true, message: '请输入EDI联系人邮箱', trigger: 'blur' } ], - // 'bookingEDIExt.amsConsignee': [ { required: true, message: '请输入AMS收货人', trigger: 'blur' } ], - // 'bookingEDIExt.amsNotifyParty': [ { required: true, message: '请输入AMS通知人', trigger: 'blur' } ], - // 'bookingEDIExt.opEName': [ { required: true, message: '请输入操作英文名称', trigger: 'blur' } ], - // 'bookingEDIExt.opTel': [ { required: true, message: '请输入操作电话', trigger: 'blur' } ], - // 'bookingEDIExt.opEmail': [ { required: true, message: '请输入操作邮箱', trigger: 'blur' } ], - // 'bookingEDIExt.acihbl': [ { required: true, message: '请输入ACI HBL', trigger: 'blur' } ], - // 'bookingEDIExt.s0CC0C': [ { required: true, message: '请输入S0C C0C', trigger: 'blur' } ], - // 'bookingEDIExt.goodsName': [ { required: true, message: '请输入商品名称', trigger: 'blur' } ], - // 'iscontainersoc': [ { required: true, message: '请输入SOC箱', trigger: 'blur' } ], - // 'scaccode': [ { required: true, message: '请输入SCAC代码', trigger: 'blur' } ], - // 'itncode': [ { required: true, message: '请输入ITN编号', trigger: 'blur' } ], - // 'freightpayer': [ { required: true, message: '请输入付款方', trigger: 'blur' } ], - // 'bookingEDIExt.weiTuoFang': [ { required: true, message: '请输入委托方', trigger: 'blur' } ], - } + iscontainersoc: '' } }, watch: { @@ -355,6 +335,16 @@ export default { } } + diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index ca27fcc..84a353c 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -557,6 +557,12 @@ export default { ishd: { type: Boolean, default: false + }, + rules: { + type: Object, + default: () => { + return {} + } } }, data() { @@ -711,29 +717,7 @@ export default { // 选择客户 / 关系人弹窗 - end customerContactsData: [], ContactType: [], - customerContactsDataList: [], - rules: { - // customername: [ { required: true, message: '请选择客户名', trigger: 'blur' } ], - // mblno: [{ required: true, message: '请输入提单号', trigger: 'blur' }], - // carrierid: [{ required: true, message: '请选择船公司', trigger: 'blur' }], - // forwarder: [{ required: true, message: '请输入订舱代理', trigger: 'blur' }], - // pono: [{ required: true, message: '请输入PO NO', trigger: 'blur' }], - // hblno: [{ required: true, message: '请输入分提单号', trigger: 'blur' }], - // bookingno: [{ required: true, message: '请输入订舱编号', trigger: 'blur' }], - // contractno: [{ required: true, message: '请输入EP号/约号', trigger: 'blur' }], - // vessel: [{ required: true, message: '请输入船名', trigger: 'blur' }], - // lanecode: [{ required: true, message: '请输入航线代码', trigger: 'blur' }], - // voynoinner: [{ required: true, message: '请输入内部航次', trigger: 'blur' }], - // voyno: [{ required: true, message: '请输入海关航次', trigger: 'blur' }], - // etd: [{ required: true, message: '请选择开船日期', trigger: 'blur' }], - // atd: [{ required: true, message: '请选择实际开船日期', trigger: 'blur' }], - // lanename: [{ required: true, message: '请输入航线', trigger: 'blur' }], - // shipagency: [{ required: true, message: '请输入船代', trigger: 'blur' }], - // sale: [{ required: true, message: '请选择销售人员', trigger: 'blur' }], - // op: [{ required: true, message: '请选择操作人员', trigger: 'blur' }], - // doc: [{ required: true, message: '请选择单证人员', trigger: 'blur' }], - // custservice: [{ required: true, message: '请选择客服人员', trigger: 'blur' }] - } + customerContactsDataList: [] } }, computed: { @@ -907,15 +891,17 @@ export default { }, methods: { checkbasic () { - this.$refs.basicFrom.validate(valid => { - console.log(valid) - if (valid) { - console.log('验证成功!'); - return true; - } else { - console.log('验证失败!'); - return false; - } + return new Promise((resolve, reject) => { + this.$refs.basicFrom.validate(valid => { + console.log(valid) + if (valid) { + console.log('验证成功!'); + resolve(true); + } else { + console.log('验证失败!'); + reject(false); + } + }); }); }, // ========== 关系人弹窗 ========== @@ -1380,6 +1366,18 @@ export default { } } + + + + diff --git a/src/views/main/BookingLedger/detail/modules/billInfo.vue b/src/views/main/BookingLedger/detail/modules/billInfo.vue index 763b9a0..151a35c 100644 --- a/src/views/main/BookingLedger/detail/modules/billInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/billInfo.vue @@ -93,7 +93,7 @@ has-feedback prop="nobill" > - + ONE TWO THREE @@ -116,7 +116,7 @@ has-feedback prop="copynobilll" > - + ONE TWO THREE @@ -380,6 +380,12 @@ export default { default: () => { return {} } + }, + rules: { + type: Object, + default: () => { + return {} + } } }, data() { @@ -401,31 +407,7 @@ export default { prepardatData: [], payableatData: [], blfrtData: [], - serviceData: [], - rules: { - // issuetype: [ { required: true, message: '请选择签单方式', trigger: 'blur' } ], - // issuedate: [ { required: true, message: '请选择签单日期', trigger: 'blur' } ], - // issueplace: [ { required: true, message: '请选择签单地点', trigger: 'blur' } ], - // issueplaceid: [ { required: true, message: '请输入签单地代码', trigger: 'blur' } ], - // nobill: [ { required: true, message: '请选择提单份数', trigger: 'blur' } ], - // copynobilll: [ { required: true, message: '请选择副本份数', trigger: 'blur' } ], - // prepardat: [ { required: true, message: '请选择预付地点', trigger: 'blur' } ], - // payableat: [ { required: true, message: '请选择到付地点', trigger: 'blur' } ], - // blfrt: [ { required: true, message: '请选择付费方式', trigger: 'blur' } ], - // thirdpayaddr: [ { required: true, message: '请输入第三付款地', trigger: 'blur' } ], - // service: [ { required: true, message: '请选择运输条款', trigger: 'blur' } ], - // reeferf: [ { required: true, message: '请输入冷藏通风量', trigger: 'blur' } ], - // tempset: [ { required: true, message: '请输入温度', trigger: 'blur' } ], - // tempid: [ { required: true, message: '请选择温度单位', trigger: 'blur' } ], - // tempmin: [ { required: true, message: '请输入最低温度', trigger: 'blur' } ], - // tempmax: [ { required: true, message: '请输入最高温度', trigger: 'blur' } ], - // humidity: [ { required: true, message: '请输入湿度', trigger: 'blur' } ], - // dclass: [ { required: true, message: '请输入危险品等级', trigger: 'blur' } ], - // dunno: [ { required: true, message: '请输入危险品编号', trigger: 'blur' } ], - // dpage: [ { required: true, message: '请输入危险品页号', trigger: 'blur' } ], - // dlabel: [ { required: true, message: '请输入危险品标签', trigger: 'blur' } ], - // linkman: [ { required: true, message: '请输入危险品联系人', trigger: 'blur' } ], - } + serviceData: [] } }, watch: { @@ -714,11 +696,29 @@ export default { // 运输条款 - end // ===== 旧数据 ==== - handleChange() {} + handleCopyNoChange(value) { + this.details.copynobilll = value + console.log(this.details.copynobilll) + }, + handleNoChange(value) { + this.details.nobill = value + console.log(this.details.nobill) + + } } } + + +