From ae51bad4e8e32752ce3c71ffa6ea57cca326d1ba Mon Sep 17 00:00:00 2001 From: yinq Date: Tue, 17 Dec 2024 09:11:56 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E7=94=9F=E4=BA=A7=E6=B4=BE?= =?UTF-8?q?=E5=B7=A5=E9=80=89=E6=8B=A9BOM=E5=9B=BE=E7=BA=B8=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw-ui/src/views/mes/productplan/editProductPlan.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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); // 例如可以禁用某些特定选项 } },