fix(wms): 根据审核状态控制钢卷选择器和删除按钮的显示

当计划审核状态为1时,隐藏钢卷选择器和删除按钮,防止已审核计划被修改
This commit is contained in:
砂糖
2025-12-09 14:41:51 +08:00
parent 2d30a2f3fb
commit f2726abb9a

View File

@@ -79,7 +79,7 @@
</div>
<div v-else>
<coil-selector ref="coilSelector" placeholder="请选择钢卷添加至计划" @change="handleCoilChange"></coil-selector>
<coil-selector v-if="currentPlan.auditStatus != 1" ref="coilSelector" placeholder="请选择钢卷添加至计划" @change="handleCoilChange"></coil-selector>
<div v-if="selectedCoilList.length > 0 && currentPlan.planId">
<el-table :data="selectedCoilList" highlight-current-row height="400px" style="width: 100%">
<el-table-column type="index" width="50" align="center" label="序号" />
@@ -92,7 +92,7 @@
<el-table-column label="厂家" align="center" prop="manufacturer" />
<el-table-column label="重量(t)" align="center" prop="netWeight" width="100" />
<el-table-column label="库区" align="center" prop="warehouseName" :show-overflow-tooltip="true" />
<el-table-column label="操作" align="center" width="100" fixed="right">
<el-table-column label="操作" align="center" width="100" fixed="right" v-if="currentPlan.auditStatus != 1">
<template slot-scope="scope">
<el-button type="danger" size="small" @click.stop="handleDeleteCoil(scope.row)">删除</el-button>
</template>