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