zy-react-library 1.0.59 → 1.0.61
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.
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 组件属性
|
|
5
|
+
*/
|
|
6
|
+
export interface HiddenInfoProps {
|
|
7
|
+
/** id,默认取 query.id */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** id 的字段,默认 id */
|
|
10
|
+
idKey?: string;
|
|
11
|
+
/** hiddenId,默认取 query.hiddenId */
|
|
12
|
+
hiddenId?: string;
|
|
13
|
+
/** hiddenId 的字段,默认 hiddenId */
|
|
14
|
+
hiddenIdKey?: string;
|
|
15
|
+
/** 是否显示头部的返回,默认 true */
|
|
16
|
+
isShowHeaderBack?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 隐患查看组件(港务局版本)
|
|
21
|
+
*/
|
|
22
|
+
declare const HiddenInfo: FC<HiddenInfoProps>;
|
|
23
|
+
|
|
24
|
+
export default HiddenInfo;
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { tools } from "@cqsjjb/jjb-common-lib";
|
|
2
|
+
import { request } from "@cqsjjb/jjb-common-lib/http";
|
|
3
|
+
import { Descriptions, Divider } from "antd";
|
|
4
|
+
import dayjs from "dayjs";
|
|
5
|
+
import { useEffect, useState } from "react";
|
|
6
|
+
import HeaderBack from "../../HeaderBack";
|
|
7
|
+
import VideoIcon from "../../Icon/VideoIcon";
|
|
8
|
+
import PreviewImg from "../../PreviewImg";
|
|
9
|
+
import PreviewPdf from "../../PreviewPdf";
|
|
10
|
+
import { UPLOAD_FILE_TYPE_ENUM } from "../../../enum/uploadFile/gwj";
|
|
11
|
+
import useGetFile from "../../../hooks/useGetFile";
|
|
12
|
+
import { getLabelName } from "../../../utils";
|
|
13
|
+
import { HIDDEN_SOURCE_ENUM, HIDDEN_STATE_ENUM } from "../../../enum/hidden/gwj";
|
|
14
|
+
|
|
15
|
+
const { query } = tools.router;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 隐患查看组件(港务局版本)
|
|
19
|
+
*/
|
|
20
|
+
function HiddenInfo(props) {
|
|
21
|
+
const {
|
|
22
|
+
id = "",
|
|
23
|
+
idKey = "id",
|
|
24
|
+
hiddenId = "",
|
|
25
|
+
hiddenIdKey = "hiddenId",
|
|
26
|
+
isShowHeaderBack = true,
|
|
27
|
+
} = props;
|
|
28
|
+
|
|
29
|
+
const [info, setInfo] = useState({
|
|
30
|
+
hiddenUserPresetsCO: {},
|
|
31
|
+
hiddenRectifyUserCO: {
|
|
32
|
+
hiddenSchemeCO: {},
|
|
33
|
+
},
|
|
34
|
+
hiddenConfirmUserCO: {},
|
|
35
|
+
hiddenAcceptUserCO: {},
|
|
36
|
+
hiddenSpecialList: [],
|
|
37
|
+
hiddenExtensionList: [],
|
|
38
|
+
});
|
|
39
|
+
const [hiddenImageFiles, setHiddenImageFiles] = useState([]);
|
|
40
|
+
const [hiddenVideoFiles, setHiddenVideoFiles] = useState([]);
|
|
41
|
+
const [afterRectificationImageFiles, setAfterRectificationImageFiles] = useState([]);
|
|
42
|
+
const [rectificationPlanImageFiles, setRectificationPlanImageFiles] = useState([]);
|
|
43
|
+
const [acceptImageFiles, setAcceptImageFiles] = useState([]);
|
|
44
|
+
const { getFile } = useGetFile();
|
|
45
|
+
|
|
46
|
+
const getData = async () => {
|
|
47
|
+
request(`/hidden/hidden/${id || query[idKey]}`, "get").then((res) => {
|
|
48
|
+
setInfo(res.data);
|
|
49
|
+
});
|
|
50
|
+
const hiddenImageFiles = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["3"], eqForeignKey: hiddenId || query[hiddenIdKey] });
|
|
51
|
+
setHiddenImageFiles(hiddenImageFiles);
|
|
52
|
+
const hiddenVideoFiles = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["102"], eqForeignKey: hiddenId || query[hiddenIdKey] });
|
|
53
|
+
setHiddenVideoFiles(hiddenVideoFiles);
|
|
54
|
+
const afterRectificationImageFiles = await getFile({
|
|
55
|
+
eqType: UPLOAD_FILE_TYPE_ENUM["4"],
|
|
56
|
+
eqForeignKey: hiddenId || query[hiddenIdKey],
|
|
57
|
+
});
|
|
58
|
+
setAfterRectificationImageFiles(afterRectificationImageFiles);
|
|
59
|
+
const rectificationPlanImageFiles = await getFile({
|
|
60
|
+
eqType: UPLOAD_FILE_TYPE_ENUM["8"],
|
|
61
|
+
eqForeignKey: hiddenId || query[hiddenIdKey],
|
|
62
|
+
});
|
|
63
|
+
setRectificationPlanImageFiles(rectificationPlanImageFiles);
|
|
64
|
+
const acceptImageFiles = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["5"], eqForeignKey: hiddenId || query[hiddenIdKey] });
|
|
65
|
+
setAcceptImageFiles(acceptImageFiles);
|
|
66
|
+
};
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
getData();
|
|
69
|
+
}, []);
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<div>
|
|
73
|
+
{isShowHeaderBack && <HeaderBack title="查看" />}
|
|
74
|
+
<div style={{ padding: 20 }}>
|
|
75
|
+
<Divider orientation="left">隐患信息</Divider>
|
|
76
|
+
<Descriptions
|
|
77
|
+
bordered
|
|
78
|
+
column={1}
|
|
79
|
+
labelStyle={{ width: 200 }}
|
|
80
|
+
items={[
|
|
81
|
+
{ label: "隐患来源", children: getLabelName({ list: HIDDEN_SOURCE_ENUM, status: info.source }) },
|
|
82
|
+
{ label: "隐患类型", children: info.hiddenTypeName },
|
|
83
|
+
{ label: "隐患级别", children: info.hiddenLevelName },
|
|
84
|
+
{ label: "隐患状态", children: getLabelName({ list: HIDDEN_STATE_ENUM, status: info.state }) },
|
|
85
|
+
{ label: "隐患描述", children: info.hiddenDesc },
|
|
86
|
+
{ label: "隐患部位", children: info.hiddenPart },
|
|
87
|
+
...(info.source === 2 || info.source === 3
|
|
88
|
+
? [
|
|
89
|
+
{ label: "风险点(单元)", children: "todo" },
|
|
90
|
+
{ label: "辨识部位", children: "todo" },
|
|
91
|
+
{ label: "存在风险", children: "todo" },
|
|
92
|
+
{ label: "风险分级", children: "todo" },
|
|
93
|
+
{ label: "隐患清单", children: "todo" },
|
|
94
|
+
]
|
|
95
|
+
: []),
|
|
96
|
+
{
|
|
97
|
+
label: "隐患上报位置(经纬度)",
|
|
98
|
+
children: [info.longitude && `经度:${info.longitude}`, info.latitude && `纬度:${info.latitude}`].filter(Boolean).join(" "),
|
|
99
|
+
},
|
|
100
|
+
{ label: "隐患位置描述", children: info.positionDesc },
|
|
101
|
+
{ label: "隐患发现人", children: info.creatorName },
|
|
102
|
+
{ label: "隐患发现时间", children: dayjs(info.hiddenFindTime).format("YYYY-MM-DD hh:mm:ss") },
|
|
103
|
+
{
|
|
104
|
+
label: "整改类型",
|
|
105
|
+
children: getLabelName({
|
|
106
|
+
list: [{ bianma: "1", name: "立即整改" }, { bianma: "2", name: "延期整改" }],
|
|
107
|
+
status: info.rectificationType,
|
|
108
|
+
}),
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: "是否相关方",
|
|
112
|
+
children: getLabelName({
|
|
113
|
+
list: [{ bianma: "1", name: "是" }, { bianma: "2", name: "否" }],
|
|
114
|
+
status: info.isRelated,
|
|
115
|
+
}),
|
|
116
|
+
},
|
|
117
|
+
{ label: "隐患图片", children: <PreviewImg files={hiddenImageFiles} /> },
|
|
118
|
+
...(hiddenVideoFiles.length > 0 ? [{ label: "隐患视频", children: <VideoIcon /> }] : []),
|
|
119
|
+
]}
|
|
120
|
+
/>
|
|
121
|
+
{
|
|
122
|
+
(info.hiddenUserPresetsCO && Object.keys(info.hiddenUserPresetsCO).length > 0) && (
|
|
123
|
+
<>
|
|
124
|
+
<Divider orientation="left">整改信息(发现人预填)</Divider>
|
|
125
|
+
<Descriptions
|
|
126
|
+
bordered
|
|
127
|
+
column={1}
|
|
128
|
+
labelStyle={{ width: 200 }}
|
|
129
|
+
items={[
|
|
130
|
+
{ label: "整改部门", children: info.hiddenUserPresetsCO.deptName },
|
|
131
|
+
{ label: "整改人", children: info.hiddenUserPresetsCO.userName },
|
|
132
|
+
...(info.rectificationType === 2
|
|
133
|
+
? [
|
|
134
|
+
{ label: "整改期限", children: dayjs(info.hiddenUserPresetsCO.rectifyDeadline).format("YYYY-MM-DD") },
|
|
135
|
+
]
|
|
136
|
+
: []),
|
|
137
|
+
...(info.rectificationType === 1
|
|
138
|
+
? [
|
|
139
|
+
{ label: "验收部门", children: info.hiddenUserPresetsCO.deptName },
|
|
140
|
+
{ label: "验收人", children: info.hiddenUserPresetsCO.userName },
|
|
141
|
+
]
|
|
142
|
+
: []),
|
|
143
|
+
]}
|
|
144
|
+
/>
|
|
145
|
+
</>
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
{
|
|
149
|
+
(info.isConfirm === 1 && info.hiddenConfirmUserCO && Object.keys(info.hiddenConfirmUserCO).length > 0) && (
|
|
150
|
+
<>
|
|
151
|
+
<Divider orientation="left">隐患确认</Divider>
|
|
152
|
+
<Descriptions
|
|
153
|
+
bordered
|
|
154
|
+
column={1}
|
|
155
|
+
labelStyle={{ width: 200 }}
|
|
156
|
+
items={[
|
|
157
|
+
{ label: "隐患级别", children: info.hiddenConfirmUserCO.hiddenLevelName },
|
|
158
|
+
{ label: "隐患确认人", children: info.hiddenConfirmUserCO.userName },
|
|
159
|
+
{ label: "隐患确认时间", children: info.hiddenConfirmUserCO.rectificationTime },
|
|
160
|
+
{ label: "整改负责人部门", children: info.hiddenConfirmUserCO.rectifyDeptName },
|
|
161
|
+
{ label: "整改负责人", children: info.hiddenConfirmUserCO.rectifyUserName },
|
|
162
|
+
{ label: "整改完成期限", children: info.hiddenConfirmUserCO.rectificationDeadline },
|
|
163
|
+
{ label: "验收部门", children: info.hiddenConfirmUserCO.checkDeptName },
|
|
164
|
+
{ label: "验收人", children: info.hiddenConfirmUserCO.checkUserName },
|
|
165
|
+
...(info.hiddenConfirmUserCO.repulseCause
|
|
166
|
+
? [
|
|
167
|
+
{ label: "打回意见", children: info.hiddenConfirmUserCO.repulseCause },
|
|
168
|
+
{ label: "打回时间", children: info.hiddenConfirmUserCO.rectificationTime },
|
|
169
|
+
]
|
|
170
|
+
: []),
|
|
171
|
+
]}
|
|
172
|
+
/>
|
|
173
|
+
</>
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
{
|
|
177
|
+
info.hiddenExtensionList && info.hiddenExtensionList.length > 0 && (
|
|
178
|
+
<>
|
|
179
|
+
<Divider orientation="left">延期信息</Divider>
|
|
180
|
+
{
|
|
181
|
+
info.hiddenExtensionList.map(item => (
|
|
182
|
+
<Descriptions
|
|
183
|
+
key={item.id}
|
|
184
|
+
bordered
|
|
185
|
+
column={1}
|
|
186
|
+
labelStyle={{ width: 200 }}
|
|
187
|
+
items={[
|
|
188
|
+
{ label: "申请延期日期", children: item.createTime },
|
|
189
|
+
{ label: "延期日期", children: item.delayTime },
|
|
190
|
+
{ label: "审核人", children: item.updateName },
|
|
191
|
+
...(item.state === 3
|
|
192
|
+
? [
|
|
193
|
+
{ label: "处置方案", children: item.disposalPlan },
|
|
194
|
+
{ label: "处置方案附件", children: <PreviewPdf name={item.disposalPlan || "处置方案附件"} url={item.disposalFile} /> },
|
|
195
|
+
]
|
|
196
|
+
: []),
|
|
197
|
+
{
|
|
198
|
+
label: "延期审核状态",
|
|
199
|
+
children: (
|
|
200
|
+
<>
|
|
201
|
+
{item.state === 1 && <span>待审核</span>}
|
|
202
|
+
{item.state === 2 && <span>审批中</span>}
|
|
203
|
+
{item.state === 3 && <span>已通过</span>}
|
|
204
|
+
{item.state === 4 && <span>已拒绝</span>}
|
|
205
|
+
{item.state === 5 && <span>已撤回</span>}
|
|
206
|
+
</>
|
|
207
|
+
),
|
|
208
|
+
},
|
|
209
|
+
...((item.state === 3 || item.state === 4) ? [{ label: "延期审核时间", children: item.updateTime }] : []),
|
|
210
|
+
]}
|
|
211
|
+
/>
|
|
212
|
+
),
|
|
213
|
+
)
|
|
214
|
+
}
|
|
215
|
+
</>
|
|
216
|
+
)
|
|
217
|
+
}
|
|
218
|
+
{
|
|
219
|
+
info.hiddenSpecialList && info.hiddenSpecialList.length > 0 && (
|
|
220
|
+
<>
|
|
221
|
+
<Divider orientation="left">特殊处置审核信息</Divider>
|
|
222
|
+
{
|
|
223
|
+
info.hiddenSpecialList.map(item => (
|
|
224
|
+
<Descriptions
|
|
225
|
+
key={item.id}
|
|
226
|
+
bordered
|
|
227
|
+
column={1}
|
|
228
|
+
labelStyle={{ width: 200 }}
|
|
229
|
+
items={[
|
|
230
|
+
...((item.state === 3 || item.state === 4)
|
|
231
|
+
? [
|
|
232
|
+
{ label: "审核人", children: item.updateName },
|
|
233
|
+
{ label: "审核时间", children: item.updateTime },
|
|
234
|
+
]
|
|
235
|
+
: []),
|
|
236
|
+
{ label: "无法整改原因", children: item.examine },
|
|
237
|
+
...(item.state === 3
|
|
238
|
+
? [
|
|
239
|
+
{ label: "处置方案", children: item.disposalPlan },
|
|
240
|
+
{ label: "处置方案附件", children: <PreviewPdf name={item.disposalPlan || "处置方案附件"} url={item.disposalFile} /> },
|
|
241
|
+
{ label: "是否更换整改负责人", children: item.rectifyUserCO && Object.keys(item.rectifyUserCO).length > 0 ? "是" : "否" },
|
|
242
|
+
...(
|
|
243
|
+
item.rectifyUserCO && Object.keys(item.rectifyUserCO).length > 0
|
|
244
|
+
? [{ label: "整改负责人", children: item.rectifyUserCO.userName }]
|
|
245
|
+
: []),
|
|
246
|
+
]
|
|
247
|
+
: []),
|
|
248
|
+
{
|
|
249
|
+
label: "特殊处置审核状态",
|
|
250
|
+
children: (
|
|
251
|
+
<>
|
|
252
|
+
{item.state === 1 && <span>待审核</span>}
|
|
253
|
+
{item.state === 2 && <span>审批中</span>}
|
|
254
|
+
{item.state === 3 && <span>已通过</span>}
|
|
255
|
+
{item.state === 4 && <span>已拒绝</span>}
|
|
256
|
+
{item.state === 5 && <span>已撤回</span>}
|
|
257
|
+
</>
|
|
258
|
+
),
|
|
259
|
+
},
|
|
260
|
+
]}
|
|
261
|
+
/>
|
|
262
|
+
),
|
|
263
|
+
)
|
|
264
|
+
}
|
|
265
|
+
</>
|
|
266
|
+
)
|
|
267
|
+
}
|
|
268
|
+
{
|
|
269
|
+
(info.hiddenRectifyUserCO && Object.keys(info.hiddenRectifyUserCO).length > 0) && (
|
|
270
|
+
<>
|
|
271
|
+
<Divider orientation="left">整改信息</Divider>
|
|
272
|
+
<Descriptions
|
|
273
|
+
bordered
|
|
274
|
+
column={1}
|
|
275
|
+
labelStyle={{ width: 200 }}
|
|
276
|
+
items={[
|
|
277
|
+
{ label: "整改部门", children: info.hiddenRectifyUserCO.deptName },
|
|
278
|
+
{ label: "整改人", children: info.hiddenRectifyUserCO.userName },
|
|
279
|
+
{ label: "整改时间", children: info.hiddenRectifyUserCO.rectificationTime },
|
|
280
|
+
{ label: "整改描述", children: info.hiddenRectifyUserCO.descr },
|
|
281
|
+
{ label: "投入资金", children: info.hiddenRectifyUserCO.investmentFunds },
|
|
282
|
+
{ label: "临时安全措施", children: info.tempSafeMeasure },
|
|
283
|
+
{ label: "整改后图片", children: <PreviewImg files={afterRectificationImageFiles} /> },
|
|
284
|
+
{ label: "整改方案", children: info.hiddenRectifyUserCO.isRectificationScheme === 0 ? "无" : "有" },
|
|
285
|
+
...((info.hiddenRectifyUserCO.isRectificationScheme === 1 && info.hiddenRectifyUserCO.hiddenSchemeCO && Object.keys(info.hiddenRectifyUserCO.hiddenSchemeCO).length > 0)
|
|
286
|
+
? [
|
|
287
|
+
{ label: "治理标准", children: info.hiddenRectifyUserCO.hiddenSchemeCO.governStanDards },
|
|
288
|
+
{ label: "治理方法", children: info.hiddenRectifyUserCO.hiddenSchemeCO.governMethod },
|
|
289
|
+
{ label: "经费落实", children: info.hiddenRectifyUserCO.hiddenSchemeCO.expenditure },
|
|
290
|
+
{ label: "负责人员", children: info.hiddenRectifyUserCO.hiddenSchemeCO.principal },
|
|
291
|
+
{ label: "工时安排", children: info.hiddenRectifyUserCO.hiddenSchemeCO.programming },
|
|
292
|
+
{ label: "时限要求", children: info.hiddenRectifyUserCO.hiddenSchemeCO.timeLimitFor },
|
|
293
|
+
{ label: "工作要求", children: info.hiddenRectifyUserCO.hiddenSchemeCO.jobRequireMent },
|
|
294
|
+
{ label: "其他事项", children: info.hiddenRectifyUserCO.hiddenSchemeCO.otherBusiness },
|
|
295
|
+
{ label: "方案图片", children: <PreviewImg files={rectificationPlanImageFiles} /> },
|
|
296
|
+
]
|
|
297
|
+
: []),
|
|
298
|
+
]}
|
|
299
|
+
/>
|
|
300
|
+
</>
|
|
301
|
+
)
|
|
302
|
+
}
|
|
303
|
+
{
|
|
304
|
+
info.isQualified === 1
|
|
305
|
+
? (
|
|
306
|
+
(info.hiddenAcceptUserCO && Object.keys(info.hiddenAcceptUserCO).length > 0)
|
|
307
|
+
? (
|
|
308
|
+
<>
|
|
309
|
+
<Divider orientation="left">验收信息</Divider>
|
|
310
|
+
<Descriptions
|
|
311
|
+
bordered
|
|
312
|
+
column={1}
|
|
313
|
+
labelStyle={{ width: 200 }}
|
|
314
|
+
items={[
|
|
315
|
+
{ label: "验收部门", children: info.hiddenAcceptUserCO.deptName },
|
|
316
|
+
{ label: "验收人", children: info.hiddenAcceptUserCO.userName },
|
|
317
|
+
{ label: "验收时间", children: info.hiddenAcceptUserCO.rectificationTime },
|
|
318
|
+
{ label: "验收打回意见", children: info.hiddenAcceptUserCO.repulseCause },
|
|
319
|
+
{ label: "是否合格", children: "合格" },
|
|
320
|
+
{ label: "验收描述", children: info.hiddenAcceptUserCO.descr },
|
|
321
|
+
{ label: "验收图片", children: <PreviewImg files={acceptImageFiles} /> },
|
|
322
|
+
]}
|
|
323
|
+
/>
|
|
324
|
+
</>
|
|
325
|
+
)
|
|
326
|
+
: (
|
|
327
|
+
<>
|
|
328
|
+
<Divider orientation="left">验收打回信息</Divider>
|
|
329
|
+
<Descriptions
|
|
330
|
+
bordered
|
|
331
|
+
column={1}
|
|
332
|
+
labelStyle={{ width: 200 }}
|
|
333
|
+
items={[
|
|
334
|
+
{ label: "验收部门", children: info.hiddenAcceptUserCO.deptName },
|
|
335
|
+
{ label: "验收人", children: info.hiddenAcceptUserCO.userName },
|
|
336
|
+
{ label: "验收时间", children: info.hiddenAcceptUserCO.rectificationTime },
|
|
337
|
+
{ label: "验收打回意见", children: info.hiddenAcceptUserCO.repulseCause },
|
|
338
|
+
]}
|
|
339
|
+
/>
|
|
340
|
+
</>
|
|
341
|
+
)
|
|
342
|
+
)
|
|
343
|
+
: null
|
|
344
|
+
}
|
|
345
|
+
<Divider orientation="left">安全环保验收信息</Divider>
|
|
346
|
+
<Descriptions
|
|
347
|
+
bordered
|
|
348
|
+
column={1}
|
|
349
|
+
labelStyle={{ width: 200 }}
|
|
350
|
+
items={[
|
|
351
|
+
{ label: "验收人", children: "todo" },
|
|
352
|
+
{ label: "验收时间", children: "todo" },
|
|
353
|
+
{ label: "是否合格", children: "todo" },
|
|
354
|
+
{ label: "验收描述", children: "todo" },
|
|
355
|
+
{ label: "验收图片", children: "todo" },
|
|
356
|
+
]}
|
|
357
|
+
/>
|
|
358
|
+
</div>
|
|
359
|
+
</div>
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export default HiddenInfo;
|
|
@@ -19,6 +19,8 @@ export interface UploadProps extends Omit<AntUploadProps, "fileList"> {
|
|
|
19
19
|
uploadButtonText?: string;
|
|
20
20
|
/** 要上传的文件类型,默认为 image */
|
|
21
21
|
fileType?: "image" | "video" | "document";
|
|
22
|
+
/** 获取上传过服务器删除的附件 */
|
|
23
|
+
onGetRemoveFile?: (file: Omit<UploadFile, "originFileObj">) => void;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
/**
|
|
@@ -28,7 +30,3 @@ export interface UploadProps extends Omit<AntUploadProps, "fileList"> {
|
|
|
28
30
|
declare const Upload: FC<UploadProps>;
|
|
29
31
|
|
|
30
32
|
export default Upload;
|
|
31
|
-
|
|
32
|
-
// 视频:数量默认1个,且只支持mp4格式,单个文件大小默认100M
|
|
33
|
-
// 文件:数量默认4个,且只支持pdf、doc、docx格式
|
|
34
|
-
// 图片:数量默认4个,且只支持jpg、jpeg、png格式
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// 隐患来源
|
|
2
|
+
export const HIDDEN_SOURCE_ENUM = [
|
|
3
|
+
{ bianma: "1", name: "隐患快报" },
|
|
4
|
+
{ bianma: "2", name: "清单排查" },
|
|
5
|
+
{ bianma: "3", name: "清单排查" },
|
|
6
|
+
{ bianma: "4", name: "安全环保检查(监管端)" },
|
|
7
|
+
{ bianma: "5", name: "安全环保检查(企业端)" },
|
|
8
|
+
{ bianma: "6", name: "消防检查" },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
// 隐患状态
|
|
12
|
+
export const HIDDEN_STATE_ENUM = [
|
|
13
|
+
{ bianma: "100", name: "待确认" },
|
|
14
|
+
{ bianma: "200", name: "待整改" },
|
|
15
|
+
{ bianma: "201", name: "确认打回" },
|
|
16
|
+
{ bianma: "300", name: "待验收" },
|
|
17
|
+
{ bianma: "301", name: "已验收" },
|
|
18
|
+
{ bianma: "302", name: "验收打回" },
|
|
19
|
+
{ bianma: "400", name: "归档" },
|
|
20
|
+
{ bianma: "99", name: "用户暂存" },
|
|
21
|
+
{ bianma: "98", name: "安全环保检查/清单排查暂存" },
|
|
22
|
+
{ bianma: "97", name: "已过期" },
|
|
23
|
+
{ bianma: "101", name: "忽略隐患" },
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
// 隐患整改类型
|
|
27
|
+
export const HIDDEN_RECTIFICATION_TYPE_ENUM = [
|
|
28
|
+
{ bianma: 1, name: "立即整改" },
|
|
29
|
+
{ bianma: 2, name: "延期整改" },
|
|
30
|
+
];
|