Browse Source

fix:项目授信

jiand 7 months ago
parent
commit
507b9c6356

+ 1 - 1
src/views/creditManage/projectCredit/dueReview/components/Company/Auditing.vue

@@ -414,7 +414,7 @@ export default {
           postData.projectCoreEnterpriseNewsList = projectOwnerNewsList
         }
 
-        if (submitType === 'submit') {
+        if (submitType === 'submit' || submitType === 'assess') {
           this.$refs.ruleFormRef.validate(valid => {
             if (valid) {
               return resolve(postData)

+ 1 - 1
src/views/creditManage/projectCredit/dueReview/components/Company/CoreEnterprise.vue

@@ -80,7 +80,7 @@ export default {
     passData(submitType) {
       console.log(submitType, 888)
       return new Promise((resolve, reject) => {
-        if (submitType === 'submit') {
+        if (submitType === 'submit' || submitType === 'assess') {
           this.$refs.ruleFormRef.validate(valid => {
             if (valid) {
               return resolve(this.ruleForm)

+ 1 - 1
src/views/creditManage/projectCredit/dueReview/components/Company/HistoryCooperation.vue

@@ -204,7 +204,7 @@ export default {
         projectCoreEnterpriseFiles
       }
       return new Promise((resolve, reject) => {
-        if (submitType === 'submit') {
+        if (submitType === 'submit' || submitType === 'assess') {
           this.$refs.ruleFormRef.validate(valid => {
             if (valid) {
               return resolve(projectCoreEnterprise)

+ 4 - 3
src/views/creditManage/projectCredit/dueReview/components/Company/index.vue

@@ -130,9 +130,10 @@ export default {
               let errorStr = ''
               if (res.data.errors.length) {
                 res.data.errors.map(item => {
-                  errorStr += item
-                })
-                this.$message.warning({ message: errorStr, duration: 3500 })
+                  errorStr += item + '!'
+                })
+                const msg = errorStr.substring(0, errorStr.length - 1)
+                this.$message.warning({ message: msg, duration: 3500 })
               }
             } else {
               this.$message.success('评估成功')

+ 1 - 1
src/views/creditManage/projectCredit/dueReview/components/Project/Cooperation.vue

@@ -99,7 +99,7 @@ export default {
     // 提交参数
     passData(type) {
       return new Promise((resolve, reject) => {
-        if (type === 'submit') {
+        if (type === 'submit' || type === 'assess') {
           this.$refs.ruleFormRef.validate(valid => {
             if (valid) {
               return resolve(this.ruleForm)

+ 1 - 1
src/views/creditManage/projectCredit/dueReview/components/Project/ProjectInfo.vue

@@ -355,7 +355,7 @@ export default {
       delete params.biddingFiles
       delete params.departmentFiles
       return new Promise((resolve, reject) => {
-        if (type === 'submit') {
+        if (type === 'submit' || type === 'assess') {
           this.$refs.ruleFormRef.validate(valid => {
             if (this.ruleForm.projectType === 'c_project_type_1') {
               if (!biddingFile.length) {

+ 1 - 1
src/views/creditManage/projectCredit/dueReview/components/Project/ProjectOwner.vue

@@ -453,7 +453,7 @@ export default {
           })
           postData.projectOwnerNewsList = projectOwnerNewsList
         }
-        if (type === 'submit') {
+        if (type === 'submit' || type === 'assess') {
           this.$refs.ruleFormRef.validate(valid => {
             if (valid) {
               return resolve(postData)