From 3dfafb194eccf8aac8857d6304e23d54950ba5db Mon Sep 17 00:00:00 2001 From: zyn Date: Sun, 23 Apr 2023 15:35:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=AE=A1=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk-product/step1.vue | 58 ++++++++++++------ .../creatProcess/qbrk-product/step13.vue | 59 +++++++++++++------ .../pages/creatProcess/qbrk-product/step3.vue | 58 ++++++++++++------ .../pages/creatProcess/qbrk-product/step6.vue | 58 ++++++++++++------ 4 files changed, 160 insertions(+), 73 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue index b76bf9111..62bd94e92 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue @@ -1524,30 +1524,30 @@ 'form.standStatus': { handler (val) { if (val !== '' && val !== null && typeof (val) !== 'undefined') { - + this.FSRQchange() } } }, 'form.issueTime': { handler: function() { - if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ - let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) - // 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; - this.form["FSRQBUSS"] = FSRQBUSS - - } + this.FSRQchange() + // if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ + // let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) + // // 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; + // this.form["FSRQBUSS"] = FSRQBUSS + // + // } }, }, 'form.country': { @@ -1568,6 +1568,26 @@ }, }, methods: { + FSRQchange(){ + if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ + let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) + + let year = date.getFullYear()+5; + if(this.form.standSort === 'Q/QCBFC' || this.form.standSort === 'Q/FT X'){ + year = date.getFullYear()+3; + } + 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; + this.form["FSRQBUSS"] = FSRQBUSS + } + }, regDate(data){ if(this.form.standCode !== undefined && this.form.standCode !== null && this.form.standCode.indexOf(data) !== -1){ data = data + ' X' diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step13.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step13.vue index c6982c76b..e0ad27df7 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step13.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step13.vue @@ -1101,29 +1101,32 @@ handler (val) { if (val !== '' && val !== null && typeof (val) !== 'undefined') { this.getStandInfoByReviseStatus() + this.FSRQchange() } } }, 'form.issueTime': { handler: function() { - if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ - let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) - // 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; - this.form["FSRQBUSS"] = FSRQBUSS - - } + this.FSRQchange(); + // if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ + // let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) + // // 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; + // this.form["FSRQBUSS"] = FSRQBUSS + // console.log(FSRQBUSS) + // + // } }, }, 'form.country': { @@ -1149,6 +1152,26 @@ }, }, methods: { + FSRQchange(){ + if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ + let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) + + let year = date.getFullYear()+5; + if(this.form.standSort === 'Q/QCBFC' || this.form.standSort === 'Q/FT X'){ + year = date.getFullYear()+3; + } + 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; + this.form["FSRQBUSS"] = FSRQBUSS + } + }, checkedRoleTransfer (data) { this.isSubmit = true this.saveLoading = true diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step3.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step3.vue index 41e302f3e..45082b082 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step3.vue @@ -1078,29 +1078,31 @@ handler (val) { if (val !== '' && val !== null && typeof (val) !== 'undefined') { this.getStandInfoByReviseStatus("") + this.FSRQchange() } } }, 'form.issueTime': { handler: function() { - if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ - let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) - // 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; - this.form["FSRQBUSS"] = FSRQBUSS - - } + this.FSRQchange() + // if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ + // let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) + // // 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; + // this.form["FSRQBUSS"] = FSRQBUSS + // + // } }, }, 'form.country': { @@ -1126,6 +1128,26 @@ }, }, methods: { + FSRQchange(){ + if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ + let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) + + let year = date.getFullYear()+5; + if(this.form.standSort === 'Q/QCBFC' || this.form.standSort === 'Q/FT X'){ + year = date.getFullYear()+3; + } + 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; + this.form["FSRQBUSS"] = FSRQBUSS + } + }, regDate(data){ if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null && this.form.DTQBBHBUSS.indexOf(data) !== -1){ data = data + ' X' diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step6.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step6.vue index 2e9cad37b..3c8710d36 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step6.vue @@ -1156,29 +1156,31 @@ handler (val) { if (val !== '' && val !== null && typeof (val) !== 'undefined') { this.getStandInfoByReviseStatus() + this.FSRQchange() } } }, 'form.issueTime': { handler: function() { - if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ - let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) - // 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; - this.form["FSRQBUSS"] = FSRQBUSS - - } + this.FSRQchange() + // if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ + // let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) + // // 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; + // this.form["FSRQBUSS"] = FSRQBUSS + // + // } }, }, 'form.country': { @@ -1204,6 +1206,26 @@ }, }, methods: { + FSRQchange(){ + if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){ + let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD')) + + let year = date.getFullYear()+5; + if(this.form.standSort === 'Q/QCBFC' || this.form.standSort === 'Q/FT X'){ + year = date.getFullYear()+3; + } + 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; + this.form["FSRQBUSS"] = FSRQBUSS + } + }, regDate(data){ if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null && this.form.DTQBBHBUSS.indexOf(data) !== -1){ data = data + ' X'