From 029df4e18c23fb2127969a931dfe259efbb6f6ca Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Tue, 14 Oct 2025 18:22:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=95=B0=EF=BC=8C=E6=89=B9=E9=87=8F=E5=88=9B=E5=BB=BA?= =?UTF-8?q?HU?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/warehouse/ifsInventoryInit.js | 3 + .../com_add_update_user_label_printer.vue | 12 +- .../modules/warehouse/ifsInventoryInit.vue | 447 ++++++++++++++++-- 3 files changed, 415 insertions(+), 47 deletions(-) diff --git a/src/api/warehouse/ifsInventoryInit.js b/src/api/warehouse/ifsInventoryInit.js index 53b1500..c90f884 100644 --- a/src/api/warehouse/ifsInventoryInit.js +++ b/src/api/warehouse/ifsInventoryInit.js @@ -6,6 +6,9 @@ export const getInventoryStockList = data => createAPI(`ifsInventoryInit/getInve // 创建HandlingUnit export const createHandlingUnits = data => createAPI(`ifsInventoryInit/createHandlingUnits`, 'POST', data) +// 批量创建HandlingUnit +export const batchCreateHandlingUnits = data => createAPI(`ifsInventoryInit/batchCreateHandlingUnits`, 'POST', data) + // 打印标签 export const printLabel = data => createAPI('/label/setting/printLabel','post',data) diff --git a/src/views/modules/labelSetting/com_add_update_user_label_printer.vue b/src/views/modules/labelSetting/com_add_update_user_label_printer.vue index 718f24d..d91b345 100644 --- a/src/views/modules/labelSetting/com_add_update_user_label_printer.vue +++ b/src/views/modules/labelSetting/com_add_update_user_label_printer.vue @@ -31,7 +31,7 @@ - + {{ buttons.saveButton }} @@ -162,7 +162,7 @@ export default { //重置标题 //this.titleCon = this.labels.titleCon; //刷新所有的打印机名称 - this.getPrintName(); + //this.getPrintName(); //判断当前用户是都是admin if(this.userId.toUpperCase() == "ADMIN"){ //放开修改 @@ -242,7 +242,7 @@ export default { //判断标签内容是否为空 let labelNo = this.pageData.labelNo.trim(); let userId = this.pageData.userId.trim(); - let printerName = this.pageData.printerName.trim(); + let ipAddress = this.pageData.ipAddress.trim(); if(labelNo == null || labelNo === ''){ this.$message.success("标签编号不能为空!"); return false; @@ -251,8 +251,8 @@ export default { this.$message.success("用户ID不能为空!"); return false; } - if(printerName == null || printerName === ''){ - this.$message.success("打印机不能为空!"); + if(ipAddress == null || ipAddress === ''){ + this.$message.success("打印机ip不能为空!"); return false; } //判断是否是新增标签自定义 diff --git a/src/views/modules/warehouse/ifsInventoryInit.vue b/src/views/modules/warehouse/ifsInventoryInit.vue index 390fe66..176a7f6 100644 --- a/src/views/modules/warehouse/ifsInventoryInit.vue +++ b/src/views/modules/warehouse/ifsInventoryInit.vue @@ -19,6 +19,7 @@ 查询 重置 + 批量创建HU @@ -271,33 +272,63 @@ - - - - - - - - - + + + + 自动计算包装数和余数 + - + + placeholder="请输入单包装数量" + @input="onPerPackageQtyChange"> + + + + + + + + + + + {{ createHuForm.autoCalculate ? '自动计算' : '可手动输入' }} + + + + + + + + + {{ createHuForm.autoCalculate ? '自动计算' : '可手动输入' }} + + + -