|
|
@ -127,8 +127,95 @@ export default (props) => { |
|
|
|
</Row></> |
|
|
|
} |
|
|
|
|
|
|
|
const renderRepairInfo = () => { |
|
|
|
return <> |
|
|
|
<div className="item-title">{"维修处理"}</div> |
|
|
|
|
|
|
|
<ProFormTextArea |
|
|
|
name="repairDesc" |
|
|
|
label="维修情况描述:" |
|
|
|
disabled={true} |
|
|
|
/> |
|
|
|
|
|
|
|
<Form.Item label="完工图片:"> |
|
|
|
<Uploads |
|
|
|
listType='picture-card' |
|
|
|
uploadType='project' |
|
|
|
maxFilesNum={1} |
|
|
|
maxFileSize={10} |
|
|
|
isQiniu={true} |
|
|
|
disabled={true} |
|
|
|
fileTypes={["png", "jpg"]} |
|
|
|
defaultValue={ |
|
|
|
(() => { |
|
|
|
let nextV = [] |
|
|
|
for (let s of (editData?.patrolRecordIssueHandles[0]?.repairImage || [])) { |
|
|
|
if (s) { |
|
|
|
nextV.push({ |
|
|
|
storageUrl: s |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
return nextV |
|
|
|
})() |
|
|
|
} |
|
|
|
/> |
|
|
|
|
|
|
|
</Form.Item> |
|
|
|
|
|
|
|
</> |
|
|
|
} |
|
|
|
|
|
|
|
const renderCheckInfo = () => { |
|
|
|
return <> |
|
|
|
<div className="item-title">{"质检验收"}</div> |
|
|
|
|
|
|
|
<ProFormTextArea |
|
|
|
name="checkPerson1" |
|
|
|
label="验收人:" |
|
|
|
disabled={true} |
|
|
|
value={ editData?.patrolRecordIssueHandles[0]?.checkPerson?.name} |
|
|
|
/> |
|
|
|
|
|
|
|
<Form.Item label="完工图片:"> |
|
|
|
<Uploads |
|
|
|
listType='picture-card' |
|
|
|
uploadType='project' |
|
|
|
maxFilesNum={1} |
|
|
|
maxFileSize={10} |
|
|
|
isQiniu={true} |
|
|
|
disabled={true} |
|
|
|
fileTypes={["png", "jpg"]} |
|
|
|
defaultValue={ |
|
|
|
(() => { |
|
|
|
let nextV = [] |
|
|
|
for (let s of (editData?.patrolRecordIssueHandles[0]?.checkImage || [])) { |
|
|
|
if (s) { |
|
|
|
nextV.push({ |
|
|
|
storageUrl: s |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
return nextV |
|
|
|
})() |
|
|
|
} |
|
|
|
/> |
|
|
|
</Form.Item> |
|
|
|
|
|
|
|
<ProFormTextArea |
|
|
|
name="checkOpinion" |
|
|
|
label="验收意见:" |
|
|
|
disabled={true} |
|
|
|
/> |
|
|
|
|
|
|
|
<ProFormTextArea |
|
|
|
name="checkState" |
|
|
|
label="验收结果:" |
|
|
|
disabled={true} |
|
|
|
value={editData?.patrolRecordIssueHandles[0]?.state == 6 ? '验收通过' : '验收不通过'} |
|
|
|
/> |
|
|
|
</> |
|
|
|
} |
|
|
|
return ( |
|
|
|
<ModalForm |
|
|
|
formRef={formRef} |
|
|
@ -284,8 +371,6 @@ export default (props) => { |
|
|
|
<div className="item-title">{"维修计划审批"}</div> |
|
|
|
<div> |
|
|
|
<ProFormTextArea |
|
|
|
labelCol={{ span: 5 }} |
|
|
|
wrapperCol={{ span: 16 }} |
|
|
|
name="approveOpinion" |
|
|
|
label="审批意见:" |
|
|
|
disabled={title != '审核'} |
|
|
@ -302,6 +387,9 @@ export default (props) => { |
|
|
|
</div> |
|
|
|
</> |
|
|
|
} |
|
|
|
|
|
|
|
{(editData?.patrolRecordIssueHandles[0]?.state && editData?.patrolRecordIssueHandles[0]?.state > 4) && renderRepairInfo()} |
|
|
|
{(editData?.patrolRecordIssueHandles[0]?.state && editData?.patrolRecordIssueHandles[0]?.state > 5) && renderCheckInfo()} |
|
|
|
</div> |
|
|
|
</ ModalForm> |
|
|
|
); |
|
|
|