From 315a684dad6d2e09845033cbb68a1dc27cc1a7bf Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Thu, 30 Dec 2021 15:36:16 +0800 Subject: [PATCH] edit --- .../components/index/index.component.ts | 43 +- .../services/menu-manager.service.ts | 6 +- .../menu-manager/services/user.service.ts | 132 ----- .../invoiced-list/invoiced-list.component.ts | 8 +- src/app/shared/shared-third.module.ts | 39 +- src/assets/mocks/platform/tms-obc-web.json | 466 ++++++++++++++++++ src/assets/mocks/platform/tms-smc-web.json | 294 +++++++++++ 7 files changed, 820 insertions(+), 168 deletions(-) delete mode 100644 src/app/routes/menu-manager/services/user.service.ts create mode 100644 src/assets/mocks/platform/tms-obc-web.json create mode 100644 src/assets/mocks/platform/tms-smc-web.json diff --git a/src/app/routes/menu-manager/components/index/index.component.ts b/src/app/routes/menu-manager/components/index/index.component.ts index bd1c0f33..c828397d 100644 --- a/src/app/routes/menu-manager/components/index/index.component.ts +++ b/src/app/routes/menu-manager/components/index/index.component.ts @@ -1,12 +1,13 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { Menu } from '@delon/theme'; +import { EAEnvironmentService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; import { MenuManagerService } from './../../services/menu-manager.service'; @Component({ selector: 'app-menu-manager-components-index', templateUrl: './index.component.html', - styleUrls: ['./index.component.less'], + styleUrls: ['./index.component.less'] }) export class MenuManagerComponentsIndexComponent implements OnInit { selectedPlatform!: { name: string; appId: string; enName: string }; @@ -17,9 +18,9 @@ export class MenuManagerComponentsIndexComponent implements OnInit { dropType = { dropPrev: true, dropNext: true, - dropInner: true, + dropInner: true }; - constructor(public service: MenuManagerService, private modal: NzModalService) { } + constructor(private envSrv: EAEnvironmentService, public service: MenuManagerService, private modal: NzModalService) {} ngOnInit(): void { this.initData(); @@ -27,13 +28,10 @@ export class MenuManagerComponentsIndexComponent implements OnInit { initData(): void { this.platforms = [ - { name: '运维平台', appId: 'D40B4EFC33FC4803864934872A11B0CE', enName: 'scm-soc-ui' }, - { name: '运营后台', appId: '2537B72DDA534361AE4931903F0BFEB3', enName: 'scm-ows-ui' }, - { name: '供应商平台', appId: '0CEE254099064665872B777CF9FCBB6B', enName: 'scm-cvc-ui' }, - // { name: '代理商平台', appId: '737BB699C8894B2D81F21FC667A21169', enName: 'scm-cac-ui' }, - // { name: '分销商平台', appId: '0D00C7CC306A4CACA5AF95BBD1251980', enName: 'scm-cdc-ui' }, - // { name: '开放平台', appId: '7B216DD933CB4922BD9094ED8F96B0B4', enName: 'scm-opc-ui' }, + { name: '货主PC', appId: 'A48F72F0A304427F921794BAD86B3522', enName: 'tms-smc-web' }, + { name: '运营后台', appId: this.envSrv.env.appId, enName: 'tms-obc-web' } ]; + this.selectedPlatform = this.platforms[0]; } platformChange(e: { name: string; appId: string }) { @@ -46,41 +44,40 @@ export class MenuManagerComponentsIndexComponent implements OnInit { } loadMenus(appId: string) { - this.service.request(this.service.$api_get_all, { appId }, 'POST', true, 'FORM').subscribe((res) => { + this.service.request(this.service.$api_get_all, { appId }, 'POST', true, 'FORM').subscribe(res => { + console.log(res); + this.menus = res; }); } - editValueChange(event: any) { console.log('editChanged', event); } - menuImport() { if (!this.selectedPlatform) { return; } - this.service.http.request('GET', `assets/tmp/_mock/platform/${this.selectedPlatform.enName}.json`).subscribe((res: any) => { - // console.log(res); + this.service.http.request('GET', `assets/mocks/platform/${this.selectedPlatform.enName}.json`).subscribe((res: any) => { this.addMenu(res.menu); }); } addMenu(menus: Array, parentId: string = '') { - menus.forEach((r) => { + menus.forEach(r => { if (parentId !== '') { r.parentId = parentId; } - this.service.request(this.service.$api_get_one, { appId: this.selectedPlatform.appId, i18n: r.i18n }).subscribe((res) => { + this.service.request(this.service.$api_get_one, { appId: this.selectedPlatform.appId }, 'POST', false).subscribe(res => { // 如果res.data存在,则更新菜单 if (res.data) { r.id = res.data.id; } this.service .addOne({ appId: this.selectedPlatform.appId, ...r, isLeaf: !(r.children && r.children.length > 0) }) - .subscribe((result) => { + .subscribe(result => { if (result) { if (r.children && r.children.length > 0) { this.addMenu(r.children, result.id); @@ -90,12 +87,10 @@ export class MenuManagerComponentsIndexComponent implements OnInit { }); }); - this.loadMenus(this.selectedPlatform.appId); + // this.loadMenus(this.selectedPlatform.appId); } - addMenuRecursion() { - - } + addMenuRecursion() {} delMenu(appId: string, menus: Array) { if (!menus || menus.length === 0) { @@ -105,16 +100,16 @@ export class MenuManagerComponentsIndexComponent implements OnInit { if (menus.length > 1) { notice = `确认删除勾选的${menus.length}行菜单记录?`; } - const ids = menus.map((r) => r.id); + const ids = menus.map(r => r.id); this.modal.confirm({ nzTitle: '删除确认', nzContent: `${notice}
是否删除?`, nzOnOk: () => - this.service.delMany(ids).subscribe((res) => { + this.service.delMany(ids).subscribe(res => { if (res === true) { this.service.msgSrv.success('删除成功!'); } - }), + }) }); } } diff --git a/src/app/routes/menu-manager/services/menu-manager.service.ts b/src/app/routes/menu-manager/services/menu-manager.service.ts index 11898dd0..3e23c3dd 100644 --- a/src/app/routes/menu-manager/services/menu-manager.service.ts +++ b/src/app/routes/menu-manager/services/menu-manager.service.ts @@ -6,13 +6,13 @@ import { BaseService } from '@shared'; }) export class MenuManagerService extends BaseService { // 新增/更新菜单 - $api_add_one = `/scm/cuc/cuc/functionInfo/saveFunctionInfo`; + $api_add_one = `/api/mdc/cuc/functionInfo/saveFunctionInfo`; // 根据应用ID获取所有菜单 $api_get_all = `/scm/cuc/cuc/functionInfo/getAllFunctionInfoByAppId`; - // 根据i18n和应用ID获取菜单 - $api_get_one = `/scm/cuc/cuc/functionInfo/getFunctionsInfoByI18n?_allow_badcode=true`; + // 根据应用ID获取菜单 + $api_get_one = `/api/mdc/cuc/functionInfo/getAllFunctionInfoByAppId?_allow_badcode=true`; // 删除多个菜单 $api_del_many = `/scm/cuc/cuc/functionInfo/deletebatchFunctionInfo`; diff --git a/src/app/routes/menu-manager/services/user.service.ts b/src/app/routes/menu-manager/services/user.service.ts deleted file mode 100644 index 2fc688ac..00000000 --- a/src/app/routes/menu-manager/services/user.service.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { Injectable, Injector } from '@angular/core'; -import { BaseService } from '@shared'; -@Injectable({ - providedIn: 'root', -}) -export class UserService extends BaseService { - // 保存单个实例接口地址 - $api_save_one = '/tms/cuc/oaUserHarvestAddress/save'; - // 保存多个实例接口地址 - $api_save_many = ''; - // 删除一个实例接口地址 - $api_del_one = ''; - // 删除多个实例接口地址 - $api_del_many = '/tms/cuc/oaUserHarvestAddress/deletebatch'; - // 获取单个实例接口地址 - $api_get_one = '/bcp/cuc/cuc/userInfo/getUserDetailByUserId'; - // 获取多个实例接口地址 - $api_get_many = ''; - // 获取实例分页数据接口地址 - $api_get_page = '/bcp/cuc/cuc/userInfo/getUserInfoListPage'; - // 导出接口地址 - $api_export = '/bcp/cuc/cuc/userInfo/exportUserList'; - // 导入接口地址 - $api_import = ''; - // 导入模板下载地址 - $api_import_download_tpl = ''; - // 获取项目列表 - $api_getProjectInfoList = '/scm/cuc/cuc/projectInfo/getProjectInfoList'; - // 根据项目获取应用列表 - $api_getAppInfoListByProjectId = '/scm/cuc/cuc/appInfo/getAppInfoListByProjectId'; - // 根据应用获取菜单列表 - $api_getAllFunctionInfoByAppId = '/scm/cuc/cuc/functionInfo/getAllFunctionInfoByAppId'; - // 获取菜单已拥有的按钮 - $api_getFunctionButtonInfo = '/scm/cuc/cuc/functionButton/getFunctionButtonInfo'; - // 获取菜单已拥有的数据字典 - $api_getFunctionDataInfo = '/scm/cuc/cuc/functionData/getFunctionDataInfo'; - // 获取所有按钮 - $api_getButtonInfoList = '/scm/cuc/cuc/buttonInfo/getButtonInfoList'; - // 获取按钮列表 - $api_getButtonInfoPage = '/scm/cuc/cuc/buttonInfo/getButtonInfoPage'; - // 新增编辑按钮信息 - $api_saveButtonInfo = '/scm/cuc/cuc/buttonInfo/saveButtonInfo'; - // 查看菜单信息 - $api_getFunctionInfo = '/scm/cuc/cuc/functionInfo/getFunctionInfo'; - - // 删除 - $api_deletebatchButton = '/scm/cuc/cuc/buttonInfo/deletebatchButton'; - // 新增 and 编辑 - $api_saveFunctionInfo = '/scm/cuc/cuc/functionInfo/saveFunctionInfo'; - // 删除菜单(含多个) - $api_deletebatchFunctionInfo = '/scm/cuc/cuc/functionInfo/deletebatchFunctionInfo'; - // 字典列表 - $api_getDictTree = '/scce/pbc/pbc/dict/getDictTree'; - // 删除字典 - $api_delete = '/scce/pbc/pbc/dict/delete'; - // 删除字典选项 - $api_deleteById = '/scce/pbc/pbc/dictItems/deleteById'; - // 字典详情 - $api_getDictItemsByDictId = '/scce/pbc/pbc/dictItems/getDictItemsByDictId'; - // 编辑字典 - $api_dictUpdate = '/scce/pbc/pbc/dict/update'; - // 新增字典 - $api_dictSave = '/scce/pbc/pbc/dict/save'; - // 编辑字典选项 - $api_dictItemsUpdate = '/scce/pbc/pbc/dictItems/update'; - // 新增字典选项 - $api_dictItemsSave = '/scce/pbc/pbc/dictItems/save'; - // 角色模板列表查询 - $api_getRoleTemplateInfoList = '/scm/cuc/cuc/roleTemplateInfo/getRoleTemplateInfoList'; - // 删除角色模板(含多个) - $api_removeRoleTemplateInfo = '/scm/cuc/cuc/roleTemplateInfo/removeRoleTemplateInfo'; - // 编辑角色模板信息 - $api_updateRoleTemplateInfo = '/scm/cuc/cuc/roleTemplateInfo/updateRoleTemplateInfo'; - // 获取角色详情 - $api_getRoleInfo = '/scm/cuc/cuc/roleInfo/getRoleInfo'; - // 角色列表 - $api_getAppRoleInfoList = '/scm/cuc/cuc/roleInfo/getAppRoleInfoList'; - // 删除角色 - $api_removeRoleInfo = '/scm/cuc/cuc/roleInfo/removeRoleInfo'; - // 编辑角色 - $api_updateRoleInfo = '/scm/cuc/cuc/roleInfo/updateRoleInfo'; - // 获取角色模板详情 - $api_getRoleTemplateInfo = '/scm/cuc/cuc/roleTemplateInfo/getRoleTemplateInfo'; - // 获取角色模板权限 - $api_getRoleTemplateAuthority = '/scm/cuc/cuc/roleTemplateInfo/getRoleTemplateAuthority'; - // 角色菜单下已拥有按钮权限 - $api_getRoleFunctionButtonAuthority = '/scm/cuc/cuc/roleAuthority/getRoleFunctionButtonAuthority'; - // 角色菜单下已拥有数据权限 - $api_getRoleFunctionDataAuthorit = '/scm/cuc/cuc/roleAuthority/getRoleFunctionDataAuthority'; - // 用户角色关系列表 - $api_getUserRoleList = '/scm/cuc/cuc/userAuthority/getUserRoleList'; - // 删除用户角色关系列表 - $api_deleteUserAuthority = '/scm/cuc/cuc/userAuthority/deleteUserAuthority'; - // 用户列表 - $api_getUserListPage = '/scm/cuc/cuc/userBasicInfo/getUserListPage'; - // 获取所有应用 - $api_getAppList = '/scm/cuc/cuc/appInfo/getAppList'; - // 用户详情 - $api_getUserInfo = '/scm/cuc/cuc/userBasicInfo/getUserInfo'; - // 获取用户下所有应用 - $api_getAppInfoByUserId = '/scm/cuc/cuc/userApp/getAppInfoByUserId'; - // 获取用户下所有企业 - $api_getUserEnterpriseList = '/scm/cuc/cuc/userEnterprise/getUserEnterpriseList'; - // 应用用户列表 - $api_getAppUserList = '/scm/cuc/cuc/userApp/getAppUserList'; - // 新增应用用户 - $api_saveAppUser = '/scm/cuc/cuc/userApp/saveAppUser'; - // 编辑应用用户信息 - $api_updateAppUser = '/scm/cuc/cuc/userApp/updateAppUser'; - // 删除应用用户 - $api_deleteAppUser = '/scm/cuc/cuc/userApp/deleteAppUser'; - // 获取应用列表 - $api_getAppListByLesseeId = '/scm/cuc/cuc/appInfo/getAppListByLesseeId'; - // 获取应用用户详情 - $api_getAppUser = '/scm/cuc/cuc/userApp/getAppUser'; - // 重置密码 - $api_resetPw = '/scm/cuc/cuc/userBasicInfo/resetPassword'; - // 冻结或恢复应用用户 - $api_userApp_freezeOrResume = '/scm/cuc/cuc/userApp/freezeOrResume'; - // 新增角色 - $api_roleInfo_saveRoleInfo = '/scm/cuc/cuc/roleInfo/saveRoleInfo'; - // 编辑角色 - $api_roleInfo_updateRoleInfo = '/scm/cuc/cuc/roleInfo/updateRoleInfo'; - // 冻结或恢复角色 - $api_roleInfo_freezeOrResume = '/scm/cuc/cuc/roleInfo/freezeOrResume'; - // 获取角色下用户列表 - $api_getRoleUserList = '/scm/cuc/cuc/userAuthority/getRoleUserList'; - - constructor(public injector: Injector) { - super(injector); - } -} diff --git a/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.ts b/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.ts index 76a07da2..7e409338 100644 --- a/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.ts +++ b/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.ts @@ -47,7 +47,7 @@ export class InvoicedListComponent implements OnInit { switch (e.type) { case 'checkbox': this.selectedRows = e.checkbox!; - this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.callNo, 0); + this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.vatnotax, 0); break; } } @@ -178,9 +178,9 @@ export class InvoicedListComponent implements OnInit { { title: '网络货运人', index: 'ltdId', width: 120 }, { title: '购买人', index: 'artoname', width: 90 }, { title: '订单数', index: 'ordlines', width: 90 }, - { title: '价税合计', index: 'callNo', width: 100 }, - { title: '金额', index: 'disvatnotax', width: 90 }, - { title: '税率', index: 'callNo', width: 90 }, + { title: '价税合计', index: 'vatmoney', width: 100 }, + { title: '金额', index: 'vatnotax', width: 90 }, + { title: '税率', index: 'vatrate', width: 90 }, { title: '税额', index: 'disvattax', width: 90 }, { title: '开票日期', index: 'invoicedate', type: 'date', width: 150 }, { diff --git a/src/app/shared/shared-third.module.ts b/src/app/shared/shared-third.module.ts index d65e2d4e..e8a2dec2 100644 --- a/src/app/shared/shared-third.module.ts +++ b/src/app/shared/shared-third.module.ts @@ -10,14 +10,43 @@ const TinyMce = NgxTinymceModule.forRoot({ config: { language_url: 'assets/tinymce/langs/zh_CN.js', language: 'zh_CN', + placeholder: '请输入内容', plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste imagetools wordcount' + 'advlist autolink link image lists charmap print preview hr anchor pagebreak', + 'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking', + 'table emoticons template paste help' ], toolbar: - 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }' + 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | ' + + 'bullist numlist outdent indent | link image | print preview media fullscreen | ' + + 'forecolor backcolor emoticons | help', + menu: { + favs: { title: '常用', items: 'code visualaid | searchreplace | emoticons' } + }, + menubar: 'favs file edit view insert format tools table help', + content_css: 'css/content.css', + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }', + automatic_uploads: false, + images_upload_url: apiConf.fileUpload, + paste_block_drop: false, + paste_data_images: true, + image_advtab: true, + color_cols: 4, + font_formats: + '宋体=simsun,serif;' + + '仿宋=FangSong,serif;' + + '新宋体=NSimSun,serif;' + + '黑体=SimHei,serif;' + + '楷体=KaiTi,serif;' + + '微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;' + + '隶书=LiSu,serif;' + + '幼圆=YouYuan,serif;' + + '华文细黑=STXihei,serif;' + + '华文楷体=STKaiti,serif;' + + '华文宋体=STSong,serif;' + + // 默认字体 + 'Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats', + fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt' } }); diff --git a/src/assets/mocks/platform/tms-obc-web.json b/src/assets/mocks/platform/tms-obc-web.json new file mode 100644 index 00000000..fd9f7dbe --- /dev/null +++ b/src/assets/mocks/platform/tms-obc-web.json @@ -0,0 +1,466 @@ +{ + "success": true, + "data": { + "menu": [ + { + "text": "样例", + "hideInBreadcrumb": true, + "children": [ + { + "text": "用户中心", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "货主管理", + "icon": "anticon anticon-dashboard", + "link": "/demo/zorro", + "children": [ + { + "text": "企业列表", + "icon": "anticon anticon-dashboard", + "link": "/usercenter/freight/list" + }, + { + "text": "道运证", + "hide": true, + "icon": "anticon anticon-dashboard", + "link": "/usercenter/freight/list/view/:id" + }, + { + "text": "货主详情", + "hide": true, + "icon": "anticon anticon-dashboard", + "link": "/usercenter/freight/list/detail/:id" + }, + { + "text": "企业认证", + "hide": true, + "icon": "anticon anticon-dashboard", + "link": "/usercenter/freight/new" + }, + { + "text": "企业审核列表", + "icon": "anticon anticon-dashboard", + "link": "/usercenter/freight/enterprise" + }, + { + "text": "企业审核列表详情", + "hide": true, + "icon": "anticon anticon-dashboard", + "link": "/usercenter/freight/enterprise/view/:id" + }, + { + "text": "货主员工列表", + "icon": "anticon anticon-dashboard", + "link": "/usercenter/freight/user" + } + ] + }, + { + "text": "司机管理", + "icon": "anticon anticon-dashboard", + "link": "/demo/zorro", + "children": [ + { + "text": "司机列表", + "icon": "anticon anticon-dashboard", + "link": "/usercenter/driver" + }, + { + "text": "司机详情", + "hide": true, + "icon": "anticon anticon-dashboard", + "link": "/usercenter/driver/detail/:id" + }, + { + "text": "车队长列表", + "icon": "anticon anticon-dashboard", + "link": "/usercenter/driver/captain" + } + ] + } + ] + }, + { + "text": "运力管理", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "车辆列表", + "link": "/vehicle/list" + }, + { + "hide": true, + "text": "车辆列表详情", + "link": "/vehicle/list/detail/:id" + }, + { + "text": "车辆审核列表", + "link": "/vehicle/audit" + }, + { + "hide": true, + "text": "车辆审核列表详情", + "link": "/vehicle/audit/detail/:id" + } + ] + }, + { + "text": "货源管理", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "货源管理", + "icon": "anticon anticon-dashboard", + "link": "/supply-management/index", + "reuse": true + }, + { + "text": "货源管理", + "icon": "anticon anticon-dashboard", + "link": "/supply-management/index", + "hide": true + }, + { + "text": "货源详情", + "icon": "anticon anticon-dashboard", + "link": "/supply-management/bulk-detail", + "hide": true + }, + { + "text": "修改货源", + "icon": "anticon anticon-dashboard", + "link": "/supply-management/vehicle-amend/:id", + "hide": true + }, + { + "text": "货源详情", + "icon": "anticon anticon-dashboard", + "link": "/supply-management/vehicle-detail/:id", + "hide": true + } + ] + }, + { + "text": "订单管理", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "整车订单", + "icon": "anticon anticon-dashboard", + "link": "/order-management/vehicle", + "reuse": true + }, + { + "text": "大宗订单", + "icon": "anticon anticon-dashboard", + "link": "/order-management/bulk" + }, + { + "text": "结算单", + "children": [ + { + "text": "司机管理", + "icon": "anticon anticon-dashboard", + "link": "/order-management/driver-manage" + }, + { + "text": "车辆管理", + "icon": "anticon anticon-dashboard", + "link": "/order-management/car-manage" + } + ] + }, + { + "text": "补录单", + "children": [ + { + "text": "补录运单", + "icon": "anticon anticon-dashboard", + "link": "/order-management/additionalc" + }, + { + "text": "补录运单详情", + "icon": "anticon anticon-dashboard", + "link": "/order-management/additionalc-detail/:id", + "hide": true + } + ] + }, + { + "text": "风险单管理", + "icon": "anticon anticon-dashboard", + "link": "/order-management/risk" + }, + { + "text": "投诉管理", + "icon": "anticon anticon-dashboard", + "link": "/order-management/complaint" + }, + { + "text": "整车订单详情", + "icon": "anticon anticon-dashboard", + "link": "/order-management/vehicle-detail/:id", + "hide": true + }, + { + "text": "大宗订单详情", + "icon": "anticon anticon-dashboard", + "link": "/order-management/bulk-detail/:id", + "hide": true + }, + { + "text": "货源详情", + "icon": "anticon anticon-dashboard", + "link": "/order-management/vehicle-detail", + "hide": true + } + ] + }, + { + "text": "运单管理", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "整车运单", + "link": "/waybill-management/vehicle" + }, + { + "hide": true, + "text": "整车运单详情", + "link": "/waybill-management/vehicle-detail/:id" + }, + { + "text": "大宗运单", + "link": "/waybill-management/bulk" + }, + { + "hide": true, + "text": "大宗运单详情", + "link": "/waybill-management/bulk-detail/:id" + } + ] + }, + { + "text": "财务管理", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "费用管理", + "link": "/financial-management/cost-management" + }, + { + "text": "费用浏览", + "hide": true, + "link": "/financial-management/cost-management/detail/:id" + }, + { + "text": "应收费用单", + "hide": true, + "link": "/financial-management/cost-management/expenses-receivable/:id" + }, + { + "text": "应付费用单", + "hide": true, + "link": "/financial-management/cost-management/expenses-payable/:id" + }, + { + "text": "货主账户", + "link": "/financial-management/freight-account" + }, + { + "text": "货主账户详情", + "hide": true, + "link": "/financial-management/freight-account/detail/:id" + }, + { + "text": "司机账户", + "link": "/financial-management/driver-account" + }, + { + "text": "司机账户详情", + "hide": true, + "link": "/financial-management/driver-account/detail/:id" + }, + { + "text": "充值记录", + "link": "/financial-management/recharge-record" + }, + { + "text": "提现记录", + "link": "/financial-management/withdrawals-record" + }, + { + "text": "提现详情", + "hide": true, + "link": "/financial-management/withdrawals-record/detail/:id" + }, + { + "text": "异常入金", + "link": "/financial-management/abnormal-gold" + }, + { + "text": "支付记录", + "link": "/financial-management/payment-record" + }, + { + "text": "交易流水", + "link": "/financial-management/transaction-flow" + } + ] + }, + { + "text": "票务管理", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "销项发票", + "children": [ + { + "text": "开票申请", + "link": "/ticket/invoice-requested" + }, + { + "text": "开票订单明细", + "link": "/ticket/invoice-requested/detail/:id", + "hide": true + }, + { + "text": "销票处理", + "link": "/ticket/cancellation-invoice" + }, + { + "text": "销票订单明细", + "link": "/ticket/cancellation-invoice/detail/:id", + "hide": true + }, + { + "text": "已开发票", + "link": "/ticket/invoice-list" + }, + { + "text": "已开订单明细", + "link": "/ticket/invoice-list/detail/:id", + "hide": true + } + ] + }, + { + "text": "ETC发票", + "children": [ + { + "text": "申请发票", + "link": "/ticket/etc-invoice-requested" + }, + { + "text": "运单开票记录", + "link": "/ticket/etc-invoice-list" + }, + { + "text": "已开发票", + "link": "/ticket/etc-invoiced-logs" + }, + { + "text": "黑名单", + "link": "/ticket/etc-blacklist" + } + ] + } + ] + }, + { + "text": "合同管理", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "合同列表", + "link": "/contract-management/list" + } + ] + }, + { + "text": "系统设置", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "员工管理", + "group": true, + "children": [ + { + "text": "员工管理", + "link": "/system/staff-management" + }, + { + "text": "角色管理", + "link": "/system/role-management" + } + ] + }, + { + "text": "CRM客户管理", + "link": "/system/crm-management" + }, + { + "text": "结算客户管理", + "link": "/system/close-account" + }, + { + "text": "网络货运人", + "link": "/system/network-freight" + }, + { + "text": "基础设置", + "link": "/system/basic-setting" + }, + { + "text": "车型车长配置", + "link": "/system/cart-config" + }, + { + "text": "基础配置", + "link": "/system/basic-config" + }, + { + "text": "系统操作日志", + "link": "/system/system-logs" + }, + { + "text": "用户登录日志", + "link": "/system/user-logs" + }, + { + "text": "版本发布记录", + "link": "/system/version-logs" + }, + { + "text": "协议配置", + "link": "/system/agreement-config" + }, + { + "text": "审核驳回理由配置", + "link": "/system/audit-reason-config" + }, + { + "text": "系统配置", + "link": "/system/system-config" + }, + { + "text": "货物名称配置", + "link": "/system/goods-name-config" + } + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/src/assets/mocks/platform/tms-smc-web.json b/src/assets/mocks/platform/tms-smc-web.json new file mode 100644 index 00000000..1ac49025 --- /dev/null +++ b/src/assets/mocks/platform/tms-smc-web.json @@ -0,0 +1,294 @@ +{ + "menu": [ + { + "text": "主导航", + "i18n": "menu.main", + "group": true, + "hideInBreadcrumb": true, + "children": [ + { + "text": "消息中心", + "i18n": "message.center", + "icon": "anticon anticon-dashboard", + "link": "/notify/center" + }, + { + "text": "发布货源", + "i18n": "menu.publish.goods.source", + "icon": "anticon anticon-dashboard", + "children": [ + { + "text": "整车发货", + "i18n": "menu.onecar.delivergoods", + "link": "/pbg/onecar-publish" + }, + { + "text": "大宗发货", + "i18n": "menu.bulk.delivergoods", + "link": "/pbg/bulk-publish" + }, + { + "text": "常用地址", + "i18n": "menu.common.address", + "link": "/pbg/common-address" + } + ] + }, + { + "text": "货源管理", + "icon": "anticon anticon-dashboard", + "group": true, + "children": [ + { + "text": "货源管理", + "icon": "anticon anticon-dashboard", + "link": "/supply-management/index", + "reuse": true + }, + { + "text": "货源详情", + "icon": "anticon anticon-dashboard", + "link": "/supply-management/bulk-detail", + "hide": true + }, + { + "text": "货源详情", + "icon": "anticon anticon-dashboard", + "link": "/supply-management/vehicle-detail", + "hide": true + } + ] + }, + { + "text": "订单管理", + "i18n": "menu.ctc", + "icon": "anticon anticon-dashboard", + "children": [ + { + "text": "整车订单", + "i18n": "menu.ctc.order.onecar", + "link": "/ctc/order/onecar" + }, + { + "text": "整车订单详情", + "i18n": "menu.ctc.order.onecar.detail", + "link": "/ctc/order/onecar/detail", + "hide": true + }, + { + "text": "大宗订单", + "i18n": "menu.ctc.order.bulk", + "link": "/ctc/order/bulk" + }, + { + "text": "大宗订单详情", + "i18n": "menu.ctc.order.bulk.detail", + "link": "/ctc/order/bulk/detail", + "hide": true + }, + { + "text": "结算单", + "i18n": "menu.ctc.order.settle.settleOrder", + "children": [ + { + "text": "上传订单", + "i18n": "menu.ctc.order.settle.uploadOrder", + "link": "/ctc/order/settle/uploadOrder" + }, + { + "text": "司机管理", + "i18n": "menu.ctc.order.settle.driver", + "link": "/ctc/order/settle/driver" + }, + { + "text": "车队长", + "i18n": "menu.ctc.order.settle.carcaptain", + "link": "/ctc/order/settle/carcaptain" + }, + { + "text": "车辆管理", + "i18n": "menu.ctc.order.settle.car", + "link": "/ctc/order/settle/car" + }, + { + "text": "检测订单", + "i18n": "menu.ctc.order.settle.recordOrder", + "link": "/ctc/order/settle/recordOrder" + }, + { + "text": "订单详情", + "i18n": "menu.ctc.order.settle.detail", + "link": "/ctc/order/settle/detail", + "hide": true + } + ] + }, + { + "text": "风险单管理", + "i18n": "menu.ctc.order.risk.riskorder", + "link": "/ctc/order/risk/riskorder" + }, + { + "text": "风险单详情", + "i18n": "menu.ctc.order.risk.detail", + "link": "/ctc/order/risk/detail", + "hide": true + }, + { + "text": "投诉管理", + "i18n": "menu.ctc.order.complaint.complaintOrder", + "link": "/ctc/order/complaint" + }, + { + "text": "投诉详情", + "i18n": "menu.ctc.order.complaint.detail", + "link": "/ctc/order/complaint/detail", + "hide": true + } + ] + }, + { + "text": "公司管理", + "i18n": "menu.company", + "icon": "anticon anticon-appstore", + "children": [ + { + "text": "员工管理", + "i18n": "menu.company.staff", + "icon": "anticon anticon-dashboard", + "link": "/company/staff" + }, + { + "text": "角色管理", + "i18n": "menu.company.roles", + "link": "/company/roles" + }, + { + "text": "项目管理", + "i18n": "menu.company.project", + "link": "/company/project" + } + ] + }, + { + "text": "车辆管理", + "i18n": "menu.car", + "icon": "anticon anticon-dashboard", + "children": [ + { + "text": "熟车管理", + "i18n": "menu.car.list", + "link": "/car/list" + }, + { + "text": "新增熟车", + "i18n": "menu.car.add", + "link": "/car/add", + "hide": true + }, + { + "text": "熟车详情", + "i18n": "menu.car.view", + "link": "/car/view", + "hide": true + } + ] + }, + { + "title": "票务管理", + "i18n": "menu.ticket.management", + "icon": "anticon anticon-dashboard", + "children": [ + { + "text": "申请开票", + "i18n": "menu.ticket.management.apply.invoice", + "link": "/ticket-management/apply-invoice/list" + }, + { + "text": "申请记录", + "i18n": "menu.ticket.management.apply.record.list", + "link": "/ticket-management/apply-record/list" + }, + { + "text": "订单明细", + "i18n": "menu.ticket.management.apply.record.detail", + "link": "/ticket-management/apply-record/detail", + "hide": true + }, + { + "text": "已开具发票", + "i18n": "menu.ticket.management.invoiced.list", + "link": "/ticket-management/invoiced/list" + }, + { + "text": "开票订单明细", + "i18n": "menu.ticket.management.invoiced.detail", + "link": "/ticket-management/invoiced/detail", + "hide": true + }, + { + "text": "开票资料", + "i18n": "menu.ticket.management.invoiced.info", + "link": "/ticket-management/invoiced/info" + } + ] + }, + { + "title": "财务管理", + "i18n": "menu.financial.management", + "icon": "anticon anticon-dashboard", + "children": [ + { + "text": "订单支付", + "i18n": "menu.financial.management.order.payment", + "link": "/cwc/order-payment/list" + }, + { + "text": "账户管理", + "i18n": "menu.account.management", + "link": "/cwc/account-management/index" + }, + { + "text": "账户管理(子项目)", + "i18n": "menu.account.management.subproject", + "link": "/cwc/account-management-subproject/index" + }, + { + "text": "资金分配", + "i18n": "menu.fund.allocation", + "link": "/cwc/fund-allocation/index" + }, + { + "text": "账单管理", + "i18n": "menu.bill.management", + "link": "/cwc/bill-management/index" + }, + { + "text": "银行卡管理", + "i18n": "menu.bank.card.management", + "link": "/cwc/bank-card-management/index" + }, + { + "text": "绑定银行卡", + "i18n": "menu.bank.card.management.bind", + "link": "/cwc/bank-card-management/add", + "hide": true + }, + { + "text": "账户充值", + "i18n": "menu.account.management.recharge", + "link": "/cwc/account-rechage/index", + "hide": true + }, + { + "text": "资金分配记录", + "i18n": "menu.fund.allocation.record", + "link": "/cwc/fund-allocation/record", + "hide": true + } + ] + } + ] + } + ] +} \ No newline at end of file