fix
parent
ee8a74f28e
commit
bc73a45a06
|
|
@ -12,9 +12,9 @@ module.exports = {
|
|||
// 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x:8095
|
||||
//API_HOST: "http://localhost:80",
|
||||
|
||||
// API_HOST: "http://192.168.0.134",
|
||||
API_HOST: "http://192.168.0.134",
|
||||
// API_HOST: "http://192.168.0.150", //太浅
|
||||
API_HOST: "https://gbs-gateway.qhdsafety.com",
|
||||
//API_HOST: "https://gbs-gateway.qhdsafety.com",
|
||||
//API_HOST: "http://192.168.0.103", //huwei
|
||||
},
|
||||
production: {
|
||||
|
|
|
|||
|
|
@ -116,6 +116,11 @@ export const qualFilingReviewGet = declareRequest(
|
|||
"Get > /safetyEval/qual-filing-review/page",
|
||||
);
|
||||
|
||||
export const qualFilingCheckNewQual = declareRequest(
|
||||
"qualFilingLoading",
|
||||
"Get > /safetyEval/qual-filing/checkNewQual",
|
||||
);
|
||||
|
||||
export const submitQualFiling = declareRequest(
|
||||
"qualFilingSubmitLoading",
|
||||
"Post > @/safetyEval/qual-filing/aggregationSaveOrEdit",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Button, Form, Tag, Table, Typography, Select, Modal, Empty } from "antd";
|
||||
import { Button, Form, Tag, Table, Typography, Select, Modal, Empty, message } from "antd";
|
||||
import SearchForm from "@cqsjjb/jjb-react-admin-component/SearchForm";
|
||||
import ControlWrapper from "@cqsjjb/jjb-react-admin-component/ControlWrapper";
|
||||
import TableAction from "@cqsjjb/jjb-react-admin-component/TableAction";
|
||||
|
|
@ -37,6 +37,7 @@ export default function FilingListTable({
|
|||
history,
|
||||
qualFiling,
|
||||
qualFilingReviewGet,
|
||||
qualFilingCheckNewQual,
|
||||
}) {
|
||||
const statusOptions = getFilingStatusOptions(mode);
|
||||
|
||||
|
|
@ -84,6 +85,19 @@ export default function FilingListTable({
|
|||
setReviewList([]);
|
||||
};
|
||||
|
||||
const handleCreateCheck = async () => {
|
||||
try {
|
||||
const res = await qualFilingCheckNewQual();
|
||||
if (res?.data === true) {
|
||||
onCreate();
|
||||
} else {
|
||||
message.warning(res?.message || "已经申请或备案了资质,请勿重复操作");
|
||||
}
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
};
|
||||
|
||||
const columns = [
|
||||
{
|
||||
title: "备案属地",
|
||||
|
|
@ -214,7 +228,7 @@ export default function FilingListTable({
|
|||
}
|
||||
extra={
|
||||
onCreate && (
|
||||
<Button type="primary" onClick={onCreate}>
|
||||
<Button type="primary" loading={qualFilingLoading} onClick={handleCreateCheck}>
|
||||
{createLabel}
|
||||
</Button>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue