|
|
|
@ -20,76 +20,42 @@ |
|
|
|
<template #menu-left> |
|
|
|
<template #menu-left> |
|
|
|
<el-button type="primary" @click="handlePrintTags">过程记录打印</el-button> |
|
|
|
<el-button type="primary" @click="handlePrintTags">过程记录打印</el-button> |
|
|
|
<el-button type="primary" @click="handlePrintTags">打印标签</el-button> |
|
|
|
<el-button type="primary" @click="handlePrintTags">打印标签</el-button> |
|
|
|
<el-button type="primary" @click="priorityFnBatch">优先级调整</el-button> |
|
|
|
|
|
|
|
<!-- <el-button type="primary" icon="el-icon-printer" plain @click="handlePrint">打印</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" icon="el-icon-monitor" @click="handleOutsource(null, 'all')">批量外协</el-button> --> |
|
|
|
|
|
|
|
<!-- <el-button type="success" icon="el-icon-download">导出</el-button> --> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #menu-right> |
|
|
|
<template #menu-right> |
|
|
|
<el-button type="success" 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="warning" plain @click="queryOrdersHandle('3')">加工中</el-button> |
|
|
|
<el-button type="danger" plain @click="queryOrdersHandle('4')">检验中</el-button> |
|
|
|
<el-button type="danger" plain @click="queryOrdersHandle('4')">检验中</el-button> |
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button> |
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button> |
|
|
|
<el-button type="primary" @click="queryOrdersHandle('')">全部</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #menu="scope"> |
|
|
|
<template #menu="scope"> |
|
|
|
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> |
|
|
|
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> |
|
|
|
<el-button type="text" @click="handleClose(scope.row)" v-show="scope.row.runStatus < 15" |
|
|
|
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2" |
|
|
|
>关闭</el-button |
|
|
|
>优先级调整</el-button |
|
|
|
> |
|
|
|
|
|
|
|
<!-- <el-button type="text">打印</el-button> --> |
|
|
|
|
|
|
|
<el-dropdown |
|
|
|
|
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
style="margin-top: 4px; margin-left: 12px" |
|
|
|
|
|
|
|
v-show=" |
|
|
|
|
|
|
|
scope.row.approvalStatus != 2 && |
|
|
|
|
|
|
|
scope.row.oemType === -1 && |
|
|
|
|
|
|
|
scope.row.runStatus < 15 && |
|
|
|
|
|
|
|
scope.row.runStatus !== 5 |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<span class="el-dropdown-link" style="color: #284c89; cursor: pointer"> |
|
|
|
<el-button |
|
|
|
更多<i class="el-icon-arrow-down el-icon--right" /> |
|
|
|
type="text" |
|
|
|
</span> |
|
|
|
|
|
|
|
<template #dropdown> |
|
|
|
|
|
|
|
<el-dropdown-menu> |
|
|
|
|
|
|
|
<!-- <el-dropdown-item @click="handleIssued(scope.row)" |
|
|
|
|
|
|
|
v-show="scope.row.runStatus === 1">下达</el-dropdown-item> --> |
|
|
|
|
|
|
|
<!-- 分批按钮(状态2、3、4、6显示) --> |
|
|
|
|
|
|
|
<el-dropdown-item |
|
|
|
|
|
|
|
@click="handleBatches(scope.row)" |
|
|
|
@click="handleBatches(scope.row)" |
|
|
|
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)" |
|
|
|
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)" |
|
|
|
>分批</el-dropdown-item |
|
|
|
>分批</el-button |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
type="text" |
|
|
|
|
|
|
|
@click="handleAbnormal(scope.row)" |
|
|
|
|
|
|
|
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4" |
|
|
|
|
|
|
|
>异常申报</el-button |
|
|
|
> |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
<el-button |
|
|
|
|
|
|
|
type="text" |
|
|
|
@click="handleOutsource(scope.row)" |
|
|
|
@click="handleOutsource(scope.row)" |
|
|
|
v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5" |
|
|
|
v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5" |
|
|
|
>外协</el-dropdown-item |
|
|
|
>转外协</el-button |
|
|
|
> |
|
|
|
> |
|
|
|
<!-- <el-dropdown-item @click="handleReturn(scope.row)" |
|
|
|
|
|
|
|
v-show="scope.row.runStatus === 2">退货</el-dropdown-item> --> |
|
|
|
<el-button type="text" @click="handleClose(scope.row)" v-if="scope.row.runStatus < 15" |
|
|
|
<!-- <el-dropdown-item @click="handleScheduling(scope.row)" |
|
|
|
>关闭</el-button |
|
|
|
v-show="scope.row.runStatus < 15 && scope.row.priority != 5">调度标注</el-dropdown-item> --> |
|
|
|
|
|
|
|
<!-- <el-dropdown-item @click="handleClose(scope.row)" v-show="scope.row.runStatus < 15">关闭</el-dropdown-item> --> |
|
|
|
|
|
|
|
<!-- <el-dropdown-item @click="handleSintering(scope.row)" |
|
|
|
|
|
|
|
v-show="scope.row.runStatus < 15">转烧结</el-dropdown-item> --> |
|
|
|
|
|
|
|
<el-dropdown-item @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2" |
|
|
|
|
|
|
|
>优先级调整</el-dropdown-item |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-dropdown-item |
|
|
|
|
|
|
|
@click="handleAbnormal(scope.row)" |
|
|
|
|
|
|
|
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4" |
|
|
|
|
|
|
|
>异常申报</el-dropdown-item |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<!-- <el-dropdown-menu slot="dropdown"> |
|
|
|
|
|
|
|
<el-dropdown-item v-show="scope.row.runStatus === 1" |
|
|
|
|
|
|
|
:command="composeValue('send', scope.row)">下达</el-dropdown-item> |
|
|
|
|
|
|
|
</el-dropdown-menu> --> |
|
|
|
|
|
|
|
</el-dropdown> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
<!-- 打印标签 --> |
|
|
|
<!-- 打印标签 --> |
|
|
|
@ -112,8 +78,10 @@ |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
<!-- 转外协弹窗 --> |
|
|
|
<!-- 转外协弹窗 --> |
|
|
|
<outsource-dialog |
|
|
|
<outsource-dialog |
|
|
|
:show-dialog="showDialog" |
|
|
|
v-if="showOemDialog" |
|
|
|
|
|
|
|
:show-dialog="showOemDialog" |
|
|
|
:show-radio="showRadio" |
|
|
|
:show-radio="showRadio" |
|
|
|
|
|
|
|
:itemData="itemData" |
|
|
|
@closeDialog="closeDialog" |
|
|
|
@closeDialog="closeDialog" |
|
|
|
></outsource-dialog> |
|
|
|
></outsource-dialog> |
|
|
|
<!-- 生产监控 --> |
|
|
|
<!-- 生产监控 --> |
|
|
|
@ -123,24 +91,25 @@ |
|
|
|
@closeDialog="closeDialog" |
|
|
|
@closeDialog="closeDialog" |
|
|
|
></production-dialog> |
|
|
|
></production-dialog> |
|
|
|
<!-- 分批弹窗 --> |
|
|
|
<!-- 分批弹窗 --> |
|
|
|
<batches-dialog :show-batches="showBatches" @closeDialog="closeDialog"></batches-dialog> |
|
|
|
<batches-dialog |
|
|
|
|
|
|
|
v-if="showBatches" |
|
|
|
|
|
|
|
:show-batches="showBatches" |
|
|
|
|
|
|
|
:itemData="itemData" |
|
|
|
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
|
|
|
></batches-dialog> |
|
|
|
<!-- 关闭弹窗 --> |
|
|
|
<!-- 关闭弹窗 --> |
|
|
|
|
|
|
|
|
|
|
|
<closed-dialog |
|
|
|
<closed-dialog |
|
|
|
v-if="showClose" |
|
|
|
v-if="showClose" |
|
|
|
:show-close="showClose" |
|
|
|
:show-close="showClose" |
|
|
|
@closeDialog="closeDialog" |
|
|
|
@closeDialog="closeDialog" |
|
|
|
:itemData="itemData" |
|
|
|
:itemData="itemData" |
|
|
|
></closed-dialog> |
|
|
|
></closed-dialog> |
|
|
|
<!-- 退货弹窗 --> |
|
|
|
|
|
|
|
<return-dialog :show-return="showReturn" @closeDialog="closeDialog"></return-dialog> |
|
|
|
|
|
|
|
<!-- 调度标注 --> |
|
|
|
|
|
|
|
<scheduling-dialog |
|
|
|
|
|
|
|
:show-scheduling="showScheduling" |
|
|
|
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
|
|
|
></scheduling-dialog> |
|
|
|
|
|
|
|
<!-- 异常处理 --> |
|
|
|
<!-- 异常处理 --> |
|
|
|
<abnormalDialog :show-abnormal="showAbnormal" @closeDialog="closeDialog"></abnormalDialog> |
|
|
|
<abnormalDialog |
|
|
|
|
|
|
|
v-if="showAbnormal" |
|
|
|
|
|
|
|
:show-abnormal="showAbnormal" |
|
|
|
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
|
|
|
></abnormalDialog> |
|
|
|
<!-- 优先级调整 --> |
|
|
|
<!-- 优先级调整 --> |
|
|
|
<productionMonitoringDialog |
|
|
|
<productionMonitoringDialog |
|
|
|
:showDialog="isPriorityOpen" |
|
|
|
:showDialog="isPriorityOpen" |
|
|
|
@ -161,9 +130,7 @@ import schedulingDialog from './components/schedulingDialog.vue'; |
|
|
|
import abnormalDialog from './components/abnormalDialog.vue'; |
|
|
|
import abnormalDialog from './components/abnormalDialog.vue'; |
|
|
|
import productionMonitoringDialog from './components/productionMonitoringDialog.vue'; |
|
|
|
import productionMonitoringDialog from './components/productionMonitoringDialog.vue'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
import { getList } from '@/api/productionManagement/productionMonitoring'; |
|
|
|
getList, |
|
|
|
|
|
|
|
} from '@/api/productionManagement/productionMonitoring'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
@ -180,7 +147,7 @@ export default { |
|
|
|
return { |
|
|
|
return { |
|
|
|
isPriorityOpen: false, |
|
|
|
isPriorityOpen: false, |
|
|
|
showAbnormal: false, |
|
|
|
showAbnormal: false, |
|
|
|
showDialog: false, |
|
|
|
showOemDialog: true, |
|
|
|
showRadio: true, |
|
|
|
showRadio: true, |
|
|
|
monitorDialog: false, |
|
|
|
monitorDialog: false, |
|
|
|
showBatches: false, |
|
|
|
showBatches: false, |
|
|
|
@ -562,9 +529,13 @@ export default { |
|
|
|
value: -1, |
|
|
|
value: -1, |
|
|
|
label: '场内', |
|
|
|
label: '场内', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
value: 1, |
|
|
|
|
|
|
|
label: '整单', |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
value: 2, |
|
|
|
value: 2, |
|
|
|
label: '外协', |
|
|
|
label: '协作', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -648,10 +619,12 @@ export default { |
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
this.$message.error('请先选择数据'); |
|
|
|
this.$message.error('请先选择数据'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.showDialog = true; |
|
|
|
this.itemData = this.selectionList; |
|
|
|
|
|
|
|
this.showOemDialog = true; |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.showDialog = true; |
|
|
|
this.itemData = [row]; |
|
|
|
|
|
|
|
this.showOemDialog = true; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 退货 |
|
|
|
// 退货 |
|
|
|
@ -667,7 +640,8 @@ export default { |
|
|
|
}).then(() => {}); |
|
|
|
}).then(() => {}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 分批 |
|
|
|
// 分批 |
|
|
|
handleBatches() { |
|
|
|
handleBatches(row) { |
|
|
|
|
|
|
|
this.itemData = [row]; |
|
|
|
this.showBatches = true; |
|
|
|
this.showBatches = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 调度标注 |
|
|
|
// 调度标注 |
|
|
|
@ -733,7 +707,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 关闭弹窗 |
|
|
|
// 关闭弹窗 |
|
|
|
closeDialog(type) { |
|
|
|
closeDialog(type) { |
|
|
|
this.showDialog = false; |
|
|
|
this.showOemDialog = false; |
|
|
|
this.monitorDialog = false; |
|
|
|
this.monitorDialog = false; |
|
|
|
this.showBatches = false; |
|
|
|
this.showBatches = false; |
|
|
|
this.showClose = false; |
|
|
|
this.showClose = false; |
|
|
|
|