fix:光芯日志输入物料编辑的时候传参的参数名纠正

This commit is contained in:
shijing 2025-06-16 09:21:40 +08:00
parent a051211b35
commit 2ec004908a
2 changed files with 8 additions and 8 deletions

View File

@ -339,7 +339,7 @@
:mlog="mlogId"
:mgroup="mgroup"
:is_fix = "is_fix"
:mlogbindefect = "mlogbindefect"
:mlogbdefect = "mlogbdefect"
:mgroupMtype="mgroupMtype"
:mgroupName = "mgroupName"
:codeText = "codeText"
@ -561,7 +561,7 @@ export default {
options: [],
tableData:[],
tableData2:[],
mlogbindefect:[],
mlogbdefect:[],
mlogboutdefect:[],
saveInDialog: false,
ticketDialog:false,
@ -699,17 +699,17 @@ export default {
if (valid) {
that.isSaveing = true;
let obj = {};
let count_pn_jgqbl = 0,mlogbindefect=[];
let count_pn_jgqbl = 0,mlogbdefect=[];
that.qct_defects.forEach(item => {
count_pn_jgqbl += that.defectinform[item.defect_name] ;
let obj = {};
obj.defect = item.defect;
obj.count = that.defectinform[item.defect_name];
obj.mlogb = that.saveInForm.id;
mlogbindefect.push(obj);
mlogbdefect.push(obj);
})
obj.count_use = that.saveInForm.count_use;
obj.mlogbindefect = mlogbindefect;
obj.mlogbdefect = mlogbdefect;
obj.count_pn_jgqbl = count_pn_jgqbl;
that.$API.wpm.mlogb.updateIn.req(that.saveInForm.id, obj).then((res) => {
that.isSaveing = false;

View File

@ -205,7 +205,7 @@ export default {
type: String,
default: "",
},
mlogbindefect:{
mlogbdefect:{
type:Array,
default:()=>[]
},
@ -328,9 +328,9 @@ export default {
})
that.qct_defects=res.qct_defects;
let count_pn_jgqbl = 0;
if(data.mlogbindefect.length>0){
if(data.mlogbdefect.length>0){
that.qct_defects.forEach(item => {
data.mlogbindefect.forEach(item2=>{
data.mlogbdefect.forEach(item2=>{
if(item.defect==item2.defect){
count_pn_jgqbl+=item2.count;
that.defectform[item.defect_name] = item2.count;