forked from integrated_whb/integrated_whb_vue
代码格式化
parent
6c6086a63d
commit
328200bfa6
|
@ -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获取运营车辆信息
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
<el-tag v-if="item2.STATUS === '0'">合格</el-tag>
|
||||
<el-tag v-else>不合格</el-tag>
|
||||
</td>
|
||||
<td> {{item2.REMARK}} </td>
|
||||
<td>{{ item2.REMARK }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">检查人</td>
|
||||
|
|
|
@ -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" ? "打回" : "通过"}}详情
|
||||
{{ 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 = '审核时间';
|
||||
}else{
|
||||
data.dispose = '确认时间';
|
||||
if (
|
||||
data.statusInfo.APPLY_TYPE === "1" ||
|
||||
data.statusInfo.APPLY_TYPE === "3"
|
||||
) {
|
||||
data.dispose = "审核时间";
|
||||
} else {
|
||||
data.dispose = "确认时间";
|
||||
}
|
||||
};
|
||||
fnGetData();
|
||||
|
|
|
@ -743,14 +743,14 @@ 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) {
|
||||
if (USER_ID) {
|
||||
if (result.pd) {
|
||||
if (result.pd.EMAIL === value && result.pd.PHONE === data.form.PHONE) {
|
||||
callback();
|
||||
}else callback(new Error("邮箱重复"))
|
||||
}else callback();
|
||||
} else callback(new Error("邮箱重复"));
|
||||
} else callback();
|
||||
}
|
||||
} else {
|
||||
callback();
|
||||
|
|
Loading…
Reference in New Issue