From 3d22dc0c6a2c863a3e6994293c98a6243fa0b71f Mon Sep 17 00:00:00 2001 From: xielue Date: Sat, 16 Sep 2023 11:02:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mold/MoldProductionOrder/ComponentDetail.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue b/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue index c3c8ecf..0cb2a17 100644 --- a/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue +++ b/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue @@ -370,9 +370,21 @@ export default { pageInit() { + + this.itemData.mold_production_order_component.forEach(item=>{ + if(!item.production_type){ + item.production_type = 1; + } + }) + + this.detailsData = JSON.parse(JSON.stringify(this.itemData.mold_production_order_component || [])); this.detailsData2 = JSON.parse(JSON.stringify(this.itemData.mold_production_order_component_processes || [])); + + + + this.loadDepartment(); this.detailsDataInit();