ydb-components-material 0.1.111 → 0.1.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/{umi.473363dd.js → umi.d94386b2.js} +1 -1
  7. package/build/docs/~demos/:uuid.html +3 -3
  8. package/build/docs/~demos/colorful-button-demo.html +3 -3
  9. package/build/docs/~demos/colorful-input-demo.html +3 -3
  10. package/build/lowcode/assets-daily.json +11 -11
  11. package/build/lowcode/assets-dev.json +2 -2
  12. package/build/lowcode/assets-prod.json +11 -11
  13. package/build/lowcode/meta.js +1 -1
  14. package/build/lowcode/render/default/view.js +1 -1
  15. package/build/lowcode/view.js +1 -1
  16. package/dist/BizComps.js +1 -1
  17. package/dist/BizComps.js.map +1 -1
  18. package/es/components/file-list/index.d.ts +1 -0
  19. package/es/components/file-list/index.js +4 -1
  20. package/es/components/file-list/item.d.ts +1 -0
  21. package/es/components/file-list/item.js +8 -3
  22. package/es/components/file-list/signerInfo.js +28 -2
  23. package/es/components/guide/compoents/materials/materials.d.ts +1 -0
  24. package/es/components/guide/compoents/materials/materials.js +4 -2
  25. package/es/components/guide/compoents/materials/situation.d.ts +1 -0
  26. package/es/components/guide/compoents/materials/situation.js +8 -4
  27. package/es/components/guide/index.d.ts +2 -0
  28. package/es/components/guide/index.js +4 -2
  29. package/lib/components/file-list/index.d.ts +1 -0
  30. package/lib/components/file-list/index.js +4 -1
  31. package/lib/components/file-list/item.d.ts +1 -0
  32. package/lib/components/file-list/item.js +8 -3
  33. package/lib/components/file-list/signerInfo.js +28 -2
  34. package/lib/components/guide/compoents/materials/materials.d.ts +1 -0
  35. package/lib/components/guide/compoents/materials/materials.js +4 -2
  36. package/lib/components/guide/compoents/materials/situation.d.ts +1 -0
  37. package/lib/components/guide/compoents/materials/situation.js +8 -4
  38. package/lib/components/guide/index.d.ts +2 -0
  39. package/lib/components/guide/index.js +4 -2
  40. package/lowcode/file-list/meta.ts +26 -0
  41. package/lowcode/guide/meta.ts +26 -0
  42. package/lowcode_es/file-list/meta.js +25 -0
  43. package/lowcode_es/guide/meta.js +25 -0
  44. package/lowcode_es/meta.js +1 -1
  45. package/lowcode_lib/file-list/meta.js +25 -0
  46. package/lowcode_lib/guide/meta.js +25 -0
  47. package/lowcode_lib/meta.js +1 -1
  48. package/package.json +3 -3
@@ -20,6 +20,7 @@ export interface FileListProps {
20
20
  closeLoading: () => void;
21
21
  valChange: (value: any) => void;
22
22
  saveSignerInfo: (value: any) => boolean;
23
+ signInfoMap?: object;
23
24
  }
24
25
  declare const FileList: React.FC<FileListProps>;
25
26
  export default FileList;
@@ -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,7 +56,8 @@ var FileItem = function FileItem(_ref) {
55
56
  isSigned = file.isSigned,
56
57
  isSealed = file.isSealed,
57
58
  fileType = file.fileType;
58
- var signatureEnable = fileConfig.signatureEnable,
59
+ var materialName = fileConfig.materialName,
60
+ signatureEnable = fileConfig.signatureEnable,
59
61
  signEnable = fileConfig.signEnable,
60
62
  isInValid = fileConfig.isInValid,
61
63
  signGuidFileId = fileConfig.signGuidFileId,
@@ -901,7 +903,10 @@ var FileItem = function FileItem(_ref) {
901
903
  signatureEnable: signatureEnable,
902
904
  signEnable: signEnable,
903
905
  isNeedOtherSign: isNeedOtherSign,
904
- isNeedOtherSeal: isNeedOtherSeal
906
+ isNeedOtherSeal: isNeedOtherSeal,
907
+ file: file,
908
+ materialName: materialName,
909
+ signInfoMap: signInfoMap
905
910
  }));
906
911
  };
907
912
  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(signerInfoList);
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);
@@ -12,6 +12,7 @@ export interface MaterialsProps {
12
12
  download?: (params: any) => void;
13
13
  situationResRechange?: (data: any) => void;
14
14
  taskHandleItem?: string;
15
+ previousData?: any;
15
16
  }
16
17
  declare const Materials: React.FC<MaterialsProps>;
17
18
  export default Materials;
@@ -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,
@@ -10,6 +10,7 @@ export interface SituationProps {
10
10
  situationPageUrl?: string;
11
11
  taskHandleItem?: string;
12
12
  situationResRechange?: (data: any) => void;
13
+ previousData?: any;
13
14
  }
14
15
  declare const Situation: React.FC<SituationProps>;
15
16
  export default Situation;
@@ -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, {
@@ -20,6 +20,7 @@ export interface FileListProps {
20
20
  closeLoading: () => void;
21
21
  valChange: (value: any) => void;
22
22
  saveSignerInfo: (value: any) => boolean;
23
+ signInfoMap?: object;
23
24
  }
24
25
  declare const FileList: React.FC<FileListProps>;
25
26
  export default FileList;
@@ -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,7 +62,8 @@ var FileItem = function FileItem(_ref) {
61
62
  isSigned = file.isSigned,
62
63
  isSealed = file.isSealed,
63
64
  fileType = file.fileType;
64
- var signatureEnable = fileConfig.signatureEnable,
65
+ var materialName = fileConfig.materialName,
66
+ signatureEnable = fileConfig.signatureEnable,
65
67
  signEnable = fileConfig.signEnable,
66
68
  isInValid = fileConfig.isInValid,
67
69
  signGuidFileId = fileConfig.signGuidFileId,
@@ -907,7 +909,10 @@ var FileItem = function FileItem(_ref) {
907
909
  signatureEnable: signatureEnable,
908
910
  signEnable: signEnable,
909
911
  isNeedOtherSign: isNeedOtherSign,
910
- isNeedOtherSeal: isNeedOtherSeal
912
+ isNeedOtherSeal: isNeedOtherSeal,
913
+ file: file,
914
+ materialName: materialName,
915
+ signInfoMap: signInfoMap
911
916
  }));
912
917
  };
913
918
  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(signerInfoList);
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);
@@ -12,6 +12,7 @@ export interface MaterialsProps {
12
12
  download?: (params: any) => void;
13
13
  situationResRechange?: (data: any) => void;
14
14
  taskHandleItem?: string;
15
+ previousData?: any;
15
16
  }
16
17
  declare const Materials: React.FC<MaterialsProps>;
17
18
  export default Materials;
@@ -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,
@@ -10,6 +10,7 @@ export interface SituationProps {
10
10
  situationPageUrl?: string;
11
11
  taskHandleItem?: string;
12
12
  situationResRechange?: (data: any) => void;
13
+ previousData?: any;
13
14
  }
14
15
  declare const Situation: React.FC<SituationProps>;
15
16
  export default Situation;
@@ -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"], {
@@ -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": {
@@ -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": {
@@ -158,6 +158,31 @@ var GuideMeta = {
158
158
  "isRequired": false,
159
159
  "initialValue": {}
160
160
  }
161
+ }, {
162
+ "title": {
163
+ "label": {
164
+ "type": "i18n",
165
+ "en-US": "previousData",
166
+ "zh-CN": "previousData"
167
+ },
168
+ "tip": "previousData"
169
+ },
170
+ "name": "previousData",
171
+ "description": "previousData",
172
+ "setter": {
173
+ "componentName": "ObjectSetter",
174
+ "props": {
175
+ "config": {
176
+ "extraSetter": {
177
+ "componentName": "MixedSetter",
178
+ "isRequired": false,
179
+ "props": {}
180
+ }
181
+ }
182
+ },
183
+ "isRequired": false,
184
+ "initialValue": undefined
185
+ }
161
186
  }, {
162
187
  "title": {
163
188
  "label": {
@@ -97,7 +97,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
97
97
  packageName = 'ydb-components-material';
98
98
  }
99
99
  if (version === void 0) {
100
- version = '0.1.111';
100
+ version = '0.1.112';
101
101
  }
102
102
  if (basicLibraryVersion === void 0) {
103
103
  basicLibraryVersion = {
@@ -76,6 +76,31 @@ var FileListMeta = {
76
76
  "isRequired": false,
77
77
  "initialValue": undefined
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
+ }
79
104
  }, {
80
105
  "title": {
81
106
  "label": {