|
|
|
|
@ -18,19 +18,23 @@ |
|
|
|
|
> |
|
|
|
|
<template #menu="scope"> |
|
|
|
|
<el-button |
|
|
|
|
v-if="$route.path == '/productionSchedulingPlan/schedulingException/index'&&scope.row.errorInfo.indexOf('设备资源')>-1" |
|
|
|
|
v-if=" |
|
|
|
|
$route.path == '/productionSchedulingPlan/schedulingException/index' && |
|
|
|
|
scope.row.errorInfo.indexOf('设备资源') > -1 |
|
|
|
|
" |
|
|
|
|
type="text" |
|
|
|
|
size="mini" |
|
|
|
|
@click="handleFn(scope.row)" |
|
|
|
|
>处理</el-button> |
|
|
|
|
|
|
|
|
|
>处理</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="text" size="mini" @click="recoveryFn(scope.row)">恢复</el-button> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
</basic-container> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { getYieldOrderList } from '@/api/productionSchedulingPlan/scheduling'; |
|
|
|
|
import { getYieldOrderList,recoveryUpdate } from '@/api/productionSchedulingPlan/scheduling'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
components: {}, |
|
|
|
|
@ -83,7 +87,7 @@ export default { |
|
|
|
|
delBtn: false, |
|
|
|
|
editBtnText: '修改', |
|
|
|
|
labelWidth: 120, |
|
|
|
|
menuWidth: 80, |
|
|
|
|
menuWidth: 120, |
|
|
|
|
dialogWidth: 900, |
|
|
|
|
dialogClickModal: false, |
|
|
|
|
searchEnter: true, |
|
|
|
|
@ -289,13 +293,29 @@ export default { |
|
|
|
|
methods: { |
|
|
|
|
handleFn(row) { |
|
|
|
|
if (row.errorInfo.indexOf('设备资源') > -1) { |
|
|
|
|
this.$router.push({path:'/productionSchedulingPlan/basic/equipmentCapacity'}) |
|
|
|
|
this.$router.push({ path: '/productionSchedulingPlan/basic/equipmentCapacity' }); |
|
|
|
|
} |
|
|
|
|
if (row.errorInfo.indexOf('工序信息不完整') > -1) { |
|
|
|
|
this.$router.push({path:'/productionSchedulingPlan/basic/process'}) |
|
|
|
|
this.$router.push({ path: '/productionSchedulingPlan/basic/process' }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
recoveryFn(row){ |
|
|
|
|
this.$confirm('确定要将数据恢复排产吗?', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
this.loading = true; |
|
|
|
|
return recoveryUpdate(row.id); |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
searchReset() { |
|
|
|
|
this.query = {}; |
|
|
|
|
|