fix:排棒日志填写时,批次更新为棒的编号

This commit is contained in:
shijing 2026-01-05 13:45:36 +08:00
parent 037bda3b5f
commit e77e6c716d
2 changed files with 16 additions and 1 deletions

View File

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

View File

@ -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;
} }
//batchnumber
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) => {