|
|
@ -166,6 +166,25 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{{ scope.row.planDetailStatus === '1' ? '开始' : '完成' }}
|
|
|
|
{{ scope.row.planDetailStatus === '1' ? '开始' : '完成' }}
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
@click="submitProductPlanDetailPause(scope.row)"
|
|
|
|
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.STARTED"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
暂停
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
@click="submitProductPlanDetailContinue(scope.row)"
|
|
|
|
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.PAUSE"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
继续
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.STARTED"
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.STARTED"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
@ -190,6 +209,8 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
退库
|
|
|
|
退库
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
@ -355,13 +376,14 @@ import * as echarts from 'echarts'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
completeProductPlanDetail,
|
|
|
|
completeProductPlanDetail,
|
|
|
|
getProductPlanDetails,
|
|
|
|
getProductPlanDetails,
|
|
|
|
getProductPlans, getStockTotal,
|
|
|
|
getProductPlans,
|
|
|
|
insertProductPlanDetails,
|
|
|
|
insertProductPlanDetails,
|
|
|
|
startProductPlanDetail,
|
|
|
|
startProductPlanDetail,
|
|
|
|
fourthFloorProduceInstock,
|
|
|
|
fourthFloorProduceInstock,
|
|
|
|
check4thFloorProduceOutstock,
|
|
|
|
check4thFloorProduceOutstock,
|
|
|
|
fourthFloorProduceOutstock,
|
|
|
|
fourthFloorProduceOutstock,
|
|
|
|
scanMaterial2Confirm,
|
|
|
|
scanMaterial2Confirm,
|
|
|
|
|
|
|
|
productPlanDetailPause,productPlanDetailContinue
|
|
|
|
} from "@/api/board";
|
|
|
|
} from "@/api/board";
|
|
|
|
import {monitorSerialData} from "@/utils/serial";
|
|
|
|
import {monitorSerialData} from "@/utils/serial";
|
|
|
|
import applyRawOutstock from '@//views/board/common/applyRawOutstock.vue';
|
|
|
|
import applyRawOutstock from '@//views/board/common/applyRawOutstock.vue';
|
|
|
@ -468,6 +490,7 @@ export default {
|
|
|
|
TO_START: '1',
|
|
|
|
TO_START: '1',
|
|
|
|
STARTED: '2',
|
|
|
|
STARTED: '2',
|
|
|
|
FINISHED: '3',
|
|
|
|
FINISHED: '3',
|
|
|
|
|
|
|
|
PAUSE:"4",
|
|
|
|
ABNORMAL_FINISHED: '9'
|
|
|
|
ABNORMAL_FINISHED: '9'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1193,6 +1216,32 @@ export default {
|
|
|
|
this.applyRawReturnVisible = false;
|
|
|
|
this.applyRawReturnVisible = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交暂停按钮 */
|
|
|
|
|
|
|
|
submitProductPlanDetailPause(row) {
|
|
|
|
|
|
|
|
let pauseForm = {planDetailId:row.planDetailId};
|
|
|
|
|
|
|
|
this.$modal.confirm('确认要暂停么?').then(function () {
|
|
|
|
|
|
|
|
return productPlanDetailPause(pauseForm);
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("暂停成功");
|
|
|
|
|
|
|
|
row.planDetailStatus = this.PLAN_DETAIL_STATUS.PAUSE;
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交继续按钮 */
|
|
|
|
|
|
|
|
submitProductPlanDetailContinue(row) {
|
|
|
|
|
|
|
|
let continueForm = {planDetailId:row.planDetailId};
|
|
|
|
|
|
|
|
this.$modal.confirm('确认要继续么?').then(function () {
|
|
|
|
|
|
|
|
return productPlanDetailContinue(continueForm);
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
row.planDetailStatus = this.PLAN_DETAIL_STATUS.STARTED;
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("继续成功");
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|