代码格式化

dev
wangpeng 2024-05-23 16:37:30 +08:00
parent 6c6086a63d
commit 328200bfa6
4 changed files with 38 additions and 20 deletions

View File

@ -100,7 +100,6 @@ export const editOperatingVehicleInfo = (params) =>
export const getOperationVehicleAll = (params) =>
upload("/operatingvehicles/operationvehicleList", params); // 修改运营车辆
export const getOperationVehicleInfo = (params) =>
post("/operatingvehicles/findById", params); // 根据Id获取运营车辆信息

View File

@ -1,15 +1,28 @@
<template>
<layout-card>
<div v-if="data.statusInfo.APPLY_TYPE !== '0' && data.statusInfo.APPLY_STATUS !== '0'">
<div
v-if="
data.statusInfo.APPLY_TYPE !== '0' &&
data.statusInfo.APPLY_STATUS !== '0'
"
>
<el-divider content-position="left">
{{ data.statusInfo.REVIEW_RESULT === "-1" ? "打回" : "通过" }}详情
</el-divider>
<el-descriptions :column="3" border>
<el-descriptions-item label="申请类别">
<template v-if="data.statusInfo.APPLY_TYPE === '1'"></template>
<template v-else-if="data.statusInfo.APPLY_TYPE === '2'">企业入职</template>
<template v-else-if="data.statusInfo.APPLY_TYPE === '3'">离职申请</template>
<template v-else-if="data.statusInfo.APPLY_TYPE === '4'">企业解聘</template>
<template v-if="data.statusInfo.APPLY_TYPE === '1'"
>入职申请</template
>
<template v-else-if="data.statusInfo.APPLY_TYPE === '2'"
>企业入职</template
>
<template v-else-if="data.statusInfo.APPLY_TYPE === '3'"
>离职申请</template
>
<template v-else-if="data.statusInfo.APPLY_TYPE === '4'"
>企业解聘</template
>
</el-descriptions-item>
<el-descriptions-item label="备注">
{{ data.statusInfo.REVIEW_COMMENTS }}
@ -190,7 +203,7 @@ const data = reactive({
info: {},
certificateList: [],
statusInfo: {},
dispose: ""
dispose: "",
});
const fnGetData = async () => {
if (!USER_ID) return;
@ -213,14 +226,20 @@ const fnGetData = async () => {
}
});
data.certificateList.forEach((item) => {
if(!item.ALLOW_QUALIFICATION || item.ALLOW_QUALIFICATION.includes("null")) {
if (
!item.ALLOW_QUALIFICATION ||
item.ALLOW_QUALIFICATION.includes("null")
) {
item.ALLOW_QUALIFICATION = null;
}
});
if (data.statusInfo.APPLY_TYPE === "1" || data.statusInfo.APPLY_TYPE === '3') {
data.dispose = '审核时间';
if (
data.statusInfo.APPLY_TYPE === "1" ||
data.statusInfo.APPLY_TYPE === "3"
) {
data.dispose = "审核时间";
} else {
data.dispose = '确认时间';
data.dispose = "确认时间";
}
};
fnGetData();

View File

@ -743,13 +743,13 @@ const fnHasEmail = async (rule, value, callback) => {
if (value) {
const result = await getVerifyDuplicateEmail({
EMAIL: value,
PHONE: data.form.PHONE
PHONE: data.form.PHONE,
});
if (USER_ID) {
if (result.pd) {
if (result.pd.EMAIL === value && result.pd.PHONE === data.form.PHONE) {
callback();
}else callback(new Error("邮箱重复"))
} else callback(new Error("邮箱重复"));
} else callback();
}
} else {