@steedos-labs/content-compliance 0.8.23 → 0.8.25
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/index.js +12 -7
- package/lib/index.js.map +1 -1
- package/lib/methods/AI.d.ts +2 -2
- package/lib/methods/AI.js +4 -3
- package/lib/methods/AI.js.map +1 -1
- package/lib/methods/__tests__/plsReview.test.js +257 -1
- package/lib/methods/__tests__/plsReview.test.js.map +1 -1
- package/lib/methods/pls.d.ts +6 -2
- package/lib/methods/pls.js +105 -42
- package/lib/methods/pls.js.map +1 -1
- package/lib/pages/__tests__/plsReviewCardStyles.test.js +10 -6
- package/lib/pages/__tests__/plsReviewCardStyles.test.js.map +1 -1
- package/lib/pages/__tests__/plsReviewPage.test.js +54 -13
- package/lib/pages/__tests__/plsReviewPage.test.js.map +1 -1
- package/main/default/objects/pepsico_material_approval/fields/approved_flows.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/ec_has_detail_page.field.yml +3 -3
- package/main/default/objects/pepsico_material_approval/fields/ec_producers.field.yml +3 -0
- package/main/default/objects/pepsico_material_approval/fields/ec_qc_production_email.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/has_nutrition_table.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/pls_km_files.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/pls_upload_files.field.yml +1 -1
- package/main/default/pages/pepsico_content_review_detail.page.amis.json +233 -109
- package/main/default/pages/pepsico_material_detail.page.amis.json +306 -230
- package/package.json +1 -1
- package/public/content-review/amis.css +20 -14
|
@@ -309,121 +309,159 @@
|
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
311
|
"steps": [
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
312
|
+
{
|
|
313
|
+
"title": "选择或上传 PLS文件",
|
|
314
|
+
"api": {
|
|
315
|
+
"url": "/api/pepsico-content/pls-file/upload",
|
|
316
|
+
"method": "post",
|
|
317
|
+
"requestAdaptor": "const files = context.uploadedPlsFile || []; const list = Array.isArray(files) ? files : [files]; const fileIds = list.map(function (file) { return file && (file.value || file); }).filter(Boolean); api.data = { fileIds: fileIds, approvalId: context.approvalId, materialId: context.materialId }; return api;",
|
|
318
|
+
"adaptor": "if (payload && payload.error) { return { status: 1, msg: payload.error }; } if (payload && payload.skipped > 0) { return { status: 1, msg: '仅支持PDF格式的PLS文件' }; } const superData = (typeof context != 'undefined') ? context : api.body; const files = (superData && superData.uploadedPlsFile) || []; const count = (Array.isArray(files) ? files : [files]).length; const records = (payload && payload.records) || []; if (count > 0 && records.length === 0) { return { status: 1, msg: 'PLS文件上传失败' }; } return { status: 0, msg: '', data: { newPlsFiles: records } };"
|
|
319
|
+
},
|
|
320
|
+
"body": [
|
|
321
|
+
{
|
|
322
|
+
"type": "alert",
|
|
323
|
+
"level": "info",
|
|
324
|
+
"className": "pepsico-pls-source-hint",
|
|
325
|
+
"body": "可选择或上传本地pls文件进行修改(也可以同时选择),后续将新的PLS重新提交AI给出新的意见。"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"type": "steedos-field",
|
|
329
|
+
"name": "selectedPlsFile",
|
|
330
|
+
"label": "选择已有PLS文件",
|
|
331
|
+
"className": "pepsico-pls-source-field",
|
|
332
|
+
"placeholder": "请选择PLS知识库文件",
|
|
333
|
+
"requiredOn": "${!uploadedPlsFile || uploadedPlsFile.length === 0}",
|
|
334
|
+
"config": {
|
|
335
|
+
"type": "lookup",
|
|
336
|
+
"name": "selectedPlsFile",
|
|
337
|
+
"label": "选择已有PLS文件",
|
|
338
|
+
"reference_to": "pepsico_km_pls_file",
|
|
339
|
+
"enable_enhanced_lookup": true,
|
|
340
|
+
"filters": [
|
|
341
|
+
[
|
|
342
|
+
"is_active",
|
|
343
|
+
"=",
|
|
344
|
+
true
|
|
345
|
+
],
|
|
346
|
+
"or",
|
|
347
|
+
[
|
|
348
|
+
"is_active",
|
|
349
|
+
"=",
|
|
350
|
+
null
|
|
351
|
+
]
|
|
352
|
+
],
|
|
353
|
+
"required": false,
|
|
354
|
+
"amis": {
|
|
355
|
+
"className": "pepsico-pls-source-field",
|
|
356
|
+
"placeholder": "请选择PLS知识库文件",
|
|
357
|
+
"joinValues": false,
|
|
358
|
+
"extractValue": false,
|
|
359
|
+
"requiredOn": "${!uploadedPlsFile || uploadedPlsFile.length === 0}",
|
|
360
|
+
"multiple": true,
|
|
361
|
+
"validations": {
|
|
362
|
+
"maxLength": 10
|
|
363
|
+
},
|
|
364
|
+
"validationErrors": {
|
|
365
|
+
"maxLength": "最多选择10个PLS文件"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"multiple": true
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"type": "input-file",
|
|
373
|
+
"name": "uploadedPlsFile",
|
|
374
|
+
"label": "上传本地PLS文件",
|
|
375
|
+
"className": "pepsico-pls-source-field",
|
|
376
|
+
"autoUpload": true,
|
|
377
|
+
"proxy": true,
|
|
378
|
+
"uploadType": "fileReceptor",
|
|
379
|
+
"btnLabel": "选择PDF文件",
|
|
380
|
+
"multiple": true,
|
|
381
|
+
"accept": ".pdf",
|
|
382
|
+
"receiver": {
|
|
383
|
+
"url": "/s3/files",
|
|
384
|
+
"method": "post",
|
|
385
|
+
"requestAdaptor": "const superData = (typeof context != 'undefined') ? context : api.body; const { global } = superData; api.data.append('space', global.spaceId); api.data.append('owner', global.userId); return api;",
|
|
386
|
+
"adaptor": "const superData = (typeof context != 'undefined') ? context : api.body; const rootUrl = superData.context.rootUrl + '/api/files/files/'; payload = { status: response.status == 200 ? 0 : response.status, msg: response.statusText, data: { value: payload._id, name: payload.original.name, url: rootUrl + payload._id } }; return payload;",
|
|
387
|
+
"dataType": "form-data"
|
|
388
|
+
},
|
|
389
|
+
"requiredOn": "${!selectedPlsFile || selectedPlsFile.length === 0}",
|
|
390
|
+
"maxLength": 10,
|
|
391
|
+
"joinValues": false,
|
|
392
|
+
"extractValue": false
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"title": "确认应用新PLS文件规则",
|
|
398
|
+
"api": {
|
|
399
|
+
"url": "/api/pepsico-content/pls-review/apply-source",
|
|
400
|
+
"method": "post",
|
|
401
|
+
"requestAdaptor": "const selected = context.selectedPlsFile; const selectedList = selected ? (Array.isArray(selected) ? selected : [selected]) : []; const existingIds = selectedList.map(function (item) { return item && (item.value || item._id || item); }).filter(Boolean); const files = context.uploadedPlsFile || []; const fileIds = (Array.isArray(files) ? files : [files]).map(function (file) { return file && (file.value || file); }).filter(Boolean); const uploadedIds = (context.newPlsFiles || []).filter(function (record) { return fileIds.indexOf(record.fileId) > -1; }).map(function (record) { return record.id; }); if (existingIds.length > 10 || uploadedIds.length > 10) { throw new Error('选择已有PLS文件和上传本地PLS文件各自最多10个'); } const newPlsFileIds = existingIds.concat(uploadedIds).filter(function (id, index, all) { return all.indexOf(id) === index; }); if (!newPlsFileIds.length) { throw new Error('请选择或上传PLS文件'); } const sourceMode = existingIds.length && uploadedIds.length ? 'mixed' : (uploadedIds.length ? 'upload' : 'existing'); api.data = { approvalId: context.approvalId, materialId: context.materialId, oldPlsFileId: context.plsFileId, newPlsFileIds: newPlsFileIds, sourceMode: sourceMode }; return api;",
|
|
402
|
+
"adaptor": "if (payload && payload.error) { return { status: 1, msg: payload.error }; } return { status: 0, msg: '正在按照新的PLS文件规则进行重新审核,请稍后刷新页面进行确认', data: payload };"
|
|
403
|
+
},
|
|
404
|
+
"body": [
|
|
405
|
+
{
|
|
406
|
+
"type": "container",
|
|
407
|
+
"className": "pepsico-pls-source-summary",
|
|
408
|
+
"body": [
|
|
409
|
+
{
|
|
410
|
+
"type": "tpl",
|
|
411
|
+
"tpl": "<b>当前PLS文件:</b>"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"type": "tpl",
|
|
415
|
+
"tpl": "${plsName}"
|
|
416
|
+
}
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "container",
|
|
421
|
+
"className": "pepsico-pls-source-summary",
|
|
422
|
+
"body": [
|
|
423
|
+
{
|
|
424
|
+
"type": "tpl",
|
|
425
|
+
"tpl": "<b>新的PLS文件:</b>"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"type": "container",
|
|
429
|
+
"className": "pepsico-pls-summary-values",
|
|
430
|
+
"body": [
|
|
431
|
+
{
|
|
432
|
+
"type": "each",
|
|
433
|
+
"source": "${selectedPlsFile}",
|
|
434
|
+
"items": {
|
|
435
|
+
"type": "tpl",
|
|
436
|
+
"tpl": "${name || label || value}",
|
|
437
|
+
"className": "pepsico-pls-summary-item"
|
|
438
|
+
},
|
|
439
|
+
"visibleOn": "${selectedPlsFile && selectedPlsFile.length > 0}",
|
|
440
|
+
"placeholder": ""
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "each",
|
|
444
|
+
"source": "${newPlsFiles}",
|
|
445
|
+
"items": {
|
|
446
|
+
"type": "tpl",
|
|
447
|
+
"tpl": "${name}",
|
|
448
|
+
"className": "pepsico-pls-summary-item"
|
|
449
|
+
},
|
|
450
|
+
"visibleOn": "${newPlsFiles && newPlsFiles.length > 0}",
|
|
451
|
+
"placeholder": ""
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"type": "alert",
|
|
459
|
+
"level": "warning",
|
|
460
|
+
"body": "应用后,当前 PLS 文件关联的意见将失效,并按新的PLS文件规则重新生成对应意见。"
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
]
|
|
427
465
|
}
|
|
428
466
|
]
|
|
429
467
|
}
|
|
@@ -865,121 +903,159 @@
|
|
|
865
903
|
}
|
|
866
904
|
},
|
|
867
905
|
"steps": [
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
906
|
+
{
|
|
907
|
+
"title": "选择或上传 PLS文件",
|
|
908
|
+
"api": {
|
|
909
|
+
"url": "/api/pepsico-content/pls-file/upload",
|
|
910
|
+
"method": "post",
|
|
911
|
+
"requestAdaptor": "const files = context.uploadedPlsFile || []; const list = Array.isArray(files) ? files : [files]; const fileIds = list.map(function (file) { return file && (file.value || file); }).filter(Boolean); api.data = { fileIds: fileIds, approvalId: context.approvalId, materialId: context.materialId }; return api;",
|
|
912
|
+
"adaptor": "if (payload && payload.error) { return { status: 1, msg: payload.error }; } if (payload && payload.skipped > 0) { return { status: 1, msg: '仅支持PDF格式的PLS文件' }; } const superData = (typeof context != 'undefined') ? context : api.body; const files = (superData && superData.uploadedPlsFile) || []; const count = (Array.isArray(files) ? files : [files]).length; const records = (payload && payload.records) || []; if (count > 0 && records.length === 0) { return { status: 1, msg: 'PLS文件上传失败' }; } return { status: 0, msg: '', data: { newPlsFiles: records } };"
|
|
913
|
+
},
|
|
914
|
+
"body": [
|
|
915
|
+
{
|
|
916
|
+
"type": "alert",
|
|
917
|
+
"level": "info",
|
|
918
|
+
"className": "pepsico-pls-source-hint",
|
|
919
|
+
"body": "可选择或上传本地pls文件进行修改(也可以同时选择),后续将新的PLS重新提交AI给出新的意见。"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"type": "steedos-field",
|
|
923
|
+
"name": "selectedPlsFile",
|
|
924
|
+
"label": "选择已有PLS文件",
|
|
925
|
+
"className": "pepsico-pls-source-field",
|
|
926
|
+
"placeholder": "请选择PLS知识库文件",
|
|
927
|
+
"requiredOn": "${!uploadedPlsFile || uploadedPlsFile.length === 0}",
|
|
928
|
+
"config": {
|
|
929
|
+
"type": "lookup",
|
|
930
|
+
"name": "selectedPlsFile",
|
|
931
|
+
"label": "选择已有PLS文件",
|
|
932
|
+
"reference_to": "pepsico_km_pls_file",
|
|
933
|
+
"enable_enhanced_lookup": true,
|
|
934
|
+
"filters": [
|
|
935
|
+
[
|
|
936
|
+
"is_active",
|
|
937
|
+
"=",
|
|
938
|
+
true
|
|
939
|
+
],
|
|
940
|
+
"or",
|
|
941
|
+
[
|
|
942
|
+
"is_active",
|
|
943
|
+
"=",
|
|
944
|
+
null
|
|
945
|
+
]
|
|
946
|
+
],
|
|
947
|
+
"required": false,
|
|
948
|
+
"amis": {
|
|
949
|
+
"className": "pepsico-pls-source-field",
|
|
950
|
+
"placeholder": "请选择PLS知识库文件",
|
|
951
|
+
"joinValues": false,
|
|
952
|
+
"extractValue": false,
|
|
953
|
+
"requiredOn": "${!uploadedPlsFile || uploadedPlsFile.length === 0}",
|
|
954
|
+
"multiple": true,
|
|
955
|
+
"validations": {
|
|
956
|
+
"maxLength": 10
|
|
957
|
+
},
|
|
958
|
+
"validationErrors": {
|
|
959
|
+
"maxLength": "最多选择10个PLS文件"
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
"multiple": true
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"type": "input-file",
|
|
967
|
+
"name": "uploadedPlsFile",
|
|
968
|
+
"label": "上传本地PLS文件",
|
|
969
|
+
"className": "pepsico-pls-source-field",
|
|
970
|
+
"autoUpload": true,
|
|
971
|
+
"proxy": true,
|
|
972
|
+
"uploadType": "fileReceptor",
|
|
973
|
+
"btnLabel": "选择PDF文件",
|
|
974
|
+
"multiple": true,
|
|
975
|
+
"accept": ".pdf",
|
|
976
|
+
"receiver": {
|
|
977
|
+
"url": "/s3/files",
|
|
978
|
+
"method": "post",
|
|
979
|
+
"requestAdaptor": "const superData = (typeof context != 'undefined') ? context : api.body; const { global } = superData; api.data.append('space', global.spaceId); api.data.append('owner', global.userId); return api;",
|
|
980
|
+
"adaptor": "const superData = (typeof context != 'undefined') ? context : api.body; const rootUrl = superData.context.rootUrl + '/api/files/files/'; payload = { status: response.status == 200 ? 0 : response.status, msg: response.statusText, data: { value: payload._id, name: payload.original.name, url: rootUrl + payload._id } }; return payload;",
|
|
981
|
+
"dataType": "form-data"
|
|
982
|
+
},
|
|
983
|
+
"requiredOn": "${!selectedPlsFile || selectedPlsFile.length === 0}",
|
|
984
|
+
"maxLength": 10,
|
|
985
|
+
"joinValues": false,
|
|
986
|
+
"extractValue": false
|
|
987
|
+
}
|
|
988
|
+
]
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"title": "确认应用新PLS文件规则",
|
|
992
|
+
"api": {
|
|
993
|
+
"url": "/api/pepsico-content/pls-review/apply-source",
|
|
994
|
+
"method": "post",
|
|
995
|
+
"requestAdaptor": "const selected = context.selectedPlsFile; const selectedList = selected ? (Array.isArray(selected) ? selected : [selected]) : []; const existingIds = selectedList.map(function (item) { return item && (item.value || item._id || item); }).filter(Boolean); const files = context.uploadedPlsFile || []; const fileIds = (Array.isArray(files) ? files : [files]).map(function (file) { return file && (file.value || file); }).filter(Boolean); const uploadedIds = (context.newPlsFiles || []).filter(function (record) { return fileIds.indexOf(record.fileId) > -1; }).map(function (record) { return record.id; }); if (existingIds.length > 10 || uploadedIds.length > 10) { throw new Error('选择已有PLS文件和上传本地PLS文件各自最多10个'); } const newPlsFileIds = existingIds.concat(uploadedIds).filter(function (id, index, all) { return all.indexOf(id) === index; }); if (!newPlsFileIds.length) { throw new Error('请选择或上传PLS文件'); } const sourceMode = existingIds.length && uploadedIds.length ? 'mixed' : (uploadedIds.length ? 'upload' : 'existing'); api.data = { approvalId: context.approvalId, materialId: context.materialId, oldPlsFileId: context.plsFileId, newPlsFileIds: newPlsFileIds, sourceMode: sourceMode }; return api;",
|
|
996
|
+
"adaptor": "if (payload && payload.error) { return { status: 1, msg: payload.error }; } return { status: 0, msg: '正在按照新的PLS文件规则进行重新审核,请稍后刷新页面进行确认', data: payload };"
|
|
997
|
+
},
|
|
998
|
+
"body": [
|
|
999
|
+
{
|
|
1000
|
+
"type": "container",
|
|
1001
|
+
"className": "pepsico-pls-source-summary",
|
|
1002
|
+
"body": [
|
|
1003
|
+
{
|
|
1004
|
+
"type": "tpl",
|
|
1005
|
+
"tpl": "<b>当前PLS文件:</b>"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"type": "tpl",
|
|
1009
|
+
"tpl": "${plsName}"
|
|
1010
|
+
}
|
|
1011
|
+
]
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"type": "container",
|
|
1015
|
+
"className": "pepsico-pls-source-summary",
|
|
1016
|
+
"body": [
|
|
1017
|
+
{
|
|
1018
|
+
"type": "tpl",
|
|
1019
|
+
"tpl": "<b>新的PLS文件:</b>"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"type": "container",
|
|
1023
|
+
"className": "pepsico-pls-summary-values",
|
|
1024
|
+
"body": [
|
|
1025
|
+
{
|
|
1026
|
+
"type": "each",
|
|
1027
|
+
"source": "${selectedPlsFile}",
|
|
1028
|
+
"items": {
|
|
1029
|
+
"type": "tpl",
|
|
1030
|
+
"tpl": "${name || label || value}",
|
|
1031
|
+
"className": "pepsico-pls-summary-item"
|
|
1032
|
+
},
|
|
1033
|
+
"visibleOn": "${selectedPlsFile && selectedPlsFile.length > 0}",
|
|
1034
|
+
"placeholder": ""
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"type": "each",
|
|
1038
|
+
"source": "${newPlsFiles}",
|
|
1039
|
+
"items": {
|
|
1040
|
+
"type": "tpl",
|
|
1041
|
+
"tpl": "${name}",
|
|
1042
|
+
"className": "pepsico-pls-summary-item"
|
|
1043
|
+
},
|
|
1044
|
+
"visibleOn": "${newPlsFiles && newPlsFiles.length > 0}",
|
|
1045
|
+
"placeholder": ""
|
|
1046
|
+
}
|
|
1047
|
+
]
|
|
1048
|
+
}
|
|
1049
|
+
]
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"type": "alert",
|
|
1053
|
+
"level": "warning",
|
|
1054
|
+
"body": "应用后,当前 PLS 文件关联的意见将失效,并按新的PLS文件规则重新生成对应意见。"
|
|
1055
|
+
}
|
|
1056
|
+
]
|
|
1057
|
+
}
|
|
1058
|
+
]
|
|
983
1059
|
}
|
|
984
1060
|
]
|
|
985
1061
|
}
|