Procházet zdrojové kódy

个贷提交流程节点校验提示

wucl před 10 měsíci
rodič
revize
1e10b8c63f

+ 2 - 2
src/views/personal/pendingList.vue

@@ -40,12 +40,12 @@
         </el-table-column>
         <el-table-column label="单价" align="center" width="130" v-if="!hiddenLabels.includes('price')" prop="price">
           <template slot-scope="{row}">
-            <span>{{ row.price? row.price: '-' }}</span>
+            <span>{{ row.price? row.price+'元': '-' }}</span>
           </template>
         </el-table-column>
         <el-table-column label="总价" align="center" width="130" v-if="!hiddenLabels.includes('amount')" prop="amount">
           <template slot-scope="{row}">
-            <span>{{ row.amount? row.amount: '-' }}</span>
+            <span>{{ row.amount? (row.amount/10000).toFixed(2)+'万': '-' }}</span>
           </template>
         </el-table-column>
         <el-table-column label="客户名称" align="center" width="130" v-if="!hiddenLabels.includes('clientName')" prop="clientName">

+ 59 - 0
src/views/personal/todoDetail.vue

@@ -1738,6 +1738,7 @@ export default {
                     duration: 2000
                   });
                   ok = false;
+                
                 }
                 if (item === 'LAND_CERTIFICATE' && !this.target.landCertificate) {
                   this.$notify({
@@ -1747,6 +1748,7 @@ export default {
                     duration: 2000
                   });
                   ok = false;
+                
                 }
                 if (item === 'IMMOVABLE_CERTIFICATE' && !this.target.immovableCertificate) {
                   this.$notify({
@@ -1756,8 +1758,25 @@ export default {
                     duration: 2000
                   });
                   ok = false;
+                
                 }
               })
+              if (!ok){
+                verify.state = false;
+                callback(verify);
+                return;
+              }
+              if (this.compareList.calculateId==null || this.compareList.targetId==null){
+                this.$notify({
+                  title: '提示',
+                  message: '请先完成可比实例表。',
+                  type: 'error',
+                  duration: 2000
+                });
+                verify.state = false;
+                callback(verify);
+                return;
+              }
               if (ok && nodeCode === 'GENERATE_STATEMENT' && (this.statementProd == null || this.statementProd.files.length === 0)) {
                 this.$notify({
                   title: '提示',
@@ -1766,6 +1785,8 @@ export default {
                   duration: 2000
                 });
                 verify.state = false;
+                callback(verify);
+                return;
               }
               if (ok && nodeCode === 'WRITE_REPORT' && (this.technicReportProd == null || this.technicReportProd.files.length === 0)) {
                 this.$notify({
@@ -1775,6 +1796,8 @@ export default {
                   duration: 2000
                 });
                 verify.state = false;
+                callback(verify);
+                return;
               }
               if (ok && nodeCode === 'WRITE_LETTER' && (this.letterReprotProd == null || this.letterReprotProd.files.length === 0)) {
                 this.$notify({
@@ -1784,8 +1807,44 @@ export default {
                   duration: 2000
                 });
                 verify.state = false;
+                callback(verify);
+                return;
               }
               
+            }else{
+              if (nodeCode === 'GENERATE_STATEMENT' && (this.statementProd == null || this.statementProd.files.length === 0)) {
+                this.$notify({
+                  title: '提示',
+                  message: '流程类型为下线请上传意见书,再提交流程',
+                  type: 'error',
+                  duration: 2000
+                });
+                verify.state = false;
+                callback(verify);
+                return;
+              }
+              if (nodeCode === 'WRITE_REPORT' && (this.technicReportProd == null || this.technicReportProd.files.length === 0)) {
+                this.$notify({
+                  title: '提示',
+                  message: '流程类型为下线请上传报告,再提交流程',
+                  type: 'error',
+                  duration: 2000
+                });
+                verify.state = false;
+                callback(verify);
+                return;
+              }
+              if (nodeCode === 'WRITE_LETTER' && (this.letterReprotProd == null || this.letterReprotProd.files.length === 0)) {
+                this.$notify({
+                  title: '提示',
+                  message: '流程类型为下线请上传复评函,再提交流程',
+                  type: 'error',
+                  duration: 2000
+                });
+                verify.state = false;
+                callback(verify);
+                return;
+              }
             }
             if (!verify.nextHandlerId ){
               this.checkerDialog = true;