|
@@ -22,7 +22,12 @@
|
|
|
账户总金额:{{ pageInfo&&pageInfo.totalAmount?toThousands(pageInfo.totalAmount):'--' }}(包含可提现金额:<span>{{ pageInfo&&pageInfo.activeAmount?toThousands(pageInfo.activeAmount):'--' }}</span>,在途金额:{{ pageInfo&&pageInfo.floatAmount?toThousands(pageInfo.floatAmount):'--' }})
|
|
|
<p style="margin-top:10px;">(提示:①提现手续费为0.5元/笔;②资金到账周期为工作日+1天;③线上支付订单需审核通过后才能提现;④订单被审核不通过或修理厂取消订单后将会在1-3个工作日原路返回到修理厂)</p>
|
|
|
</div>
|
|
|
- <a-button id="withdrawal-tixian" v-if="$hasPermissions('B_withdrawalAudit')" type="primary" class="button-primary" @click="handleTX">申请提现</a-button>
|
|
|
+ <a-button
|
|
|
+ id="withdrawal-tixian"
|
|
|
+ v-if="$hasPermissions('B_withdrawalAudit')"
|
|
|
+ type="primary"
|
|
|
+ class="button-primary"
|
|
|
+ @click="handleTX">申请提现</a-button>
|
|
|
<a-button id="withdrawal-zhangdan" class="button-info" v-if="$hasPermissions('B_billFlow')" @click="showBillFlowModal=true">账单流水</a-button>
|
|
|
</div>
|
|
|
<s-table
|
|
@@ -39,7 +44,7 @@
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
|
<!-- 申请提现 -->
|
|
|
- <applyWithdrawal :activeAmount="pageInfo&&pageInfo.activeAmount" :isOpenModal="showModal" @close="showModal=false" @refresh="getPageInfo"></applyWithdrawal>
|
|
|
+ <applyWithdrawal :pageInfo="pageInfo" :isOpenModal="showModal" @close="showModal=false" @refresh="getPageInfo"></applyWithdrawal>
|
|
|
<!-- 交易流水 -->
|
|
|
<billFlowModal :openModal="showBillFlowModal" @close="showBillFlowModal=false"></billFlowModal>
|
|
|
</a-card>
|
|
@@ -67,6 +72,7 @@ export default {
|
|
|
showBillFlowModal: false, // 打开交易流水 弹窗
|
|
|
time: [], // 提现时间
|
|
|
pageInfo: null, // 详情信息
|
|
|
+ errorFlag: false, // 经销商未设置结算账户时,申请提现按钮不能点击
|
|
|
queryParam: {
|
|
|
beginDate: '', // 开始时间
|
|
|
endDate: '' // 结束时间
|
|
@@ -118,9 +124,10 @@ export default {
|
|
|
merchantCashOutDetail({}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.pageInfo = res.data
|
|
|
- this.$refs.table.refresh(true)
|
|
|
+ this.errorFlag = false
|
|
|
} else {
|
|
|
this.pageInfo = null
|
|
|
+ this.errorFlag = true
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -132,6 +139,10 @@ export default {
|
|
|
},
|
|
|
// 申请提现
|
|
|
handleTX () {
|
|
|
+ if (this.errorFlag) {
|
|
|
+ this.$message.warning('请先设置结算账户!')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.showModal = true
|
|
|
},
|
|
|
// 计算表格高度
|