diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js index 58ed4600..ad6b4099 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -450,6 +450,15 @@ export default { ); }, }, + revert: { + name: "撤回", + req: async function (id, data) { + return await http.post( + `${config.API_URL}/wpm/handover/${id}/revert/`, + data + ); + }, + }, mgroups:{ name: "获取可交接的工段", req: async function (data) { diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index c38b120a..5f938f52 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -143,9 +143,9 @@ - + - + @@ -421,7 +421,7 @@ export default { var that = this; var type = this.form.type; that.form.material = that.selectObj.id; - that.form.batch = that.selectObj.bin_number_main; + that.form.batch = that.cate=='helpso'?that.selectObj.bin_number_main:that.selectObj.batch; that.mTracking = that.selectObj.tracking; if (type == "do_in") { if (that.selectObj.is_assemb) { @@ -446,7 +446,7 @@ export default { selectBatchChange(item) { this.form.batch = item.batch; this.form.mb = item.id; - this.form.count = 0; + this.form.count = Number(item.count); this.form.warehouse = item.warehouse; this.warehouseDisable = true; this.inputBatchDisable = true; @@ -477,7 +477,7 @@ export default { for(let i=0;i1&&(that.form.type == 'pur_in'||that.form.type == 'other_in')){ + let mioitemw = []; + that.mioitems.forEach((item,index) => { + mioitemw[index]={ number: item }; + }) + if(mioitemw.length==that.mioitems.length){ + that.form.mioitemw = mioitemw; + }else{ + that.$message.error("请输入正确数量的编号") + return; + } + } try { let res; if (that.mode == "add") { diff --git a/src/views/inm/mioitemlist.vue b/src/views/inm/mioitemlist.vue index f0d3587c..aeec6df4 100644 --- a/src/views/inm/mioitemlist.vue +++ b/src/views/inm/mioitemlist.vue @@ -108,7 +108,7 @@ export default { data() { return { apiObj: null, - params: {with_mio:'yes'}, + params: {with_mio:'yes',material__type:30,mio__state:20}, selection: [], tableData:[], query: { diff --git a/src/views/wpm_bx/handover.vue b/src/views/wpm_bx/handover.vue index a7e49003..52d59d86 100644 --- a/src/views/wpm_bx/handover.vue +++ b/src/views/wpm_bx/handover.vue @@ -144,12 +144,12 @@ width="300" >