peixh 3 gadi atpakaļ
vecāks
revīzija
45ae019008

+ 19 - 0
front-vue/src/api/bank/bankInterface.js

@@ -24,4 +24,23 @@ export function transfer(data) {
     method: 'post',
     data: data
   })
+}
+
+// 提现
+export function withdrawal(data) {
+  return request({
+    url: '/bank-interface/zxbank/withdrawal',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 交易明细
+export function transferDetailed(data) {
+  return request({
+    url: '/bank-interface/zxbank/transferDetailed',
+    method: 'post',
+    data: data
+  })
 }

+ 7 - 0
front-vue/src/api/common/companyAcc.js

@@ -14,3 +14,10 @@ export function listCompanyAcc(zfpcrAccount,scyId) {
   })
 }
 
+// 查询本企业电子账户
+export function listElectronicsAcc() {
+  return request({
+    url: '/sc-service/companyAcc/listAcc',
+    method: 'get',
+  })
+}

+ 13 - 0
front-vue/src/router/index.js

@@ -435,6 +435,19 @@ export const constantRoutes = [
       },
     ]
   },
+  {
+    path: '/accInf',
+    component: Layout,
+    hidden: true,
+    children: [
+      {
+        path: 'accInfDetail/',
+        component: (resolve) => require(['@/views/system/accInf/accInfDetail'], resolve),
+        name: 'accInfDetail',
+        meta: { title: '交易明细',noCache: true }
+      },
+    ]
+  },
   //核心企业融信开立审批专用
   {
     path: '/credit/approvalCreditDetail/:zfiId',

+ 2 - 0
front-vue/src/views/service/creditLine/creditLine.vue

@@ -462,12 +462,14 @@ export default {
         // /** 详情按钮操作 */
         handleRows(row) {
             const zfpcrId = row.zfpcrId || this.ids;
+            console.log(zfpcrId,"授信id")
             const zfiAmount = row.zfiAmount;
             const usableAmount = row.usableAmount;
             const companyType = this.companyType;
             this.resetForm("queryForm");
             Cookies.set("/creditLine/detailCreditLine/" + zfpcrId + '/' + zfiAmount + '/' + usableAmount + '/' + companyType + '/', this.$route.fullPath)
             this.$router.push("/creditLine/detailCreditLine/" + zfpcrId + '/' + zfiAmount + '/' + usableAmount + '/' + companyType + '/', );
+            
         },
         /** 冻结/解冻按钮操作 */
         handleUpdate(row) {

+ 2 - 1
front-vue/src/views/service/financeRecord/detailFinanceRecord.vue

@@ -34,7 +34,7 @@
       :rules="rules"
       label-width="auto"
     >
-    <div class="contain">
+    <div class="contain" v-if="this.status == '02'">
                 <p>资方拒绝放款:
                 </p>
                 <p>
@@ -491,6 +491,7 @@ export default {
       const zfrFinanceId = response.data.zfrFinanceId;
       this.form.zfrFinanceId = response.data.zfrFinanceId;
       this.form.zfrStatus = response.data.zfrStatus;
+      this.form.zfrCollectionAccount = response.data.zfrCollectionAccount;
       listFinanceInf(zfrFinanceId).then(response => {
         if (response.data) {
           this.financeInfList = response.data;

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

@@ -814,16 +814,16 @@ export default {
                               transfer(map).then(response => {
                                 loading.close();
                                 self.msgSuccess("缴费成功");
-                                return updateChargeStatus(zfrId);
                                 setTimeout(() => {
-                                  // if(response.data.status == "AAAAAAA"){
+                                  if(response.data.status == "AAAAAAA"){
+                                    return updateChargeStatus(zfrId);
                                   //选择签署意愿
                                   if (self.zfpAuthType == "00") {
                                     self.confirmIsShow = true;
                                   } else {
                                     self.checking();
                                   }
-                                // }
+                                }
                                 }, 1000);
                               }).catch(() => {
                                   loading.close();

+ 88 - 6
front-vue/src/views/system/accInf/accInf.vue

@@ -117,6 +117,13 @@
             "
             >充值</el-button
           >
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-view"
+            @click="handleDetail(scope.row)"
+            >交易明细</el-button
+          >
         </template>
       </el-table-column>
     </el-table>
@@ -396,9 +403,9 @@
             maxlength="18"
           />
         </el-form-item>
-        <el-button type="primary" plain>全部提现</el-button>
+        <el-button type="primary" plain @click="allMoney">全部提现</el-button>
         <el-row type="flex" align="middle" class="zap-title"
-          ><span class="zap-title__prefix"></span>可提现金额:999,999,999</el-row
+          ><span class="zap-title__prefix"></span>可提现金额:{{KYAMT ? KYAMT : 0.00}}元</el-row
         >
       </el-form>
       <el-row style="height: 109px" type="flex" align="middle" justify="center">
@@ -420,11 +427,18 @@ import {
   detailsAcc,
   listCard
 } from "@/api/system/accInf";
-
+import { balance,withdrawal } from "@/api/bank/bankInterface";
+import { listElectronicsAcc } from "@/api/common/companyAcc";
+import { release } from 'os';
+import Cookies from 'js-cookie';
 export default {
   name: "accInf",
   data() {
     return {
+      //可用余额
+      KYAMT: null,
+      //电子账户
+      accno: null,
       // id隐藏
       isShow: false,
       // 遮罩层
@@ -444,6 +458,8 @@ export default {
       total: 0,
       // 账户表格数据
       accList: [],
+      //账户卡号数据
+      cardList: [],
       //姓名
       nameList: [],
       bankList: [],
@@ -503,6 +519,13 @@ export default {
             trigger: ["change", "blur"],
           },
         ],
+        amount: [
+          {
+            required: true,
+            message: "提现金额不能为空",
+            trigger: ["change", "blur"],
+          },
+        ],
       },
     };
   },
@@ -546,10 +569,45 @@ export default {
       this.recharge = false;
       this.reset();
     },
-    // 提现取消按钮
+    //全部提现
+    allMoney(){
+      this.$set(this.form, "amount", this.KYAMT);
+    },
+    // 提现按钮
     cancelWithdrawal() {
-      this.withdrawal = false;
-      this.reset();
+      var self = this;
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          const loading = self.$loading({
+            lock: true,
+            text: "Loading",
+            spinner: "el-icon-loading",
+            background: "rgba(0, 0, 0, 0.7)",
+          });
+          if(eval(self.form.amount) > eval(self.KYAMT)){
+            self.$message({
+              message: '提现金额不得大于可提现金额!',
+              type: 'warning'
+            });
+            loading.close();
+          }else{
+            var map = {'recvAccNo': self.form.paiAccno,'tranAmt':self.form.amount}
+            withdrawal(map).then((response) =>{
+              debugger
+              if(response.data.status == "AAAAAAA"){
+                loading.close();
+                self.msgSuccess("提现成功");
+                this.withdrawal = false;
+                this.getList();
+              }
+            }).catch(() => {
+                loading.close();
+            });
+          }
+        }
+      });
+      //this.withdrawal = false;
+      //this.reset();
     },
     // 表单重置
     reset() {
@@ -569,11 +627,14 @@ export default {
         sfsRemark: null,
         ssId: null,
         ssName: null,
+        amount: null
       };
       this.noneBtnImg = false;
       this.enclosureList = [];
       this.sfzList = [];
       this.resetForm("form");
+      this.accno = null,
+      this.KYAMT = null
     },
     /** 搜索按钮操作 */
     handleQuery() {
@@ -649,6 +710,15 @@ export default {
          console.log(response)
         this.cardList = response.data.records;
       });
+      //查询本企业电子账户余额
+      listElectronicsAcc().then((response) =>{
+        if(response.data[0]){
+          this.accno = response.data[0].paiAccno;
+          balance(response.data[0].paiAccno).then((response) =>{
+            this.KYAMT = response.data.list.row.KYAMT
+          })
+        }
+      })
       const paiId = row.paiId || this.ids;
       detailsAcc(paiId).then((response) => {
         this.form = response.data.sccInf[0];
@@ -656,6 +726,18 @@ export default {
         this.title = "提现";
       });
     },
+    //交易明细按钮
+    handleDetail(row){
+      Cookies.set("/accInf/accInfDetail/")
+      this.$router.push({ path: "/accInf/accInfDetail/"});
+    },
+    // accNo(item) {
+    //   if(item.paiAccno){
+    //     balance(item.paiAccno).then((response) =>{
+    //       this.KYAMT = response.data.list.row.KYAMT
+    //     })
+    //   }
+    // },
     /** 新增提交按钮 */
     submitForm() {
       this.$refs["form"].validate((valid) => {