ydb-components-material 0.1.111 → 0.1.113
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/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/{umi.473363dd.js → umi.a1842857.js} +1 -1
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-list/index.d.ts +1 -0
- package/es/components/file-list/index.js +4 -1
- package/es/components/file-list/item.d.ts +1 -0
- package/es/components/file-list/item.js +18 -7
- package/es/components/file-list/signerInfo.js +28 -2
- package/es/components/guide/compoents/materials/materials.d.ts +1 -0
- package/es/components/guide/compoents/materials/materials.js +4 -2
- package/es/components/guide/compoents/materials/situation.d.ts +1 -0
- package/es/components/guide/compoents/materials/situation.js +8 -4
- package/es/components/guide/index.d.ts +2 -0
- package/es/components/guide/index.js +4 -2
- package/es/components/sign-file/index.js +1 -1
- package/lib/components/file-list/index.d.ts +1 -0
- package/lib/components/file-list/index.js +4 -1
- package/lib/components/file-list/item.d.ts +1 -0
- package/lib/components/file-list/item.js +18 -7
- package/lib/components/file-list/signerInfo.js +28 -2
- package/lib/components/guide/compoents/materials/materials.d.ts +1 -0
- package/lib/components/guide/compoents/materials/materials.js +4 -2
- package/lib/components/guide/compoents/materials/situation.d.ts +1 -0
- package/lib/components/guide/compoents/materials/situation.js +8 -4
- package/lib/components/guide/index.d.ts +2 -0
- package/lib/components/guide/index.js +4 -2
- package/lib/components/sign-file/index.js +1 -1
- package/lowcode/file-list/meta.ts +26 -0
- package/lowcode/guide/meta.ts +26 -0
- package/lowcode_es/file-list/meta.js +25 -0
- package/lowcode_es/guide/meta.js +25 -0
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/file-list/meta.js +25 -0
- package/lowcode_lib/guide/meta.js +25 -0
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
|
@@ -47,7 +47,8 @@ var FileList = function FileList(_ref) {
|
|
|
47
47
|
openLoading = _ref.openLoading,
|
|
48
48
|
closeLoading = _ref.closeLoading,
|
|
49
49
|
valChange = _ref.valChange,
|
|
50
|
-
saveSignerInfo = _ref.saveSignerInfo
|
|
50
|
+
saveSignerInfo = _ref.saveSignerInfo,
|
|
51
|
+
signInfoMap = _ref.signInfoMap;
|
|
51
52
|
var _useState = useState(false),
|
|
52
53
|
showMerge = _useState[0],
|
|
53
54
|
setShowMerge = _useState[1];
|
|
@@ -291,6 +292,7 @@ var FileList = function FileList(_ref) {
|
|
|
291
292
|
env: env,
|
|
292
293
|
isPC: isPC,
|
|
293
294
|
signerInfo: signerInfo,
|
|
295
|
+
signInfoMap: signInfoMap,
|
|
294
296
|
disabled: disabled,
|
|
295
297
|
download: download,
|
|
296
298
|
valChange: handleChange,
|
|
@@ -309,6 +311,7 @@ var FileList = function FileList(_ref) {
|
|
|
309
311
|
index: index,
|
|
310
312
|
fileIndex: i,
|
|
311
313
|
signerInfo: signerInfo,
|
|
314
|
+
signInfoMap: signInfoMap,
|
|
312
315
|
file: file,
|
|
313
316
|
fileConfig: item,
|
|
314
317
|
maxFileSize: item.materialSize,
|
|
@@ -24,6 +24,7 @@ export interface FileItemProps {
|
|
|
24
24
|
valChange: (value: any, fileIndex: any, index: any, subIndex: any) => void;
|
|
25
25
|
download: (value: any) => void;
|
|
26
26
|
saveSignerInfo: (value: any) => boolean;
|
|
27
|
+
signInfoMap?: object;
|
|
27
28
|
}
|
|
28
29
|
declare const FileItem: React.FC<FileItemProps>;
|
|
29
30
|
export default FileItem;
|
|
@@ -47,7 +47,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
47
47
|
download = _ref.download,
|
|
48
48
|
openLoading = _ref.openLoading,
|
|
49
49
|
closeLoading = _ref.closeLoading,
|
|
50
|
-
saveSignerInfo = _ref.saveSignerInfo
|
|
50
|
+
saveSignerInfo = _ref.saveSignerInfo,
|
|
51
|
+
signInfoMap = _ref.signInfoMap;
|
|
51
52
|
console.log('fileItem', file, maxFileSize);
|
|
52
53
|
var fileName = file.fileName,
|
|
53
54
|
fileUrl = file.fileUrl,
|
|
@@ -55,17 +56,22 @@ var FileItem = function FileItem(_ref) {
|
|
|
55
56
|
isSigned = file.isSigned,
|
|
56
57
|
isSealed = file.isSealed,
|
|
57
58
|
fileType = file.fileType;
|
|
58
|
-
var
|
|
59
|
+
var materialName = fileConfig.materialName,
|
|
60
|
+
signatureEnable = fileConfig.signatureEnable,
|
|
59
61
|
signEnable = fileConfig.signEnable,
|
|
60
62
|
isInValid = fileConfig.isInValid,
|
|
61
63
|
signGuidFileId = fileConfig.signGuidFileId,
|
|
62
64
|
keyPoint = fileConfig.keyPoint,
|
|
63
65
|
isSmart = fileConfig.isSmart,
|
|
64
66
|
isShareFile = fileConfig.isShareFile,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
_fileConfig$signature = fileConfig.signatureSelfRole,
|
|
68
|
+
signatureSelfRole = _fileConfig$signature === void 0 ? [] : _fileConfig$signature,
|
|
69
|
+
_fileConfig$signature2 = fileConfig.signatureAgentRole,
|
|
70
|
+
signatureAgentRole = _fileConfig$signature2 === void 0 ? [] : _fileConfig$signature2,
|
|
71
|
+
_fileConfig$signSelfR = fileConfig.signSelfRole,
|
|
72
|
+
signSelfRole = _fileConfig$signSelfR === void 0 ? [] : _fileConfig$signSelfR,
|
|
73
|
+
_fileConfig$signAgent = fileConfig.signAgentRole,
|
|
74
|
+
signAgentRole = _fileConfig$signAgent === void 0 ? [] : _fileConfig$signAgent;
|
|
69
75
|
// 需要他人签批或签章
|
|
70
76
|
var needOtherSign = signatureSelfRole.includes(OTHER) || signatureAgentRole.includes(OTHER) || signSelfRole.includes(OTHER) || signAgentRole.includes(OTHER);
|
|
71
77
|
// 需要他人签名
|
|
@@ -901,7 +907,12 @@ var FileItem = function FileItem(_ref) {
|
|
|
901
907
|
signatureEnable: signatureEnable,
|
|
902
908
|
signEnable: signEnable,
|
|
903
909
|
isNeedOtherSign: isNeedOtherSign,
|
|
904
|
-
isNeedOtherSeal: isNeedOtherSeal
|
|
910
|
+
isNeedOtherSeal: isNeedOtherSeal,
|
|
911
|
+
file: _extends({}, file, {
|
|
912
|
+
signGuidFileId: signGuidFileId
|
|
913
|
+
}),
|
|
914
|
+
materialName: materialName,
|
|
915
|
+
signInfoMap: signInfoMap
|
|
905
916
|
}));
|
|
906
917
|
};
|
|
907
918
|
FileItem.displayName = 'FileItem';
|
|
@@ -18,7 +18,10 @@ function SignerInfo(props) {
|
|
|
18
18
|
signatureEnable = props.signatureEnable,
|
|
19
19
|
signEnable = props.signEnable,
|
|
20
20
|
isNeedOtherSign = props.isNeedOtherSign,
|
|
21
|
-
isNeedOtherSeal = props.isNeedOtherSeal
|
|
21
|
+
isNeedOtherSeal = props.isNeedOtherSeal,
|
|
22
|
+
file = props.file,
|
|
23
|
+
materialName = props.materialName,
|
|
24
|
+
signInfoMap = props.signInfoMap;
|
|
22
25
|
var _React$useState = React.useState([]),
|
|
23
26
|
signerInfoList = _React$useState[0],
|
|
24
27
|
setSignerInfoList = _React$useState[1];
|
|
@@ -35,6 +38,16 @@ function SignerInfo(props) {
|
|
|
35
38
|
newList[index] = _extends({}, newList[index], (_extends2 = {}, _extends2[field] = val, _extends2));
|
|
36
39
|
setSignerInfoList(newList);
|
|
37
40
|
};
|
|
41
|
+
var getCurrentTime = function getCurrentTime() {
|
|
42
|
+
var now = new Date();
|
|
43
|
+
var year = now.getFullYear();
|
|
44
|
+
var month = now.getMonth() + 1; // 无前导零
|
|
45
|
+
var day = now.getDate(); // 无前导零
|
|
46
|
+
var hours = now.getHours().toString().padStart(2, '0');
|
|
47
|
+
var minutes = now.getMinutes().toString().padStart(2, '0');
|
|
48
|
+
var seconds = now.getSeconds().toString().padStart(2, '0');
|
|
49
|
+
return year + "/" + month + "/" + day + " " + hours + ":" + minutes + ":" + seconds;
|
|
50
|
+
};
|
|
38
51
|
var next = /*#__PURE__*/function () {
|
|
39
52
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
40
53
|
var saveRes;
|
|
@@ -42,7 +55,12 @@ function SignerInfo(props) {
|
|
|
42
55
|
while (1) switch (_context.prev = _context.next) {
|
|
43
56
|
case 0:
|
|
44
57
|
_context.next = 1;
|
|
45
|
-
return saveSignerInfo(
|
|
58
|
+
return saveSignerInfo({
|
|
59
|
+
list: signerInfoList,
|
|
60
|
+
file: file,
|
|
61
|
+
materialName: materialName,
|
|
62
|
+
date: getCurrentTime()
|
|
63
|
+
});
|
|
46
64
|
case 1:
|
|
47
65
|
saveRes = _context.sent;
|
|
48
66
|
if (saveRes) {
|
|
@@ -73,6 +91,14 @@ function SignerInfo(props) {
|
|
|
73
91
|
navigator.clipboard.writeText(url);
|
|
74
92
|
_Message.success('复制成功');
|
|
75
93
|
};
|
|
94
|
+
useEffect(function () {
|
|
95
|
+
if (signInfoMap && file) {
|
|
96
|
+
var fileId = file.fileId;
|
|
97
|
+
if (signInfoMap[fileId]) {
|
|
98
|
+
setSignerInfoList(signInfoMap[fileId]);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}, [signInfoMap, file]);
|
|
76
102
|
useEffect(function () {
|
|
77
103
|
if (signerInfo) {
|
|
78
104
|
console.log('signerInfo', signerInfo);
|
|
@@ -13,7 +13,8 @@ var Materials = function Materials(_ref) {
|
|
|
13
13
|
baseUrlProp = _ref.baseUrl,
|
|
14
14
|
downloadProp = _ref.download,
|
|
15
15
|
situationResRechangeProp = _ref.situationResRechange,
|
|
16
|
-
taskHandleItemProp = _ref.taskHandleItem
|
|
16
|
+
taskHandleItemProp = _ref.taskHandleItem,
|
|
17
|
+
previousDataProp = _ref.previousData;
|
|
17
18
|
return /*#__PURE__*/React.createElement("div", {
|
|
18
19
|
className: "materials-content"
|
|
19
20
|
}, situationPageUrlProp && /*#__PURE__*/React.createElement(Situation, {
|
|
@@ -25,7 +26,8 @@ var Materials = function Materials(_ref) {
|
|
|
25
26
|
declarationAppToken: declarationAppTokenProp,
|
|
26
27
|
situationPageUrl: situationPageUrlProp,
|
|
27
28
|
situationResRechange: situationResRechangeProp,
|
|
28
|
-
taskHandleItem: taskHandleItemProp
|
|
29
|
+
taskHandleItem: taskHandleItemProp,
|
|
30
|
+
previousData: previousDataProp
|
|
29
31
|
}), /*#__PURE__*/React.createElement(MaterialsList, {
|
|
30
32
|
eventInfo: eventInfoProp,
|
|
31
33
|
finalMaterials: finalMaterialsProp,
|
|
@@ -14,7 +14,8 @@ var Situation = function Situation(_ref) {
|
|
|
14
14
|
declarationAppTokenProp = _ref.declarationAppToken,
|
|
15
15
|
situationPageUrlProp = _ref.situationPageUrl,
|
|
16
16
|
taskHandleItemProp = _ref.taskHandleItem,
|
|
17
|
-
situationResRechangeProp = _ref.situationResRechange
|
|
17
|
+
situationResRechangeProp = _ref.situationResRechange,
|
|
18
|
+
previousDataProp = _ref.previousData;
|
|
18
19
|
var _React$useState = React.useState('说明:因个人情况不同上交材料不同,可通过情形选择查看必须上传的材料!'),
|
|
19
20
|
tip = _React$useState[0];
|
|
20
21
|
var _React$useState2 = React.useState(false),
|
|
@@ -29,14 +30,14 @@ var Situation = function Situation(_ref) {
|
|
|
29
30
|
return function () {
|
|
30
31
|
window.removeEventListener('message', getMessage);
|
|
31
32
|
};
|
|
32
|
-
}, [eventInfoProp, taskHandleItemProp, situationPageUrlProp, declarationAppTokenProp, finalMaterialsProp, applicationIdProp, accessTokenProp, acctTypeProp]);
|
|
33
|
+
}, [eventInfoProp, taskHandleItemProp, situationPageUrlProp, declarationAppTokenProp, finalMaterialsProp, applicationIdProp, accessTokenProp, acctTypeProp, previousDataProp]);
|
|
33
34
|
var initPage = function initPage() {
|
|
34
35
|
if (!situationPageUrlProp) return;
|
|
35
|
-
var url = situationPageUrlProp + "&isFirst=1&isReCheck=1";
|
|
36
|
+
var url = situationPageUrlProp + "&isFirst=1&isReCheck=1&isZXBB=1";
|
|
36
37
|
setIframeSrc(url);
|
|
37
38
|
};
|
|
38
39
|
var getMessage = function getMessage(e) {
|
|
39
|
-
var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData'];
|
|
40
|
+
var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData', 'getPreviousData'];
|
|
40
41
|
var _ref2 = e.data || {},
|
|
41
42
|
type = _ref2.type,
|
|
42
43
|
data = _ref2.data;
|
|
@@ -82,6 +83,9 @@ var Situation = function Situation(_ref) {
|
|
|
82
83
|
case 'getMaterials':
|
|
83
84
|
sendData.data.materials = finalMaterials || (eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.taskGeneralMaterials);
|
|
84
85
|
break;
|
|
86
|
+
case 'getPreviousData':
|
|
87
|
+
sendData.data.previousData = previousDataProp;
|
|
88
|
+
break;
|
|
85
89
|
}
|
|
86
90
|
var formIframe = document.getElementById('situationIframe');
|
|
87
91
|
if (formIframe !== null && formIframe !== void 0 && formIframe.contentWindow) {
|
|
@@ -30,6 +30,8 @@ export interface GuideProps {
|
|
|
30
30
|
download?: (params: any) => void;
|
|
31
31
|
/** Situation result re-change handler */
|
|
32
32
|
situationResRechange?: (data: any) => void;
|
|
33
|
+
/** Previous form data from parent */
|
|
34
|
+
previousData?: any;
|
|
33
35
|
}
|
|
34
36
|
declare const Guide: React.FC<GuideProps>;
|
|
35
37
|
export default Guide;
|
|
@@ -42,7 +42,8 @@ var Guide = function Guide(_ref) {
|
|
|
42
42
|
situationPageUrl = _ref.situationPageUrl,
|
|
43
43
|
baseUrl = _ref.baseUrl,
|
|
44
44
|
download = _ref.download,
|
|
45
|
-
situationResRechange = _ref.situationResRechange
|
|
45
|
+
situationResRechange = _ref.situationResRechange,
|
|
46
|
+
previousData = _ref.previousData;
|
|
46
47
|
var _React$useState = React.useState(false),
|
|
47
48
|
pageLoading = _React$useState[0];
|
|
48
49
|
var _React$useState2 = React.useState(true),
|
|
@@ -286,7 +287,8 @@ var Guide = function Guide(_ref) {
|
|
|
286
287
|
baseUrl: baseUrl,
|
|
287
288
|
download: download,
|
|
288
289
|
situationResRechange: situationResRechange,
|
|
289
|
-
taskHandleItem: taskHandleItem
|
|
290
|
+
taskHandleItem: taskHandleItem,
|
|
291
|
+
previousData: previousData
|
|
290
292
|
}), tabIndex === 1 && /*#__PURE__*/React.createElement(BasicInfo, {
|
|
291
293
|
eventInfo: eventInfoProp
|
|
292
294
|
}), tabIndex === 2 && /*#__PURE__*/React.createElement(ProcessImg, {
|
|
@@ -32,7 +32,7 @@ var SignFile = function SignFile(_ref) {
|
|
|
32
32
|
fileType = file.fileType,
|
|
33
33
|
signatureEnable = file.signatureEnable,
|
|
34
34
|
signEnable = file.signEnable,
|
|
35
|
-
guideImg = file.
|
|
35
|
+
guideImg = file.signGuidFileId;
|
|
36
36
|
var _useState = useState(false),
|
|
37
37
|
isShowSignPage = _useState[0],
|
|
38
38
|
setIsShowSignPage = _useState[1];
|
|
@@ -52,7 +52,8 @@ var FileList = function FileList(_ref) {
|
|
|
52
52
|
openLoading = _ref.openLoading,
|
|
53
53
|
closeLoading = _ref.closeLoading,
|
|
54
54
|
valChange = _ref.valChange,
|
|
55
|
-
saveSignerInfo = _ref.saveSignerInfo
|
|
55
|
+
saveSignerInfo = _ref.saveSignerInfo,
|
|
56
|
+
signInfoMap = _ref.signInfoMap;
|
|
56
57
|
var _useState = (0, _react.useState)(false),
|
|
57
58
|
showMerge = _useState[0],
|
|
58
59
|
setShowMerge = _useState[1];
|
|
@@ -296,6 +297,7 @@ var FileList = function FileList(_ref) {
|
|
|
296
297
|
env: env,
|
|
297
298
|
isPC: isPC,
|
|
298
299
|
signerInfo: signerInfo,
|
|
300
|
+
signInfoMap: signInfoMap,
|
|
299
301
|
disabled: disabled,
|
|
300
302
|
download: download,
|
|
301
303
|
valChange: handleChange,
|
|
@@ -314,6 +316,7 @@ var FileList = function FileList(_ref) {
|
|
|
314
316
|
index: index,
|
|
315
317
|
fileIndex: i,
|
|
316
318
|
signerInfo: signerInfo,
|
|
319
|
+
signInfoMap: signInfoMap,
|
|
317
320
|
file: file,
|
|
318
321
|
fileConfig: item,
|
|
319
322
|
maxFileSize: item.materialSize,
|
|
@@ -24,6 +24,7 @@ export interface FileItemProps {
|
|
|
24
24
|
valChange: (value: any, fileIndex: any, index: any, subIndex: any) => void;
|
|
25
25
|
download: (value: any) => void;
|
|
26
26
|
saveSignerInfo: (value: any) => boolean;
|
|
27
|
+
signInfoMap?: object;
|
|
27
28
|
}
|
|
28
29
|
declare const FileItem: React.FC<FileItemProps>;
|
|
29
30
|
export default FileItem;
|
|
@@ -53,7 +53,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
53
53
|
download = _ref.download,
|
|
54
54
|
openLoading = _ref.openLoading,
|
|
55
55
|
closeLoading = _ref.closeLoading,
|
|
56
|
-
saveSignerInfo = _ref.saveSignerInfo
|
|
56
|
+
saveSignerInfo = _ref.saveSignerInfo,
|
|
57
|
+
signInfoMap = _ref.signInfoMap;
|
|
57
58
|
console.log('fileItem', file, maxFileSize);
|
|
58
59
|
var fileName = file.fileName,
|
|
59
60
|
fileUrl = file.fileUrl,
|
|
@@ -61,17 +62,22 @@ var FileItem = function FileItem(_ref) {
|
|
|
61
62
|
isSigned = file.isSigned,
|
|
62
63
|
isSealed = file.isSealed,
|
|
63
64
|
fileType = file.fileType;
|
|
64
|
-
var
|
|
65
|
+
var materialName = fileConfig.materialName,
|
|
66
|
+
signatureEnable = fileConfig.signatureEnable,
|
|
65
67
|
signEnable = fileConfig.signEnable,
|
|
66
68
|
isInValid = fileConfig.isInValid,
|
|
67
69
|
signGuidFileId = fileConfig.signGuidFileId,
|
|
68
70
|
keyPoint = fileConfig.keyPoint,
|
|
69
71
|
isSmart = fileConfig.isSmart,
|
|
70
72
|
isShareFile = fileConfig.isShareFile,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
_fileConfig$signature = fileConfig.signatureSelfRole,
|
|
74
|
+
signatureSelfRole = _fileConfig$signature === void 0 ? [] : _fileConfig$signature,
|
|
75
|
+
_fileConfig$signature2 = fileConfig.signatureAgentRole,
|
|
76
|
+
signatureAgentRole = _fileConfig$signature2 === void 0 ? [] : _fileConfig$signature2,
|
|
77
|
+
_fileConfig$signSelfR = fileConfig.signSelfRole,
|
|
78
|
+
signSelfRole = _fileConfig$signSelfR === void 0 ? [] : _fileConfig$signSelfR,
|
|
79
|
+
_fileConfig$signAgent = fileConfig.signAgentRole,
|
|
80
|
+
signAgentRole = _fileConfig$signAgent === void 0 ? [] : _fileConfig$signAgent;
|
|
75
81
|
// 需要他人签批或签章
|
|
76
82
|
var needOtherSign = signatureSelfRole.includes(OTHER) || signatureAgentRole.includes(OTHER) || signSelfRole.includes(OTHER) || signAgentRole.includes(OTHER);
|
|
77
83
|
// 需要他人签名
|
|
@@ -907,7 +913,12 @@ var FileItem = function FileItem(_ref) {
|
|
|
907
913
|
signatureEnable: signatureEnable,
|
|
908
914
|
signEnable: signEnable,
|
|
909
915
|
isNeedOtherSign: isNeedOtherSign,
|
|
910
|
-
isNeedOtherSeal: isNeedOtherSeal
|
|
916
|
+
isNeedOtherSeal: isNeedOtherSeal,
|
|
917
|
+
file: (0, _extends3["default"])({}, file, {
|
|
918
|
+
signGuidFileId: signGuidFileId
|
|
919
|
+
}),
|
|
920
|
+
materialName: materialName,
|
|
921
|
+
signInfoMap: signInfoMap
|
|
911
922
|
}));
|
|
912
923
|
};
|
|
913
924
|
FileItem.displayName = 'FileItem';
|
|
@@ -24,7 +24,10 @@ function SignerInfo(props) {
|
|
|
24
24
|
signatureEnable = props.signatureEnable,
|
|
25
25
|
signEnable = props.signEnable,
|
|
26
26
|
isNeedOtherSign = props.isNeedOtherSign,
|
|
27
|
-
isNeedOtherSeal = props.isNeedOtherSeal
|
|
27
|
+
isNeedOtherSeal = props.isNeedOtherSeal,
|
|
28
|
+
file = props.file,
|
|
29
|
+
materialName = props.materialName,
|
|
30
|
+
signInfoMap = props.signInfoMap;
|
|
28
31
|
var _React$useState = _react["default"].useState([]),
|
|
29
32
|
signerInfoList = _React$useState[0],
|
|
30
33
|
setSignerInfoList = _React$useState[1];
|
|
@@ -41,6 +44,16 @@ function SignerInfo(props) {
|
|
|
41
44
|
newList[index] = (0, _extends3["default"])({}, newList[index], (_extends2 = {}, _extends2[field] = val, _extends2));
|
|
42
45
|
setSignerInfoList(newList);
|
|
43
46
|
};
|
|
47
|
+
var getCurrentTime = function getCurrentTime() {
|
|
48
|
+
var now = new Date();
|
|
49
|
+
var year = now.getFullYear();
|
|
50
|
+
var month = now.getMonth() + 1; // 无前导零
|
|
51
|
+
var day = now.getDate(); // 无前导零
|
|
52
|
+
var hours = now.getHours().toString().padStart(2, '0');
|
|
53
|
+
var minutes = now.getMinutes().toString().padStart(2, '0');
|
|
54
|
+
var seconds = now.getSeconds().toString().padStart(2, '0');
|
|
55
|
+
return year + "/" + month + "/" + day + " " + hours + ":" + minutes + ":" + seconds;
|
|
56
|
+
};
|
|
44
57
|
var next = /*#__PURE__*/function () {
|
|
45
58
|
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
46
59
|
var saveRes;
|
|
@@ -48,7 +61,12 @@ function SignerInfo(props) {
|
|
|
48
61
|
while (1) switch (_context.prev = _context.next) {
|
|
49
62
|
case 0:
|
|
50
63
|
_context.next = 1;
|
|
51
|
-
return saveSignerInfo(
|
|
64
|
+
return saveSignerInfo({
|
|
65
|
+
list: signerInfoList,
|
|
66
|
+
file: file,
|
|
67
|
+
materialName: materialName,
|
|
68
|
+
date: getCurrentTime()
|
|
69
|
+
});
|
|
52
70
|
case 1:
|
|
53
71
|
saveRes = _context.sent;
|
|
54
72
|
if (saveRes) {
|
|
@@ -79,6 +97,14 @@ function SignerInfo(props) {
|
|
|
79
97
|
navigator.clipboard.writeText(url);
|
|
80
98
|
_message["default"].success('复制成功');
|
|
81
99
|
};
|
|
100
|
+
(0, _react.useEffect)(function () {
|
|
101
|
+
if (signInfoMap && file) {
|
|
102
|
+
var fileId = file.fileId;
|
|
103
|
+
if (signInfoMap[fileId]) {
|
|
104
|
+
setSignerInfoList(signInfoMap[fileId]);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, [signInfoMap, file]);
|
|
82
108
|
(0, _react.useEffect)(function () {
|
|
83
109
|
if (signerInfo) {
|
|
84
110
|
console.log('signerInfo', signerInfo);
|
|
@@ -19,7 +19,8 @@ var Materials = function Materials(_ref) {
|
|
|
19
19
|
baseUrlProp = _ref.baseUrl,
|
|
20
20
|
downloadProp = _ref.download,
|
|
21
21
|
situationResRechangeProp = _ref.situationResRechange,
|
|
22
|
-
taskHandleItemProp = _ref.taskHandleItem
|
|
22
|
+
taskHandleItemProp = _ref.taskHandleItem,
|
|
23
|
+
previousDataProp = _ref.previousData;
|
|
23
24
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
25
|
className: "materials-content"
|
|
25
26
|
}, situationPageUrlProp && /*#__PURE__*/React.createElement(_situation["default"], {
|
|
@@ -31,7 +32,8 @@ var Materials = function Materials(_ref) {
|
|
|
31
32
|
declarationAppToken: declarationAppTokenProp,
|
|
32
33
|
situationPageUrl: situationPageUrlProp,
|
|
33
34
|
situationResRechange: situationResRechangeProp,
|
|
34
|
-
taskHandleItem: taskHandleItemProp
|
|
35
|
+
taskHandleItem: taskHandleItemProp,
|
|
36
|
+
previousData: previousDataProp
|
|
35
37
|
}), /*#__PURE__*/React.createElement(_materialsList["default"], {
|
|
36
38
|
eventInfo: eventInfoProp,
|
|
37
39
|
finalMaterials: finalMaterialsProp,
|
|
@@ -18,7 +18,8 @@ var Situation = function Situation(_ref) {
|
|
|
18
18
|
declarationAppTokenProp = _ref.declarationAppToken,
|
|
19
19
|
situationPageUrlProp = _ref.situationPageUrl,
|
|
20
20
|
taskHandleItemProp = _ref.taskHandleItem,
|
|
21
|
-
situationResRechangeProp = _ref.situationResRechange
|
|
21
|
+
situationResRechangeProp = _ref.situationResRechange,
|
|
22
|
+
previousDataProp = _ref.previousData;
|
|
22
23
|
var _React$useState = React.useState('说明:因个人情况不同上交材料不同,可通过情形选择查看必须上传的材料!'),
|
|
23
24
|
tip = _React$useState[0];
|
|
24
25
|
var _React$useState2 = React.useState(false),
|
|
@@ -33,14 +34,14 @@ var Situation = function Situation(_ref) {
|
|
|
33
34
|
return function () {
|
|
34
35
|
window.removeEventListener('message', getMessage);
|
|
35
36
|
};
|
|
36
|
-
}, [eventInfoProp, taskHandleItemProp, situationPageUrlProp, declarationAppTokenProp, finalMaterialsProp, applicationIdProp, accessTokenProp, acctTypeProp]);
|
|
37
|
+
}, [eventInfoProp, taskHandleItemProp, situationPageUrlProp, declarationAppTokenProp, finalMaterialsProp, applicationIdProp, accessTokenProp, acctTypeProp, previousDataProp]);
|
|
37
38
|
var initPage = function initPage() {
|
|
38
39
|
if (!situationPageUrlProp) return;
|
|
39
|
-
var url = situationPageUrlProp + "&isFirst=1&isReCheck=1";
|
|
40
|
+
var url = situationPageUrlProp + "&isFirst=1&isReCheck=1&isZXBB=1";
|
|
40
41
|
setIframeSrc(url);
|
|
41
42
|
};
|
|
42
43
|
var getMessage = function getMessage(e) {
|
|
43
|
-
var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData'];
|
|
44
|
+
var typeArr = ['getAccessToken', 'getDeclaraToken', 'getApplicationId', 'getTaskHandleItem', 'getFormId', 'getMaterials', 'getFormData', 'getPreviousData'];
|
|
44
45
|
var _ref2 = e.data || {},
|
|
45
46
|
type = _ref2.type,
|
|
46
47
|
data = _ref2.data;
|
|
@@ -86,6 +87,9 @@ var Situation = function Situation(_ref) {
|
|
|
86
87
|
case 'getMaterials':
|
|
87
88
|
sendData.data.materials = finalMaterials || (eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.taskGeneralMaterials);
|
|
88
89
|
break;
|
|
90
|
+
case 'getPreviousData':
|
|
91
|
+
sendData.data.previousData = previousDataProp;
|
|
92
|
+
break;
|
|
89
93
|
}
|
|
90
94
|
var formIframe = document.getElementById('situationIframe');
|
|
91
95
|
if (formIframe !== null && formIframe !== void 0 && formIframe.contentWindow) {
|
|
@@ -30,6 +30,8 @@ export interface GuideProps {
|
|
|
30
30
|
download?: (params: any) => void;
|
|
31
31
|
/** Situation result re-change handler */
|
|
32
32
|
situationResRechange?: (data: any) => void;
|
|
33
|
+
/** Previous form data from parent */
|
|
34
|
+
previousData?: any;
|
|
33
35
|
}
|
|
34
36
|
declare const Guide: React.FC<GuideProps>;
|
|
35
37
|
export default Guide;
|
|
@@ -47,7 +47,8 @@ var Guide = function Guide(_ref) {
|
|
|
47
47
|
situationPageUrl = _ref.situationPageUrl,
|
|
48
48
|
baseUrl = _ref.baseUrl,
|
|
49
49
|
download = _ref.download,
|
|
50
|
-
situationResRechange = _ref.situationResRechange
|
|
50
|
+
situationResRechange = _ref.situationResRechange,
|
|
51
|
+
previousData = _ref.previousData;
|
|
51
52
|
var _React$useState = React.useState(false),
|
|
52
53
|
pageLoading = _React$useState[0];
|
|
53
54
|
var _React$useState2 = React.useState(true),
|
|
@@ -291,7 +292,8 @@ var Guide = function Guide(_ref) {
|
|
|
291
292
|
baseUrl: baseUrl,
|
|
292
293
|
download: download,
|
|
293
294
|
situationResRechange: situationResRechange,
|
|
294
|
-
taskHandleItem: taskHandleItem
|
|
295
|
+
taskHandleItem: taskHandleItem,
|
|
296
|
+
previousData: previousData
|
|
295
297
|
}), tabIndex === 1 && /*#__PURE__*/React.createElement(_basicInfo["default"], {
|
|
296
298
|
eventInfo: eventInfoProp
|
|
297
299
|
}), tabIndex === 2 && /*#__PURE__*/React.createElement(_processImg["default"], {
|
|
@@ -39,7 +39,7 @@ var SignFile = function SignFile(_ref) {
|
|
|
39
39
|
fileType = file.fileType,
|
|
40
40
|
signatureEnable = file.signatureEnable,
|
|
41
41
|
signEnable = file.signEnable,
|
|
42
|
-
guideImg = file.
|
|
42
|
+
guideImg = file.signGuidFileId;
|
|
43
43
|
var _useState = (0, _react.useState)(false),
|
|
44
44
|
isShowSignPage = _useState[0],
|
|
45
45
|
setIsShowSignPage = _useState[1];
|
|
@@ -76,6 +76,32 @@ const FileListMeta: IPublicTypeComponentMetadata = {
|
|
|
76
76
|
"initialValue": undefined
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
"title": {
|
|
81
|
+
"label": {
|
|
82
|
+
"type": "i18n",
|
|
83
|
+
"en-US": "signInfoMap",
|
|
84
|
+
"zh-CN": "signInfoMap"
|
|
85
|
+
},
|
|
86
|
+
"tip": "signInfoMap | signInfoMap"
|
|
87
|
+
},
|
|
88
|
+
"name": "signInfoMap",
|
|
89
|
+
"description": "signInfoMap",
|
|
90
|
+
"setter": {
|
|
91
|
+
"componentName": "ObjectSetter",
|
|
92
|
+
"props": {
|
|
93
|
+
"config": {
|
|
94
|
+
"extraSetter": {
|
|
95
|
+
"componentName": "MixedSetter",
|
|
96
|
+
"isRequired": false,
|
|
97
|
+
"props": {}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"isRequired": false,
|
|
102
|
+
"initialValue": undefined
|
|
103
|
+
}
|
|
104
|
+
},
|
|
79
105
|
{
|
|
80
106
|
"title": {
|
|
81
107
|
"label": {
|
package/lowcode/guide/meta.ts
CHANGED
|
@@ -169,6 +169,32 @@ const GuideMeta: IPublicTypeComponentMetadata = {
|
|
|
169
169
|
"initialValue": {}
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
|
+
{
|
|
173
|
+
"title": {
|
|
174
|
+
"label": {
|
|
175
|
+
"type": "i18n",
|
|
176
|
+
"en-US": "previousData",
|
|
177
|
+
"zh-CN": "previousData"
|
|
178
|
+
},
|
|
179
|
+
"tip": "previousData"
|
|
180
|
+
},
|
|
181
|
+
"name": "previousData",
|
|
182
|
+
"description": "previousData",
|
|
183
|
+
"setter": {
|
|
184
|
+
"componentName": "ObjectSetter",
|
|
185
|
+
"props": {
|
|
186
|
+
"config": {
|
|
187
|
+
"extraSetter": {
|
|
188
|
+
"componentName": "MixedSetter",
|
|
189
|
+
"isRequired": false,
|
|
190
|
+
"props": {}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"isRequired": false,
|
|
195
|
+
"initialValue": undefined
|
|
196
|
+
}
|
|
197
|
+
},
|
|
172
198
|
{
|
|
173
199
|
"title": {
|
|
174
200
|
"label": {
|
|
@@ -71,6 +71,31 @@ var FileListMeta = {
|
|
|
71
71
|
"isRequired": false,
|
|
72
72
|
"initialValue": undefined
|
|
73
73
|
}
|
|
74
|
+
}, {
|
|
75
|
+
"title": {
|
|
76
|
+
"label": {
|
|
77
|
+
"type": "i18n",
|
|
78
|
+
"en-US": "signInfoMap",
|
|
79
|
+
"zh-CN": "signInfoMap"
|
|
80
|
+
},
|
|
81
|
+
"tip": "signInfoMap | signInfoMap"
|
|
82
|
+
},
|
|
83
|
+
"name": "signInfoMap",
|
|
84
|
+
"description": "signInfoMap",
|
|
85
|
+
"setter": {
|
|
86
|
+
"componentName": "ObjectSetter",
|
|
87
|
+
"props": {
|
|
88
|
+
"config": {
|
|
89
|
+
"extraSetter": {
|
|
90
|
+
"componentName": "MixedSetter",
|
|
91
|
+
"isRequired": false,
|
|
92
|
+
"props": {}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"isRequired": false,
|
|
97
|
+
"initialValue": undefined
|
|
98
|
+
}
|
|
74
99
|
}, {
|
|
75
100
|
"title": {
|
|
76
101
|
"label": {
|