From 347f400578016b6b3fa9d768887303323f8ceef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 30 Jul 2025 10:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../KLPService/RawMaterialSelect/index.vue | 26 ++----- klp-ui/src/store/modules/category.js | 19 ++--- klp-ui/src/views/wms/print/index.vue | 72 +++++++++++++++++++ klp-ui/src/views/wms/print/scaner.vue | 0 klp-ui/src/views/wms/purchasePlan/index.vue | 4 +- .../panels/CreatePurchasePanel.vue | 56 +++------------ .../views/wms/purchasePlan/panels/detail.vue | 4 +- klp-ui/src/views/wms/stockIo/index.vue | 54 +++++++------- .../src/views/wms/stockIo/panels/barcode.vue | 24 ++----- 9 files changed, 137 insertions(+), 122 deletions(-) create mode 100644 klp-ui/src/views/wms/print/index.vue create mode 100644 klp-ui/src/views/wms/print/scaner.vue diff --git a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue index 2d02f930..e778c462 100644 --- a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue +++ b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue @@ -25,16 +25,7 @@ + \ No newline at end of file diff --git a/klp-ui/src/views/wms/print/scaner.vue b/klp-ui/src/views/wms/print/scaner.vue new file mode 100644 index 00000000..e69de29b diff --git a/klp-ui/src/views/wms/purchasePlan/index.vue b/klp-ui/src/views/wms/purchasePlan/index.vue index 06df6e1c..a983c820 100644 --- a/klp-ui/src/views/wms/purchasePlan/index.vue +++ b/klp-ui/src/views/wms/purchasePlan/index.vue @@ -117,8 +117,8 @@ /> - - + + diff --git a/klp-ui/src/views/wms/purchasePlan/panels/CreatePurchasePanel.vue b/klp-ui/src/views/wms/purchasePlan/panels/CreatePurchasePanel.vue index f60a8ade..a45e4f3e 100644 --- a/klp-ui/src/views/wms/purchasePlan/panels/CreatePurchasePanel.vue +++ b/klp-ui/src/views/wms/purchasePlan/panels/CreatePurchasePanel.vue @@ -8,56 +8,16 @@ - + -
- - -
原料区(待筛选)
-
- - 筛选 -
- - - - - - - -
- -
- 添加到采购 >> - << 移除 -
+
- +
采购单明细
- - + + + @@ -206,7 +206,7 @@ /> - - + -->
@@ -297,13 +297,13 @@ export default { detailDialogVisible: false, detailStockIo: null, // 条码打印抽屉相关 - drawerBarcodeVisible: false, - drawerBarcodeData: { - barcodes: [], - perRow: 3, - barcodeWidth: 180, - barcodeHeight: 60 - }, + // drawerBarcodeVisible: false, + // drawerBarcodeData: { + // barcodes: [], + // perRow: 3, + // barcodeWidth: 180, + // barcodeHeight: 60 + // }, }; }, created() { @@ -438,22 +438,22 @@ export default { // 刷新列表 this.getList(); }, - async handleShowBarcodeDrawer(row) { - // 获取明细列表 - const res = await listStockIoDetail({ stockIoId: row.stockIoId }); - const details = res.data || res.rows || []; - // 拼接条码内容 stockIoId_warehouseId_materialId_quantity - const barcodes = details.filter(el => el.recordType == 0).map(item => { - return encodeURIComponent(`${row.stockIoId}_${item.warehouseId || ''}_${item.itemId || ''}_${item.quantity || ''}`); - }); - this.drawerBarcodeData = { - barcodes, - perRow: 3, - barcodeWidth: 180, - barcodeHeight: 60 - }; - this.drawerBarcodeVisible = true; - }, + // async handleShowBarcodeDrawer(row) { + // // 获取明细列表 + // const res = await listStockIoDetail({ stockIoId: row.stockIoId }); + // const details = res.data || res.rows || []; + // // 拼接条码内容 stockIoId_warehouseId_materialId_quantity + // const barcodes = details.filter(el => el.recordType == 0).map(item => { + // return encodeURIComponent(`${row.stockIoId}_${item.warehouseId || ''}_${item.itemId || ''}_${item.quantity || ''}`); + // }); + // // this.drawerBarcodeData = { + // // barcodes, + // // perRow: 3, + // // barcodeWidth: 180, + // // barcodeHeight: 60 + // // }; + // // this.drawerBarcodeVisible = true; + // }, getIoTypeTagType(type) { if (type === 'in') return 'success'; if (type === 'out') return 'primary'; diff --git a/klp-ui/src/views/wms/stockIo/panels/barcode.vue b/klp-ui/src/views/wms/stockIo/panels/barcode.vue index b12002b7..8574f9d1 100644 --- a/klp-ui/src/views/wms/stockIo/panels/barcode.vue +++ b/klp-ui/src/views/wms/stockIo/panels/barcode.vue @@ -12,7 +12,7 @@
- +
@@ -21,12 +21,9 @@ - + - - - @@ -52,13 +49,13 @@ - +
条码 {{ idx + 1 }}
- - + + - + @@ -156,14 +153,7 @@ export default { barcodes: { handler(newVal) { // 初始化barcodeConfigs - this.barcodeConfigs = newVal.map((b, i) => { - const old = this.barcodeConfigs[i] || {}; - return { - code: b, - count: old.count || 1, - textTpl: typeof old.textTpl === 'string' ? old.textTpl : b - }; - }); + this.barcodeConfigs = newVal; this.$nextTick(this.renderPreviewIframe); }, immediate: true