refactor(入库任务): 下发按钮增加禁用逻辑

This commit is contained in:
Kelvin 2025-01-02 15:21:27 +08:00
parent d2a380ce43
commit aa42830129

View File

@ -90,18 +90,12 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button--> <!--下发按钮禁用逻辑状态为已执行 or 库位编码为自动分配-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-edit"-->
<!-- @click="openTaskDetailDialog(scope.row)"-->
<!-- >详情-->
<!-- </el-button>-->
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
:disabled="scope.row.planInStatus === '1'" :disabled="scope.row.planInStatus === '1' || scope.row.cellCode==='TEMP'"
@click="handleIssue(scope.row)" @click="handleIssue(scope.row)"
>下发 >下发
</el-button> </el-button>
@ -112,14 +106,6 @@
@click="manualIssue(scope.row)" @click="manualIssue(scope.row)"
>手动入库 >手动入库
</el-button> </el-button>
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-delete"-->
<!-- @click="handleDelete(scope.row)"-->
<!-- v-hasPermi="['wm:wmsInTask:remove']"-->
<!-- >删除-->
<!-- </el-button>-->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -288,11 +274,11 @@ export default {
taskId: task.id, taskId: task.id,
// //
cellCode: task.cellCode, cellCode: task.cellCode,
cellX:task.cellX, cellX: task.cellX,
cellY:task.cellY, cellY: task.cellY,
cellZ:task.cellZ, cellZ: task.cellZ,
// //
warehouseTypeCode:"DDJ", warehouseTypeCode: "DDJ",
// //
// materialId: task.materialId, // materialId: task.materialId,
// materialCode: task.materialCode, // materialCode: task.materialCode,