fix:玻纤交接调整
This commit is contained in:
parent
de8b32f232
commit
9a07a158f6
|
|
@ -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{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue