diff --git a/src/views/main/BookingLedger/detail/components/sedOrder.vue b/src/views/main/BookingLedger/detail/components/sedOrder.vue index 7006e92..21ce60b 100644 --- a/src/views/main/BookingLedger/detail/components/sedOrder.vue +++ b/src/views/main/BookingLedger/detail/components/sedOrder.vue @@ -289,7 +289,7 @@ export default { } let data = JSON.parse(JSON.stringify(this.editDetails)) delete data.isNoSave - data.parentId = this.$route.query.id + data.parentid = this.$route.query.id data.id = 0 data.ctnInputs.map((item, index) => { item.id = 0 diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 9d4d75d..a8ad682 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -426,6 +426,9 @@ export default { this.tabActiveKey = $data.tabActiveKey this.isCopy = this.$route.query.isCopy this.inPageLoading = false + if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) { + this.Showtabs = true + } setTimeout(() => { this.inChildLoading = false if (!Object.keys(this.needSavePages).includes(this.$route.fullPath)) { @@ -448,6 +451,9 @@ export default { // console.log('== 新增复制, 这里置空了提单号 ==') this.bookingDetails.mblno = '' } + if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) { + this.Showtabs = true + } setTimeout(() => { this.inChildLoading = false if (!Object.keys(this.needSavePages).includes(this.$route.fullPath)) { @@ -465,6 +471,9 @@ export default { this.tabActiveKey = $data.tabActiveKey this.isCopy = this.$route.query.isCopy this.inPageLoading = false + if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) { + this.Showtabs = true + } // console.log('== 复制参数 ==', $data.isCopy, this.$route.query.isCopy, this.isCopy) if (this.isCopy && !$data.isCopy) { // console.log('== 新增复制, 这里置空了提单号 ==') @@ -660,7 +669,7 @@ export default { this.isAdd = false this.id = res.data this.$message.success('保存成功') - this.bookingDetails = JSON.parse(JSON.stringify(initDetail)) + // this.bookingDetails = JSON.parse(JSON.stringify(initDetail)) this.$router.replace({ name: 'BookingDetail', query: { @@ -715,7 +724,6 @@ export default { Object.keys(this.needSavePages).includes(key) && (this.needSavePages[key].details || this.needSavePages[key].hbList) ) { - // console.log('== 切换上一票下一票 - biu 弹窗出现 ==') this.$confirm({ title: '请确认无未保存数据!', content: '当点击确定按钮时,此页面 将会关闭。', diff --git a/src/views/main/BookingLedger/detail/modules/goodsTable.vue b/src/views/main/BookingLedger/detail/modules/goodsTable.vue index c6085df..ce6a90c 100644 --- a/src/views/main/BookingLedger/detail/modules/goodsTable.vue +++ b/src/views/main/BookingLedger/detail/modules/goodsTable.vue @@ -21,6 +21,7 @@ :columns="columns" :table-data="tableData" borderY + style="min-width:970;" :cell-autofill-option="cellAutofillOption" :editOption="editOption" rowKeyFieldName="rowKey" @@ -120,32 +121,30 @@ export default { renderBodyCell: ({ row, column, rowIndex }, h) => { return ( // - // { - // - // } - // { - // - // - // - // } - // + // allowClear={true} + // value={row['ctnall']} + // class="customer-input" + // > + // { + // + // } + // { + // + // + // + // } + // { @@ -204,6 +203,7 @@ export default { return ( - {{ details.yard || '--' }} + + + + {{ yard.selectShowTab }} + + @@ -291,7 +305,7 @@ :wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }" has-feedback > - {{ details.yardcontract || '--' }} + @@ -301,7 +315,7 @@ :wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }" has-feedback > - {{ details.yardcontracttel || '--' }} + @@ -311,7 +325,16 @@ :wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }" has-feedback > - {{ details.closingdate || '--' }} + + + + @@ -321,7 +344,16 @@ :wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }" has-feedback > - {{ details.closedocdate || '--' }} + + + + @@ -331,7 +363,16 @@ :wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }" has-feedback > - {{ details.closevgmdate || '--' }} + + + + @@ -345,6 +386,7 @@ >
{ if (res.success) { @@ -1514,6 +1567,52 @@ export default { .catch(err => { console.log(err) }) + }, + getYardlist(name = '') { + GetYardlist({ + keyword: name + }) + .then(res => { + if (res.code === 200) { + this.yardData = res.data + const arr = [] + res.data.map((item, index) => { + arr.push({ + ...{ selectShowTab: item.name + ' / ' + item.code }, + ...item + }) + }) + this.yardSelectData = arr + this.$forceUpdate() + } + }) + .catch(err => { + console.log(err) + }) + }, + yardSelect(value) { + this.details.yard = value + const index = this.yardDataArr.indexOf(value) + this.details.yardid = this.yardData[index].code + }, + yardChange(value) { + // this.getYardlist(value) + }, + handleYardChange(index) { + this.initCabinFrom.yard = this.yardSelectData[index].name + this.initCabinFrom.yardid = this.yardSelectData[index].code + }, + filterOption(input, option) { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + closingdateChange (date, dateString) { + this.initCabinFrom.closingTime = dateString + }, + closevgmdateChange (date, dateString) { + this.initCabinFrom.vgmTime = dateString + }, + closedocdateChange (date, dateString) { + this.initCabinFrom.closeDocTime = dateString } } } @@ -1771,6 +1870,66 @@ export default { opacity: 0.04; } } +/deep/ .ant-select-selection{ + position: relative; + z-index: 1; + &::after { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: -1; + background-color: @primary-color !important; + opacity: 0.04; + } +} +/deep/ .ant-calendar-picker{ + position: relative; + z-index: 1; + &::after { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: -1; + background-color: @primary-color !important; + opacity: 0.04; + } +} +/deep/ .ant-input-affix-wrapper, .ant-input-affix-wrapper-textarea-with-clear-btn{ + position: relative; + z-index: 1; + &::after { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: -1; + background-color: @primary-color !important; + opacity: 0.04; + } +} +.remark-input{ + position: relative; + z-index: 1; + &::after { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: -1; + background-color: @primary-color !important; + opacity: 0.04; + } +} /deep/ .ant-modal-body .ant-input { background: none; } diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index eaed6c6..70749fa 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -14,7 +14,7 @@
- +