修改bug
parent
c42677d172
commit
a628bc0433
|
|
@ -20,7 +20,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// 应用唯一标识符
|
// 应用唯一标识符
|
||||||
appIdentifier: "primeport",
|
appIdentifier: "primeport-h5",
|
||||||
// 应用上下文注入全局变量
|
// 应用上下文注入全局变量
|
||||||
contextInject: {
|
contextInject: {
|
||||||
// 应用Key
|
// 应用Key
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
|
||||||
|
|
||||||
export const enclosedPersonnelAndVehicleStatisticsList = declareRequest(
|
export const enclosedPersonnelAndVehicleStatisticsList = declareRequest(
|
||||||
"enclosedPersonnelAndVehicleStatisticsLoading",
|
"enclosedPersonnelAndVehicleStatisticsLoading",
|
||||||
`Post > @/primeport/vehicleApply/fgsCount`,
|
`Post > @/primeport/closedArea/count`,
|
||||||
);
|
);
|
||||||
export const enclosedPersonnelAndVehicleStatisticsVehicleEntryAndExitRecordsList
|
export const enclosedPersonnelAndVehicleStatisticsVehicleEntryAndExitRecordsList
|
||||||
= declareRequest(
|
= declareRequest(
|
||||||
|
|
|
||||||
|
|
@ -236,6 +236,44 @@ function Apply(props) {
|
||||||
columns={[ACCESS_TYPE_ENUM]}
|
columns={[ACCESS_TYPE_ENUM]}
|
||||||
onConfirm={(event) => {
|
onConfirm={(event) => {
|
||||||
setMkmjType(event[0]);
|
setMkmjType(event[0]);
|
||||||
|
form.resetFields([
|
||||||
|
"tmpMkmjType",
|
||||||
|
"drivingUserName",
|
||||||
|
"applyPersonUserName",
|
||||||
|
"userPhone",
|
||||||
|
"userCard",
|
||||||
|
"vehicleType",
|
||||||
|
"vehicleTypeName",
|
||||||
|
"licenceType",
|
||||||
|
"licenceTypeName",
|
||||||
|
"licenceNo",
|
||||||
|
"visitStartTime",
|
||||||
|
"visitEndTime",
|
||||||
|
"hgAuthArea",
|
||||||
|
"hgAuthAreaName",
|
||||||
|
"levelOneMkmjId",
|
||||||
|
"levelOneMkmjName",
|
||||||
|
"jurisdictionalCorpId",
|
||||||
|
"jurisdictionalCorpName",
|
||||||
|
"closedAreaId",
|
||||||
|
"closedAreaName",
|
||||||
|
"levelTwoMkmjId",
|
||||||
|
"levelTwoMkmjName",
|
||||||
|
"vehicleLicensePhoto",
|
||||||
|
"vehiclePhoto",
|
||||||
|
"facePhoto",
|
||||||
|
"applyReason",
|
||||||
|
"auditPersonUserId",
|
||||||
|
"auditPersonUserName",
|
||||||
|
"auditPersonCorpId",
|
||||||
|
"auditPersonCorpName",
|
||||||
|
"auditPersonDepartmentId",
|
||||||
|
"auditPersonDepartmentName",
|
||||||
|
"safetyNoticeAgreed",
|
||||||
|
"signature",
|
||||||
|
]);
|
||||||
|
setSignatureUrl("");
|
||||||
|
checkboxRef.current?.uncheck?.();
|
||||||
form.setFieldValue("tmpMkmjType", "");
|
form.setFieldValue("tmpMkmjType", "");
|
||||||
form.setFieldValue("vehicleTypeName", "");
|
form.setFieldValue("vehicleTypeName", "");
|
||||||
form.setFieldValue("licenceTypeName", "");
|
form.setFieldValue("licenceTypeName", "");
|
||||||
|
|
@ -262,6 +300,7 @@ function Apply(props) {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
{tmpApplyType && (
|
{tmpApplyType && (
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
key={tmpApplyType || "tmpMkmjType"}
|
||||||
name="tmpMkmjType"
|
name="tmpMkmjType"
|
||||||
label="申请口门"
|
label="申请口门"
|
||||||
rules={[{ required: true, message: "请选择选择申请口门" }]}
|
rules={[{ required: true, message: "请选择选择申请口门" }]}
|
||||||
|
|
@ -777,6 +816,7 @@ const EnclosedAreaFields = ({
|
||||||
<input type="hidden" />
|
<input type="hidden" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
key={form.getFieldValue("jurisdictionalCorpId") || "levelTwoMkmjId"}
|
||||||
name="levelTwoMkmjId"
|
name="levelTwoMkmjId"
|
||||||
label="口门"
|
label="口门"
|
||||||
rules={[{ required: true, message: "请选择口门" }]}
|
rules={[{ required: true, message: "请选择口门" }]}
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,6 @@ function Add(props) {
|
||||||
render: (
|
render: (
|
||||||
<DepartmentSelectTree
|
<DepartmentSelectTree
|
||||||
searchType="inType"
|
searchType="inType"
|
||||||
level={1}
|
|
||||||
params={{ enterpriseType: [2] }}
|
params={{ enterpriseType: [2] }}
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|
@ -319,7 +318,7 @@ const SelectEntourageModalComponent = (props) => {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let personBelongType = 1;
|
let personBelongType = 1;
|
||||||
if (props.entrance === "enterprise")
|
if (props.entrance === "enterprise")F
|
||||||
personBelongType = 2;
|
personBelongType = 2;
|
||||||
return { personBelongType };
|
return { personBelongType };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,6 @@ function Add(props) {
|
||||||
render: (
|
render: (
|
||||||
<DepartmentSelectTree
|
<DepartmentSelectTree
|
||||||
searchType="inType"
|
searchType="inType"
|
||||||
level={1}
|
|
||||||
params={{ enterpriseType: [2] }}
|
params={{ enterpriseType: [2] }}
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|
|
||||||
|
|
@ -231,6 +231,16 @@ const AddModalComponent = (props) => {
|
||||||
}, [mkmjAreaJurisdictionalCorpId]);
|
}, [mkmjAreaJurisdictionalCorpId]);
|
||||||
|
|
||||||
const onSubmit = async (values) => {
|
const onSubmit = async (values) => {
|
||||||
|
if (
|
||||||
|
Number(values.outDirectionType) === 2
|
||||||
|
&& values.outDirectionArea
|
||||||
|
&& values.closedAreaId
|
||||||
|
&& String(values.outDirectionArea) === String(values.closedAreaId)
|
||||||
|
) {
|
||||||
|
message.warning("口门离开区域不能和封闭区域重复");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const { success } = await props[!props.id ? "firstLevelDoorInfoAdd" : "firstLevelDoorInfoEdit"]({
|
const { success } = await props[!props.id ? "firstLevelDoorInfoAdd" : "firstLevelDoorInfoEdit"]({
|
||||||
...values,
|
...values,
|
||||||
mkmjLevel,
|
mkmjLevel,
|
||||||
|
|
|
||||||
|
|
@ -34,16 +34,18 @@ function List(props) {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getData();
|
getData();
|
||||||
|
console.log(urlState.parentId)
|
||||||
}, [urlState.parentId]);
|
}, [urlState.parentId]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page isShowAllAction={false}>
|
<Page isShowAllAction={false}>
|
||||||
<Search
|
<Search
|
||||||
options={[
|
options={[
|
||||||
{ name: "todo1", label: "区域名称" },
|
{ name: "closedAreaName", label: "区域名称" },
|
||||||
]}
|
]}
|
||||||
form={form}
|
form={form}
|
||||||
onFinish={getData}
|
onFinish={getData}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
toolBarRender={() => (
|
toolBarRender={() => (
|
||||||
|
|
@ -58,7 +60,6 @@ function List(props) {
|
||||||
backParentIds: urlState.backParentIds.slice(0, -1),
|
backParentIds: urlState.backParentIds.slice(0, -1),
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
ghost
|
|
||||||
>
|
>
|
||||||
返回
|
返回
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -67,7 +68,7 @@ function List(props) {
|
||||||
</Space>
|
</Space>
|
||||||
)}
|
)}
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "区域名称", dataIndex: "todo1", render: (_, record) => (
|
{ title: "区域名称", dataIndex: "closedAreaName", render: (_, record) => (
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|
@ -77,11 +78,11 @@ function List(props) {
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.todo1}
|
{record.closedAreaName}
|
||||||
</Button>
|
</Button>
|
||||||
) },
|
) },
|
||||||
{ title: "人员现存数", dataIndex: "todo2" },
|
{ title: "人员现存数", dataIndex: "personCount" },
|
||||||
{ title: "车辆现存数", dataIndex: "todo3" },
|
{ title: "车辆现存数", dataIndex: "carCount" },
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
width: 200,
|
width: 200,
|
||||||
|
|
|
||||||
|
|
@ -263,20 +263,37 @@ const InfoModalComponent = (props) => {
|
||||||
items={[
|
items={[
|
||||||
{ label: "相关方名称", children: info.vehicleCorpName },
|
{ label: "相关方名称", children: info.vehicleCorpName },
|
||||||
{ label: "项目名称", children: info.projectName },
|
{ label: "项目名称", children: info.projectName },
|
||||||
{ label: "审核人员", children: info.currentAuditUserName },
|
|
||||||
{ label: "时间范围", children: `${info.visitStartTime}-${info.visitEndTime}` },
|
{ label: "时间范围", children: `${info.visitStartTime}-${info.visitEndTime}` },
|
||||||
{ label: "地域范围", children: info.gateLevelAuthArea && JSON.parse(info.gateLevelAuthArea).area.map(item => item.value).join("、") },
|
{ label: "地域范围", children: info.gateLevelAuthArea && JSON.parse(info.gateLevelAuthArea).area.map(item => item.value).join("、") },
|
||||||
{ label: "驾驶人员", children: info.drivingUserName },
|
{ label: "驾驶人员", children: info.drivingUserName },
|
||||||
{ label: "车辆类型", children: info.vehicleTypeName },
|
{ label: "车辆类型", children: info.vehicleTypeName },
|
||||||
{ label: "车牌类型", children: info.licenceTypeName },
|
{ label: "车牌类型", children: info.licenceTypeName },
|
||||||
{ label: "车牌号", children: info.licenceNo },
|
{ label: "车牌号", children: info.licenceNo },
|
||||||
{ label: "审核状态", children: getLabelName({ list: VEHICLE_AUDIT_STATUS_ENUM, status: info.auditFlag }) },
|
|
||||||
...(info.auditFlag === 3 ? [{ label: "驳回原因", children: info.refusalReason }] : []),
|
|
||||||
{ label: "车辆照片", children: (<PreviewImg files={info.attachmentFile} />) },
|
{ label: "车辆照片", children: (<PreviewImg files={info.attachmentFile} />) },
|
||||||
{ label: "车辆行驶证照片", children: (<PreviewImg files={info.drivingLicenseFile} />) },
|
{ label: "车辆行驶证照片", children: (<PreviewImg files={info.drivingLicenseFile} />) },
|
||||||
{ label: "申请人签字", children: (<PreviewImg files={info.informSignFile} />) },
|
{ label: "申请人签字", children: (<PreviewImg files={info.informSignFile} />) },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
{
|
||||||
|
info.auditFlag !== 1 &&(
|
||||||
|
<>
|
||||||
|
<Divider orientation="left">审核信息</Divider>
|
||||||
|
<Descriptions
|
||||||
|
column={1}
|
||||||
|
bordered
|
||||||
|
styles={{ label: { width: 200 } }}
|
||||||
|
items={[
|
||||||
|
{ label: "审核人员", children: info.currentAuditUserName },
|
||||||
|
{ label: "审核状态", children: getLabelName({ list: VEHICLE_AUDIT_STATUS_ENUM, status: info.auditFlag }) },
|
||||||
|
...(info.auditFlag === 3 ? [{ label: "驳回原因", children: info.refusalReason }] : []),
|
||||||
|
{ label: "审核时间", children: info.currentAuditTime },
|
||||||
|
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue