From 798b3bdc102f242b399ffc814526be7d257efc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=93=E8=B1=86=E8=B1=86?= <3346088772@qq.comcd> Date: Mon, 5 Feb 2024 16:21:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=85=BE=E8=AE=AF=E6=96=87=E6=A1=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/dv/machinery/index.vue | 14 +- src/views/mes/pro/workorder/index.vue | 2 +- src/views/mes/wm/issue/line.vue | 323 ++++++++++++++++---------- src/views/mes/wm/itemrecpt/index.vue | 28 ++- src/views/system/user/index.vue | 6 +- 5 files changed, 230 insertions(+), 143 deletions(-) diff --git a/src/views/mes/dv/machinery/index.vue b/src/views/mes/dv/machinery/index.vue index a01a2a0..fc34187 100644 --- a/src/views/mes/dv/machinery/index.vue +++ b/src/views/mes/dv/machinery/index.vue @@ -646,7 +646,7 @@ export default { inputName: "", - queryParamsdata:{}, + queryParamsdata: {}, // 表单校验 rules: { @@ -663,9 +663,9 @@ export default { machineryTypeId: [ { required: true, message: "设备分类不能为空", trigger: "blur" }, ], - // idList: [ - // { required: true, message: "关联代码程序不能为空", trigger: "blur" }, - // ], + workshopName: [ + { required: true, message: "所属车间不能为空", trigger: "blur" }, + ], }, }; }, @@ -794,9 +794,9 @@ export default { this.getWorkshops(); this.userName = ""; this.inputName = ""; - if (this.queryParamsdata.machineryTypeId != 0) { - this.form = this.queryParamsdata; - } + // if (this.queryParamsdata.machineryTypeId != 0) { + // this.form = this.queryParamsdata; + // } this.optType = "add"; this.open = true; this.title = "新增设备"; diff --git a/src/views/mes/pro/workorder/index.vue b/src/views/mes/pro/workorder/index.vue index 4f15332..ee6d7d0 100644 --- a/src/views/mes/pro/workorder/index.vue +++ b/src/views/mes/pro/workorder/index.vue @@ -702,7 +702,7 @@ export default { }, handleConfirm(){ let that = this; - this.$modal.confirm('是确认完成工单编制?【确认后将不能更改】').then(function(){ + this.$modal.confirm('是否确认完成工单编制?【确认后将不能更改】').then(function(){ that.form.status = 'CONFIRMED'; that.submitForm(); }); diff --git a/src/views/mes/wm/issue/line.vue b/src/views/mes/wm/issue/line.vue index b1a4ac4..03dcaaa 100644 --- a/src/views/mes/wm/issue/line.vue +++ b/src/views/mes/wm/issue/line.vue @@ -1,5 +1,5 @@ diff --git a/src/views/mes/wm/itemrecpt/index.vue b/src/views/mes/wm/itemrecpt/index.vue index 9cb98f4..b2de870 100644 --- a/src/views/mes/wm/itemrecpt/index.vue +++ b/src/views/mes/wm/itemrecpt/index.vue @@ -496,7 +496,7 @@ export default { itemrecptlineList: [], itemList: [], perform: {}, - remainingquantity: "", + remainingquantity: 0, recptIdsData: "", itemData: "", // 查询参数 @@ -699,7 +699,12 @@ export default { }); }, selectEncoding(data) { - this.remainingquantity = data.quantityRecived; + var arr = data.quantityRecived - data.accepted; + if (arr != 0) { + this.remainingquantity = arr; + } else { + this.remainingquantity = 0; + } this.perform.itemCode = data.itemCode; this.perform.lineId = data.lineId; this.perform.itemId = data.itemId; @@ -709,12 +714,19 @@ export default { this.perform.palletCode = data.palletCode; }, submitFileForm() { - storage(this.perform).then((response) => { - this.$modal.msgSuccess("入库成功"); - this.warehousing = false; - this.getList(); - this.selectEncoding(); - }); + if (this.remainingquantity != 0) { + storage(this.perform).then((response) => { + this.$modal.msgSuccess("入库成功"); + this.warehousing = false; + this.getList(); + this.selectEncoding(); + }); + } else { + this.$message({ + message: "当前入库数量为0", + type: "warning", + }); + } }, /** 提交按钮 */ submitForm() { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index e929446..a66981c 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -165,14 +165,14 @@ >