on-site confirm
parent
bd0739f37f
commit
16a423dbb8
|
|
@ -134,3 +134,9 @@ export const queryQualOnSiteReviewOrgPage = declareRequest(
|
|||
"Get > /safetyEval/qual-on-site-review/org/page",
|
||||
'orgSiteReviewList: [] | res.data || [] & orgSiteReviewTotal: 0 | res.total || 0',
|
||||
);
|
||||
|
||||
// 机构确认安评
|
||||
export const confirmQualOnSiteReview = declareRequest(
|
||||
"siteReviewConfirmLoading",
|
||||
"Post > @/safetyEval/qual-on-site-review/confirm?id={id}",
|
||||
);
|
||||
|
|
@ -36,6 +36,7 @@ const SiteReviewNotice = (props) => {
|
|||
const {
|
||||
qualReview,
|
||||
queryQualOnSiteReviewOrgPage,
|
||||
confirmQualOnSiteReview,
|
||||
} = props;
|
||||
|
||||
const {
|
||||
|
|
@ -86,10 +87,13 @@ const SiteReviewNotice = (props) => {
|
|||
Modal.confirm({
|
||||
title: "确认现场审查安排",
|
||||
content: `确定确认项目"${record.id}"的现场审查安排吗?确认后将反馈至监管端。`,
|
||||
onOk: async () => {
|
||||
// TODO: 调用确认接口
|
||||
message.success("现场审查安排已确认");
|
||||
getData();
|
||||
onOk: () => {
|
||||
return confirmQualOnSiteReview({ id: record.id }).then((res) => {
|
||||
if (res?.success !== false) {
|
||||
message.success("现场审查安排已确认");
|
||||
getData();
|
||||
}
|
||||
});
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue