|
|
|
|
@ -21,9 +21,10 @@ |
|
|
|
|
<el-button type="primary" @click="handlePrintTags">过程记录打印</el-button> |
|
|
|
|
<el-button type="primary" @click="handlePrintTags">打印标签</el-button> |
|
|
|
|
<el-button type="primary" @click="handlePrint">配套单打印</el-button> |
|
|
|
|
<el-button type="primary" @click="handleInterlocking">合批</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu-right> |
|
|
|
|
<el-button type="primary" plain @click="queryOrdersHandle('3,4,5,6')">在制品</el-button> |
|
|
|
|
<el-button type="primary" plain @click="queryOrdersHandle('3,4,5,6')">在制品</el-button> |
|
|
|
|
<el-button type="warning" plain @click="queryOrdersHandle('3')">加工中</el-button> |
|
|
|
|
<el-button type="danger" plain @click="queryOrdersHandle('4')">检验中</el-button> |
|
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button> |
|
|
|
|
@ -74,10 +75,12 @@ |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
></production-dialog> |
|
|
|
|
<!-- 分批弹窗 --> |
|
|
|
|
<batches-dialog v-if="showBatches" |
|
|
|
|
<batches-dialog |
|
|
|
|
v-if="showBatches" |
|
|
|
|
:show-batches="showBatches" |
|
|
|
|
:itemData="itemData" |
|
|
|
|
@closeDialog="closeDialog"></batches-dialog> |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
></batches-dialog> |
|
|
|
|
<!-- 关闭弹窗 --> |
|
|
|
|
<closed-dialog |
|
|
|
|
v-if="showClose" |
|
|
|
|
@ -86,9 +89,11 @@ |
|
|
|
|
:itemData="itemData" |
|
|
|
|
></closed-dialog> |
|
|
|
|
<!-- 异常处理 --> |
|
|
|
|
<abnormalDialog v-if="showAbnormal" |
|
|
|
|
<abnormalDialog |
|
|
|
|
v-if="showAbnormal" |
|
|
|
|
:show-abnormal="showAbnormal" |
|
|
|
|
@closeDialog="closeDialog"></abnormalDialog> |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
></abnormalDialog> |
|
|
|
|
<!-- 优先级调整 --> |
|
|
|
|
<productionMonitoringDialog |
|
|
|
|
:showDialog="isPriorityOpen" |
|
|
|
|
@ -105,7 +110,7 @@ import closedDialog from '../components/closedDialog.vue'; |
|
|
|
|
import abnormalDialog from '../components/abnormalDialog.vue'; |
|
|
|
|
import productionMonitoringDialog from '../components/productionMonitoringDialog.vue'; |
|
|
|
|
|
|
|
|
|
import { getList } from '@/api/productionManagement/sinTerWorkOrder'; |
|
|
|
|
import { getList,interlocking } from '@/api/productionManagement/sinTerWorkOrder'; |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
productionDialog, |
|
|
|
|
@ -473,6 +478,26 @@ export default { |
|
|
|
|
}, |
|
|
|
|
mounted() {}, |
|
|
|
|
methods: { |
|
|
|
|
// 合批 |
|
|
|
|
handleInterlocking(row) { |
|
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
|
return this.$message.error('请先选择数据'); |
|
|
|
|
} |
|
|
|
|
this.$confirm('是否确认合批?', '提示', { |
|
|
|
|
confirmButtonText: '确认', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}).then(() => { |
|
|
|
|
let ids= this.selectionList.map(item => item.id); |
|
|
|
|
let query = { |
|
|
|
|
woIds:ids.join(','), |
|
|
|
|
}; |
|
|
|
|
interlocking(query).then((res) => { |
|
|
|
|
this.$message.success('操作成功'); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//查询【生产中3、工艺变更5、检验中4、审理中6】状态的订单 |
|
|
|
|
queryOrdersHandle(status) { |
|
|
|
|
this.query = { |
|
|
|
|
|