Commit d189add5 by wusiyi

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

parent 75ad97ed
...@@ -6,3 +6,23 @@ export function getUserRechargeRecordListApi(params) { ...@@ -6,3 +6,23 @@ export function getUserRechargeRecordListApi(params) {
export function getSubjectListApi(params) { export function getSubjectListApi(params) {
return axios.get('/pay/businessPayRecord/subjectList', 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 { ...@@ -38,7 +38,8 @@ import {
CheckboxGroup, CheckboxGroup,
Divider, Divider,
Popover, Popover,
Upload Upload,
Link
} from 'element-ui' } from 'element-ui'
const components = [ const components = [
...@@ -76,7 +77,8 @@ const components = [ ...@@ -76,7 +77,8 @@ const components = [
ColorPicker, ColorPicker,
CheckboxGroup, CheckboxGroup,
Popover, Popover,
Upload Upload,
Link
] ]
export default { export default {
...@@ -89,11 +91,11 @@ export default { ...@@ -89,11 +91,11 @@ export default {
typeof message === 'string' typeof message === 'string'
? Message({ ? Message({
duration: 2500, duration: 2500,
message, message
}) })
: Message({ : Message({
duration: 2500, duration: 2500,
...message, ...message
}) })
Vue.prototype.$message.success = (message) => Vue.prototype.$message.success = (message) =>
typeof message === 'string' typeof message === 'string'
...@@ -115,5 +117,5 @@ export default { ...@@ -115,5 +117,5 @@ export default {
Vue.prototype.$alert = MessageBox.alert Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt Vue.prototype.$prompt = MessageBox.prompt
}, }
} }
...@@ -103,6 +103,12 @@ const routes = [ ...@@ -103,6 +103,12 @@ const routes = [
meta: { title: '充值记录' } meta: { title: '充值记录' }
}, },
{ {
path: '/saas/user/balance',
component: () => import('@/views/user/balance.vue'),
name: 'user_balance',
meta: { title: '客户余额管理' }
},
{
path: '/saas/logistics/transporters', path: '/saas/logistics/transporters',
component: () => import('@/views/system/transporters.vue'), component: () => import('@/views/system/transporters.vue'),
name: 'system_transporters', name: 'system_transporters',
......
...@@ -423,6 +423,14 @@ export default { ...@@ -423,6 +423,14 @@ export default {
icon: 'el-icon-user', icon: 'el-icon-user',
index: '/saas/user/recharge-record', index: '/saas/user/recharge-record',
children: [] 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