|
@@ -2,7 +2,7 @@
|
|
|
import { ref, reactive } from 'vue'
|
|
|
import { Search } from '@element-plus/icons-vue'
|
|
|
import {apiOrderConfig} from '@/api/order'
|
|
|
-import { apiMediaCommon } from '@/api/media'
|
|
|
+import { apiSystemCommon } from '@/api/system'
|
|
|
|
|
|
const tableColumns = [
|
|
|
{
|
|
@@ -18,7 +18,8 @@ const tableColumns = [
|
|
|
{
|
|
|
label:'姓名',
|
|
|
key:'RealName',
|
|
|
- sortable:false
|
|
|
+ sortable:false,
|
|
|
+ widthsty:80,
|
|
|
},
|
|
|
{
|
|
|
label:'手机号',
|
|
@@ -31,16 +32,19 @@ const tableColumns = [
|
|
|
sortable:false
|
|
|
},{
|
|
|
label:'支付金额',
|
|
|
- key:'payment_account',
|
|
|
- sortable:false
|
|
|
+ key:'amount',
|
|
|
+ sortable:false,
|
|
|
+ widthsty:100,
|
|
|
},{
|
|
|
label:'支付状态',
|
|
|
key:'payment_status',
|
|
|
- sortable:false
|
|
|
+ sortable:false,
|
|
|
+ widthsty:100,
|
|
|
},{
|
|
|
label:'支付渠道',
|
|
|
key:'payment_way',
|
|
|
- sortable:false
|
|
|
+ sortable:false,
|
|
|
+ widthsty:90,
|
|
|
},{
|
|
|
label:'支付账号',
|
|
|
key:'ReadCount',
|
|
@@ -48,7 +52,8 @@ const tableColumns = [
|
|
|
},{
|
|
|
label:'收款方',
|
|
|
key:'merchant_id',
|
|
|
- sortable:false
|
|
|
+ sortable:false,
|
|
|
+ widthsty:120,
|
|
|
},{
|
|
|
label:'完成支付时间',
|
|
|
key:'DealTime',
|
|
@@ -64,14 +69,11 @@ const orderStatusList = ref([
|
|
|
value: 'pending',
|
|
|
label: '待支付'
|
|
|
}, {
|
|
|
- value: 'paid',
|
|
|
+ value: 'done',
|
|
|
label: '已支付'
|
|
|
}, {
|
|
|
- value: 'closed',
|
|
|
+ value: 'failed',
|
|
|
label: '已关闭'
|
|
|
- }, {
|
|
|
- value: 'refund',
|
|
|
- label: '售后'
|
|
|
}
|
|
|
])
|
|
|
|
|
@@ -114,9 +116,18 @@ const labelOptions = ref([])
|
|
|
const userId = ref('')
|
|
|
const value1 = ref(['',''])
|
|
|
function getLableList(){
|
|
|
- apiMediaCommon.getPermissionList().then(res=>{
|
|
|
+ apiSystemCommon.getSysConfig({
|
|
|
+ ConfigKey:'paymentWay'
|
|
|
+ }).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
- labelOptions.value = res.Data.List||[]
|
|
|
+ labelOptions.value = res.Data.paymentWay.map(item => {
|
|
|
+ const key = Object.keys(item)[0]; // 获取支付方式的中文名称
|
|
|
+ const value = item[key]; // 获取支付方式的英文名称
|
|
|
+ return {
|
|
|
+ value: value, // 将英文名称设置为 value
|
|
|
+ label: key // 将中文名称设置为 label
|
|
|
+ };
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -190,9 +201,13 @@ async function downloadExcel() {
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <el-select v-model="tableQuery.FollowingGzh" clearable @change="handleSelectChange()" placeholder="支付渠道" style="width: 150px; margin-right: 20px;">
|
|
|
- <el-option label="微信" :value="true"></el-option>
|
|
|
- <el-option label="支付宝" :value="false"></el-option>
|
|
|
+ <el-select v-model="tableQuery.paymentWay" clearable @change="handleSelectChange()" placeholder="支付渠道" style="width: 150px; margin-right: 20px;">
|
|
|
+ <el-option
|
|
|
+ v-for="item in labelOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
<el-date-picker
|
|
|
v-model="tableQuery.createdDate"
|
|
@@ -214,7 +229,7 @@ async function downloadExcel() {
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="search-box">
|
|
|
- <el-button type="primary" style="margin-right: 20px;" @click="downloadExcel">导出表格</el-button>
|
|
|
+ <el-button type="primary" style="margin-right: 20px;" @click="downloadExcel" v-permission="'payment:export'">导出表格</el-button>
|
|
|
<el-input
|
|
|
v-model="tableQuery.keyWord"
|
|
|
:prefix-icon="Search" clearable
|
|
@@ -228,7 +243,8 @@ async function downloadExcel() {
|
|
|
<el-table stripe border :data="tableData" @sort-change="handleSortChange">
|
|
|
<el-table-column
|
|
|
v-for="column in tableColumns" :key="column.key"
|
|
|
- :prop="column.key" :label="column.label" :sortable="column.sortable">
|
|
|
+ :prop="column.key" :label="column.label" :sortable="column.sortable" :width="column.widthsty"
|
|
|
+ :min-width="column.minwidthsty">
|
|
|
<template #default="scope" v-if="column.key === 'AccountStatus'">
|
|
|
<el-tag :type="scope.row[column.key]=== 'Open' ?'success':'info'">{{scope.row[column.key]=== 'Open'?'已开户':'未开户' }}</el-tag>
|
|
|
</template>
|
|
@@ -238,7 +254,7 @@ async function downloadExcel() {
|
|
|
</span>
|
|
|
</template>
|
|
|
<template #default="scope" v-else>
|
|
|
- {{scope.row[column.key]}}
|
|
|
+ {{scope.row[column.key] || '-'}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|