瀏覽代碼

Merge branch 'dev' of http://159.75.201.17:3000/zwq/tuanfeng-pc-admin into dev

GuYun-D 3 月之前
父節點
當前提交
a876dcacab
共有 2 個文件被更改,包括 9 次插入5 次删除
  1. 1 3
      src/api/withdrawal.js
  2. 8 2
      src/views/finance/withdrawal/components/DetailModal.vue

+ 1 - 3
src/api/withdrawal.js

@@ -28,7 +28,6 @@ export function withdrawalGetById2(data) {
   })
 }
 
-
 // 查询惠市宝订单的分账信息
 export function getWithdrawalHsbOrderDistribution(params) {
   return request({
@@ -83,7 +82,6 @@ export function getWithdrawalCommissionList(data) {
   })
 }
 
-
 //  获取提现的账户信息
 export function getWithdrawalAccount(params) {
   return request({
@@ -101,4 +99,4 @@ export function exportWithdrawal(data) {
     data,
     responseType: 'blob'
   })
-}
+}

+ 8 - 2
src/views/finance/withdrawal/components/DetailModal.vue

@@ -223,7 +223,11 @@ export default {
         summaryNotHsbAmount: ''
       },
       //  身份证信息
-      cardData: {}
+      cardData: {
+        name:"",
+        idCard:"",
+        phone:""
+      }
     }
   },
   methods: {
@@ -284,7 +288,9 @@ export default {
     // 单独用来请求提现的身份证以及手机号姓名等
     async getWithdrawalInfo(id) {
       let { data } = await getWithdrawalAccount({ shopIds: id })
-      this.cardData = data[0]
+      if(data.length > 0){
+        this.cardData = data[0]
+      }
     }
   }
 }