wq 5 年之前
父节点
当前提交
135c05c807
共有 3 个文件被更改,包括 82 次插入18 次删除
  1. 15 2
      src/layout/follow/followForm.vue
  2. 6 1
      src/layout/follow/followList.vue
  3. 61 15
      src/views/follow/followDetail.vue

+ 15 - 2
src/layout/follow/followForm.vue

@@ -24,7 +24,13 @@
                     <el-form-item label="辅助资料(点击查看):" >
                         <el-link :href="ruleForm[0].cdata" :underline="false">{{ruleForm[0].cdata}}</el-link>
                     </el-form-item>
-                    <el-form-item>
+                    <el-form-item v-if="orcredit == 0 ">
+                        <el-button  type="primary" size="small" @click="shouxin()">审核</el-button>
+                    </el-form-item>
+                    <el-form-item v-if="orcredit == 2 ">
+                        <el-button  type="primary" size="small" @click="shouxin()">尽调</el-button>
+                    </el-form-item>
+                    <el-form-item  v-if="orcredit == 3 ">
                         <el-button  type="primary" size="small" @click="shouxin()">授信</el-button>
                     </el-form-item>
                 </el-form>
@@ -60,7 +66,13 @@
                     <el-form-item label="定向产品融资期限(个月):" >
                         <span>{{ruleForm[0].jgpronew.claims_min_term}}个月~{{ruleForm[0].jgpronew.claims_max_term}}个月</span>
                     </el-form-item>
-                    <el-form-item>
+                    <el-form-item v-if="orcredit == 0 ">
+                        <el-button  type="primary" size="small" @click="shouxin()">审核</el-button>
+                    </el-form-item>
+                    <el-form-item v-if="orcredit == 2 ">
+                        <el-button  type="primary" size="small" @click="shouxin()">尽调</el-button>
+                    </el-form-item>
+                    <el-form-item  v-if="orcredit == 3 ">
                         <el-button  type="primary" size="small" @click="shouxin()">授信</el-button>
                     </el-form-item>
                 </el-form>
@@ -75,6 +87,7 @@
     props: {
       ruleForm: null,
       charList: null,
+      orcredit:null
     },
     components: {},
     data: () => ({

+ 6 - 1
src/layout/follow/followList.vue

@@ -6,6 +6,11 @@
                     <el-table-column type="index" label="序号" width="50" align="center"> </el-table-column>
                     <el-table-column property="clamnew.money" label="融资金额(万元)" align="center"> </el-table-column>
                     <el-table-column property="clamnew.use" label="融资用途" align="center"> </el-table-column>
+                    <el-table-column   label="当前状态" align="center">
+                        <template slot-scope="scope">
+                            <span style="margin-left: 10px">{{ scope.row.orcredit=='0'?'已关注':scope.row.orcredit=='2'?'已审核':scope.row.orcredit=='3'?'已尽调': ' '}}</span>
+                        </template>
+                    </el-table-column>
                     <el-table-column label="期望利率范围" align="center">
                         <template slot-scope="scope">
                             <span style="margin-left: 10px">{{ scope.row.clamnew.mongey_min_rate }}%~{{ scope.row.clamnew.mongey_max_rate }}%</span>
@@ -13,7 +18,7 @@
                     </el-table-column>
                     <el-table-column fixed="right" label="操作" align="center">
                         <template slot-scope="scope">
-                            <el-button @click="$router.push({ path: '/follow/followDetail', query: { id: scope.row.clamnew._id ,sxid:scope.row._id} })" type="text" icon="el-icon-search" title="查看详情"></el-button>
+                            <el-button @click="$router.push({ path: '/follow/followDetail', query: { id: scope.row.clamnew._id ,sxid:scope.row._id,orcredit:scope.row.orcredit} })" type="text" icon="el-icon-search" title="查看详情"></el-button>
                             <el-button @click.prevent="deleteRow(scope.row._id)" type="text" icon="el-icon-star-on" title="取消关注"></el-button>
                         </template>
                     </el-table-column>

+ 61 - 15
src/views/follow/followDetail.vue

@@ -10,7 +10,7 @@
                         <detailTop @goBack="goBack"></detailTop>
                     </el-col>
                     <el-col :span="24" class="info">
-                        <followForm :ruleForm="followForm" @shouxin = "shouxin"></followForm>
+                        <followForm :ruleForm="followForm" :orcredit="finorcredit" @shouxin = "shouxin"></followForm>
                     </el-col>
                 </el-col>
             </el-col>
@@ -40,9 +40,11 @@
       charList: {
         name: '10',
       },
+      finorcredit:''
     }),
     created() {
       this.searchInfo();
+      this.setorcredit();
     },
     computed: {
       id() {
@@ -51,6 +53,9 @@
       sxid(){
         return this.$route.query.sxid;
       },
+      orcredit(){
+        return this.$route.query.orcredit;
+      },
     },
     methods: {
       ...claimneed(['one']),
@@ -61,28 +66,69 @@
           this.$set(this, `followForm`, res.data);
         }
       },
+      setorcredit() {
+        this.$set(this, `finorcredit`, this.orcredit);
+      },
       // 授信
       async shouxin() {
-          this.$prompt('请输入授信额度(万元)', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            inputPattern: /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/,
-            inputErrorMessage: '请输入正确金额'
-          })
-            .then(({ value }) => {
-           this.finalSx(value);
-          }).catch(() => {
-            this.$message({
-              type: 'info',
-              message: '取消输入'
+          if(this.orcredit==0){
+            this.$prompt('请输审核信息', '提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消'
+            })
+              .then(({ value }) => {
+             this.finalshenhe(value);
+            }).catch(() => {
+              this.$message({
+                type: 'info',
+                message: '取消输入'
+              });
+            });
+          }else if(this.orcredit==2){
+            this.$prompt('请输尽调信息', '提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消'
+            })
+              .then(({ value }) => {
+                this.finaljindiao(value);
+              }).catch(() => {
+              this.$message({
+                type: 'info',
+                message: '取消输入'
+              });
+            });
+          }else if(this.orcredit==3){
+            this.$prompt('请输入授信额度(万元)', '提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消',
+              inputPattern: /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/,
+              inputErrorMessage: '请输入正确金额'
+            })
+              .then(({ value }) => {
+             this.finalSx(value);
+            }).catch(() => {
+              this.$message({
+                type: 'info',
+                message: '取消输入'
+              });
             });
-          });
+          }
       },
       async finalSx(value){
-        const res = await this.credit({id:this.sxid,money:value});
+        const res = await this.credit({id:this.sxid,money:value,orcredit:'1'});
         this.$checkRes(res, '授信成功', '授信失败');
         this.goBack();
       },
+      async finalshenhe(value){
+        const res = await this.credit({id:this.sxid,senhemessage:value,orcredit:'2'});
+        this.$checkRes(res, '审核成功', '审核失败');
+        this.goBack();
+      },
+      async finaljindiao(value){
+        const res = await this.credit({id:this.sxid,jindiaomessage:value,orcredit:'3'});
+        this.$checkRes(res, '尽调成功', '尽调失败');
+        this.goBack();
+      },
       // 返回
       goBack() {
         this.$router.go(-1);