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 @@ >