Просмотр исходного кода

feat(miniprogram): enable CRM product webview workbench entry.

Co-authored-by: Cursor <cursoragent@cursor.com>
wuzilong 2 недель назад
Родитель
Сommit
0b0ecf2517
2 измененных файлов с 11 добавлено и 12 удалено
  1. 2 1
      miniprogram/config/api.js
  2. 9 11
      miniprogram/config/workbench-menus.js

+ 2 - 1
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'

+ 9 - 11
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'
+      }
     ]
   },
   {