first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
-- 医助个人业绩菜单
|
||||
-- 页面路径: /stats/assistant_performance
|
||||
-- 前端组件: /stats/assistant-performance/index
|
||||
-- 查询权限: stats.assistantPerformance/overview
|
||||
|
||||
-- 获取「数据统计」目录的 id(假设已经存在)
|
||||
SET @stats_root_id = (SELECT id FROM zyt_system_menu WHERE name = '数据统计' AND type = 'M' LIMIT 1);
|
||||
|
||||
INSERT INTO `zyt_system_menu`
|
||||
(`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_show`, `is_disable`, `create_time`, `update_time`)
|
||||
VALUES
|
||||
(@stats_root_id, 'C', '个人业绩', '', 10, 'stats.assistantPerformance/overview', '/stats/assistant_performance', '/stats/assistant-performance/index', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
@@ -0,0 +1,16 @@
|
||||
-- 处方业务订单:直接完单申请(不新增/关联支付单)
|
||||
-- 执行前确认表前缀为 zyt_;若已有相同 perms 则跳过。
|
||||
|
||||
SET @po_menu_id := (SELECT id FROM zyt_system_menu WHERE perms = 'tcm.prescriptionOrder/lists' LIMIT 1);
|
||||
|
||||
INSERT INTO zyt_system_menu (
|
||||
pid, type, name, icon, sort, perms, paths, component,
|
||||
selected, params, is_cache, is_show, is_disable, create_time, update_time
|
||||
)
|
||||
SELECT
|
||||
@po_menu_id, 'A', '直接完单申请', '', 62,
|
||||
'tcm.prescriptionOrder/requestCompletion', '', '',
|
||||
'', '', 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()
|
||||
FROM DUAL
|
||||
WHERE @po_menu_id IS NOT NULL
|
||||
AND NOT EXISTS (SELECT 1 FROM zyt_system_menu WHERE perms = 'tcm.prescriptionOrder/requestCompletion');
|
||||
@@ -0,0 +1,16 @@
|
||||
-- 处方业务订单:设置发货类型(甘草 / 洛阳)
|
||||
-- 执行前确认表前缀为 zyt_;若已有相同 perms 则跳过。
|
||||
|
||||
SET @po_menu_id := (SELECT id FROM zyt_system_menu WHERE perms = 'tcm.prescriptionOrder/lists' LIMIT 1);
|
||||
|
||||
INSERT INTO zyt_system_menu (
|
||||
pid, type, name, icon, sort, perms, paths, component,
|
||||
selected, params, is_cache, is_show, is_disable, create_time, update_time
|
||||
)
|
||||
SELECT
|
||||
@po_menu_id, 'A', '设置发货类型', '', 61,
|
||||
'tcm.prescriptionOrder/setShipMode', '', '',
|
||||
'', '', 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()
|
||||
FROM DUAL
|
||||
WHERE @po_menu_id IS NOT NULL
|
||||
AND NOT EXISTS (SELECT 1 FROM zyt_system_menu WHERE perms = 'tcm.prescriptionOrder/setShipMode');
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 业务订单:发货药方(甘草 / 洛阳),与确认发货 ship_mode 一致
|
||||
-- 执行前确认表前缀为 zyt_;若列已存在可跳过。
|
||||
|
||||
ALTER TABLE `zyt_tcm_prescription_order`
|
||||
ADD COLUMN `ship_mode` varchar(16) NOT NULL DEFAULT 'gancao'
|
||||
COMMENT '发货药方:gancao=甘草药房 direct=洛阳药房'
|
||||
AFTER `express_company`;
|
||||
Reference in New Issue
Block a user