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) {
return fetch({
url: '/api/order/order/activity/getAll',
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 Router from "vue-router";
import Vue from 'vue';
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
Vue.use(Router);
/* layout */
import Layout from "../views/layout/Layout";
import Layout from '../views/layout/Layout';
/**
* icon : the icon show in the sidebar
......@@ -16,74 +16,73 @@ import Layout from "../views/layout/Layout";
* noDropdown : if `noDropdown:true` will has no submenu
* meta : { role: ['admin'] } will control the page role
**/
export const constantRouterMap = [
{
path: "/login",
component: _import("login/index"),
hidden: true,
export const constantRouterMap = [{
path: '/login',
component: _import('login/index'),
hidden: true
},
{
path: "/authredirect",
component: _import("login/authredirect"),
hidden: true,
path: '/authredirect',
component: _import('login/authredirect'),
hidden: true
},
{
path: "/map",
component: _import("map"),
name: "地图",
hidden: true,
path: '/map',
component: _import('map'),
name: '地图',
hidden: true
},
{
path: "/stockCrowd",
component: _import("baseInfo/stockCrowd/stockCrowd"),
name: "分公司入股",
hidden: true,
path: '/stockCrowd',
component: _import('baseInfo/stockCrowd/stockCrowd'),
name: '分公司入股',
hidden: true
// authority: 'stockCrowd'
},
{
path: "/stockCrowdDetail",
component: _import("baseInfo/stockCrowdDetail/index"),
name: "入股申请",
hidden: true,
path: '/stockCrowdDetail',
component: _import('baseInfo/stockCrowdDetail/index'),
name: '入股申请',
hidden: true
// authority: 'stockCrowd'
},
{
path: "/campsite",
component: _import("baseInfo/campsite/campsite"),
name: "营地",
hidden: true,
path: '/campsite',
component: _import('baseInfo/campsite/campsite'),
name: '营地',
hidden: true
// authority: 'stockCrowd'
},
{
path: "/companyInfo",
component: _import("baseInfo/companyInfo/index"),
name: "公司信息",
hidden: true,
path: '/companyInfo',
component: _import('baseInfo/companyInfo/index'),
name: '公司信息',
hidden: true
// authority: 'companyInfo'
},
{
path: "/companyDetail",
component: _import("baseInfo/companyInfo/companyDetail"),
name: "公司详情",
hidden: true,
path: '/companyDetail',
component: _import('baseInfo/companyInfo/companyDetail'),
name: '公司详情',
hidden: true
// authority: 'companyInfo'
},
{
path: "/provinceMap",
component: _import("baseInfo/companyInfo/provinceMap"),
name: "省市分布",
hidden: true,
path: '/provinceMap',
component: _import('baseInfo/companyInfo/provinceMap'),
name: '省市分布',
hidden: true
// authority: 'stockCrowd'
},
{
path: "/404",
component: _import("error/404"),
hidden: true,
path: '/404',
component: _import('error/404'),
hidden: true
},
{
path: "/401",
component: _import("error/401"),
hidden: true,
path: '/401',
component: _import('error/401'),
hidden: true
},
// {
// path: '/',
......@@ -98,855 +97,823 @@ export const constantRouterMap = [
// },
{
path: "/",
path: '/',
component: Layout,
redirect: "/index",
name: "首页",
redirect: '/index',
name: '首页',
hidden: true,
children: [
{
path: "index",
component: _import("index/index"),
},
],
children: [{
path: 'index',
component: _import('index/index')
}]
},
{
path: "/introduction",
path: '/introduction',
component: Layout,
redirect: "/introduction/index",
icon: "form",
redirect: '/introduction/index',
icon: 'form',
noDropdown: true,
children: [
{
path: "index",
component: _import("introduction/index"),
name: "简述",
},
],
},
children: [{
path: 'index',
component: _import('introduction/index'),
name: '简述'
}]
}
];
export default new Router({
// mode: 'history', //后端支持可开
scrollBehavior: () => ({
y: 0,
y: 0
}),
routes: constantRouterMap,
routes: constantRouterMap
});
export const asyncRouterMap = [
{
path: "/baseManager",
export const asyncRouterMap = [{
path: '/baseManager',
component: Layout,
name: "基础配置管理",
icon: "setting",
authority: "baseManager",
children: [
{
path: "userManager",
icon: "fa-user",
component: _import("admin/user/index"),
name: "后台用户管理",
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",
},
],
name: '基础配置管理',
icon: 'setting',
authority: 'baseManager',
children: [{
path: 'userManager',
icon: 'fa-user',
component: _import('admin/user/index'),
name: '后台用户管理',
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",
path: '/authManager',
component: Layout,
name: "基础配置管理",
icon: "setting",
authority: "authManager",
children: [
{
path: "serviceManager",
component: _import("auth/service/index"),
name: "用户管理",
authority: "serviceManager",
},
],
},
{
path: "/memberManager",
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",
},
],
name: '会员管理',
icon: 'fn-user',
authority: 'memberManager',
children: [{
path: 'memberInfo',
component: _import('member/info/index'),
authority: 'memberInfo'
}]
},
{
path: "/monitorManager",
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",
},
],
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: "/baseInfo",
path: '/baseInfo',
component: Layout,
name: "基础信息",
icon: "fa-user",
authority: "baseInfo",
children: [
{
path: "branchCompany",
component: _import("baseInfo/branchCompany/index"),
name: "分公司管理",
authority: "branchCompany",
name: '基础信息',
icon: 'fa-user',
authority: 'baseInfo',
children: [{
path: 'branchCompany',
component: _import('baseInfo/branchCompany/index'),
name: '分公司管理',
authority: 'branchCompany'
},
{
path: "campsite",
component: _import("baseInfo/campsite/index"),
name: "营地管理",
authority: "campsite",
path: 'campsite',
component: _import('baseInfo/campsite/index'),
name: '营地管理',
authority: 'campsite'
},
{
path: "/baseInfo/accompanyingItem",
component: _import("vehicle/accompanyingItem/index"),
name: "随行物品管理",
authority: "accompanyingItem",
path: '/baseInfo/accompanyingItem',
component: _import('vehicle/accompanyingItem/index'),
name: '随行物品管理',
authority: 'accompanyingItem'
},
{
path: "branchCompany/stock",
component: _import("branchCompany/stock/index"),
name: "分公司股权信息管理",
authority: "branchCompany/stock",
path: 'branchCompany/stock',
component: _import('branchCompany/stock/index'),
name: '分公司股权信息管理',
authority: 'branchCompany/stock'
},
{
path: "branchCompany/stockApply",
component: _import("branchCompany/stockApply/index"),
name: "分公司股权信息管理",
authority: "branchCompany/stockApply",
path: 'branchCompany/stockApply',
component: _import('branchCompany/stockApply/index'),
name: '分公司股权信息管理',
authority: 'branchCompany/stockApply'
},
{
path: "vehicleUpkeepItem",
component: _import("vehicle/vehicleUpkeepItem/index"),
name: "车辆保养项目管理",
authority: "vehicleUpkeepItem",
path: 'vehicleUpkeepItem',
component: _import('vehicle/vehicleUpkeepItem/index'),
name: '车辆保养项目管理',
authority: 'vehicleUpkeepItem'
},
{
path: "generalSetting",
component: _import("baseInfo/generalSetting"),
name: "通用设置",
authority: "generalSetting",
},
],
path: 'generalSetting',
component: _import('baseInfo/generalSetting'),
name: '通用设置',
authority: 'generalSetting'
}
]
},
{
path: "/vehicleType",
path: '/vehicleType',
component: Layout,
name: "车型管理",
icon: "setting",
authority: "vehicleType",
children: [
{
path: "vehicleTypeList",
component: _import("vehicleType/index"),
name: "车型列表",
authority: "vehicleTypeList",
name: '车型管理',
icon: 'setting',
authority: 'vehicleType',
children: [{
path: 'vehicleTypeList',
component: _import('vehicleType/index'),
name: '车型列表',
authority: 'vehicleTypeList'
},
{
path: "vehicleTypeLabel",
component: _import("vehicleType/vehicleTypeLabel"),
name: "车型标签设置",
authority: "vehicleTypeLabel",
path: 'vehicleTypeLabel',
component: _import('vehicleType/vehicleTypeLabel'),
name: '车型标签设置',
authority: 'vehicleTypeLabel'
},
{
path: "priceList",
component: _import("vehicleType/priceList"),
name: "租车价格表",
authority: "priceList",
path: 'priceList',
component: _import('vehicleType/priceList'),
name: '租车价格表',
authority: 'priceList'
},
{
path: "mockSun",
component: _import("vehicleType/mockSun"),
name: "节日价格",
authority: "mockSun",
},
],
path: 'mockSun',
component: _import('vehicleType/mockSun'),
name: '节日价格',
authority: 'mockSun'
}
]
},
{
path: "/discoveryModule",
path: '/discoveryModule',
component: Layout,
name: "发现模块",
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",
},
],
name: '发现模块',
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",
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",
},
],
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: "/revenue",
path: '/revenue',
component: Layout,
name: "营地管理",
icon: "setting",
authority: "revenue",
children: [
{
path: "revenue_sum",
component: _import("revenue/revenue_sum"),
name: "营收概况",
authority: "revenue_sum",
},
{
path: "revenue_withdraw",
component: _import("revenue/revenue_withdraw"),
name: "提现列表",
authority: "revenue_withdraw",
},
],
name: '营地管理',
icon: 'setting',
authority: 'revenue',
children: [{
path: 'revenue_sum',
component: _import('revenue/revenue_sum'),
name: '营收概况',
authority: 'revenue_sum'
},
{
path: 'revenue_withdraw',
component: _import('revenue/revenue_withdraw'),
name: '提现列表',
authority: 'revenue_withdraw'
}
]
},
{
path: "/vehicle",
path: '/vehicle',
component: Layout,
name: "车辆管理",
icon: "setting",
authority: "vehicle",
children: [
{
path: "vehicleInfo",
component: _import("vehicle/vehicleInfo/index"),
name: "车辆信息管理",
authority: "vehicleInfo",
name: '车辆管理',
icon: 'setting',
authority: 'vehicle',
children: [{
path: 'vehicleInfo',
component: _import('vehicle/vehicleInfo/index'),
name: '车辆信息管理',
authority: 'vehicleInfo'
},
{
path: "vehiclePrice",
component: _import("vehicle/vehiclePrice"),
name: "车辆价格管理",
authority: "vehiclePrice",
path: 'vehiclePrice',
component: _import('vehicle/vehiclePrice'),
name: '车辆价格管理',
authority: 'vehiclePrice'
},
{
path: "bookRecord",
component: _import("vehicle/bookRecord/index"),
name: "车辆排班管理",
authority: "bookRecord",
path: 'bookRecord',
component: _import('vehicle/bookRecord/index'),
name: '车辆排班管理',
authority: 'bookRecord'
},
{
path: "bookingManagement",
component: _import("vehicle/smallProgram/bookingManagement"),
name: "小程序车辆申请管理",
authority: "bookingManagement",
path: 'bookingManagement',
component: _import('vehicle/smallProgram/bookingManagement'),
name: '小程序车辆申请管理',
authority: 'bookingManagement'
},
{
path: "vehicleWarningMsg",
component: _import("vehicle/vehicleWarningMsg/index"),
name: "车辆预警消息",
authority: "vehicleWarningMsg",
path: 'vehicleWarningMsg',
component: _import('vehicle/vehicleWarningMsg/index'),
name: '车辆预警消息',
authority: 'vehicleWarningMsg'
},
{
path: "vehicleDepartureLog",
component: _import("vehicle/vehicleDepartureLog/index"),
name: "车辆出车记录",
authority: "vehicleDepartureLog",
path: 'vehicleDepartureLog',
component: _import('vehicle/vehicleDepartureLog/index'),
name: '车辆出车记录',
authority: 'vehicleDepartureLog'
},
{
path: "vehicleUpkeepLog",
component: _import("vehicle/vehicleUpkeepLog/index"),
name: "车辆保养记录",
authority: "vehicleUpkeepLog",
path: 'vehicleUpkeepLog',
component: _import('vehicle/vehicleUpkeepLog/index'),
name: '车辆保养记录',
authority: 'vehicleUpkeepLog'
},
{
path: "vehicleSchedulManage",
component: _import("vehicle/vehicleSchedulManage/index"),
name: "车辆排班表",
authority: "vehicleSchedulManage",
path: 'vehicleSchedulManage',
component: _import('vehicle/vehicleSchedulManage/index'),
name: '车辆排班表',
authority: 'vehicleSchedulManage'
},
{
path: "vehicleRecords",
component: _import("vehicle/vehicleSchedulManage/vehicleRecords"),
name: "车辆排班记录",
authority: "vehicleRecords",
path: 'vehicleRecords',
component: _import('vehicle/vehicleSchedulManage/vehicleRecords'),
name: '车辆排班记录',
authority: 'vehicleRecords'
},
{
path: "vehicleCount",
component: _import("vehicle/vehicleCount/index"),
name: "车辆出行统计",
authority: "vehicleCount",
path: 'vehicleCount',
component: _import('vehicle/vehicleCount/index'),
name: '车辆出行统计',
authority: 'vehicleCount'
},
{
path: "vehicleTypeList",
component: _import("vehicleType/index"),
name: "车型列表",
authority: "vehicleTypeList",
path: 'vehicleTypeList',
component: _import('vehicleType/index'),
name: '车型列表',
authority: 'vehicleTypeList'
},
{
path: "vehicleTypeLabel",
component: _import("vehicleType/vehicleTypeLabel"),
name: "车型标签设置",
authority: "vehicleTypeLabel",
path: 'vehicleTypeLabel',
component: _import('vehicleType/vehicleTypeLabel'),
name: '车型标签设置',
authority: 'vehicleTypeLabel'
},
{
path: "accompanyingItem",
component: _import("vehicle/accompanyingItem/index"),
name: "随行物品管理",
authority: "accompanyingItem",
},
path: 'accompanyingItem',
component: _import('vehicle/accompanyingItem/index'),
name: '随行物品管理',
authority: 'accompanyingItem'
}
// {
// path: 'dispatchApply',
// component: _import('vehicle/dispatchApply/index'),
// name: '调度申请管理',
// authority: 'dispatchApply'
// }
],
]
},
{
path: "/tourManage",
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",
},
],
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",
path: '/order',
component: Layout,
name: "订单管理",
icon: "setting",
authority: "order",
children: [
{
path: "rentVehicleInfo",
component: _import("order/rentVehicleInfo/index"),
name: "租车订单管理",
authority: "rentVehicleInfo",
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: 'tourOrderInfo',
component: _import('order/tourOrderInfo/index'),
name: '旅游订单管理',
authority: 'tourOrderInfo'
},
{
path: "memberOrderInfo",
component: _import("order/memberOrderInfo/index"),
name: "会员订单管理",
authority: "memberOrderInfo",
path: 'memberOrderInfo',
component: _import('order/memberOrderInfo/index'),
name: '会员订单管理',
authority: 'memberOrderInfo'
},
{
path: "orderStatistics",
component: _import("order/orderStatistics/index"),
name: "会员订单统计",
authority: "orderStatistics",
path: 'orderStatistics',
component: _import('order/orderStatistics/index'),
name: '会员订单统计',
authority: 'orderStatistics'
},
{
path: "createOrder",
component: _import("order/createOrder/index"),
name: "创建租车订单",
authority: "createOrder",
path: 'createOrder',
component: _import('order/createOrder/index'),
name: '创建租车订单',
authority: 'createOrder'
},
{
path: "orderActiveInfo",
component: _import("order/orderActiveInfo/index"),
name: "活动订单管理",
authority: "orderActiveInfo",
path: 'orderActiveInfo',
component: _import('order/orderActiveInfo/index'),
name: '活动订单管理',
authority: 'orderActiveInfo'
},
],
{
path: 'activityOrder',
component: _import('order/activityOrder/index'),
name: '活动订单管理',
authority: 'activityOrder'
}
]
},
{
path: "/purseManage",
path: '/purseManage',
component: Layout,
name: "钱包管理",
icon: "setting",
authority: "purseManage",
children: [
{
path: "incomeOverview",
component: _import("purseManage/incomeOverview"),
name: "收益总览",
authority: "incomeOverview",
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: 'gainRecord',
component: _import('purseManage/gainRecord'),
name: '收益记录',
authority: 'gainRecord'
},
{
path: "commissionSettings",
component: _import("purseManage/commissionSettings"),
name: "佣金设置比例",
authority: "commissionSettings",
path: 'commissionSettings',
component: _import('purseManage/commissionSettings'),
name: '佣金设置比例',
authority: 'commissionSettings'
},
{
path: "discountRecord",
component: _import("purseManage/discountRecord"),
name: "提现记录",
authority: "discountRecord",
path: 'discountRecord',
component: _import('purseManage/discountRecord'),
name: '提现记录',
authority: 'discountRecord'
},
{
path: "commissionRecord",
component: _import("purseManage/commissionRecord"),
name: "佣金记录",
authority: "commissionRecord",
},
],
path: 'commissionRecord',
component: _import('purseManage/commissionRecord'),
name: '佣金记录',
authority: 'commissionRecord'
}
]
},
{
path: "/userManagement",
path: '/userManagement',
component: Layout,
name: "用户管理",
icon: "setting",
authority: "userManagement",
children: [
{
path: "userList",
component: _import("userManagement/userList/index"),
name: "用户列表",
authority: "userList",
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: 'memberManagement',
component: _import('userManagement/memberManagement/index'),
name: '会员管理1',
authority: 'memberManagement'
},
{
path: "memberEnter",
component: _import("userManagement/memberEnter"),
name: "会员录入",
authority: "memberEnter",
path: 'memberEnter',
component: _import('userManagement/memberEnter'),
name: '会员录入',
authority: 'memberEnter'
},
{
path: "imCustomerServiceManger",
path: 'imCustomerServiceManger',
component: _import(
"userManagement/imCustomerServiceManger/cusomterServiceList"
'userManagement/imCustomerServiceManger/cusomterServiceList'
),
name: "客服列表",
authority: "imCustomerServiceManger",
},
],
name: '客服列表',
authority: 'imCustomerServiceManger'
}
]
},
{
path: "/appManagement",
path: '/appManagement',
component: Layout,
name: "app管理",
icon: "setting",
authority: "appManagement",
children: [
{
path: "bannerSetting",
component: _import("baseInfo/bannerSetting"),
name: "banner设置",
authority: "bannerSetting",
name: 'app管理',
icon: 'setting',
authority: 'appManagement',
children: [{
path: 'bannerSetting',
component: _import('baseInfo/bannerSetting'),
name: 'banner设置',
authority: 'bannerSetting'
},
{
path: "appVersion",
component: _import("appManagement/appVersion/index"),
name: "app版本管理",
authority: "appVersion",
path: 'appVersion',
component: _import('appManagement/appVersion/index'),
name: 'app版本管理',
authority: 'appVersion'
},
{
path: "appVersionMark",
component: _import("appManagement/appVersionMark"),
name: "标识管理",
authority: "appVersionMark",
path: 'appVersionMark',
component: _import('appManagement/appVersionMark'),
name: '标识管理',
authority: 'appVersionMark'
},
{
path: "modalManagement",
component: _import("appManagement/modalManagement/index"),
name: "首页弹窗管理",
authority: "modalManagement",
path: 'modalManagement',
component: _import('appManagement/modalManagement/index'),
name: '首页弹窗管理',
authority: 'modalManagement'
},
{
path: "selectedActivities",
component: _import("appManagement/selectedActivities/index"),
name: "首页精选活动",
authority: "selectedActivities",
path: 'selectedActivities',
component: _import('appManagement/selectedActivities/index'),
name: '首页精选活动',
authority: 'selectedActivities'
},
{
path: "pushManagement",
component: _import("appManagement/pushManagement/index"),
name: "消息推送",
authority: "pushManagement",
path: 'pushManagement',
component: _import('appManagement/pushManagement/index'),
name: '消息推送',
authority: 'pushManagement'
},
{
path: "generalSetting",
component: _import("baseInfo/generalSetting"),
name: "通用设置",
authority: "generalSetting",
},
],
path: 'generalSetting',
component: _import('baseInfo/generalSetting'),
name: '通用设置',
authority: 'generalSetting'
}
]
},
{
path: "/financialReports",
path: '/financialReports',
component: Layout,
name: "财务报表",
icon: "setting",
authority: "financialReports",
children: [
{
path: "dividendStatistics",
component: _import("financialReports/dividendStatistics"),
name: "创客收益",
authority: "dividendStatistics",
},
{
path: "revenueStatistics",
component: _import("financialReports/revenueStatistics"),
name: "创客收益统计",
authority: "revenueStatistics",
name: '财务报表',
icon: 'setting',
authority: 'financialReports',
children: [{
path: 'dividendStatistics',
component: _import('financialReports/dividendStatistics'),
name: '创客收益',
authority: 'dividendStatistics'
},
{
path: 'revenueStatistics',
component: _import('financialReports/revenueStatistics'),
name: '创客收益统计',
authority: 'revenueStatistics'
}
],
]
},
{
path: "/summit",
path: '/summit',
component: Layout,
name: "峰会管理",
icon: "setting",
authority: "summit",
children: [
{
path: "index",
component: _import("summit/index"),
name: "峰会列表",
authority: "index",
},
],
},
{
path: "/cunponManagements",
name: '峰会管理',
icon: 'setting',
authority: 'summit',
children: [{
path: 'index',
component: _import('summit/index'),
name: '峰会列表',
authority: 'index'
}]
},
{
path: '/cunponManagements',
component: Layout,
name: "优惠券管理",
icon: "setting",
authority: "cunponManagements",
children: [
{
path: "cunponManagement",
component: _import("cunponManagements/cunponManagement"),
name: "优惠券管理",
authority: "cunponManagement",
},
{
path: "conponList",
component: _import("cunponManagements/conponList"),
name: "优惠券列表",
authority: "conponList",
},
],
name: '优惠券管理',
icon: 'setting',
authority: 'cunponManagements',
children: [{
path: 'cunponManagement',
component: _import('cunponManagements/cunponManagement'),
name: '优惠券管理',
authority: 'cunponManagement'
},
{
path: 'conponList',
component: _import('cunponManagements/conponList'),
name: '优惠券列表',
authority: 'conponList'
}
]
},
{
path: "/activityManagement",
path: '/activityManagement',
component: Layout,
name: "活动管理",
icon: "setting",
authority: "activityManagement",
children: [
{
path: "activityList",
component: _import("activityManagement/activityList"),
name: "活动列表",
authority: "activityList",
},
],
},
{
path: "/company",
name: '活动管理',
icon: 'setting',
authority: 'activityManagement',
children: [{
path: 'activityList',
component: _import('activityManagement/activityList'),
name: '活动列表',
authority: 'activityList'
}]
},
{
path: '/company',
component: Layout,
name: "公司/门店",
icon: "setting",
authority: "company",
children: [
{
path: "companyManage",
component: _import("company/companyManage"),
name: "公司管理",
authority: "companyManage",
},
{
path: "storeManage",
component: _import("company/storeManage"),
name: "门店管理",
authority: "storeManage",
},
],
name: '公司/门店',
icon: 'setting',
authority: 'company',
children: [{
path: 'companyManage',
component: _import('company/companyManage'),
name: '公司管理',
authority: 'companyManage'
},
{
path: 'storeManage',
component: _import('company/storeManage'),
name: '门店管理',
authority: 'storeManage'
}
]
},
{
path: "/casual",
path: '/casual',
component: Layout,
name: "发布会现金活动",
icon: "setting",
authority: "casual",
children: [
{
path: "index",
component: _import("conference/activeData/index"),
name: "活动数据",
authority: "index",
name: '发布会现金活动',
icon: 'setting',
authority: 'casual',
children: [{
path: 'index',
component: _import('conference/activeData/index'),
name: '活动数据',
authority: 'index'
},
{
path: "prizeLists",
component: _import("conference/prizeList/prizeLists"),
name: "中奖列表",
authority: "prizeLists",
path: 'prizeLists',
component: _import('conference/prizeList/prizeLists'),
name: '中奖列表',
authority: 'prizeLists'
},
{
path: "applyList",
component: _import("conference/apply/applyList"),
name: "报名列表",
authority: "applyList",
path: 'applyList',
component: _import('conference/apply/applyList'),
name: '报名列表',
authority: 'applyList'
},
{
path: "awardSet",
component: _import("conference/award/awardSet"),
name: "奖品设置",
authority: "awardSet",
},
],
path: 'awardSet',
component: _import('conference/award/awardSet'),
name: '奖品设置',
authority: 'awardSet'
}
]
},
{
path: "/applyManagements",
path: '/applyManagements',
component: Layout,
name: "申请管理",
icon: "setting",
authority: "applyManagements",
children: [
{
path: "carApplyList",
component: _import("applyManagements/carApplyList"),
name: "购房车申请列表",
authority: "carApplyList",
},
{
path: "Settlement",
component: _import("applyManagements/Settlement"),
name: "入驻申请",
authority: "Settlement",
},
],
name: '申请管理',
icon: 'setting',
authority: 'applyManagements',
children: [{
path: 'carApplyList',
component: _import('applyManagements/carApplyList'),
name: '购房车申请列表',
authority: 'carApplyList'
},
{
path: 'Settlement',
component: _import('applyManagements/Settlement'),
name: '入驻申请',
authority: 'Settlement'
}
]
},
{
path: "/xxOfficialWebsite",
path: '/xxOfficialWebsite',
component: Layout,
name: "天德房车官网管理",
icon: "setting",
authority: "xxOfficialWebsite",
children: [
{
path: "activityList",
component: _import("xxOfficialWebsite/activityList"),
name: "活动管理",
authority: "activityList",
name: '天德房车官网管理',
icon: 'setting',
authority: 'xxOfficialWebsite',
children: [{
path: 'activityList',
component: _import('xxOfficialWebsite/activityList'),
name: '活动管理',
authority: 'activityList'
},
{
path: "newsList",
component: _import("xxOfficialWebsite/newsList"),
name: "新闻管理",
authority: "newsList",
path: 'newsList',
component: _import('xxOfficialWebsite/newsList'),
name: '新闻管理',
authority: 'newsList'
},
{
path: "bannerList",
component: _import("xxOfficialWebsite/bannerList"),
name: "banner管理",
authority: "bannerList",
path: 'bannerList',
component: _import('xxOfficialWebsite/bannerList'),
name: 'banner管理',
authority: 'bannerList'
},
{
path: "seoList",
component: _import("xxOfficialWebsite/seoList"),
name: "SEO管理",
authority: "seoList",
path: 'seoList',
component: _import('xxOfficialWebsite/seoList'),
name: 'SEO管理',
authority: 'seoList'
},
{
path: "friendLinkList",
component: _import("xxOfficialWebsite/friendLinkList"),
name: "友情连接",
authority: "friendLinkList",
},
],
path: 'friendLinkList',
component: _import('xxOfficialWebsite/friendLinkList'),
name: '友情连接',
authority: 'friendLinkList'
}
]
},
{
path: "/summit",
path: '/summit',
component: Layout,
name: "峰会管理",
icon: "setting",
authority: "summit",
children: [
{
path: "summitList",
component: _import("summit/index"),
name: "峰会列表",
authority: "summitList",
},
],
},
{
path: "/statistics",
name: '峰会管理',
icon: 'setting',
authority: 'summit',
children: [{
path: 'summitList',
component: _import('summit/index'),
name: '峰会列表',
authority: 'summitList'
}]
},
{
path: '/statistics',
component: Layout,
name: "数据统计",
icon: "setting",
authority: "statistics",
children: [
{
path: "orderStatistics",
component: _import("statistics/orderStatistics"),
name: "订单统计",
authority: "orderStatistics",
},
],
},
{
path: "/financial",
name: '数据统计',
icon: 'setting',
authority: 'statistics',
children: [{
path: 'orderStatistics',
component: _import('statistics/orderStatistics'),
name: '订单统计',
authority: 'orderStatistics'
}]
},
{
path: '/financial',
component: Layout,
name: "财务报表",
icon: "setting",
authority: "financial",
children: [
{
path: "staffPerformance",
component: _import("financial/staffPerformance"),
name: "员工业绩报表",
authority: "staffPerformance",
name: '财务报表',
icon: 'setting',
authority: 'financial',
children: [{
path: 'staffPerformance',
component: _import('financial/staffPerformance'),
name: '员工业绩报表',
authority: 'staffPerformance'
},
{
path: "memberPerformance",
component: _import("financial/memberPerformance"),
name: "总公司报表",
authority: "memberPerformance",
path: 'memberPerformance',
component: _import('financial/memberPerformance'),
name: '总公司报表',
authority: 'memberPerformance'
},
{
path: "branchCompany",
component: _import("financial/branchCompany"),
name: "总公司报表",
authority: "branchCompany",
path: 'branchCompany',
component: _import('financial/branchCompany'),
name: '总公司报表',
authority: 'branchCompany'
},
{
path: "vehicleStatistics",
component: _import("financial/vehicleStatistics"),
name: "车辆统计",
authority: "vehicleStatistics",
},
],
path: 'vehicleStatistics',
component: _import('financial/vehicleStatistics'),
name: '车辆统计',
authority: 'vehicleStatistics'
}
]
},
{
path: "/interior",
path: '/interior',
component: Layout,
name: "内部人员管理",
icon: "setting",
authority: "interior",
children: [
{
path: "employeesInput",
component: _import("interior/employeesInput"),
name: "员工录入",
authority: "employeesInput",
},
{
path: "shareholder",
component: _import("interior/shareholder"),
name: "股东列表",
authority: "shareholder",
},
],
},
name: '内部人员管理',
icon: 'setting',
authority: 'interior',
children: [{
path: 'employeesInput',
component: _import('interior/employeesInput'),
name: '员工录入',
authority: 'employeesInput'
},
{
path: 'shareholder',
component: _import('interior/shareholder'),
name: '股东列表',
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