@steedos-labs/content-compliance 0.0.3 → 0.0.5
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 +5 -5
- package/main/default/objects/pepsico_approval_process/pepsico_approval_process.object.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/pepsico_flow_rule.object.yml +1 -1
- package/main/default/objects/pepsico_material/buttons/pepsico_edit_material.button.yml +1 -1
- package/main/default/objects/pepsico_material/buttons/pepsico_review_material.button.yml +2 -1
- package/main/default/objects/pepsico_material/pepsico_material.object.yml +1 -1
- package/main/default/objects/pepsico_material_approval/buttons/standard_delete.button.js +5 -0
- package/main/default/objects/pepsico_material_approval/buttons/standard_delete.button.yml +1 -1
- package/main/default/objects/pepsico_material_approval/buttons/standard_edit.button.js +5 -0
- package/main/default/objects/pepsico_material_approval/buttons/standard_edit.button.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/current_step.field.yml +7 -0
- package/main/default/objects/pepsico_material_approval/fields/name.field.yml +2 -1
- package/main/default/objects/pepsico_material_approval/fields/review_status.field.yml +5 -5
- package/main/default/objects/pepsico_material_approval/listviews/all.listview.yml +22 -2
- package/main/default/objects/pepsico_material_approval/listviews/draft.listview.yml +4 -9
- package/main/default/objects/pepsico_material_approval/listviews/launching.listview.yml +4 -14
- package/main/default/objects/pepsico_material_approval/listviews/pending.listview.yml +17 -16
- package/main/default/objects/pepsico_material_approval/listviews/recent.listview.yml +11 -0
- package/main/default/objects/pepsico_material_approval/pepsico_material_approval.object.yml +1 -1
- package/main/default/objects/pepsico_reviewer/pepsico_reviewer.object.yml +1 -1
- package/main/default/pages/pepsico_material_detail.page.amis.json +12 -3
- package/main/default/triggers/pepsico_material_approval_changName.trigger.yml +1 -1
- package/package.json +1 -1
- package/main/default/objects/pepsico_material_approval/listviews/approved.listview.yml +0 -50
- package/main/default/objects/pepsico_material_approval/listviews/submitted.listview.yml +0 -50
|
@@ -7,19 +7,19 @@ label: 审核情况
|
|
|
7
7
|
options:
|
|
8
8
|
- label: 核准
|
|
9
9
|
value: approved
|
|
10
|
-
color: '#
|
|
10
|
+
color: '#808080'
|
|
11
11
|
- label: 驳回
|
|
12
12
|
value: rejected
|
|
13
|
-
color: '#
|
|
13
|
+
color: '#274e8f'
|
|
14
14
|
- label: 处理中
|
|
15
15
|
value: progess
|
|
16
|
-
color: '#
|
|
16
|
+
color: '#808080'
|
|
17
17
|
- label: 终止审核
|
|
18
18
|
value: terminate
|
|
19
|
-
color: '#
|
|
19
|
+
color: '#274e8f'
|
|
20
20
|
- label: 提交
|
|
21
21
|
value: submit
|
|
22
|
-
color: '#
|
|
22
|
+
color: '#808080'
|
|
23
23
|
required: false
|
|
24
24
|
sort_no: 100
|
|
25
25
|
type: select
|
|
@@ -11,7 +11,7 @@ amis_schema: |-
|
|
|
11
11
|
"label": "编辑素材",
|
|
12
12
|
"id": "u:f7ac1cc7ac3a",
|
|
13
13
|
"editorState": "default",
|
|
14
|
-
"visibleOn": "${current_step != 'awaiting_deployment' && current_step != 'conclusion'}"
|
|
14
|
+
"visibleOn": "${(extension_type === 'doc' || extension_type === 'docx') && current_step != 'awaiting_deployment' && current_step != 'conclusion'}"
|
|
15
15
|
}
|
|
16
16
|
],
|
|
17
17
|
"id": "u:f831ae845064",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
name: standard_delete
|
|
2
|
-
visible:
|
|
2
|
+
visible: false
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
name: standard_edit
|
|
2
|
-
visible:
|
|
2
|
+
visible: false
|
|
@@ -10,18 +10,25 @@ label: 当前步骤
|
|
|
10
10
|
options:
|
|
11
11
|
- label: 开始
|
|
12
12
|
value: draft
|
|
13
|
+
color: '#274e8f'
|
|
13
14
|
- label: AI审核
|
|
14
15
|
value: ai_review
|
|
16
|
+
color: '#274e8f'
|
|
15
17
|
- label: 部门复审
|
|
16
18
|
value: departmental_review
|
|
19
|
+
color: '#274e8f'
|
|
17
20
|
- label: 固定人员审核
|
|
18
21
|
value: personnel_review
|
|
22
|
+
color: '#274e8f'
|
|
19
23
|
- label: 提交人修改
|
|
20
24
|
value: submitter_revisions
|
|
25
|
+
color: '#274e8f'
|
|
21
26
|
- label: 等待上线
|
|
22
27
|
value: awaiting_deployment
|
|
28
|
+
color: '#274e8f'
|
|
23
29
|
- label: 结束
|
|
24
30
|
value: conclusion
|
|
31
|
+
color: '#274e8f'
|
|
25
32
|
readonly: true
|
|
26
33
|
required: false
|
|
27
34
|
sort_no: 2000
|
|
@@ -10,19 +10,19 @@ label: 审核状态
|
|
|
10
10
|
options:
|
|
11
11
|
- label: 草稿
|
|
12
12
|
value: draft
|
|
13
|
-
color: '#
|
|
13
|
+
color: '#808080'
|
|
14
14
|
- label: 审批中
|
|
15
15
|
value: under_review
|
|
16
|
-
color: '#
|
|
16
|
+
color: '#808080'
|
|
17
17
|
- label: 驳回
|
|
18
18
|
value: rejected
|
|
19
|
-
color: '#
|
|
19
|
+
color: '#274e8f'
|
|
20
20
|
- label: 核准
|
|
21
21
|
value: approved
|
|
22
|
-
color: '#
|
|
22
|
+
color: '#808080'
|
|
23
23
|
- label: 终止
|
|
24
24
|
value: terminated
|
|
25
|
-
color: '#
|
|
25
|
+
color: '#274e8f'
|
|
26
26
|
readonly: true
|
|
27
27
|
required: false
|
|
28
28
|
sort_no: 2050
|
|
@@ -3,15 +3,35 @@ columns:
|
|
|
3
3
|
- field: name
|
|
4
4
|
- field: owner
|
|
5
5
|
- field: owner_department
|
|
6
|
-
- field: materials_quantity
|
|
7
6
|
- field: current_step
|
|
8
7
|
- field: review_status
|
|
9
8
|
- field: launch
|
|
9
|
+
- field: aunch_time
|
|
10
|
+
- field: postpone_launch_date
|
|
11
|
+
- field: material_owner
|
|
12
|
+
- field: materials_quantity
|
|
10
13
|
- field: ns_reviewer
|
|
14
|
+
- field: ns_approval_status
|
|
15
|
+
- field: ns_materials_quantity
|
|
11
16
|
- field: legal_reviewer
|
|
17
|
+
- field: legal_approval_status
|
|
18
|
+
- field: legal_materials_quantity
|
|
12
19
|
- field: sra_reviewer
|
|
20
|
+
- field: sra_approval_status
|
|
21
|
+
- field: sra_materials_quantity
|
|
13
22
|
- field: ca_reviewer
|
|
23
|
+
- field: ca_approval_status
|
|
24
|
+
- field: ca_materials_quantity
|
|
14
25
|
- field: reviewer
|
|
26
|
+
- field: approval_status
|
|
27
|
+
- field: approval_materials_quantity
|
|
28
|
+
- field: kids_reviewer
|
|
29
|
+
- field: kids_approval_status
|
|
30
|
+
- field: ns_assistance
|
|
31
|
+
- field: legal_assistance
|
|
32
|
+
- field: assistance
|
|
33
|
+
- field: sra_assistance
|
|
34
|
+
- field: ca_assistance
|
|
15
35
|
- field: created
|
|
16
36
|
crud_mode: table
|
|
17
37
|
filter_scope: space
|
|
@@ -35,4 +55,4 @@ shared_to: space
|
|
|
35
55
|
sort:
|
|
36
56
|
- field_name: created
|
|
37
57
|
order: desc
|
|
38
|
-
sort_no:
|
|
58
|
+
sort_no: 100
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
name: draft
|
|
2
2
|
columns:
|
|
3
3
|
- field: name
|
|
4
|
-
- field: autonumber
|
|
5
4
|
- field: owner
|
|
6
5
|
- field: owner_department
|
|
7
|
-
- field: classification
|
|
8
|
-
- field: product
|
|
9
|
-
- field: material_type
|
|
10
|
-
- field: campaign_type
|
|
11
|
-
- field: launch_time
|
|
12
|
-
- field: available_channels
|
|
13
|
-
- field: communication_context
|
|
14
6
|
- field: materials_quantity
|
|
15
7
|
- field: reviewer
|
|
16
8
|
- field: ns_reviewer
|
|
17
9
|
- field: legal_reviewer
|
|
18
10
|
- field: sra_reviewer
|
|
19
11
|
- field: ca_reviewer
|
|
12
|
+
- field: material_owner
|
|
13
|
+
- field: child_files
|
|
14
|
+
- field: kids_reviewer
|
|
20
15
|
- field: created
|
|
21
16
|
crud_mode: table
|
|
22
17
|
enable_amis_schema: false
|
|
@@ -47,5 +42,5 @@ show_count: false
|
|
|
47
42
|
sort:
|
|
48
43
|
- field_name: created
|
|
49
44
|
order: desc
|
|
50
|
-
sort_no:
|
|
45
|
+
sort_no: 30
|
|
51
46
|
type: grid
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
name: launching
|
|
2
2
|
columns:
|
|
3
3
|
- field: name
|
|
4
|
-
- field: autonumber
|
|
5
4
|
- field: owner
|
|
6
5
|
- field: owner_department
|
|
7
|
-
- field: classification
|
|
8
|
-
- field: product
|
|
9
|
-
- field: material_type
|
|
10
|
-
- field: campaign_type
|
|
11
|
-
- field: launch_time
|
|
12
|
-
- field: available_channels
|
|
13
|
-
- field: communication_context
|
|
14
6
|
- field: materials_quantity
|
|
15
|
-
- field:
|
|
16
|
-
- field:
|
|
17
|
-
- field:
|
|
18
|
-
- field: sra_reviewer
|
|
19
|
-
- field: ca_reviewer
|
|
7
|
+
- field: launch
|
|
8
|
+
- field: postpone_launch_date
|
|
9
|
+
- field: material_owner
|
|
20
10
|
- field: created
|
|
21
11
|
crud_mode: table
|
|
22
12
|
enable_amis_schema: false
|
|
@@ -47,5 +37,5 @@ show_count: false
|
|
|
47
37
|
sort:
|
|
48
38
|
- field_name: created
|
|
49
39
|
order: desc
|
|
50
|
-
sort_no:
|
|
40
|
+
sort_no: 20
|
|
51
41
|
type: grid
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
name: pending
|
|
2
2
|
columns:
|
|
3
3
|
- field: name
|
|
4
|
-
- field: autonumber
|
|
5
4
|
- field: current_step
|
|
6
5
|
- field: review_status
|
|
6
|
+
- field: materials_quantity
|
|
7
|
+
- field: approval_status
|
|
8
|
+
- field: ns_approval_status
|
|
9
|
+
- field: legal_approval_status
|
|
10
|
+
- field: sra_approval_status
|
|
11
|
+
- field: ca_approval_status
|
|
12
|
+
- field: child_files
|
|
13
|
+
- field: kids_approval_status
|
|
14
|
+
- field: material_owner
|
|
7
15
|
- field: owner
|
|
8
16
|
- field: owner_department
|
|
9
|
-
- field: classification
|
|
10
|
-
- field: product
|
|
11
|
-
- field: material_type
|
|
12
|
-
- field: campaign_type
|
|
13
|
-
- field: launch_time
|
|
14
|
-
- field: available_channels
|
|
15
|
-
- field: communication_context
|
|
16
|
-
- field: materials_quantity
|
|
17
|
-
- field: reviewer
|
|
18
|
-
- field: ns_reviewer
|
|
19
|
-
- field: legal_reviewer
|
|
20
|
-
- field: sra_reviewer
|
|
21
|
-
- field: ca_reviewer
|
|
22
17
|
- field: created
|
|
23
18
|
crud_mode: table
|
|
24
19
|
enable_amis_schema: false
|
|
25
20
|
filter_scope: space
|
|
26
|
-
filters:
|
|
21
|
+
filters:
|
|
22
|
+
- - current_step
|
|
23
|
+
- in
|
|
24
|
+
- - ai_review
|
|
25
|
+
- departmental_review
|
|
26
|
+
- personnel_review
|
|
27
|
+
- submitter_revisions
|
|
27
28
|
is_enable: true
|
|
28
29
|
label: 待审核
|
|
29
30
|
locked: false
|
|
@@ -46,5 +47,5 @@ show_count: false
|
|
|
46
47
|
sort:
|
|
47
48
|
- field_name: created
|
|
48
49
|
order: desc
|
|
49
|
-
sort_no:
|
|
50
|
+
sort_no: 10
|
|
50
51
|
type: grid
|
|
@@ -191,11 +191,20 @@
|
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"title": "素材预览",
|
|
194
|
+
"disabledOn": "${extension_type === 'doc' || extension_type === 'docx'}",
|
|
194
195
|
"body": [
|
|
195
196
|
{
|
|
196
|
-
"type": "
|
|
197
|
-
"
|
|
198
|
-
"
|
|
197
|
+
"type": "image",
|
|
198
|
+
"imageMode": "original",
|
|
199
|
+
"enlargeAble": true,
|
|
200
|
+
"src": "${_display.material.url}",
|
|
201
|
+
"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'}"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "video",
|
|
205
|
+
"src": "${_display.material.url}",
|
|
206
|
+
"poster": "",
|
|
207
|
+
"visibleOn": "${extension_type === 'mp4' || extension_type === 'avi' || extension_type === 'mov' || extension_type === 'wmv' || extension_type === 'flv' || extension_type === 'mkv' || extension_type === 'webm' || extension_type === 'mpeg' || extension_type === 'mpg' || extension_type === '3gp' || extension_type === 'm4v'}"
|
|
199
208
|
}
|
|
200
209
|
]
|
|
201
210
|
},
|
|
@@ -16,7 +16,7 @@ handler: |-
|
|
|
16
16
|
//编号: 品牌-产品-分类第一层-可用渠道第一层
|
|
17
17
|
if (record.current_step === 'draft') {
|
|
18
18
|
const products = _.split(record.product, '-');
|
|
19
|
-
const pLists = await objects.picklists.find({ filters: ["code", "=", "
|
|
19
|
+
const pLists = await objects.picklists.find({ filters: ["code", "=", "223321001114213"] })
|
|
20
20
|
if (products.length > 0 &&pLists.length > 0) {
|
|
21
21
|
const pRecords = await objects.picklist_options.find({
|
|
22
22
|
filters: [
|
package/package.json
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
name: approved
|
|
2
|
-
columns:
|
|
3
|
-
- field: name
|
|
4
|
-
- field: autonumber
|
|
5
|
-
- field: current_step
|
|
6
|
-
- field: review_status
|
|
7
|
-
- field: owner
|
|
8
|
-
- field: owner_department
|
|
9
|
-
- field: classification
|
|
10
|
-
- field: product
|
|
11
|
-
- field: material_type
|
|
12
|
-
- field: campaign_type
|
|
13
|
-
- field: launch_time
|
|
14
|
-
- field: available_channels
|
|
15
|
-
- field: communication_context
|
|
16
|
-
- field: materials_quantity
|
|
17
|
-
- field: reviewer
|
|
18
|
-
- field: ns_reviewer
|
|
19
|
-
- field: legal_reviewer
|
|
20
|
-
- field: sra_reviewer
|
|
21
|
-
- field: ca_reviewer
|
|
22
|
-
- field: created
|
|
23
|
-
crud_mode: table
|
|
24
|
-
enable_amis_schema: false
|
|
25
|
-
filter_scope: space
|
|
26
|
-
filters: []
|
|
27
|
-
is_enable: true
|
|
28
|
-
label: 已审核
|
|
29
|
-
locked: false
|
|
30
|
-
scrolling_mode: standard
|
|
31
|
-
searchable_fields:
|
|
32
|
-
- field: name
|
|
33
|
-
- field: autonumber
|
|
34
|
-
- field: owner
|
|
35
|
-
- field: launch
|
|
36
|
-
- field: postpone_launch_date
|
|
37
|
-
- field: current_step
|
|
38
|
-
- field: review_status
|
|
39
|
-
- field: ns_approval_status
|
|
40
|
-
- field: legal_approval_status
|
|
41
|
-
- field: sra_approval_status
|
|
42
|
-
- field: ca_approval_status
|
|
43
|
-
- field: approval_status
|
|
44
|
-
shared_to: space
|
|
45
|
-
show_count: false
|
|
46
|
-
sort:
|
|
47
|
-
- field_name: created
|
|
48
|
-
order: desc
|
|
49
|
-
sort_no: 100
|
|
50
|
-
type: grid
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
name: submitted
|
|
2
|
-
columns:
|
|
3
|
-
- field: name
|
|
4
|
-
- field: autonumber
|
|
5
|
-
- field: current_step
|
|
6
|
-
- field: review_status
|
|
7
|
-
- field: owner
|
|
8
|
-
- field: owner_department
|
|
9
|
-
- field: classification
|
|
10
|
-
- field: product
|
|
11
|
-
- field: material_type
|
|
12
|
-
- field: campaign_type
|
|
13
|
-
- field: launch_time
|
|
14
|
-
- field: available_channels
|
|
15
|
-
- field: communication_context
|
|
16
|
-
- field: materials_quantity
|
|
17
|
-
- field: reviewer
|
|
18
|
-
- field: ns_reviewer
|
|
19
|
-
- field: legal_reviewer
|
|
20
|
-
- field: sra_reviewer
|
|
21
|
-
- field: ca_reviewer
|
|
22
|
-
- field: created
|
|
23
|
-
crud_mode: table
|
|
24
|
-
enable_amis_schema: false
|
|
25
|
-
filter_scope: space
|
|
26
|
-
filters: []
|
|
27
|
-
is_enable: true
|
|
28
|
-
label: 已提交
|
|
29
|
-
locked: false
|
|
30
|
-
scrolling_mode: standard
|
|
31
|
-
searchable_fields:
|
|
32
|
-
- field: name
|
|
33
|
-
- field: autonumber
|
|
34
|
-
- field: owner
|
|
35
|
-
- field: launch
|
|
36
|
-
- field: postpone_launch_date
|
|
37
|
-
- field: current_step
|
|
38
|
-
- field: review_status
|
|
39
|
-
- field: ns_approval_status
|
|
40
|
-
- field: legal_approval_status
|
|
41
|
-
- field: sra_approval_status
|
|
42
|
-
- field: ca_approval_status
|
|
43
|
-
- field: approval_status
|
|
44
|
-
shared_to: space
|
|
45
|
-
show_count: false
|
|
46
|
-
sort:
|
|
47
|
-
- field_name: created
|
|
48
|
-
order: desc
|
|
49
|
-
sort_no: 100
|
|
50
|
-
type: grid
|