Commit 025a9be6 by 王志慧

fixed

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