@steedos-labs/content-compliance 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/default/objects/pepsico_approval_process/fields/approved.field.yml +2 -2
- package/main/default/objects/pepsico_approval_process/fields/pepsico_material_approval.field.yml +2 -0
- package/main/default/objects/pepsico_material_approval/fields/approval_materials_quantity.field.yml +2 -2
- package/main/default/objects/pepsico_material_approval/fields/ca_materials_quantity.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/current_step.field.yml +8 -8
- package/main/default/objects/pepsico_material_approval/fields/legal_materials_quantity.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/ns_materials_quantity.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/review_status.field.yml +2 -2
- package/main/default/objects/pepsico_material_approval/fields/sra_materials_quantity.field.yml +1 -1
- package/main/default/pages/pepsico_content_review_detail.page.amis.json +54 -63
- package/main/default/pages/pepsico_material_detail.page.amis.json +12 -17
- package/package.json +4 -1
|
@@ -10,13 +10,13 @@ options:
|
|
|
10
10
|
color: '#808080'
|
|
11
11
|
- label: 驳回
|
|
12
12
|
value: rejected
|
|
13
|
-
color: '#
|
|
13
|
+
color: '#3a7aaa'
|
|
14
14
|
- label: 处理中
|
|
15
15
|
value: progess
|
|
16
16
|
color: '#808080'
|
|
17
17
|
- label: 终止审核
|
|
18
18
|
value: terminate
|
|
19
|
-
color: '#
|
|
19
|
+
color: '#3a7aaa'
|
|
20
20
|
- label: 提交
|
|
21
21
|
value: submit
|
|
22
22
|
color: '#808080'
|
package/main/default/objects/pepsico_approval_process/fields/pepsico_material_approval.field.yml
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
name: pepsico_material_approval
|
|
2
2
|
amis:
|
|
3
3
|
id: 'u:a73d2920cd05'
|
|
4
|
+
filters: []
|
|
4
5
|
group: 通用
|
|
5
6
|
is_wide: false
|
|
6
7
|
label: 材料审批单主表
|
|
@@ -8,3 +9,4 @@ reference_to: pepsico_material_approval
|
|
|
8
9
|
required: true
|
|
9
10
|
sort_no: 300
|
|
10
11
|
type: master_detail
|
|
12
|
+
write_requires_master_read: true
|
package/main/default/objects/pepsico_material_approval/fields/approval_materials_quantity.field.yml
CHANGED
|
@@ -7,11 +7,11 @@ is_wide: false
|
|
|
7
7
|
label: 固定人员审核通过素材数
|
|
8
8
|
precision: 18
|
|
9
9
|
scale: 0
|
|
10
|
-
sort_no:
|
|
10
|
+
sort_no: 2150
|
|
11
11
|
summary_filters:
|
|
12
12
|
- field: approval_status
|
|
13
13
|
operation: '='
|
|
14
|
-
value:
|
|
14
|
+
value: true
|
|
15
15
|
summary_object: pepsico_material
|
|
16
16
|
summary_type: count
|
|
17
17
|
type: summary
|
|
@@ -10,27 +10,27 @@ label: 当前步骤
|
|
|
10
10
|
options:
|
|
11
11
|
- label: 开始
|
|
12
12
|
value: draft
|
|
13
|
-
color: '#
|
|
13
|
+
color: '#3a7aaa'
|
|
14
14
|
- label: AI审核
|
|
15
15
|
value: ai_review
|
|
16
|
-
color: '#
|
|
16
|
+
color: '#3a7aaa'
|
|
17
17
|
- label: 部门复审
|
|
18
18
|
value: departmental_review
|
|
19
|
-
color: '#
|
|
19
|
+
color: '#3a7aaa'
|
|
20
20
|
- label: 固定人员审核
|
|
21
21
|
value: personnel_review
|
|
22
|
-
color: '#
|
|
22
|
+
color: '#3a7aaa'
|
|
23
23
|
- label: 提交人修改
|
|
24
24
|
value: submitter_revisions
|
|
25
|
-
color: '#
|
|
25
|
+
color: '#3a7aaa'
|
|
26
26
|
- label: 等待上线
|
|
27
27
|
value: awaiting_deployment
|
|
28
|
-
color: '#
|
|
28
|
+
color: '#3a7aaa'
|
|
29
29
|
- label: 结束
|
|
30
30
|
value: conclusion
|
|
31
|
-
color: '#
|
|
31
|
+
color: '#3a7aaa'
|
|
32
32
|
readonly: true
|
|
33
33
|
required: false
|
|
34
|
-
sort_no:
|
|
34
|
+
sort_no: 2050
|
|
35
35
|
type: select
|
|
36
36
|
visible_on: '{}'
|
|
@@ -16,13 +16,13 @@ options:
|
|
|
16
16
|
color: '#808080'
|
|
17
17
|
- label: 驳回
|
|
18
18
|
value: rejected
|
|
19
|
-
color: '#
|
|
19
|
+
color: '#3a7aaa'
|
|
20
20
|
- label: 核准
|
|
21
21
|
value: approved
|
|
22
22
|
color: '#808080'
|
|
23
23
|
- label: 终止
|
|
24
24
|
value: terminated
|
|
25
|
-
color: '#
|
|
25
|
+
color: '#3a7aaa'
|
|
26
26
|
readonly: true
|
|
27
27
|
required: false
|
|
28
28
|
sort_no: 2050
|
|
@@ -12,54 +12,60 @@
|
|
|
12
12
|
{
|
|
13
13
|
"type": "container",
|
|
14
14
|
"body": [
|
|
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
|
-
|
|
15
|
+
{
|
|
16
|
+
"type": "tpl",
|
|
17
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">NS</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.ns_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(ns_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
|
|
18
|
+
"inline": true,
|
|
19
|
+
"wrapperComponent": "",
|
|
20
|
+
"id": "u:65eac8efca60",
|
|
21
|
+
"visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}",
|
|
22
|
+
"editorState": "default"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "tpl",
|
|
26
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">Legal</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.legal_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(legal_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
|
|
27
|
+
"inline": true,
|
|
28
|
+
"wrapperComponent": "",
|
|
29
|
+
"id": "u:1b743b2be88d",
|
|
30
|
+
"visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}",
|
|
31
|
+
"editorState": "default"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "tpl",
|
|
35
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">SRA</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-blue-900 hover:text-gray-600\">${_display.sra_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(sra_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
|
|
36
|
+
"inline": true,
|
|
37
|
+
"wrapperComponent": "",
|
|
38
|
+
"id": "u:912d54a43263",
|
|
39
|
+
"visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}",
|
|
40
|
+
"editorState": "default"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "tpl",
|
|
44
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">CA</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.ca_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(ca_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
|
|
45
|
+
"inline": true,
|
|
46
|
+
"wrapperComponent": "",
|
|
47
|
+
"id": "u:3dd4613d67ae",
|
|
48
|
+
"visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}",
|
|
49
|
+
"editorState": "default"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "tpl",
|
|
53
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">固定</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
|
|
54
|
+
"inline": true,
|
|
55
|
+
"wrapperComponent": "",
|
|
56
|
+
"id": "u:ec5fe1e3ac08",
|
|
57
|
+
"visibleOn": "${approval_type === 'personnel_review' && review_status != 'draft'}",
|
|
58
|
+
"editorState": "default"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "tpl",
|
|
62
|
+
"tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">Kids</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.kids_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(kids_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
63
|
+
"inline": true,
|
|
64
|
+
"wrapperComponent": "",
|
|
65
|
+
"id": "u:41fda075cc8b",
|
|
66
|
+
"visibleOn": "${child_files === 'yes' && review_status != 'draft'}",
|
|
67
|
+
"editorState": "default"
|
|
68
|
+
}
|
|
63
69
|
],
|
|
64
70
|
"size": "none",
|
|
65
71
|
"wrapperBody": false,
|
|
@@ -116,21 +122,6 @@
|
|
|
116
122
|
}
|
|
117
123
|
],
|
|
118
124
|
"id": "u:1d23240a23f8"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"title": "审计日志",
|
|
122
|
-
"reload": true,
|
|
123
|
-
"body": [
|
|
124
|
-
{
|
|
125
|
-
"type": "steedos-object-related-listview",
|
|
126
|
-
"label": "相关表",
|
|
127
|
-
"objectApiName": "${objectName}",
|
|
128
|
-
"recordId": "${recordId}",
|
|
129
|
-
"id": "u:aa4c193c215e",
|
|
130
|
-
"relatedObjectApiName": "audit_records"
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"id": "u:e53cafbcea1a"
|
|
134
125
|
}
|
|
135
126
|
],
|
|
136
127
|
"id": "u:96792c78f723",
|
|
@@ -204,13 +204,9 @@
|
|
|
204
204
|
{
|
|
205
205
|
"type": "image",
|
|
206
206
|
"id": "u:562456f79aca",
|
|
207
|
-
"enlargeAble": true,
|
|
208
|
-
"editorState": "default",
|
|
209
207
|
"imageMode": "original",
|
|
210
208
|
"src": "${_display.material.url}",
|
|
211
209
|
"visibleOn": "${extension_type === 'jpg' || extension_type === 'jpeg' || extension_type === 'png' || extension_type === 'gif' || extension_type === 'bmp' || extension_type === 'tiff' || extension_type === 'tif' || extension_type === 'svg' || extension_type === 'webp' || extension_type === 'ico' || extension_type === 'heif' || extension_type === 'heic'}",
|
|
212
|
-
"maxScale": 200,
|
|
213
|
-
"minScale": 50,
|
|
214
210
|
"style": {
|
|
215
211
|
"display": "inline-block"
|
|
216
212
|
}
|
|
@@ -225,21 +221,13 @@
|
|
|
225
221
|
"aspectRatio": "auto"
|
|
226
222
|
},
|
|
227
223
|
{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
"body": [
|
|
235
|
-
{
|
|
236
|
-
"type": "rooms-comments",
|
|
237
|
-
"id": "u:bb3f4d0c23f9",
|
|
238
|
-
"roomId": "objects:pepsico_material:${recordId}",
|
|
239
|
-
"className": "flex flex-col m-3 gap-3",
|
|
240
|
-
"baseUrl": "${context.rootUrl}"
|
|
224
|
+
"type": "iframe",
|
|
225
|
+
"id": "pdf-viewer",
|
|
226
|
+
"src": "${context.rootUrl}/api/page/public/pdf_view?fileUrl=/api/files/files/${_display.material.value}",
|
|
227
|
+
"visibleOn": "${extension_type === 'pdf'}"
|
|
241
228
|
}
|
|
242
229
|
],
|
|
230
|
+
"body": [],
|
|
243
231
|
"pullRefresh": {
|
|
244
232
|
"disabled": true
|
|
245
233
|
},
|
|
@@ -272,6 +260,13 @@
|
|
|
272
260
|
}
|
|
273
261
|
],
|
|
274
262
|
"id": "u:2bda634e52ac"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"type": "rooms-comments",
|
|
266
|
+
"id": "u:bb3f4d0c23f9",
|
|
267
|
+
"roomId": "objects:pepsico_material:${recordId}",
|
|
268
|
+
"className": "flex flex-col m-3 gap-3",
|
|
269
|
+
"baseUrl": "${context.rootUrl}"
|
|
275
270
|
}
|
|
276
271
|
],
|
|
277
272
|
"regions": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-labs/content-compliance",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "内容审核系统",
|
|
5
5
|
"main": "package.service.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"build:watch": "webpack --config webpack.config.js --watch"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"@azure/identity": "^2.1.0",
|
|
12
|
+
"@microsoft/microsoft-graph-client": "^3.0.7",
|
|
13
|
+
"isomorphic-fetch": "^3.0.0",
|
|
11
14
|
"amis-formula": "~6.3.0",
|
|
12
15
|
"mime-types": "2.1.35"
|
|
13
16
|
},
|