فهرست منبع

融信生效显示去融资按钮

xuefy 4 سال پیش
والد
کامیت
cbb4c5e280
2فایلهای تغییر یافته به همراه85 افزوده شده و 22 حذف شده
  1. 57 15
      front-vue/src/views/service/credit/pdfShow.vue
  2. 28 7
      front-vue/src/views/service/credit/signFor.vue

+ 57 - 15
front-vue/src/views/service/credit/pdfShow.vue

@@ -105,6 +105,14 @@
             <el-dialog  :visible.sync="faceIsShow" width="500px"  append-to-body :before-close = "cancelFace" center>
                 <img :src="'data:image/jpeg;base64,' + this.fileUrl" style="overflow: auto; width: 100%; height: 100%;"/>
             </el-dialog>
+            <!--去融资-->
+            <el-dialog  :visible.sync="goShow" width="500px"  append-to-body :before-close = "cancelGo" center>
+                    <span>恭喜您成功签收一笔融信</span>
+                    <div slot="footer" class="dialog-footer">
+                        <el-button type="primary" @click="goFinance">去融资</el-button>
+                        <el-button @click="cancelGo">取 消</el-button>
+                    </div>    
+            </el-dialog>
         </div>
     </div>
     
@@ -115,6 +123,7 @@
 import {sendMessage,checkCode,faceAuth,checkFaceAuth,contractSigning} from "@/api/service/credit/message";
 import {cfcaProjectNo,projectSendMessage,checkProCode} from "@/api/service/credit/cfcaProject";
 import {getCreditDetail} from "@/api/service/credit/credit";
+import Cookies from 'js-cookie';
 export default {
     props : ['pdfFileList','zfiId', 'parent'],
     data() {
@@ -186,7 +195,10 @@ export default {
             //接收方
             receiveName:"",
             //开立方
-            openName:""
+            openName:"",
+            //显示去融资框
+            goShow:false
+
         };
     },
     created() {
@@ -228,7 +240,7 @@ export default {
         selectChildType(){
             this.$parent.selectType();
         },
-            //取消选择意愿
+    //取消选择意愿
     cancelUpdate(){
         this.confirmIsShow = false;
         this.resetUpdate();
@@ -247,6 +259,15 @@ export default {
     cancelFace(){
         this.faceIsShow = false;
     },
+    //回到父页
+    cancelGo(){
+        this.goShow = false;
+        this.$store.dispatch(
+            "tagsView/delView",
+            this.$route
+            );
+        this.$router.go(-1);
+    },
     resetUpdate() {
         this.updateForm = {
             radio:""
@@ -493,29 +514,42 @@ export default {
                     });
             contractSigning(this.financeData).then((response) => {
                 loading.close();
+                if(this.zfpAuthType == '02'){
+                    //关闭短信验证
+                    this.messageIsShow = false;
+                }else if(this.zfpAuthType == '01'){
+                    //关闭人脸二维码
+                    this.faceIsShow = false;
+                }
                 //确权:状态为待确权
                 if(this.zfiStatus == '00'){
                      this.msgSuccess("确权成功,融信已提交,"+this.receiveName+"签收");
+                     this.$store.dispatch(
+                        "tagsView/delView",
+                        this.$route
+                        );
+                     this.$router.go(-1);
                 }else if(this.zfiStatus == '01' && this.zfiCreateType == '0'){//签收
-                     this.msgSuccess("恭喜您成功签收一笔融信");
+                     this.goShow = true;
                 }else if(this.zfiCreateType == '1' && this.zfiCoreStatus == '01' && !this.zfiStatus){//核心开立
                     this.msgSuccess("开立成功,融信已提交"+this.receiveName+"签收");
+                    this.$store.dispatch(
+                        "tagsView/delView",
+                        this.$route
+                        );
+                    this.$router.go(-1);
                 }else if(this.zfiCreateType == '2' && this.zfiPlatformStatus == '01' && this.zfiSupplierStatus == '01' && !this.zfiStatus){
                     //融资开立盖章
                     this.msgSuccess("开立成功,待:"+this.openName+"确权;确权结果请留意待办事项与站内消息");
+                    this.$store.dispatch(
+                        "tagsView/delView",
+                        this.$route
+                        );
+                     this.$router.go(-1);
+                }else if(scope.row.zfiCreateType == '1' && this.zfiSupplierStatus == '01' && this.zfiPlatformStatus == '01'){//补充资料
+                     this.goShow = true;
                 }
-                if(this.zfpAuthType == '02'){
-                    //关闭短信验证
-                    this.messageIsShow = false;
-                }else if(this.zfpAuthType == '01'){
-                    //关闭人脸二维码
-                    this.faceIsShow = false;
-                }
-                this.$store.dispatch(
-                    "tagsView/delView",
-                    this.$route
-                );
-                this.$router.go(-1);
+                
             }).catch((response) => {
                 loading.close();
             });
@@ -574,7 +608,15 @@ export default {
     },
     closePdfShow(){
         this.parent.closePdfShow();
+    },
+    //去融资
+    goFinance(){
+        //关闭弹框
+        this.goShow = false;
+        Cookies.set("/credit/goFinance/"+this.zfiId + "/", this.$route.fullPath)
+        this.$router.push({ path: "/credit/goFinance/"+this.zfiId + "/" });
     }
+    
 
     },
 };

+ 28 - 7
front-vue/src/views/service/credit/signFor.vue

@@ -239,6 +239,14 @@
                 <pdf-show :pdfFileList="pdfFileList" :zfiId="this.form.zfiId" :parent="parent">
                 </pdf-show>
             </el-dialog>
+            <!--去融资-->
+            <el-dialog  :visible.sync="goShow" width="500px"  append-to-body :before-close = "cancelGo" center>
+                    <span>恭喜您成功签收一笔融信</span>
+                    <div slot="footer" class="dialog-footer">
+                        <el-button type="primary" @click="goFinance">去融资</el-button>
+                        <el-button @click="cancelGo">取 消</el-button>
+                    </div>    
+            </el-dialog>
         </el-tab-pane>
         <el-tab-pane label="签署合同">
             <el-table :data="creditSealList"  style="width: 100%">
@@ -279,10 +287,10 @@ import {accAdd} from "@/utils/calculation";
 import {getToken} from "@/utils/auth";
 import AddBill from "@/views/service/bill/addBill";
 import {isOpenApproval} from "@/api/service/credit/approvalRelatedCredit";
-import {listCompanyHandler} from "@/api/common/companyHandler";
 import pdfShow from "./pdfShow";
 import DetailBill from "@/views/service/credit/billDetail";
 import {contractSigning} from "@/api/service/credit/message";
+import Cookies from 'js-cookie';
 export default {
     name: "addCredit",
     components: {AddBill,DetailBill,pdfShow},
@@ -394,6 +402,8 @@ export default {
           pdfFileList : [],
           pdfShowDialog : false,
           parent : this,
+          //显示去融资框
+          goShow:false
           
         };
     },
@@ -562,6 +572,15 @@ export default {
         handleSelectionChange(val) {
             this.chooseTicket = val
         },
+         //回到父页
+        cancelGo(){
+            this.goShow = false;
+            this.$store.dispatch(
+                "tagsView/delView",
+                this.$route
+            );
+            this.$router.go(-1);
+        },
         // 确认选择
       closeTicket() {
         if(this.chooseTicket.length > 0){
@@ -1070,16 +1089,18 @@ export default {
                     });
             contractSigning(this.form).then((response) => {
                 loading.close();
-                this.msgSuccess("恭喜您成功签收一笔融信");
-                this.$store.dispatch(
-                    "tagsView/delView",
-                    this.$route
-                );
-                this.$router.go(-1);
+                this.goShow = true;
             }).catch((response) => {
                 loading.close();
             });
     },
+     //去融资
+    goFinance(){
+        //关闭弹框
+        this.goShow = false;
+        Cookies.set("/credit/goFinance/"+this.zfiId + "/", this.$route.fullPath)
+        this.$router.push({ path: "/credit/goFinance/"+this.zfiId + "/" });
+    }
   }
 };
 </script>