|
|
@@ -75,9 +75,26 @@
|
|
|
{{ row[field.prop] }}
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template v-else-if="'stationId'===field.prop">
|
|
|
+ <div class="flex-align-items-center text-align-center">
|
|
|
+ <div>
|
|
|
+ {{ row.stationId }}
|
|
|
+ </div>
|
|
|
+ <hr/>
|
|
|
+ <div>
|
|
|
+ {{ row.stationName }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template v-else-if="field.prop==='type'">
|
|
|
<ext-d-label type="Object.type" :model-value="row[field.prop]"></ext-d-label>
|
|
|
</template>
|
|
|
+ <template v-else-if="field.prop==='status'">
|
|
|
+ <ext-d-label type="WithdrawnRecord.status" :model-value="row[field.prop]"></ext-d-label>
|
|
|
+ </template>
|
|
|
+ <template v-else-if="field.prop==='paymentStatus'">
|
|
|
+ <ext-d-label type="WithdrawnRecord.paymentStatus" :model-value="row[field.prop]"></ext-d-label>
|
|
|
+ </template>
|
|
|
<template v-else-if="['withdrawnAmount','amount','amountReceivable','amountReceived','cardBalance','coinMoney','discountAmount','discountMoney'].includes(field.prop)">
|
|
|
{{ u.fmt.fmtMoney(row[field.prop]) }}
|
|
|
</template>
|
|
|
@@ -119,6 +136,7 @@ import ExtTable from "/@/components/form/ExtTable.vue";
|
|
|
import mittBus from '/@/utils/mitt';
|
|
|
|
|
|
import {ElButton} from 'element-plus'
|
|
|
+import ExtDLabel from "/@/components/form/ExtDLabel.vue";
|
|
|
|
|
|
|
|
|
//定义引用
|
|
|
@@ -141,19 +159,15 @@ const state = reactive({
|
|
|
importConfig: {},
|
|
|
exportConfig: {},
|
|
|
columns: [
|
|
|
- {label: '站点id', width: 180, prop: 'stationId', query: true, type: 'select', resizable: true,conf:{url:'washStation/list',valueKey:'stationId',labelKey:'stationName'}},
|
|
|
- {label: '提现金额', width: 180, prop: 'withdrawnAmount', query: true, type: 'number', resizable: true},
|
|
|
- {
|
|
|
- label: '状态', prop: 'status', sortable: 'custom', align: 'center', query: true,
|
|
|
- type: 'dict', conf: {dict: 'WithdrawnRecord.status'}
|
|
|
- },
|
|
|
- {label: '打款状态', width: 180, prop: 'paymentStatus', query: true,
|
|
|
- type: 'dict', conf: {dict: 'WithdrawnRecord.paymentStatus'}},
|
|
|
- {label: '审核人', width: 180, prop: 'reviewer', query: true, type: 'text', resizable: true},
|
|
|
- {label: '审核时间', width: 180, prop: 'reviewTime', query: true, sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDate(val)}},
|
|
|
- {label: '打款人', width: 180, prop: 'payer', query: true, type: 'text', resizable: true},
|
|
|
- {label: '打款时间', width: 180, prop: 'paymentTime', query: true, sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDate(val)}},
|
|
|
- {label: '备注', width: 180, prop: 'remark', query: false, type: 'text', resizable: true},
|
|
|
+ {label: '提现站点', width: 180, prop: 'stationId', query: true, type: 'select', resizable: true,conf:{url:'washStation/list',valueKey:'stationId',labelKey:'stationName'}},
|
|
|
+ {label: '提现金额', width: 100, prop: 'withdrawnAmount', type: 'number', resizable: true},
|
|
|
+ {label: '审核状态', width: 100, prop: 'status', align: 'center', query: true,type: 'dict', conf: {dict: 'WithdrawnRecord.status'}},
|
|
|
+ {label: '打款状态', width: 100, prop: 'paymentStatus', query: true,type: 'dict', conf: {dict: 'WithdrawnRecord.paymentStatus'}},
|
|
|
+ {label: '审核人', width: 120, prop: 'reviewer', type: 'text', resizable: true},
|
|
|
+ {label: '审核时间', width: 180, prop: 'reviewTime', sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDate(val)}},
|
|
|
+ {label: '打款人', width: 120, prop: 'payer', type: 'text', resizable: true},
|
|
|
+ {label: '打款时间', width: 180, prop: 'paymentTime', sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDate(val)}},
|
|
|
+ {label: '备注', width: 180, prop: 'remark', type: 'text', resizable: true},
|
|
|
{label: '申请时间', width: 180, prop: 'createTime', query: false, sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDate(val)}},
|
|
|
{label: '更新时间', width: 180, prop: 'updateTime', query: false, sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDate(val)}},
|
|
|
{
|
|
|
@@ -233,7 +247,7 @@ const handleWithdrawAudit = (withdraw:any) => {
|
|
|
}
|
|
|
|
|
|
const handleWithdrawConfirm = (withdraw:any) => {
|
|
|
- $body(`finance/confirmWithdrawnPayment`,withdraw).then(res=>{
|
|
|
+ $body(`finance/confirmWithdrawnPayment`,{id:withdraw.id,paymentStatus:1}).then(res=>{
|
|
|
Msg.message(`提现审核通过`)
|
|
|
loadData(true)
|
|
|
})
|
|
|
@@ -247,4 +261,4 @@ const handleWithdrawConfirm = (withdraw:any) => {
|
|
|
// defineExpose({
|
|
|
// loadData,
|
|
|
// });
|
|
|
-</script>
|
|
|
+</script>
|