From 1ebed825b97d5b13938c691a6f48db668ccaf999 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 30 Oct 2025 15:44:32 +0800 Subject: [PATCH] =?UTF-8?q?2025-10-30=20=E9=94=80=E5=94=AE=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E8=A3=85=E7=AE=B1=E5=A2=9E=E5=8A=A0=E6=89=98=E6=B8=85?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/boxManage/boxManage.js | 11 +- .../boxManage/com_saleBoxManage_boxing.vue | 1 - .../boxManage/com_saleBoxManage_pallet.vue | 491 ++++++++++++++++++ src/views/modules/boxManage/saleBoxManage.vue | 56 +- 4 files changed, 549 insertions(+), 10 deletions(-) create mode 100644 src/views/modules/boxManage/com_saleBoxManage_pallet.vue diff --git a/src/api/boxManage/boxManage.js b/src/api/boxManage/boxManage.js index 6dd0a7f..5e70792 100644 --- a/src/api/boxManage/boxManage.js +++ b/src/api/boxManage/boxManage.js @@ -21,4 +21,13 @@ export const saveCaseRollList = data => createAPI('/boxForNotification/saveCaseR export const searchOutboundNotificationWithDetail = data => createAPI('/boxForNotification/searchOutboundNotificationWithDetail','post',data) // 更新出库通知单状态 -export const updateOrderStatus = data => createAPI('/boxForNotification/updateOrderStatus','post',data) \ No newline at end of file +export const updateOrderStatus = data => createAPI('/boxForNotification/updateOrderStatus','post',data) + +// ==================== 托清单相关接口 ==================== +export const searchPalletList = data => createAPI('/boxForNotification/searchPalletList','post',data) +export const newPallet = data => createAPI('/boxForNotification/newPallet','post',data) +export const searchPalletDetail = data => createAPI('/boxForNotification/searchPalletDetail','post',data) +export const deletePallet = data => createAPI('/boxForNotification/deletePallet','post',data) +export const updatePalletStatus = data => createAPI('/boxForNotification/updatePalletStatus','post',data) +export const scanPalletBox = data => createAPI('/boxForNotification/scanPalletBox','post',data) +export const deletePalletBox = data => createAPI('/boxForNotification/deletePalletBox','post',data) diff --git a/src/views/modules/boxManage/com_saleBoxManage_boxing.vue b/src/views/modules/boxManage/com_saleBoxManage_boxing.vue index bd79098..21ef2ad 100644 --- a/src/views/modules/boxManage/com_saleBoxManage_boxing.vue +++ b/src/views/modules/boxManage/com_saleBoxManage_boxing.vue @@ -353,7 +353,6 @@ export default { boxNo: data.boxNo, buNo: this.searchData.buNo, } - console.log(data2) this.searchBox(data2) this.boxModelFlag = true this.boxActionType='add' diff --git a/src/views/modules/boxManage/com_saleBoxManage_pallet.vue b/src/views/modules/boxManage/com_saleBoxManage_pallet.vue new file mode 100644 index 0000000..25320c4 --- /dev/null +++ b/src/views/modules/boxManage/com_saleBoxManage_pallet.vue @@ -0,0 +1,491 @@ + + + + + + diff --git a/src/views/modules/boxManage/saleBoxManage.vue b/src/views/modules/boxManage/saleBoxManage.vue index a9a1ec9..6954f06 100644 --- a/src/views/modules/boxManage/saleBoxManage.vue +++ b/src/views/modules/boxManage/saleBoxManage.vue @@ -150,6 +150,9 @@ + + + { + if (!this.$refs.boxing) { + return; + } + let inData={ + site: this.currentRow.site, + buNo: this.currentRow.buNo, + orderNo: this.currentRow.orderNo, + boxType: this.currentRow.orderType, + height:Number(this.height)-25, + orderStatus: this.currentRow.orderStatus + } + this.$refs.boxing.init(inData) + }) + }, + refreshPalletTable(){ + this.$nextTick(() => { + // 检查组件引用是否存在 + if (!this.$refs.pallet) { + return; + } + // 检查 init 方法是否存在且是函数 + if (typeof this.$refs.pallet.init !== 'function') { + return; + } + + // 准备初始化数据,即使没有选中行也要初始化组件 + let inData={ + site: this.currentRow ? this.currentRow.site : '', + buNo: this.currentRow ? this.currentRow.buNo : '', + orderNo: this.currentRow ? this.currentRow.orderNo : '', + palletType: this.currentRow ? this.currentRow.orderType : '', + height: Number(this.height)-25, + orderStatus: this.currentRow ? this.currentRow.orderStatus : '' + } + this.$refs.pallet.init(inData) + }) }, refreshRollsTable(){ let templateData = {