BUG优化 人员类型不显示

dev
xiepeng 2024-05-23 10:33:11 +08:00
parent 8e764eecbb
commit 49038e5d1e
2 changed files with 36 additions and 3 deletions

View File

@ -1,6 +1,24 @@
<template> <template>
<layout-card> <layout-card>
<el-divider content-position="left"> {{data.statusInfo.REVIEW_RESULT === "-1" ? "打回" : "通过"}}详情 </el-divider> <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>
</el-descriptions-item>
<el-descriptions-item label="备注">
{{ data.statusInfo.REVIEW_COMMENTS }}
</el-descriptions-item>
<el-descriptions-item :label="data.dispose">
{{ data.statusInfo.AUDIT_DATE }}
</el-descriptions-item>
</el-descriptions>
</div>
<el-divider content-position="left">基本信息</el-divider> <el-divider content-position="left">基本信息</el-divider>
<el-descriptions :column="2" border> <el-descriptions :column="2" border>
<el-descriptions-item label="姓名"> <el-descriptions-item label="姓名">
@ -172,12 +190,13 @@ const data = reactive({
info: {}, info: {},
certificateList: [], certificateList: [],
statusInfo: {}, statusInfo: {},
dispose: ""
}); });
const fnGetData = async () => { const fnGetData = async () => {
if (!USER_ID) return; if (!USER_ID) return;
const resData = await getPractitionerInfo({ USER_ID }); const resData = await getPractitionerInfo({ USER_ID });
data.info = resData.pd; data.info = resData.pd;
data.statusInfo = resData.statusInfo data.statusInfo = resData.statusInfo;
resData.certificateList.forEach((item) => { resData.certificateList.forEach((item) => {
item.ID_PHOTO_FRONT = FILE_URL + item.ID_PHOTO_FRONT; item.ID_PHOTO_FRONT = FILE_URL + item.ID_PHOTO_FRONT;
if (item.ID_PHOTO_BACK) { if (item.ID_PHOTO_BACK) {
@ -197,7 +216,12 @@ const fnGetData = async () => {
if(!item.ALLOW_QUALIFICATION || item.ALLOW_QUALIFICATION.includes("null")) { if(!item.ALLOW_QUALIFICATION || item.ALLOW_QUALIFICATION.includes("null")) {
item.ALLOW_QUALIFICATION = null; item.ALLOW_QUALIFICATION = null;
} }
}) });
if (data.statusInfo.APPLY_TYPE === "1" || data.statusInfo.APPLY_TYPE === '3') {
data.dispose = '审核时间';
}else{
data.dispose = '确认时间';
}
}; };
fnGetData(); fnGetData();
</script> </script>

View File

@ -950,6 +950,7 @@ const fnGetData = async () => {
if (!USER_ID) return; if (!USER_ID) return;
const resData = await getPractitionerForEdit({ USER_ID }); const resData = await getPractitionerForEdit({ USER_ID });
const form = resData.pd; const form = resData.pd;
console.log(resData);
form.PASSWORD = "Aa@123456"; form.PASSWORD = "Aa@123456";
form.periodStr = resData.periodStr; form.periodStr = resData.periodStr;
form.ISSTUDENT = resData.pd.ISSTUDENT.toString(); form.ISSTUDENT = resData.pd.ISSTUDENT.toString();
@ -1011,6 +1012,13 @@ const fnGetData = async () => {
} }
}); });
data.form = { ...data.form, ...form }; data.form = { ...data.form, ...form };
if(!data.form.DUTIES_NAME || !data.form.DUTIES_NAME === '') {
data.form.DUTIES = '';
}
if(!data.form.TITLE_NAME || !data.form.TITLE_NAME === '') {
data.form.TITLE = '';
}
console.log(data.form);
}; };
fnGetData(); fnGetData();
const fnGetUserRole = async () => { const fnGetUserRole = async () => {
@ -1050,6 +1058,7 @@ const fnChangeSchedulingTwo = () => {
const fnGetUserCurrentShiftList = async (SHIFTWORKRULES_ID) => { const fnGetUserCurrentShiftList = async (SHIFTWORKRULES_ID) => {
const resData = await getUserCurrentShiftList({ SHIFTWORKRULES_ID }); const resData = await getUserCurrentShiftList({ SHIFTWORKRULES_ID });
data.periodList = resData.varList; data.periodList = resData.varList;
console.log(data.periodList);
}; };
const fnChangePeriod = (event) => { const fnChangePeriod = (event) => {
for (let i = 0; i < data.periodList.length; i++) { for (let i = 0; i < data.periodList.length; i++) {