fix:排棒日志填写时,批次更新为棒的编号
This commit is contained in:
parent
037bda3b5f
commit
e77e6c716d
|
|
@ -309,6 +309,15 @@ export default {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
patchOut: {
|
||||||
|
name: "局部更新",
|
||||||
|
req: async function (id, data) {
|
||||||
|
return await http.patch(
|
||||||
|
`${config.API_URL}/wpm/mlogb/out/${id}/`,
|
||||||
|
data
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mlogbdefect: {
|
mlogbdefect: {
|
||||||
list: {
|
list: {
|
||||||
|
|
|
||||||
|
|
@ -586,7 +586,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//添加
|
//添加
|
||||||
formTableSave(row) {
|
formTableSave(row,index) {
|
||||||
let that = this;
|
let that = this;
|
||||||
let editIndex = 0;
|
let editIndex = 0;
|
||||||
that.mlogbwlist.forEach((item,index) => {
|
that.mlogbwlist.forEach((item,index) => {
|
||||||
|
|
@ -629,6 +629,12 @@ export default {
|
||||||
}else{
|
}else{
|
||||||
obj.ftest = null;
|
obj.ftest = null;
|
||||||
}
|
}
|
||||||
|
//当前工段为‘排一次棒’的时候,将batch改为number;
|
||||||
|
if(that.mgroupName=='排一次棒'){
|
||||||
|
that.$API.wpm.mlogb.patchOut.req(row.mlogb, { batch: row.number }).then((res) => {
|
||||||
|
that.mlogbwlist[index].mlogb__batch = row.number;
|
||||||
|
})
|
||||||
|
}
|
||||||
if(row.id!==''&&row.id!==undefined&&row.id!==null){
|
if(row.id!==''&&row.id!==undefined&&row.id!==null){
|
||||||
obj.id = row.id;
|
obj.id = row.id;
|
||||||
that.$API.wpm.mlogbw.update.req(row.id,obj).then((res) => {
|
that.$API.wpm.mlogbw.update.req(row.id,obj).then((res) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue