diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue index d0ab1496..cb9dbf62 100644 --- a/src/views/wpm/worktask_form.vue +++ b/src/views/wpm/worktask_form.vue @@ -1092,7 +1092,6 @@ export default { getShiftOptions() { let that = this; let req_dict = { page: 0 }; - console.log(this.mgroupShiftRule); if ( this.mgroupShiftRule != null && this.mgroupShiftRule != undefined @@ -1101,7 +1100,9 @@ export default { } this.$API.mtm.shift.list.req(req_dict).then((res) => { that.shiftOptions = res; - let list = res.filter((item) => item.rule == "长白班"); + let list = res.filter( + (item) => item.name.indexOf("长白班") > -1 + ); if (that.activeType !== "10车间" && list.length > 0) { that.form.shift = list[0].id; }