Forráskód Böngészése

签收,确权根据类型判断提示语,盖章完关闭页面

xuefy 4 éve
szülő
commit
6a2ca66f5a

+ 43 - 6
front-vue/src/views/service/credit/confirmationAudit.vue

@@ -277,6 +277,14 @@
                 <pdf-show :pdfFileList="pdfFileList" :zfiId="this.form.zfiId" :parent="parent">
                 </pdf-show>
             </el-dialog>
+             <!--去融资-->
+            <el-dialog  :visible.sync="goShow" width="300px"  append-to-body :before-close = "cancelGo" center>
+                    <p>恭喜您成功签收一笔融信</p>
+                    <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>
         <!-- 签署合同-->
@@ -319,6 +327,7 @@ import {accAdd} from "@/utils/calculation";
 import {isOpenApproval} from "@/api/service/credit/approvalRelatedCredit";
 import {getToken} from "@/utils/auth";
 import pdfShow from "./pdfShow";
+import Cookies from 'js-cookie';
 export default {
     name: "addCredit",
     components: {pdfShow},
@@ -448,6 +457,8 @@ export default {
             pdfFileList : [],
             pdfShowDialog : false,
             parent : this,
+            //显示去融资框
+            goShow:false
         };
     },
     watch:{
@@ -1131,16 +1142,42 @@ export default {
                     });
             contractSigning(this.form).then((response) => {
                 loading.close();
-                this.msgSuccess("确权成功,融信已提交"+this.form.receiveName+"签收");
-                this.$store.dispatch(
-                    "tagsView/delView",
-                    this.$route
-                );
-                this.$router.go(-1);
+                //融资申请
+                if(this.zfiCreateType == '0'){
+                    this.msgSuccess("确权成功,融信已提交"+this.form.receiveName+"签收");
+                    this.$store.dispatch(
+                        "tagsView/delView",
+                        this.$route
+                    );
+                    this.$router.go(-1);
+                }else if(this.zfiCreateType == '2'){//供应商开立,盖章后改为已生效
+                        this.goShow = true;
+                }
             }).catch((response) => {
                 loading.close();
             });
     },
+    //回到父页
+    cancelGo(){
+        this.goShow = false;
+        this.$store.dispatch(
+            "tagsView/delView",
+            this.$route
+        );
+        this.$router.go(-1);
+    },
+    //去融资
+    goFinance(){
+        //关闭当前页
+         this.$store.dispatch(
+            "tagsView/delView",
+            this.$route
+        );
+        //关闭弹框
+        this.goShow = false;
+        Cookies.set("/credit/goFinance/"+this.zfiId + "/", this.$route.fullPath)
+        this.$router.push({ path: "/credit/goFinance/"+this.zfiId + "/" });
+    }
        
     }
 };

+ 12 - 6
front-vue/src/views/service/credit/creditSeal.vue

@@ -811,6 +811,8 @@ export default {
                     });
             contractSigning(this.form).then((response) => {
                 loading.close();
+                //关闭弹窗,回到父页
+                this.goParent();
                 //核心开立盖章
                 if(this.form.zfiCreateType == '1' && this.form.zfiCoreStatus == '01' && !this.form.zfiStatus){
                     this.msgSuccess("开立成功,融信已提交"+this.form.receiveName+"签收");
@@ -818,12 +820,6 @@ export default {
                     //融资开立盖章
                     this.msgSuccess("开立成功,待:"+this.form.openName+"确权;确权结果请留意待办事项与站内消息");
                 }
-
-                this.$store.dispatch(
-                    "tagsView/delView",
-                    this.$route
-                );
-                this.$router.go(-1);
             }).catch((response) => {
                 loading.close();
             });
@@ -960,6 +956,16 @@ export default {
     closePdfShow(){
         this.pdfShowDialog = false;
     },
+    //返回到列表页
+     goParent(){
+        this.pdfShowDialog = false;
+        this.$store.dispatch(
+            "tagsView/delView",
+            this.$route
+            );
+        this.$router.go(-1);
+    },
+
     
     }
 };

+ 16 - 18
front-vue/src/views/service/credit/pdfShow.vue

@@ -106,8 +106,8 @@
                 <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>
+            <el-dialog  :visible.sync="goShow" width="300px"  append-to-body :before-close = "cancelGo" center>
+                    <p>恭喜您成功签收一笔融信</p>
                     <div slot="footer" class="dialog-footer">
                         <el-button type="primary" @click="goFinance">去融资</el-button>
                         <el-button @click="cancelGo">取 消</el-button>
@@ -525,29 +525,21 @@ export default {
                 this.closePdfShow();
                 //确权:状态为待确权
                 if(this.zfiStatus == '00'){
-                     this.msgSuccess("确权成功,融信已提交,"+this.receiveName+"签收");
-                     this.$store.dispatch(
-                        "tagsView/delView",
-                        this.$route
-                        );
-                     this.$router.go(-1);
+                    if(this.zfiCreateType == '0'){//申请
+                         this.msgSuccess("确权成功,融信已提交,"+this.receiveName+"签收");
+                         this.goParent();
+                    }else if(this.zfiCreateType == '2'){//供应商开立
+                          this.goShow = true;
+                    }
                 }else if(this.zfiStatus == '01' && this.zfiCreateType == '0'){//签收
                      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);
+                    this.goParent();
                 }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);
+                    this.goParent();
                 }else if(scope.row.zfiCreateType == '1' && this.zfiSupplierStatus == '01' && this.zfiPlatformStatus == '01'){//补充资料
                      this.goShow = true;
                 }
@@ -611,6 +603,10 @@ export default {
     closePdfShow(){
         this.parent.closePdfShow();
     },
+    //返回到列表页
+    goParent(){
+       this.parent.goParent();
+    },
     //去融资
     goFinance(){
         //关闭当前页
@@ -620,6 +616,8 @@ export default {
             );
         //关闭弹框
         this.goShow = false;
+        //关闭文件弹框
+        this.closePdfShow();
         Cookies.set("/credit/goFinance/"+this.zfiId + "/", this.$route.fullPath)
         this.$router.push({ path: "/credit/goFinance/"+this.zfiId + "/" });
     }

+ 2 - 2
front-vue/src/views/service/credit/signFor.vue

@@ -245,8 +245,8 @@
                 </pdf-show>
             </el-dialog>
             <!--去融资-->
-            <el-dialog  :visible.sync="goShow" width="500px"  append-to-body :before-close = "cancelGo" center>
-                    <span>恭喜您成功签收一笔融信</span>
+            <el-dialog  :visible.sync="goShow" width="300px"  append-to-body :before-close = "cancelGo" center>
+                    <p>恭喜您成功签收一笔融信</p>
                     <div slot="footer" class="dialog-footer">
                         <el-button type="primary" @click="goFinance">去融资</el-button>
                         <el-button @click="cancelGo">取 消</el-button>