{
- const area = { value: option.dictLabel, bianma: option.dictValue };
+ const area = [{ value: option.dictLabel, bianma: option.dictValue }];
form.setFieldValue("area", area);
}}
onChange={() => {
diff --git a/src/pages/Container/Supervision/FirstLevelDoor/PortEntryApproval/TemporaryVisitor/TemporaryVehicle/List/index.js b/src/pages/Container/Supervision/FirstLevelDoor/PortEntryApproval/TemporaryVisitor/TemporaryVehicle/List/index.js
index 29a1bb4..f68ac72 100644
--- a/src/pages/Container/Supervision/FirstLevelDoor/PortEntryApproval/TemporaryVisitor/TemporaryVehicle/List/index.js
+++ b/src/pages/Container/Supervision/FirstLevelDoor/PortEntryApproval/TemporaryVisitor/TemporaryVehicle/List/index.js
@@ -13,14 +13,9 @@ import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-library/enum/uploadFile/gwj";
import useGetFile from "zy-react-library/hooks/useGetFile";
import useTable from "zy-react-library/hooks/useTable";
import { getLabelName } from "zy-react-library/utils";
+import { VEHICLE_AUDIT_STATUS_ENUM } from "~/enumerate/constant";
import { NS_FIRST_LEVEL_DOOR_INFO, NS_TEMPORARY_VEHICLE, NS_VEHICLE_AUDIT } from "~/enumerate/namespace";
-const STATUS_ENUM = [
- { bianma: "1", name: "审核中" },
- { bianma: "2", name: "通过" },
- { bianma: "3", name: "不通过" },
-];
-
function List(props) {
const [qrCodeModalVisible, setQrCodeModalVisible] = useState(false);
const [reviewModalVisible, setReviewModalVisible] = useState(false);
@@ -52,7 +47,7 @@ function List(props) {
{ name: "licenceNo", label: "车牌号" },
{ name: "visitStartTime", label: "访问开始时间" },
{ name: "visitEndTime", label: "访问结束时间" },
- { name: "auditStatus", label: "审批状态", render: FORM_ITEM_RENDER_ENUM.SELECT, items: STATUS_ENUM },
+ { name: "auditStatus", label: "审批状态", render: FORM_ITEM_RENDER_ENUM.SELECT, items: VEHICLE_AUDIT_STATUS_ENUM },
{
name: "todo6",
label: "访问口门名称",
@@ -103,7 +98,7 @@ function List(props) {
{
title: "审批状态",
dataIndex: "auditStatus",
- render: (_, record) => getLabelName({ list: STATUS_ENUM, status: record.auditStatus }),
+ render: (_, record) => getLabelName({ list: VEHICLE_AUDIT_STATUS_ENUM, status: record.auditStatus }),
},
{
title: "操作",
@@ -375,7 +370,7 @@ const ApprovalDetailsModalComponent = (props) => {
审批状态:
- {getLabelName({ list: STATUS_ENUM, status: item.status })}
+ {getLabelName({ list: VEHICLE_AUDIT_STATUS_ENUM, status: item.status })}