Browse Source

Merge pull request '甘特图一键修复' (#122) from liwei into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_WEBFRONT/pulls/122
Reviewed-by: wangxy <xinyao.wang@le-it.com.cn>
pull/125/head
wangxy 3 years ago
parent
commit
5eebf4724f
2 changed files with 63 additions and 27 deletions
  1. +9
    -0
      src/api/productplan/base.js
  2. +54
    -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({


+ 54
- 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,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) {


Loading…
Cancel
Save