From f75df14d55e3b5768082dda54520c88722249868 Mon Sep 17 00:00:00 2001 From: zyn Date: Fri, 21 Apr 2023 16:50:03 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9<=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=9B=B4=E5=90=8D=E6=A0=87=E5=87=86>=E5=88=97=E8=A1=A8total?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbzxdjhgk/component/rename.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/rename.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/rename.vue index c1f1aa7ea..59788acbd 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/rename.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/rename.vue @@ -254,6 +254,7 @@ { this.standinfoList = res.data.list //展示的数据只能是未开始的 @@ -467,7 +470,7 @@ export default { // this.standinfoList.push(item) // } // }) - this.total = this.standinfoList.length + this.total = res.data.count this.$nextTick(()=>{ this.$refs.selection.doLayout() }) From b701c3b3ae8478ee70b33700af7413ce319703c8 Mon Sep 17 00:00:00 2001 From: zyn Date: Sun, 23 Apr 2023 09:10:53 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E5=88=9D=E5=AE=A1=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=9C=A8=E7=BA=BF=E7=BC=96=E8=BE=91=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/processCenter/pages/creatProcess/qbrk/step4.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step4.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step4.vue index 110682d03..0b1a1101c 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step4.vue @@ -20,7 +20,7 @@
Date: Sun, 23 Apr 2023 09:59:55 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk/step1-2.vue | 41 ++++++++++++++++++- .../pages/creatProcess/qbrk/step1.vue | 41 ++++++++++++++++++- 2 files changed, 78 insertions(+), 4 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step1-2.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step1-2.vue index 9416e4277..58926e95b 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step1-2.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step1-2.vue @@ -213,8 +213,12 @@
{{ item.name }} + style="color: #409eff;cursor:pointer" + class="fileClass"> + {{ item.name }} + + +
@@ -2919,6 +2923,39 @@ this.$preview(attId) } }, + handleFilePreview2(file, type) { + let attId = "" + if (file && file.id) { + attId = file.id + } else { + attId = file.response.data.id + } + if (file.name == this.form.standName) { + let fileName = "" + let fileNam2 = "" + if (this.form.standName && this.form.standName !== '') { + fileName = this.form.standName + '-企业标准.docx' + fileNam2 = this.form.standName + } else { + fileName = '企业标准.docx' + fileNam2 = '企业标准' + } + let form = JSON.parse(JSON.stringify(this.form)) + form.standCode = '' + form.issueDate = '' + this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form) + return + } + if (type === 'down') { + if (attId) { + window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId) + } else { + this.$message.warning('文件不存在,下载失败') + } + } else { + this.$preview(attId) + } + }, handleFilePreviewOne(file, type) { let id = "" let fileName = "" diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue index f7993f0d7..8c6a67db9 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue @@ -209,8 +209,12 @@
{{ item.name }} + @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer;margin-left: 12px;" + class="fileClass"> + {{ item.name }} + + +
@@ -2889,6 +2893,39 @@ this.$preview(attId) } }, + handleFilePreview2(file, type) { + let attId = "" + if (file && file.id) { + attId = file.id + } else { + attId = file.response.data.id + } + if (file.name == this.form.standName) { + let fileName = "" + let fileNam2 = "" + if (this.form.standName && this.form.standName !== '') { + fileName = this.form.standName + '-企业标准.docx' + fileNam2 = this.form.standName + } else { + fileName = '企业标准.docx' + fileNam2 = '企业标准' + } + let form = JSON.parse(JSON.stringify(this.form)) + form.standCode = '' + form.issueDate = '' + this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form) + return + } + if (type === 'down') { + if (attId) { + window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId) + } else { + this.$message.warning('文件不存在,下载失败') + } + } else { + this.$preview(attId) + } + }, // 导入标准数据成功后执行 importFileSuccess(response, file, fileList) { // 上传成功后判断是否是两条数据是的话替换掉旧数据 From 00939fe7295b302871f445505375d26ce1a15b28 Mon Sep 17 00:00:00 2001 From: zyn Date: Sun, 23 Apr 2023 11:15:30 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E6=8A=80=E6=9C=AF=E6=A0=87=E5=87=86-?= =?UTF-8?q?=E5=BE=81=E6=B1=82=E6=84=8F=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/processCenter/pages/creatProcess/qbrk/step5.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue index 1e95821ba..48452eda6 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue @@ -1726,6 +1726,9 @@ zrDeptIdName:this.$store.getters.userInfo.institutionName, children:[], }; + if(!this.form.modelData){ + this.form.modelData = [] + } this.form.modelData.push(list); this.$message.success("新增成功") this.showForm.modelNum = "" @@ -2915,7 +2918,7 @@ if (valid) { this.$refs['formTongGuo'].validate((valid) => { if (valid) { - if(this.form.modelData.length === 0){ + if(this.form.modelData === undefined || this.form.modelData.length === 0){ this.opinionDialogVisible = true }else{ this.commentTextHandle(); From 99c56936a15cf70009e3bb01e47f6b997e8ab3f0 Mon Sep 17 00:00:00 2001 From: zyn Date: Sun, 23 Apr 2023 11:16:23 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E8=B5=B7=E8=8D=89-=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk-product/step1.vue | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue index 86d1a1840..a96f24657 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue @@ -218,7 +218,12 @@ >
-
{{ item.name }}
+
+ {{ item.name }} + + + +
Date: Sun, 23 Apr 2023 11:50:51 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E5=9B=9E=E6=BB=9A=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/processCenter/pages/creatProcess/qbrk/step5.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue index 1e95821ba..48452eda6 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue @@ -1726,6 +1726,9 @@ zrDeptIdName:this.$store.getters.userInfo.institutionName, children:[], }; + if(!this.form.modelData){ + this.form.modelData = [] + } this.form.modelData.push(list); this.$message.success("新增成功") this.showForm.modelNum = "" @@ -2915,7 +2918,7 @@ if (valid) { this.$refs['formTongGuo'].validate((valid) => { if (valid) { - if(this.form.modelData.length === 0){ + if(this.form.modelData === undefined || this.form.modelData.length === 0){ this.opinionDialogVisible = true }else{ this.commentTextHandle(); From b20a3683ab1bfcced7fc216b5d7c50a9a4ecdcf1 Mon Sep 17 00:00:00 2001 From: zyn Date: Sun, 23 Apr 2023 13:37:37 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk-product/step1.vue | 40 +----------------- .../pages/creatProcess/qbrk/step1-2.vue | 41 +------------------ .../pages/creatProcess/qbrk/step1.vue | 41 +------------------ 3 files changed, 5 insertions(+), 117 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue index a96f24657..b76bf9111 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue @@ -218,12 +218,7 @@ >
-
- {{ item.name }} - - - -
+
{{ item.name }}
- {{ item.name }} - - - + @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" + class="fileClass">{{ item.name }}
@@ -2923,39 +2919,6 @@ this.$preview(attId) } }, - handleFilePreview2(file, type) { - let attId = "" - if (file && file.id) { - attId = file.id - } else { - attId = file.response.data.id - } - if (file.name == this.form.standName) { - let fileName = "" - let fileNam2 = "" - if (this.form.standName && this.form.standName !== '') { - fileName = this.form.standName + '-企业标准.docx' - fileNam2 = this.form.standName - } else { - fileName = '企业标准.docx' - fileNam2 = '企业标准' - } - let form = JSON.parse(JSON.stringify(this.form)) - form.standCode = '' - form.issueDate = '' - this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form) - return - } - if (type === 'down') { - if (attId) { - window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId) - } else { - this.$message.warning('文件不存在,下载失败') - } - } else { - this.$preview(attId) - } - }, handleFilePreviewOne(file, type) { let id = "" let fileName = "" diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue index 8c6a67db9..f7993f0d7 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue @@ -209,12 +209,8 @@
- {{ item.name }} - - - + @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" + class="fileClass">{{ item.name }}
@@ -2893,39 +2889,6 @@ this.$preview(attId) } }, - handleFilePreview2(file, type) { - let attId = "" - if (file && file.id) { - attId = file.id - } else { - attId = file.response.data.id - } - if (file.name == this.form.standName) { - let fileName = "" - let fileNam2 = "" - if (this.form.standName && this.form.standName !== '') { - fileName = this.form.standName + '-企业标准.docx' - fileNam2 = this.form.standName - } else { - fileName = '企业标准.docx' - fileNam2 = '企业标准' - } - let form = JSON.parse(JSON.stringify(this.form)) - form.standCode = '' - form.issueDate = '' - this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form) - return - } - if (type === 'down') { - if (attId) { - window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId) - } else { - this.$message.warning('文件不存在,下载失败') - } - } else { - this.$preview(attId) - } - }, // 导入标准数据成功后执行 importFileSuccess(response, file, fileList) { // 上传成功后判断是否是两条数据是的话替换掉旧数据 From 3dfafb194eccf8aac8857d6304e23d54950ba5db Mon Sep 17 00:00:00 2001 From: zyn Date: Sun, 23 Apr 2023 15:35:37 +0800 Subject: [PATCH 8/9] =?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' From c9574430ffc6eea6b8fa02ba4225e28e5de16160 Mon Sep 17 00:00:00 2001 From: gaojiabao Date: Sun, 23 Apr 2023 18:24:04 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E5=A4=8D=E5=AE=A1=E6=B5=81=E7=A8=8B=20?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/processCenter/pages/creatProcess/qbfs/step1.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbfs/step1.vue b/src/pages/processCenter/pages/creatProcess/qbfs/step1.vue index 756e160dc..1baee681f 100644 --- a/src/pages/processCenter/pages/creatProcess/qbfs/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbfs/step1.vue @@ -934,7 +934,7 @@ export default { this.replaceLawsNumForm.reviewTimeStart = "" this.replaceLawsNumForm.reviewTimeEnd = "" } - this.$http.get('lawss/sarBussionessStandState/getSarBussionStandPageNo', this.replaceLawsNumForm, { + this.$http.get('lawss/activiti/getSarBussionStandPageNo', this.replaceLawsNumForm, { _this: this, loading: 'replaceLoading' }, res => { @@ -976,7 +976,7 @@ export default { this.replaceLawsNumForm.reviewTimeStart = "" this.replaceLawsNumForm.reviewTimeEnd = "" } - this.$http.get('lawss/sarBussionessStandState/getSarBussionStandPageNo', this.replaceLawsNumForm, { + this.$http.get('lawss/activiti/getSarBussionStandPageNo', this.replaceLawsNumForm, { _this: this, loading: 'replaceLoading' }, res => {