fix:玻纤交接调整

This commit is contained in:
shijing 2025-04-10 17:05:36 +08:00
parent de8b32f232
commit 9a07a158f6
1 changed files with 21 additions and 16 deletions

View File

@ -332,7 +332,9 @@ export default {
} }
if(that.type==40||that.type==20){ if(that.type==40||that.type==20){
that.getMgroupOptions(); that.getMgroupOptions();
}else{} }else{
that.getMgroupOptions();
}
}, },
methods: { methods: {
// //
@ -456,13 +458,17 @@ export default {
getUserList2() { getUserList2() {
let that = this; let that = this;
let deptID = ''; let deptID = '';
this.mgroupOptions.forEach(item => { if(that.form.recive_dept&&that.form.recive_dept!==''&&that.form.recive_dept!==null){
if(item.id==that.form.recive_mgroup){ deptID = that.form.recive_dept;
deptID = item.belong_dept; }else{
this.$API.system.user.list.req({ depts: deptID, page: 0 }).then((res) => { that.mgroupOptions.forEach(item => {
that.userList2 = res; if(item.id==that.form.recive_mgroup){
}); deptID = item.belong_dept;
} }
});
}
that.$API.system.user.list.req({ depts: deptID, page: 0 }).then((res) => {
that.userList2 = res;
}); });
}, },
// //
@ -485,16 +491,16 @@ export default {
open(mode = "add",data,mtype) { open(mode = "add",data,mtype) {
this.mode = mode; this.mode = mode;
this.mtype = mtype; this.mtype = mtype;
if(typeof(data)=='string'){ if(data!==''&&data!==null&&data!==undefined){
if(data!==''){ if(typeof(data)=='string'){
this.codeText = data.replace(" ",""); this.codeText = data.replace(" ","");
this.codeTextChange(this.codeText) this.codeTextChange(this.codeText)
}else{
this.form.handoverb = data;
data.forEach(item=>{
this.totalCount += item.count_cando;
})
} }
}else{
this.form.handoverb = data;
data.forEach(item=>{
this.totalCount += item.count_cando;
})
} }
if(mtype==30){// if(mtype==30){//
this.change_batch = true; this.change_batch = true;
@ -571,7 +577,6 @@ export default {
// //
setData(data) { setData(data) {
Object.assign(this.form, data); Object.assign(this.form, data);
console.log('this.form',this.form);
if(data.type==30){ if(data.type==30){
this.getUserList3(); this.getUserList3();
}else{ }else{