Browse Source

甘特图一键修复

pull/122/head
liwei 3 years ago
parent
commit
c179b905a8
2 changed files with 60 additions and 27 deletions
  1. +9
    -0
      src/api/productplan/base.js
  2. +51
    -27
      src/views/productplan/workbench/schedule.vue

+ 9
- 0
src/api/productplan/base.js View File

@ -157,6 +157,15 @@ export function manualrscheduler(data){
})
}
// 一键修复
export function postRepairschedule(data){
return request({
url: '/admin/base/workline/repairschedule',
method: 'post',
data
})
}
// 获取订单剩余数量
export function getWorkorderNum(params){
return request({


+ 51
- 27
src/views/productplan/workbench/schedule.vue View File

@ -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,28 @@
})
},
//
repairschedule(){
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) {


Loading…
Cancel
Save