@steedos-labs/content-compliance 0.5.21 → 0.5.23
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/dist/index.js +1 -1
- package/lib/actions/index.d.ts +1 -0
- package/lib/actions/index.js +1 -0
- package/lib/actions/index.js.map +1 -1
- package/lib/actions/spotCheckMaterial.d.ts +15 -0
- package/lib/actions/spotCheckMaterial.js +98 -0
- package/lib/actions/spotCheckMaterial.js.map +1 -0
- package/lib/index.js +13 -8
- package/lib/index.js.map +1 -1
- package/lib/methods/approval_engine.js +127 -98
- package/lib/methods/approval_engine.js.map +1 -1
- package/lib/methods/consts.d.ts +1 -0
- package/lib/methods/consts.js.map +1 -1
- package/lib/methods/content_hub.js +5 -0
- package/lib/methods/content_hub.js.map +1 -1
- package/lib/methods/dashboard_sync_data.js +2 -1
- package/lib/methods/dashboard_sync_data.js.map +1 -1
- package/main/default/applications/pepsico_content_review.app.yml +16 -10
- package/main/default/objects/pepsico_flow_rule/fields/company_id.field.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/fields/company_ids.field.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/fields/created.field.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/fields/created_by.field.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/fields/fu5nvp.field.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/fields/instance_state.field.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/fields/locked.field.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/fields/modified.field.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/fields/modified_by.field.yml +1 -1
- package/main/default/objects/pepsico_flow_rule/fields/name.field.yml +3 -3
- package/main/default/objects/pepsico_flow_rule/fields/owner.field.yml +3 -1
- package/main/default/objects/pepsico_flow_rule/fields/skip_approve.field.yml +11 -0
- package/main/default/objects/pepsico_flow_rule/listviews/all.listview.yml +6 -2
- package/main/default/objects/pepsico_flow_rule/pepsico_flow_rule.object.yml +2 -2
- package/main/default/objects/pepsico_material/buttons/pepsico_material_spot_check.button.yml +162 -0
- package/main/default/objects/pepsico_material/buttons/standard_delete.button.js +3 -1
- package/main/default/objects/pepsico_material/buttons/standard_delete.button.yml +1 -1
- package/main/default/objects/pepsico_material/buttons/standard_delete_many.button.yml +2 -1
- package/main/default/objects/pepsico_material/buttons/standard_edit.button.js +3 -8
- package/main/default/objects/pepsico_material/buttons/standard_edit.button.yml +1 -1
- package/main/default/objects/pepsico_material/buttons/standard_new.button.yml +2 -1
- package/main/default/objects/pepsico_material/fields/ai_approval_status.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/approval_status.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/brief_flow.field.yml +4 -3
- package/main/default/objects/pepsico_material/fields/ca_approval_status.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/classification.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/company_id.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/company_ids.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/created.field.yml +3 -3
- package/main/default/objects/pepsico_material/fields/created_by.field.yml +2 -2
- package/main/default/objects/pepsico_material/fields/current_step.field.yml +39 -0
- package/main/default/objects/pepsico_material/fields/download_from_onedrive.field.yml +6 -2
- package/main/default/objects/pepsico_material/fields/draft_submitted.field.yml +7 -0
- package/main/default/objects/pepsico_material/fields/edit_link.field.yml +2 -2
- package/main/default/objects/pepsico_material/fields/extension_type.field.yml +3 -2
- package/main/default/objects/pepsico_material/fields/followers.field.yml +3 -2
- package/main/default/objects/pepsico_material/fields/instance_state.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/internal_collaborator.field.yml +8 -0
- package/main/default/objects/pepsico_material/fields/is_skip_approver.field.yml +8 -0
- package/main/default/objects/pepsico_material/fields/kids_approval_status.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/legal_approval_status.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/locked.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/material.field.yml +2 -2
- package/main/default/objects/pepsico_material/fields/material_ai.field.yml +2 -2
- package/main/default/objects/pepsico_material/fields/material_ai_xml.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/material_one_drive_history.field.yml +3 -2
- package/main/default/objects/pepsico_material/fields/material_original.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/material_type.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/material_update_history.field.yml +3 -2
- package/main/default/objects/pepsico_material/fields/md5.field.yml +6 -2
- package/main/default/objects/pepsico_material/fields/modified.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/modified_by.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/name.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/ns_approval_status.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/onedrive_item.field.yml +4 -1
- package/main/default/objects/pepsico_material/fields/onedrive_shared_link_edit.field.yml +4 -1
- package/main/default/objects/pepsico_material/fields/onedrive_shared_link_view.field.yml +4 -1
- package/main/default/objects/pepsico_material/fields/owner.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/pepsico_material_approval.field.yml +4 -4
- package/main/default/objects/pepsico_material/fields/remove_share_link_from_onedrive.field.yml +6 -2
- package/main/default/objects/pepsico_material/fields/review_status.field.yml +33 -0
- package/main/default/objects/pepsico_material/fields/social_media.field.yml +3 -2
- package/main/default/objects/pepsico_material/fields/spot_check_time.field.yml +8 -0
- package/main/default/objects/pepsico_material/fields/spot_checked.field.yml +8 -0
- package/main/default/objects/pepsico_material/fields/spot_description.field.yml +10 -0
- package/main/default/objects/pepsico_material/fields/sra_approval_status.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/supplement_materials.field.yml +3 -4
- package/main/default/objects/pepsico_material/fields/uploaded_to_onedrive.field.yml +6 -2
- package/main/default/objects/pepsico_material/fields/view_link.field.yml +2 -2
- package/main/default/objects/pepsico_material/fields/void_material.field.yml +6 -6
- package/main/default/objects/pepsico_material/fields/wner_department.field.yml +9 -0
- package/main/default/objects/pepsico_material/fields/word_xml.field.yml +1 -1
- package/main/default/objects/pepsico_material/fields/xml_converted_word.field.yml +5 -3
- package/main/default/objects/pepsico_material/listviews/spot_check.listview.yml +41 -0
- package/main/default/objects/pepsico_material/pepsico_material.object.yml +2 -2
- package/main/default/objects/pepsico_material_approval/fields/brief_flow.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/followers.field.yml +50 -16
- package/main/default/objects/pepsico_material_approval/fields/is_skip_approver.field.yml +4 -0
- package/main/default/objects/pepsico_material_approval/fields/kol_classification.field.yml +1 -6
- package/main/default/objects/pepsico_material_approval/fields/social_media.field.yml +47 -15
- package/main/default/objects/permission_set/listviews/all.listview.yml +4 -0
- package/main/default/pages/pepsico_spot_check.page.amis.json +23 -0
- package/main/default/pages/pepsico_spot_check.page.yml +8 -0
- package/main/default/permissionsets/pepsico_spot_check.permissionset.yml +9 -0
- package/main/default/tabs/pepsico_spot_check.tab.yml +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
name: pepsico_material_spot_check
|
|
2
|
+
amis_schema: |-
|
|
3
|
+
{
|
|
4
|
+
"type": "service",
|
|
5
|
+
"body": [
|
|
6
|
+
{
|
|
7
|
+
"type": "button",
|
|
8
|
+
"label": "素材抽查",
|
|
9
|
+
"id": "u:pepsico_material_spot_check",
|
|
10
|
+
"editorState": "default",
|
|
11
|
+
"level": "primary",
|
|
12
|
+
"onEvent": {
|
|
13
|
+
"click": {
|
|
14
|
+
"weight": 0,
|
|
15
|
+
"actions": [
|
|
16
|
+
{
|
|
17
|
+
"ignoreError": false,
|
|
18
|
+
"actionType": "dialog",
|
|
19
|
+
"dialog": {
|
|
20
|
+
"type": "dialog",
|
|
21
|
+
"title": "素材抽查",
|
|
22
|
+
"body": [
|
|
23
|
+
{
|
|
24
|
+
"id": "u:3809739ad8d1",
|
|
25
|
+
"type": "form",
|
|
26
|
+
"title": "表单",
|
|
27
|
+
"mode": "horizontal",
|
|
28
|
+
"dsType": "api",
|
|
29
|
+
"feat": "Insert",
|
|
30
|
+
"body": [
|
|
31
|
+
{
|
|
32
|
+
"name": "description",
|
|
33
|
+
"label": "意见",
|
|
34
|
+
"type": "textarea",
|
|
35
|
+
"id": "u:f455620b7a49",
|
|
36
|
+
"minRows": 3,
|
|
37
|
+
"maxRows": 20,
|
|
38
|
+
"required": true,
|
|
39
|
+
"mode": "normal"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"api": {
|
|
43
|
+
"url": "/api/pepsico-content/material/spot-check/${recordId}",
|
|
44
|
+
"method": "post",
|
|
45
|
+
"requestAdaptor": "",
|
|
46
|
+
"adaptor": "",
|
|
47
|
+
"messages": {
|
|
48
|
+
"success": "抽查已完成"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"actions": [
|
|
52
|
+
{
|
|
53
|
+
"type": "button",
|
|
54
|
+
"label": "提交",
|
|
55
|
+
"onEvent": {
|
|
56
|
+
"click": {
|
|
57
|
+
"actions": [
|
|
58
|
+
{
|
|
59
|
+
"actionType": "submit",
|
|
60
|
+
"componentId": "u:3809739ad8d1"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"level": "primary"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"resetAfterSubmit": true,
|
|
69
|
+
"onEvent": {
|
|
70
|
+
"submitSucc": {
|
|
71
|
+
"weight": 0,
|
|
72
|
+
"actions": [
|
|
73
|
+
{
|
|
74
|
+
"ignoreError": false,
|
|
75
|
+
"actionType": "closeDialog"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"actionType": "broadcast",
|
|
79
|
+
"args": {
|
|
80
|
+
"eventName": "@data.changed.pepsico_material_approval"
|
|
81
|
+
},
|
|
82
|
+
"data": {
|
|
83
|
+
"objectName": "pepsico_material_approval"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"actionType": "broadcast",
|
|
88
|
+
"args": {
|
|
89
|
+
"eventName": "@data.changed.pepsico_material"
|
|
90
|
+
},
|
|
91
|
+
"data": {
|
|
92
|
+
"objectName": "pepsico_material"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"actionType": "reload",
|
|
97
|
+
"componentId": "listview_pepsico_material",
|
|
98
|
+
"groupType": "component"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"actionType": "closeDialog",
|
|
102
|
+
"ignoreError": false
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"id": "u:abc8b276c5ed",
|
|
110
|
+
"actions": [
|
|
111
|
+
{
|
|
112
|
+
"type": "button",
|
|
113
|
+
"actionType": "cancel",
|
|
114
|
+
"label": "取消",
|
|
115
|
+
"id": "u:2fd40b1148b7"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"type": "button",
|
|
119
|
+
"actionType": "confirm",
|
|
120
|
+
"label": "确定",
|
|
121
|
+
"primary": true,
|
|
122
|
+
"id": "u:9a96044ede63"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"showCloseButton": true,
|
|
126
|
+
"closeOnOutside": false,
|
|
127
|
+
"closeOnEsc": false,
|
|
128
|
+
"showErrorMsg": true,
|
|
129
|
+
"showLoading": true,
|
|
130
|
+
"draggable": false,
|
|
131
|
+
"size": "md",
|
|
132
|
+
"actionType": "dialog",
|
|
133
|
+
"onEvent": {}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"visibleOn": "${review_status == 'approved' && spot_checked !=true && is_skip_approver == true}"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"regions": [
|
|
143
|
+
"body"
|
|
144
|
+
],
|
|
145
|
+
"data": {
|
|
146
|
+
"context": {},
|
|
147
|
+
"dataComponentId": "",
|
|
148
|
+
"record_id": "",
|
|
149
|
+
"record": {},
|
|
150
|
+
"permissions": {}
|
|
151
|
+
},
|
|
152
|
+
"id": "u:9155e869670c",
|
|
153
|
+
"bodyClassName": "p-0",
|
|
154
|
+
"dsType": "api",
|
|
155
|
+
"definitions": {}
|
|
156
|
+
}
|
|
157
|
+
is_enable: true
|
|
158
|
+
label: 素材抽查
|
|
159
|
+
locked: false
|
|
160
|
+
'on': record_only
|
|
161
|
+
type: amis_button
|
|
162
|
+
visible: true
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
standard_deleteVisible: function(object_name, record_id, record_permissions, record) {
|
|
3
4
|
return record.review_status === 'draft' && record.owner === context.userId && Steedos.isMobile() != true
|
|
4
5
|
}
|
|
6
|
+
|
|
5
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
name: standard_delete
|
|
2
|
-
|
|
2
|
+
is_enable: true
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: baozhoutao@steedos.com
|
|
3
|
-
* @Date: 2024-12-15 13:24:38
|
|
4
|
-
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
-
* @LastEditTime: 2025-01-23 15:23:37
|
|
6
|
-
* @Description:
|
|
7
|
-
*/
|
|
8
1
|
module.exports = {
|
|
9
|
-
|
|
2
|
+
|
|
3
|
+
standard_editVisible: function(object_name, record_id, record_permissions, record) {
|
|
10
4
|
return false
|
|
11
5
|
}
|
|
6
|
+
|
|
12
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
name: standard_edit
|
|
2
|
-
|
|
2
|
+
is_enable: true
|
|
@@ -3,12 +3,13 @@ amis:
|
|
|
3
3
|
id: 'u:4f777ab5053e'
|
|
4
4
|
description: ''
|
|
5
5
|
group: 通用
|
|
6
|
-
is_wide:
|
|
6
|
+
is_wide: true
|
|
7
7
|
label: KOL的brief审核流程主题
|
|
8
8
|
reference_to: pepsico_material_approval
|
|
9
9
|
required: false
|
|
10
|
-
sort_no:
|
|
10
|
+
sort_no: 350
|
|
11
11
|
static: false
|
|
12
12
|
type: lookup
|
|
13
13
|
visible_on: >-
|
|
14
|
-
classification == 'MD-SC1-SC13' || classification == 'SLS-SC2-SC23' ||
|
|
14
|
+
classification == 'MD-SC1-SC13' || classification == 'SLS-SC2-SC23' ||
|
|
15
|
+
classification == 'SLS-SC2-SC213'
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: current_step
|
|
2
|
+
amis:
|
|
3
|
+
id: 'u:5cd2587d348b'
|
|
4
|
+
data_type: text
|
|
5
|
+
defaultValue: draft
|
|
6
|
+
description: ''
|
|
7
|
+
enable_thousands: true
|
|
8
|
+
filters: []
|
|
9
|
+
group: 提交信息
|
|
10
|
+
inlineHelpText: ''
|
|
11
|
+
is_wide: false
|
|
12
|
+
label: 当前步骤
|
|
13
|
+
options:
|
|
14
|
+
- label: 待提交审核
|
|
15
|
+
value: draft
|
|
16
|
+
color: '#155a9f'
|
|
17
|
+
- label: AI审核
|
|
18
|
+
value: ai_review
|
|
19
|
+
color: '#155a9f'
|
|
20
|
+
- label: 部门审核
|
|
21
|
+
value: departmental_review
|
|
22
|
+
color: '#155a9f'
|
|
23
|
+
- label: 固定人员审核
|
|
24
|
+
value: personnel_review
|
|
25
|
+
color: '#155a9f'
|
|
26
|
+
- label: 提交人修改
|
|
27
|
+
value: submitter_revisions
|
|
28
|
+
color: '#155a9f'
|
|
29
|
+
- label: 等待上线
|
|
30
|
+
value: awaiting_deployment
|
|
31
|
+
color: '#155a9f'
|
|
32
|
+
- label: 结束
|
|
33
|
+
value: conclusion
|
|
34
|
+
color: '#155a9f'
|
|
35
|
+
readonly: true
|
|
36
|
+
required: false
|
|
37
|
+
sort_no: 2550
|
|
38
|
+
type: select
|
|
39
|
+
visible_on: '{}'
|
|
@@ -16,7 +16,8 @@ options:
|
|
|
16
16
|
precision: 18
|
|
17
17
|
required: true
|
|
18
18
|
scale: 0
|
|
19
|
-
sort_no:
|
|
19
|
+
sort_no: 300
|
|
20
20
|
type: number
|
|
21
21
|
visible_on: >-
|
|
22
|
-
classification == 'MD-SC1-SC13' || classification == 'SLS-SC2-SC23' ||
|
|
22
|
+
classification == 'MD-SC1-SC13' || classification == 'SLS-SC2-SC23' ||
|
|
23
|
+
classification == 'SLS-SC2-SC213'
|
|
@@ -7,8 +7,9 @@ label: sharepoint素材的最终版本
|
|
|
7
7
|
multiple: true
|
|
8
8
|
readonly: true
|
|
9
9
|
required: false
|
|
10
|
-
sort_no:
|
|
10
|
+
sort_no: 1750
|
|
11
11
|
static: false
|
|
12
12
|
type: file
|
|
13
13
|
visible_on: >-
|
|
14
|
-
{{extension_type == 'doc' || extension_type == 'docx' || extension_type ==
|
|
14
|
+
{{extension_type == 'doc' || extension_type == 'docx' || extension_type ==
|
|
15
|
+
'ppt' || extension_type == 'pptx'}}
|
|
@@ -7,8 +7,9 @@ label: 历史替换版本
|
|
|
7
7
|
multiple: true
|
|
8
8
|
readonly: true
|
|
9
9
|
required: false
|
|
10
|
-
sort_no:
|
|
10
|
+
sort_no: 1950
|
|
11
11
|
static: false
|
|
12
12
|
type: file
|
|
13
13
|
visible_on: >-
|
|
14
|
-
{{extension_type !== 'doc' && extension_type !== 'docx' && extension_type !==
|
|
14
|
+
{{extension_type !== 'doc' && extension_type !== 'docx' && extension_type !==
|
|
15
|
+
'ppt' && extension_type !== 'pptx'}}
|
|
@@ -3,12 +3,12 @@ amis:
|
|
|
3
3
|
id: 'u:0ad00c78ee1d'
|
|
4
4
|
auto_fill_mapping: []
|
|
5
5
|
filters: []
|
|
6
|
-
group:
|
|
7
|
-
is_wide:
|
|
6
|
+
group: 系统信息
|
|
7
|
+
is_wide: true
|
|
8
8
|
label: 材料审批单
|
|
9
9
|
reference_to: pepsico_material_approval
|
|
10
10
|
required: true
|
|
11
|
-
sort_no:
|
|
11
|
+
sort_no: 2250
|
|
12
12
|
static: true
|
|
13
13
|
type: master_detail
|
|
14
|
-
write_requires_master_read: true
|
|
14
|
+
write_requires_master_read: true
|