Browse Source

退款审核人

lihuilin/feature-20250623164044-金币前端
lihuilin 10 hours ago
parent
commit
ce9371b9a8
  1. 4
      .env.development
  2. 20
      src/views/audit/refundAudit.vue

4
.env.development

@ -1,6 +1,6 @@
VITE_API_BASE='https://hwjb.homilychart.com/admin/'
# VITE_API_BASE='https://hwjb.homilychart.com/admin/'
# VITE_API_BASE='https://hwjb.homilychart.com/gold_htms_dev'
# VITE_API_BASE='http://192.168.8.242:8081/'
VITE_API_BASE='http://192.168.8.242:8081/'
# VITE_API_BASE='http://18.143.76.3:10704/'
# VITE_API_BASE='http://192.168.9.28:8081/'
# VITE_API_BASE='http://192.168.8.94:8081/'

20
src/views/audit/refundAudit.vue

@ -229,7 +229,7 @@ const handleSortChange = (column) => {
} else if (column.prop === 'permanentGold') {
sortField.value = 'permanent_gold'
} else if (column.prop === 'freeGold') {
sortField.value = 'free_gold'
sortField.value = 'freeGold'
}else if (column.prop === 'taskGold') {
sortField.value = 'task_gold'
}else if (column.prop === 'createTime') {
@ -294,6 +294,7 @@ const get = async function (val) {
console.log('看看传给后端的参数:', params)
const res = await API({ url: '/audit/selectRefund', data: params })
tableData.value = res.list || []
tableData.value.aduitName =
pagination.value.total = res.total || 0
console.log('查全部的total', pagination.value.total, res.total)
} catch (error) {
@ -305,11 +306,12 @@ const handleApprove = async (row) => {
try {
const params = {
orderCode: row.orderCode,
auditId: row.auditId,
auditId: adminInfo.value.id,
action: 1,// action1,2
rejectReason: ''
}
await API({ url: '/audit/audit', data: params })//
console.log('=============',params)
ElMessage.success('审核通过成功')
get()
getStats()
@ -319,7 +321,15 @@ const handleApprove = async (row) => {
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 () => {
if (!rejectReason.value.trim()) {
@ -329,7 +339,7 @@ const handleReject = async () => {
try {
const params = {
orderCode: scopeValue.value.orderCode,
auditId: scopeValue.value.auditId,
auditId: adminInfo.value.id,
action: 2,
rejectReason: rejectReason.value
}
@ -486,7 +496,7 @@ const adminReject = async function () {
}
onMounted(async () => {
//await getAdminInfo()//
await getAdminData()
getRefundGoods()
getmarkets()
await get()

Loading…
Cancel
Save