feat:相关方人员及车辆管理
parent
47b3e6df9c
commit
d94bb8b2e2
|
|
@ -4,10 +4,18 @@ export const stockPersonnelAndVehiclesList = declareRequest(
|
|||
"stockPersonnelAndVehiclesLoading",
|
||||
`Get > /primeport/personApply/personnelVehicleManagementList`,
|
||||
);
|
||||
export const xgfPersonPermissionsList = declareRequest(
|
||||
"stockPersonnelAndVehiclesLoading",
|
||||
`Post > @/primeport/personApply/xgfPersonPermissionsList`,
|
||||
);
|
||||
export const stockPersonnelAndVehiclesPersonnelRecordsList = declareRequest(
|
||||
"stockPersonnelAndVehiclesLoading",
|
||||
`Post > @/primeport/`,
|
||||
);
|
||||
export const xgfPersonAuthorization = declareRequest(
|
||||
"stockPersonnelAndVehiclesLoading",
|
||||
`Post > @/primeport/personApply/xgfPersonAuthorization`,
|
||||
);
|
||||
export const stockPersonnelAndVehiclesAuthorization = declareRequest(
|
||||
"stockPersonnelAndVehiclesLoading",
|
||||
`Post > @/primeport/personApply/authorization`,
|
||||
|
|
|
|||
|
|
@ -28,12 +28,12 @@ function List(props) {
|
|||
/>
|
||||
<Table
|
||||
columns={[
|
||||
{ title: "部门", dataIndex: "userName" },
|
||||
{ title: "姓名", dataIndex: "departmentName" },
|
||||
{ title: "部门", dataIndex: "departmentName" },
|
||||
{ title: "姓名", dataIndex: "userName" },
|
||||
{ title: "岗位", dataIndex: "postName" },
|
||||
{ title: "手机号", dataIndex: "userPhone" },
|
||||
{ title: "证件号码", dataIndex: "userCard" },
|
||||
{ title: "人员编号", dataIndex: "todo6" },
|
||||
// { title: "证件号码", dataIndex: "userCard" },
|
||||
// { title: "人员编号", dataIndex: "todo6" },
|
||||
{ title: "车辆数", dataIndex: "vehicleCount" },
|
||||
{
|
||||
title: "操作",
|
||||
|
|
@ -52,7 +52,7 @@ function List(props) {
|
|||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./vehicleManagement/list?id=${record.id}`);
|
||||
props.history.push(`./vehicleManagement/list?id=${record.userId}`);
|
||||
}}
|
||||
>
|
||||
车辆管理
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ const STATUS_ENUM = [
|
|||
function List(props) {
|
||||
const query = useGetUrlQuery();
|
||||
const [form] = Search.useForm();
|
||||
const { tableProps, getData } = useTable(props["stockPersonnelAndVehiclesList"], {
|
||||
const { tableProps, getData } = useTable(props["xgfPersonPermissionsList"], {
|
||||
form,
|
||||
params: { corpId: query.query },
|
||||
params: { applyCorpId: query.id },
|
||||
});
|
||||
|
||||
const onUpdateStatus = (record) => {
|
||||
|
|
@ -35,7 +35,8 @@ function List(props) {
|
|||
)
|
||||
: "该人员涉及其他单位项目,是否开启本单位涉及项目的口门权限?",
|
||||
onOk: async () => {
|
||||
const { success } = await props["stockPersonnelAndVehiclesAuthorization"]({
|
||||
const { success } = await props["xgfPersonAuthorization"]({
|
||||
applyPersonId: record.id,
|
||||
mkmjPermission: record.mkmjPermission === 1 ? 2 : 1,
|
||||
personBelongType: 3,
|
||||
userId,
|
||||
|
|
@ -70,8 +71,8 @@ function List(props) {
|
|||
<Table
|
||||
columns={[
|
||||
{ title: "项目名称", dataIndex: "projectName" },
|
||||
{ title: "姓名", dataIndex: "userName" },
|
||||
{ title: "部门", dataIndex: "departmentName" },
|
||||
{ title: "姓名", dataIndex: "employeePersonUserName" },
|
||||
{ title: "部门", dataIndex: "personDepartmentName" },
|
||||
{ title: "手机号", dataIndex: "userPhone" },
|
||||
{
|
||||
title: "时间范围",
|
||||
|
|
|
|||
Loading…
Reference in New Issue