Commit a54aecdb by 王志慧

fixed

1 parent bf75cc75
......@@ -54,6 +54,11 @@
<script>
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E']
const channelObj={
'TXIAT':'熠轩',
'XYJ':'薪遇见',
'YUNHUO':'云获'
}
export default {
name: 'DetailDialog',
data() {
......@@ -160,7 +165,7 @@ export default {
label: '付款渠道',
name: 'channel',
addHtml: obj => {
return obj.channel == 'TXIAT' ? '熠轩' : '--'
return channelObj[obj.channel] ? channelObj[obj.channel] : '--'
}
},
{
......
......@@ -9,15 +9,16 @@
<span class="price">{{ settleAmount.yiXuanSettleAmount }}</span>
元,薪遇见
<span class="price">{{ settleAmount.xyjSettleAmount }}</span>
元,云获<span class="price">{{ settleAmount.yunHuoSettleAmount }}</span>
元,云获
<span class="price">{{ settleAmount.yunHuoSettleAmount }}</span>
元
</div>
<div>
<div class="flex">
<el-select v-model="operaForm.batch" placeholder="请选择" class="selectBtn">
<div class="select-wrap flex">
<el-select v-model="operaForm.batch" placeholder="批量操作" class="selectBtn">
<el-option v-for="(item, index) in batchOptions" :key="index" :label="item" :value="index" @click.native="handleSelectBtn(index, 'batch')"></el-option>
</el-select>
<el-select v-model="operaForm.key" placeholder="请选择" class="selectBtn">
<el-select v-model="operaForm.key" placeholder="一键操作" class="selectBtn">
<el-option v-for="(item, index) in keyOptions" :key="index" :label="item" :value="index" @click.native="handleSelectBtn(index, 'key')"></el-option>
</el-select>
<!-- <el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button>
......@@ -128,8 +129,8 @@ import DetailDialog from './detail.vue'
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import util from '@/utils/index'
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回','受理失败']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E','#2CCA74']
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回', '受理失败']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E', '#2CCA74']
const tabelHeaderModel = ['商户名称', '商户号', '客户名称', '客户手机号', '提现金额', '收款人姓名', '收款人身份证', '收款银行卡号', '收款银行', '收款人手机号']
export default {
components: {
......@@ -559,12 +560,12 @@ export default {
},
operaForm: {
select: true,
batch: 0,
key: 0
batch: '',
key: ''
},
isImport: false,
batchOptions: ['批量操作', '批量审核', '批量付款'],
keyOptions: ['一键操作', '一键审核', '一键付款']
batchOptions: ['批量审核', '批量付款'],
keyOptions: ['一键审核', '一键付款']
}
},
watch: {
......@@ -574,7 +575,7 @@ export default {
}
},
'payForm.channel'(newVal) {
if(newVal) this.getBalance()
if (newVal) this.getBalance()
}
},
mounted() {
......@@ -586,13 +587,12 @@ export default {
//批量操作/一键操作
async handleSelectBtn(index, type) {
this.operaForm.select = type == 'batch' ? false : true
this.operaForm[type] = 0
if(index == 0) return ;
this.operaForm[type] = ''
let result = await this.getAllPayAmount(index, type)
if (result) {
if (index == 1) {
if (index == 0) {
this.handleCheck()
} else if (index == 2) {
} else if (index == 1) {
this.handlePay()
}
}
......@@ -601,14 +601,14 @@ export default {
//获取批量付款的金额
getAllPayAmount(index, type) {
return new Promise(resolve => {
let key = index == 1 ? 'canApprove' : 'canPay',
let key = index == 0 ? 'canApprove' : 'canPay',
params = {},
Method = type == 'batch' ? 'getPayAmount' : 'getAllPayAmount',
textErr = ['请选择待审核的提现记录', '请选择已审核或受理失败的提现记录']
if (type == 'batch') {
if (!this.ids || this.ids.length == 0) {
this.$message.error(textErr[index - 1])
this.$message.error(textErr[index])
return
}
params.ids = this.ids
......@@ -621,10 +621,10 @@ export default {
this.$apis.withdraw[Method](params).then(res => {
if (!res[key]) {
this.$message.error(textErr[index - 1])
this.$message.error(textErr[index])
resolve(false)
} else {
if (index == 2) {
if (index == 1) {
this.payForm.payMoney = (res.payAmount / 100).toFixed(2)
}
resolve(true)
......@@ -849,7 +849,7 @@ export default {
// console.log(row)
// isRefuse: 0:审批,2:驳回
if (row) {
this.operaForm.select =false
this.operaForm.select = false
this.ids = isRefuse == 0 ? [row.id] : row.id
}
//驳回
......@@ -859,7 +859,7 @@ export default {
//付款
handlePay(row) {
if (row) {
this.operaForm.select =false
this.operaForm.select = false
this.ids = [row.id]
this.payForm.payMoney = (row.payAmount / 100).toFixed(2)
}
......@@ -1130,4 +1130,28 @@ export default {
.gl-form-page /deep/ .el-dialog__footer {
text-align: center !important;
}
.select-wrap {
/deep/ {
::-webkit-input-placeholder {
/*Webkit browsers*/
color: #606266;
font-size: 14px;
}
:-moz-placeholder {
/*Mozilla Firefox 4 to 8*/
color: #606266;
font-size: 14px;
}
::moz-placeholder {
/*Mozilla Firefox 19+*/
color: #606266;
font-size: 14px;
}
:-ms-input-placeholder {
/*Internet Explorer 10+*/
color: #606266;
font-size: 14px;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!