diff --git a/miniprogram/config/api.js b/miniprogram/config/api.js index 6d9e645d4..a6fe65b0a 100644 --- a/miniprogram/config/api.js +++ b/miniprogram/config/api.js @@ -113,7 +113,8 @@ export const WORKBENCH_ROUTE_MAP = { 'pl-vehicle-recharge-apply': PAGE_PATHS.plVehicleRechargeApply, 'pl-transport-plan': PAGE_PATHS.plTransportPlan, 'pl-driver-plan': PAGE_PATHS.plDriverPlan, - 'pl-plan-webview': PAGE_PATHS.mpWebview + '?path=' + encodeURIComponent('/m/pl/plan') + 'pl-plan-webview': PAGE_PATHS.mpWebview + '?path=' + encodeURIComponent('/m/pl/plan'), + 'crm-product-webview': PAGE_PATHS.mpWebview + '?path=' + encodeURIComponent('/m/crm/product') } export const TOKEN_KEY = 'sx_token' diff --git a/miniprogram/config/workbench-menus.js b/miniprogram/config/workbench-menus.js index 406b7f4c6..6a5893de0 100644 --- a/miniprogram/config/workbench-menus.js +++ b/miniprogram/config/workbench-menus.js @@ -7,19 +7,17 @@ export const WORKBENCH_MODULES = [ { key: 'crm', title: 'CRM 管理', - desc: '线索 · 商机 · 客户 · 报价 · 合同', + desc: '产品管理', iconText: 'CRM', - visible: false, + visible: true, menus: [ - { name: '产品分类', enabled: false, code: 'crm-product-category', icon: '📂' }, - { name: '产品管理', enabled: false, icon: '📦' }, - { name: '线索管理', enabled: false, code: 'crm-clue', icon: '💡' }, - { name: '商机管理', enabled: false, code: 'crm-opportunity', icon: '🎯' }, - { name: '客户管理', enabled: false, code: 'crm-customer', icon: '👤' }, - { name: '公海池', enabled: false, code: 'crm-customer-pool', icon: '🌊' }, - { name: '报价管理', enabled: false, code: 'crm-quote', icon: '💰' }, - { name: '合同管理', enabled: false, code: 'crm-contract', icon: '📄' }, - { name: '合同审批', enabled: false, icon: '✅' } + { + name: '产品管理', + enabled: true, + code: 'crm-product-webview', + icon: '📦', + perms: 'mini:crm:product:list' + } ] }, {