@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.
Files changed (25) hide show
  1. package/main/default/objects/pepsico_approval_process/fields/approved.field.yml +5 -5
  2. package/main/default/objects/pepsico_approval_process/pepsico_approval_process.object.yml +1 -1
  3. package/main/default/objects/pepsico_flow_rule/pepsico_flow_rule.object.yml +1 -1
  4. package/main/default/objects/pepsico_material/buttons/pepsico_edit_material.button.yml +1 -1
  5. package/main/default/objects/pepsico_material/buttons/pepsico_review_material.button.yml +2 -1
  6. package/main/default/objects/pepsico_material/pepsico_material.object.yml +1 -1
  7. package/main/default/objects/pepsico_material_approval/buttons/standard_delete.button.js +5 -0
  8. package/main/default/objects/pepsico_material_approval/buttons/standard_delete.button.yml +1 -1
  9. package/main/default/objects/pepsico_material_approval/buttons/standard_edit.button.js +5 -0
  10. package/main/default/objects/pepsico_material_approval/buttons/standard_edit.button.yml +1 -1
  11. package/main/default/objects/pepsico_material_approval/fields/current_step.field.yml +7 -0
  12. package/main/default/objects/pepsico_material_approval/fields/name.field.yml +2 -1
  13. package/main/default/objects/pepsico_material_approval/fields/review_status.field.yml +5 -5
  14. package/main/default/objects/pepsico_material_approval/listviews/all.listview.yml +22 -2
  15. package/main/default/objects/pepsico_material_approval/listviews/draft.listview.yml +4 -9
  16. package/main/default/objects/pepsico_material_approval/listviews/launching.listview.yml +4 -14
  17. package/main/default/objects/pepsico_material_approval/listviews/pending.listview.yml +17 -16
  18. package/main/default/objects/pepsico_material_approval/listviews/recent.listview.yml +11 -0
  19. package/main/default/objects/pepsico_material_approval/pepsico_material_approval.object.yml +1 -1
  20. package/main/default/objects/pepsico_reviewer/pepsico_reviewer.object.yml +1 -1
  21. package/main/default/pages/pepsico_material_detail.page.amis.json +12 -3
  22. package/main/default/triggers/pepsico_material_approval_changName.trigger.yml +1 -1
  23. package/package.json +1 -1
  24. package/main/default/objects/pepsico_material_approval/listviews/approved.listview.yml +0 -50
  25. 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: '#7ed321'
10
+ color: '#808080'
11
11
  - label: 驳回
12
12
  value: rejected
13
- color: '#d0021b'
13
+ color: '#274e8f'
14
14
  - label: 处理中
15
15
  value: progess
16
- color: '#4a90e2'
16
+ color: '#808080'
17
17
  - label: 终止审核
18
18
  value: terminate
19
- color: '#9b9b9b'
19
+ color: '#274e8f'
20
20
  - label: 提交
21
21
  value: submit
22
- color: '#eee2e2'
22
+ color: '#808080'
23
23
  required: false
24
24
  sort_no: 100
25
25
  type: select
@@ -8,7 +8,7 @@ enable_lock_detail: true
8
8
  enable_workflow: true
9
9
  field_groups:
10
10
  - group_name: 通用
11
- icon: swarm_request
11
+ icon: action_list_component
12
12
  is_enable: true
13
13
  label: 签核历程
14
14
  version: 2
@@ -8,7 +8,7 @@ enable_lock_detail: true
8
8
  enable_workflow: true
9
9
  field_groups:
10
10
  - group_name: 通用
11
- icon: contact
11
+ icon: hierarchy
12
12
  is_enable: true
13
13
  label: 审核规则
14
14
  version: 2
@@ -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",
@@ -6,7 +6,8 @@ amis_schema: |-
6
6
  {
7
7
  "type": "button",
8
8
  "label": "查看素材",
9
- "id": "u:pepsico_review_material"
9
+ "id": "u:pepsico_review_material",
10
+ "visibleOn": "${(extension_type === 'doc' || extension_type === 'docx')}"
10
11
  }
11
12
  ],
12
13
  "regions": [
@@ -16,7 +16,7 @@ field_groups:
16
16
  collapsed: true
17
17
  - group_name: 系统信息
18
18
  collapsed: true
19
- icon: contact_list
19
+ icon: work_type_group
20
20
  is_enable: true
21
21
  label: 材料素材
22
22
  version: 2
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ standard_deleteVisible: function (object_name, record_id, record_permissions, record) {
3
+ return record.review_status === 'draft'
4
+ }
5
+ }
@@ -1,2 +1,2 @@
1
1
  name: standard_delete
2
- visible: ${record.review_status === 'draft'}
2
+ visible: false
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ standard_editVisible: function (object_name, record_id, record_permissions, record) {
3
+ return record.current_step === 'draft' || record.current_step === 'submitter_revisions'
4
+ }
5
+ }
@@ -1,2 +1,2 @@
1
1
  name: standard_edit
2
- visible: ${record.current_step === 'draft' || record.current_step === 'submitter_revisions'}
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
@@ -11,7 +11,8 @@ index: true
11
11
  inlineHelpText: 提交自动生成,规则为“编号:品牌-产品-分类第一层-可用渠道第一层"
12
12
  is_wide: true
13
13
  label: 审核主题
14
- required: true
14
+ readonly: true
15
+ required: false
15
16
  searchable: true
16
17
  sort_no: 400
17
18
  type: text
@@ -10,19 +10,19 @@ label: 审核状态
10
10
  options:
11
11
  - label: 草稿
12
12
  value: draft
13
- color: '#2a63bd'
13
+ color: '#808080'
14
14
  - label: 审批中
15
15
  value: under_review
16
- color: '#f5a623'
16
+ color: '#808080'
17
17
  - label: 驳回
18
18
  value: rejected
19
- color: '#d0021b'
19
+ color: '#274e8f'
20
20
  - label: 核准
21
21
  value: approved
22
- color: '#b8e986'
22
+ color: '#808080'
23
23
  - label: 终止
24
24
  value: terminated
25
- color: '#9b9b9b'
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: 10
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: 100
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: reviewer
16
- - field: ns_reviewer
17
- - field: legal_reviewer
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: 100
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: 100
50
+ sort_no: 10
50
51
  type: grid
@@ -0,0 +1,11 @@
1
+ name: recent
2
+ columns:
3
+ - field: name
4
+ crud_mode: table
5
+ filter_scope: space
6
+ filters: []
7
+ label: 最近查看
8
+ shared_to: space
9
+ sort:
10
+ - field_name: created
11
+ order: desc
@@ -25,7 +25,7 @@ field_groups:
25
25
  collapsed: true
26
26
  - group_name: 系统信息
27
27
  collapsed: true
28
- icon: care_request_reviewer
28
+ icon: document_reference
29
29
  is_enable: true
30
30
  label: 材料审批单
31
31
  locked: false
@@ -8,7 +8,7 @@ enable_lock_detail: true
8
8
  enable_workflow: true
9
9
  field_groups:
10
10
  - group_name: 通用
11
- icon: groups
11
+ icon: client
12
12
  is_enable: true
13
13
  label: 审核人员
14
14
  version: 2
@@ -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": "tpl",
197
- "tpl": "内容",
198
- "inline": false
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", "=", "brand"] })
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-labs/content-compliance",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "内容审核系统",
5
5
  "main": "package.service.js",
6
6
  "scripts": {
@@ -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