From 458940c66568fce65ed80d0b49b19de4c3876953 Mon Sep 17 00:00:00 2001 From: wuzilong <704541015@qq.com> Date: Thu, 15 Oct 2026 16:04:07 +0800 Subject: [PATCH] feat(miniprogram): enable CRM quote webview workbench entries. Co-authored-by: Cursor --- miniprogram/config/api.js | 5 ++++- miniprogram/config/workbench-menus.js | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/miniprogram/config/api.js b/miniprogram/config/api.js index a6fe65b0a..789257a55 100644 --- a/miniprogram/config/api.js +++ b/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' diff --git a/miniprogram/config/workbench-menus.js b/miniprogram/config/workbench-menus.js index 6a5893de0..a88de18ae 100644 --- a/miniprogram/config/workbench-menus.js +++ b/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' } ] },