Browse Source

签章流程实例标题不正确问题

lizhenhao 2 years ago
parent
commit
eb93d19285

+ 14 - 2
src/views/modules/cw/reportManagement/ReportManagementSignatureForm.vue

@@ -959,8 +959,8 @@
           }
         }
         let processTitle = `${this.userName} 发起了 ${this.inputForm.reportNo} - ${this.inputForm.projectName} ` + describe
-        this.inputForm.formTitle = processTitle
-        this.inputForm.title = title
+        this.inputForm.formTitle = title
+        this.inputForm.title = processTitle
 
         this.$refs['inputForm'].validate((valid) => {
           if (valid) {
@@ -1052,6 +1052,18 @@
         })
       },
       async agreeForm (callback) {
+        let describe = ''
+        if (this.inputForm.signatureType) {
+          if (this.inputForm.signatureType === '1') {
+            describe = `[会计-报告签章-电子公章]`
+          } else if (this.inputForm.signatureType === '2') {
+            describe = `[会计-报告签章-电子公章+执业章]`
+          } else if (this.inputForm.signatureType === '3') {
+            describe = `[会计-报告签章-实体公章]`
+          }
+        }
+        let processTitle = `${this.inputForm.userName} 发起了 ${this.inputForm.reportNo} - ${this.inputForm.projectName} ` + describe
+        this.inputForm.title = processTitle
         if (this.inputForm.signatureType === '1') {
           this.projectReportService.findBySignatureId(this.inputForm.sid1).then(({data}) => {
             if (data.status !== '2') { // status的值不等于“审核中”就弹出提示