From 164cecf1c2c884b74a8f962ef7f0db90213d35dd Mon Sep 17 00:00:00 2001 From: lilu Date: Wed, 14 Dec 2022 11:58:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modular/main/BookingLedger.js | 3 +- src/components/MultiTab/MultiTab.vue | 50 +++++----- src/views/main/BookingLedger/detail/index.vue | 94 +++++++++++++++++-- .../detail/modules/basicInfo.vue | 31 +++++- .../BookingLedger/detail/modules/billInfo.vue | 10 ++ .../detail/modules/goodsTable.vue | 17 ++++ .../detail/modules/mailingInfo.vue | 48 ++++++++-- .../detail/modules/operationArea.vue | 4 +- .../detail/modules/rightContent.vue | 1 + src/views/main/BookingLedger/list/index.vue | 38 ++++++-- 10 files changed, 245 insertions(+), 51 deletions(-) diff --git a/src/api/modular/main/BookingLedger.js b/src/api/modular/main/BookingLedger.js index bca9f41..f71a9e0 100644 --- a/src/api/modular/main/BookingLedger.js +++ b/src/api/modular/main/BookingLedger.js @@ -450,8 +450,7 @@ export function TxxpLink(parameter) { export function ExcuteRulesOceanBooking(parameter) { return axios({ url: '/RulesEngineClient/ExcuteRulesOceanBooking?bookingId=' + parameter, - method: 'get', - params: parameter + method: 'get' }) } diff --git a/src/components/MultiTab/MultiTab.vue b/src/components/MultiTab/MultiTab.vue index 466879a..dd53117 100644 --- a/src/components/MultiTab/MultiTab.vue +++ b/src/components/MultiTab/MultiTab.vue @@ -32,7 +32,7 @@ export default { this.closeThat(val) }) .$on('rename', ({ key, name }) => { - console.log('rename', key, name) + // console.log('rename', key, name) try { const item = this.pages.find(item => item.path === key) item.meta.customTitle = name @@ -48,35 +48,41 @@ export default { ...mapActions(['setNeedSavePages']), onEdit(targetKey, action) { const _that = this - console.log(this.needSavePages[targetKey]) - if (this.needSavePages[targetKey].details || this.needSavePages[targetKey].hbList) { - this.$confirm({ - title: '请确认无未保存数据!', - content: '当点击确定按钮时,此页面 将会关闭。', - cancelText: targetKey === _that.activeKey ? '取消' : '前往保存', - onOk() { - _that[action](targetKey) - const $data = _that.needSavePages - delete $data[targetKey] - _that.setNeedSavePages($data) - }, - onCancel() { - _that.activeKey = targetKey - } - }) + // console.log(this.needSavePages[targetKey]) + if (targetKey.includes('BookingDetail')) { + if (this.needSavePages[targetKey].details || this.needSavePages[targetKey].hbList) { + this.$confirm({ + title: '请确认无未保存数据!', + content: '当点击确定按钮时,此页面 将会关闭。', + cancelText: targetKey === _that.activeKey ? '取消' : '前往保存', + onOk() { + _that[action](targetKey) + const $data = _that.needSavePages + delete $data[targetKey] + _that.setNeedSavePages($data) + }, + onCancel() { + _that.activeKey = targetKey + } + }) + } else { + this[action](targetKey) + const $data = this.needSavePages + delete $data[targetKey] + this.setNeedSavePages($data) + } } else { this[action](targetKey) - const $data = this.needSavePages - delete $data[targetKey] - this.setNeedSavePages($data) } - console.log('关闭?', targetKey, action) + // console.log('关闭?', targetKey, action) }, remove(targetKey) { this.pages = this.pages.filter(page => page.fullPath !== targetKey) this.fullPathList = this.fullPathList.filter(path => path !== targetKey) + console.log('== 关闭 ==') // 判断当前标签是否关闭,若关闭则跳转到最后一个还存在的标签页 if (!this.fullPathList.includes(this.activeKey)) { + console.log('=== 最后一个标签页 ===') this.selectedLastPath() } }, @@ -148,7 +154,7 @@ export default { }, // render renderTabPane(title, keyPath) { - console.log(title, keyPath) + // console.log(title, keyPath) let name = title let data = Object.fromEntries(new URLSearchParams(keyPath.split('?')[1])) const menu = this.renderTabPaneMenu(keyPath) diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index f877c83..54dd3c4 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -271,7 +271,34 @@ export default { this.init() }, beforeRouteUpdate(to, from, next) { - if (!Object.keys(this.historyData).includes(this.$route.query.id)) { + // console.log('fromId:', from.query.id, '| toId:', to.query.id) + // console.log('2.2 === beforeRouteUpdate ===', this.$route.query.id, this.isCopy) + // if (!Object.keys(this.historyData).includes(this.$route.query.id)) { + // const hisData = { + // bookingDetails: this.bookingDetails, + // excuteRules: this.excuteRules, + // excuteRulesType: this.excuteRulesType, + // isAdd: this.isAdd, + // tabActiveKey: this.tabActiveKey, + // type: this.type, + // isCopy: this.isCopy, + // id: this.$route.query.id + // } + // this.$set(this.historyData, this.$route.query.id, hisData) + // } + if (this.isCopy) { + const hisData = { + bookingDetails: this.bookingDetails, + excuteRules: this.excuteRules, + excuteRulesType: this.excuteRulesType, + isAdd: this.isAdd, + tabActiveKey: this.tabActiveKey, + type: this.type, + isCopy: this.isCopy, + id: this.id + } + this.$set(this.historyData, `copy-${this.id}`, hisData) + } else { const hisData = { bookingDetails: this.bookingDetails, excuteRules: this.excuteRules, @@ -280,15 +307,41 @@ export default { tabActiveKey: this.tabActiveKey, type: this.type, isCopy: this.isCopy, - id: this.$route.query.id + id: this.id } - this.$set(this.historyData, this.$route.query.id, hisData) + this.$set(this.historyData, this.id, hisData) } next() this.getRouterHis() }, beforeRouteLeave(to, from, next) { - if (!Object.keys(this.historyData).includes(this.id)) { + // console.log('2.1 === beforeRouteLeave ===', this.id, this.isCopy) + // if (!Object.keys(this.historyData).includes(this.id)) { + // const hisData = { + // bookingDetails: this.bookingDetails, + // excuteRules: this.excuteRules, + // excuteRulesType: this.excuteRulesType, + // isAdd: this.isAdd, + // tabActiveKey: this.tabActiveKey, + // type: this.type, + // isCopy: this.isCopy, + // id: this.id + // } + // this.$set(this.historyData, this.id, hisData) + // } + if (this.isCopy) { + const hisData = { + bookingDetails: this.bookingDetails, + excuteRules: this.excuteRules, + excuteRulesType: this.excuteRulesType, + isAdd: this.isAdd, + tabActiveKey: this.tabActiveKey, + type: this.type, + isCopy: this.isCopy, + id: this.id + } + this.$set(this.historyData, `copy-${this.id}`, hisData) + } else { const hisData = { bookingDetails: this.bookingDetails, excuteRules: this.excuteRules, @@ -311,16 +364,35 @@ export default { methods: { ...mapActions(['setNeedSavePages']), getRouterHis() { + // console.log('2.3 === beforeRouteEnter - getRouterHis ===', Object.keys(this.historyData), this.$route.query.id) const newId = this.$route.query.id - if (Object.keys(this.historyData).includes(newId)) { - const $data = this.historyData[newId] + if (Object.keys(this.historyData).includes(`copy-${newId}`) && this.$route.query.isCopy === 'true') { + this.id = this.$route.query.id + const $data = JSON.parse(JSON.stringify(this.historyData[`copy-${newId}`])) this.bookingDetails = $data.bookingDetails this.excuteRules = $data.excuteRules this.excuteRulesType = $data.excuteRulesType this.isAdd = $data.isAdd this.tabActiveKey = $data.tabActiveKey - this.isCopy = $data.isCopy + this.isCopy = this.$route.query.isCopy this.inPageLoading = false + // console.log('== 复制参数 ==', $data.isCopy, this.$route.query.isCopy, this.isCopy) + this.$forceUpdate() + } else if (Object.keys(this.historyData).includes(newId)) { + this.id = this.$route.query.id + const $data = JSON.parse(JSON.stringify(this.historyData[newId])) + this.bookingDetails = $data.bookingDetails + this.excuteRules = $data.excuteRules + this.excuteRulesType = $data.excuteRulesType + this.isAdd = $data.isAdd + this.tabActiveKey = $data.tabActiveKey + this.isCopy = this.$route.query.isCopy + this.inPageLoading = false + // console.log('== 复制参数 ==', $data.isCopy, this.$route.query.isCopy, this.isCopy) + if (this.isCopy && !$data.isCopy) { + // console.log('== 新增复制, 这里置空了提单号 ==') + this.bookingDetails.mblno = '' + } this.$forceUpdate() } else { this.id = this.$route.query.id @@ -332,11 +404,11 @@ export default { } }, init() { - // this.bookingDetails = {} this.bookingDetails = initDetail this.excuteRules = [] this.excuteRulesType = '' this.Showtabs = false + // console.log('3.1 == init ==', this.id) if (this.id) { this.isAdd = false this.getDetail() @@ -377,6 +449,7 @@ export default { } this.inPageLoading = true this.$message.loading({ content: '加载中...' }); + // console.log('4.1 == 获取详情 ==', this.id) BookingOrderGet({ id: this.id }) @@ -384,7 +457,8 @@ export default { this.inPageLoading = false this.$message.destroy() this.$message.success({ content: '加载完成' }) - if (this.isCopy) { + // console.log('isCopy', this.$route.query.isCopy) + if (this.$route.query.isCopy) { res.data.mblno = '' this.isAdd = true } @@ -429,8 +503,10 @@ export default { this.isAdd = false this.$message.success('保存成功') if (this.$route.query.mblno === this.bookingDetails.mblno) { + // console.log('1.1 == 保存成功 - 不切换路由 ==', this.id) this.init() } else { + // console.log('1.2 == 保存成功 - 刷新路由 ==', this.id) this.$router.replace({ name: 'BookingDetail', query: { id: this.id, type: this.bookingDetails.carrierid, noOpenTab: true, mblno: this.bookingDetails.mblno } diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index 7a48c23..69caafd 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -10,12 +10,15 @@ + > + { item.WroleCode = '' + item.bookingId = this.$route.query.id if (item.roleCode) { item.roleCode.forEach(e => { this.ContactType.forEach(item2 => { @@ -807,7 +829,6 @@ export default { item.roleCode = item.WroleCode // } }) - debugger BookingOrderContactSavebatch(this.$route.query.id, data).then(res => { if (res.success) { this.$message.success('保存成功') @@ -909,8 +930,8 @@ export default { }, handleCarrierChange(data) { this.carrierSelectData.forEach(item => { - if (item.code == data) { - this.details.carrier = item.cnName + if (item.code === data) { + this.details.carrier = item.enName } }) }, @@ -1074,7 +1095,7 @@ export default { console.log(res.data.contacts) this.customerContactsData = res.data.contacts }) - BookingOrderContactPage({ id: this.details.customerid, pageSize: 999 }).then(res => { + BookingOrderContactPage({ id: this.details.customerid, BookingId: this.$route.query.id, pageSize: 999 }).then(res => { res.data.rows.forEach(item => { let WroleCode = [] if (item.roleCode) { diff --git a/src/views/main/BookingLedger/detail/modules/billInfo.vue b/src/views/main/BookingLedger/detail/modules/billInfo.vue index 3e51b79..21b342a 100644 --- a/src/views/main/BookingLedger/detail/modules/billInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/billInfo.vue @@ -59,6 +59,8 @@ { + kgs += Number(item.kgs) + }) + this.totalKgs = kgs + + let cbm = 0 + this.tableData.map((item, index) => { + cbm += Number(item.cbm) + }) + this.totalCbm = cbm + + let pkgs = 0 + this.tableData.map((item, index) => { + pkgs += Number(item.pkgs) + }) + this.totalPkgs = pkgs }, openDialog() { if (this.tableData.length === 0) { diff --git a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue index 537f3a3..6e1eac2 100644 --- a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue @@ -6,7 +6,7 @@
- +
发货人
@@ -15,6 +15,8 @@ v-model="shippername" class="customer-input" :data-source="shipperDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '200px'}" @select="shipperSelect" @change="shipperChange" @focus="shipperChange" @@ -53,6 +55,8 @@ v-model="consigneename" class="customer-input" :data-source="consigneeDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '200px'}" @select="consigneeSelect" @change="consigneeChange" @focus="consigneeChange" @@ -122,7 +126,7 @@
- + @@ -179,6 +183,8 @@ v-model="details.customser" class="customer-input" :data-source="customserDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '200px'}" @select="customserSelect" @change="customserChange" @focus="customserChange" @@ -198,6 +204,8 @@ v-model="details.trucker" class="customer-input" :data-source="truckerDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '200px'}" @select="truckerSelect" @change="truckerChange" @focus="truckerChange" @@ -217,6 +225,8 @@ v-model="details.agentid" class="customer-input" :data-source="agentidDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '200px'}" @select="agentidSelect" @change="agentidChange" @focus="agentidChange" @@ -303,6 +313,8 @@ v-model="details.portload" class="customer-input" :data-source="portloadDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '300px'}" @select="portloadSelect" @change="portloadChange" @focus="portloadChange" @@ -333,6 +345,8 @@ v-model="details.transport" class="customer-input" :data-source="transportDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '300px'}" @select="transportSelect" @change="transportChange" @focus="transportChange" @@ -363,6 +377,8 @@ v-model="details.portdischarge" class="customer-input" :data-source="portdischargeDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '300px'}" @select="portdischargeSelect" @change="portdischargeChange" @focus="portdischargeChange" @@ -393,6 +409,8 @@ v-model="details.destination" class="customer-input" :data-source="destinationDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '300px'}" @select="destinationSelect" @change="destinationChange" @focus="destinationChange" @@ -423,6 +441,8 @@ v-model="details.placedelivery" class="customer-input" :data-source="placedeliveryDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '300px'}" @select="placedeliverySelect" @change="placedeliveryChange" @focus="placedeliveryChange" @@ -453,6 +473,8 @@ v-model="details.placereceipt" class="customer-input" :data-source="placereceiptDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '300px'}" @select="placereceiptSelect" @change="placereceiptChange" @focus="placereceiptChange" @@ -494,6 +516,8 @@ v-model="details.kindpkgs" class="customer-input" :data-source="kindpkgsDataArr" + :dropdown-match-select-width="false" + :dropdown-style="{ width: '200px'}" @select="kindpkgsSelect" @change="kindpkgsChange" @focus="kindpkgsChange" @@ -1184,6 +1208,10 @@ export default { this.modelContent = this.details[type] }, handleModelSubmit() { + if (!this.modelName) { + this.$message.error('请输入模板名称') + return false + } const type = this.enmuType(this.modelType) BookingTemplateAdd({ title: this.modelName, @@ -1208,7 +1236,7 @@ export default { return 10 case 'consignee': return 20 - case 'notifypart': + case 'notifyparty': return 30 case 'notify': return 30 @@ -1406,6 +1434,8 @@ export default { margin-bottom: 20px; .top { margin-bottom: 15px; + min-height: 32px; + overflow: hidden; .name { display: inline-block; font-size: 13px; @@ -1520,6 +1550,12 @@ export default { cursor: pointer; } } +.content{ + .label{ + margin-bottom: 10px; + font-size: 14px; + } +} .feeself { position: absolute; top: -3px; @@ -1534,10 +1570,10 @@ export default { border-bottom: none; } -@media (max-width: 1300px) { +@media (max-width: 1700px) { .feeself{ - top: 21px; - right: -26px; + top: 21px !important; + right: -26px !important; } } diff --git a/src/views/main/BookingLedger/detail/modules/operationArea.vue b/src/views/main/BookingLedger/detail/modules/operationArea.vue index 13aecb3..f730830 100644 --- a/src/views/main/BookingLedger/detail/modules/operationArea.vue +++ b/src/views/main/BookingLedger/detail/modules/operationArea.vue @@ -683,10 +683,12 @@ export default { uploadFile(file) { const formData = new FormData() formData.append('file', file.file) + const type = file.file.type + console.log(type) BookingOrderOcrUpFile(formData).then(res => { this.fileName = res.data BookingOrderOcrGetImg({ fileName: this.fileName, scale: this.scale }).then(res => { - this.imgSrc = window.URL.createObjectURL(new Blob([res])) + this.imgSrc = window.URL.createObjectURL(new Blob([res], { type: `${type};chartset=UTF-8` })) }) }) }, diff --git a/src/views/main/BookingLedger/detail/modules/rightContent.vue b/src/views/main/BookingLedger/detail/modules/rightContent.vue index 9127040..606f6be 100644 --- a/src/views/main/BookingLedger/detail/modules/rightContent.vue +++ b/src/views/main/BookingLedger/detail/modules/rightContent.vue @@ -421,6 +421,7 @@ export default { this.upFileList = newFileList }, beforeUpload(file) { + debugger this.upFileList = [...this.upFileList, file] return false }, diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index 98952a8..eb038bd 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -27,7 +27,7 @@ - + - + {{ advanced ? '收起查询' : '更多查询' }} @@ -206,6 +206,7 @@ export default { formAllData: null, formMoreData: null, formBtnCol: 8, + formBtnLoading: false, // 表格 setVisible: false, showColumns: null, @@ -328,11 +329,13 @@ export default { }) this.getList(this.formRes) const len = this.formData.length % 4 - if (len > 2) { - this.formBtnCol = 24 + if (this.formData.length === 4 || this.formData.length > 4) { + this.formBtnCol = 8 } else { - this.formBtnCol = 24 - len * 6 + this.formBtnCol = 24 - len * 4 } + console.log('formBtnCol', this.formBtnCol) + this.$forceUpdate() }) }, getTableList() { @@ -378,6 +381,17 @@ export default { // form toggleAdvanced() { this.advanced = !this.advanced + if (!this.advanced) { + const len = this.formData.length % 4 + if (this.formData.length === 4 || this.formData.length > 4) { + this.formBtnCol = 8 + } else { + this.formBtnCol = 24 - len * 4 + } + } else { + const len = this.formData.length % 6 + this.formBtnCol = 24 - len * 4 + } }, tableRefresh() { let data = { ...this.formRes } @@ -388,7 +402,8 @@ export default { const arr = this.formRes.MBLNO.split(/-|,|,|[.]/) let val = `` arr.map((item, index) => { - val += `${item}` + val += `${item} +` // 这里不要格式化 }) this.moreNumVal = val this.moreNumVisible = !this.moreNumVisible @@ -429,12 +444,19 @@ export default { const arr = data.map((item, index) => { return item.label }) + console.log(arr) + this.formRes = {} DjyUserConfigAdd({ type: 'booking_list_cond', configJson: JSON.stringify(arr) }).then(res => { this.$message.success('保存成功') this.$refs.setForm.handleCancel() + Object.keys(this.$refs).map((label, index) => { + if (label.includes('fromlabel-') && this.$refs[label].length > 0) { + this.$refs[label][0].$data.value = '' + } + }) this.init() }) }, @@ -519,6 +541,10 @@ export default { if (this.tableOrderType !== '') { query.DescStr = this.tableOrderType === 'desc' } + if (query.MBLNO && query.MBLNO.split(/-|,|,|[.]/).length > 0) { + const arr = this.formRes.MBLNO.split(/-|,|,|[.]/) + query.MBLNO = arr.toString() + } BookingOrderPage(query) .then(res => { if (res.success) { From 30ed956eabe3ad56c921cf141264b0a2ec091689 Mon Sep 17 00:00:00 2001 From: lilu Date: Wed, 14 Dec 2022 15:25:32 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=97=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MultiTab/MultiTab.vue | 5 ++++- src/views/main/BookingLedger/list/index.vue | 1 + src/views/main/BookingLedger/list/modules/initData.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/MultiTab/MultiTab.vue b/src/components/MultiTab/MultiTab.vue index dd53117..7a62064 100644 --- a/src/components/MultiTab/MultiTab.vue +++ b/src/components/MultiTab/MultiTab.vue @@ -48,7 +48,7 @@ export default { ...mapActions(['setNeedSavePages']), onEdit(targetKey, action) { const _that = this - // console.log(this.needSavePages[targetKey]) + console.log(this.needSavePages[targetKey], targetKey) if (targetKey.includes('BookingDetail')) { if (this.needSavePages[targetKey].details || this.needSavePages[targetKey].hbList) { this.$confirm({ @@ -100,6 +100,7 @@ export default { } }, closeLeft(e) { + console.log('=== 测试点1 ===') const currentIndex = this.fullPathList.indexOf(e) if (currentIndex > 0) { this.fullPathList.forEach((item, index) => { @@ -112,6 +113,7 @@ export default { } }, closeRight(e) { + console.log('=== 测试点2 ===') const currentIndex = this.fullPathList.indexOf(e) if (currentIndex < this.fullPathList.length - 1) { this.fullPathList.forEach((item, index) => { @@ -124,6 +126,7 @@ export default { } }, closeAll(e) { + console.log('=== 测试点3 ===') const currentIndex = this.fullPathList.indexOf(e) this.fullPathList.forEach((item, index) => { if (index !== currentIndex) { diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index eb038bd..8b03b06 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -368,6 +368,7 @@ export default { this.formMoreTableData = moreTableArr this.$forceUpdate() } + console.log('== 表头 ==', this.gridOptions.columns) }) // === 历史内容 === console.log('表格自定义数据 - 更多: ', this.formMoreTableData) diff --git a/src/views/main/BookingLedger/list/modules/initData.js b/src/views/main/BookingLedger/list/modules/initData.js index 8a7088a..30b4bad 100644 --- a/src/views/main/BookingLedger/list/modules/initData.js +++ b/src/views/main/BookingLedger/list/modules/initData.js @@ -31,7 +31,7 @@ export default { { field: 'createdUserName', label: 'CREATEDUSERNAME', width: 120, title: '创建人', showHeaderOverflow: true, sortable: true }, { field: 'createdTime', label: 'CREATEDTIME', width: 160, title: '创建时间', showHeaderOverflow: true, sortable: true }, { field: 'cntrtotal', label: 'CNTRTOTAL', width: 120, title: '箱型箱量', showHeaderOverflow: true, sortable: true }, - { field: 'operate', title: '操作', width: 80, noDraggable: true, slots: { default: 'operate' }, fixed: 'right' } + { field: 'operate', title: '操作', width: 80, noDraggable: true, slots: { default: 'operate' }, fixed: 'right', resizable: false } ], columnsAllData: [ { field: 'carrier', width: 120, title: '船公司', showHeaderOverflow: true, sortable: true }, From b29c785b370b95427fce97f59e73ba6cdc930f2d Mon Sep 17 00:00:00 2001 From: lilu Date: Wed, 14 Dec 2022 16:27:26 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=9B=9E=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/BookingLedger/list/index.vue | 4 ++++ src/views/main/BookingLedger/list/modules/formLabel.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index 8b03b06..5fc59c5 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -23,6 +23,7 @@ :labelData="formLabel" @change="formChange" :formRes="formRes" + @pressEnter="pressEnterFun" > @@ -695,6 +696,9 @@ export default { default: return '--' } + }, + pressEnterFun () { + this.tableRefresh() } } } diff --git a/src/views/main/BookingLedger/list/modules/formLabel.vue b/src/views/main/BookingLedger/list/modules/formLabel.vue index 6469606..25e1d04 100644 --- a/src/views/main/BookingLedger/list/modules/formLabel.vue +++ b/src/views/main/BookingLedger/list/modules/formLabel.vue @@ -1,7 +1,7 @@