scrm组dj_smartcarlife_dml.sql
11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
### 叶立庆 -----------------start-------------------
### 叶立庆 -----------------end---------------------
### 周海宝 -----------------start-------------------
### 周海宝 -----------------end---------------------
### 范富荣 -----------------start-------------------
### 范富荣 -----------------end---------------------
### 林永健 -----------------start-------------------
### 林永健 -----------------end---------------------
### 谢海旭 -----------------start-------------------
### 谢海旭 -----------------end---------------------
### 杨卫 -----------------start--------------------
DELETE FROM digital_management_template_item WHERE template_code = 'uuid-temp-024';
INSERT INTO digital_management_template_item (code, parent_code, template_code, name, `key`, data_type, `order`, placeholder, prefix, suffix, backend_rule, front_rule, is_compute_rate, created_by, created_date, deleted_flag) values
('024_1', NULL, 'uuid-temp-024', '业绩报告', 'performanceReport024', 'string', 1, NULL, NULL, NULL, '{"type": "text","maxlength": 17}', NULL, NULL, 'system', NOW(), 'N'),
('024_0','024_1','uuid-temp-024','当日休假','dayOffStatus','bool',0,NULL,NULL,NULL,NULL,'{"type": "radio", "width": "224px","addHtml": "text", "sortable": "custom", "isLabelNoLine":true, "rule": [{"required": true,"message": "当日休假不能为空"}], "optionList": [{"id":1, "label": "是"},{"id":2, "label": "否"}],"optionId": "id","optionLabel": "label"}',NULL,'system','2025-01-06 19:44:05','N'),
('024_2', '024_1', 'uuid-temp-024', '今日所在门店', 'todayStore024', 'string', 1, '请输入', NULL, NULL, NULL, '{"type": "textarea", "rows": 3, "addHtml": "textarea", "isLabelNoLine": "true", "maxlength": 800, "isAgreeTrim": "true", "width": "224px", "rule": [{"required": true, "message": "今日所在门店不能为空"}]}', NULL, 'system', NOW(), 'N'),
('024_3', '024_1', 'uuid-temp-024', '今日谈客', 'todayGuestReception024', 'int', 2, '请输入', NULL, '人', NULL, '{"type": "input", "maxlength": 4, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "今日谈客不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('024_4', '024_1', 'uuid-temp-024', '今日成交', 'todayTransactions024', 'int', 3, '请输入', NULL, '台', NULL, '{"type": "input", "maxlength": 4, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "今日成交不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('024_5', '024_1', 'uuid-temp-024', '今日成交产值', 'todayTransactionOutput024', 'float', 4, '请输入', NULL, '元', NULL, '{"type": "input", "maxlength": 12, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "今日成交产值不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('024_6', '024_1', 'uuid-temp-024', '今日成交率', 'todayTransactionRate024', 'float', 5, '请输入', NULL, '%', NULL, '{"type": "input", "maxlength": 5, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "今日成交率不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('024_7', '024_1', 'uuid-temp-024', '本月谈客', 'monthGuestReception024', 'int', 6, '请输入', NULL, '人', NULL, '{"type": "input", "maxlength": 6, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "本月谈客不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('024_8', '024_1', 'uuid-temp-024', '本月成交', 'monthTransactions024', 'int', 7, '请输入', NULL, '台', NULL, '{"type": "input", "maxlength": 6, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "本月成交不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('024_9', '024_1', 'uuid-temp-024', '本月成交产值', 'monthTransactionOutput024', 'int', 8, '请输入', NULL, '元', NULL, '{"type": "input", "maxlength": 12, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "本月成交产值不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('024_10', '024_1', 'uuid-temp-024', '本月成交率', 'monthTransactionRate024', 'int', 9, '请输入', NULL, '%', NULL, '{"type": "input", "maxlength": 5, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "本月成交率不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
-- 父级分组:'工作计划与总结'
('024_11', NULL, 'uuid-temp-024', '工作总结', 'workPlanSummary', 'string', 2, NULL, NULL, NULL, '{"type": "text","maxlength": 17}', NULL, NULL, 'system', NOW(), 'N'),
('024_12', '024_11', 'uuid-temp-024', '今日工作事项', 'todayWorkItems024', 'string', 1, '若休假请填“无”,清晰扼要的总结今日的工作内容,例如:参加区域M9车型延保分享,清远驻店辅助,加强提升渗透率,电销安心包MAX', NULL, NULL, NULL, '{"type": "textarea", "rows": 4, "addHtml": "textarea", "isLabelNoLine": "true", "maxlength": 800, "isAgreeTrim": "true", "width": "224px", "rule": [{"required": true, "message": "今日工作事项不能为空"}]}', NULL, 'system', NOW(), 'N'),
('024_13', '024_11', 'uuid-temp-024', '明日工作计划', 'tomorrowWorkPlan024', 'string', 2, '若休假请填“无”,清晰扼要的总结明日的工作内容,例如:参加区域M9车型延保分享,清远驻店辅助,加强提升渗透率,电销安心包MAX', NULL, NULL, NULL, '{"type": "textarea", "rows": 4, "addHtml": "textarea", "isLabelNoLine": "true", "maxlength": 800, "isAgreeTrim": "true", "width": "224px", "rule": [{"required": true, "message": "明日工作计划不能为空"}]}', NULL, 'system', NOW(), 'N');
DELETE FROM digital_management_template_item WHERE template_code = 'uuid-temp-025';
INSERT INTO digital_management_template_item (code, parent_code, template_code, name, `key`, data_type, `order`, placeholder, prefix, suffix, backend_rule, front_rule, is_compute_rate, created_by, created_date, deleted_flag) values
('025_1', NULL, 'uuid-temp-025', '业绩报告', 'performanceReport025', 'string', 1, NULL, NULL, NULL, '{"type": "text","maxlength": 17}', NULL, NULL, 'system', NOW(), 'N'),
('025_0','025_1','uuid-temp-025','当日休假','dayOffStatus','bool',0,NULL,NULL,NULL,NULL,'{"type": "radio", "width": "224px","addHtml": "text", "sortable": "custom", "isLabelNoLine":true, "rule": [{"required": true,"message": "当日休假不能为空"}], "optionList": [{"id":1, "label": "是"},{"id":2, "label": "否"}],"optionId": "id","optionLabel": "label"}',NULL,'system','2025-01-06 19:44:05','N'),
('025_2', '025_1', 'uuid-temp-025', '今日所在门店', 'todayStore025', 'string', 1, '请输入', NULL, NULL, NULL, '{"type": "textarea", "rows": 3, "addHtml": "textarea", "isLabelNoLine": "true", "maxlength": 800, "isAgreeTrim": "true", "width": "224px", "rule": [{"required": true, "message": "今日所在门店不能为空"}]}', NULL, 'system', NOW(), 'N'),
('025_3', '025_1', 'uuid-temp-025', '今日谈客', 'todayGuestReception025', 'int', 2, '请输入', NULL, '人', NULL, '{"type": "input", "maxlength": 4, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "今日谈客不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('025_4', '025_1', 'uuid-temp-025', '今日成交', 'todayTransactions025', 'int', 3, '请输入', NULL, '台', NULL, '{"type": "input", "maxlength": 4, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "今日成交不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('025_5', '025_1', 'uuid-temp-025', '今日成交产值', 'todayTransactionOutput025', 'float', 4, '请输入', NULL, '元', NULL, '{"type": "input", "maxlength": 12, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "今日成交产值不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('025_6', '025_1', 'uuid-temp-025', '今日成交率', 'todayTransactionRate025', 'float', 5, '请输入', NULL, '%', NULL, '{"type": "input", "maxlength": 5, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "今日成交率不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('025_7', '025_1', 'uuid-temp-025', '本月谈客', 'monthGuestReception025', 'int', 6, '请输入', NULL, '人', NULL, '{"type": "input", "maxlength": 6, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "本月谈客不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('025_8', '025_1', 'uuid-temp-025', '本月成交', 'monthTransactions025', 'int', 7, '请输入', NULL, '台', NULL, '{"type": "input", "maxlength": 6, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "本月成交不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('025_9', '025_1', 'uuid-temp-025', '本月成交产值', 'monthTransactionOutput025', 'int', 8, '请输入', NULL, '元', NULL, '{"type": "input", "maxlength": 12, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "本月成交产值不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
('025_10', '025_1', 'uuid-temp-025', '本月成交率', 'monthTransactionRate025', 'int', 9, '请输入', NULL, '%', NULL, '{"type": "input", "maxlength": 5, "width": "224px", "addHtml": "text", "sortable": "custom", "isLabelNoLine": true, "inputAlign": "left", "rule": [{"required": true, "message": "本月成交率不能为空"}, {"validator": "ruleFn"}]}', 1, 'system', NOW(), 'N'),
-- 父级分组:'工作计划与总结'
('025_11', NULL, 'uuid-temp-025', '工作总结', 'workPlanSummary025', 'string', 2, NULL, NULL, NULL, '{"type": "text","maxlength": 17}', NULL, NULL, 'system', NOW(), 'N'),
('025_12', '025_11', 'uuid-temp-025', '今日工作事项', 'todayWorkItems025', 'string', 1, '若休假请填“无”,清晰扼要的总结今日的工作内容,例如:参加区域M9车型延保分享,清远驻店辅助,加强提升渗透率,电销安心包MAX', NULL, NULL, NULL, '{"type": "textarea", "rows": 4, "addHtml": "textarea", "isLabelNoLine": "true", "maxlength": 800, "isAgreeTrim": "true", "width": "224px", "rule": [{"required": true, "message": "今日工作事项不能为空"}]}', NULL, 'system', NOW(), 'N'),
('025_13', '025_11', 'uuid-temp-025', '明日工作计划', 'tomorrowWorkPlan025', 'string', 2, '若休假请填“无”,清晰扼要的总结明日的工作内容,例如:参加区域M9车型延保分享,清远驻店辅助,加强提升渗透率,电销安心包MAX', NULL, NULL, NULL, '{"type": "textarea", "rows": 4, "addHtml": "textarea", "isLabelNoLine": "true", "maxlength": 800, "isAgreeTrim": "true", "width": "224px", "rule": [{"required": true, "message": "明日工作计划不能为空"}]}', NULL, 'system', NOW(), 'N');
### 杨卫 -----------------end----------------------