|
|
@ -290,7 +290,8 @@ |
|
|
|
postInsertfromwo, |
|
|
|
postWorklinescheduler, |
|
|
|
postSavescheduler, |
|
|
|
manualrscheduler |
|
|
|
manualrscheduler, |
|
|
|
postRepairschedule |
|
|
|
} from '@/api/productplan/base' |
|
|
|
import { |
|
|
|
notPlan, |
|
|
@ -324,36 +325,37 @@ |
|
|
|
}, |
|
|
|
parms: {}, |
|
|
|
headerList: [], |
|
|
|
imgArray: [{ |
|
|
|
imgPath: require('../../../assets/imgs/调度撤回.png'), |
|
|
|
title: '调度撤回', |
|
|
|
click: '', |
|
|
|
}, |
|
|
|
{ |
|
|
|
imgPath: require('../../../assets/imgs/保存计划.png'), |
|
|
|
title: '保存计划', |
|
|
|
click: '', |
|
|
|
}, |
|
|
|
{ |
|
|
|
imgPath: require('../../../assets/imgs/调整班组.png'), |
|
|
|
title: '调整班组', |
|
|
|
click: '', |
|
|
|
}, |
|
|
|
{ |
|
|
|
imgPath: require('../../../assets/imgs/计划调度.png'), |
|
|
|
title: '计划调度', |
|
|
|
click: '', |
|
|
|
}, |
|
|
|
imgArray: [ |
|
|
|
// { |
|
|
|
// imgPath: require('../../../assets/imgs/调度撤回.png'), |
|
|
|
// title: '调度撤回', |
|
|
|
// click: '', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// imgPath: require('../../../assets/imgs/保存计划.png'), |
|
|
|
// title: '保存计划', |
|
|
|
// click: '', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// imgPath: require('../../../assets/imgs/调整班组.png'), |
|
|
|
// title: '调整班组', |
|
|
|
// click: '', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// imgPath: require('../../../assets/imgs/计划调度.png'), |
|
|
|
// title: '计划调度', |
|
|
|
// click: '', |
|
|
|
// }, |
|
|
|
{ |
|
|
|
imgPath: require('../../../assets/imgs/计划修复.png'), |
|
|
|
title: '计划修复', |
|
|
|
click: '', |
|
|
|
}, |
|
|
|
{ |
|
|
|
imgPath: require('../../../assets/imgs/加载计划.png'), |
|
|
|
title: '加载计划', |
|
|
|
click: '', |
|
|
|
click: 'repairschedule', |
|
|
|
}, |
|
|
|
// { |
|
|
|
// imgPath: require('../../../assets/imgs/加载计划.png'), |
|
|
|
// title: '加载计划', |
|
|
|
// click: '', |
|
|
|
// }, |
|
|
|
{ |
|
|
|
imgPath: require('../../../assets/imgs/scheduling.png'), |
|
|
|
title: '一键排程', |
|
|
@ -922,6 +924,31 @@ |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
// 一键修复 |
|
|
|
repairschedule(){ |
|
|
|
if (!this.allData.TaskId) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.fullscreenLoading = true; |
|
|
|
postRepairschedule({ |
|
|
|
TaskId: this.allData.TaskId, |
|
|
|
startDate: `${moment(this.startAndEdnDate[0]).format('YYYY-MM-DD')} 00:00:00`, |
|
|
|
endDate: `${moment(this.startAndEdnDate[1]).format('YYYY-MM-DD')} 23:59:59`, |
|
|
|
}).then(({ |
|
|
|
code |
|
|
|
}) => { |
|
|
|
this.fullscreenLoading = false; |
|
|
|
if (code === 200) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
duration: 1000, |
|
|
|
message: '一键修复成功', |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
this.search(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// setLockingNum |
|
|
|
setLockingNum(value) { |
|
|
|
if (this.checked) { |
|
|
|