Commit 7d7bf319 by 王志慧

积分管理需求开发

1 parent d28247c8
......@@ -30,6 +30,12 @@
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
<el-row v-if="this.recordInfo.status == 4">
<el-form-item label="失败原因:">
<span>{{ recordInfo.errorMessage }}</span>
<span class="copy" @click="handleCopy">复制</span>
</el-form-item>
</el-row>
</el-form>
</div>
<div v-if="recordInfo.operationList">
......@@ -54,10 +60,11 @@
<script>
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E']
const channelObj={
'TXIAT':'熠轩',
'ZX':'中雄',
'YUNHUO':'云获'
const channelObj = {
TXIAT: '熠轩-银行卡',
ZX: '中雄-银行卡',
YUNHUO: '云获-银行卡',
'YUNHUO-WX': '云获-微信'
}
export default {
name: 'DetailDialog',
......@@ -70,7 +77,25 @@ export default {
withdrawData: [],
paymentData: [],
operationData: [],
isVisible: this.detailVisible
isVisible: this.detailVisible,
sourceList: [
{
confId: '0',
confLabel: '车生活助手'
},
{
confId: '1',
confLabel: '系统导入'
},
{
confId: '2',
confLabel: '生意助手员工版'
},
{
confId: '3',
confLabel: '门店助手'
}
]
}
},
props: {
......@@ -92,6 +117,21 @@ export default {
computed: {},
mounted() {},
methods: {
handleCopy() {
const text = this.recordInfo.errorMessage
const input = document.createElement('input')
input.value = text
// 将临时输入框添加到页面中
document.body.appendChild(input)
// 选中临时输入框的内容
input.select()
const isSuccessful = document.execCommand('copy')
document.body.removeChild(input)
if(isSuccessful){
this.$message.success('复制成功')
}
},
getDetails() {
this.$apis.withdraw.getDetails({ id: this.id }).then(res => {
this.recordInfo = res
......@@ -108,14 +148,21 @@ export default {
label: '提现类型',
name: 'transferType',
addHtml: obj => {
return obj.transferType ==0?'积分提现':obj.transferType==1?'普通提现':'阳光激励'
return obj.transferType == 0 ? '积分提现' : obj.transferType == 1 ? '普通提现' : '阳光激励'
}
},
{
label: '提现方式',
name: 'mode',
addHtml: obj => {
return obj.mode === 1 ? '微信' : obj.mode === 0 ? '银行卡' : '--'
}
},
{
label: '提现金额',
name: 'payAmount',
addHtml: obj => {
return obj.payAmount?(obj.payAmount / 100).toFixed(2):'--'
return obj.payAmount ? (obj.payAmount / 100).toFixed(2) : '--'
}
},
{
......@@ -130,7 +177,7 @@ export default {
label: '提现积分',
name: 'integralAmount'
},
{
label: '所属门店',
name: 'merchantName'
......@@ -138,6 +185,14 @@ export default {
{
label: '申请时间',
name: 'createdDate'
},
{
label: '来源',
name: 'withdrawalSource',
addHtml: obj => {
let arr = this.sourceList.filter(item => item.confId == obj.withdrawalSource)
return arr.length > 0 ? arr[0].confLabel : '--'
}
}
]
this.paymentData = [
......@@ -162,6 +217,10 @@ export default {
name: 'mobile'
},
{
label: '微信openid',
name: 'customerOpenId'
},
{
label: '付款渠道',
name: 'channel',
addHtml: obj => {
......@@ -172,7 +231,7 @@ export default {
label: '结算金额',
name: 'settleAmount',
addHtml: obj => {
return obj.settleAmount?(obj.settleAmount / 100).toFixed(2):'--'
return obj.settleAmount ? (obj.settleAmount / 100).toFixed(2) : '--'
}
},
{
......@@ -188,11 +247,11 @@ export default {
color: colors[obj.status]
}
}
},
{
label: '失败原因',
name: 'errorMessage'
}
// {
// label: '失败原因',
// name: 'errorMessage'
// }
]
this.operationData = [
{
......@@ -202,7 +261,7 @@ export default {
name: 'type',
addHtml: obj => {
let status = '--',
color;
color
if (obj.result == 0) {
status = '通过'
color = '#2CCA74'
......@@ -219,7 +278,7 @@ export default {
{
// label: ['审核人', '付款人', '操作人'],
label: obj => {
let arr = ['审核人', '付款人','受理人'],
let arr = ['审核人', '付款人', '受理人'],
label
if (obj.result == 0) {
label = arr[obj.type]
......@@ -232,7 +291,7 @@ export default {
},
{
label: obj => {
let arr = ['审核时间', '付款时间','受理时间'],
let arr = ['审核时间', '付款时间', '受理时间'],
label
if (obj.result == 0) {
label = arr[obj.type]
......@@ -250,9 +309,9 @@ export default {
name: 'remark'
}
]
if (this.recordInfo.status != 4) {
this.handleJudgment(this.paymentData, 'errorMessage')
}
// if () {
// this.handleJudgment(this.paymentData, 'errorMessage')
// }
this.formToRow('withdrawData')
this.formToRow('operationData')
this.formToRow('paymentData')
......@@ -302,7 +361,7 @@ export default {
}
.detail-txt {
display: inline-block;
width: 133px;
width: 136px;
}
.edit-title {
font-weight: 600;
......@@ -322,4 +381,9 @@ export default {
border-radius: 50%;
margin-right: 8px;
}
.copy {
color: #5850ff;
margin-left: 20px;
cursor: pointer;
}
</style>
\ No newline at end of file
......@@ -5,13 +5,14 @@
<div class="table-header">
<!-- <h2>积分提现列表</h2> -->
<div class="statistics">
累计结算金额:熠轩
累计结算金额:熠轩-银行卡
<span class="price">{{ settleAmount.yiXuanSettleAmount }}</span>
元, 中雄
元, 中雄-银行卡
<span class="price">{{ settleAmount.zxSettleAmount }}</span>
元, 云获
元,云获-银行卡
<span class="price">{{ settleAmount.yunHuoSettleAmount }}</span>
元
元, 云获-微信
<span class="price">{{ settleAmount.yunHuoWXSettleAmount }}</span>
</div>
<div>
<div class="select-wrap flex">
......@@ -153,7 +154,9 @@ export default {
status: '',
channel: '',
merchantName: '',
transferType: ''
transferType: '',
mode: '',
withdrawalSource: ''
},
hasFooter: false,
tableSearchForm: {},
......@@ -235,6 +238,24 @@ export default {
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'withdrawalTypeList'
},
{
label: '提现方式',
name: 'mode',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'modeTypeList'
},
{
label: '来源',
name: 'withdrawalSource',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'sourceList'
}
],
tableButtonList: [
......@@ -316,6 +337,25 @@ export default {
minWidth: 200
},
{
label: '提现类型',
prop: 'transferType',
width: '200px',
formatter: cellValue => {
let arr = this.baseData.withdrawalTypeList.filter(item => item.confId == cellValue.transferType)
return arr.length > 0 ? arr[0].confLabel : '--'
}
},
{
label: '提现方式',
prop: 'mode',
width: '200px',
formatter: cellValue => {
let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
return arr.length > 0 ? arr[0].confLabel : '--'
}
},
{
label: '客户名称',
prop: 'customerName',
width: 150
......@@ -371,6 +411,11 @@ export default {
width: '130px'
},
{
label: '微信openid',
prop: 'customerOpenId',
width: '130px'
},
{
label: '状态',
prop: 'status',
width: '200px',
......@@ -382,6 +427,15 @@ export default {
width: '200px'
},
{
label: '来源',
prop: 'withdrawalSource',
width: '200px',
formatter: cellValue => {
let arr = this.baseData.sourceList.filter(item => item.confId == cellValue.withdrawalSource)
return arr.length > 0 ? arr[0].confLabel : '--'
}
},
{
label: '付款时间',
prop: 'payDate',
width: '200px'
......@@ -447,15 +501,19 @@ export default {
channelList: [
{
confId: 'TXIAT',
confLabel: '熠轩'
confLabel: '熠轩-银行卡'
},
{
confId: 'ZX',
confLabel: '中雄'
confLabel: '中雄-银行卡'
},
{
confId: 'YUNHUO',
confLabel: '云获'
confLabel: '云获-银行卡'
},
{
confId: 'YUNHUO-WX',
confLabel: '云获-微信'
}
],
withdrawalTypeList: [
......@@ -472,6 +530,34 @@ export default {
confLabel: '阳光激励'
}
],
modeTypeList: [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
],
sourceList: [
{
confId: '0',
confLabel: '车生活助手'
},
{
confId: '1',
confLabel: '系统导入'
},
{
confId: '2',
confLabel: '生意助手员工版'
},
{
confId: '3',
confLabel: '门店助手'
}
],
payChannelList: []
},
showPassDialog: false,
......@@ -703,7 +789,9 @@ export default {
customerPhone: '',
status: '',
channel: '',
merchantName: ''
merchantName: '',
mode: '',
withdrawalSource: ''
}
this.handleSearch()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!