From 803d6eb9e3cb7d3e9eee0d3164b83ea5a28d0799 Mon Sep 17 00:00:00 2001 From: xielue Date: Fri, 15 Sep 2023 12:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=85=B7=20=E5=B8=83=E4=BA=A7?= =?UTF-8?q?=E5=B8=A6=E5=85=A5=E6=A8=A1=E5=85=B7=E5=B7=A5=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Middle/Mold/MoldProductionOrder/Edit.vue | 12 ++++++++---- src/pages/Middle/Mold/MoldScheme/Edit.vue | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue b/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue index 8171e43..3113588 100644 --- a/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue +++ b/src/pages/Middle/Mold/MoldProductionOrder/Edit.vue @@ -548,7 +548,7 @@ export default { this.formOptions.data = JSON.parse(JSON.stringify(this.formOptions.data)) - //this.loadMoleData(detail.mold_id); + this.loadMoleData(detail.mold_id); this.$forceUpdate() @@ -578,7 +578,7 @@ export default { currentAddRows1.push({ component_id: pitem.component_id.toString(), component_num: 1, - component_detail: { id: row.id, name: row.name }, + component_detail: { id: pitem.mold_component.id, name: pitem.mold_component.name }, }) } @@ -669,6 +669,11 @@ export default { // 格式化提交的数据 this.$mk.formatFormData({ data: postdata, rules: this.formOptions.items }); + + if (postdata.id) { + postdata.id = this.$mk.toBigInt(postdata.id); + } + if (postdata.mold_id) { postdata.mold_id = this.$mk.toBigInt(postdata.mold_id); } @@ -715,8 +720,7 @@ export default { value: postdata.mold_production_order_component_processes }); } - - + // 提交数据 this.$mk.post({ url: action, diff --git a/src/pages/Middle/Mold/MoldScheme/Edit.vue b/src/pages/Middle/Mold/MoldScheme/Edit.vue index 48760ee..ee8902f 100644 --- a/src/pages/Middle/Mold/MoldScheme/Edit.vue +++ b/src/pages/Middle/Mold/MoldScheme/Edit.vue @@ -524,6 +524,7 @@ export default { const record = { } if (row) { + this.detailsData = JSON.parse(JSON.stringify(this.detailsData)) this.detailsData.splice($table.getRowSeq(row), 0, record); } else { this.detailsData.push(record) @@ -547,6 +548,7 @@ export default { const record = { } if (row) { + this.detailsData2 = JSON.parse(JSON.stringify(this.detailsData2)) this.detailsData2.splice($table.getRowSeq(row), 0, record); } else { this.detailsData2.push(record)