Commit 1d92f1fc authored by rencs's avatar rencs

Merge branch 'dev-td' into 'master-td'

Dev td

See merge request !5
parents 5acda4ef a83a08af
...@@ -4,6 +4,30 @@ export function page(query) { ...@@ -4,6 +4,30 @@ export function page(query) {
return fetch({ return fetch({
url: '/api/order/order/activity/getAll', url: '/api/order/order/activity/getAll',
method: 'get', method: 'get',
params:query params: query
}); });
} }
export function page2(query) {
return fetch({
url: '/api/order/tainde/orderActivity/selectList',
method: 'get',
params: query
});
}
export function activeAmountTotal(query) {
return fetch({
url: '/api/order/tainde/orderActivity/selectListStatic',
method: 'get',
params: query
});
}
export function excelExport(query) {
return fetch({
url: '/api/order/tainde/orderActivity/export',
method: 'post',
data: query,
responseType: 'blob'
})
}
import Vue from "vue"; import Vue from 'vue';
import Router from "vue-router"; import Router from 'vue-router';
const _import = require("./_import_" + process.env.NODE_ENV); const _import = require('./_import_' + process.env.NODE_ENV);
// in development env not use Lazy Loading,because Lazy Loading large page will cause webpack hot update too slow.so only in production use Lazy Loading // in development env not use Lazy Loading,because Lazy Loading large page will cause webpack hot update too slow.so only in production use Lazy Loading
Vue.use(Router); Vue.use(Router);
/* layout */ /* layout */
import Layout from "../views/layout/Layout"; import Layout from '../views/layout/Layout';
/** /**
* icon : the icon show in the sidebar * icon : the icon show in the sidebar
...@@ -16,74 +16,73 @@ import Layout from "../views/layout/Layout"; ...@@ -16,74 +16,73 @@ import Layout from "../views/layout/Layout";
* noDropdown : if `noDropdown:true` will has no submenu * noDropdown : if `noDropdown:true` will has no submenu
* 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: '/',
...@@ -98,855 +97,823 @@ export const constantRouterMap = [ ...@@ -98,855 +97,823 @@ 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({
// mode: 'history', //后端支持可开 // mode: 'history', //后端支持可开
scrollBehavior: () => ({ scrollBehavior: () => ({
y: 0, y: 0
}), }),
routes: constantRouterMap, routes: constantRouterMap
}); });
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',
path: "appUserManager", icon: 'fa-user',
icon: "fa-user", component: _import('admin/appUser/index'),
component: _import("admin/appUser/index"), name: 'App用户管理',
name: "App用户管理", authority: 'appUserManager'
authority: "appUserManager", },
}, {
{ path: 'menuManager',
path: "menuManager", icon: 'category',
icon: "category", component: _import('admin/menu/index'),
component: _import("admin/menu/index"), name: '菜单管理',
name: "菜单管理", authority: 'menuManager'
authority: "menuManager", },
}, {
{ path: 'groupManager',
path: "groupManager", icon: 'group_fill',
icon: "group_fill", component: _import('admin/group/index'),
component: _import("admin/group/index"), name: '角色权限管理',
name: "角色权限管理", authority: 'groupManager'
authority: "groupManager", },
}, {
{ path: 'groupTypeManager',
path: "groupTypeManager", icon: 'fa-users',
icon: "fa-users", component: _import('admin/groupType/index'),
component: _import("admin/groupType/index"), name: '角色类型管理',
name: "角色类型管理", authority: 'groupTypeManager'
authority: "groupTypeManager", },
}, {
{ path: 'gateLogManager',
path: "gateLogManager", icon: 'viewlist',
icon: "viewlist", component: _import('admin/gateLog/index'),
component: _import("admin/gateLog/index"), name: '操作日志管理',
name: "操作日志管理", authority: 'gateLogManager'
authority: "gateLogManager", }
}, ]
],
}, },
{ {
path: "/authManager", path: '/authManager',
component: Layout, component: Layout,
name: "基础配置管理", name: '基础配置管理',
icon: "setting", icon: 'setting',
authority: "authManager", authority: 'authManager',
children: [ children: [{
{ path: 'serviceManager',
path: "serviceManager", component: _import('auth/service/index'),
component: _import("auth/service/index"), name: '用户管理',
name: "用户管理", authority: 'serviceManager'
authority: "serviceManager", }]
}, },
], {
}, path: '/memberManager',
{
path: "/memberManager",
component: Layout, component: Layout,
name: "会员管理", name: '会员管理',
icon: "fn-user", icon: 'fn-user',
authority: "memberManager", authority: 'memberManager',
children: [ children: [{
{ path: 'memberInfo',
path: "memberInfo", component: _import('member/info/index'),
component: _import("member/info/index"), authority: 'memberInfo'
authority: "memberInfo", }]
},
],
}, },
{ {
path: "/monitorManager", path: '/monitorManager',
component: Layout, component: Layout,
name: "监控模块管理", name: '监控模块管理',
icon: "setting", icon: 'setting',
authority: "monitorManager", authority: 'monitorManager',
children: [ children: [{
{ path: 'serviceEurekaManager',
path: "serviceEurekaManager", component: _import('monitor/eureka/index'),
component: _import("monitor/eureka/index"), name: 'Eureka注册中心',
name: "Eureka注册中心", authority: 'serviceEurekaManager'
authority: "serviceEurekaManager", },
}, {
{ path: 'serviceMonitorManager',
path: "serviceMonitorManager", component: _import('monitor/service/index'),
component: _import("monitor/service/index"), name: '服务状态监控',
name: "服务状态监控", authority: 'serviceMonitorManager'
authority: "serviceMonitorManager", },
}, {
{ path: 'serviceZipkinManager',
path: "serviceZipkinManager", component: _import('monitor/zipkin/index'),
component: _import("monitor/zipkin/index"), name: '服务状态监控',
name: "服务状态监控", authority: 'serviceZipkinManager'
authority: "serviceZipkinManager", }
}, ]
],
}, },
{ {
path: "/baseInfo", path: '/baseInfo',
component: Layout, component: Layout,
name: "基础信息", name: '基础信息',
icon: "fa-user", icon: 'fa-user',
authority: "baseInfo", authority: 'baseInfo',
children: [ children: [{
{ path: 'branchCompany',
path: "branchCompany", component: _import('baseInfo/branchCompany/index'),
component: _import("baseInfo/branchCompany/index"), name: '分公司管理',
name: "分公司管理", authority: 'branchCompany'
authority: "branchCompany",
}, },
{ {
path: "campsite", path: 'campsite',
component: _import("baseInfo/campsite/index"), component: _import('baseInfo/campsite/index'),
name: "营地管理", name: '营地管理',
authority: "campsite", authority: 'campsite'
}, },
{ {
path: "/baseInfo/accompanyingItem", path: '/baseInfo/accompanyingItem',
component: _import("vehicle/accompanyingItem/index"), component: _import('vehicle/accompanyingItem/index'),
name: "随行物品管理", name: '随行物品管理',
authority: "accompanyingItem", authority: 'accompanyingItem'
}, },
{ {
path: "branchCompany/stock", path: 'branchCompany/stock',
component: _import("branchCompany/stock/index"), component: _import('branchCompany/stock/index'),
name: "分公司股权信息管理", name: '分公司股权信息管理',
authority: "branchCompany/stock", authority: 'branchCompany/stock'
}, },
{ {
path: "branchCompany/stockApply", path: 'branchCompany/stockApply',
component: _import("branchCompany/stockApply/index"), component: _import('branchCompany/stockApply/index'),
name: "分公司股权信息管理", name: '分公司股权信息管理',
authority: "branchCompany/stockApply", authority: 'branchCompany/stockApply'
}, },
{ {
path: "vehicleUpkeepItem", path: 'vehicleUpkeepItem',
component: _import("vehicle/vehicleUpkeepItem/index"), component: _import('vehicle/vehicleUpkeepItem/index'),
name: "车辆保养项目管理", name: '车辆保养项目管理',
authority: "vehicleUpkeepItem", authority: 'vehicleUpkeepItem'
}, },
{ {
path: "generalSetting", path: 'generalSetting',
component: _import("baseInfo/generalSetting"), component: _import('baseInfo/generalSetting'),
name: "通用设置", name: '通用设置',
authority: "generalSetting", authority: 'generalSetting'
}, }
], ]
}, },
{ {
path: "/vehicleType", path: '/vehicleType',
component: Layout, component: Layout,
name: "车型管理", name: '车型管理',
icon: "setting", icon: 'setting',
authority: "vehicleType", authority: 'vehicleType',
children: [ children: [{
{ path: 'vehicleTypeList',
path: "vehicleTypeList", component: _import('vehicleType/index'),
component: _import("vehicleType/index"), name: '车型列表',
name: "车型列表", authority: 'vehicleTypeList'
authority: "vehicleTypeList",
}, },
{ {
path: "vehicleTypeLabel", path: 'vehicleTypeLabel',
component: _import("vehicleType/vehicleTypeLabel"), component: _import('vehicleType/vehicleTypeLabel'),
name: "车型标签设置", name: '车型标签设置',
authority: "vehicleTypeLabel", authority: 'vehicleTypeLabel'
}, },
{ {
path: "priceList", path: 'priceList',
component: _import("vehicleType/priceList"), component: _import('vehicleType/priceList'),
name: "租车价格表", name: '租车价格表',
authority: "priceList", authority: 'priceList'
}, },
{ {
path: "mockSun", path: 'mockSun',
component: _import("vehicleType/mockSun"), component: _import('vehicleType/mockSun'),
name: "节日价格", name: '节日价格',
authority: "mockSun", authority: 'mockSun'
}, }
], ]
}, },
{ {
path: "/discoveryModule", path: '/discoveryModule',
component: Layout, component: Layout,
name: "发现模块", name: '发现模块',
icon: "setting", icon: 'setting',
authority: "discoveryModule", authority: 'discoveryModule',
children: [ children: [{
{ path: 'clapIndex',
path: "clapIndex", component: _import('discoveryModule/clapIndex'),
component: _import("discoveryModule/clapIndex"), name: '拍拍',
name: "拍拍", authority: 'clapIndex'
authority: "clapIndex", },
}, {
{ path: 'shortVideo',
path: "shortVideo", component: _import('discoveryModule/shortVideo'),
component: _import("discoveryModule/shortVideo"), name: '短视频',
name: "短视频", authority: 'shortVideo'
authority: "shortVideo", },
}, {
{ path: 'questionsAndAnswers',
path: "questionsAndAnswers", component: _import('discoveryModule/questionsAndAnswers'),
component: _import("discoveryModule/questionsAndAnswers"), name: '问答',
name: "问答", authority: 'questionsAndAnswers'
authority: "questionsAndAnswers", }
}, ]
],
}, },
{ {
path: "/campsiteManage", path: '/campsiteManage',
component: Layout, component: Layout,
name: "营地管理", name: '营地管理',
icon: "setting", icon: 'setting',
authority: "campsiteManage", authority: 'campsiteManage',
children: [ children: [{
{ path: 'campsiteList',
path: "campsiteList", component: _import('campsiteManage/index'),
component: _import("campsiteManage/index"), name: '营地列表',
name: "营地列表", authority: 'campsiteList'
authority: "campsiteList", },
}, {
{ path: 'campsiteLabel',
path: "campsiteLabel", component: _import('campsiteManage/campsiteLabel'),
component: _import("campsiteManage/campsiteLabel"), name: '营地标签设置',
name: "营地标签设置", authority: 'campsiteLabel'
authority: "campsiteLabel", }
}, ]
],
}, },
{ {
path: "/revenue", path: '/revenue',
component: Layout, component: Layout,
name: "营地管理", name: '营地管理',
icon: "setting", icon: 'setting',
authority: "revenue", authority: 'revenue',
children: [ children: [{
{ path: 'revenue_sum',
path: "revenue_sum", component: _import('revenue/revenue_sum'),
component: _import("revenue/revenue_sum"), name: '营收概况',
name: "营收概况", authority: 'revenue_sum'
authority: "revenue_sum", },
}, {
{ path: 'revenue_withdraw',
path: "revenue_withdraw", component: _import('revenue/revenue_withdraw'),
component: _import("revenue/revenue_withdraw"), name: '提现列表',
name: "提现列表", authority: 'revenue_withdraw'
authority: "revenue_withdraw", }
}, ]
],
}, },
{ {
path: "/vehicle", path: '/vehicle',
component: Layout, component: Layout,
name: "车辆管理", name: '车辆管理',
icon: "setting", icon: 'setting',
authority: "vehicle", authority: 'vehicle',
children: [ children: [{
{ path: 'vehicleInfo',
path: "vehicleInfo", component: _import('vehicle/vehicleInfo/index'),
component: _import("vehicle/vehicleInfo/index"), name: '车辆信息管理',
name: "车辆信息管理", authority: 'vehicleInfo'
authority: "vehicleInfo",
}, },
{ {
path: "vehiclePrice", path: 'vehiclePrice',
component: _import("vehicle/vehiclePrice"), component: _import('vehicle/vehiclePrice'),
name: "车辆价格管理", name: '车辆价格管理',
authority: "vehiclePrice", authority: 'vehiclePrice'
}, },
{ {
path: "bookRecord", path: 'bookRecord',
component: _import("vehicle/bookRecord/index"), component: _import('vehicle/bookRecord/index'),
name: "车辆排班管理", name: '车辆排班管理',
authority: "bookRecord", authority: 'bookRecord'
}, },
{ {
path: "bookingManagement", path: 'bookingManagement',
component: _import("vehicle/smallProgram/bookingManagement"), component: _import('vehicle/smallProgram/bookingManagement'),
name: "小程序车辆申请管理", name: '小程序车辆申请管理',
authority: "bookingManagement", authority: 'bookingManagement'
}, },
{ {
path: "vehicleWarningMsg", path: 'vehicleWarningMsg',
component: _import("vehicle/vehicleWarningMsg/index"), component: _import('vehicle/vehicleWarningMsg/index'),
name: "车辆预警消息", name: '车辆预警消息',
authority: "vehicleWarningMsg", authority: 'vehicleWarningMsg'
}, },
{ {
path: "vehicleDepartureLog", path: 'vehicleDepartureLog',
component: _import("vehicle/vehicleDepartureLog/index"), component: _import('vehicle/vehicleDepartureLog/index'),
name: "车辆出车记录", name: '车辆出车记录',
authority: "vehicleDepartureLog", authority: 'vehicleDepartureLog'
}, },
{ {
path: "vehicleUpkeepLog", path: 'vehicleUpkeepLog',
component: _import("vehicle/vehicleUpkeepLog/index"), component: _import('vehicle/vehicleUpkeepLog/index'),
name: "车辆保养记录", name: '车辆保养记录',
authority: "vehicleUpkeepLog", authority: 'vehicleUpkeepLog'
}, },
{ {
path: "vehicleSchedulManage", path: 'vehicleSchedulManage',
component: _import("vehicle/vehicleSchedulManage/index"), component: _import('vehicle/vehicleSchedulManage/index'),
name: "车辆排班表", name: '车辆排班表',
authority: "vehicleSchedulManage", authority: 'vehicleSchedulManage'
}, },
{ {
path: "vehicleRecords", path: 'vehicleRecords',
component: _import("vehicle/vehicleSchedulManage/vehicleRecords"), component: _import('vehicle/vehicleSchedulManage/vehicleRecords'),
name: "车辆排班记录", name: '车辆排班记录',
authority: "vehicleRecords", authority: 'vehicleRecords'
}, },
{ {
path: "vehicleCount", path: 'vehicleCount',
component: _import("vehicle/vehicleCount/index"), component: _import('vehicle/vehicleCount/index'),
name: "车辆出行统计", name: '车辆出行统计',
authority: "vehicleCount", authority: 'vehicleCount'
}, },
{ {
path: "vehicleTypeList", path: 'vehicleTypeList',
component: _import("vehicleType/index"), component: _import('vehicleType/index'),
name: "车型列表", name: '车型列表',
authority: "vehicleTypeList", authority: 'vehicleTypeList'
}, },
{ {
path: "vehicleTypeLabel", path: 'vehicleTypeLabel',
component: _import("vehicleType/vehicleTypeLabel"), component: _import('vehicleType/vehicleTypeLabel'),
name: "车型标签设置", name: '车型标签设置',
authority: "vehicleTypeLabel", authority: 'vehicleTypeLabel'
}, },
{ {
path: "accompanyingItem", path: 'accompanyingItem',
component: _import("vehicle/accompanyingItem/index"), component: _import('vehicle/accompanyingItem/index'),
name: "随行物品管理", name: '随行物品管理',
authority: "accompanyingItem", authority: 'accompanyingItem'
}, }
// { // {
// path: 'dispatchApply', // path: 'dispatchApply',
// component: _import('vehicle/dispatchApply/index'), // component: _import('vehicle/dispatchApply/index'),
// name: '调度申请管理', // name: '调度申请管理',
// authority: 'dispatchApply' // authority: 'dispatchApply'
// } // }
], ]
}, },
{ {
path: "/tourManage", path: '/tourManage',
component: Layout, component: Layout,
name: "旅行管理", name: '旅行管理',
icon: "setting", icon: 'setting',
authority: "tourManage", authority: 'tourManage',
children: [ children: [{
{ path: 'tourList',
path: "tourList", component: _import('tourManage/index'),
component: _import("tourManage/index"), name: '旅行列表',
name: "旅行列表", authority: 'tourList'
authority: "tourList", },
}, {
{ path: 'tourLabel',
path: "tourLabel", component: _import('tourManage/tourLabel'),
component: _import("tourManage/tourLabel"), name: '旅行标签设置',
name: "旅行标签设置", authority: 'tourLabel'
authority: "tourLabel", }
}, ]
],
}, },
{ {
path: "/order", path: '/order',
component: Layout, component: Layout,
name: "订单管理", name: '订单管理',
icon: "setting", icon: 'setting',
authority: "order", authority: 'order',
children: [ children: [{
{ path: 'rentVehicleInfo',
path: "rentVehicleInfo", component: _import('order/rentVehicleInfo/index'),
component: _import("order/rentVehicleInfo/index"), name: '租车订单管理',
name: "租车订单管理", authority: 'rentVehicleInfo'
authority: "rentVehicleInfo",
}, },
{ {
path: "tourOrderInfo", path: 'tourOrderInfo',
component: _import("order/tourOrderInfo/index"), component: _import('order/tourOrderInfo/index'),
name: "旅游订单管理", name: '旅游订单管理',
authority: "tourOrderInfo", authority: 'tourOrderInfo'
}, },
{ {
path: "memberOrderInfo", path: 'memberOrderInfo',
component: _import("order/memberOrderInfo/index"), component: _import('order/memberOrderInfo/index'),
name: "会员订单管理", name: '会员订单管理',
authority: "memberOrderInfo", authority: 'memberOrderInfo'
}, },
{ {
path: "orderStatistics", path: 'orderStatistics',
component: _import("order/orderStatistics/index"), component: _import('order/orderStatistics/index'),
name: "会员订单统计", name: '会员订单统计',
authority: "orderStatistics", authority: 'orderStatistics'
}, },
{ {
path: "createOrder", path: 'createOrder',
component: _import("order/createOrder/index"), component: _import('order/createOrder/index'),
name: "创建租车订单", name: '创建租车订单',
authority: "createOrder", authority: 'createOrder'
}, },
{ {
path: "orderActiveInfo", path: 'orderActiveInfo',
component: _import("order/orderActiveInfo/index"), component: _import('order/orderActiveInfo/index'),
name: "活动订单管理", name: '活动订单管理',
authority: "orderActiveInfo", authority: 'orderActiveInfo'
}, },
], {
path: 'activityOrder',
component: _import('order/activityOrder/index'),
name: '活动订单管理',
authority: 'activityOrder'
}
]
}, },
{ {
path: "/purseManage", path: '/purseManage',
component: Layout, component: Layout,
name: "钱包管理", name: '钱包管理',
icon: "setting", icon: 'setting',
authority: "purseManage", authority: 'purseManage',
children: [ children: [{
{ path: 'incomeOverview',
path: "incomeOverview", component: _import('purseManage/incomeOverview'),
component: _import("purseManage/incomeOverview"), name: '收益总览',
name: "收益总览", authority: 'incomeOverview'
authority: "incomeOverview",
}, },
{ {
path: "gainRecord", path: 'gainRecord',
component: _import("purseManage/gainRecord"), component: _import('purseManage/gainRecord'),
name: "收益记录", name: '收益记录',
authority: "gainRecord", authority: 'gainRecord'
}, },
{ {
path: "commissionSettings", path: 'commissionSettings',
component: _import("purseManage/commissionSettings"), component: _import('purseManage/commissionSettings'),
name: "佣金设置比例", name: '佣金设置比例',
authority: "commissionSettings", authority: 'commissionSettings'
}, },
{ {
path: "discountRecord", path: 'discountRecord',
component: _import("purseManage/discountRecord"), component: _import('purseManage/discountRecord'),
name: "提现记录", name: '提现记录',
authority: "discountRecord", authority: 'discountRecord'
}, },
{ {
path: "commissionRecord", path: 'commissionRecord',
component: _import("purseManage/commissionRecord"), component: _import('purseManage/commissionRecord'),
name: "佣金记录", name: '佣金记录',
authority: "commissionRecord", authority: 'commissionRecord'
}, }
], ]
}, },
{ {
path: "/userManagement", path: '/userManagement',
component: Layout, component: Layout,
name: "用户管理", name: '用户管理',
icon: "setting", icon: 'setting',
authority: "userManagement", authority: 'userManagement',
children: [ children: [{
{ path: 'userList',
path: "userList", component: _import('userManagement/userList/index'),
component: _import("userManagement/userList/index"), name: '用户列表',
name: "用户列表", authority: 'userList'
authority: "userList",
}, },
{ {
path: "memberManagement", path: 'memberManagement',
component: _import("userManagement/memberManagement/index"), component: _import('userManagement/memberManagement/index'),
name: "会员管理1", name: '会员管理1',
authority: "memberManagement", authority: 'memberManagement'
}, },
{ {
path: "memberEnter", path: 'memberEnter',
component: _import("userManagement/memberEnter"), component: _import('userManagement/memberEnter'),
name: "会员录入", name: '会员录入',
authority: "memberEnter", authority: 'memberEnter'
}, },
{ {
path: "imCustomerServiceManger", path: 'imCustomerServiceManger',
component: _import( component: _import(
"userManagement/imCustomerServiceManger/cusomterServiceList" 'userManagement/imCustomerServiceManger/cusomterServiceList'
), ),
name: "客服列表", name: '客服列表',
authority: "imCustomerServiceManger", authority: 'imCustomerServiceManger'
}, }
], ]
}, },
{ {
path: "/appManagement", path: '/appManagement',
component: Layout, component: Layout,
name: "app管理", name: 'app管理',
icon: "setting", icon: 'setting',
authority: "appManagement", authority: 'appManagement',
children: [ children: [{
{ path: 'bannerSetting',
path: "bannerSetting", component: _import('baseInfo/bannerSetting'),
component: _import("baseInfo/bannerSetting"), name: 'banner设置',
name: "banner设置", authority: 'bannerSetting'
authority: "bannerSetting",
}, },
{ {
path: "appVersion", path: 'appVersion',
component: _import("appManagement/appVersion/index"), component: _import('appManagement/appVersion/index'),
name: "app版本管理", name: 'app版本管理',
authority: "appVersion", authority: 'appVersion'
}, },
{ {
path: "appVersionMark", path: 'appVersionMark',
component: _import("appManagement/appVersionMark"), component: _import('appManagement/appVersionMark'),
name: "标识管理", name: '标识管理',
authority: "appVersionMark", authority: 'appVersionMark'
}, },
{ {
path: "modalManagement", path: 'modalManagement',
component: _import("appManagement/modalManagement/index"), component: _import('appManagement/modalManagement/index'),
name: "首页弹窗管理", name: '首页弹窗管理',
authority: "modalManagement", authority: 'modalManagement'
}, },
{ {
path: "selectedActivities", path: 'selectedActivities',
component: _import("appManagement/selectedActivities/index"), component: _import('appManagement/selectedActivities/index'),
name: "首页精选活动", name: '首页精选活动',
authority: "selectedActivities", authority: 'selectedActivities'
}, },
{ {
path: "pushManagement", path: 'pushManagement',
component: _import("appManagement/pushManagement/index"), component: _import('appManagement/pushManagement/index'),
name: "消息推送", name: '消息推送',
authority: "pushManagement", authority: 'pushManagement'
}, },
{ {
path: "generalSetting", path: 'generalSetting',
component: _import("baseInfo/generalSetting"), component: _import('baseInfo/generalSetting'),
name: "通用设置", name: '通用设置',
authority: "generalSetting", authority: 'generalSetting'
}, }
], ]
}, },
{ {
path: "/financialReports", path: '/financialReports',
component: Layout, component: Layout,
name: "财务报表", name: '财务报表',
icon: "setting", icon: 'setting',
authority: "financialReports", authority: 'financialReports',
children: [ children: [{
{ path: 'dividendStatistics',
path: "dividendStatistics", component: _import('financialReports/dividendStatistics'),
component: _import("financialReports/dividendStatistics"), name: '创客收益',
name: "创客收益", authority: 'dividendStatistics'
authority: "dividendStatistics", },
}, {
{ path: 'revenueStatistics',
path: "revenueStatistics", component: _import('financialReports/revenueStatistics'),
component: _import("financialReports/revenueStatistics"), name: '创客收益统计',
name: "创客收益统计", authority: 'revenueStatistics'
authority: "revenueStatistics",
} }
], ]
}, },
{ {
path: "/summit", path: '/summit',
component: Layout, component: Layout,
name: "峰会管理", name: '峰会管理',
icon: "setting", icon: 'setting',
authority: "summit", authority: 'summit',
children: [ 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',
path: "cunponManagement", component: _import('cunponManagements/cunponManagement'),
component: _import("cunponManagements/cunponManagement"), name: '优惠券管理',
name: "优惠券管理", authority: 'cunponManagement'
authority: "cunponManagement", },
}, {
{ path: 'conponList',
path: "conponList", component: _import('cunponManagements/conponList'),
component: _import("cunponManagements/conponList"), name: '优惠券列表',
name: "优惠券列表", authority: 'conponList'
authority: "conponList", }
}, ]
],
}, },
{ {
path: "/activityManagement", path: '/activityManagement',
component: Layout, component: Layout,
name: "活动管理", name: '活动管理',
icon: "setting", icon: 'setting',
authority: "activityManagement", authority: 'activityManagement',
children: [ children: [{
{ path: 'activityList',
path: "activityList", component: _import('activityManagement/activityList'),
component: _import("activityManagement/activityList"), name: '活动列表',
name: "活动列表", authority: 'activityList'
authority: "activityList", }]
}, },
], {
}, path: '/company',
{
path: "/company",
component: Layout, component: Layout,
name: "公司/门店", name: '公司/门店',
icon: "setting", icon: 'setting',
authority: "company", authority: 'company',
children: [ children: [{
{ path: 'companyManage',
path: "companyManage", component: _import('company/companyManage'),
component: _import("company/companyManage"), name: '公司管理',
name: "公司管理", authority: 'companyManage'
authority: "companyManage", },
}, {
{ path: 'storeManage',
path: "storeManage", component: _import('company/storeManage'),
component: _import("company/storeManage"), name: '门店管理',
name: "门店管理", authority: 'storeManage'
authority: "storeManage", }
}, ]
],
}, },
{ {
path: "/casual", path: '/casual',
component: Layout, component: Layout,
name: "发布会现金活动", name: '发布会现金活动',
icon: "setting", icon: 'setting',
authority: "casual", authority: 'casual',
children: [ children: [{
{ path: 'index',
path: "index", component: _import('conference/activeData/index'),
component: _import("conference/activeData/index"), name: '活动数据',
name: "活动数据", authority: 'index'
authority: "index",
}, },
{ {
path: "prizeLists", path: 'prizeLists',
component: _import("conference/prizeList/prizeLists"), component: _import('conference/prizeList/prizeLists'),
name: "中奖列表", name: '中奖列表',
authority: "prizeLists", authority: 'prizeLists'
}, },
{ {
path: "applyList", path: 'applyList',
component: _import("conference/apply/applyList"), component: _import('conference/apply/applyList'),
name: "报名列表", name: '报名列表',
authority: "applyList", authority: 'applyList'
}, },
{ {
path: "awardSet", path: 'awardSet',
component: _import("conference/award/awardSet"), component: _import('conference/award/awardSet'),
name: "奖品设置", name: '奖品设置',
authority: "awardSet", authority: 'awardSet'
}, }
], ]
}, },
{ {
path: "/applyManagements", path: '/applyManagements',
component: Layout, component: Layout,
name: "申请管理", name: '申请管理',
icon: "setting", icon: 'setting',
authority: "applyManagements", authority: 'applyManagements',
children: [ children: [{
{ path: 'carApplyList',
path: "carApplyList", component: _import('applyManagements/carApplyList'),
component: _import("applyManagements/carApplyList"), name: '购房车申请列表',
name: "购房车申请列表", authority: 'carApplyList'
authority: "carApplyList", },
}, {
{ path: 'Settlement',
path: "Settlement", component: _import('applyManagements/Settlement'),
component: _import("applyManagements/Settlement"), name: '入驻申请',
name: "入驻申请", authority: 'Settlement'
authority: "Settlement", }
}, ]
],
}, },
{ {
path: "/xxOfficialWebsite", path: '/xxOfficialWebsite',
component: Layout, component: Layout,
name: "天德房车官网管理", name: '天德房车官网管理',
icon: "setting", icon: 'setting',
authority: "xxOfficialWebsite", authority: 'xxOfficialWebsite',
children: [ children: [{
{ path: 'activityList',
path: "activityList", component: _import('xxOfficialWebsite/activityList'),
component: _import("xxOfficialWebsite/activityList"), name: '活动管理',
name: "活动管理", authority: 'activityList'
authority: "activityList",
}, },
{ {
path: "newsList", path: 'newsList',
component: _import("xxOfficialWebsite/newsList"), component: _import('xxOfficialWebsite/newsList'),
name: "新闻管理", name: '新闻管理',
authority: "newsList", authority: 'newsList'
}, },
{ {
path: "bannerList", path: 'bannerList',
component: _import("xxOfficialWebsite/bannerList"), component: _import('xxOfficialWebsite/bannerList'),
name: "banner管理", name: 'banner管理',
authority: "bannerList", authority: 'bannerList'
}, },
{ {
path: "seoList", path: 'seoList',
component: _import("xxOfficialWebsite/seoList"), component: _import('xxOfficialWebsite/seoList'),
name: "SEO管理", name: 'SEO管理',
authority: "seoList", authority: 'seoList'
}, },
{ {
path: "friendLinkList", path: 'friendLinkList',
component: _import("xxOfficialWebsite/friendLinkList"), component: _import('xxOfficialWebsite/friendLinkList'),
name: "友情连接", name: '友情连接',
authority: "friendLinkList", authority: 'friendLinkList'
}, }
], ]
}, },
{ {
path: "/summit", path: '/summit',
component: Layout, component: Layout,
name: "峰会管理", name: '峰会管理',
icon: "setting", icon: 'setting',
authority: "summit", authority: 'summit',
children: [ 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: "员工业绩报表", authority: 'staffPerformance'
authority: "staffPerformance",
}, },
{ {
path: "memberPerformance", path: 'memberPerformance',
component: _import("financial/memberPerformance"), component: _import('financial/memberPerformance'),
name: "总公司报表", name: '总公司报表',
authority: "memberPerformance", authority: 'memberPerformance'
}, },
{ {
path: "branchCompany", path: 'branchCompany',
component: _import("financial/branchCompany"), component: _import('financial/branchCompany'),
name: "总公司报表", name: '总公司报表',
authority: "branchCompany", authority: 'branchCompany'
}, },
{ {
path: "vehicleStatistics", path: 'vehicleStatistics',
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',
path: "employeesInput", component: _import('interior/employeesInput'),
component: _import("interior/employeesInput"), name: '员工录入',
name: "员工录入", authority: 'employeesInput'
authority: "employeesInput", },
}, {
{ path: 'shareholder',
path: "shareholder", component: _import('interior/shareholder'),
component: _import("interior/shareholder"), name: '股东列表',
name: "股东列表", authority: 'shareholder'
authority: "shareholder", }
}, ]
], }
},
]; ];
<template>
<div class="app-container calendar-list-container">
<div class="filter-container" ref="filter-container">
<el-form ref="queryForm" :model="listQuery" label-width="100px">
<el-row>
<el-col :span="5">
<el-form-item label="活动类型">
<el-select
class="filter-item"
v-model="listQuery.activityId"
placeholder="请选择活动类型"
>
<el-option
:key="null"
label="全部"
:value="undefined"
></el-option>
<el-option :key="1" label="2680活动" :value="1"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="订单号">
<el-input
v-model="listQuery.orderNo"
type="text"
placeholder="请输入订单号"
></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="用户姓名">
<el-input
v-model="listQuery.name"
placeholder="请输入用户姓名"
></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="手机号">
<el-input
v-model="listQuery.phone"
placeholder="请输入手机号"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="5">
<el-form-item label="上级手机号">
<el-input
v-model="listQuery.leaderPhone"
placeholder="请输入上级手机号"
></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="订单状态">
<el-select
class="filter-item"
v-model="listQuery.status"
placeholder="请选择订单状态"
>
<el-option :key="null" label="全部" :value="null"></el-option>
<el-option :key="2" label="取消" :value="2"></el-option>
<el-option :key="3" label="待付款" :value="3"></el-option>
<el-option :key="6" label="已完成" :value="6"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="支付时间">
<el-date-picker
v-model="listQuery.startPayTime"
type="datetime"
value-format="timestamp"
placeholder="请输入开始时间"
></el-date-picker>
<span></span>
<el-date-picker
v-model="listQuery.endPayTime"
type="datetime"
value-format="timestamp"
placeholder="请输入结束时间"
></el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-button
class="filter-item"
type="primary"
v-waves
icon="search"
@click="handleFilter"
>搜索</el-button
>
<el-button
class="filter-item"
type="primary"
v-waves
icon="delete"
@click="clearSearch"
>清除搜索</el-button
>
<el-button class="filter-item" type="primary" @click="excel"
>导出表格</el-button
>
</div>
<div style="width: 100%; text-align: right; margin-bottom: 10px">
<el-tag>总数:{{ totalobj.number }}</el-tag>
<el-tag>总金额:{{ totalobj.totalAmount }}</el-tag>
<el-tag>总佣金:{{ totalobj.totalComissonAmount }}</el-tag>
</div>
<el-table
:key="tableKey"
:data="list"
v-loading.body="listLoading"
border
fit
highlight-current-row
style="width: 100%"
>
<el-table-column align="center" label="ID">
<template slot-scope="scope">
<span>{{ scope.row.id }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="活动名称">
<template slot-scope="scope">
<p>{{ scope.row.name }}</p>
</template>
</el-table-column>
<el-table-column align="center" label="订单号/创建订单时间">
<template slot-scope="scope">
<p>{{ scope.row.no }}</p>
<p>{{ scope.row.crtTime }}</p>
</template>
</el-table-column>
<el-table-column align="center" label="支付时间">
<template slot-scope="scope">
<p v-if="scope.row.payTime">{{ scope.row.payTimeStr }}</p>
<p v-else>/</p>
</template>
</el-table-column>
<el-table-column align="center" label="用户姓名">
<template slot-scope="scope">
<span>{{ scope.row.realName }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="手机号">
<template slot-scope="scope">
<span>{{ scope.row.phone }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="实付金额(元)">
<template slot-scope="scope">
<span>{{ scope.row.realAmount }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="上级姓名/手机号">
<template slot-scope="scope">
<span>{{ scope.row.parentName }}</span>
<span>/{{ scope.row.parentPhone }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="佣金">
<template slot-scope="scope">
<span>{{ scope.row.parentComisson }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="订单状态">
<template slot-scope="scope">
<span v-if="scope.row.status == '2'">取消</span>
<span v-if="scope.row.status == '3'">待付款</span>
<span v-if="scope.row.status == '6'">已完成</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, 50]"
:page-size="listQuery.limit"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
></el-pagination>
</div>
</div>
</template>
<script>
import { page2, activeAmountTotal, excelExport } from "api/order/orderActive";
import { mapGetters } from "vuex";
import rsCode from "../../../utils/rsCode";
// import dataFormattor from '../../../utils/dataFormattor'
import { formatDate } from "utils/dateFormattor";
import { timestamp2Date } from "utils/dateUtils";
export default {
name: "branchCompanyStock",
data() {
return {
detailsDialogFormVisible: false, //用户信息弹窗
userDetails: {}, //用户信息
statusBoolean: false, //实名认证
form: {
id: null,
companyId: null,
companyName: null,
name: null,
tel: null,
count: null,
state: null,
},
rules: {},
statistics: [],
isStatistics: true,
list: null,
total: null,
listLoading: true,
listQuery: {
page: 1,
limit: 10,
activityId: undefined,
orderNo: undefined,
phone: undefined,
status: undefined,
startPayTime: undefined,
endPayTime: undefined,
name: undefined,
leaderPhone: undefined,
},
createTime: null,
aplyTime: null,
dialogFormVisible: false,
dialogStatus: "",
btn_del: true,
btn_buy: true,
btn_cancel: true,
tableKey: 0,
query: null,
totalobj: {},
};
},
created() {
this.getList();
this.getTotalMount();
},
computed: {},
methods: {
timestamp(now) {
var year = now.getFullYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var Hours = now.getHours();
var Minutes = now.getMinutes();
var Seconds = now.getSeconds();
month = month.toString().length == 1 ? "0" + month : month;
date = date.toString().length == 1 ? "0" + date : date;
Hours = Hours.toString().length == 1 ? "0" + Hours : Hours;
Minutes = Minutes.toString().length == 1 ? "0" + Minutes : Minutes;
Seconds = Seconds.toString().length == 1 ? "0" + Seconds : Seconds;
return (
year +
"-" +
month +
"-" +
date +
" " +
Hours +
":" +
Minutes +
":" +
Seconds
);
},
excel() {
this.listQuery.limit = 99999;
excelExport(this.listQuery).then((res) => {
const content = res;
console.log(res);
const blob = new Blob([content]);
const fileName = "活动订单.xlsx";
if ("download" in document.createElement("a")) {
// 非IE下载
const elink = document.createElement("a");
elink.download = fileName;
elink.style.display = "none";
elink.href = URL.createObjectURL(blob);
document.body.appendChild(elink);
elink.click();
URL.revokeObjectURL(elink.href); // 释放URL 对象
document.body.removeChild(elink);
} else {
// IE10+下载
navigator.msSaveBlob(blob, fileName);
}
});
},
handleFilter() {
this.listQuery.page = 1;
this.getList();
},
clearSearch() {
this.listQuery = {
page: 1,
limit: 10,
activityId: undefined,
orderNo: undefined,
phone: undefined,
status: undefined,
startPayTime: undefined,
endPayTime: undefined,
name: undefined,
leaderPhone: undefined,
};
this.getList();
},
getTotalMount() {
activeAmountTotal().then((res) => {
if (res.status == 200) {
this.totalobj = res.data;
}
});
},
getList() {
this.listLoading = true;
page2(this.listQuery).then((response) => {
console.log(response);
this.list = response.data.data;
this.list.map((item) => {
item.payTimeStr = timestamp2Date(item.payTime);
});
this.total = response.data.totalCount;
});
setTimeout(() => {
this.listLoading = false;
}, 300);
},
handleSizeChange(val) {
this.listQuery.page = 1;
this.listQuery.limit = val;
this.getList();
},
handleCurrentChange(val) {
this.listQuery.page = val;
this.getList();
},
},
};
</script>
<style>
.member .el-dialog--small {
width: 500px;
}
.user-list-dialog .el-form-item {
margin-bottom: 0px;
}
.el-card__body {
overflow: hidden;
padding: 0;
width: 100%;
display: inline-block;
}
.num-title {
display: inline-block;
float: left;
margin-right: 40px;
font-size: 14px;
}
.box-card li {
list-style: none;
float: left;
text-align: center;
width: 12.5%;
font-size: 14px;
}
.box-card li p:nth-child(1) {
font-weight: bold;
color: #333;
font-size: 16px;
}
.box-card li p:nth-child(2) {
font-weight: bold;
color: #666;
}
</style>
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