From c5d621f8f4c0c8f5051c45abdeed36a2313f39b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 26 Oct 2023 17:03:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=87=8D=E7=82=B9=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E6=A0=87=E5=87=86/=E6=94=BF=E7=AD=96=E5=90=88?= =?UTF-8?q?=E8=A7=84=E6=80=A7=E9=A1=B9=E7=9B=AE=E5=AE=A1=E6=9F=A5=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/addModel.vue | 3 +++ .../components/productPlanningList.vue | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/addModel.vue b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/addModel.vue index 4945de102..2f790544e 100644 --- a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/addModel.vue +++ b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/addModel.vue @@ -413,6 +413,9 @@ this.infoTableDatas = JSON.parse(JSON.stringify(list)) this.$nextTick(() => { this.multipleTableItemForm = JSON.parse(JSON.stringify(row)) + if (!this.multipleTableItemForm.infoTableData) { + this.multipleTableItemForm.infoTableData = {} + } this.multipleTableItemForm = {...this.multipleTableItemForm} this.$refs['multipleTableItemRef'].clearValidate() }) diff --git a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/productPlanningList.vue b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/productPlanningList.vue index 55e1bba28..a6d775378 100644 --- a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/productPlanningList.vue +++ b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/components/productPlanningList.vue @@ -349,7 +349,6 @@ }, getData(row) { - console.log(row); this.infoTableDatas = row.infoTableDatas || [] this.infoTableDatas = [...this.infoTableDatas] this.multipleTableData = row.cpghbDataList || [] @@ -358,8 +357,24 @@ if (res.infoTableData) { res.infoTableData = JSON.parse(res.infoTableData) } + res.gZeroDate = this.$moment(res.gZeroDate).format('YYYY-MM-DD') + res.gOneDate = this.$moment(res.gOneDate).format('YYYY-MM-DD') + res.gTwoDate = this.$moment(res.gTwoDate).format('YYYY-MM-DD') + res.gThreeDate = this.$moment(res.gThreeDate).format('YYYY-MM-DD') + res.gFourDate = this.$moment(res.gFourDate).format('YYYY-MM-DD') + res.gFiveDate = this.$moment(res.gFiveDate).format('YYYY-MM-DD') + res.gSixDate = this.$moment(res.gSixDate).format('YYYY-MM-DD') + res.gSevenDate = this.$moment(res.gSevenDate).format('YYYY-MM-DD') + res.gEightDate = this.$moment(res.gEightDate).format('YYYY-MM-DD') + res.gNineDate = this.$moment(res.gNineDate).format('YYYY-MM-DD') + res.gTenDate = this.$moment(res.gTenDate).format('YYYY-MM-DD') + res.gElevenDate = this.$moment(res.gElevenDate).format('YYYY-MM-DD') + res.gTwelveDate = this.$moment(res.gTwelveDate).format('YYYY-MM-DD') + res.gThirteenDate = this.$moment(res.gThirteenDate).format('YYYY-MM-DD') + res.conceptPlanReleaseTime = this.$moment(res.conceptPlanReleaseTime).format('YYYY-MM-DD') }) } + console.log(this.multipleTableData); this.multipleTableData = [...this.multipleTableData] }, submit(callback) {