905_financialManagement.js 2.41 KB
/* eslint-disable node/prefer-global/process */

const _import = require("@/libs/util.import." + process.env.NODE_ENV);
export const routerName = {
	905: {
		path: "/financeManage",
		name: "financeManage",
		meta: {
			title: "财务管理",
			authId: "905",
			parentId: "1",
			cache: false,
		},
	},
	90501: {
		path: "/financeList",
		name: "financeList",
		meta: {
			title: "财务列表",
			authId: "90501",
			parentId: "905",
			cache: false,
		},
		auth: [{
			authId: "9050103",
			parentId: "90501",
			label: "下载对账单",
			icon: "download",
			category: "Button",
			type: "primary",
			handle: "downloadAccount",
		}, {
			authId: "9050102",
			parentId: "90501",
			label: "查看明细",
			handle: "handleDetail",
			addRoutePath: [{
				authId: "90502",
				name: "对账详情",
				parentId: "90501",
			}],
		}, {
			authId: "9050104",
			parentId: "90501",
			label: "对账确认",
			category: "Button",
			type: "primary",
			handle: "handleAccountConfirm",
		}, {
			authId: "9050105",
			parentId: "90501",
			label: "系统对账",
			icon: "download",
			category: "Button",
			type: "primary",
			handle: "downloadSystemAccount",
		}, {
			authId: "9050101",
			parentId: "90501",
			label: "合并导出",
			category: "Button",
			type: "primary",
			handle: "handleExport",
		}],
		component: _import("financeManage/index"),
	},
	90502: {
		path: "/financeDetail",
		name: "financeDetail",
		meta: {
			title: "对账详情",
			authId: "90502",
			parentId: "90501",
			cache: false,
			activePath: "/financeList",
		},
		component: _import("financeManage/financeDetailNew"),
	},
	90503: {
		path: "/onlineAccountList",
		name: "onlineAccountList",
		meta: {
			title: "我的分账",
			authId: "90503",
			parentId: "905",
			cache: false,
		},
		auth: [
			//   {
			//   authId: '9050301',
			//   parentId: '90503',
			//   label: '提现记录',
			//   category: 'Button',
			//   type: 'primary',
			//   handle: 'handleRecord'
			// },
			{
				authId: "9050302",
				parentId: "90503",
				label: "导出",
				category: "Button",
				type: "primary",
				handle: "handleExport",
			},
		],
		component: _import("financeManage/account/index"),
	},
	90504: {
		path: "/accountRecord",
		name: "accountRecord",
		meta: {
			title: "提现记录",
			authId: "90504",
			parentId: "90503",
			cache: false,
			activePath: "/onlineAccountList",
		},
		component: _import("financeManage/account/accountRecord"),
	},
};