From 247f688c7410d9d38fdaaee4cf8d8bdbb7643977 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Tue, 15 Apr 2025 14:28:05 +0800 Subject: [PATCH] 20250414 --- src/api/board.js | 3 + src/views/modules/board/PartInventory.vue | 79 --- src/views/modules/board/partInventory.vue | 673 ++++++++++++++++++++++ src/views/modules/production/bagPrint.vue | 6 + 4 files changed, 682 insertions(+), 79 deletions(-) delete mode 100644 src/views/modules/board/PartInventory.vue create mode 100644 src/views/modules/board/partInventory.vue diff --git a/src/api/board.js b/src/api/board.js index 4020f15..a7b2501 100644 --- a/src/api/board.js +++ b/src/api/board.js @@ -29,3 +29,6 @@ export const getSopAddress= data => createAPI(`board/getSopAddress`,'post',data) export const searchBIBoardAddress= data => createAPI(`board/searchBIBoardAddress`,'post',data) + + +export const queryPartInventory = (data) => createAPI(`/inventory`,'post',data) diff --git a/src/views/modules/board/PartInventory.vue b/src/views/modules/board/PartInventory.vue deleted file mode 100644 index 95f72c3..0000000 --- a/src/views/modules/board/PartInventory.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - - - diff --git a/src/views/modules/board/partInventory.vue b/src/views/modules/board/partInventory.vue new file mode 100644 index 0000000..9541760 --- /dev/null +++ b/src/views/modules/board/partInventory.vue @@ -0,0 +1,673 @@ + + + + + diff --git a/src/views/modules/production/bagPrint.vue b/src/views/modules/production/bagPrint.vue index 8dabc8a..082063f 100644 --- a/src/views/modules/production/bagPrint.vue +++ b/src/views/modules/production/bagPrint.vue @@ -50,6 +50,12 @@ export default { if (data && data.code === 0) { this.dataList = data.rows; this.total = data.total; + if (this.queryParams.parentId){ + for (let i = 0; i < this.dataList.length; i++) { + let row = this.dataList[i]; + this.packagePrintDataList(row) + } + } }else { this.$message.warning(data.msg); }