Commit 025a9be6 by 王志慧

fixed

1 parent dd267a3d
......@@ -37,7 +37,7 @@
<template v-for="(record, recordIdx) in recordInfo.operationList">
<el-form label-width="154px" :inline="true" :key="recordIdx">
<el-row v-for="(item, index) in operationDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label[record.type] + ':'" class="row-item">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label(record) + ':'" class="row-item">
<span v-if="subItem.addHtml" class="flex_sc">
<div class="table_point" :style="{ background: subItem.addHtml(record).color }"></div>
{{ subItem.addHtml(record).status }}
......@@ -82,7 +82,6 @@ export default {
detailVisible(newVal) {
this.isVisible = newVal
this.getDetails()
}
},
computed: {},
......@@ -173,16 +172,17 @@ export default {
]
this.operationData = [
{
label: ['审核', '付款', '驳回'],
label: obj => {
return ['审核', '付款'][obj.type]
},
name: 'type',
addHtml: obj => {
let status = '--',
color = '#2CCA74'
if (obj.type == 0) {
status = '通过'
} else if (obj.type == 1) {
color;
if (obj.result == 0) {
status = '通过'
} else {
color = '#2CCA74'
} else if (obj.result == 1) {
status = '驳回'
color = '#EB4E4E'
}
......@@ -193,19 +193,39 @@ export default {
}
},
{
label: ['审核人', '付款人', '操作人'],
// label: ['审核人', '付款人', '操作人'],
label: obj => {
let arr = ['审核人', '付款人'],
label
if (obj.result == 0) {
label = arr[obj.type]
} else if (obj.result == 1) {
label = '操作人'
}
return label
},
name: 'createdBy'
},
{
label: ['审核时间', '付款时间', '操作时间'],
label: obj => {
let arr = ['审核时间', '付款时间'],
label
if (obj.result == 0) {
label = arr[obj.type]
} else if (obj.result == 1) {
label = '操作时间'
}
return label
},
name: 'createdDate'
},
{
label: ['备注', '备注', '备注'],
label: () => {
return '备注'
},
name: 'remark'
}
]
console.log(this.recordInfo,'errorMessage')
if (this.recordInfo.status != 4) {
this.handleJudgment(this.paymentData, 'errorMessage')
}
......
......@@ -497,7 +497,7 @@ export default {
this.ids = isRefuse == 0 ? [row.id] : row.id
this.$refs.withdrawRef.clearMutiSelect()
} else {
if (!this.ids) {
if (!this.ids||this.ids.length == 0) {
this.$message({
message: '请选择待审核的提现记录',
type: 'error'
......@@ -516,7 +516,7 @@ export default {
this.payForm.payMoney = (row.payAmount / 100).toFixed(2)
this.$refs.withdrawRef.clearMutiSelect()
} else {
if (!this.ids) {
if (!this.ids||this.ids.length == 0) {
this.$message({
message: '请选择已审核的提现记录',
type: 'error'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!