ydb-components-material 0.1.102 → 0.1.104

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 (192) 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/static/bg2.a0dfd810.png +0 -0
  7. package/build/docs/static/commonBg.83239798.png +0 -0
  8. package/build/docs/static/empty.7e69f478.png +0 -0
  9. package/build/docs/{umi.41b85bf9.css → umi.82ebabdb.css} +1 -1
  10. package/build/docs/umi.967ad73e.js +1 -0
  11. package/build/docs/~demos/:uuid.html +3 -3
  12. package/build/docs/~demos/colorful-button-demo.html +3 -3
  13. package/build/docs/~demos/colorful-input-demo.html +3 -3
  14. package/build/lowcode/3.js +2 -2
  15. package/build/lowcode/4.js +1 -1
  16. package/build/lowcode/5.js +1 -1
  17. package/build/lowcode/assets/260814268e08d6e791032a27843cd215.png +0 -0
  18. package/build/lowcode/assets/3eb597ba730c5870765c2c09b7853d78.png +0 -0
  19. package/build/lowcode/assets/56daf7f96b7eadb3665f9b32b176a50e.png +0 -0
  20. package/build/lowcode/assets-daily.json +11 -11
  21. package/build/lowcode/assets-dev.json +2 -2
  22. package/build/lowcode/assets-prod.json +11 -11
  23. package/build/lowcode/index.js +1 -1
  24. package/build/lowcode/meta.js +1 -1
  25. package/build/lowcode/preview.js +9 -9
  26. package/build/lowcode/render/default/1.js +2 -2
  27. package/build/lowcode/render/default/2.js +1 -1
  28. package/build/lowcode/render/default/3.js +1 -1
  29. package/build/lowcode/render/default/assets/260814268e08d6e791032a27843cd215.png +0 -0
  30. package/build/lowcode/render/default/assets/3eb597ba730c5870765c2c09b7853d78.png +0 -0
  31. package/build/lowcode/render/default/assets/56daf7f96b7eadb3665f9b32b176a50e.png +0 -0
  32. package/build/lowcode/render/default/view.css +1 -1
  33. package/build/lowcode/render/default/view.js +17 -17
  34. package/build/lowcode/view.css +1 -1
  35. package/build/lowcode/view.js +17 -17
  36. package/dist/1.js +2 -2
  37. package/dist/2.js +1 -1
  38. package/dist/3.js +1 -1
  39. package/dist/BizComps.css +1 -1
  40. package/dist/BizComps.js +23 -23
  41. package/dist/BizComps.js.map +1 -1
  42. package/dist/assets/260814268e08d6e791032a27843cd215.png +0 -0
  43. package/dist/assets/3eb597ba730c5870765c2c09b7853d78.png +0 -0
  44. package/dist/assets/56daf7f96b7eadb3665f9b32b176a50e.png +0 -0
  45. package/es/components/check-loading/index.scss +3 -0
  46. package/es/components/guide/_utils.d.ts +4 -0
  47. package/es/components/guide/_utils.js +45 -0
  48. package/es/components/guide/comment.d.ts +9 -0
  49. package/es/components/guide/comment.js +97 -0
  50. package/es/components/guide/comment.scss +23 -0
  51. package/es/components/guide/compoents/accept.d.ts +7 -0
  52. package/es/components/guide/compoents/accept.js +35 -0
  53. package/es/components/guide/compoents/accept.scss +11 -0
  54. package/es/components/guide/compoents/basicInfo.d.ts +7 -0
  55. package/es/components/guide/compoents/basicInfo.js +81 -0
  56. package/es/components/guide/compoents/basicInfo.scss +32 -0
  57. package/es/components/guide/compoents/eventInfo.d.ts +8 -0
  58. package/es/components/guide/compoents/eventInfo.js +87 -0
  59. package/es/components/guide/compoents/eventInfo.scss +87 -0
  60. package/es/components/guide/compoents/guideTabs.d.ts +20 -0
  61. package/es/components/guide/compoents/guideTabs.js +55 -0
  62. package/es/components/guide/compoents/guideTabs.scss +39 -0
  63. package/es/components/guide/compoents/materials/checkPoint.d.ts +3 -0
  64. package/es/components/guide/compoents/materials/checkPoint.js +154 -0
  65. package/es/components/guide/compoents/materials/checkPoint.scss +120 -0
  66. package/es/components/guide/compoents/materials/materials.d.ts +22 -0
  67. package/es/components/guide/compoents/materials/materials.js +60 -0
  68. package/es/components/guide/compoents/materials/materials.scss +3 -0
  69. package/es/components/guide/compoents/materials/materialsList.d.ts +11 -0
  70. package/es/components/guide/compoents/materials/materialsList.js +411 -0
  71. package/es/components/guide/compoents/materials/materialsList.scss +170 -0
  72. package/es/components/guide/compoents/materials/situation.d.ts +20 -0
  73. package/es/components/guide/compoents/materials/situation.js +152 -0
  74. package/es/components/guide/compoents/materials/situation.scss +63 -0
  75. package/es/components/guide/compoents/places.d.ts +7 -0
  76. package/es/components/guide/compoents/places.js +129 -0
  77. package/es/components/guide/compoents/places.scss +71 -0
  78. package/es/components/guide/compoents/processImg.d.ts +9 -0
  79. package/es/components/guide/compoents/processImg.js +149 -0
  80. package/es/components/guide/compoents/processImg.scss +88 -0
  81. package/es/components/guide/compoents/result.d.ts +7 -0
  82. package/es/components/guide/compoents/result.js +121 -0
  83. package/es/components/guide/compoents/result.scss +88 -0
  84. package/es/components/guide/imgs/bg1.png +0 -0
  85. package/es/components/guide/imgs/bg2.png +0 -0
  86. package/es/components/guide/imgs/bg22.png +0 -0
  87. package/es/components/guide/imgs/cant.png +0 -0
  88. package/es/components/guide/imgs/checkBg.png +0 -0
  89. package/es/components/guide/imgs/checkBgPc.png +0 -0
  90. package/es/components/guide/imgs/comment.png +0 -0
  91. package/es/components/guide/imgs/commonBg.png +0 -0
  92. package/es/components/guide/imgs/down.png +0 -0
  93. package/es/components/guide/imgs/download.png +0 -0
  94. package/es/components/guide/imgs/empty.png +0 -0
  95. package/es/components/guide/imgs/icon1.png +0 -0
  96. package/es/components/guide/imgs/icon2.png +0 -0
  97. package/es/components/guide/imgs/icon3.png +0 -0
  98. package/es/components/guide/imgs/icon4.png +0 -0
  99. package/es/components/guide/imgs/iconA.png +0 -0
  100. package/es/components/guide/imgs/iconB.png +0 -0
  101. package/es/components/guide/imgs/iconC.png +0 -0
  102. package/es/components/guide/imgs/loading.gif +0 -0
  103. package/es/components/guide/imgs/mapMarker.png +0 -0
  104. package/es/components/guide/imgs/share.png +0 -0
  105. package/es/components/guide/imgs/tab_switch.png +0 -0
  106. package/es/components/guide/index.d.ts +48 -0
  107. package/es/components/guide/index.js +440 -0
  108. package/es/components/guide/index.scss +178 -0
  109. package/es/index.d.ts +4 -0
  110. package/es/index.js +2 -0
  111. package/es/style.js +3 -0
  112. package/lib/components/check-loading/index.scss +3 -0
  113. package/lib/components/guide/_utils.d.ts +4 -0
  114. package/lib/components/guide/_utils.js +52 -0
  115. package/lib/components/guide/comment.d.ts +9 -0
  116. package/lib/components/guide/comment.js +102 -0
  117. package/lib/components/guide/comment.scss +23 -0
  118. package/lib/components/guide/compoents/accept.d.ts +7 -0
  119. package/lib/components/guide/compoents/accept.js +40 -0
  120. package/lib/components/guide/compoents/accept.scss +11 -0
  121. package/lib/components/guide/compoents/basicInfo.d.ts +7 -0
  122. package/lib/components/guide/compoents/basicInfo.js +86 -0
  123. package/lib/components/guide/compoents/basicInfo.scss +32 -0
  124. package/lib/components/guide/compoents/eventInfo.d.ts +8 -0
  125. package/lib/components/guide/compoents/eventInfo.js +92 -0
  126. package/lib/components/guide/compoents/eventInfo.scss +87 -0
  127. package/lib/components/guide/compoents/guideTabs.d.ts +20 -0
  128. package/lib/components/guide/compoents/guideTabs.js +60 -0
  129. package/lib/components/guide/compoents/guideTabs.scss +39 -0
  130. package/lib/components/guide/compoents/materials/checkPoint.d.ts +3 -0
  131. package/lib/components/guide/compoents/materials/checkPoint.js +159 -0
  132. package/lib/components/guide/compoents/materials/checkPoint.scss +120 -0
  133. package/lib/components/guide/compoents/materials/materials.d.ts +22 -0
  134. package/lib/components/guide/compoents/materials/materials.js +66 -0
  135. package/lib/components/guide/compoents/materials/materials.scss +3 -0
  136. package/lib/components/guide/compoents/materials/materialsList.d.ts +11 -0
  137. package/lib/components/guide/compoents/materials/materialsList.js +416 -0
  138. package/lib/components/guide/compoents/materials/materialsList.scss +170 -0
  139. package/lib/components/guide/compoents/materials/situation.d.ts +20 -0
  140. package/lib/components/guide/compoents/materials/situation.js +156 -0
  141. package/lib/components/guide/compoents/materials/situation.scss +63 -0
  142. package/lib/components/guide/compoents/places.d.ts +7 -0
  143. package/lib/components/guide/compoents/places.js +135 -0
  144. package/lib/components/guide/compoents/places.scss +71 -0
  145. package/lib/components/guide/compoents/processImg.d.ts +9 -0
  146. package/lib/components/guide/compoents/processImg.js +155 -0
  147. package/lib/components/guide/compoents/processImg.scss +88 -0
  148. package/lib/components/guide/compoents/result.d.ts +7 -0
  149. package/lib/components/guide/compoents/result.js +127 -0
  150. package/lib/components/guide/compoents/result.scss +88 -0
  151. package/lib/components/guide/imgs/bg1.png +0 -0
  152. package/lib/components/guide/imgs/bg2.png +0 -0
  153. package/lib/components/guide/imgs/bg22.png +0 -0
  154. package/lib/components/guide/imgs/cant.png +0 -0
  155. package/lib/components/guide/imgs/checkBg.png +0 -0
  156. package/lib/components/guide/imgs/checkBgPc.png +0 -0
  157. package/lib/components/guide/imgs/comment.png +0 -0
  158. package/lib/components/guide/imgs/commonBg.png +0 -0
  159. package/lib/components/guide/imgs/down.png +0 -0
  160. package/lib/components/guide/imgs/download.png +0 -0
  161. package/lib/components/guide/imgs/empty.png +0 -0
  162. package/lib/components/guide/imgs/icon1.png +0 -0
  163. package/lib/components/guide/imgs/icon2.png +0 -0
  164. package/lib/components/guide/imgs/icon3.png +0 -0
  165. package/lib/components/guide/imgs/icon4.png +0 -0
  166. package/lib/components/guide/imgs/iconA.png +0 -0
  167. package/lib/components/guide/imgs/iconB.png +0 -0
  168. package/lib/components/guide/imgs/iconC.png +0 -0
  169. package/lib/components/guide/imgs/loading.gif +0 -0
  170. package/lib/components/guide/imgs/mapMarker.png +0 -0
  171. package/lib/components/guide/imgs/share.png +0 -0
  172. package/lib/components/guide/imgs/tab_switch.png +0 -0
  173. package/lib/components/guide/index.d.ts +48 -0
  174. package/lib/components/guide/index.js +445 -0
  175. package/lib/components/guide/index.scss +178 -0
  176. package/lib/index.d.ts +4 -0
  177. package/lib/index.js +5 -1
  178. package/lib/style.js +3 -0
  179. package/lowcode/comment/meta.ts +86 -0
  180. package/lowcode/guide/meta.ts +483 -0
  181. package/lowcode_es/comment/meta.d.ts +22 -0
  182. package/lowcode_es/comment/meta.js +76 -0
  183. package/lowcode_es/guide/meta.d.ts +22 -0
  184. package/lowcode_es/guide/meta.js +455 -0
  185. package/lowcode_es/meta.js +4 -2
  186. package/lowcode_lib/comment/meta.d.ts +22 -0
  187. package/lowcode_lib/comment/meta.js +81 -0
  188. package/lowcode_lib/guide/meta.d.ts +22 -0
  189. package/lowcode_lib/guide/meta.js +460 -0
  190. package/lowcode_lib/meta.js +21 -19
  191. package/package.json +3 -3
  192. package/build/docs/umi.a65f236e.js +0 -1
@@ -0,0 +1,411 @@
1
+ import _Dialog from "@alifd/next/es/dialog";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
+ import _Message from "@alifd/next/es/message";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
+ import * as React from 'react';
6
+ import { numberToChinese } from "../../_utils";
7
+ import CheckPoint from "./checkPoint";
8
+ import "./materialsList.scss";
9
+ import bgImg from "../../imgs/bg1.png";
10
+ import { getUrlById, onlinePreview } from "../../../../api.js";
11
+
12
+ // TODO: getFileUrlApi and previewFileApi not available in this project
13
+ // import { getFileUrlApi, previewFileApi } from '@/api/business.js'
14
+ // import { hasShareFile } from '@/utils/testShareFile.js'
15
+
16
+ var MaterialsList = function MaterialsList(_ref) {
17
+ var eventInfoProp = _ref.eventInfo,
18
+ finalMaterialsProp = _ref.finalMaterials,
19
+ declarationAppTokenProp = _ref.declarationAppTokenProp,
20
+ baseUrlProp = _ref.baseUrl,
21
+ downloadProp = _ref.download;
22
+ var _React$useState = React.useState([]),
23
+ list = _React$useState[0],
24
+ setList = _React$useState[1];
25
+ var _React$useState2 = React.useState(false),
26
+ previewShow = _React$useState2[0],
27
+ setPreviewShow = _React$useState2[1];
28
+ var _React$useState3 = React.useState(''),
29
+ pickerType = _React$useState3[0],
30
+ setPickerType = _React$useState3[1];
31
+ var _React$useState4 = React.useState(false),
32
+ pickerShow = _React$useState4[0],
33
+ setPickerShow = _React$useState4[1];
34
+ var _React$useState5 = React.useState([]),
35
+ pickerOptions = _React$useState5[0],
36
+ setPickerOptions = _React$useState5[1];
37
+ var _React$useState6 = React.useState(null),
38
+ checkPointKey = _React$useState6[0],
39
+ setCheckPointKey = _React$useState6[1];
40
+ var _React$useState7 = React.useState(''),
41
+ previewIframeUrl = _React$useState7[0],
42
+ setPreviewIframeUrl = _React$useState7[1];
43
+ var tip = '根据您的情况为您展示精准材料清单。';
44
+ React.useEffect(function () {
45
+ initDataNew();
46
+ }, []);
47
+ var initDataNew = function initDataNew() {
48
+ var finalMaterials = finalMaterialsProp;
49
+ var eventInfo = eventInfoProp;
50
+ var taskGeneralMaterials = (eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.taskGeneralMaterials) || [];
51
+ setList(finalMaterials || taskGeneralMaterials);
52
+ };
53
+ var showTip = function showTip(type) {
54
+ var obj = {
55
+ '智': '本材料为智能生成材料,系统将根据您填写的信息自动生成申报材料。',
56
+ '享': '本材料为共享材料,数据由大数据共享获取,无需用户自行准备。',
57
+ '自': '需要用户自行准备申报材料'
58
+ };
59
+ _Message.show({
60
+ type: 'help',
61
+ content: obj[type] || ''
62
+ });
63
+ };
64
+ var getFileType = function getFileType(file) {
65
+ if (file.formConvertMaterial) return '智';
66
+ if (file.noNeedSubmit) return '享';
67
+ return '自';
68
+ };
69
+ var handleCheckPoint = function handleCheckPoint(item) {
70
+ var keyPoint = item.keyPoint;
71
+ if (!(keyPoint !== null && keyPoint !== void 0 && keyPoint.fileUrl)) {
72
+ _Message.warning('该审查要点暂时无法查看');
73
+ return;
74
+ }
75
+ setCheckPointKey(keyPoint);
76
+ };
77
+ var handleCloseCheckPoint = function handleCloseCheckPoint() {
78
+ setCheckPointKey(null);
79
+ };
80
+ var confirmPicker = /*#__PURE__*/function () {
81
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(fileObj) {
82
+ return _regeneratorRuntime.wrap(function (_context) {
83
+ while (1) switch (_context.prev = _context.next) {
84
+ case 0:
85
+ setPickerShow(false);
86
+ if (pickerType === 'materialExample') {
87
+ // const fileUrl = await getFileUrl(fileObj.url);
88
+ // preview(fileUrl);
89
+ // TODO: getFileUrl API call
90
+ } else if (pickerType === 'formGuid') {
91
+ goDownLoad(fileObj);
92
+ }
93
+ case 1:
94
+ case "end":
95
+ return _context.stop();
96
+ }
97
+ }, _callee);
98
+ }));
99
+ return function confirmPicker(_x) {
100
+ return _ref2.apply(this, arguments);
101
+ };
102
+ }();
103
+
104
+ // ============ 空表下载 ============
105
+ var downloadFile = /*#__PURE__*/function () {
106
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(row) {
107
+ var _row$formGuid;
108
+ var formGuidArr;
109
+ return _regeneratorRuntime.wrap(function (_context2) {
110
+ while (1) switch (_context2.prev = _context2.next) {
111
+ case 0:
112
+ if ((_row$formGuid = row.formGuid) !== null && _row$formGuid !== void 0 && _row$formGuid.includes('name')) {
113
+ _context2.next = 1;
114
+ break;
115
+ }
116
+ _Message.warning('暂无法下载');
117
+ return _context2.abrupt("return");
118
+ case 1:
119
+ formGuidArr = JSON.parse(row.formGuid);
120
+ if (!(formGuidArr.length === 0)) {
121
+ _context2.next = 2;
122
+ break;
123
+ }
124
+ return _context2.abrupt("return");
125
+ case 2:
126
+ goDownLoad(formGuidArr[0]);
127
+ // if (formGuidArr.length === 1) {
128
+ // } else {
129
+ // setPickerType('formGuid');
130
+ // setPickerOptions(formGuidArr);
131
+ // setPickerShow(true);
132
+ // }
133
+ case 3:
134
+ case "end":
135
+ return _context2.stop();
136
+ }
137
+ }, _callee2);
138
+ }));
139
+ return function downloadFile(_x2) {
140
+ return _ref3.apply(this, arguments);
141
+ };
142
+ }();
143
+ var getFileExtension = function getFileExtension(filename) {
144
+ var match = filename.match(/\.([^.]+)$/);
145
+ return match ? match[1].toLowerCase() : '';
146
+ };
147
+ var goDownLoad = /*#__PURE__*/function () {
148
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(fileObj) {
149
+ var fileId, format;
150
+ return _regeneratorRuntime.wrap(function (_context3) {
151
+ while (1) switch (_context3.prev = _context3.next) {
152
+ case 0:
153
+ // TODO: getFileUrl API call needed + file download
154
+ fileId = fileObj.id || fileObj.url;
155
+ format = getFileExtension(fileObj.name);
156
+ downloadProp === null || downloadProp === void 0 ? void 0 : downloadProp({
157
+ fileId: fileId,
158
+ format: format
159
+ });
160
+ case 1:
161
+ case "end":
162
+ return _context3.stop();
163
+ }
164
+ }, _callee3);
165
+ }));
166
+ return function goDownLoad(_x3) {
167
+ return _ref4.apply(this, arguments);
168
+ };
169
+ }();
170
+
171
+ // ============ 样表预览 ============
172
+ var previewFile = /*#__PURE__*/function () {
173
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(row) {
174
+ var _row$materialExample;
175
+ var materialExampleArr, fileObj, fileId, urlRes;
176
+ return _regeneratorRuntime.wrap(function (_context4) {
177
+ while (1) switch (_context4.prev = _context4.next) {
178
+ case 0:
179
+ if ((_row$materialExample = row.materialExample) !== null && _row$materialExample !== void 0 && _row$materialExample.includes('name')) {
180
+ _context4.next = 1;
181
+ break;
182
+ }
183
+ _Message.warning('暂无法预览');
184
+ return _context4.abrupt("return");
185
+ case 1:
186
+ materialExampleArr = JSON.parse(row.materialExample);
187
+ if (!(materialExampleArr.length === 0)) {
188
+ _context4.next = 2;
189
+ break;
190
+ }
191
+ return _context4.abrupt("return");
192
+ case 2:
193
+ if (!(materialExampleArr.length === 1)) {
194
+ _context4.next = 4;
195
+ break;
196
+ }
197
+ fileObj = materialExampleArr[0];
198
+ fileId = fileObj.id || fileObj.url;
199
+ _context4.next = 3;
200
+ return getUrlById({
201
+ id: fileId,
202
+ effectiveTime: 3600000
203
+ }, {
204
+ tokenTY: declarationAppTokenProp,
205
+ baseUrl: baseUrlProp
206
+ });
207
+ case 3:
208
+ urlRes = _context4.sent;
209
+ if (urlRes.presignedUrlList && urlRes.presignedUrlList.length > 0) {
210
+ preview(urlRes.presignedUrlList[2]);
211
+ }
212
+ // TODO: getFileUrl API call
213
+ _context4.next = 5;
214
+ break;
215
+ case 4:
216
+ setPickerType('materialExample');
217
+ setPickerOptions(materialExampleArr);
218
+ setPickerShow(true);
219
+ case 5:
220
+ case "end":
221
+ return _context4.stop();
222
+ }
223
+ }, _callee4);
224
+ }));
225
+ return function previewFile(_x4) {
226
+ return _ref5.apply(this, arguments);
227
+ };
228
+ }();
229
+ var preview = /*#__PURE__*/function () {
230
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(url) {
231
+ var res;
232
+ return _regeneratorRuntime.wrap(function (_context5) {
233
+ while (1) switch (_context5.prev = _context5.next) {
234
+ case 0:
235
+ _context5.next = 1;
236
+ return onlinePreview({
237
+ url: url
238
+ }, {
239
+ tokenTY: declarationAppTokenProp,
240
+ baseUrl: baseUrlProp
241
+ });
242
+ case 1:
243
+ res = _context5.sent;
244
+ setPreviewIframeUrl(res.url);
245
+ setPreviewShow(true);
246
+ case 2:
247
+ case "end":
248
+ return _context5.stop();
249
+ }
250
+ }, _callee5);
251
+ }));
252
+ return function preview(_x5) {
253
+ return _ref6.apply(this, arguments);
254
+ };
255
+ }();
256
+ return /*#__PURE__*/React.createElement("div", {
257
+ className: "materialsList-content"
258
+ }, /*#__PURE__*/React.createElement("div", {
259
+ className: "materials-tip",
260
+ style: {
261
+ backgroundImage: "url(" + bgImg + ")"
262
+ }
263
+ }, /*#__PURE__*/React.createElement("span", {
264
+ style: {
265
+ color: '#1678ff',
266
+ fontSize: 18,
267
+ marginRight: 8
268
+ }
269
+ }, "\u24D8"), /*#__PURE__*/React.createElement("div", {
270
+ className: "tip"
271
+ }, tip)), /*#__PURE__*/React.createElement("div", {
272
+ className: "materialList"
273
+ }, list.map(function (materialItem, materialIndex) {
274
+ var _materialItem$materia, _materialItem$formGui, _materialItem$materia2, _materialItem$formGui2;
275
+ return /*#__PURE__*/React.createElement("div", {
276
+ className: "material-item",
277
+ key: materialIndex
278
+ }, /*#__PURE__*/React.createElement("div", {
279
+ className: "materialName"
280
+ }, /*#__PURE__*/React.createElement("div", {
281
+ className: "innerName"
282
+ }, numberToChinese(materialIndex + 1), "\u3001", materialItem.materialName), !materialItem.subMaterials && /*#__PURE__*/React.createElement(React.Fragment, null, getFileType(materialItem) === '智' && /*#__PURE__*/React.createElement("div", {
283
+ className: "type type-zhi",
284
+ onClick: function onClick() {
285
+ return showTip('智');
286
+ }
287
+ }), getFileType(materialItem) === '享' && /*#__PURE__*/React.createElement("div", {
288
+ className: "type type-xiang",
289
+ onClick: function onClick() {
290
+ return showTip('享');
291
+ }
292
+ }), getFileType(materialItem) === '自' && /*#__PURE__*/React.createElement("div", {
293
+ className: "type type-zi",
294
+ onClick: function onClick() {
295
+ return showTip('自');
296
+ }
297
+ }))), !materialItem.subMaterials && (((_materialItem$materia = materialItem.materialExample) === null || _materialItem$materia === void 0 ? void 0 : _materialItem$materia.includes('name')) || ((_materialItem$formGui = materialItem.formGuid) === null || _materialItem$formGui === void 0 ? void 0 : _materialItem$formGui.includes('name'))) && /*#__PURE__*/React.createElement("div", {
298
+ className: "btn-con btn-con2"
299
+ }, materialItem.keyPoint && /*#__PURE__*/React.createElement("div", {
300
+ className: "btn-item",
301
+ onClick: function onClick() {
302
+ return handleCheckPoint(materialItem);
303
+ }
304
+ }, "\u5BA1\u67E5\u8981\u70B9"), ((_materialItem$materia2 = materialItem.materialExample) === null || _materialItem$materia2 === void 0 ? void 0 : _materialItem$materia2.includes('name')) && /*#__PURE__*/React.createElement("div", {
305
+ className: "btn-item",
306
+ onClick: function onClick() {
307
+ return previewFile(materialItem);
308
+ }
309
+ }, "\u6837\u8868\u9884\u89C8"), ((_materialItem$formGui2 = materialItem.formGuid) === null || _materialItem$formGui2 === void 0 ? void 0 : _materialItem$formGui2.includes('name')) && /*#__PURE__*/React.createElement("div", {
310
+ className: "btn-item",
311
+ onClick: function onClick() {
312
+ return downloadFile(materialItem);
313
+ }
314
+ }, "\u7A7A\u8868\u4E0B\u8F7D")), materialItem.subMaterials && /*#__PURE__*/React.createElement("div", {
315
+ className: "sub-material"
316
+ }, materialItem.subMaterials.map(function (sub, subIndex) {
317
+ var _sub$materialExample, _sub$formGuid, _sub$materialExample2, _sub$formGuid2;
318
+ return /*#__PURE__*/React.createElement("div", {
319
+ className: "sub-item",
320
+ key: subIndex
321
+ }, /*#__PURE__*/React.createElement("div", {
322
+ className: "sub-name"
323
+ }, /*#__PURE__*/React.createElement("div", {
324
+ className: "innerName"
325
+ }, subIndex + 1, "\u3001", sub.materialName), getFileType(sub) === '智' && /*#__PURE__*/React.createElement("div", {
326
+ className: "type type-zhi",
327
+ onClick: function onClick() {
328
+ return showTip('智');
329
+ }
330
+ }), getFileType(sub) === '享' && /*#__PURE__*/React.createElement("div", {
331
+ className: "type type-xiang",
332
+ onClick: function onClick() {
333
+ return showTip('享');
334
+ }
335
+ }), getFileType(sub) === '自' && /*#__PURE__*/React.createElement("div", {
336
+ className: "type type-zi",
337
+ onClick: function onClick() {
338
+ return showTip('自');
339
+ }
340
+ })), (((_sub$materialExample = sub.materialExample) === null || _sub$materialExample === void 0 ? void 0 : _sub$materialExample.includes('name')) || ((_sub$formGuid = sub.formGuid) === null || _sub$formGuid === void 0 ? void 0 : _sub$formGuid.includes('name'))) && /*#__PURE__*/React.createElement("div", {
341
+ className: "btn-con"
342
+ }, sub.keyPoint && /*#__PURE__*/React.createElement("div", {
343
+ className: "btn-item",
344
+ onClick: function onClick() {
345
+ return handleCheckPoint(sub);
346
+ }
347
+ }, "\u5BA1\u67E5\u8981\u70B9"), ((_sub$materialExample2 = sub.materialExample) === null || _sub$materialExample2 === void 0 ? void 0 : _sub$materialExample2.includes('name')) && /*#__PURE__*/React.createElement("div", {
348
+ className: "btn-item",
349
+ onClick: function onClick() {
350
+ return previewFile(sub);
351
+ }
352
+ }, "\u6837\u8868\u9884\u89C8"), ((_sub$formGuid2 = sub.formGuid) === null || _sub$formGuid2 === void 0 ? void 0 : _sub$formGuid2.includes('name')) && /*#__PURE__*/React.createElement("div", {
353
+ className: "btn-item",
354
+ onClick: function onClick() {
355
+ return downloadFile(sub);
356
+ }
357
+ }, "\u7A7A\u8868\u4E0B\u8F7D")));
358
+ })));
359
+ })), /*#__PURE__*/React.createElement(_Dialog, {
360
+ visible: previewShow,
361
+ onClose: function onClose() {
362
+ return setPreviewShow(false);
363
+ },
364
+ footer: false,
365
+ width: "90vw"
366
+ }, /*#__PURE__*/React.createElement("div", {
367
+ style: {
368
+ height: '80vh',
369
+ width: '100%'
370
+ }
371
+ }, /*#__PURE__*/React.createElement("iframe", {
372
+ id: "previewIframe",
373
+ src: previewIframeUrl,
374
+ frameBorder: "0",
375
+ height: "100%",
376
+ width: "100%",
377
+ title: "\u9884\u89C8"
378
+ }))), /*#__PURE__*/React.createElement(_Dialog, {
379
+ visible: pickerShow,
380
+ onClose: function onClose() {
381
+ return setPickerShow(false);
382
+ },
383
+ footer: false,
384
+ width: 280
385
+ }, /*#__PURE__*/React.createElement("div", {
386
+ className: "material-list"
387
+ }, /*#__PURE__*/React.createElement("div", {
388
+ className: "title"
389
+ }, "\u6750\u6599\u5217\u8868"), /*#__PURE__*/React.createElement("div", {
390
+ className: "list-con"
391
+ }, pickerOptions.map(function (item, index) {
392
+ return /*#__PURE__*/React.createElement("div", {
393
+ className: "list-item",
394
+ key: index,
395
+ onClick: function onClick() {
396
+ return confirmPicker(item);
397
+ }
398
+ }, item.name);
399
+ })))), /*#__PURE__*/React.createElement(_Dialog, {
400
+ visible: !!checkPointKey,
401
+ onClose: handleCloseCheckPoint,
402
+ footer: false,
403
+ width: "90vw",
404
+ closeable: true
405
+ }, checkPointKey && /*#__PURE__*/React.createElement(CheckPoint, {
406
+ checkPointData: checkPointKey,
407
+ handleClose: handleCloseCheckPoint
408
+ })));
409
+ };
410
+ MaterialsList.displayName = 'MaterialsList';
411
+ export default MaterialsList;
@@ -0,0 +1,170 @@
1
+ .materialsList-content {
2
+ margin-top: 12px;
3
+ overflow: hidden;
4
+
5
+ .materials-tip {
6
+ border-radius: 8px 8px 0 0;
7
+ padding: 16px;
8
+ background: #e5f0ff;
9
+ display: flex;
10
+ justify-content: flex-start;
11
+ align-items: center;
12
+ background-repeat: no-repeat;
13
+ background-position: 97%;
14
+
15
+ .tip {
16
+ font-size: 14px;
17
+ color: #222222;
18
+ margin-left: 8px;
19
+ }
20
+ }
21
+
22
+ .materialList {
23
+ background: #ffffff;
24
+ border-radius: 10px;
25
+ padding: 8px;
26
+
27
+ .material-item {
28
+ margin-bottom: 10px;
29
+
30
+ .materialName {
31
+ font-size: 14px;
32
+ font-weight: 500;
33
+ color: #333333;
34
+ background: rgba(22, 120, 255, 0.05);
35
+ padding: 14px 8px;
36
+ border-radius: 4px;
37
+ display: flex;
38
+ justify-content: flex-start;
39
+ align-items: center;
40
+ gap: 10px;
41
+
42
+ .innerName {
43
+ flex: 1;
44
+ }
45
+ }
46
+
47
+ .sub-material {
48
+ .sub-item {
49
+ padding: 12px;
50
+ border-radius: 8px;
51
+ border-top: 1px dashed #EEEEEE;
52
+
53
+ &:first-child {
54
+ border: none;
55
+ }
56
+
57
+ .sub-name {
58
+ font-size: 14px;
59
+ color: #323232;
60
+ display: flex;
61
+ justify-content: flex-start;
62
+ align-items: center;
63
+ gap: 10px;
64
+
65
+ .innerName {
66
+ flex: 1;
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ .btn-con {
73
+ display: flex;
74
+ justify-content: flex-start;
75
+ align-items: center;
76
+ gap: 12px;
77
+ padding-top: 12px;
78
+
79
+ &.btn-con2 {
80
+ border: none;
81
+ }
82
+
83
+ .btn-item {
84
+ font-size: 12px;
85
+ text-align: center;
86
+ color: #1678FF;
87
+ padding: 0 12px;
88
+ cursor: pointer;
89
+ border-right: 1px solid #ebebeb;
90
+
91
+ &:last-child {
92
+ border: none;
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ .material-list {
100
+ .title {
101
+ text-align: center;
102
+ padding: 15px 0;
103
+ font-weight: bold;
104
+ font-size: 17px;
105
+ position: relative;
106
+
107
+ &::after {
108
+ content: '';
109
+ display: block;
110
+ width: 60px;
111
+ height: 6px;
112
+ margin: 4px auto 0;
113
+ background: linear-gradient(90deg, #76ADFA 0%, #1678FF 100%);
114
+ border-radius: 3px;
115
+ }
116
+ }
117
+
118
+ .list-con {
119
+ max-height: 200px;
120
+ overflow-y: auto;
121
+ padding: 0 20px 15px;
122
+
123
+ .list-item {
124
+ padding: 10px 0;
125
+ font-size: 13px;
126
+ border-bottom: 1px solid #ddd;
127
+ color: #5c5a5a;
128
+ cursor: pointer;
129
+
130
+ &:hover {
131
+ color: #1678FF;
132
+ }
133
+ }
134
+ }
135
+ }
136
+
137
+ .type {
138
+ width: 20px;
139
+ height: 18px;
140
+ border-radius: 4px;
141
+ font-size: 12px;
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
145
+ color: #ffffff;
146
+ padding-bottom: 2px;
147
+ cursor: pointer;
148
+ }
149
+
150
+ .type-zhi {
151
+ background: #1678FF;
152
+ &::after {
153
+ content: '智';
154
+ }
155
+ }
156
+
157
+ .type-zi {
158
+ background: #9570F7;
159
+ &::after {
160
+ content: '自';
161
+ }
162
+ }
163
+
164
+ .type-xiang {
165
+ background: #15BC83;
166
+ &::after {
167
+ content: '享';
168
+ }
169
+ }
170
+ }
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ import './situation.scss';
3
+ export interface SituationProps {
4
+ eventInfo?: any;
5
+ stepList?: any[];
6
+ applicationId?: string;
7
+ accessToken?: string;
8
+ acctType?: string;
9
+ formData?: any;
10
+ finalMaterials?: any[];
11
+ formFieldNames?: any;
12
+ itemSituationRowUid?: any;
13
+ workNo?: any;
14
+ declarationAppToken?: string;
15
+ declarePage?: string;
16
+ taskHandleItem?: string;
17
+ situationResRechange?: (data: any) => void;
18
+ }
19
+ declare const Situation: React.FC<SituationProps>;
20
+ export default Situation;