mlog中shift问题
This commit is contained in:
parent
060c15c314
commit
4b3e3bf1a4
|
@ -1135,7 +1135,6 @@ export default {
|
||||||
this.form.mgroup = this.mgroup;
|
this.form.mgroup = this.mgroup;
|
||||||
this.form.handle_date = year + "-" + month + "-" + day;
|
this.form.handle_date = year + "-" + month + "-" + day;
|
||||||
this.getMaterial();
|
this.getMaterial();
|
||||||
// this.getMgroupList();
|
|
||||||
this.getUserList();
|
this.getUserList();
|
||||||
this.getEquipment();
|
this.getEquipment();
|
||||||
this.getShiftOptions();
|
this.getShiftOptions();
|
||||||
|
@ -1185,13 +1184,20 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getShiftOptions() {
|
getShiftOptions() {
|
||||||
|
let that = this;
|
||||||
let req_dict = {page: 0}
|
let req_dict = {page: 0}
|
||||||
console.log(this.mgroupShiftRule)
|
console.log(this.mgroupShiftRule)
|
||||||
if(this.mgroupShiftRule != null && this.mgroupShiftRule != undefined){
|
if(this.mgroupShiftRule != null && this.mgroupShiftRule != undefined){
|
||||||
req_dict.rule = this.mgroupShiftRule
|
req_dict.rule = this.mgroupShiftRule
|
||||||
}
|
}
|
||||||
this.$API.mtm.shift.list.req(req_dict).then((res) => {
|
this.$API.mtm.shift.list.req(req_dict).then((res) => {
|
||||||
this.shiftOptions = res
|
that.shiftOptions = res;
|
||||||
|
let list = res.filter(item =>
|
||||||
|
item.rule == '长白班'
|
||||||
|
);
|
||||||
|
if(that.activeType !== '10车间'){
|
||||||
|
that.form.shift=list[0].id;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getUserList() {
|
getUserList() {
|
||||||
|
|
Loading…
Reference in New Issue