wq 5 years ago
parent
commit
8166eb2693
1 changed files with 27 additions and 3 deletions
  1. 27 3
      src/views/financeclaims/insitionIndex.vue

+ 27 - 3
src/views/financeclaims/insitionIndex.vue

@@ -37,9 +37,33 @@
             this.$set(this, `total`, res.total);
             this.$set(this, `total`, res.total);
           },
           },
           async tomake({data}) {
           async tomake({data}) {
-            data.status = '1';
-            const res = await this.update(data);
-            alert(JSON.stringify(res));
+            if(data.type!=0){
+              if(data.status!='0'){
+                this.$message({
+                  message: '已发布至至金控审核',
+                  type: 'success',
+                });
+              }else{
+                data.status = '1';
+                const res = await this.update(data);
+                if (res.errcode === 0) {
+                  this.$message({
+                    message: '发布至金控审核成功',
+                    type: 'success',
+                  });
+                }else{
+                  this.$message({
+                    message: '发布至金控审核失败',
+                    type: 'error',
+                  });
+                }
+              }
+            }else{
+              this.$message({
+                message: '您还没有权限发布股权融资',
+                type: 'error',
+              });
+            }
         },
         },
         },
         },
       };
       };