|
|
|
|
@ -30,27 +30,30 @@ |
|
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu="scope"> |
|
|
|
|
|
|
|
|
|
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> |
|
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)">工艺流程卡</el-button> |
|
|
|
|
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2" |
|
|
|
|
>优先级调整</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleBatches(scope.row)" |
|
|
|
|
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)" |
|
|
|
|
>分批</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)">流程卡</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus === 2"> |
|
|
|
|
<el-button type="text" @click="priorityFn(scope.row)">优先级</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"> |
|
|
|
|
<el-button type="text" @click="handleBatches(scope.row)">分批</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus < 15"> |
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)">关闭</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<!-- <el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleAbnormal(scope.row)" |
|
|
|
|
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4" |
|
|
|
|
>异常申报</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)" v-if="scope.row.runStatus < 15" |
|
|
|
|
>关闭</el-button |
|
|
|
|
> |
|
|
|
|
> --> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
<!-- 打印标签 --> |
|
|
|
|
@ -114,7 +117,7 @@ import closedDialog from '../components/closedDialog.vue'; |
|
|
|
|
import abnormalDialog from '../components/abnormalDialog.vue'; |
|
|
|
|
import productionMonitoringDialog from '../components/productionMonitoringDialog.vue'; |
|
|
|
|
|
|
|
|
|
import { getList,interlocking } from '@/api/productionManagement/sinTerWorkOrder'; |
|
|
|
|
import { getList, interlocking } from '@/api/productionManagement/sinTerWorkOrder'; |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
productionDialog, |
|
|
|
|
@ -174,7 +177,7 @@ export default { |
|
|
|
|
viewBtnText: '详情', |
|
|
|
|
labelWidth: 120, |
|
|
|
|
// searchLabelWidth: 120, |
|
|
|
|
menuWidth: 260, |
|
|
|
|
menuWidth: 220, |
|
|
|
|
dialogWidth: 1200, |
|
|
|
|
dialogClickModal: false, |
|
|
|
|
searchEnter: true, |
|
|
|
|
@ -341,7 +344,7 @@ export default { |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
label: '订单优先级', |
|
|
|
|
prop: 'priorityName', |
|
|
|
|
type: 'select', |
|
|
|
|
@ -350,7 +353,6 @@ export default { |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
// searchLabelWidth: 100, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '订单优先级', |
|
|
|
|
@ -361,7 +363,7 @@ export default { |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
searchLabelWidth: 100, |
|
|
|
|
hide:true, |
|
|
|
|
hide: true, |
|
|
|
|
dicUrl: '/blade-system/dict/dictionary?code=orderPriority', |
|
|
|
|
props: { |
|
|
|
|
label: 'dictValue', |
|
|
|
|
@ -498,8 +500,8 @@ export default { |
|
|
|
|
}, |
|
|
|
|
mounted() {}, |
|
|
|
|
methods: { |
|
|
|
|
printCraftCard_new(row){ |
|
|
|
|
window.open(window.PROCESS_FLOW_CARD_HEAT_SINTER+'?woId='+row.woId); |
|
|
|
|
printCraftCard_new(row) { |
|
|
|
|
window.open(window.PROCESS_FLOW_CARD_HEAT_SINTER + '?woId=' + row.woId); |
|
|
|
|
}, |
|
|
|
|
// 合批 |
|
|
|
|
handleInterlocking(row) { |
|
|
|
|
@ -511,11 +513,11 @@ export default { |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}).then(() => { |
|
|
|
|
let ids= this.selectionList.map(item => item.woId); |
|
|
|
|
let query = { |
|
|
|
|
woIds:ids.join(','), |
|
|
|
|
let ids = this.selectionList.map(item => item.woId); |
|
|
|
|
let query = { |
|
|
|
|
woIds: ids.join(','), |
|
|
|
|
}; |
|
|
|
|
interlocking(query).then((res) => { |
|
|
|
|
interlocking(query).then(res => { |
|
|
|
|
this.$message.success('操作成功'); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}); |
|
|
|
|
@ -601,7 +603,7 @@ export default { |
|
|
|
|
this.showAbnormal = false; |
|
|
|
|
this.isPriorityOpen = false; |
|
|
|
|
// if (type) { |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
currentChange(currentPage) { |
|
|
|
|
|