|
|
|
|
@ -30,39 +30,56 @@ |
|
|
|
|
</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 |
|
|
|
|
type="text" |
|
|
|
|
@click="handleAbnormal(scope.row)" |
|
|
|
|
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4" |
|
|
|
|
>异常申报</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleOutsource(scope.row)" |
|
|
|
|
v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5" |
|
|
|
|
>转外协</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleSintering(scope.row)" |
|
|
|
|
v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5" |
|
|
|
|
>转烧结</el-button |
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)" v-if="scope.row.runStatus < 15" |
|
|
|
|
>关闭</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 === 3 || scope.row.runStatus === 4"> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleAbnormal(scope.row)" |
|
|
|
|
|
|
|
|
|
>异常申报</el-button |
|
|
|
|
> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleOutsource(scope.row)" |
|
|
|
|
|
|
|
|
|
>转外协</el-button |
|
|
|
|
> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleSintering(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> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
<!-- 打印标签 --> |
|
|
|
|
@ -90,7 +107,7 @@ |
|
|
|
|
:itemData="itemData" |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
></outsource-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 分批弹窗 --> |
|
|
|
|
<batches-dialog |
|
|
|
|
v-if="showBatches" |
|
|
|
|
@ -120,7 +137,12 @@ |
|
|
|
|
></productionMonitoringDialog> |
|
|
|
|
|
|
|
|
|
<!-- 生产监控 --> |
|
|
|
|
<workRate v-if="isWorkRateOpen" :showDialog="isWorkRateOpen" @closeDialog="closeDialog" :rowItem="rowItem"></workRate> |
|
|
|
|
<workRate |
|
|
|
|
v-if="isWorkRateOpen" |
|
|
|
|
:showDialog="isWorkRateOpen" |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
:rowItem="rowItem" |
|
|
|
|
></workRate> |
|
|
|
|
</basic-container> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
@ -131,8 +153,8 @@ import batchesDialog from '../components/batchesDialog.vue'; |
|
|
|
|
import closedDialog from '../components/abnormalDialog.vue'; |
|
|
|
|
import abnormalDialog from '../components/abnormalDialog.vue'; |
|
|
|
|
import productionMonitoringDialog from '../components/productionMonitoringDialog.vue'; |
|
|
|
|
import workRate from "@/views/workRate/index.vue"; |
|
|
|
|
import { getList,turnType } from '@/api/productionManagement/productionMonitoring'; |
|
|
|
|
import workRate from '@/views/workRate/index.vue'; |
|
|
|
|
import { getList, turnType } from '@/api/productionManagement/productionMonitoring'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
@ -188,7 +210,7 @@ export default { |
|
|
|
|
editBtnText: '修改', |
|
|
|
|
viewBtnText: '详情', |
|
|
|
|
labelWidth: 120, |
|
|
|
|
menuWidth: 380, |
|
|
|
|
menuWidth: 240, |
|
|
|
|
dialogWidth: 1200, |
|
|
|
|
dialogClickModal: false, |
|
|
|
|
searchEnter: true, |
|
|
|
|
@ -215,7 +237,7 @@ export default { |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
fixed: 'left', |
|
|
|
|
width: 180, |
|
|
|
|
width: 130, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
@ -410,7 +432,6 @@ export default { |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
// searchLabelWidth: 100, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '订单优先级', |
|
|
|
|
@ -421,7 +442,7 @@ export default { |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
// searchLabelWidth: 100, |
|
|
|
|
hide:true, |
|
|
|
|
hide: true, |
|
|
|
|
dicUrl: '/blade-system/dict/dictionary?code=orderPriority', |
|
|
|
|
props: { |
|
|
|
|
label: 'dictValue', |
|
|
|
|
@ -594,8 +615,8 @@ export default { |
|
|
|
|
}, |
|
|
|
|
mounted() {}, |
|
|
|
|
methods: { |
|
|
|
|
printCraftCard_new(row){ |
|
|
|
|
window.open(window.PROCESS_FLOW_CARD_HEAT_METER+'?woId='+row.woId,'_blank'); |
|
|
|
|
printCraftCard_new(row) { |
|
|
|
|
window.open(window.PROCESS_FLOW_CARD_HEAT_METER + '?woId=' + row.woId, '_blank'); |
|
|
|
|
}, |
|
|
|
|
// 优先级调整 |
|
|
|
|
priorityFn(row) { |
|
|
|
|
@ -648,9 +669,9 @@ export default { |
|
|
|
|
id: row.woId, |
|
|
|
|
yieldType: '12001', |
|
|
|
|
}; |
|
|
|
|
turnType(query).then((res) => { |
|
|
|
|
this.$message.success('转烧结成功'); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
turnType(query).then(res => { |
|
|
|
|
this.$message.success('转烧结成功'); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
@ -707,7 +728,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) { |
|
|
|
|
|