@steedos-labs/content-compliance 0.8.21 → 0.8.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/addBulkMaterials.d.ts +1 -9
- package/lib/actions/addBulkMaterials.js +56 -24
- package/lib/actions/addBulkMaterials.js.map +1 -1
- package/lib/methods/__tests__/materialSizeLimit.test.d.ts +1 -0
- package/lib/methods/__tests__/materialSizeLimit.test.js +146 -0
- package/lib/methods/__tests__/materialSizeLimit.test.js.map +1 -0
- package/lib/methods/__tests__/materialUploadValidation.test.d.ts +1 -0
- package/lib/methods/__tests__/materialUploadValidation.test.js +217 -0
- package/lib/methods/__tests__/materialUploadValidation.test.js.map +1 -0
- package/lib/methods/__tests__/qcParallelReview.test.js +10 -3
- package/lib/methods/__tests__/qcParallelReview.test.js.map +1 -1
- package/lib/methods/__tests__/resubmissionAutoApprove.test.d.ts +1 -0
- package/lib/methods/__tests__/resubmissionAutoApprove.test.js +195 -0
- package/lib/methods/__tests__/resubmissionAutoApprove.test.js.map +1 -0
- package/lib/methods/approval_engine.d.ts +1 -0
- package/lib/methods/approval_engine.js +324 -281
- package/lib/methods/approval_engine.js.map +1 -1
- package/lib/methods/material.d.ts +1 -0
- package/lib/methods/material.js +21 -2
- package/lib/methods/material.js.map +1 -1
- package/main/default/objects/pepsico_material/buttons/pepsico_upload_supplement.button.yml +1 -1
- package/main/default/objects/pepsico_material_approval/buttons/pepsico_material_upload.button.yml +2 -2
- package/main/default/objects/pepsico_material_approval/listviews/collaboration.listview.yml +5 -0
- package/main/default/pages/pepsico_content_review_detail.page.amis.json +15 -15
- package/package.json +3 -2
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"body": [
|
|
15
15
|
{
|
|
16
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 text-xs font-medium text-white\" style=\"background-color: #155798\">Legal<br/>预审</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.handler_prelegal || _display.pre_legal_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_legal_materials_quantity, pre_legal_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_legal_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_legal_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_legal_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_legal_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
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 text-xs font-medium text-white\" style=\"background-color: #155798\">Legal<br/>预审</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=\"#\" title=\"${(_display.handler_prelegal || _display.pre_legal_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_prelegal || _display.pre_legal_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_legal_materials_quantity, pre_legal_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_legal_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_legal_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_legal_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_legal_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
18
18
|
"inline": true,
|
|
19
19
|
"wrapperComponent": "",
|
|
20
20
|
"id": "u:pre_legal_card",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
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 text-xs font-medium text-white\" style=\"background-color: #155798\">NS<br/>预审</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.handler_prens || _display.pre_ns_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_ns_materials_quantity, pre_ns_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_ns_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_ns_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_ns_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
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 text-xs font-medium text-white\" style=\"background-color: #155798\">NS<br/>预审</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=\"#\" title=\"${(_display.handler_prens || _display.pre_ns_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_prens || _display.pre_ns_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_ns_materials_quantity, pre_ns_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_ns_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_ns_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_ns_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
27
27
|
"inline": true,
|
|
28
28
|
"wrapperComponent": "",
|
|
29
29
|
"id": "u:pre_ns_card",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
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 text-xs font-medium text-white\" style=\"background-color: #155798\">SRA<br/>预审</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.handler_presra || _display.pre_sra_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_sra_materials_quantity, pre_sra_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_sra_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_sra_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_sra_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_sra_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
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 text-xs font-medium text-white\" style=\"background-color: #155798\">SRA<br/>预审</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=\"#\" title=\"${(_display.handler_presra || _display.pre_sra_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_presra || _display.pre_sra_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_sra_materials_quantity, pre_sra_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_sra_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_sra_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_sra_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_sra_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
36
36
|
"inline": true,
|
|
37
37
|
"wrapperComponent": "",
|
|
38
38
|
"id": "u:pre_sra_card",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
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 text-xs font-medium text-white\" style=\"background-color: #155798\">CA<br/>预审</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.handler_preca || _display.pre_ca_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_ca_materials_quantity, pre_ca_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_ca_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_ca_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_ca_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_ca_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
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 text-xs font-medium text-white\" style=\"background-color: #155798\">CA<br/>预审</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=\"#\" title=\"${(_display.handler_preca || _display.pre_ca_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_preca || _display.pre_ca_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_ca_materials_quantity, pre_ca_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_ca_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_ca_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_ca_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_ca_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
45
45
|
"inline": true,
|
|
46
46
|
"wrapperComponent": "",
|
|
47
47
|
"id": "u:pre_ca_card",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
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 text-xs font-medium text-white\" style=\"background-color: #155798\">QC<br/>预审</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.handler_preqc || _display.pre_qc_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_qc_materials_quantity, pre_qc_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_qc_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_qc_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_qc_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_qc_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
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 text-xs font-medium text-white\" style=\"background-color: #155798\">QC<br/>预审</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=\"#\" title=\"${(_display.handler_preqc || _display.pre_qc_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_preqc || _display.pre_qc_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_qc_materials_quantity, pre_qc_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_qc_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_qc_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_qc_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_qc_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
54
54
|
"inline": true,
|
|
55
55
|
"wrapperComponent": "",
|
|
56
56
|
"id": "u:pre_qc_card",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
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 text-xs font-medium text-white\" style=\"background-color: #155798\">固定<br/>预审</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.handler_preguding || _display.pre_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_materials_quantity, pre_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
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 text-xs font-medium text-white\" style=\"background-color: #155798\">固定<br/>预审</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=\"#\" title=\"${(_display.handler_preguding || _display.pre_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_preguding || _display.pre_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(pre_materials_quantity, pre_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(pre_approval_status === 'pass', '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', pre_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', pre_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !pre_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
63
63
|
"inline": true,
|
|
64
64
|
"wrapperComponent": "",
|
|
65
65
|
"id": "u:pre_guding_card",
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
"isFixedHeight": false,
|
|
74
74
|
"isFixedWidth": false,
|
|
75
75
|
"visibleOn": "${(pre_ns_reviewer || pre_legal_reviewer || pre_sra_reviewer || pre_ca_reviewer || (pre_qc_reviewer && ec_has_detail_page === 'yes') || pre_reviewer) && review_status != 'draft' && is_skip_approver != true}",
|
|
76
|
-
"className": "mt-3 grid grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 lg:grid-cols-
|
|
76
|
+
"className": "mt-3 grid grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 lg:grid-cols-6 sm:m-4"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"type": "container",
|
|
80
80
|
"body": [
|
|
81
81
|
{
|
|
82
82
|
"type": "tpl",
|
|
83
|
-
"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-private 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.handler_legal || _display.legal_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(legal_materials_quantity, legal_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(legal_approval_status === 'pass' && legal_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', legal_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', legal_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !legal_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
83
|
+
"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-private 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=\"#\" title=\"${(_display.handler_legal || _display.legal_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_legal || _display.legal_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(legal_materials_quantity, legal_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(legal_approval_status === 'pass' && legal_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', legal_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', legal_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !legal_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
84
84
|
"inline": true,
|
|
85
85
|
"wrapperComponent": "",
|
|
86
86
|
"id": "u:1b743b2be88d",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"type": "tpl",
|
|
92
|
-
"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-private 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.handler_ns || _display.ns_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(ns_materials_quantity, ns_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(ns_approval_status === 'pass' && ns_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', 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>",
|
|
92
|
+
"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-private 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=\"#\" title=\"${(_display.handler_ns || _display.ns_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_ns || _display.ns_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(ns_materials_quantity, ns_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(ns_approval_status === 'pass' && ns_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', 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>",
|
|
93
93
|
"inline": true,
|
|
94
94
|
"wrapperComponent": "",
|
|
95
95
|
"id": "u:65eac8efca60",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"type": "tpl",
|
|
101
|
-
"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-private 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-gray-900 hover:text-gray-600\">${(_display.handler_sra || _display.sra_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(sra_materials_quantity, sra_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(sra_approval_status === 'pass' && sra_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', sra_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', sra_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !sra_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
101
|
+
"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-private 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=\"#\" title=\"${(_display.handler_sra || _display.sra_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_sra || _display.sra_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(sra_materials_quantity, sra_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(sra_approval_status === 'pass' && sra_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', sra_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', sra_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !sra_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
102
102
|
"inline": true,
|
|
103
103
|
"wrapperComponent": "",
|
|
104
104
|
"id": "u:912d54a43263",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"type": "tpl",
|
|
110
|
-
"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-private 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.handler_ca || _display.ca_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(ca_materials_quantity, ca_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(ca_approval_status === 'pass' && ca_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', ca_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ca_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ca_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
110
|
+
"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-private 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=\"#\" title=\"${(_display.handler_ca || _display.ca_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_ca || _display.ca_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(ca_materials_quantity, ca_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(ca_approval_status === 'pass' && ca_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', ca_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ca_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ca_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
111
111
|
"inline": true,
|
|
112
112
|
"wrapperComponent": "",
|
|
113
113
|
"id": "u:3dd4613d67ae",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"type": "tpl",
|
|
119
|
-
"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-private text-base font-medium text-white\">QC</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.handler_qc || _display.qc_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(qc_materials_quantity, qc_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(qc_approval_status === 'pass' && qc_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', qc_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', qc_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !qc_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
119
|
+
"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-private text-base font-medium text-white\">QC</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=\"#\" title=\"${(_display.handler_qc || _display.qc_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_qc || _display.qc_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(qc_materials_quantity, qc_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(qc_approval_status === 'pass' && qc_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', qc_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', qc_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !qc_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
120
120
|
"inline": true,
|
|
121
121
|
"wrapperComponent": "",
|
|
122
122
|
"id": "u:qc_review_card",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"type": "tpl",
|
|
128
|
-
"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-private 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.handler_guding || _display.reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(approval_materials_quantity, approval_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(approval_status === 'pass' && approval_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', approval_status === true, '<i class=\"fa-solid fa-check\"></i>', approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
128
|
+
"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-private 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=\"#\" title=\"${(_display.handler_guding || _display.reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_guding || _display.reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(approval_materials_quantity, approval_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(approval_status === 'pass' && approval_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', approval_status === true, '<i class=\"fa-solid fa-check\"></i>', approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
129
129
|
"inline": true,
|
|
130
130
|
"wrapperComponent": "",
|
|
131
131
|
"id": "u:ec5fe1e3ac08",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
"type": "tpl",
|
|
137
|
-
"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-private 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.handler_kids || _display.kids_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(kids_materials_quantity, kids_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(kids_approval_status === 'pass' && kids_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', kids_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', kids_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !kids_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
137
|
+
"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-private 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=\"#\" title=\"${(_display.handler_kids || _display.kids_reviewer)|pick:label}\" class=\"font-medium text-gray-900 hover:text-gray-600\">${(_display.handler_kids || _display.kids_reviewer)|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\"><span class='mr-4'>${CONCATENATE(IF(kids_materials_quantity, kids_materials_quantity, 0), ' / ', materials_quantity)}</span>${IFS(kids_approval_status === 'pass' && kids_bypassed === true, '<i style=\"color: #02355a\" title=\"已跳过\"> Bypass</i>', kids_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', kids_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !kids_approval_status, '')}</p>\n </div>\n </div>\n</li>",
|
|
138
138
|
"inline": true,
|
|
139
139
|
"wrapperComponent": "",
|
|
140
140
|
"id": "u:41fda075cc8b",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"isFixedHeight": false,
|
|
149
149
|
"isFixedWidth": false,
|
|
150
150
|
"visibleOn": "${is_skip_approver != true}",
|
|
151
|
-
"className": "mt-3 grid grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 lg:grid-cols-
|
|
151
|
+
"className": "mt-3 grid grid-cols-1 gap-5 sm:grid-cols-2 sm:gap-6 lg:grid-cols-6 sm:m-4 top-16 sm:sticky z-20"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"type": "tabs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-labs/content-compliance",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.23",
|
|
4
4
|
"description": "内容审核系统",
|
|
5
5
|
"main": "package.service.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"ts-jest": "^29.0.3",
|
|
25
25
|
"@types/jest": "^29.5.0",
|
|
26
26
|
"@types/lodash": "^4.17.0",
|
|
27
|
-
"@types/node": "^20.0.0"
|
|
27
|
+
"@types/node": "^20.0.0",
|
|
28
|
+
"js-yaml": "^3.14.1"
|
|
28
29
|
},
|
|
29
30
|
"publishConfig": {
|
|
30
31
|
"access": "public"
|