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