|
@@ -10,6 +10,7 @@ import Map from '@/components/map';
|
10
|
10
|
import Uploader from '@/components/Uploader/index';
|
11
|
11
|
import { getDateStr } from '@/utils/date';
|
12
|
12
|
import mapIcon from '@/assets/icons/marker.png';
|
|
13
|
+import { getTaOrgIssueByIssueId } from '@/services/taorgissue';
|
13
|
14
|
import { PROCESS_END } from '@/utils/biz';
|
14
|
15
|
|
15
|
16
|
import IssueStatus from './IssueStatus';
|
|
@@ -42,6 +43,7 @@ export default (props) => {
|
42
|
43
|
const [showIssueType, setShowIssueType] = React.useState(false);
|
43
|
44
|
const [showOrgPicker, setShowOrgPicker] = React.useState(false);
|
44
|
45
|
const [showDatePicker, setShowDatePicker] = React.useState(false);
|
|
46
|
+ const [orgIssue, setOrgIssue] = React.useState();
|
45
|
47
|
|
46
|
48
|
// 办结时间
|
47
|
49
|
const endDate = React.useMemo(() => {
|
|
@@ -109,6 +111,11 @@ export default (props) => {
|
109
|
111
|
if (issue) {
|
110
|
112
|
fmRef.current = issue;
|
111
|
113
|
setFormData(issue);
|
|
114
|
+ // console.log('---------issue-------->', issue)
|
|
115
|
+ getTaOrgIssueByIssueId(issue.issueId, issue.orgId).then(r => {
|
|
116
|
+ setOrgIssue(r);
|
|
117
|
+ });
|
|
118
|
+
|
112
|
119
|
}
|
113
|
120
|
}, [issue]);
|
114
|
121
|
|
|
@@ -238,6 +245,30 @@ export default (props) => {
|
238
|
245
|
)
|
239
|
246
|
}
|
240
|
247
|
|
|
248
|
+ {
|
|
249
|
+ orgIssue && issue?.processNode == PROCESS_END && (
|
|
250
|
+ <CellGroup style={{ marginTop: '20px' }}>
|
|
251
|
+ <Cell title="整改结果" />
|
|
252
|
+ <Field
|
|
253
|
+ readonly
|
|
254
|
+ type="textarea"
|
|
255
|
+ autosize={{ minHeight: '120px' }}
|
|
256
|
+ value={orgIssue?.result}
|
|
257
|
+ />
|
|
258
|
+
|
|
259
|
+ <Cell title="整改照片" border={false} />
|
|
260
|
+ <Cell
|
|
261
|
+ renderTitle={
|
|
262
|
+ <Uploader
|
|
263
|
+ disabled
|
|
264
|
+ value={orgIssue?.attachList}
|
|
265
|
+ />
|
|
266
|
+ }
|
|
267
|
+ />
|
|
268
|
+ </CellGroup>
|
|
269
|
+ )
|
|
270
|
+ }
|
|
271
|
+
|
241
|
272
|
{
|
242
|
273
|
renderFields ?
|
243
|
274
|
renderFields(
|