|
@ -29,7 +29,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
|
|
|
|
|
|
<el-col :span="15"> |
|
|
<div class="time-controls"> |
|
|
<div class="time-controls"> |
|
|
<div class="time-group"> |
|
|
<div class="time-group"> |
|
|
<el-text size="large">提交时间:</el-text> |
|
|
<el-text size="large">提交时间:</el-text> |
|
@ -98,7 +98,7 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="remark" label="备注" width="150" show-overflow-tooltip /><!-- 当内容过长被隐藏时显示 tooltip --> |
|
|
<el-table-column prop="remark" label="备注" width="150" show-overflow-tooltip /><!-- 当内容过长被隐藏时显示 tooltip --> |
|
|
<el-table-column prop="adminName" label="提交人" width="120" /> |
|
|
<el-table-column prop="adminName" label="提交人" width="120" /> |
|
|
<el-table-column v-if="checkTab === 'rejected'" prop="rejectReason" label="驳回理由" width="150" |
|
|
|
|
|
|
|
|
<el-table-column v-if="checkTab === 'reject'" prop="rejectReason" label="驳回理由" width="150" |
|
|
show-overflow-tooltip /> |
|
|
show-overflow-tooltip /> |
|
|
<el-table-column v-if="checkTab !== 'pending'" prop="auditName" label="审核人" width="120" /> |
|
|
<el-table-column v-if="checkTab !== 'pending'" prop="auditName" label="审核人" width="120" /> |
|
|
<el-table-column prop="createTime" label="提交时间" width="180" sortable="custom"> |
|
|
<el-table-column prop="createTime" label="提交时间" width="180" sortable="custom"> |
|
@ -211,7 +211,16 @@ const sortOrder = ref('') |
|
|
const rules = reactive({ |
|
|
const rules = reactive({ |
|
|
reason: [{ required: true, message: '请输入驳回理由', trigger: 'blur' }] |
|
|
reason: [{ required: true, message: '请输入驳回理由', trigger: 'blur' }] |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const getAdminData = async function () { |
|
|
|
|
|
try { |
|
|
|
|
|
const result = await API({ url: '/admin/userinfo', data: {} }) |
|
|
|
|
|
adminInfo.value = result |
|
|
|
|
|
console.log('请求成功', result) |
|
|
|
|
|
console.log('用户信息', adminInfo.value) |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.log('请求失败', error) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
const handlePageSizeChange = function (val) { |
|
|
const handlePageSizeChange = function (val) { |
|
|
pagination.value.pageSize = val |
|
|
pagination.value.pageSize = val |
|
|
get() |
|
|
get() |
|
@ -229,7 +238,7 @@ const handleSortChange = (column) => { |
|
|
} else if (column.prop === 'permanentGold') { |
|
|
} else if (column.prop === 'permanentGold') { |
|
|
sortField.value = 'permanent_gold' |
|
|
sortField.value = 'permanent_gold' |
|
|
} else if (column.prop === 'freeGold') { |
|
|
} else if (column.prop === 'freeGold') { |
|
|
sortField.value = 'freeGold' |
|
|
|
|
|
|
|
|
sortField.value = 'free_gold' |
|
|
}else if (column.prop === 'taskGold') { |
|
|
}else if (column.prop === 'taskGold') { |
|
|
sortField.value = 'task_gold' |
|
|
sortField.value = 'task_gold' |
|
|
}else if (column.prop === 'createTime') { |
|
|
}else if (column.prop === 'createTime') { |
|
@ -294,7 +303,6 @@ const get = async function (val) { |
|
|
console.log('看看传给后端的参数:', params) |
|
|
console.log('看看传给后端的参数:', params) |
|
|
const res = await API({ url: '/audit/selectRefund', data: params }) |
|
|
const res = await API({ url: '/audit/selectRefund', data: params }) |
|
|
tableData.value = res.list || [] |
|
|
tableData.value = res.list || [] |
|
|
tableData.value.aduitName = |
|
|
|
|
|
pagination.value.total = res.total || 0 |
|
|
pagination.value.total = res.total || 0 |
|
|
console.log('查全部的total', pagination.value.total, res.total) |
|
|
console.log('查全部的total', pagination.value.total, res.total) |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
@ -311,7 +319,6 @@ const handleApprove = async (row) => { |
|
|
rejectReason: '' |
|
|
rejectReason: '' |
|
|
} |
|
|
} |
|
|
await API({ url: '/audit/audit', data: params })// 试一下能不能发 |
|
|
await API({ url: '/audit/audit', data: params })// 试一下能不能发 |
|
|
console.log('=============',params) |
|
|
|
|
|
ElMessage.success('审核通过成功') |
|
|
ElMessage.success('审核通过成功') |
|
|
get() |
|
|
get() |
|
|
getStats() |
|
|
getStats() |
|
@ -321,15 +328,7 @@ const handleApprove = async (row) => { |
|
|
ElMessage.error('操作失败') |
|
|
ElMessage.error('操作失败') |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const getAdminData = async function () { |
|
|
|
|
|
try { |
|
|
|
|
|
const result = await API({ url: '/admin/userinfo', data: {} }) |
|
|
|
|
|
adminInfo.value = result |
|
|
|
|
|
console.log('用户信息', adminInfo.value) |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.log('请求失败', error) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 处理驳回操作 |
|
|
// 处理驳回操作 |
|
|
const handleReject = async () => { |
|
|
const handleReject = async () => { |
|
|
if (!rejectReason.value.trim()) { |
|
|
if (!rejectReason.value.trim()) { |
|
@ -341,7 +340,7 @@ const handleReject = async () => { |
|
|
orderCode: scopeValue.value.orderCode, |
|
|
orderCode: scopeValue.value.orderCode, |
|
|
auditId: adminInfo.value.id, |
|
|
auditId: adminInfo.value.id, |
|
|
action: 2, |
|
|
action: 2, |
|
|
rejectReason: rejectReason.value |
|
|
|
|
|
|
|
|
rejectReason: tableData.value.rejectReason |
|
|
} |
|
|
} |
|
|
await API({ url: '/audit/audit', data: params }) |
|
|
await API({ url: '/audit/audit', data: params }) |
|
|
ElMessage.success('驳回成功') |
|
|
ElMessage.success('驳回成功') |
|
|