diff --git a/hw-ui/src/views/mes/productplan/editProductPlan.vue b/hw-ui/src/views/mes/productplan/editProductPlan.vue index 348d50a4..d6a3826d 100644 --- a/hw-ui/src/views/mes/productplan/editProductPlan.vue +++ b/hw-ui/src/views/mes/productplan/editProductPlan.vue @@ -249,6 +249,7 @@ :key="item.attachId" :label="item.attachName" :value="item.attachId" + :disabled="isOptionDisabled(item.attachId)" > @@ -323,6 +324,7 @@ :key="item.attachId" :label="item.attachName" :value="item.attachId" + :disabled="isOptionDisabled(item.attachId)" > @@ -1208,8 +1210,8 @@ export default { this.materialBomAttachIdList.push(attachInfo.attachId); } } + this.blueprintModel = true; }); - this.blueprintModel = true; }, //添加图纸提交 @@ -1345,8 +1347,8 @@ export default { this.materialBomAttachIdList.push(attachInfo.attachId); } } + this.sopViewModel = true; }); - this.sopViewModel = true; }, //添加sop提交 @@ -1540,6 +1542,11 @@ export default { this.uploadSopList[this.addProductPlanObject.dispatchCode + "-" + this.addProductPlanObject.processId].push(e.attachId); } } + }, + + isOptionDisabled(attachId) { + // 根据业务逻辑,禁用某些选项的删除 + return this.materialBomAttachIdList.includes(attachId); // 例如可以禁用某些特定选项 } },