fix:只有喷码时显示喷码按钮

This commit is contained in:
shijing 2026-05-20 15:23:38 +08:00
parent a10f797569
commit 0bbac578e9
1 changed files with 5 additions and 3 deletions

View File

@ -9,14 +9,16 @@
<h4>关联产品</h4> <h4>关联产品</h4>
<el-button v-if="mode=='out'" type="primary" @click="wprNumberChange">发货编号</el-button> <el-button v-if="mode=='out'" type="primary" @click="wprNumberChange">发货编号</el-button>
<el-button v-if="mode=='out'" type="warning" @click="wprNumberClear">清空编号</el-button> <el-button v-if="mode=='out'" type="warning" @click="wprNumberClear">清空编号</el-button>
<el-button type="primary" @click="openSplit">拆批</el-button> <el-button v-if="mgroupName=='喷码'" type="primary" @click="openSplit">拆批</el-button>
<el-button <el-button
v-if="mgroupName=='喷码'"
type="warning" type="warning"
:disabled="selectedRows.length === 0" :disabled="selectedRows.length === 0"
:loading="batchCoderLoading" :loading="batchCoderLoading"
@click="batchSendToCoder" @click="batchSendToCoder"
>批量喷数字码</el-button> >批量喷数字码</el-button>
<el-button <el-button
v-if="mgroupName=='喷码'"
type="warning" type="warning"
:disabled="selectedRows.length === 0" :disabled="selectedRows.length === 0"
:loading="batchCoderLoading2" :loading="batchCoderLoading2"
@ -69,8 +71,8 @@
<template #default="scope"> <template #default="scope">
<el-button v-if="mode=='ins'&&mgroupName=='毛坯检测后打码'" @click="QRCode(scope.row)" type="success">二维码</el-button> <el-button v-if="mode=='ins'&&mgroupName=='毛坯检测后打码'" @click="QRCode(scope.row)" type="success">二维码</el-button>
<el-button @click="printMaterial(scope.row)" type="primary">打签</el-button> <el-button @click="printMaterial(scope.row)" type="primary">打签</el-button>
<el-button @click="sendToCoder(scope.row,'coder_field')" type="warning" :loading="!!coderLoadingIds[scope.row.id]" :disabled="!!coderLoadingIds[scope.row.id]">喷码</el-button> <el-button @click="sendToCoder(scope.row,'coder_field')" type="warning" v-if="mode=='ins'&&mgroupName=='喷码'" :loading="!!coderLoadingIds[scope.row.id]" :disabled="!!coderLoadingIds[scope.row.id]">喷码</el-button>
<el-button @click="sendToCoder(scope.row,'coder_field2')" type="warning" :loading="!!coderLoadingIds[scope.row.id]" :disabled="!!coderLoadingIds[scope.row.id]">喷码</el-button> <el-button @click="sendToCoder(scope.row,'coder_field2')" type="warning" v-if="mode=='ins'&&mgroupName=='喷码'" :loading="!!coderLoadingIds[scope.row.id]" :disabled="!!coderLoadingIds[scope.row.id]">喷码</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>