|
|
@@ -14,9 +14,9 @@
|
|
|
<el-form-item label="状态">
|
|
|
<el-select v-model="searchForm.status" placeholder="请选择状态" clearable>
|
|
|
<el-option label="全部" value="" />
|
|
|
- <el-option label="待处理" value="pending" />
|
|
|
- <el-option label="已通过" value="approved" />
|
|
|
- <el-option label="已拒绝" value="rejected" />
|
|
|
+ <el-option label="待审核" value="1" />
|
|
|
+ <el-option label="已通过" value="2" />
|
|
|
+ <el-option label="已拒绝" value="3" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
@@ -42,21 +42,16 @@
|
|
|
>
|
|
|
<el-table-column prop="id" label="ID" width="80" />
|
|
|
<el-table-column prop="order_no" label="订单号" min-width="180" />
|
|
|
- <el-table-column prop="receiver_name" label="接收方名称" min-width="150" />
|
|
|
- <el-table-column prop="receiver_account" label="接收方账户" min-width="180" />
|
|
|
- <el-table-column prop="amount" label="分账金额" width="120">
|
|
|
+ <el-table-column prop="receiver_name" label="接收方名称" min-width="120" />
|
|
|
+ <el-table-column prop="acct_name" label="账户名称" min-width="120" />
|
|
|
+ <el-table-column prop="acct_no" label="账户号码" min-width="180" />
|
|
|
+ <el-table-column prop="acct_type_code" label="账户类型" width="100">
|
|
|
<template #default="{ row }">
|
|
|
- ¥{{ row.amount }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="status" label="状态" width="100">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-tag v-if="row.status === 'pending'" type="warning">待处理</el-tag>
|
|
|
- <el-tag v-else-if="row.status === 'approved'" type="success">已通过</el-tag>
|
|
|
- <el-tag v-else-if="row.status === 'rejected'" type="danger">已拒绝</el-tag>
|
|
|
- <el-tag v-else>{{ row.status }}</el-tag>
|
|
|
+ {{ getAccountTypeText(row.acct_type_code) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="contact_mobile" label="联系电话" width="120" />
|
|
|
+ <el-table-column prop="status_text" label="状态" width="100" />
|
|
|
<el-table-column prop="create_time" label="申请时间" width="180" />
|
|
|
<el-table-column label="操作" width="150" fixed="right">
|
|
|
<template #default="{ row }">
|
|
|
@@ -108,6 +103,15 @@ export default {
|
|
|
this.fetchData()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取账户类型文本
|
|
|
+ getAccountTypeText(code) {
|
|
|
+ const accountTypes = {
|
|
|
+ '58': '对私',
|
|
|
+ '59': '对公'
|
|
|
+ }
|
|
|
+ return accountTypes[code] || code
|
|
|
+ },
|
|
|
+
|
|
|
// 获取列表数据
|
|
|
async fetchData() {
|
|
|
// 优先使用通过props传递的axios实例
|
|
|
@@ -127,10 +131,12 @@ export default {
|
|
|
|
|
|
const res = await this.axiosInstance.get('/lakala/profit_share_receiver', { params })
|
|
|
if (res.code === 200) {
|
|
|
- this.tableData = res.data.list
|
|
|
- this.pagination.total = res.data.total
|
|
|
+ // 根据接口返回结构调整数据处理
|
|
|
+ this.tableData = res.page.data
|
|
|
+ this.pagination.total = res.page.total
|
|
|
+ this.pagination.limit = res.page.per_page
|
|
|
} else {
|
|
|
- this.$message.error(res.message || '获取数据失败')
|
|
|
+ this.$message.error(res.msg || res.message || '获取数据失败')
|
|
|
}
|
|
|
} catch (error) {
|
|
|
console.error('获取分账接收方列表失败:', error)
|