fix:coding#495
This commit is contained in:
parent
fd8e646c10
commit
4b7664296f
|
@ -83,6 +83,7 @@
|
||||||
placeholder="接收工段"
|
placeholder="接收工段"
|
||||||
clearable
|
clearable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
:disabled="type==40"
|
||||||
@change="getUserList2"
|
@change="getUserList2"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -313,10 +314,17 @@ export default {
|
||||||
},
|
},
|
||||||
//获取工段列表
|
//获取工段列表
|
||||||
getMgroupOptions() {
|
getMgroupOptions() {
|
||||||
this.$API.mtm.mgroup.list
|
let that = this;
|
||||||
.req({ page: 0})
|
that.$API.mtm.mgroup.list.req({ page: 0}).then((res) => {
|
||||||
.then((res) => {
|
that.mgroupOptions = res;
|
||||||
this.mgroupOptions = res;
|
if(that.type==40){
|
||||||
|
res.forEach(item=>{
|
||||||
|
if(item.name=="废品库"){
|
||||||
|
that.form.recive_mgroup = item.id;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
that.getCkUserList();//废品库接收人
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//获取车间物料
|
//获取车间物料
|
||||||
|
@ -401,6 +409,14 @@ export default {
|
||||||
that.userList = res;
|
that.userList = res;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//获取仓库人员
|
||||||
|
getCkUserList() {
|
||||||
|
let that = this;
|
||||||
|
this.$API.system.user.list.req({ page: 0, posts__name: "inm&check" })
|
||||||
|
.then((res) => {
|
||||||
|
that.userList = res;
|
||||||
|
});
|
||||||
|
},
|
||||||
//获取接收工段人员
|
//获取接收工段人员
|
||||||
getUserList2() {
|
getUserList2() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
Loading…
Reference in New Issue