Commit 118657d2 authored by rencs's avatar rencs

8.25 入驻申请

parent da3b6002
...@@ -2,26 +2,26 @@ import fetch from 'utils/fetch'; ...@@ -2,26 +2,26 @@ import fetch from 'utils/fetch';
//根据大区Id获取分公司列表 //根据大区Id获取分公司列表
export function getAllBranchCompanyByZoneId(query) { export function getAllBranchCompanyByZoneId(query) {
return fetch({ return fetch({
url: '/vehicle/branchCompany/app/unauth/getByZone', url: '/vehicle/branchCompany/app/unauth/getByZone',
method: 'get', method: 'get',
params:query params: query
}); });
} }
/** /**
* 获取申请列表--申请列表 * 获取申请列表--申请列表
* @param query * @param query
*/ */
export function getApplyList(query) { export function getApplyList(query) {
return fetch({ return fetch({
url: '/api/app/admin/buy_vehicle/page', url: '/api/app/admin/buy_vehicle/page',
method: 'POST', method: 'POST',
data: query data: query
}); });
} }
/** /**
* 处理 * 处理
* @param query * @param query
*/ */
...@@ -105,4 +105,22 @@ export function infoPrize(query) { ...@@ -105,4 +105,22 @@ export function infoPrize(query) {
method: 'get', method: 'get',
data: query data: query
}); });
} }
\ No newline at end of file
// 入驻申请列表
export function settlement_list(query) {
return fetch({
url: 'vehicle/company/apply/selectList',
method: 'get',
params: query
});
}
// 设为已读
export function set_to_read(query) {
return fetch({
url: 'vehicle/company/apply/upd',
method: 'post',
data: query
});
}
...@@ -17,73 +17,73 @@ import Layout from '../views/layout/Layout'; ...@@ -17,73 +17,73 @@ import Layout from '../views/layout/Layout';
* meta : { role: ['admin'] } will control the page role * meta : { role: ['admin'] } will control the page role
**/ **/
export const constantRouterMap = [{ export const constantRouterMap = [{
path: '/login', path: '/login',
component: _import('login/index'), component: _import('login/index'),
hidden: true hidden: true
}, },
{ {
path: '/authredirect', path: '/authredirect',
component: _import('login/authredirect'), component: _import('login/authredirect'),
hidden: true hidden: true
}, },
{ {
path: '/map', path: '/map',
component: _import('map'), component: _import('map'),
name: '地图', name: '地图',
hidden: true hidden: true
}, },
{ {
path: '/stockCrowd', path: '/stockCrowd',
component: _import('baseInfo/stockCrowd/stockCrowd'), component: _import('baseInfo/stockCrowd/stockCrowd'),
name: '分公司入股', name: '分公司入股',
hidden: true hidden: true
// authority: 'stockCrowd' // authority: 'stockCrowd'
}, },
{ {
path: '/stockCrowdDetail', path: '/stockCrowdDetail',
component: _import('baseInfo/stockCrowdDetail/index'), component: _import('baseInfo/stockCrowdDetail/index'),
name: '入股申请', name: '入股申请',
hidden: true hidden: true
// authority: 'stockCrowd' // authority: 'stockCrowd'
}, },
{ {
path: '/campsite', path: '/campsite',
component: _import('baseInfo/campsite/campsite'), component: _import('baseInfo/campsite/campsite'),
name: '营地', name: '营地',
hidden: true hidden: true
// authority: 'stockCrowd' // authority: 'stockCrowd'
}, },
{ {
path: '/companyInfo', path: '/companyInfo',
component: _import('baseInfo/companyInfo/index'), component: _import('baseInfo/companyInfo/index'),
name: '公司信息', name: '公司信息',
hidden: true hidden: true
// authority: 'companyInfo' // authority: 'companyInfo'
}, },
{ {
path: '/companyDetail', path: '/companyDetail',
component: _import('baseInfo/companyInfo/companyDetail'), component: _import('baseInfo/companyInfo/companyDetail'),
name: '公司详情', name: '公司详情',
hidden: true hidden: true
// authority: 'companyInfo' // authority: 'companyInfo'
}, },
{ {
path: '/provinceMap', path: '/provinceMap',
component: _import('baseInfo/companyInfo/provinceMap'), component: _import('baseInfo/companyInfo/provinceMap'),
name: '省市分布', name: '省市分布',
hidden: true hidden: true
// authority: 'stockCrowd' // authority: 'stockCrowd'
}, },
{ {
path: '/404', path: '/404',
component: _import('error/404'), component: _import('error/404'),
hidden: true hidden: true
}, },
{ {
path: '/401', path: '/401',
component: _import('error/401'), component: _import('error/401'),
hidden: true hidden: true
}, },
// { // {
// path: '/', // path: '/',
// component: Layout, // component: Layout,
...@@ -96,29 +96,29 @@ export const constantRouterMap = [{ ...@@ -96,29 +96,29 @@ export const constantRouterMap = [{
// }] // }]
// }, // },
{ {
path: '/', path: '/',
component: Layout, component: Layout,
redirect: '/index', redirect: '/index',
name: '首页', name: '首页',
hidden: true, hidden: true,
children: [{ children: [{
path: 'index', path: 'index',
component: _import('index/index') component: _import('index/index')
}] }]
}, },
{ {
path: '/introduction', path: '/introduction',
component: Layout, component: Layout,
redirect: '/introduction/index', redirect: '/introduction/index',
icon: 'form', icon: 'form',
noDropdown: true, noDropdown: true,
children: [{ children: [{
path: 'index', path: 'index',
component: _import('introduction/index'), component: _import('introduction/index'),
name: '简述' name: '简述'
}] }]
} }
] ]
export default new Router({ export default new Router({
...@@ -130,655 +130,639 @@ export default new Router({ ...@@ -130,655 +130,639 @@ export default new Router({
}); });
export const asyncRouterMap = [{ export const asyncRouterMap = [{
path: '/baseManager', path: '/baseManager',
component: Layout, component: Layout,
name: '基础配置管理', name: '基础配置管理',
icon: 'setting', icon: 'setting',
authority: 'baseManager', authority: 'baseManager',
children: [{ children: [{
path: 'userManager', path: 'userManager',
icon: 'fa-user', icon: 'fa-user',
component: _import('admin/user/index'), component: _import('admin/user/index'),
name: '后台用户管理', name: '后台用户管理',
authority: 'userManager' authority: 'userManager'
}, {
path: 'appUserManager',
icon: 'fa-user',
component: _import('admin/appUser/index'),
name: 'App用户管理',
authority: 'appUserManager'
}, {
path: 'menuManager',
icon: 'category',
component: _import('admin/menu/index'),
name: '菜单管理',
authority: 'menuManager'
}, {
path: 'groupManager',
icon: 'group_fill',
component: _import('admin/group/index'),
name: '角色权限管理',
authority: 'groupManager'
}, {
path: 'groupTypeManager',
icon: 'fa-users',
component: _import('admin/groupType/index'),
name: '角色类型管理',
authority: 'groupTypeManager'
}, {
path: 'gateLogManager',
icon: 'viewlist',
component: _import('admin/gateLog/index'),
name: '操作日志管理',
authority: 'gateLogManager'
}]
},
{
path: '/authManager',
component: Layout,
name: '基础配置管理',
icon: 'setting',
authority: 'authManager',
children: [{
path: 'serviceManager',
component: _import('auth/service/index'),
name: '用户管理',
authority: 'serviceManager'
}]
},
{
path: '/memberManager',
component: Layout,
name: '会员管理',
icon: 'fn-user',
authority: 'memberManager',
children: [{
path: 'memberInfo',
component: _import('member/info/index'),
authority: 'memberInfo'
}]
},
{
path: '/monitorManager',
component: Layout,
name: '监控模块管理',
icon: 'setting',
authority: 'monitorManager',
children: [{
path: 'serviceEurekaManager',
component: _import('monitor/eureka/index'),
name: 'Eureka注册中心',
authority: 'serviceEurekaManager'
}, {
path: 'serviceMonitorManager',
component: _import('monitor/service/index'),
name: '服务状态监控',
authority: 'serviceMonitorManager'
}, {
path: 'serviceZipkinManager',
component: _import('monitor/zipkin/index'),
name: '服务状态监控',
authority: 'serviceZipkinManager'
}]
}, { }, {
path: 'appUserManager', path: '/baseInfo',
component: Layout,
name: '基础信息',
icon: 'fa-user', icon: 'fa-user',
component: _import('admin/appUser/index'), authority: 'baseInfo',
name: 'App用户管理', children: [{
authority: 'appUserManager' path: 'branchCompany',
}, { component: _import('baseInfo/branchCompany/index'),
path: 'menuManager', name: '分公司管理',
icon: 'category', authority: 'branchCompany'
component: _import('admin/menu/index'), },
name: '菜单管理', {
authority: 'menuManager' path: 'campsite',
}, { component: _import('baseInfo/campsite/index'),
path: 'groupManager', name: '营地管理',
icon: 'group_fill', authority: 'campsite'
component: _import('admin/group/index'), },
name: '角色权限管理', {
authority: 'groupManager' path: '/baseInfo/accompanyingItem',
}, { component: _import('vehicle/accompanyingItem/index'),
path: 'groupTypeManager', name: '随行物品管理',
icon: 'fa-users', authority: 'accompanyingItem'
component: _import('admin/groupType/index'), },
name: '角色类型管理', {
authority: 'groupTypeManager' path: 'branchCompany/stock',
}, { component: _import('branchCompany/stock/index'),
path: 'gateLogManager', name: '分公司股权信息管理',
icon: 'viewlist', authority: 'branchCompany/stock'
component: _import('admin/gateLog/index'), },
name: '操作日志管理', {
authority: 'gateLogManager' path: 'branchCompany/stockApply',
}] component: _import('branchCompany/stockApply/index'),
}, name: '分公司股权信息管理',
{ authority: 'branchCompany/stockApply'
path: '/authManager', },
component: Layout, {
name: '基础配置管理', path: 'vehicleUpkeepItem',
icon: 'setting', component: _import('vehicle/vehicleUpkeepItem/index'),
authority: 'authManager', name: '车辆保养项目管理',
children: [{ authority: 'vehicleUpkeepItem'
path: 'serviceManager', },
component: _import('auth/service/index'), {
name: '用户管理', path: 'generalSetting',
authority: 'serviceManager' component: _import('baseInfo/generalSetting'),
}] name: '通用设置',
}, authority: 'generalSetting'
{ },
path: '/memberManager', {
component: Layout, path: 'bannerSetting',
name: '会员管理', component: _import('baseInfo/bannerSetting'),
icon: 'fn-user', name: 'banner设置',
authority: 'memberManager', authority: 'bannerSetting'
children: [{ }
path: 'memberInfo', ]
component: _import('member/info/index'), },
authority: 'memberInfo' {
}] path: '/vehicleType',
}, component: Layout,
{ name: '车型管理',
path: '/monitorManager', icon: 'setting',
component: Layout, authority: 'vehicleType',
name: '监控模块管理', children: [{
icon: 'setting', path: 'vehicleTypeList',
authority: 'monitorManager', component: _import('vehicleType/index'),
children: [{ name: '车型列表',
path: 'serviceEurekaManager', authority: 'vehicleTypeList'
component: _import('monitor/eureka/index'), },
name: 'Eureka注册中心', {
authority: 'serviceEurekaManager' path: 'vehicleTypeLabel',
}, { component: _import('vehicleType/vehicleTypeLabel'),
path: 'serviceMonitorManager', name: '车型标签设置',
component: _import('monitor/service/index'), authority: 'vehicleTypeLabel'
name: '服务状态监控', },
authority: 'serviceMonitorManager' {
}, { path: 'priceList',
path: 'serviceZipkinManager', component: _import('vehicleType/priceList'),
component: _import('monitor/zipkin/index'), name: '租车价格表',
name: '服务状态监控', authority: 'priceList'
authority: 'serviceZipkinManager' },
}] {
}, { path: 'mockSun',
path: '/baseInfo', component: _import('vehicleType/mockSun'),
component: Layout, name: '节日价格',
name: '基础信息', authority: 'mockSun'
icon: 'fa-user', }
authority: 'baseInfo', ]
children: [{ },
path: 'branchCompany', {
component: _import('baseInfo/branchCompany/index'), path: '/discoveryModule',
name: '分公司管理', component: Layout,
authority: 'branchCompany' name: '发现模块',
}, icon: 'setting',
{ authority: 'discoveryModule',
path: 'campsite', children: [{
component: _import('baseInfo/campsite/index'), path: 'clapIndex',
component: _import('discoveryModule/clapIndex'),
name: '拍拍',
authority: 'clapIndex'
},
{
path: 'shortVideo',
component: _import('discoveryModule/shortVideo'),
name: '短视频',
authority: 'shortVideo'
},
{
path: 'questionsAndAnswers',
component: _import('discoveryModule/questionsAndAnswers'),
name: '问答',
authority: 'questionsAndAnswers'
}
]
},
{
path: '/campsiteManage',
component: Layout,
name: '营地管理', name: '营地管理',
authority: 'campsite' icon: 'setting',
authority: 'campsiteManage',
children: [{
path: 'campsiteList',
component: _import('campsiteManage/index'),
name: '营地列表',
authority: 'campsiteList'
},
{
path: 'campsiteLabel',
component: _import('campsiteManage/campsiteLabel'),
name: '营地标签设置',
authority: 'campsiteLabel'
}
]
}, },
{ {
path: '/baseInfo/accompanyingItem', path: '/vehicle',
component: _import('vehicle/accompanyingItem/index'), component: Layout,
name: '随行物品管理', name: '车辆管理',
authority: 'accompanyingItem' icon: 'setting',
authority: 'vehicle',
children: [{
path: 'vehicleInfo',
component: _import('vehicle/vehicleInfo/index'),
name: '车辆信息管理',
authority: 'vehicleInfo'
},
{
path: 'bookRecord',
component: _import('vehicle/bookRecord/index'),
name: '车辆排班管理',
authority: 'bookRecord'
},
{
path: 'bookingManagement',
component: _import('vehicle/smallProgram/bookingManagement'),
name: '小程序车辆申请管理',
authority: 'bookingManagement'
},
{
path: 'vehicleWarningMsg',
component: _import('vehicle/vehicleWarningMsg/index'),
name: '车辆预警消息',
authority: 'vehicleWarningMsg'
},
{
path: 'vehicleDepartureLog',
component: _import('vehicle/vehicleDepartureLog/index'),
name: '车辆出车记录',
authority: 'vehicleDepartureLog'
},
{
path: 'vehicleUpkeepLog',
component: _import('vehicle/vehicleUpkeepLog/index'),
name: '车辆保养记录',
authority: 'vehicleUpkeepLog'
},
{
path: 'vehicleSchedulManage',
component: _import('vehicle/vehicleSchedulManage/index'),
name: '车辆排班表',
authority: 'vehicleSchedulManage'
},
{
path: 'vehicleRecords',
component: _import('vehicle/vehicleSchedulManage/vehicleRecords'),
name: '车辆排班记录',
authority: 'vehicleRecords'
},
{
path: 'vehicleCount',
component: _import('vehicle/vehicleCount/index'),
name: '车辆出行统计',
authority: 'vehicleCount'
}
// {
// path: 'dispatchApply',
// component: _import('vehicle/dispatchApply/index'),
// name: '调度申请管理',
// authority: 'dispatchApply'
// }
]
}, },
{ {
path: 'branchCompany/stock', path: '/tourManage',
component: _import('branchCompany/stock/index'), component: Layout,
name: '分公司股权信息管理', name: '旅行管理',
authority: 'branchCompany/stock' icon: 'setting',
authority: 'tourManage',
children: [{
path: 'tourList',
component: _import('tourManage/index'),
name: '旅行列表',
authority: 'tourList'
},
{
path: 'tourLabel',
component: _import('tourManage/tourLabel'),
name: '旅行标签设置',
authority: 'tourLabel'
}
]
}, },
{ {
path: 'branchCompany/stockApply', path: '/order',
component: _import('branchCompany/stockApply/index'), component: Layout,
name: '分公司股权信息管理', name: '订单管理',
authority: 'branchCompany/stockApply' icon: 'setting',
authority: 'order',
children: [{
path: 'rentVehicleInfo',
component: _import('order/rentVehicleInfo/index'),
name: '租车订单管理',
authority: 'rentVehicleInfo'
},
{
path: 'tourOrderInfo',
component: _import('order/tourOrderInfo/index'),
name: '旅游订单管理',
authority: 'tourOrderInfo'
},
{
path: 'memberOrderInfo',
component: _import('order/memberOrderInfo/index'),
name: '会员订单管理',
authority: 'memberOrderInfo'
},
{
path: 'orderStatistics',
component: _import('order/orderStatistics/index'),
name: '会员订单统计',
authority: 'orderStatistics'
},
{
path: 'createOrder',
component: _import('order/createOrder/index'),
name: '创建租车订单',
authority: 'createOrder'
},
{
path: 'orderActiveInfo',
component: _import('order/orderActiveInfo/index'),
name: '活动订单管理',
authority: 'orderActiveInfo'
},
]
}, },
{ {
path: 'vehicleUpkeepItem', path: '/purseManage',
component: _import('vehicle/vehicleUpkeepItem/index'), component: Layout,
name: '车辆保养项目管理', name: '钱包管理',
authority: 'vehicleUpkeepItem' icon: 'setting',
authority: 'purseManage',
children: [{
path: 'incomeOverview',
component: _import('purseManage/incomeOverview'),
name: '收益总览',
authority: 'incomeOverview'
},
{
path: 'gainRecord',
component: _import('purseManage/gainRecord'),
name: '收益记录',
authority: 'gainRecord'
},
{
path: 'commissionSettings',
component: _import('purseManage/commissionSettings'),
name: '佣金设置比例',
authority: 'commissionSettings'
},
{
path: 'discountRecord',
component: _import('purseManage/discountRecord'),
name: '提现记录',
authority: 'discountRecord'
},
{
path: 'commissionRecord',
component: _import('purseManage/commissionRecord'),
name: '佣金记录',
authority: 'commissionRecord'
}
]
}, },
{ {
path: 'generalSetting', path: '/userManagement',
component: _import('baseInfo/generalSetting'), component: Layout,
name: '通用设置', name: '用户管理',
authority: 'generalSetting' icon: 'setting',
authority: 'userManagement',
children: [{
path: 'userList',
component: _import('userManagement/userList/index'),
name: '用户列表',
authority: 'userList'
},
{
path: 'memberManagement',
component: _import('userManagement/memberManagement/index'),
name: '会员管理1',
authority: 'memberManagement'
},
{
path: 'memberEnter',
component: _import('userManagement/memberEnter'),
name: '会员录入',
authority: 'memberEnter'
},
{
path: 'imCustomerServiceManger',
component: _import('userManagement/imCustomerServiceManger/cusomterServiceList'),
name: '客服列表',
authority: 'imCustomerServiceManger'
}
]
}, },
{ {
path: 'bannerSetting', path: '/appManagement',
component: _import('baseInfo/bannerSetting'), component: Layout,
name: 'banner设置', name: 'app管理',
authority: 'bannerSetting' icon: 'setting',
} authority: 'appManagement',
] children: [{
}, path: 'appVersion',
{ component: _import('appManagement/appVersion/index'),
path: '/vehicleType', name: 'app版本管理',
component: Layout, authority: 'appVersion'
name: '车型管理', },
icon: 'setting', {
authority: 'vehicleType', path: 'appVersionMark',
children: [ component: _import('appManagement/appVersionMark'),
{ name: '标识管理',
path: 'vehicleTypeList', authority: 'appVersionMark'
component: _import('vehicleType/index'), },
name: '车型列表', {
authority: 'vehicleTypeList' path: 'modalManagement',
}, component: _import('appManagement/modalManagement/index'),
{ name: '首页弹窗管理',
path: 'vehicleTypeLabel', authority: 'modalManagement'
component: _import('vehicleType/vehicleTypeLabel'), },
name: '车型标签设置', {
authority: 'vehicleTypeLabel' path: 'selectedActivities',
}, component: _import('appManagement/selectedActivities/index'),
{ name: '首页精选活动',
path: 'priceList', authority: 'selectedActivities'
component: _import('vehicleType/priceList'), },
name: '租车价格表', {
authority: 'priceList' path: 'pushManagement',
}, component: _import('appManagement/pushManagement/index'),
{ name: '消息推送',
path: 'mockSun', authority: 'pushManagement'
component: _import('vehicleType/mockSun'), }
name: '节日价格', ]
authority: 'mockSun' },
} {
] path: '/summit',
}, component: Layout,
{ name: '峰会管理',
path: '/discoveryModule', icon: 'setting',
component: Layout, authority: 'summit',
name: '发现模块', children: [{
icon: 'setting',
authority: 'discoveryModule',
children: [
{
path: 'clapIndex',
component: _import('discoveryModule/clapIndex'),
name: '拍拍',
authority: 'clapIndex'
},
{
path: 'shortVideo',
component: _import('discoveryModule/shortVideo'),
name: '短视频',
authority: 'shortVideo'
},
{
path: 'questionsAndAnswers',
component: _import('discoveryModule/questionsAndAnswers'),
name: '问答',
authority: 'questionsAndAnswers'
}
]
},
{
path: '/campsiteManage',
component: Layout,
name: '营地管理',
icon: 'setting',
authority: 'campsiteManage',
children: [
{
path: 'campsiteList',
component: _import('campsiteManage/index'),
name: '营地列表',
authority: 'campsiteList'
},
{
path: 'campsiteLabel',
component: _import('campsiteManage/campsiteLabel'),
name: '营地标签设置',
authority: 'campsiteLabel'
}
]
},
{
path: '/vehicle',
component: Layout,
name: '车辆管理',
icon: 'setting',
authority: 'vehicle',
children: [
{
path: 'vehicleInfo',
component: _import('vehicle/vehicleInfo/index'),
name: '车辆信息管理',
authority: 'vehicleInfo'
},
{
path: 'bookRecord',
component: _import('vehicle/bookRecord/index'),
name: '车辆排班管理',
authority: 'bookRecord'
},
{
path: 'bookingManagement',
component: _import('vehicle/smallProgram/bookingManagement'),
name: '小程序车辆申请管理',
authority: 'bookingManagement'
},
{
path: 'vehicleWarningMsg',
component: _import('vehicle/vehicleWarningMsg/index'),
name: '车辆预警消息',
authority: 'vehicleWarningMsg'
},
{
path: 'vehicleDepartureLog',
component: _import('vehicle/vehicleDepartureLog/index'),
name: '车辆出车记录',
authority: 'vehicleDepartureLog'
},
{
path: 'vehicleUpkeepLog',
component: _import('vehicle/vehicleUpkeepLog/index'),
name: '车辆保养记录',
authority: 'vehicleUpkeepLog'
},
{
path: 'vehicleSchedulManage',
component: _import('vehicle/vehicleSchedulManage/index'),
name: '车辆排班表',
authority: 'vehicleSchedulManage'
},
{
path: 'vehicleRecords',
component: _import('vehicle/vehicleSchedulManage/vehicleRecords'),
name: '车辆排班记录',
authority: 'vehicleRecords'
},
{
path: 'vehicleCount',
component: _import('vehicle/vehicleCount/index'),
name: '车辆出行统计',
authority: 'vehicleCount'
}
// {
// path: 'dispatchApply',
// component: _import('vehicle/dispatchApply/index'),
// name: '调度申请管理',
// authority: 'dispatchApply'
// }
]
},
{
path: '/tourManage',
component: Layout,
name: '旅行管理',
icon: 'setting',
authority: 'tourManage',
children: [
{
path: 'tourList',
component: _import('tourManage/index'),
name: '旅行列表',
authority: 'tourList'
},
{
path: 'tourLabel',
component: _import('tourManage/tourLabel'),
name: '旅行标签设置',
authority: 'tourLabel'
}
]
},
{
path: '/order',
component: Layout,
name: '订单管理',
icon: 'setting',
authority: 'order',
children: [
{
path: 'rentVehicleInfo',
component: _import('order/rentVehicleInfo/index'),
name: '租车订单管理',
authority: 'rentVehicleInfo'
},
{
path: 'tourOrderInfo',
component: _import('order/tourOrderInfo/index'),
name: '旅游订单管理',
authority: 'tourOrderInfo'
},
{
path: 'memberOrderInfo',
component: _import('order/memberOrderInfo/index'),
name: '会员订单管理',
authority: 'memberOrderInfo'
},
{
path: 'orderStatistics',
component: _import('order/orderStatistics/index'),
name: '会员订单统计',
authority: 'orderStatistics'
},
{
path: 'createOrder',
component: _import('order/createOrder/index'),
name: '创建租车订单',
authority: 'createOrder'
},
{
path: 'orderActiveInfo',
component: _import('order/orderActiveInfo/index'),
name: '活动订单管理',
authority: 'orderActiveInfo'
},
]
},
{
path: '/purseManage',
component: Layout,
name: '钱包管理',
icon: 'setting',
authority: 'purseManage',
children: [
{
path: 'incomeOverview',
component: _import('purseManage/incomeOverview'),
name: '收益总览',
authority: 'incomeOverview'
},
{
path: 'gainRecord',
component: _import('purseManage/gainRecord'),
name: '收益记录',
authority: 'gainRecord'
},
{
path: 'commissionSettings',
component: _import('purseManage/commissionSettings'),
name: '佣金设置比例',
authority: 'commissionSettings'
},
{
path: 'discountRecord',
component: _import('purseManage/discountRecord'),
name: '提现记录',
authority: 'discountRecord'
},
{
path: 'commissionRecord',
component: _import('purseManage/commissionRecord'),
name: '佣金记录',
authority: 'commissionRecord'
}
]
},
{
path: '/userManagement',
component: Layout,
name: '用户管理',
icon: 'setting',
authority: 'userManagement',
children: [
{
path: 'userList',
component: _import('userManagement/userList/index'),
name: '用户列表',
authority: 'userList'
},
{
path: 'memberManagement',
component: _import('userManagement/memberManagement/index'),
name: '会员管理1',
authority: 'memberManagement'
},
{
path: 'memberEnter',
component: _import('userManagement/memberEnter'),
name: '会员录入',
authority: 'memberEnter'
},
{
path: 'imCustomerServiceManger',
component: _import('userManagement/imCustomerServiceManger/cusomterServiceList'),
name: '客服列表',
authority: 'imCustomerServiceManger'
}
]
},
{
path: '/appManagement',
component: Layout,
name: 'app管理',
icon: 'setting',
authority: 'appManagement',
children: [
{
path: 'appVersion',
component: _import('appManagement/appVersion/index'),
name: 'app版本管理',
authority: 'appVersion'
},
{
path: 'appVersionMark',
component: _import('appManagement/appVersionMark'),
name: '标识管理',
authority: 'appVersionMark'
},
{
path: 'modalManagement',
component: _import('appManagement/modalManagement/index'),
name: '首页弹窗管理',
authority: 'modalManagement'
},
{
path: 'selectedActivities',
component: _import('appManagement/selectedActivities/index'),
name: '首页精选活动',
authority: 'selectedActivities'
},
{
path: 'pushManagement',
component: _import('appManagement/pushManagement/index'),
name: '消息推送',
authority: 'pushManagement'
}
]
},
{
path: '/summit',
component: Layout,
name: '峰会管理',
icon: 'setting',
authority: 'summit',
children: [
{
path: 'index', path: 'index',
component: _import('summit/index'), component: _import('summit/index'),
name: '峰会列表', name: '峰会列表',
authority: 'index' authority: 'index'
} }]
] },
}, {
{ path: '/cunponManagements',
path: '/cunponManagements', component: Layout,
component: Layout, name: '优惠券管理',
name: '优惠券管理', icon: 'setting',
icon: 'setting', authority: 'cunponManagements',
authority: 'cunponManagements', children: [{
children: [ path: 'cunponManagement',
{ component: _import('cunponManagements/cunponManagement'),
path: 'cunponManagement', name: '优惠券管理',
component: _import('cunponManagements/cunponManagement'), authority: 'cunponManagement'
name: '优惠券管理', },
authority: 'cunponManagement' {
}, path: 'conponList',
{ component: _import('cunponManagements/conponList'),
path: 'conponList', name: '优惠券列表',
component: _import('cunponManagements/conponList'), authority: 'conponList'
name: '优惠券列表', }
authority: 'conponList' ]
} },
] {
}, path: '/activityManagement',
{ component: Layout,
path: '/activityManagement', name: '活动管理',
component: Layout, icon: 'setting',
name: '活动管理', authority: 'activityManagement',
icon: 'setting', children: [{
authority: 'activityManagement',
children: [
{
path: 'activityList', path: 'activityList',
component: _import('activityManagement/activityList'), component: _import('activityManagement/activityList'),
name: '活动列表', name: '活动列表',
authority: 'activityList' authority: 'activityList'
} }]
] },
}, {
{ path: '/casual',
path: '/casual', component: Layout,
component: Layout, name: '发布会现金活动',
name: '发布会现金活动', icon: 'setting',
icon: 'setting', authority: 'casual',
authority: 'casual', children: [{
children: [ path: 'index',
{ component: _import('conference/activeData/index'),
path: 'index', name: '活动数据',
component: _import('conference/activeData/index'), authority: 'index'
name: '活动数据', },
authority: 'index' {
}, path: 'prizeLists',
{ component: _import('conference/prizeList/prizeLists'),
path: 'prizeLists', name: '中奖列表',
component: _import('conference/prizeList/prizeLists'), authority: 'prizeLists'
name: '中奖列表', },
authority: 'prizeLists' {
}, path: 'applyList',
{ component: _import('conference/apply/applyList'),
path: 'applyList', name: '报名列表',
component: _import('conference/apply/applyList'), authority: 'applyList'
name: '报名列表', },
authority: 'applyList' {
}, path: 'awardSet',
{ component: _import('conference/award/awardSet'),
path: 'awardSet', name: '奖品设置',
component: _import('conference/award/awardSet'), authority: 'awardSet'
name: '奖品设置', }
authority: 'awardSet' ]
} },
] {
}, path: '/applyManagements',
{ component: Layout,
path: '/applyManagements', name: '申请管理',
component: Layout, icon: 'setting',
name: '申请管理', authority: 'applyManagements',
icon: 'setting', children: [{
authority: 'applyManagements', path: 'carApplyList',
children: [ component: _import('applyManagements/carApplyList'),
{ name: '购房车申请列表',
path: 'carApplyList', authority: 'carApplyList'
component: _import('applyManagements/carApplyList'), },
name: '购房车申请列表', {
authority: 'carApplyList' path: 'Settlement',
} component: _import('applyManagements/Settlement'),
] name: '入驻申请',
}, authority: 'Settlement'
{ }
path: '/xxOfficialWebsite', ]
component: Layout, },
name: '欣新房车官网管理', {
icon: 'setting', path: '/xxOfficialWebsite',
authority: 'xxOfficialWebsite', component: Layout,
children: [ name: '欣新房车官网管理',
{ icon: 'setting',
path: 'activityList', authority: 'xxOfficialWebsite',
component: _import('xxOfficialWebsite/activityList'), children: [{
name: '活动管理', path: 'activityList',
authority: 'activityList' component: _import('xxOfficialWebsite/activityList'),
}, name: '活动管理',
{ authority: 'activityList'
path: 'newsList', },
component: _import('xxOfficialWebsite/newsList'), {
name: '新闻管理', path: 'newsList',
authority: 'newsList' component: _import('xxOfficialWebsite/newsList'),
}, name: '新闻管理',
{ authority: 'newsList'
path: 'bannerList', },
component: _import('xxOfficialWebsite/bannerList'), {
name: 'banner管理', path: 'bannerList',
authority: 'bannerList' component: _import('xxOfficialWebsite/bannerList'),
}, name: 'banner管理',
{ authority: 'bannerList'
path: 'seoList', },
component: _import('xxOfficialWebsite/seoList'), {
name: 'SEO管理', path: 'seoList',
authority: 'seoList' component: _import('xxOfficialWebsite/seoList'),
}, name: 'SEO管理',
{ authority: 'seoList'
path: 'friendLinkList', },
component: _import('xxOfficialWebsite/friendLinkList'), {
name: '友情连接', path: 'friendLinkList',
authority: 'friendLinkList' component: _import('xxOfficialWebsite/friendLinkList'),
} name: '友情连接',
] authority: 'friendLinkList'
}, }
{ ]
path: '/summit', },
component: Layout, {
name: '峰会管理', path: '/summit',
icon: 'setting', component: Layout,
authority: 'summit', name: '峰会管理',
children: [ icon: 'setting',
{ authority: 'summit',
children: [{
path: 'summitList', path: 'summitList',
component: _import('summit/index'), component: _import('summit/index'),
name: '峰会列表', name: '峰会列表',
authority: 'summitList' authority: 'summitList'
} }]
] },
}, {
{ path: '/statistics',
path: '/statistics', component: Layout,
component: Layout, name: '数据统计',
name: '数据统计', icon: 'setting',
icon: 'setting', authority: 'statistics',
authority: 'statistics', children: [{
children: [
{
path: 'orderStatistics', path: 'orderStatistics',
component: _import('statistics/orderStatistics'), component: _import('statistics/orderStatistics'),
name: '订单统计', name: '订单统计',
authority: 'orderStatistics' authority: 'orderStatistics'
} }]
] },
}, {
{ path: '/financial',
path: '/financial', component: Layout,
component: Layout, name: '财务报表',
name: '财务报表', icon: 'setting',
icon: 'setting', authority: 'financial',
authority: 'financial', children: [{
children: [
{
path: 'staffPerformance', path: 'staffPerformance',
component: _import('financial/staffPerformance'), component: _import('financial/staffPerformance'),
name: '员工业绩报表', name: '员工业绩报表',
...@@ -798,28 +782,26 @@ export const asyncRouterMap = [{ ...@@ -798,28 +782,26 @@ export const asyncRouterMap = [{
component: _import('financial/vehicleStatistics'), component: _import('financial/vehicleStatistics'),
name: '车辆统计', name: '车辆统计',
authority: 'vehicleStatistics' authority: 'vehicleStatistics'
} }]
] },
}, {
{ path: '/interior',
path: '/interior', component: Layout,
component: Layout, name: '内部人员管理',
name: '内部人员管理', icon: 'setting',
icon: 'setting', authority: 'interior',
authority: 'interior', children: [{
children: [ path: 'employeesInput',
{ component: _import('interior/employeesInput'),
path: 'employeesInput', name: '员工录入',
component: _import('interior/employeesInput'), authority: 'employeesInput'
name: '员工录入', },
authority: 'employeesInput' {
}, path: 'shareholder',
{ component: _import('interior/shareholder'),
path: 'shareholder', name: '股东列表',
component: _import('interior/shareholder'), authority: 'shareholder'
name: '股东列表', }
authority: 'shareholder' ]
} }
]
}
]; ];
<template>
<div class="app-container calendar-list-container" v-loading.body="showLoadingBody">
<div>
<div class="filter-container" ref="filter-container">
<el-form ref="queryForm" :inline="inline" :model="listQuery" label-width="80px">
<el-row>
<el-form-item label="状态">
<el-select class="filter-item" v-model="listQuery.status" placeholder="请选择">
<el-option :key="undefined" label="无" :value="undefined"></el-option>
<el-option label="已读" value="1"></el-option>
<el-option label="未读" value="0"></el-option>
</el-select>
</el-form-item>
<el-form-item label="类型">
<el-select class="filter-item" v-model="listQuery.type" placeholder="请选择">
<el-option :key="undefined" label="无" :value="undefined"></el-option>
<el-option label="公司入驻" value="1"></el-option>
<el-option label="个人房车入驻" value="2"></el-option>
</el-select>
</el-form-item>
<el-form-item label="时间筛选">
<el-col :span="11">
<el-date-picker
type="datetime"
placeholder="选择时间"
v-model="listQuery.startTime"
style="width: 100%;"
></el-date-picker>
</el-col>
<el-col class="line" :span="1"></el-col>
<el-col :span="11">
<el-date-picker
type="datetime"
placeholder="选择时间"
v-model="listQuery.endTime"
style="width: 100%;"
></el-date-picker>
</el-col>
</el-form-item>
<el-button
class="filter-item"
type="primary"
v-waves
icon="search"
@click="handleFilter"
>搜索</el-button>
</el-row>
</el-form>
</div>
<el-table :key="tableKey" :data="list" border fit highlight-current-row style="width: 100%;">
<el-table-column align="center" label="类型">
<template scope="{row}">
<span v-if="row.type==1">公司入驻</span>
<span v-else>个人房车入驻</span>
</template>
</el-table-column>
<el-table-column align="center" label="联系人" prop="contact"></el-table-column>
<el-table-column align="center" label="联系人手机" prop="moblie"></el-table-column>
<el-table-column align="center" label="公司名称">
<template scope="{row}">
<span v-if="row.name">{{row.name}}</span>
<span v-else>/</span>
</template>
</el-table-column>
<el-table-column align="center" label="提交时间" prop="crtTimeStr"></el-table-column>
<el-table-column align="center" label="状态">
<template scope="{row}">
<span v-if="row.status==0">未读</span>
<span v-else>已读</span>
</template>
</el-table-column>
<el-table-column align="center" label="操作">
<template scope="{row}">
<span v-if="row.status==0">
<el-button type="text" @click="set_to_readed(row)">设为已读</el-button>
</span>
<span v-else>/</span>
</template>
</el-table-column>
</el-table>
<div v-show="!listLoading" class="pagination-container">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="listQuery.page"
:page-sizes="[10,20,30,40,50]"
:page-size="listQuery.limit"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
></el-pagination>
</div>
</div>
</div>
</template>
<script>
import { formatDate } from "utils/dateFormattor";
import {
toEast8Date,
deepCopyDate,
newEast8Date,
convertDate2Str,
timestamp2Date,
} from "utils/dateUtils";
import { mapGetters } from "vuex";
import { settlement_list, set_to_read } from "api/applyManagements";
import { getAllZone } from "api/base_info/constant/";
import Element1 from "../admin/menu/components/element";
import ElRow from "element-ui/packages/row/src/row";
import ElCol from "element-ui/packages/col/src/col";
export default {
name: "carApplyList",
components: {
ElCol,
ElRow,
Element1,
},
data() {
return {
starTimeStr: "",
endTimeStr: "",
newPeopelpickerOptionsEnd: {
disabledDate: (time) => {
const beginDateVal = new Date(this.starTimeStr).getTime();
if (beginDateVal) {
return time.getTime() < beginDateVal + 8.64e7;
}
},
},
statusList: [
{
name: "未处理",
id: "0",
},
{
name: "已处理",
id: "1",
},
],
BASE_API: process.env.BASE_API,
showLoadingBody: false,
list: null,
total: null,
listLoading: true,
listQuery: {
page: 1,
limit: 10,
startTime: undefined,
endTime: undefined,
status: undefined,
type: undefined,
},
inline: true,
tableKey: 0,
baranchQuery: {
zoneId: null,
},
allBranchCompany: [],
app_btn_buy_vehicle_status_update: false,
};
},
created() {
this.getList();
},
computed: {
...mapGetters(["elements"]),
},
methods: {
/**
* 获取列表
* */
getList() {
this.listLoading = true;
let start = "";
let end = "";
if (this.listQuery.startTime) {
start = Date.parse(this.listQuery.startTime);
}
if (this.listQuery.endTime) {
end = Date.parse(this.listQuery.endTime);
}
let data = {
page: this.listQuery.page,
limit: this.listQuery.limit,
startTime: start,
endTime: end,
type: this.listQuery.type,
status: this.listQuery.status,
};
settlement_list(data).then((response) => {
let totalCountRs = undefined;
let listRs = undefined;
if (
!this.$utils.isEmpty(response.data.data) &&
this.$utils.isInteger(response.data.totalCount)
) {
listRs = response.data.data;
totalCountRs = response.data.totalCount;
listRs.map(function (item) {
item.crtTimeStr = timestamp2Date(item.crtTime);
});
}
this.listLoading = false;
this.list = listRs;
this.total = totalCountRs;
});
},
handleFilter() {
this.listQuery.page = 1;
this.$refs.queryForm.validate((valid) => {
if (valid) {
this.getList();
} else {
return false;
}
});
},
handleSizeChange(val) {
this.listQuery.limit = val;
this.getList();
},
handleCurrentChange(val) {
this.listQuery.page = val;
this.getList();
},
set_to_readed(row) {
console.log(row);
this.$confirm("确定设为已读?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
set_to_read({ id: row.id, status: 1 }).then((response) => {
if (response.status == 200) {
this.$notify({
title: "成功",
message: "处理成功",
type: "success",
duration: 2000,
});
this.getList();
} else {
this.$notify({
title: "失败",
message: response.message,
type: "error",
duration: 2000,
});
}
});
});
},
},
};
</script>
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