fix(自动线收卷):增加手动创建检验任务和手动打印取样标签按钮跳转

This commit is contained in:
liaohechuan 2025-04-09 16:20:16 +08:00
parent 69021b8599
commit e2697c9708

View File

@ -22,6 +22,30 @@
:form="agvRollOffLoadingForm"
@doConfirm="agvRollOffLoadingConfirm"
></agvRollOffLoading>
<!--手动创建检验任务弹窗-->
<el-dialog
id="manuallyCreated"
:visible.sync="manuallyCreatedVisible"
:fullscreen="true"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<div id="flowManuallyCreated">
<flow-panel-manuallyCreated ref="flowPanelManuallyCreated"></flow-panel-manuallyCreated>
</div>
</el-dialog>
<!--手工打印取样标签弹窗-->
<el-dialog
id="samplingLabel"
:visible.sync="samplingLabelVisible"
:fullscreen="true"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<div id="flowSamplingLabel">
<flow-panel-samplingLabel ref="flowPanelSamplingLabel"></flow-panel-samplingLabel>
</div>
</el-dialog>
<div class="flex-content">
<el-form ref="form" :rules="rules" :model="formObj" label-width="160px">
<el-row :gutter="5">
@ -164,6 +188,8 @@
<div class="button-center">
<el-button type="primary" @click="doReelingStart()">膜卷收卷开始</el-button>
<el-button type="primary" @click="doLotComplete()">收卷完成标签打印</el-button>
<el-button type="primary" @click="doManuallyCreated()">手动创建检验任务</el-button>
<el-button type="primary" @click="doSamplingLabel()">手动打印取样标签</el-button>
<!--<el-button type="primary" @click="doLotComplete()">膜卷明细查看</el-button>-->
</div>
</el-col>
@ -229,13 +255,15 @@ import { lotStatusList } from '@/views/mes/ord/shop-order/init'
import {listByActivityId} from "@/api/admin/activity-option";
import {getByCode as getAgvTaskTypeList} from '@/api/mes/sys/fast-code'
import {getByResourceHandle} from "@/api/mes/smd/work-center";
import FlowPanelManuallyCreated from '@/views/mes/qms/job-manually-created/index'
import FlowPanelSamplingLabel from '@/views/mes/qms/print-sampling-label/index'
const uuid = require('uuid');
export default {
name: 'jm-auto-reeling',
mixins: [common],
components: {lotCompleteConfirm, agvReelingManualCall, agvRollOffLoading},
components: {lotCompleteConfirm, agvReelingManualCall, agvRollOffLoading, FlowPanelManuallyCreated, FlowPanelSamplingLabel},
props: {},
data() {
@ -329,7 +357,9 @@ export default {
title: '生产订单',
},
particleItemGroupOption: '',
filmItemGroupOption: ''
filmItemGroupOption: '',
manuallyCreatedVisible: false,
samplingLabelVisible: false,
}
},
@ -363,6 +393,14 @@ export default {
},
methods: {
// 手动创建检验任务
doManuallyCreated() {
this.manuallyCreatedVisible = true;
},
// 手动打印取样标签
doSamplingLabel() {
this.samplingLabelVisible = true;
},
getActivityOption(activityId) {
let me = this;
showLoading();