zy-react-library 1.1.1 → 1.1.2
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/README.md +5 -1
- package/components/Cascader/Area/index.js +11 -11
- package/components/Cascader/Basic/index.js +23 -30
- package/components/Cascader/Dictionary/index.js +42 -42
- package/components/Cascader/Industry/index.js +12 -11
- package/components/Editor/index.js +43 -63
- package/components/FormBuilder/FormBuilder.js +97 -87
- package/components/FormBuilder/FormItemsRenderer.js +579 -581
- package/components/FormBuilder/index.js +5 -3
- package/components/HeaderBack/index.js +39 -32
- package/components/HiddenInfo/gwj/index.js +507 -439
- package/components/Icon/AddIcon/index.js +6 -6
- package/components/Icon/BackIcon/index.js +6 -6
- package/components/Icon/DeleteIcon/index.js +6 -6
- package/components/Icon/DownloadIcon/index.js +6 -6
- package/components/Icon/EditIcon/index.js +6 -6
- package/components/Icon/ExportIcon/index.js +6 -6
- package/components/Icon/ImportIcon/index.js +6 -6
- package/components/Icon/LocationIcon/index.js +6 -6
- package/components/Icon/PrintIcon/index.js +6 -6
- package/components/Icon/ResetIcon/index.js +6 -6
- package/components/Icon/SearchIcon/index.js +6 -6
- package/components/Icon/VideoIcon/index.js +6 -6
- package/components/Icon/ViewIcon/index.js +6 -6
- package/components/ImportFile/index.js +94 -91
- package/components/LeftTree/Area/index.js +15 -15
- package/components/LeftTree/Basic/index.js +54 -65
- package/components/LeftTree/Department/Gwj/index.js +29 -32
- package/components/LeftTree/Dictionary/index.js +42 -42
- package/components/Map/MapSelector.js +280 -254
- package/components/Map/index.js +90 -77
- package/components/Page/index.js +43 -34
- package/components/Pdf/index.js +92 -90
- package/components/PreviewImg/index.js +26 -32
- package/components/PreviewPdf/index.js +78 -86
- package/components/Search/index.js +147 -141
- package/components/Select/Basic/index.js +70 -76
- package/components/Select/Dictionary/index.js +42 -42
- package/components/Select/Personnel/Gwj/index.js +45 -49
- package/components/SelectCreate/index.js +33 -40
- package/components/SelectTree/Area/index.js +11 -17
- package/components/SelectTree/Basic/index.js +105 -102
- package/components/SelectTree/Department/Gwj/index.js +40 -46
- package/components/SelectTree/Dictionary/index.js +42 -42
- package/components/SelectTree/HiddenLevel/Gwj/index.js +33 -35
- package/components/SelectTree/HiddenPart/Gwj/index.js +16 -19
- package/components/SelectTree/Industry/index.js +12 -18
- package/components/Signature/index.js +68 -62
- package/components/Table/index.js +77 -73
- package/components/Table/index.less +7 -1
- package/components/TooltipPreviewImg/index.js +28 -27
- package/components/Upload/index.js +229 -275
- package/components/Video/AliPlayer.js +182 -160
- package/components/Video/index.js +71 -90
- package/css/common.less +4 -0
- package/enum/dictionary/index.js +5 -3
- package/enum/formItemRender/index.js +37 -35
- package/enum/hidden/gwj/index.js +65 -26
- package/enum/uploadFile/gwj/index.js +166 -84
- package/hooks/useDeleteFile/index.js +24 -30
- package/hooks/useDictionary/index.js +28 -30
- package/hooks/useDownloadBlob/index.js +78 -77
- package/hooks/useDownloadFile/index.js +76 -79
- package/hooks/useGetFile/index.js +32 -32
- package/hooks/useGetUrlQuery/index.js +1 -2
- package/hooks/useGetUserInfo/index.js +19 -26
- package/hooks/useIdle/index.js +9 -11
- package/hooks/useImportFile/index.js +30 -28
- package/hooks/useIsExistenceDuplicateSelection/index.js +25 -18
- package/hooks/useTable/index.js +49 -38
- package/hooks/useUploadFile/index.js +142 -147
- package/hooks/useUrlQueryCriteria/index.js +20 -13
- package/package.json +14 -1
- package/regular/index.js +34 -39
- package/utils/index.js +515 -511
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { request } from
|
|
2
|
-
import {
|
|
3
|
-
import dayjs from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { UPLOAD_FILE_TYPE_ENUM } from
|
|
7
|
-
import useDownloadFile from
|
|
8
|
-
import useGetFile from
|
|
9
|
-
import useGetUrlQuery from
|
|
10
|
-
import {
|
|
11
|
-
import VideoIcon from
|
|
12
|
-
import PreviewImg from
|
|
13
|
-
import PreviewPdf from
|
|
14
|
-
import Video from
|
|
1
|
+
import { request } from '@cqsjjb/jjb-common-lib/http';
|
|
2
|
+
import { Spin, Divider, Descriptions, Space, Button } from 'antd';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
import { useState, useEffect } from 'react';
|
|
5
|
+
import { HIDDEN_SOURCE_ENUM, HIDDEN_STATE_ENUM, HIDDEN_RECTIFICATION_TYPE_ENUM } from '../../../enum/hidden/gwj/index.js';
|
|
6
|
+
import { UPLOAD_FILE_TYPE_ENUM } from '../../../enum/uploadFile/gwj/index.js';
|
|
7
|
+
import useDownloadFile from '../../../hooks/useDownloadFile/index.js';
|
|
8
|
+
import useGetFile from '../../../hooks/useGetFile/index.js';
|
|
9
|
+
import useGetUrlQuery from '../../../hooks/useGetUrlQuery/index.js';
|
|
10
|
+
import { getLabelName, getFileSuffix, getFileName } from '../../../utils/index.js';
|
|
11
|
+
import VideoIcon from '../../Icon/VideoIcon/index.js';
|
|
12
|
+
import PreviewImg from '../../PreviewImg/index.js';
|
|
13
|
+
import PreviewPdf from '../../PreviewPdf/index.js';
|
|
14
|
+
import Video from '../../Video/index.js';
|
|
15
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
15
16
|
|
|
16
|
-
/**
|
|
17
|
-
* 隐患查看组件(港务局版本)
|
|
18
|
-
*/
|
|
19
17
|
function HiddenInfo(props) {
|
|
20
18
|
const {
|
|
21
19
|
id = "",
|
|
@@ -23,9 +21,8 @@ function HiddenInfo(props) {
|
|
|
23
21
|
hiddenId = "",
|
|
24
22
|
hiddenIdKey = "hiddenId",
|
|
25
23
|
history = false,
|
|
26
|
-
onGetData
|
|
24
|
+
onGetData
|
|
27
25
|
} = props;
|
|
28
|
-
|
|
29
26
|
const [info, setInfo] = useState({
|
|
30
27
|
hiddenUserPresetsCO: {},
|
|
31
28
|
hiddenRectifyUserCO: [],
|
|
@@ -33,7 +30,7 @@ function HiddenInfo(props) {
|
|
|
33
30
|
hiddenAcceptUserCO: [],
|
|
34
31
|
hiddenInspecCO: {},
|
|
35
32
|
hiddenSpecialList: [],
|
|
36
|
-
hiddenExtensionList: []
|
|
33
|
+
hiddenExtensionList: []
|
|
37
34
|
});
|
|
38
35
|
const [hiddenImageFiles, setHiddenImageFiles] = useState([]);
|
|
39
36
|
const [hiddenVideoFiles, setHiddenVideoFiles] = useState([]);
|
|
@@ -43,29 +40,31 @@ function HiddenInfo(props) {
|
|
|
43
40
|
const [inspectionAcceptImageFiles, setInspectionAcceptImageFiles] = useState([]);
|
|
44
41
|
const [loading, setLoading] = useState(true);
|
|
45
42
|
const [videoModalOpen, setVideoModalOpen] = useState(false);
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
const {
|
|
44
|
+
getFile
|
|
45
|
+
} = useGetFile();
|
|
48
46
|
const query = useGetUrlQuery();
|
|
49
|
-
const {
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
const {
|
|
48
|
+
loading: downloadFileLoading,
|
|
49
|
+
downloadFile
|
|
50
|
+
} = useDownloadFile();
|
|
51
|
+
const getFileData = async info => {
|
|
52
52
|
const hiddenImageFiles = await getFile({
|
|
53
53
|
eqType: UPLOAD_FILE_TYPE_ENUM["3"],
|
|
54
|
-
eqForeignKey: hiddenId || query[hiddenIdKey]
|
|
54
|
+
eqForeignKey: hiddenId || query[hiddenIdKey]
|
|
55
55
|
});
|
|
56
56
|
setHiddenImageFiles(hiddenImageFiles);
|
|
57
57
|
const hiddenVideoFiles = await getFile({
|
|
58
58
|
eqType: UPLOAD_FILE_TYPE_ENUM["102"],
|
|
59
|
-
eqForeignKey: hiddenId || query[hiddenIdKey]
|
|
59
|
+
eqForeignKey: hiddenId || query[hiddenIdKey]
|
|
60
60
|
});
|
|
61
61
|
setHiddenVideoFiles(hiddenVideoFiles);
|
|
62
|
-
|
|
63
62
|
if (info.hiddenRectifyUserCO && info.hiddenRectifyUserCO.length > 0) {
|
|
64
63
|
for (let i = 0; i < info.hiddenRectifyUserCO.length; i++) {
|
|
65
64
|
if (info.hiddenRectifyUserCO[i].hiddenUserId) {
|
|
66
65
|
const afterRectificationImageFiles = await getFile({
|
|
67
66
|
eqType: UPLOAD_FILE_TYPE_ENUM["4"],
|
|
68
|
-
eqForeignKey: info.hiddenRectifyUserCO[i].hiddenUserId
|
|
67
|
+
eqForeignKey: info.hiddenRectifyUserCO[i].hiddenUserId
|
|
69
68
|
});
|
|
70
69
|
setAfterRectificationImageFiles(prevState => [...prevState, afterRectificationImageFiles]);
|
|
71
70
|
}
|
|
@@ -73,35 +72,32 @@ function HiddenInfo(props) {
|
|
|
73
72
|
if (info.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId) {
|
|
74
73
|
const rectificationPlanImageFiles = await getFile({
|
|
75
74
|
eqType: UPLOAD_FILE_TYPE_ENUM["8"],
|
|
76
|
-
eqForeignKey: info.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId
|
|
75
|
+
eqForeignKey: info.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId
|
|
77
76
|
});
|
|
78
77
|
setRectificationPlanImageFiles(prevState => [...prevState, rectificationPlanImageFiles]);
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
|
-
|
|
84
|
-
if (info.isQualified === 1 && (info.hiddenAcceptUserCO && info.hiddenAcceptUserCO.length > 0)) {
|
|
82
|
+
if (info.isQualified === 1 && info.hiddenAcceptUserCO && info.hiddenAcceptUserCO.length > 0) {
|
|
85
83
|
for (let i = 0; i < info.hiddenAcceptUserCO.length; i++) {
|
|
86
84
|
const acceptImageFiles = await getFile({
|
|
87
85
|
eqType: UPLOAD_FILE_TYPE_ENUM["5"],
|
|
88
|
-
eqForeignKey: hiddenId || query[hiddenIdKey]
|
|
86
|
+
eqForeignKey: hiddenId || query[hiddenIdKey]
|
|
89
87
|
});
|
|
90
88
|
setAcceptImageFiles(prevState => [...prevState, acceptImageFiles]);
|
|
91
89
|
}
|
|
92
90
|
}
|
|
93
|
-
|
|
94
91
|
if (info.hiddenInspecCO && Object.keys(info.hiddenInspecCO).length > 0) {
|
|
95
92
|
const inspectionAcceptImageFiles = await getFile({
|
|
96
93
|
eqType: UPLOAD_FILE_TYPE_ENUM["146"],
|
|
97
|
-
eqForeignKey: hiddenId || query[hiddenIdKey]
|
|
94
|
+
eqForeignKey: hiddenId || query[hiddenIdKey]
|
|
98
95
|
});
|
|
99
96
|
setInspectionAcceptImageFiles(inspectionAcceptImageFiles);
|
|
100
97
|
}
|
|
101
98
|
};
|
|
102
|
-
|
|
103
99
|
const getData = async () => {
|
|
104
|
-
request(!history ? `/hidden/hidden/${id || query[idKey]}` : `/hidden/hidden/history/${id || query[idKey]}`, "get").then(
|
|
100
|
+
request(!history ? `/hidden/hidden/${id || query[idKey]}` : `/hidden/hidden/history/${id || query[idKey]}`, "get").then(res => {
|
|
105
101
|
setInfo(res.data);
|
|
106
102
|
getFileData(res.data);
|
|
107
103
|
setLoading(false);
|
|
@@ -111,408 +107,480 @@ function HiddenInfo(props) {
|
|
|
111
107
|
useEffect(() => {
|
|
112
108
|
getData();
|
|
113
109
|
}, [props.id, props.hiddenId]);
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
:
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
110
|
+
return /*#__PURE__*/jsxs("div", {
|
|
111
|
+
children: [/*#__PURE__*/jsxs(Spin, {
|
|
112
|
+
spinning: loading || downloadFileLoading,
|
|
113
|
+
children: [/*#__PURE__*/jsx(Divider, {
|
|
114
|
+
orientation: "left",
|
|
115
|
+
children: "\u9690\u60A3\u4FE1\u606F"
|
|
116
|
+
}), /*#__PURE__*/jsx(Descriptions, {
|
|
117
|
+
bordered: true,
|
|
118
|
+
column: 1,
|
|
119
|
+
styles: {
|
|
120
|
+
label: {
|
|
121
|
+
width: 200
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
items: [{
|
|
125
|
+
label: "隐患来源",
|
|
126
|
+
children: getLabelName({
|
|
127
|
+
list: HIDDEN_SOURCE_ENUM,
|
|
128
|
+
status: info.source
|
|
129
|
+
})
|
|
130
|
+
}, {
|
|
131
|
+
label: "隐患类型",
|
|
132
|
+
children: info.hiddenTypeName
|
|
133
|
+
}, {
|
|
134
|
+
label: "隐患级别",
|
|
135
|
+
children: info.hiddenLevelName
|
|
136
|
+
}, {
|
|
137
|
+
label: "隐患状态",
|
|
138
|
+
children: getLabelName({
|
|
139
|
+
list: HIDDEN_STATE_ENUM,
|
|
140
|
+
status: info.state
|
|
141
|
+
})
|
|
142
|
+
}, {
|
|
143
|
+
label: "隐患描述",
|
|
144
|
+
children: info.hiddenDesc
|
|
145
|
+
}, ...(info.hiddenPartName ? [{
|
|
146
|
+
label: "隐患部位",
|
|
147
|
+
children: info.hiddenPartName
|
|
148
|
+
}] : []), ...((info.source === 2 || info.source === 3) && info.hiddenCheckListCO && Object.keys(info.hiddenCheckListCO).length > 0 ? [{
|
|
149
|
+
label: "风险点(单元)",
|
|
150
|
+
children: info.hiddenCheckListCO.listRiskPoints
|
|
151
|
+
}, {
|
|
152
|
+
label: "辨识部位",
|
|
153
|
+
children: info.hiddenCheckListCO.identifiedLocations
|
|
154
|
+
}, {
|
|
155
|
+
label: "存在风险",
|
|
156
|
+
children: info.hiddenCheckListCO.existingRisks
|
|
157
|
+
}, {
|
|
158
|
+
label: "风险分级",
|
|
159
|
+
children: info.hiddenCheckListCO.riskLevel
|
|
160
|
+
}, {
|
|
161
|
+
label: "隐患清单",
|
|
162
|
+
children: info.hiddenCheckListCO.listName
|
|
163
|
+
}, {
|
|
164
|
+
label: "检查内容",
|
|
165
|
+
children: info.hiddenCheckListCO.inspectionContent
|
|
166
|
+
}] : []), ...(info.longitude ? [{
|
|
167
|
+
label: "隐患上报位置(经纬度)",
|
|
168
|
+
children: [info.longitude && `经度:${info.longitude}`, info.latitude && `纬度:${info.latitude}`].filter(Boolean).join(" ")
|
|
169
|
+
}] : []), ...(info.positionDesc ? [{
|
|
170
|
+
label: "隐患位置描述",
|
|
171
|
+
children: info.positionDesc
|
|
172
|
+
}] : []), {
|
|
173
|
+
label: "隐患发现人",
|
|
174
|
+
children: info.creatorName
|
|
175
|
+
}, {
|
|
176
|
+
label: "隐患发现时间",
|
|
177
|
+
children: dayjs(info.hiddenFindTime).format("YYYY-MM-DD HH:mm:ss")
|
|
178
|
+
}, {
|
|
179
|
+
label: "整改类型",
|
|
180
|
+
children: getLabelName({
|
|
181
|
+
list: HIDDEN_RECTIFICATION_TYPE_ENUM,
|
|
182
|
+
status: info.rectificationType
|
|
183
|
+
})
|
|
184
|
+
}, {
|
|
185
|
+
label: "是否相关方",
|
|
186
|
+
children: getLabelName({
|
|
187
|
+
list: [{
|
|
188
|
+
bianma: "1",
|
|
189
|
+
name: "是"
|
|
190
|
+
}, {
|
|
191
|
+
bianma: "0",
|
|
192
|
+
name: "否"
|
|
193
|
+
}],
|
|
194
|
+
status: info.isRelated
|
|
195
|
+
})
|
|
196
|
+
}, ...(info.isRelated === 1 ? [{
|
|
197
|
+
label: "相关方项目",
|
|
198
|
+
children: info.projectName
|
|
199
|
+
}] : []), {
|
|
200
|
+
label: "隐患图片",
|
|
201
|
+
children: /*#__PURE__*/jsx(PreviewImg, {
|
|
202
|
+
files: hiddenImageFiles
|
|
203
|
+
})
|
|
204
|
+
}, ...(hiddenVideoFiles.length > 0 ? [{
|
|
205
|
+
label: "隐患视频",
|
|
206
|
+
children: /*#__PURE__*/jsx(VideoIcon, {
|
|
207
|
+
onClick: () => {
|
|
208
|
+
setVideoModalOpen(true);
|
|
209
|
+
}
|
|
210
|
+
})
|
|
211
|
+
}] : [])]
|
|
212
|
+
}), info.hiddenUserPresetsCO && Object.keys(info.hiddenUserPresetsCO).length > 0 && /*#__PURE__*/jsxs(Fragment, {
|
|
213
|
+
children: [/*#__PURE__*/jsx(Divider, {
|
|
214
|
+
orientation: "left",
|
|
215
|
+
children: "\u6574\u6539\u4FE1\u606F\uFF08\u53D1\u73B0\u4EBA\u9884\u586B\uFF09"
|
|
216
|
+
}), /*#__PURE__*/jsx(Descriptions, {
|
|
217
|
+
bordered: true,
|
|
218
|
+
column: 1,
|
|
219
|
+
styles: {
|
|
220
|
+
label: {
|
|
221
|
+
width: 200
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
items: [{
|
|
225
|
+
label: `整改${info.isRelated === 1 ? "单位" : "部门"}`,
|
|
226
|
+
children: info.hiddenUserPresetsCO.rectifyDeptName
|
|
227
|
+
}, {
|
|
228
|
+
label: "整改人",
|
|
229
|
+
children: info.hiddenUserPresetsCO.rectifyUserName
|
|
230
|
+
}, ...(info.rectificationType === 2 ? [{
|
|
231
|
+
label: "整改期限",
|
|
232
|
+
children: dayjs(info.hiddenUserPresetsCO.rectifyDeadline).format("YYYY-MM-DD")
|
|
233
|
+
}] : []), ...(info.rectificationType === 1 ? [{
|
|
234
|
+
label: "验收部门",
|
|
235
|
+
children: info.hiddenUserPresetsCO.checkDeptName
|
|
236
|
+
}, {
|
|
237
|
+
label: "验收人",
|
|
238
|
+
children: info.hiddenUserPresetsCO.checkUserName
|
|
239
|
+
}] : [])]
|
|
240
|
+
})]
|
|
241
|
+
}), info.hiddenConfirmUserCO && info.hiddenConfirmUserCO.length > 0 && /*#__PURE__*/jsxs(Fragment, {
|
|
242
|
+
children: [/*#__PURE__*/jsx(Divider, {
|
|
243
|
+
orientation: "left",
|
|
244
|
+
children: "\u9690\u60A3\u786E\u8BA4"
|
|
245
|
+
}), info.hiddenConfirmUserCO.map(item => /*#__PURE__*/jsx(Descriptions, {
|
|
246
|
+
bordered: true,
|
|
247
|
+
column: 1,
|
|
248
|
+
styles: {
|
|
249
|
+
label: {
|
|
250
|
+
width: 200
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
items: [...(item.hiddenLevelName ? [{
|
|
254
|
+
label: "隐患级别",
|
|
255
|
+
children: item.hiddenLevelName
|
|
256
|
+
}] : []), ...(item.userName ? [{
|
|
257
|
+
label: "隐患确认人",
|
|
258
|
+
children: item.userName
|
|
259
|
+
}] : []), ...(item.rectificationTime ? [{
|
|
260
|
+
label: "隐患确认时间",
|
|
261
|
+
children: item.rectificationTime
|
|
262
|
+
}] : []), ...(item.rectifyDeptName ? [{
|
|
263
|
+
label: `整改${info.isRelated === 1 ? "单位" : "部门"}`,
|
|
264
|
+
children: item.rectifyDeptName
|
|
265
|
+
}] : []), ...(item.rectifyUserName ? [{
|
|
266
|
+
label: "整改人",
|
|
267
|
+
children: item.rectifyUserName
|
|
268
|
+
}] : []), ...(item.rectificationDeadline ? [{
|
|
269
|
+
label: "整改完成期限",
|
|
270
|
+
children: item.rectificationDeadline
|
|
271
|
+
}] : []), ...(item.checkDeptName ? [{
|
|
272
|
+
label: "验收部门",
|
|
273
|
+
children: item.checkDeptName
|
|
274
|
+
}] : []), ...(item.checkUserName ? [{
|
|
275
|
+
label: "验收人",
|
|
276
|
+
children: item.checkUserName
|
|
277
|
+
}] : []), ...(item.repulseCause ? [...(item.repulseCause ? [{
|
|
278
|
+
label: "打回意见",
|
|
279
|
+
children: item.repulseCause
|
|
280
|
+
}] : []), ...(item.rectificationTime ? [{
|
|
281
|
+
label: "打回时间",
|
|
282
|
+
children: item.rectificationTime
|
|
283
|
+
}] : [])] : [])]
|
|
284
|
+
}, item.id))]
|
|
285
|
+
}), info.hiddenExtensionList && info.hiddenExtensionList.length > 0 && /*#__PURE__*/jsxs(Fragment, {
|
|
286
|
+
children: [/*#__PURE__*/jsx(Divider, {
|
|
287
|
+
orientation: "left",
|
|
288
|
+
children: "\u5EF6\u671F\u4FE1\u606F"
|
|
289
|
+
}), info.hiddenExtensionList.map(item => /*#__PURE__*/jsx(Descriptions, {
|
|
290
|
+
bordered: true,
|
|
291
|
+
column: 1,
|
|
292
|
+
styles: {
|
|
293
|
+
label: {
|
|
294
|
+
width: 200
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
items: [...(item.createTime ? [{
|
|
298
|
+
label: "申请延期日期",
|
|
299
|
+
children: item.createTime
|
|
300
|
+
}] : []), ...(item.delayTime ? [{
|
|
301
|
+
label: "延期日期",
|
|
302
|
+
children: item.delayTime
|
|
303
|
+
}] : []), ...(item.updateName ? [{
|
|
304
|
+
label: "审核人",
|
|
305
|
+
children: item.updateName
|
|
306
|
+
}] : []), ...(item.state === 3 ? [...(item.disposalPlan ? [{
|
|
307
|
+
label: "处置方案",
|
|
308
|
+
children: item.disposalPlan
|
|
309
|
+
}] : []), ...(item.disposalFile ? [{
|
|
310
|
+
label: "处置方案附件",
|
|
311
|
+
children: getFileSuffix(item.disposalFile) === "pdf" ? /*#__PURE__*/jsx(PreviewPdf, {
|
|
312
|
+
name: getFileName(item.disposalFile),
|
|
313
|
+
url: item.disposalFile
|
|
314
|
+
}) : /*#__PURE__*/jsxs(Space, {
|
|
315
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
316
|
+
children: getFileName(item.disposalFile)
|
|
317
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
318
|
+
type: "primary",
|
|
319
|
+
size: "small",
|
|
320
|
+
onClick: () => downloadFile(item.disposalFile),
|
|
321
|
+
children: "\u4E0B\u8F7D"
|
|
322
|
+
})]
|
|
323
|
+
})
|
|
324
|
+
}] : [])] : []), {
|
|
325
|
+
label: "延期审核状态",
|
|
326
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
327
|
+
children: [item.state === 1 && /*#__PURE__*/jsx("span", {
|
|
328
|
+
children: "\u5F85\u5BA1\u6838"
|
|
329
|
+
}), item.state === 2 && /*#__PURE__*/jsx("span", {
|
|
330
|
+
children: "\u5BA1\u6279\u4E2D"
|
|
331
|
+
}), item.state === 3 && /*#__PURE__*/jsx("span", {
|
|
332
|
+
children: "\u5DF2\u901A\u8FC7"
|
|
333
|
+
}), item.state === 4 && /*#__PURE__*/jsx("span", {
|
|
334
|
+
children: "\u5DF2\u62D2\u7EDD"
|
|
335
|
+
}), item.state === 5 && /*#__PURE__*/jsx("span", {
|
|
336
|
+
children: "\u5DF2\u64A4\u56DE"
|
|
337
|
+
})]
|
|
338
|
+
})
|
|
339
|
+
}, ...(item.state === 3 || item.state === 4 ? [{
|
|
340
|
+
label: "延期审核时间",
|
|
341
|
+
children: item.updateTime
|
|
342
|
+
}] : [])]
|
|
343
|
+
}, item.id))]
|
|
344
|
+
}), info.hiddenSpecialList && info.hiddenSpecialList.length > 0 && /*#__PURE__*/jsxs(Fragment, {
|
|
345
|
+
children: [/*#__PURE__*/jsx(Divider, {
|
|
346
|
+
orientation: "left",
|
|
347
|
+
children: "\u7279\u6B8A\u5904\u7F6E\u5BA1\u6838\u4FE1\u606F"
|
|
348
|
+
}), info.hiddenSpecialList.map(item => /*#__PURE__*/jsx(Descriptions, {
|
|
349
|
+
bordered: true,
|
|
350
|
+
column: 1,
|
|
351
|
+
styles: {
|
|
352
|
+
label: {
|
|
353
|
+
width: 200
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
items: [...(item.state === 3 || item.state === 4 ? [...(item.updateName ? [{
|
|
357
|
+
label: "审核人",
|
|
358
|
+
children: item.updateName
|
|
359
|
+
}] : []), ...(item.updateTime ? [{
|
|
360
|
+
label: "审核时间",
|
|
361
|
+
children: item.updateTime
|
|
362
|
+
}] : [])] : []), {
|
|
363
|
+
label: "无法整改原因",
|
|
364
|
+
children: item.examine
|
|
365
|
+
}, ...(item.state === 3 ? [...(item.disposalPlan ? [{
|
|
366
|
+
label: "处置方案",
|
|
367
|
+
children: item.disposalPlan
|
|
368
|
+
}] : []), ...(item.disposalFile ? [{
|
|
369
|
+
label: "处置方案附件",
|
|
370
|
+
children: getFileSuffix(item.disposalFile) === "pdf" ? /*#__PURE__*/jsx(PreviewPdf, {
|
|
371
|
+
name: getFileName(item.disposalFile),
|
|
372
|
+
url: item.disposalFile
|
|
373
|
+
}) : /*#__PURE__*/jsxs(Space, {
|
|
374
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
375
|
+
children: getFileName(item.disposalFile)
|
|
376
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
377
|
+
type: "primary",
|
|
378
|
+
size: "small",
|
|
379
|
+
onClick: () => downloadFile(item.disposalFile),
|
|
380
|
+
children: "\u4E0B\u8F7D"
|
|
381
|
+
})]
|
|
382
|
+
})
|
|
383
|
+
}] : []), {
|
|
384
|
+
label: "是否更换整改负责人",
|
|
385
|
+
children: item.rectifyUserCO && Object.keys(item.rectifyUserCO).length > 0 ? "是" : "否"
|
|
386
|
+
}, ...(item.rectifyUserCO && Object.keys(item.rectifyUserCO).length > 0 ? [{
|
|
387
|
+
label: "整改负责人",
|
|
388
|
+
children: item.rectifyUserCO.userName
|
|
389
|
+
}] : [])] : []), {
|
|
390
|
+
label: "特殊处置审核状态",
|
|
391
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
392
|
+
children: [item.state === 1 && /*#__PURE__*/jsx("span", {
|
|
393
|
+
children: "\u5F85\u5BA1\u6838"
|
|
394
|
+
}), item.state === 2 && /*#__PURE__*/jsx("span", {
|
|
395
|
+
children: "\u5BA1\u6279\u4E2D"
|
|
396
|
+
}), item.state === 3 && /*#__PURE__*/jsx("span", {
|
|
397
|
+
children: "\u5DF2\u901A\u8FC7"
|
|
398
|
+
}), item.state === 4 && /*#__PURE__*/jsx("span", {
|
|
399
|
+
children: "\u5DF2\u62D2\u7EDD"
|
|
400
|
+
}), item.state === 5 && /*#__PURE__*/jsx("span", {
|
|
401
|
+
children: "\u5DF2\u64A4\u56DE"
|
|
402
|
+
})]
|
|
403
|
+
})
|
|
404
|
+
}]
|
|
405
|
+
}, item.id))]
|
|
406
|
+
}), info.hiddenRectifyUserCO && info.hiddenRectifyUserCO.length > 0 && /*#__PURE__*/jsxs(Fragment, {
|
|
407
|
+
children: [/*#__PURE__*/jsx(Divider, {
|
|
408
|
+
orientation: "left",
|
|
409
|
+
children: "\u6574\u6539\u4FE1\u606F"
|
|
410
|
+
}), info.hiddenRectifyUserCO.map((item, index) => /*#__PURE__*/jsx(Descriptions, {
|
|
411
|
+
bordered: true,
|
|
412
|
+
column: 1,
|
|
413
|
+
styles: {
|
|
414
|
+
label: {
|
|
415
|
+
width: 200
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
items: [...(item.deptName ? [{
|
|
419
|
+
label: `整改${info.isRelated === 1 ? "单位" : "部门"}`,
|
|
420
|
+
children: item.deptName
|
|
421
|
+
}] : []), ...(item.userName ? [{
|
|
422
|
+
label: "整改人",
|
|
423
|
+
children: item.userName
|
|
424
|
+
}] : []), ...(item.rectificationTime ? [{
|
|
425
|
+
label: "整改时间",
|
|
426
|
+
children: item.rectificationTime
|
|
427
|
+
}] : []), ...(item.descr ? [{
|
|
428
|
+
label: "整改描述",
|
|
429
|
+
children: item.descr
|
|
430
|
+
}] : []), ...(item.investmentFunds ? [{
|
|
431
|
+
label: "投入资金",
|
|
432
|
+
children: `${item.investmentFunds}元`
|
|
433
|
+
}] : []), ...(info.tempSafeMeasure ? [{
|
|
434
|
+
label: "临时安全措施",
|
|
435
|
+
children: info.tempSafeMeasure
|
|
436
|
+
}] : []), {
|
|
437
|
+
label: "整改后图片",
|
|
438
|
+
children: /*#__PURE__*/jsx(PreviewImg, {
|
|
439
|
+
files: afterRectificationImageFiles[index]
|
|
440
|
+
})
|
|
441
|
+
}, {
|
|
442
|
+
label: "整改方案",
|
|
443
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
444
|
+
children: [item.isRectificationScheme === 0 && /*#__PURE__*/jsx("span", {
|
|
445
|
+
children: "\u65E0"
|
|
446
|
+
}), item.isRectificationScheme === 1 && /*#__PURE__*/jsx("span", {
|
|
447
|
+
children: "\u6709"
|
|
448
|
+
})]
|
|
449
|
+
})
|
|
450
|
+
}, ...(item.isRectificationScheme === 1 && item.hiddenSchemeCO && Object.keys(item.hiddenSchemeCO).length > 0 ? [{
|
|
451
|
+
label: "治理标准",
|
|
452
|
+
children: item.hiddenSchemeCO.governStanDards
|
|
453
|
+
}, {
|
|
454
|
+
label: "治理方法",
|
|
455
|
+
children: item.hiddenSchemeCO.governMethod
|
|
456
|
+
}, {
|
|
457
|
+
label: "经费落实",
|
|
458
|
+
children: item.hiddenSchemeCO.expenditure
|
|
459
|
+
}, {
|
|
460
|
+
label: "负责人员",
|
|
461
|
+
children: item.hiddenSchemeCO.principal
|
|
462
|
+
}, {
|
|
463
|
+
label: "工时安排",
|
|
464
|
+
children: item.hiddenSchemeCO.programming
|
|
465
|
+
}, {
|
|
466
|
+
label: "时限要求",
|
|
467
|
+
children: item.hiddenSchemeCO.timeLimitFor
|
|
468
|
+
}, {
|
|
469
|
+
label: "工作要求",
|
|
470
|
+
children: item.hiddenSchemeCO.jobRequireMent
|
|
471
|
+
}, {
|
|
472
|
+
label: "其他事项",
|
|
473
|
+
children: item.hiddenSchemeCO.otherBusiness
|
|
474
|
+
}, {
|
|
475
|
+
label: "方案图片",
|
|
476
|
+
children: /*#__PURE__*/jsx(PreviewImg, {
|
|
477
|
+
files: rectificationPlanImageFiles[index]
|
|
478
|
+
})
|
|
479
|
+
}] : [])]
|
|
480
|
+
}, item.id))]
|
|
481
|
+
}), info.hiddenAcceptUserCO && info.hiddenAcceptUserCO.length > 0 ? info.isQualified === 1 ? /*#__PURE__*/jsxs(Fragment, {
|
|
482
|
+
children: [/*#__PURE__*/jsx(Divider, {
|
|
483
|
+
orientation: "left",
|
|
484
|
+
children: "\u9A8C\u6536\u4FE1\u606F"
|
|
485
|
+
}), info.hiddenAcceptUserCO.map((item, index) => /*#__PURE__*/jsx(Descriptions, {
|
|
486
|
+
bordered: true,
|
|
487
|
+
column: 1,
|
|
488
|
+
styles: {
|
|
489
|
+
label: {
|
|
490
|
+
width: 200
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
items: [{
|
|
494
|
+
label: "验收部门",
|
|
495
|
+
children: item.deptName
|
|
496
|
+
}, {
|
|
497
|
+
label: "验收人",
|
|
498
|
+
children: item.userName
|
|
499
|
+
}, {
|
|
500
|
+
label: "验收时间",
|
|
501
|
+
children: item.rectificationTime
|
|
502
|
+
}, ...(item.repulseCause ? [{
|
|
503
|
+
label: "验收打回意见",
|
|
504
|
+
children: item.repulseCause
|
|
505
|
+
}] : []), {
|
|
506
|
+
label: "是否合格",
|
|
507
|
+
children: item.rectificationTime ? "合格" : ""
|
|
508
|
+
}, ...(item.descr ? [{
|
|
509
|
+
label: "验收描述",
|
|
510
|
+
children: item.descr
|
|
511
|
+
}] : []), ...(acceptImageFiles[index] && acceptImageFiles[index].length > 0 ? [{
|
|
512
|
+
label: "验收图片",
|
|
513
|
+
children: /*#__PURE__*/jsx(PreviewImg, {
|
|
514
|
+
files: acceptImageFiles[index]
|
|
515
|
+
})
|
|
516
|
+
}] : [])]
|
|
517
|
+
}, item.id))]
|
|
518
|
+
}) : /*#__PURE__*/jsxs(Fragment, {
|
|
519
|
+
children: [/*#__PURE__*/jsx(Divider, {
|
|
520
|
+
orientation: "left",
|
|
521
|
+
children: "\u9A8C\u6536\u6253\u56DE\u4FE1\u606F"
|
|
522
|
+
}), info.hiddenAcceptUserCO.map(item => /*#__PURE__*/jsx(Descriptions, {
|
|
523
|
+
bordered: true,
|
|
524
|
+
column: 1,
|
|
525
|
+
styles: {
|
|
526
|
+
label: {
|
|
527
|
+
width: 200
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
items: [{
|
|
531
|
+
label: "验收部门",
|
|
532
|
+
children: item.deptName
|
|
533
|
+
}, {
|
|
534
|
+
label: "验收人",
|
|
535
|
+
children: item.userName
|
|
536
|
+
}, {
|
|
537
|
+
label: "验收时间",
|
|
538
|
+
children: item.rectificationTime
|
|
539
|
+
}, {
|
|
540
|
+
label: "验收打回意见",
|
|
541
|
+
children: item.repulseCause
|
|
542
|
+
}]
|
|
543
|
+
}, item.id))]
|
|
544
|
+
}) : null, info.hiddenInspecCO && Object.keys(info.hiddenInspecCO).length > 0 ? /*#__PURE__*/jsxs(Fragment, {
|
|
545
|
+
children: [/*#__PURE__*/jsx(Divider, {
|
|
546
|
+
orientation: "left",
|
|
547
|
+
children: "\u5B89\u5168\u73AF\u4FDD\u9A8C\u6536\u4FE1\u606F"
|
|
548
|
+
}), /*#__PURE__*/jsx(Descriptions, {
|
|
549
|
+
bordered: true,
|
|
550
|
+
column: 1,
|
|
551
|
+
styles: {
|
|
552
|
+
label: {
|
|
553
|
+
width: 200
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
items: [{
|
|
557
|
+
label: "验收人",
|
|
558
|
+
children: info.hiddenInspecCO.finalCheckOr
|
|
559
|
+
}, {
|
|
560
|
+
label: "验收时间",
|
|
561
|
+
children: info.hiddenInspecCO.finalCheckTime
|
|
562
|
+
}, {
|
|
563
|
+
label: "是否合格",
|
|
564
|
+
children: info.hiddenInspecCO.finalCheck === 1 ? "合格" : "不合格"
|
|
565
|
+
}, {
|
|
566
|
+
label: "验收描述",
|
|
567
|
+
children: info.hiddenInspecCO.finalCheckDesc
|
|
568
|
+
}, {
|
|
569
|
+
label: "验收图片",
|
|
570
|
+
children: /*#__PURE__*/jsx(PreviewImg, {
|
|
571
|
+
files: inspectionAcceptImageFiles
|
|
572
|
+
})
|
|
573
|
+
}]
|
|
574
|
+
})]
|
|
575
|
+
}) : null]
|
|
576
|
+
}), videoModalOpen && /*#__PURE__*/jsx(Video, {
|
|
577
|
+
visible: videoModalOpen,
|
|
578
|
+
source: hiddenVideoFiles[0].url,
|
|
579
|
+
onCancel: () => setVideoModalOpen(false),
|
|
580
|
+
title: "\u9690\u60A3\u89C6\u9891"
|
|
581
|
+
})]
|
|
582
|
+
});
|
|
514
583
|
}
|
|
515
|
-
|
|
516
584
|
HiddenInfo.displayName = "HiddenInfo";
|
|
517
585
|
|
|
518
|
-
export default
|
|
586
|
+
export { HiddenInfo as default };
|