Commit d189add5 by wusiyi

feat: 新增客户管理-客户余额管理页面

parent 75ad97ed
......@@ -6,3 +6,23 @@ export function getUserRechargeRecordListApi(params) {
export function getSubjectListApi(params) {
return axios.get('/pay/businessPayRecord/subjectList', params)
}
// 客户余额管理 列表
export function getCostomerBalanceApi(params) {
return axios.post('/business/customerBalance/list_page', params)
}
// 客户余额管理 编辑提交
export function editCustomerBalanceApi(params) {
return axios.post('/business/customerBalance/update', params)
}
// 客户余额管理 手动充值
export function customerBalanceRechargeApi(params) {
return axios.post('/business/customerBalance/recharge', params)
}
// 客户余额管理 批量删除
export function customerBalanceDelete(params) {
return axios.post('/business/customerBalance/delete?ids=' + params)
}
// 获取操作日志
// export function getLogApi(params) {
// return axios.get('/pay/businessPayRecord/subjectList', params)
// }
......@@ -38,7 +38,8 @@ import {
CheckboxGroup,
Divider,
Popover,
Upload
Upload,
Link
} from 'element-ui'
const components = [
......@@ -76,7 +77,8 @@ const components = [
ColorPicker,
CheckboxGroup,
Popover,
Upload
Upload,
Link
]
export default {
......@@ -88,13 +90,13 @@ export default {
Vue.prototype.$message = (message) =>
typeof message === 'string'
? Message({
duration: 2500,
message,
})
duration: 2500,
message
})
: Message({
duration: 2500,
...message,
})
duration: 2500,
...message
})
Vue.prototype.$message.success = (message) =>
typeof message === 'string'
? Message.success({ duration: 2500, message })
......@@ -115,5 +117,5 @@ export default {
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
},
}
}
......@@ -103,6 +103,12 @@ const routes = [
meta: { title: '充值记录' }
},
{
path: '/saas/user/balance',
component: () => import('@/views/user/balance.vue'),
name: 'user_balance',
meta: { title: '客户余额管理' }
},
{
path: '/saas/logistics/transporters',
component: () => import('@/views/system/transporters.vue'),
name: 'system_transporters',
......
......@@ -423,6 +423,14 @@ export default {
icon: 'el-icon-user',
index: '/saas/user/recharge-record',
children: []
},
{
id: 3,
path: '',
label: '客户余额管理',
icon: 'el-icon-money',
index: '/saas/user/balance',
children: []
}
]
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment