|
|
|
@ -7,6 +7,38 @@ |
|
|
|
<el-form-item :label="'分组名称'"> |
|
|
|
<el-input v-model="searchData.operatorName" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'计划开始日期:'"> |
|
|
|
<el-date-picker |
|
|
|
style="width: 120px" |
|
|
|
v-model="searchData.startDate" |
|
|
|
type="date" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
placeholder="选择日期"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-top: 23px;"> |
|
|
|
<laber style="margin-left: -9px;font-size: 19px">➞</laber> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-date-picker |
|
|
|
style="width: 120px" |
|
|
|
v-model="searchData.endDate" |
|
|
|
type="date" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
placeholder="选择日期"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'班次'"> |
|
|
|
<el-select v-model="searchData.shiftno" placeholder="请选择" style="width: 120px"> |
|
|
|
<el-option label="全部" value=""></el-option> |
|
|
|
<el-option |
|
|
|
v-for = "i in shiftList" |
|
|
|
:key = "i.shiftno" |
|
|
|
:label = "i.shiftdesc" |
|
|
|
:value = "i.shiftno"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button @click="getData()" type="primary" style="">查询</el-button> |
|
|
|
<el-button @click="newDetail()" type="primary" style="">新增班次调度</el-button> |
|
|
|
@ -204,7 +236,7 @@ |
|
|
|
|
|
|
|
import { |
|
|
|
getOperatorGroup,getOperatorGroupPlanHeader,getOperatorGroupPlanDetail, |
|
|
|
getOperatorGroupDefault,saveOperatorGroupDetail |
|
|
|
getOperatorGroupDefault,saveOperatorGroupDetail,deleteOperatorGroupPlan,getShiftInfoData |
|
|
|
} from "@/api/production/production.js" |
|
|
|
|
|
|
|
export default { |
|
|
|
@ -222,10 +254,17 @@ |
|
|
|
// site:this.$store.state.user.site, |
|
|
|
operatorID:'', |
|
|
|
operatorName:'', |
|
|
|
startDate: this.dayjs().subtract(1, 'month').format('YYYY-MM-DD HH:mm:ss'), |
|
|
|
endDate:'', |
|
|
|
shiftno:'', |
|
|
|
}, |
|
|
|
shiftList:[], |
|
|
|
currentRow:{ |
|
|
|
site:'', |
|
|
|
operatorGroupId:'' |
|
|
|
operatorGroupId:'', |
|
|
|
startDate: '', |
|
|
|
endDate:'', |
|
|
|
shiftno:'', |
|
|
|
}, |
|
|
|
currentRow2:{ |
|
|
|
site:'', |
|
|
|
@ -443,6 +482,9 @@ |
|
|
|
changeData(row){ |
|
|
|
this.currentRow.site=row.site |
|
|
|
this.currentRow.operatorGroupId=row.operatorID |
|
|
|
this.currentRow.startDate=this.searchData.startDate |
|
|
|
this.currentRow.endDate=this.searchData.endDate |
|
|
|
this.currentRow.shiftno=this.searchData.shiftno |
|
|
|
this.getGroupPlanHeaderData(); |
|
|
|
}, |
|
|
|
getData(){ |
|
|
|
@ -572,9 +614,32 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
deleteHandle(row){ |
|
|
|
this.$confirm(`是否删除?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
deleteOperatorGroupPlan(row).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getGroupPlanHeaderData(); |
|
|
|
this.$message.success(data.msg) |
|
|
|
} else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getShiftInfo(){ |
|
|
|
getShiftInfoData({site:this.$store.state.user.site}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.shiftList=data.rows |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
|
|
|
|
this.getShiftInfo(); |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|