921_salesManagement.js 4.21 KB
const _import = require("@/libs/util.import." + process.env.NODE_ENV);
export const routerName = {
	921: {
		path: "/salesManagement",
		name: "salesManagement",
		meta: {
			title: "销售管理",
			authId: "921",
			parentId: "1",
			cache: false,
		},
	},
	92101: {
		path: "/customer",
		name: "customer",
		meta: {
			title: "客户管理",
			authId: "92101",
			parentId: "921",
			cache: false,
		},
		auth: [
			{
				authId: "9210101",
				parentId: "92101",
				label: "导出",
				category: "Button",
				type: "primary",
				handle: "handleExport",
			},
			{
				authId: "9210102",
				parentId: "92101",
				label: "首次绑定",
				handle: "handleEdit",
				ruleObj: {
					attr: "potentialCustomersStatus",
					rule: {
						3: "首次绑定",
						4: "重新绑定",
					},
				},
			},
			{
				authId: "9210103",
				parentId: "92101",
				label: "详情",
				handle: "handleDetail",
			},
			{
				authId: "9210104",
				parentId: "92101",
				label: "信息核验",
				handle: "handleInfoCheck",
			},
			{
				authId: "9210105",
				parentId: "92101",
				label: "编辑",
				handle: "handleMerchantEdit",
			},
		],
		component: _import("salesManagement/customer/index"),
	},
	92102: {
		path: "/organize",
		name: "organize",
		meta: {
			title: "组织架构管理",
			authId: "92102",
			parentId: "921",
			cache: false,
		},
		auth: [
			{
				authId: "9210201",
				parentId: "92102",
				label: "编辑",
				handle: "handleEdit",
				addRoutePath: [
					{
						authId: "92103",
						name: "编辑",
						parentId: "92102",
					},
				],
			},
		],
		component: _import("salesManagement/organize/index"),
	},
	92103: {
		path: "/editOrganize",
		name: "editOrganize",
		meta: {
			title: "编辑",
			authId: "92103",
			parentId: "92102",
			sideHidden: true,
			activePath: "/editOrganize",
		},
		component: _import("salesManagement/organize/editOrganize"),
	},
	92104: {
		path: "/availableInStores",
		name: "availableInStores",
		meta: {
			title: "门店上架",
			authId: "92104",
			parentId: "921",
			cache: false,
		},
		auth: [
			{
				authId: "9210401",
				parentId: "92104",
				label: "嘀加上架与销售合同",
				handle: "navigateToApprovalPage",
				category: "Button",
				type: "primary",
				addRoutePath: [
					{
						authId: "9210403",
						name: "嘀加上架与销售合同",
						parentId: "92104",
					},
				],
			},
			{
				authId: "9210402",
				parentId: "92104",
				label: "嘀加上架修改",
				handle: "navigateToApprovalPage",
				category: "Button",
				type: "primary",
				addRoutePath: [
					{
						authId: "9210404",
						name: "嘀加上架修改",
						parentId: "92104",
					},
				],
			},
		],
		component: _import("salesManagement/availableInStores/index"),
	},
	9210403: {
		path: "/tigaListingAndSalesContract",
		name: "tigaListingAndSalesContract",
		meta: {
			title: "嘀加上架与销售合同",
			authId: "9210403",
			parentId: "92104",
			activePath: "/tigaListingAndSalesContract",
			cache: false,
		},
		auth: [],
		component: _import(
			"salesManagement/availableInStores/tigaListingAndSalesContract/index",
		),
	},
	9210404: {
		path: "/addAndModifyTheListing",
		name: "addAndModifyTheListing",
		meta: {
			title: "嘀加上架修改",
			authId: "9210404",
			parentId: "92104",
			activePath: "/addAndModifyTheListing",
			cache: false,
		},
		auth: [],
		component: _import(
			"salesManagement/availableInStores/tigaListingAndSalesContract/index",
		),
	},
	92105: {
		path: "/closeStore",
		name: "closeStore",
		meta: {
			title: "关店管理",
			authId: "92105",
			parentId: "921",
			cache: false,
		},
		auth: [
			{
				authId: "9210501",
				parentId: "92105",
				label: "导出",
				category: "Button",
				type: "primary",
				handle: "handleExport",
			},
			{
				authId: "9210502",
				parentId: "92105",
				label: "详情",
				handle: "handleDetail",
			},
			{
				authId: "9210503",
				parentId: "92105",
				label: "关店确认",
				handle: "handleCloseStore",
			},
		],
		component: _import("salesManagement/closeStore/index"),
	},
};