/**
|
* OA 模块路径常量(pages.json path 不含前缀 /)
|
* 导航使用:uni.navigateTo({ url: OA_NAV.xxx })
|
*/
|
const P = "pages/oa";
|
|
export const OA_NAV = {
|
/** 人事管理 */
|
staffArchive: `/${P}/HrManage/staff-archive/index`,
|
staffContract: `/${P}/HrManage/staff-contract/index`,
|
regularApply: `/${P}/HrManage/regular-apply/index`,
|
transferApply: `/${P}/HrManage/transfer-apply/index`,
|
resignApply: `/${P}/HrManage/resign-apply/index`,
|
workHandover: `/${P}/HrManage/work-handover/index`,
|
postManage: `/${P}/HrManage/post-manage/index`,
|
/** 假勤管理 */
|
leaveApply: `/${P}/AttendManage/leave-apply/index`,
|
overtimeApply: `/${P}/AttendManage/overtime-apply/index`,
|
/** 报销管理 */
|
travelReimburse: `/${P}/ReimburseManage/travel-reimburse/index`,
|
costReimburse: `/${P}/ReimburseManage/cost-reimburse/index`,
|
reimburseDetail: `/${P}/ReimburseManage/reimburse-detail/index`,
|
reimburseForm: `/${P}/ReimburseManage/reimburse-form/index`,
|
/** 合同管理 */
|
purchaseContract: `/${P}/ContractManage/purchase-contract/index`,
|
saleContract: `/${P}/ContractManage/sale-contract/index`,
|
/** 审批管理 */
|
approveList: `/${P}/ApproveManage/approve-list/index`,
|
approveListTemplateSelect: `/${P}/ApproveManage/approve-list/template-select`,
|
approveListApply: `/${P}/ApproveManage/approve-list/apply`,
|
approveListDetail: `/${P}/ApproveManage/approve-list/detail`,
|
approveListApprove: `/${P}/ApproveManage/approve-list/approve`,
|
approveTemplate: `/${P}/ApproveManage/approve-template/index`,
|
approveTemplateEdit: `/${P}/ApproveManage/approve-template/edit`,
|
approveTemplateDetail: `/${P}/ApproveManage/approve-template/detail`,
|
/** 企业新闻 / 公告通知 */
|
enterpriseNews: `/${P}/EnterpriseNews/news-manage/index`,
|
noticeAnnouncement: `/${P}/NoticeAnnouncement/notice-manage/index`,
|
};
|
|
/** pages.json 注册用 path(无 / 前缀) */
|
export const OA_PAGE_PATHS = Object.fromEntries(
|
Object.entries(OA_NAV).map(([key, url]) => [
|
key,
|
url.replace(/^\//, ""),
|
])
|
);
|