From c15c0d6adcee7e29fa34b86afeeaed5345b6cc9e Mon Sep 17 00:00:00 2001 From: Kelvin Date: Fri, 13 Dec 2024 14:31:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/wm/inPlan/wmsInPlanDetailEntityTableCmps.vue | 6 +++++- src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/mes/wm/inPlan/wmsInPlanDetailEntityTableCmps.vue b/src/views/mes/wm/inPlan/wmsInPlanDetailEntityTableCmps.vue index affa2f8..f8c621c 100644 --- a/src/views/mes/wm/inPlan/wmsInPlanDetailEntityTableCmps.vue +++ b/src/views/mes/wm/inPlan/wmsInPlanDetailEntityTableCmps.vue @@ -14,6 +14,10 @@ export default { planTypeId: { type: String, require: true + }, + planTypeCode: { + type: String, + require: true } }, data() { @@ -25,7 +29,7 @@ export default { }, computed: { getKnifeType() { - if (this.planTypeId == 9 || this.planTypeId == 15) { + if (["CDHK", "ZDHK"].includes(this.planTypeCode)) { return "整刀" } else { return "刀柄类" diff --git a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue index 2315eaa..4c1a2f6 100644 --- a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue +++ b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue @@ -230,6 +230,7 @@ export default {