feat:相关方人员及车辆管理

master
dearLin 2026-03-27 11:39:04 +08:00
parent 47b3e6df9c
commit d94bb8b2e2
3 changed files with 19 additions and 10 deletions

View File

@ -4,10 +4,18 @@ export const stockPersonnelAndVehiclesList = declareRequest(
"stockPersonnelAndVehiclesLoading", "stockPersonnelAndVehiclesLoading",
`Get > /primeport/personApply/personnelVehicleManagementList`, `Get > /primeport/personApply/personnelVehicleManagementList`,
); );
export const xgfPersonPermissionsList = declareRequest(
"stockPersonnelAndVehiclesLoading",
`Post > @/primeport/personApply/xgfPersonPermissionsList`,
);
export const stockPersonnelAndVehiclesPersonnelRecordsList = declareRequest( export const stockPersonnelAndVehiclesPersonnelRecordsList = declareRequest(
"stockPersonnelAndVehiclesLoading", "stockPersonnelAndVehiclesLoading",
`Post > @/primeport/`, `Post > @/primeport/`,
); );
export const xgfPersonAuthorization = declareRequest(
"stockPersonnelAndVehiclesLoading",
`Post > @/primeport/personApply/xgfPersonAuthorization`,
);
export const stockPersonnelAndVehiclesAuthorization = declareRequest( export const stockPersonnelAndVehiclesAuthorization = declareRequest(
"stockPersonnelAndVehiclesLoading", "stockPersonnelAndVehiclesLoading",
`Post > @/primeport/personApply/authorization`, `Post > @/primeport/personApply/authorization`,

View File

@ -28,12 +28,12 @@ function List(props) {
/> />
<Table <Table
columns={[ columns={[
{ title: "部门", dataIndex: "userName" }, { title: "部门", dataIndex: "departmentName" },
{ title: "姓名", dataIndex: "departmentName" }, { title: "姓名", dataIndex: "userName" },
{ title: "岗位", dataIndex: "postName" }, { title: "岗位", dataIndex: "postName" },
{ title: "手机号", dataIndex: "userPhone" }, { title: "手机号", dataIndex: "userPhone" },
{ title: "证件号码", dataIndex: "userCard" }, // { title: "证件号码", dataIndex: "userCard" },
{ title: "人员编号", dataIndex: "todo6" }, // { title: "人员编号", dataIndex: "todo6" },
{ title: "车辆数", dataIndex: "vehicleCount" }, { title: "车辆数", dataIndex: "vehicleCount" },
{ {
title: "操作", title: "操作",
@ -52,7 +52,7 @@ function List(props) {
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
props.history.push(`./vehicleManagement/list?id=${record.id}`); props.history.push(`./vehicleManagement/list?id=${record.userId}`);
}} }}
> >
车辆管理 车辆管理

View File

@ -16,9 +16,9 @@ const STATUS_ENUM = [
function List(props) { function List(props) {
const query = useGetUrlQuery(); const query = useGetUrlQuery();
const [form] = Search.useForm(); const [form] = Search.useForm();
const { tableProps, getData } = useTable(props["stockPersonnelAndVehiclesList"], { const { tableProps, getData } = useTable(props["xgfPersonPermissionsList"], {
form, form,
params: { corpId: query.query }, params: { applyCorpId: query.id },
}); });
const onUpdateStatus = (record) => { const onUpdateStatus = (record) => {
@ -35,7 +35,8 @@ function List(props) {
) )
: "该人员涉及其他单位项目,是否开启本单位涉及项目的口门权限?", : "该人员涉及其他单位项目,是否开启本单位涉及项目的口门权限?",
onOk: async () => { onOk: async () => {
const { success } = await props["stockPersonnelAndVehiclesAuthorization"]({ const { success } = await props["xgfPersonAuthorization"]({
applyPersonId: record.id,
mkmjPermission: record.mkmjPermission === 1 ? 2 : 1, mkmjPermission: record.mkmjPermission === 1 ? 2 : 1,
personBelongType: 3, personBelongType: 3,
userId, userId,
@ -70,8 +71,8 @@ function List(props) {
<Table <Table
columns={[ columns={[
{ title: "项目名称", dataIndex: "projectName" }, { title: "项目名称", dataIndex: "projectName" },
{ title: "姓名", dataIndex: "userName" }, { title: "姓名", dataIndex: "employeePersonUserName" },
{ title: "部门", dataIndex: "departmentName" }, { title: "部门", dataIndex: "personDepartmentName" },
{ title: "手机号", dataIndex: "userPhone" }, { title: "手机号", dataIndex: "userPhone" },
{ {
title: "时间范围", title: "时间范围",