fix:光芯mlog->mlogb日志传参变动

This commit is contained in:
shijing 2025-07-11 16:42:12 +08:00
parent ae67be4728
commit b6c80f3ba9
2 changed files with 18 additions and 6 deletions

View File

@ -402,7 +402,9 @@
:isfix = "mlogItem.is_fix" :isfix = "mlogItem.is_fix"
:routeId ="routeId" :routeId ="routeId"
:tracking="tracking" :tracking="tracking"
:materialIn="materialIn" :material_in="materialIn"
:hasRoute = "hasRoute"
:process="process"
@success="handleSaveSuccess" @success="handleSaveSuccess"
@closed="saveMlogbInClose" @closed="saveMlogbInClose"
> >
@ -474,6 +476,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
mgroup:{
type: String,
default: "",
},
}, },
components: { components: {
editDialog, editDialog,
@ -521,7 +527,6 @@ export default {
}, },
tracking:10, tracking:10,
mlogb:"", mlogb:"",
mgroup: "",
mlogItem: {}, mlogItem: {},
saveInForm: { saveInForm: {
count_use: 0, count_use: 0,
@ -569,6 +574,7 @@ export default {
qct:null, qct:null,
defectlist:[], defectlist:[],
batchNumber:'', batchNumber:'',
hasRoute:false,
isSubmit:false, isSubmit:false,
fileVisible:false, fileVisible:false,
}; };
@ -594,6 +600,9 @@ export default {
let that = this; let that = this;
that.$API.wpm.mlog.item.req(that.mlogId).then((res) => { that.$API.wpm.mlog.item.req(that.mlogId).then((res) => {
that.mlogItem = res; that.mlogItem = res;
if(res.route!==null){
that.hasRoute = true;
}
that.oinfo_json = []; that.oinfo_json = [];
if(res.oinfo_json_){ if(res.oinfo_json_){
for(let key in res.oinfo_json_){ for(let key in res.oinfo_json_){
@ -604,12 +613,12 @@ export default {
} }
} }
that.routeId = res.route; that.routeId = res.route;
that.tracking = res.material_in_.tracking; that.tracking = res.material_in_!==null?res.material_in_.tracking:null;
if(res.test_file!==null){ if(res.test_file!==null){
that.fileList = [{name:res.test_file,url:res.test_file}]; that.fileList = [{name:res.test_file,url:res.test_file}];
that.form.test_file = res.test_file; that.form.test_file = res.test_file;
} }
that.mgroup = res.mgroup; // that.mgroup = res.mgroup;
// that.paramsWm.mgroup = res.mgroup; // that.paramsWm.mgroup = res.mgroup;
// that.paramsWm.search = that.batchContains; // that.paramsWm.search = that.batchContains;
that.materialIn = res.material_in; that.materialIn = res.material_in;

View File

@ -201,6 +201,7 @@
:process="process" :process="process"
:mtask="mtask" :mtask="mtask"
:dept = "deptId" :dept = "deptId"
:mgroup="mgroupId"
@closed="detailClose" @closed="detailClose"
> >
</detail-drawer> </detail-drawer>
@ -241,8 +242,8 @@ export default {
default: "", default: "",
}, },
mgroupMtype: { mgroupMtype: {
type: String, type: Number,
default: "", default: 10,
} }
}, },
name: "mlog", name: "mlog",
@ -267,6 +268,7 @@ export default {
selection: [], selection: [],
mtask: "", mtask: "",
mlogId: "", mlogId: "",
mgroup_name: "",
route_code: "", route_code: "",
equipmentId: "", equipmentId: "",
showHidden:false, showHidden:false,
@ -276,6 +278,7 @@ export default {
mgroupName: { mgroupName: {
handler: function (newval,odlval) { handler: function (newval,odlval) {
let that = this; let that = this;
that.mgroup_name = newval;
that.params.mgroup = ""; that.params.mgroup = "";
that.apiObj = null; that.apiObj = null;
that.getMgroupInfo(); that.getMgroupInfo();