refactor(智能柜卡片详情): 简化单元格按钮显示条件逻辑

移除belongType判断,仅根据goodsId显示对应按钮
This commit is contained in:
dzq 2025-06-12 09:18:31 +08:00
parent 5dcdca0397
commit 7b274988dd
1 changed files with 2 additions and 2 deletions

View File

@ -355,11 +355,11 @@ onMounted(() => {
<span class="line-number">{{ item.cellNo }}</span>
</div>
<div class="action-buttons">
<el-button v-if="cabinetInfo.belongType === 0 && !item.goodsId" link type="success"
<el-button v-if="!item.goodsId" link type="success"
@click="handleConfigure(item)" class="cell-btn">
商品配置
</el-button>
<el-button v-if="cabinetInfo.belongType === 1 || item.goodsId" link type="primary"
<el-button v-if="item.goodsId" link type="primary"
@click="handleEditCell(item)" class="cell-btn">
{{ item.goodsName }}
</el-button>