fixed:过时间的项目禁止申请入场
parent
ffd2b24659
commit
ac8d75adf5
|
|
@ -35,7 +35,7 @@ function Add(props) {
|
|||
const signatureUrl = useRef("");
|
||||
|
||||
const getXgfProjectListAll = async () => {
|
||||
const { data } = await props["xgfProjectListAll"]();
|
||||
const { data } = await props["xgfProjectListAll"]({betweenProjectTime :1 });
|
||||
setXgfProjectListAll(data);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ function Add(props) {
|
|||
const signatureUrl = useRef("");
|
||||
|
||||
const getXgfProjectListAll = async () => {
|
||||
const { data } = await props["xgfProjectListAll"]();
|
||||
const { data } = await props["xgfProjectListAll"]({betweenProjectTime :1 });
|
||||
setXgfProjectListAll(data);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ const ViewModalComponent = (props) => {
|
|||
const { loading: getFileLoading, getFile } = useGetFile();
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await props["vehicleApplyInfo"]({ vehicleApplyId: props.id });
|
||||
const { data } = await props["vehicleApplyInfo"]({ id: props.id });
|
||||
const drivingLicenseFile = await getFile({
|
||||
eqType: UPLOAD_FILE_TYPE_ENUM[601],
|
||||
eqForeignKey: data.drivingLicenseId,
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ function Add(props) {
|
|||
};
|
||||
|
||||
const getXgfProjectListAll = async () => {
|
||||
const { data } = await props["xgfProjectListAll"]();
|
||||
const { data } = await props["xgfProjectListAll"]({betweenProjectTime :1 });
|
||||
setXgfProjectListAll(data);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ function Add(props) {
|
|||
};
|
||||
|
||||
const getXgfProjectListAll = async () => {
|
||||
const { data } = await props["xgfProjectListAll"]();
|
||||
const { data } = await props["xgfProjectListAll"]({betweenProjectTime :1 });
|
||||
setXgfProjectListAll(data);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ function List(props) {
|
|||
// },
|
||||
// { name: "employeeVehicleUserName", label: "车辆所属人" },
|
||||
{ name: "licenceNo", label: "车牌号" },
|
||||
// { name: "vehicleType", label: "车辆类型", render: (<DictionarySelect dictValue="VEHICLE_TYPE" />) },
|
||||
{ name: "licenceType", label: "车牌类型", render: (<DictionarySelect dictValue="LICENCE_TYPE" />) },
|
||||
{ name: "vehicleType", label: "车辆类型", render: (<DictionarySelect dictValue="VEHICLE_TYPE" />) },
|
||||
]}
|
||||
form={form}
|
||||
onFinish={getData}
|
||||
|
|
|
|||
|
|
@ -154,6 +154,7 @@ const ReviewModalComponent = (props) => {
|
|||
const onSubmit = async (values) => {
|
||||
const { success } = await props["vehicleAuditApproval"]({
|
||||
id: props.id,
|
||||
vehicleApplyId: props.vehicleApplyId,
|
||||
...values,
|
||||
});
|
||||
if (success) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue