Ver Fonte

feat(miniprogram): enable CRM quote webview workbench entries.

Co-authored-by: Cursor <cursoragent@cursor.com>
wuzilong há 2 semanas atrás
pai
commit
458940c665
2 ficheiros alterados com 19 adições e 2 exclusões
  1. 4 1
      miniprogram/config/api.js
  2. 15 1
      miniprogram/config/workbench-menus.js

+ 4 - 1
miniprogram/config/api.js

@@ -114,7 +114,10 @@ export const WORKBENCH_ROUTE_MAP = {
   'pl-transport-plan': PAGE_PATHS.plTransportPlan,
   'pl-driver-plan': PAGE_PATHS.plDriverPlan,
   'pl-plan-webview': PAGE_PATHS.mpWebview + '?path=' + encodeURIComponent('/m/pl/plan'),
-  'crm-product-webview': PAGE_PATHS.mpWebview + '?path=' + encodeURIComponent('/m/crm/product')
+  'crm-product-webview': PAGE_PATHS.mpWebview + '?path=' + encodeURIComponent('/m/crm/product'),
+  'crm-quote-webview': PAGE_PATHS.mpWebview + '?path=' + encodeURIComponent('/m/crm/quote'),
+  'crm-quote-approval-webview':
+    PAGE_PATHS.mpWebview + '?path=' + encodeURIComponent('/m/crm/quote/approval')
 }
 
 export const TOKEN_KEY = 'sx_token'

+ 15 - 1
miniprogram/config/workbench-menus.js

@@ -7,7 +7,7 @@ export const WORKBENCH_MODULES = [
   {
     key: 'crm',
     title: 'CRM 管理',
-    desc: '产品管理',
+    desc: '产品 · 报价',
     iconText: 'CRM',
     visible: true,
     menus: [
@@ -17,6 +17,20 @@ export const WORKBENCH_MODULES = [
         code: 'crm-product-webview',
         icon: '📦',
         perms: 'mini:crm:product:list'
+      },
+      {
+        name: '报价单管理',
+        enabled: true,
+        code: 'crm-quote-webview',
+        icon: '📝',
+        perms: 'mini:crm:quote:list'
+      },
+      {
+        name: '报价单审批',
+        enabled: true,
+        code: 'crm-quote-approval-webview',
+        icon: '✅',
+        perms: 'mini:crm:quote:approve'
       }
     ]
   },