From 168d5da1920c878768d9e334b392c3d00f254aec Mon Sep 17 00:00:00 2001 From: "zhaokaiyao@91isoft.com" <6922339zky> Date: Sat, 4 Sep 2021 16:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=AE=A1=E6=97=A5=E6=9C=9F=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E4=B8=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=9A=84=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/EnterpriseStandardDatabase.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue index f27be025e..be621f770 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue @@ -3899,8 +3899,22 @@ export default { handler: function() { if(this.sarBussionessStandEO.issueTime !== undefined && this.sarBussionessStandEO.issueTime !== null && this.sarBussionessStandEO.issueTime !== ''){ let date = new Date(this.$moment(this.sarBussionessStandEO.issueTime).format('YYYY-MM-DD')) - const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate() - this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS + // const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate() + // this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS + + let year = date.getFullYear()+5; + let month =(date.getMonth() + 1).toString(); + let day = (date.getDate()).toString(); + if (month.length == 1) { + month = "0" + month; + } + if (day.length == 1) { + day = "0" + day; + } + const FSRQBUSS = year + "-" + month + "-" + day; + console.log(FSRQBUSS,"FSRQBUSS"); + this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS + } }, },