Commit a54aecdb by 王志慧

fixed

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