Bladeren bron

往来账款提示语修改,融信新增账款清空表单,首页去审批功能

dudm 3 jaren geleden
bovenliggende
commit
f3f9949ff0

+ 136 - 97
front-vue/src/views/home.vue

@@ -177,6 +177,16 @@
                                         <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
                                     </template>
                                 </el-table-column>
+                                <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
+                                    <template slot-scope="scope">
+                                        <el-button
+                                            size="mini"
+                                            type="text"
+                                            @click="handleDetail(scope.row)"
+                                        >去审批</el-button>
+                                            <!-- v-if="scope.row.openUrl" -->
+                                    </template>
+                                </el-table-column>
                             </el-table>
                             
                             <pagination
@@ -327,6 +337,16 @@
                                         <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
                                     </template>
                                 </el-table-column>
+                                <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
+                                    <template slot-scope="scope">
+                                        <el-button
+                                            size="mini"
+                                            type="text"
+                                            icon="el-icon-info"
+                                            @click="handleDetail(scope.row)"
+                                        >去审批</el-button>
+                                    </template>
+                                </el-table-column>
                             </el-table>
                             
                             <pagination
@@ -399,6 +419,9 @@
                 </div>
             </el-card>
         </div>
+        <el-dialog title="我的待办" :visible.sync="openWork" width="1200px" append-to-body>
+            <iframe :src="workUrl" width='1150px' height='8000px' frameborder='1' />
+        </el-dialog>
     </div>
 </template>
 <script>
@@ -526,6 +549,8 @@ export default {
             },
             activeName:'first',
             company:{},
+            openWork:false,
+            workUrl:null
         }
     },
     created: function () {
@@ -538,109 +563,114 @@ export default {
         if(children && children.length != 0){
             EventBus.$emit('on-click-higher', {children: children, basepath: this.$route.matched[0].path})
         }
-        //查询企业类型
-        getOwnCompany().then((response) => {
-            this.company = response.data;
-        }).then((response) => {
-            //平台
-            if(this.company.scyType == '00'){
-                //入驻企业数量
-                this.getCompanyNum()
-                //入驻供应商数量
-                this.getSupplierNum()
-                //入驻核心企业数量
-                this.getCoreNum()
-                //融资开立月度统计 -- 柱状图
-                this.getFinanceRecordMonth()  
-                //已融资供应商数量
-                this.getFinanceSupplier()
-                //融资中金额
-                this.getAvailableBalance()
-                //已放款金额
-                this.getLoanBalance()
-                //已生效金额
-                this.getEffectBalance()
-                //融资业务数量
-                this.getFinanceNum()
-                //授信总额度
-                this.getCreditLineAll()
-                //平台资金 -- 饼图
-                this.getFinanceAmount()
-                //平台用户统计 -- 柱状图
-                this.getCompanyReport()
-                //核心企业额度比例 -- 柱状图
-                this.getFinanceAmountAll()
-            //核心企业
-            }else if(this.company.scyType == '01'){
-                //授信总额度
-                this.getCreditLineAll()
-                //授信总额度 -- 正向保理
-                this.getCreditLineAllForward()
-                //融资中金额
-                this.getAvailableBalance()
-                //融资中金额 -- 正向保理
-                this.getAvailableBalanceForward()
-                //已放款金额
-                this.getLoanBalance()
-                //已放款金额 -- 正向保理
-                this.getLoanBalanceForward()
-                //已生效金额
-                this.getEffectBalance()
-                //已生效金额 -- 正向保理
-                this.getEffectBalanceForward()
-                //融信授权额度 -- 饼图
-                this.getCreditLine()
-                //融信授权额度 -- 列表
-                this.getList()
-                //融信统计 -- 列表
-                this.getNumList()
-                //融资开立月度统计 -- 柱状图
-                this.getFinanceRecordMonth()  
-                //融资开立年度统计 -- 柱状图
-                this.getFinanceRecord()  
-                //即将到期额度(30天)
-                this.getExpiredBalance()
-                //查询代办
-                this.getWorkList()
-                //查询消息
-                this.getNoticeList()
-            //融资企业
-            }else if(this.company.scyType == '02'){
-                //授信总额度
-                this.getCreditLineAll()
-                //融资中金额
-                this.getAvailableBalance()
-                //已放款金额
-                this.getLoanBalance()
-                //已生效金额
-                this.getEffectBalance()
-                //即将到期额度(30天)
-                this.getExpiredBalance()
-                //查询代办
-                this.getWorkList()
-                //查询消息
-                this.getNoticeList()
-            //资方
-            }else if(this.company.scyType == '03'){
-                //授信总额度
-                this.getCreditLineAll()
-                //融资中金额
-                this.getAvailableBalance()
-                //已放款金额
-                this.getLoanBalance()
-                //已生效金额
-                this.getEffectBalance()
-                //即将到期额度(30天)
-                this.getExpiredBalance()
-            }
-            
-        });
+        this.selectHome()
     },
     activated () {
+        this.selectHome()
     }, 
     mounted() {
     },
     methods: {
+        //查询各角色首页模块
+        selectHome(){
+            //查询企业类型
+            getOwnCompany().then((response) => {
+                this.company = response.data;
+            }).then((response) => {
+                //平台
+                if(this.company.scyType == '00'){
+                    //入驻企业数量
+                    this.getCompanyNum()
+                    //入驻供应商数量
+                    this.getSupplierNum()
+                    //入驻核心企业数量
+                    this.getCoreNum()
+                    //融资开立月度统计 -- 柱状图
+                    this.getFinanceRecordMonth()  
+                    //已融资供应商数量
+                    this.getFinanceSupplier()
+                    //融资中金额
+                    this.getAvailableBalance()
+                    //已放款金额
+                    this.getLoanBalance()
+                    //已生效金额
+                    this.getEffectBalance()
+                    //融资业务数量
+                    this.getFinanceNum()
+                    //授信总额度
+                    this.getCreditLineAll()
+                    //平台资金 -- 饼图
+                    this.getFinanceAmount()
+                    //平台用户统计 -- 柱状图
+                    this.getCompanyReport()
+                    //核心企业额度比例 -- 柱状图
+                    this.getFinanceAmountAll()
+                //核心企业
+                }else if(this.company.scyType == '01'){
+                    //授信总额度
+                    this.getCreditLineAll()
+                    //授信总额度 -- 正向保理
+                    this.getCreditLineAllForward()
+                    //融资中金额
+                    this.getAvailableBalance()
+                    //融资中金额 -- 正向保理
+                    this.getAvailableBalanceForward()
+                    //已放款金额
+                    this.getLoanBalance()
+                    //已放款金额 -- 正向保理
+                    this.getLoanBalanceForward()
+                    //已生效金额
+                    this.getEffectBalance()
+                    //已生效金额 -- 正向保理
+                    this.getEffectBalanceForward()
+                    //融信授权额度 -- 饼图
+                    this.getCreditLine()
+                    //融信授权额度 -- 列表
+                    this.getList()
+                    //融信统计 -- 列表
+                    this.getNumList()
+                    //融资开立月度统计 -- 柱状图
+                    this.getFinanceRecordMonth()  
+                    //融资开立年度统计 -- 柱状图
+                    this.getFinanceRecord()  
+                    //即将到期额度(30天)
+                    this.getExpiredBalance()
+                    //查询代办
+                    this.getWorkList()
+                    //查询消息
+                    this.getNoticeList()
+                //融资企业
+                }else if(this.company.scyType == '02'){
+                    //授信总额度
+                    this.getCreditLineAll()
+                    //融资中金额
+                    this.getAvailableBalance()
+                    //已放款金额
+                    this.getLoanBalance()
+                    //已生效金额
+                    this.getEffectBalance()
+                    //即将到期额度(30天)
+                    this.getExpiredBalance()
+                    //查询代办
+                    this.getWorkList()
+                    //查询消息
+                    this.getNoticeList()
+                //资方
+                }else if(this.company.scyType == '03'){
+                    //授信总额度
+                    this.getCreditLineAll()
+                    //融资中金额
+                    this.getAvailableBalance()
+                    //已放款金额
+                    this.getLoanBalance()
+                    //已生效金额
+                    this.getEffectBalance()
+                    //即将到期额度(30天)
+                    this.getExpiredBalance()
+                }
+                
+            });
+        },
         //入驻企业数量
         getCompanyNum(){
             getCompanyNum().then((response) => {
@@ -838,6 +868,15 @@ export default {
         handleInput(str) {
             return amtformat(str,2, ".", ",");
         },
+        /** 详情按钮操作 */
+        handleDetail(row) {
+            if(row.openType == '00'){
+                this.workUrl = row.openUrl
+                this.openWork = true
+            }else if(row.openType == '01'){
+                this.$router.push({ path: row.openUrl });
+            }
+        },
     },
 };
 </script>

+ 1 - 1
front-vue/src/views/service/bill/addBill.vue

@@ -1114,7 +1114,7 @@ export default {
             .then((response) => {
               loading.close();
               this.form.zbiId = response.data.zbiId;
-              this.msgSuccess("保存成功");
+              this.msgSuccess("新增账款成功");
               this.$emit("addClick", response.data.zbiId);
             })
             .catch(() => {

+ 1 - 1
front-vue/src/views/service/bill/billAdd.vue

@@ -1106,7 +1106,7 @@ export default {
           addBill(this.form)
             .then((response) => {
               loading.close();
-              this.msgSuccess("保存成功");
+              this.msgSuccess("新增账款成功");
               this.$store.dispatch("tagsView/delView", this.$route);
               this.$router.go(-1);
             })

+ 1 - 1
front-vue/src/views/service/bill/billEdit.vue

@@ -1187,7 +1187,7 @@ export default {
           commitBill(this.form)
             .then((response) => {
                 loading.close();
-              this.msgSuccess("保存成功");
+              this.msgSuccess("修改账款成功");
               this.$store.dispatch("tagsView/delView", this.$route);
               this.$router.go(-1);
             })

+ 1 - 1
front-vue/src/views/service/credit/addCredit.vue

@@ -203,7 +203,7 @@
         
         <!-- 新增往来账款 -->
         <el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
-            <add-bill :companyId="form.zfiSupplierId" companyType="00" @addClick="emitAddClick"></add-bill>
+            <add-bill :companyId="form.zfiSupplierId" companyType="00" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
         </el-dialog>
 
         <el-dialog

+ 1 - 1
front-vue/src/views/service/credit/addInformation.vue

@@ -268,7 +268,7 @@
         
         <!-- 新增往来账款 -->
         <el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
-            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick"></add-bill>
+            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
         </el-dialog>
 
          <!--预览-->

+ 1 - 1
front-vue/src/views/service/credit/applyCreditEdit.vue

@@ -264,7 +264,7 @@
         
         <!-- 新增往来账款 -->
         <el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
-            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick"></add-bill>
+            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
         </el-dialog>
 
         <!--预览-->

+ 1 - 1
front-vue/src/views/service/credit/creditApply.vue

@@ -249,7 +249,7 @@
         
         <!-- 新增往来账款 -->
         <el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
-            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick"></add-bill>
+            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
         </el-dialog>
 
         <!--预览-->

+ 1 - 1
front-vue/src/views/service/credit/creditUpdate.vue

@@ -276,7 +276,7 @@
         
         <!-- 新增往来账款 -->
         <el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
-            <add-bill :companyId="form.zfiSupplierId" companyType="00" @addClick="emitAddClick"></add-bill>
+            <add-bill :companyId="form.zfiSupplierId" companyType="00" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
         </el-dialog>
 
         <!--预览-->

+ 1 - 1
front-vue/src/views/service/credit/financeOpen.vue

@@ -252,7 +252,7 @@
         
         <!-- 新增往来账款 -->
         <el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
-            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick"></add-bill>
+            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
         </el-dialog>
 
          <!--预览-->

+ 1 - 1
front-vue/src/views/service/credit/financeOpenUpdate.vue

@@ -269,7 +269,7 @@
         
         <!-- 新增往来账款 -->
         <el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
-            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick"></add-bill>
+            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
         </el-dialog>
 
         <!--预览-->

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

@@ -211,7 +211,7 @@
         
         <!-- 新增往来账款 -->
         <el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
-            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick"></add-bill>
+            <add-bill :companyId="form.zfiCoreId" companyType="01" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
         </el-dialog>
 
         <!--预览-->