diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 90a1023..5709670 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -390,7 +390,7 @@ export default { }, 800) }, beforeRouteLeave(to, from, next) { - // console.log('== 离开路由- beforeRouteLeave ==', this.bookingDetails.hbList, this.id, this.bookingDetails.hbList.length > 0 ? this.bookingDetails.hbList[0].hblno : '') + // console.log('== 离开路由- beforeRouteLeave ==') this.inChildLoading = true if (this.isCopy) { const hisData = { @@ -451,7 +451,7 @@ export default { }, beforeRouteEnter(to, from, next) { next(vm => { - // console.log('== 进入路由 - beforeRouteEnter ==', vm.inAddSave) + // console.log('== 进入路由 - beforeRouteEnter ==') vm.getRouterHis() }) }, diff --git a/src/views/main/BookingLedger/detail/modules/goodsTable.vue b/src/views/main/BookingLedger/detail/modules/goodsTable.vue index 01f5a7f..3f5fcd2 100644 --- a/src/views/main/BookingLedger/detail/modules/goodsTable.vue +++ b/src/views/main/BookingLedger/detail/modules/goodsTable.vue @@ -141,7 +141,7 @@ export default { title: '箱型', align: 'left', width: 80, - edit: true, + edit: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return ( { + console.log('== 进入路由 - beforeRouteEnter ==', vm.inAddSave) + vm.createdInit() + vm.onresize() + }) + }, created() { - this.showColumns = JSON.parse(JSON.stringify(initData.columns)) - this.formAllData = JSON.parse(JSON.stringify(initData.condAllData)) - this.fromTableAllData = JSON.parse(JSON.stringify(initData.columnsAllData)) - this.tableHeight = document.body.clientHeight - 300 - console.log('=== 列表创建 ===') - this.getFormData() - this.getTableList() - this.getPageSize() - this.getCarrier() + // this.createdInit() }, mounted() { - console.log('=== 列表 mounted ===') - window.onresize = () => { - this.screenWidth = document.body.clientWidth - } + // this.onresize() }, methods: { + createdInit () { + this.showColumns = JSON.parse(JSON.stringify(initData.columns)) + this.formAllData = JSON.parse(JSON.stringify(initData.condAllData)) + this.fromTableAllData = JSON.parse(JSON.stringify(initData.columnsAllData)) + this.tableHeight = document.body.clientHeight - 300 + // console.log('=== 列表创建 ===') + this.getFormData() + this.getTableList() + this.getPageSize() + this.getCarrier() + }, + onresize () { + // console.log('=== 列表加载完成 ===') + window.onresize = () => { + this.screenWidth = document.body.clientWidth + } + }, // 批量编辑 editingHandleOk() { const {