Browse Source

融资管理 盖章 融信去融资

peixh 4 years ago
parent
commit
b4df8219b1

+ 22 - 14
front-vue/src/views/service/credit/goFinance.vue

@@ -23,8 +23,8 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item label="融资账户:" prop="zfrCollectionAccount" v-if="this.form.zfpcrLoantype != '0'">
-              <el-input v-model="form.zfrCollectionAccount" placeholder="请输入融资账户" style="width: 284px;"/>
+            <el-form-item label="融资账户:" prop="zfrCollectionAccount">
+              <el-input v-model="form.zfrCollectionAccount" placeholder="请输入融资账户" style="width: 284px;" :readonly="readonly"/>
             </el-form-item>
           </el-col>
         </el-row>
@@ -146,7 +146,7 @@
 </template>
 
 <script>
-import {addRecord,listBillInf} from "@/api/service/financeRecord/record";
+import {addRecord,listBillInf,listAccInf} from "@/api/service/financeRecord/record";
 import { listFinanceInf } from "@/api/common/financeInf";
 import { getFile } from "@/api/service/credit/credit";
 import {getToken} from "@/utils/auth";
@@ -156,6 +156,8 @@ export default {
   },
   data() {
     return {
+      //融资账户是够编辑
+      readonly:false,
       labelPosition: 'top',
       // 遮罩层
       loading: true,
@@ -323,17 +325,23 @@ export default {
         this.loading = false;
       }).then(() =>{
         var queryParamsFile = {};
-            queryParamsFile.ticketList = this.billInfList;
-            getFile(queryParamsFile).then((response) => {
-                if(response.data){
-                    //获取发票文件
-                     this.invoiceFileList = response.data.invoiceFileList;
-                    //获取合同文件
-                     this.contractFileList = response.data.contractFileList;
-                    //获取其他文件
-                    this.otherFileList = response.data.otherFileList;
-                }
-            });
+        queryParamsFile.ticketList = this.billInfList;
+        getFile(queryParamsFile).then((response) => {
+            if(response.data){
+                //获取发票文件
+                  this.invoiceFileList = response.data.invoiceFileList;
+                //获取合同文件
+                  this.contractFileList = response.data.contractFileList;
+                //获取其他文件
+                this.otherFileList = response.data.otherFileList;
+            }
+        });
+        if(item.zfpcrLoanType == '0'){
+          listAccInf(item.zfiProductId).then((response) => {
+            this.$set(this.form, "zfrCollectionAccount", response.msg);
+            this.readonly = true
+          })
+        }
       })
       }
     },

+ 18 - 6
front-vue/src/views/service/creditLine/creditLine.vue

@@ -110,13 +110,15 @@
         </template>
       </el-table-column>
       <el-table-column label="资金方" align="center" prop="rzScyName" show-overflow-tooltip v-if="uncheckList.rzScyName" />
+      <el-table-column label="授信类型" :formatter="typeFormat" align="center" prop="zfpType" show-overflow-tooltip v-if="uncheckList.zfpType" />
       <el-table-column label="融资产品" align="center" prop="zfpName" v-if="uncheckList.zfpName" show-overflow-tooltip/>
       <el-table-column label="企业名称" align="center" prop="scyName" v-if="uncheckList.scyName" show-overflow-tooltip/>
       <el-table-column label="企业代码" align="center" prop="scySocialCode" v-if="uncheckList.scySocialCode" show-overflow-tooltip/>
       <el-table-column label="授信额度" :formatter="moneyFormat"  align="center" prop="zfpcrAmount" show-overflow-tooltip v-if="uncheckList.zfpcrAmount" width="120"/>
       <el-table-column label="利率(%)" align="center" prop="zfpcrRate" v-if="uncheckList.zfpcrRate" width="120" />
-      <el-table-column label="已分割额度" :formatter="moneyFormat"  align="center" prop="zfpcrDivisionAmount" v-if="uncheckList.zfpcrDivisionAmount" width="120"/>
+      <!-- <el-table-column label="已分割额度" :formatter="moneyFormat"  align="center" prop="zfpcrDivisionAmount" v-if="uncheckList.zfpcrDivisionAmount" width="120"/> -->
       <el-table-column label="已使用额度" :formatter="moneyFormat"  align="center" prop="zfiAmount" v-if="uncheckList.zfiAmount" width="120"/>
+      <el-table-column label="已分配额度" :formatter="moneyFormat"  align="center" prop="supplierAmount" v-if="uncheckList.supplierAmount" width="120"/>
       <el-table-column label="可用额度" :formatter="moneyFormat"  align="center" prop="usableAmount" v-if="uncheckList.usableAmount && (this.companyType == '00' || this.companyType == '03')" width="120"/>
       <el-table-column label="开始日期" align="center" prop="zfpcrStartDate" v-if="uncheckList.zfpcrStartDate" show-overflow-tooltip/>
       <el-table-column label="结束日期" align="center" prop="zfpcrEndDate" v-if="uncheckList.zfpcrEndDate" show-overflow-tooltip/>
@@ -263,6 +265,10 @@ export default {
           value: "资金方"
         },
         {
+          label: "zfpType",
+          value: "授信类型"
+        },
+        {
           label: "zfpName",
           value: "融资产品"
         },
@@ -282,16 +288,19 @@ export default {
           label: "zfpcrRate",
           value: "利率"
         },
-
-        {
-          label: "zfpcrDivisionAmount",
-          value: "已分割额度"
-        },
+        // {
+        //   label: "zfpcrDivisionAmount",
+        //   value: "已分割额度"
+        // },
         {
           label: "zfiAmount",
           value: "已使用额度"
         },
         {
+          label: "supplierAmount",
+          value: "已分配额度"
+        },
+        {
           label: "usableAmount",
           value: "可用额度"
         },
@@ -470,6 +479,9 @@ export default {
     statusFormat(row, column) {
       return this.selectDictLabel(this.statusOptions, row.zfpcrStatus);
     },
+    typeFormat(row, column) {
+      return this.selectDictLabel(this.typeOptions, row.zfpType);
+    },
     /** 新增按钮操作 */
     handleAdd() {
       Cookies.set("/creditLine/addCreditLine/", this.$route.fullPath)

+ 6 - 1
front-vue/src/views/service/creditLine/supplierCreditLine.vue

@@ -298,7 +298,12 @@ export default {
           { required: true, message: "企业统一代码不能为空", trigger: ["blur", "change"] }
         ],
         zfsqAccount: [
-          { required: true, message: "还款账户不能为空", trigger: ["blur", "change"] }
+          { required: true, message: "还款账户不能为空", trigger: ["blur", "change"] },
+          {
+            pattern: /^[0-9]\d*$/,
+            message: "请输入正确的还款账户",
+            trigger: "change",
+          },
         ],
         zfsqAccountBank: [
           { required: true, message: "还款账户开户行不能为空", trigger: ["blur", "change"] }

+ 1 - 0
front-vue/src/views/service/financeRecord/addFinanceRecord.vue

@@ -144,6 +144,7 @@ export default {
   },
   data() {
     return {
+      //融资账户是够编辑
       readonly:false,
       labelPosition: 'top',
       // 遮罩层

+ 1 - 1
front-vue/src/views/service/financeRecord/recordSeal.vue

@@ -129,7 +129,7 @@
         <div class="footer" style="float: right;
             margin-bottom:2px;">
             <el-button type="success" @click="getContractFile">预览文件</el-button>
-            <el-button type="primary" @click="selectType">签署</el-button>
+            <el-button type="primary" @click="selectType">盖章</el-button>
             <el-button @click="cancel">取消</el-button>
         </div>
         <el-dialog