相关页面bug修改

liujun-2024-06-06
WenShiJun 2024-07-01 18:04:23 +08:00
parent 4d1e6a7cf0
commit 58e1c1cc74
4 changed files with 230 additions and 145 deletions

View File

@ -23,9 +23,17 @@
</u-form-item> </u-form-item>
<u-form-item label="身份证照片(正反面)" prop="userCardIDPhotoFile" borderBottom required <u-form-item label="身份证照片(正反面)" prop="userCardIDPhotoFile" borderBottom required
class="form-item-block"> class="form-item-block">
<u-upload class="mt-10" :fileList="form.userCardIDPhotoFile" @afterRead="fnAttIdPhotoAdd" <!-- <u-upload class="mt-10" :fileList="form.userCardIDPhotoFile" @afterRead="fnAttIdPhotoAdd"-->
@delete="fnAttIdPhotoDelete" multiple :maxCount="2" previewFullImage> <!-- @delete="fnAttIdPhotoDelete" multiple :maxCount="2" previewFullImage>-->
</u-upload> <!-- </u-upload>-->
<view>
<u-upload class="mt-10" :fileList="form.userCardIDPhotoFile" @afterRead="fnAttIdPhotoAdd"
@delete="fnAttIdPhotoDelete" multiple :maxCount="2" previewFullImage>
</u-upload>
<view class="tip">
温馨提示用户需上传身份证正反面身份证照片数量需2才能进行人员培训
</view>
</view>
</u-form-item> </u-form-item>
<u-form-item label="民族" prop="NATIONALITY" borderBottom required <u-form-item label="民族" prop="NATIONALITY" borderBottom required
@click="singleChoiceClick('NATIONALITY')"> @click="singleChoiceClick('NATIONALITY')">
@ -1034,5 +1042,9 @@
</script> </script>
<style scoped> <style scoped>
.tip {
color: red;
font-size: 12px;
margin-top: 5px;
}
</style> </style>

View File

@ -33,11 +33,20 @@
<u--input v-model="form.CARD_ID" border="none" @blur="fnCardIdDisassembly" inputAlign="right"> <u--input v-model="form.CARD_ID" border="none" @blur="fnCardIdDisassembly" inputAlign="right">
</u--input> </u--input>
</u-form-item> </u-form-item>
<u-form-item label="身份证照片(录入身份证正、反彩色照片)" prop="userCardIDFileList" borderBottom required <!-- <u-form-item label="身份证照片(录入身份证正、反彩色照片)" prop="userCardIDFileList" borderBottom required-->
class="form-item-block"> <!-- class="form-item-block">-->
<u-upload class="mt-10" :fileList="form.userCardIDFileList" @afterRead="fnUserCardIDAttachmentsRead" <!-- <u-upload class="mt-10" :fileList="form.userCardIDFileList" @afterRead="fnUserCardIDAttachmentsRead"-->
@delete="fnInsuranceAttachmentsDelete" multiple :maxCount="2" previewFullImage></u-upload> <!-- @delete="fnInsuranceAttachmentsDelete" multiple :maxCount="2" previewFullImage></u-upload>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="身份证照片(录入身份证正、反彩色照片)" prop="userCardIDFileList" borderBottom required class="form-item-block">
<view>
<u-upload class="mt-10" :fileList="form.userCardIDFileList" @afterRead="fnUserCardIDAttachmentsRead"
@delete="fnUserCardIDAttachmentsDelete" multiple :maxCount="2" previewFullImage></u-upload>
<view class="tip">
温馨提示用户需上传身份证正反面身份证照片数量需2才能进行人员培训
</view>
</view>
</u-form-item>
<u-form-item label="民族" prop="NATIONALITY_NAME" borderBottom required @click="fnShowMizuOfEducation"> <u-form-item label="民族" prop="NATIONALITY_NAME" borderBottom required @click="fnShowMizuOfEducation">
<u--input v-model="form.NATIONALITY_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.NATIONALITY_NAME" border="none" disabled disabledColor="#ffffff"
@ -59,12 +68,12 @@
<u--input v-model="form.POLITICAL_TIME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.POLITICAL_TIME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="户口所在地" prop="HKLOCAL" borderBottom required class="form-item-block"> <u-form-item label="户口所在地" prop="HKLOCAL" borderBottom class="form-item-block">
<u--textarea v-model="form.HKLOCAL" border="none" autoHeight></u--textarea> <u--textarea v-model="form.HKLOCAL" border="none" autoHeight></u--textarea>
</u-form-item> </u-form-item>
<u-form-item label="现住址" prop="ADDRESS" borderBottom required class="form-item-block"> <u-form-item label="现住址" prop="ADDRESS" borderBottom class="form-item-block">
<u--textarea v-model="form.ADDRESS" border="none" autoHeight></u--textarea> <u--textarea v-model="form.ADDRESS" border="none" autoHeight></u--textarea>
</u-form-item> </u-form-item>
<u-form-item label="联系电话" prop="PHONE" borderBottom required> <u-form-item label="联系电话" prop="PHONE" borderBottom required>
<u--input v-model="form.PHONE" border="none" :disabled="true" inputAlign="right"></u--input> <u--input v-model="form.PHONE" border="none" :disabled="true" inputAlign="right"></u--input>
</u-form-item> </u-form-item>
@ -78,22 +87,22 @@
<!-- &lt;!&ndash; 20230612改成输入框 &ndash;&gt;--> <!-- &lt;!&ndash; 20230612改成输入框 &ndash;&gt;-->
<!-- <u&#45;&#45;input v-model="form.PERSON_WORK_TYPE" border="none" disabledColor="#ffffff" inputAlign="right"></u&#45;&#45;input>--> <!-- <u&#45;&#45;input v-model="form.PERSON_WORK_TYPE" border="none" disabledColor="#ffffff" inputAlign="right"></u&#45;&#45;input>-->
<!-- </u-form-item>--> <!-- </u-form-item>-->
<u-form-item label="本企业从业开始日期" prop="CORP_START_DATE" borderBottom required <!-- <u-form-item label="本企业从业开始日期" prop="CORP_START_DATE" borderBottom required-->
@click="fnShowEnterpriseStartingDateOfEmployment"> <!-- @click="fnShowEnterpriseStartingDateOfEmployment">-->
<u--input v-model="form.CORP_START_DATE" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.CORP_START_DATE" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<!-- @click="fnShowPost" --> <!-- @click="fnShowPost" -->
<u-form-item label="岗位名称" prop="POST_ID" borderBottom required> <u-form-item label="岗位名称" prop="POST_ID" borderBottom required>
<!-- 20230612改成输入框 --> <!-- 20230612改成输入框 -->
<u--input v-model="form.POST_ID" border="none" disabledColor="#ffffff" inputAlign="right"> <u--input v-model="form.POST_ID" border="none" disabledColor="#ffffff" inputAlign="right">
</u--input> </u--input>
</u-form-item> </u-form-item>
<u-form-item label="本岗位从业开始日期" prop="ENTRY_DATE" borderBottom required <!-- <u-form-item label="本岗位从业开始日期" prop="ENTRY_DATE" borderBottom required-->
@click="fnShowPostStartingDateOfEmployment"> <!-- @click="fnShowPostStartingDateOfEmployment">-->
<u--input v-model="form.ENTRY_DATE" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.ENTRY_DATE" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="是否缴纳社保" prop="IS_SOCIAL_NAME" borderBottom required <u-form-item label="是否缴纳社保" prop="IS_SOCIAL_NAME" borderBottom required
@click="fnShowIsSocial"> @click="fnShowIsSocial">
<u--input v-model="form.IS_SOCIAL_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_SOCIAL_NAME" border="none" disabled disabledColor="#ffffff"
@ -106,6 +115,11 @@
<u-upload class="mt-10" :fileList="form.socialFileList" @afterRead="fnSocialAttachmentsRead" <u-upload class="mt-10" :fileList="form.socialFileList" @afterRead="fnSocialAttachmentsRead"
@delete="fnSocialAttachmentsDelete" multiple :maxCount="2" previewFullImage></u-upload> @delete="fnSocialAttachmentsDelete" multiple :maxCount="2" previewFullImage></u-upload>
</u-form-item> </u-form-item>
<u-form-item label="是否缴纳保险" prop="IS_BF_NAME" borderBottom required
@click="fnShowInjuryInsurance">
<u--input v-model="form.IS_BF_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input>
</u-form-item>
<u-form-item label="是否签署劳动合同" prop="IS_SIGN_LABOR_NAME" borderBottom required <u-form-item label="是否签署劳动合同" prop="IS_SIGN_LABOR_NAME" borderBottom required
@click="fnShowLaborContract"> @click="fnShowLaborContract">
<u--input v-model="form.IS_SIGN_LABOR_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_SIGN_LABOR_NAME" border="none" disabled disabledColor="#ffffff"
@ -153,6 +167,11 @@
<u--input v-model="form.IS_LEVEL_THREE_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_LEVEL_THREE_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="三级安全培训图片" prop="safetytraining" borderBottom required v-if="form.IS_LEVEL_THREE==='1'"
class="form-item-block">
<u-upload class="mt-10" :fileList="form.safetytraining" @afterRead="fnSafetyTrainingAfterRead2"
@delete="fnSafetyTrainingAttachmentsDelete" multiple :maxCount="4" previewFullImage></u-upload>
</u-form-item>
<!-- <u-form-item label="安全告知培训是否合格" prop="IS_SAFETY_TELL_NAME" borderBottom required <!-- <u-form-item label="安全告知培训是否合格" prop="IS_SAFETY_TELL_NAME" borderBottom required
@click="fnShowAdmissionSafetyNotification"> @click="fnShowAdmissionSafetyNotification">
<u--input v-model="form.IS_SAFETY_TELL_NAME" border="none" disabled <u--input v-model="form.IS_SAFETY_TELL_NAME" border="none" disabled
@ -163,16 +182,16 @@
@click="fnShowSafetyTimeTraining"> @click="fnShowSafetyTimeTraining">
<u--input v-model="form.IS_SAFETY_TIME" border="none" disabled disabledColor="#ffffff" inputAlign="right"></u--input> <u--input v-model="form.IS_SAFETY_TIME" border="none" disabled disabledColor="#ffffff" inputAlign="right"></u--input>
</u-form-item> --> </u-form-item> -->
<u-form-item label="身体状况是否适应本岗位工作" prop="IS_BODY_ADAPT_NAME" borderBottom required <!-- <u-form-item label="身体状况是否适应本岗位工作" prop="IS_BODY_ADAPT_NAME" borderBottom required-->
@click="fnShowAdaptToTheJobPosition"> <!-- @click="fnShowAdaptToTheJobPosition">-->
<u--input v-model="form.IS_BODY_ADAPT_NAME" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.IS_BODY_ADAPT_NAME" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="是否特殊工种" prop="IS_SPECIAL_JOB_NAME" borderBottom required <!-- <u-form-item label="是否特殊工种" prop="IS_SPECIAL_JOB_NAME" borderBottom required-->
@click="fnShowSpecialTypeOfWork"> <!-- @click="fnShowSpecialTypeOfWork">-->
<u--input v-model="form.IS_SPECIAL_JOB_NAME" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.IS_SPECIAL_JOB_NAME" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="是否流动人员" prop="ISFLOW_NAME" borderBottom required <u-form-item label="是否流动人员" prop="ISFLOW_NAME" borderBottom required
@click="fnShowFloatingPersonnel"> @click="fnShowFloatingPersonnel">
<u--input v-model="form.ISFLOW_NAME" border="none" disabled disabledColor="#ffffff" inputAlign="right"></u--input> <u--input v-model="form.ISFLOW_NAME" border="none" disabled disabledColor="#ffffff" inputAlign="right"></u--input>
@ -194,9 +213,12 @@
<u-picker :show="showLaborContract" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name" <u-picker :show="showLaborContract" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name"
@confirm="fnLaborContractConfirm" @cancel="fnShowLaborContract"></u-picker> @confirm="fnLaborContractConfirm" @cancel="fnShowLaborContract"></u-picker>
<u-picker :show="showEmploymentInjuryInsurance" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" <u-picker :show="showInsurance" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]"
keyName="name" @confirm="fnEmploymentInjuryInsuranceConfirm" @cancel="fnShowEmploymentInjuryInsurance"> keyName="name" @confirm="fnEInsuranceConfirm" @cancel="fnShowEmploymentInjuryInsurance">
</u-picker> </u-picker>
<u-picker :show="showEmploymentInjuryInsurance" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]"
keyName="name" @confirm="fnEmploymentInjuryInsuranceConfirm" @cancel="fnShowEmploymentInjuryInsurance">
</u-picker>
<u-picker :show="showEmploymentPayInsurance" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" <u-picker :show="showEmploymentPayInsurance" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]"
keyName="name" @confirm="fnEmploymentPayInsuranceConfirm" @cancel="fnShowEmploymentPayInsurance"> keyName="name" @confirm="fnEmploymentPayInsuranceConfirm" @cancel="fnShowEmploymentPayInsurance">
</u-picker> </u-picker>
@ -282,6 +304,7 @@
showIsSocial: false, showIsSocial: false,
showLaborContract: false, showLaborContract: false,
showEmploymentInjuryInsurance: false, showEmploymentInjuryInsurance: false,
showInsurance: false,
showEmploymentPayInsurance: false, showEmploymentPayInsurance: false,
showSafetyTraining: false, showSafetyTraining: false,
showAdmissionSafetyNotification: false, showAdmissionSafetyNotification: false,
@ -324,15 +347,18 @@
contractFile: [], contractFile: [],
ISPAY: '', ISPAY: '',
ISPAY_NAME: '', ISPAY_NAME: '',
IS_INJURIES_PAY: '', IS_BF: '',
IS_BF_NAME: '',
IS_INJURIES_PAY: '',
IS_INJURIES_PAY_NAME: '', IS_INJURIES_PAY_NAME: '',
safetytraining: [],
insuranceFile: [], insuranceFile: [],
IS_LEVEL_THREE: '', IS_LEVEL_THREE: '',
IS_LEVEL_THREE_NAME: '', IS_LEVEL_THREE_NAME: '',
IS_SAFETY_TELL: '', IS_SAFETY_TELL: '',
IS_SAFETY_TELL_NAME: '', IS_SAFETY_TELL_NAME: '',
IS_BODY_ADAPT: '', IS_BODY_ADAPT: '',
IS_BODY_ADAPT_NAME: '', // IS_BODY_ADAPT_NAME: '',
IS_SPECIAL_JOB: '', IS_SPECIAL_JOB: '',
IS_SPECIAL_JOB_NAME: '', IS_SPECIAL_JOB_NAME: '',
ISFLOW: '', ISFLOW: '',
@ -389,16 +415,16 @@
message: '请上传身份证照片', message: '请上传身份证照片',
trigger: ['change'] trigger: ['change']
}, },
HKLOCAL: { // HKLOCAL: {
required: true, // required: true,
message: '请填写户口所在地', // message: '',
trigger: ['blur'] // trigger: ['blur']
}, // },
ADDRESS: { // ADDRESS: {
required: true, // required: true,
message: '请填写现住址', // message: '',
trigger: ['blur'] // trigger: ['blur']
}, // },
PHONE: [{ PHONE: [{
required: true, required: true,
message: '请填写联系电话', message: '请填写联系电话',
@ -442,21 +468,21 @@
// message: '', // message: '',
// trigger: ['change'] // trigger: ['change']
// }, // },
CORP_START_DATE: { // CORP_START_DATE: {
required: true, // required: true,
message: '请选择本企业从业开始日期', // message: '',
trigger: ['change'] // trigger: ['change']
}, // },
POST_ID: { POST_ID: {
required: true, required: true,
message: '请选择岗位名称', message: '请选择岗位名称',
trigger: ['blur'] trigger: ['blur']
}, },
ENTRY_DATE: { // ENTRY_DATE: {
required: true, // required: true,
message: '请选择本岗位从业开始日期', // message: '',
trigger: ['change'] // trigger: ['change']
}, // },
SOCIAL_NUMBER: { SOCIAL_NUMBER: {
required: true, required: true,
message: '请填写社会保障号码', message: '请填写社会保障号码',
@ -484,7 +510,11 @@
message: '请上传劳动合同附件', message: '请上传劳动合同附件',
trigger: ['change'] trigger: ['change']
}, },
IS_INJURIES_PAY_NAME: { IS_BF_NAME: {
required: true,
message: '请选择是否缴纳保险',
trigger: ['change']
},IS_INJURIES_PAY_NAME: {
required: true, required: true,
message: '请选择是否按期缴纳工伤保险', message: '请选择是否按期缴纳工伤保险',
trigger: ['change'] trigger: ['change']
@ -511,6 +541,12 @@
message: '请上传保险附件', message: '请上传保险附件',
trigger: ['change'] trigger: ['change']
}, },
safetytraining: {
type: 'array',
required: true,
message: '请上传三方安全培训图片',
trigger: ['change']
},
IS_LEVEL_THREE_NAME: { IS_LEVEL_THREE_NAME: {
required: true, required: true,
message: '请选择是否参加三级安全培训', message: '请选择是否参加三级安全培训',
@ -526,16 +562,16 @@
message: '请选择安全告知培训合格日期', message: '请选择安全告知培训合格日期',
trigger: ['change'] trigger: ['change']
}, },
IS_BODY_ADAPT_NAME: { // IS_BODY_ADAPT_NAME: {
required: true, // required: true,
message: '请选择身体状况是否适应本岗位工作', // message: '',
trigger: ['change'] // trigger: ['change']
}, // },
IS_SPECIAL_JOB_NAME: { // IS_SPECIAL_JOB_NAME: {
required: true, // required: true,
message: '请选择是否特殊工种', // message: '',
trigger: ['change'] // trigger: ['change']
}, // },
ISFLOW_NAME: { ISFLOW_NAME: {
required: true, required: true,
message: '请选择是否流动人员', message: '请选择是否流动人员',
@ -593,7 +629,11 @@
} else if (this.form.IS_SIGN_LABOR === '1') { } else if (this.form.IS_SIGN_LABOR === '1') {
this.form.IS_SIGN_LABOR_NAME = '是' this.form.IS_SIGN_LABOR_NAME = '是'
} }
if (this.form.IS_INJURIES_PAY === '0') { if (this.form.IS_BF === '0') {
this.form.IS_BF_NAME = '否'
} else if (this.form.IS_BF === '1') {
this.form.IS_BF_NAME = '是'
}if (this.form.IS_INJURIES_PAY === '0') {
this.form.IS_INJURIES_PAY_NAME = '否' this.form.IS_INJURIES_PAY_NAME = '否'
} else if (this.form.IS_INJURIES_PAY === '1') { } else if (this.form.IS_INJURIES_PAY === '1') {
this.form.IS_INJURIES_PAY_NAME = '是' this.form.IS_INJURIES_PAY_NAME = '是'
@ -608,16 +648,16 @@
} else if (this.form.IS_SAFETY_TELL === '1') { } else if (this.form.IS_SAFETY_TELL === '1') {
this.form.IS_SAFETY_TELL_NAME = '是' this.form.IS_SAFETY_TELL_NAME = '是'
} }
if (this.form.IS_BODY_ADAPT === '0') { // if (this.form.IS_BODY_ADAPT === '0') {
this.form.IS_BODY_ADAPT_NAME = '否' // this.form.IS_BODY_ADAPT_NAME = ''
} else if (this.form.IS_BODY_ADAPT === '1') { // } else if (this.form.IS_BODY_ADAPT === '1') {
this.form.IS_BODY_ADAPT_NAME = '是' // this.form.IS_BODY_ADAPT_NAME = ''
} // }
if (this.form.IS_SPECIAL_JOB === '0') { // if (this.form.IS_SPECIAL_JOB === '0') {
this.form.IS_SPECIAL_JOB_NAME = '否' // this.form.IS_SPECIAL_JOB_NAME = ''
} else if (this.form.IS_SPECIAL_JOB === '1') { // } else if (this.form.IS_SPECIAL_JOB === '1') {
this.form.IS_SPECIAL_JOB_NAME = '是' // this.form.IS_SPECIAL_JOB_NAME = ''
} // }
if (this.form.ISFLOW === '0') { if (this.form.ISFLOW === '0') {
this.form.ISFLOW_NAME = '否' this.form.ISFLOW_NAME = '否'
} else if (this.form.ISFLOW === '1') { } else if (this.form.ISFLOW === '1') {
@ -643,14 +683,14 @@
showCount: 9999, showCount: 9999,
currentPage: 1, currentPage: 1,
}); });
this.certificateInformationLength = resData.varList.length // this.certificateInformationLength = resData.varList.length
if (resData.varList.length > 0) { // if (resData.varList.length > 0) {
this.form.IS_SPECIAL_JOB = '1' // this.form.IS_SPECIAL_JOB = '1'
this.form.IS_SPECIAL_JOB_NAME = '是' // this.form.IS_SPECIAL_JOB_NAME = ''
} else { // } else {
this.form.IS_SPECIAL_JOB = '0' // this.form.IS_SPECIAL_JOB = '0'
this.form.IS_SPECIAL_JOB_NAME = '否' // this.form.IS_SPECIAL_JOB_NAME = ''
} // }
}, },
async fnIDCardDeduplication(CARD_ID = this.form.CARD_ID) { async fnIDCardDeduplication(CARD_ID = this.form.CARD_ID) {
let resData = await getIDCardDeduplication({ let resData = await getIDCardDeduplication({
@ -782,9 +822,17 @@
fnShowEmploymentInjuryInsurance() { fnShowEmploymentInjuryInsurance() {
this.showEmploymentInjuryInsurance = !this.showEmploymentInjuryInsurance this.showEmploymentInjuryInsurance = !this.showEmploymentInjuryInsurance
}, },
fnShowInjuryInsurance() {
this.showInsurance = !this.showInsurance
},
fnShowEmploymentPayInsurance() { fnShowEmploymentPayInsurance() {
this.showEmploymentPayInsurance = !this.showEmploymentPayInsurance this.showEmploymentPayInsurance = !this.showEmploymentPayInsurance
}, },
fnEInsuranceConfirm(e) {
this.form.IS_BF = e.value[0].id
this.form.IS_BF_NAME = e.value[0].name
this.fnShowInjuryInsurance()
},
fnEmploymentInjuryInsuranceConfirm(e) { fnEmploymentInjuryInsuranceConfirm(e) {
this.form.IS_INJURIES_PAY = e.value[0].id this.form.IS_INJURIES_PAY = e.value[0].id
this.form.IS_INJURIES_PAY_NAME = e.value[0].name this.form.IS_INJURIES_PAY_NAME = e.value[0].name
@ -812,6 +860,14 @@
fnAttachmentToLaborContractDelete(event) { fnAttachmentToLaborContractDelete(event) {
this.form.contractFile.splice(event.index, 1) this.form.contractFile.splice(event.index, 1)
}, },
fnSafetyTrainingAfterRead2(event) {
for (let i = 0; i < event.file.length; i++) {
this.form.safetytraining.push(event.file[i])
}
},
fnSafetyTrainingAttachmentsDelete(event) {
this.form.safetytraining.splice(event.index, 1)
},
fnInsuranceAttachmentsAfterRead2(event) { fnInsuranceAttachmentsAfterRead2(event) {
for (let i = 0; i < event.file.length; i++) { for (let i = 0; i < event.file.length; i++) {
this.form.insuranceFile.push(event.file[i]) this.form.insuranceFile.push(event.file[i])
@ -909,33 +965,33 @@
fnInjuriesPayTiemAttachmentsDelete(event) { fnInjuriesPayTiemAttachmentsDelete(event) {
this.form.injuriesPayTiemFile.splice(event.index, 1) this.form.injuriesPayTiemFile.splice(event.index, 1)
}, },
fnAdaptToTheJobPositionConfirm(e) { // fnAdaptToTheJobPositionConfirm(e) {
this.form.IS_BODY_ADAPT = e.value[0].id // this.form.IS_BODY_ADAPT = e.value[0].id
this.form.IS_BODY_ADAPT_NAME = e.value[0].name // this.form.IS_BODY_ADAPT_NAME = e.value[0].name
this.fnShowAdaptToTheJobPosition() // this.fnShowAdaptToTheJobPosition()
}, // },
fnShowSpecialTypeOfWork() { fnShowSpecialTypeOfWork() {
this.showSpecialTypeOfWork = !this.showSpecialTypeOfWork this.showSpecialTypeOfWork = !this.showSpecialTypeOfWork
}, },
fnSpecialTypeOfWorkConfirm(e) { // fnSpecialTypeOfWorkConfirm(e) {
this.form.IS_SPECIAL_JOB = e.value[0].id // this.form.IS_SPECIAL_JOB = e.value[0].id
this.form.IS_SPECIAL_JOB_NAME = e.value[0].name // this.form.IS_SPECIAL_JOB_NAME = e.value[0].name
this.fnShowSpecialTypeOfWork() // this.fnShowSpecialTypeOfWork()
if (e.value[0].id === '1' && this.certificateInformationLength === 0) { // if (e.value[0].id === '1' && this.certificateInformationLength === 0) {
uni.showModal({ // uni.showModal({
title: '提示', // title: '',
content: '当前没有证书信息,请完善证书信息', // content: '',
showCancel: false, // showCancel: false,
success: (res) => { // success: (res) => {
if (res.confirm) { // if (res.confirm) {
uni.$u.route({ // uni.$u.route({
url: '/pages/certificate_information/index', // url: '/pages/certificate_information/index',
}) // })
} // }
} // }
}) // })
} // }
}, // },
fnShowFloatingPersonnel() { fnShowFloatingPersonnel() {
this.showFloatingPersonnel = !this.showFloatingPersonnel this.showFloatingPersonnel = !this.showFloatingPersonnel
}, },
@ -997,7 +1053,18 @@
} }
}) })
} }
for (let i = 0; i < this.form.insuranceFile.length; i++) { for (let i = 0; i < this.form.safetytraining.length; i++) {
await setUploadAttachments({
filePath: this.form.safetytraining[i].url,
name: 'files',
formData: {
TYPE: '19',
FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
CORPINFO_ID: this.CORPINFO_ID,
}
})
}
for (let i = 0; i < this.form.insuranceFile.length; i++) {
await setUploadAttachments({ await setUploadAttachments({
filePath: this.form.insuranceFile[i].url, filePath: this.form.insuranceFile[i].url,
name: 'files', name: 'files',
@ -1063,5 +1130,9 @@
</script> </script>
<style scoped> <style scoped>
.tip {
color: red;
font-size: 12px;
margin-top: 5px;
}
</style> </style>

View File

@ -6,16 +6,16 @@
<u--input v-model="form.POST_ID" border="none" disabledColor="#ffffff" inputAlign="right"> <u--input v-model="form.POST_ID" border="none" disabledColor="#ffffff" inputAlign="right">
</u--input> </u--input>
</u-form-item> </u-form-item>
<u-form-item label="本企业从业开始日期" prop="CORP_START_DATE" borderBottom required <!-- <u-form-item label="本企业从业开始日期" prop="CORP_START_DATE" borderBottom required-->
@click="fnShowDatePicke('CORP_START_DATE')"> <!-- @click="fnShowDatePicke('CORP_START_DATE')">-->
<u--input v-model="form.CORP_START_DATE" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.CORP_START_DATE" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="本岗位从业开始日期" prop="ENTRY_DATE" borderBottom required <!-- <u-form-item label="本岗位从业开始日期" prop="ENTRY_DATE" borderBottom required-->
@click="fnShowDatePicke('ENTRY_DATE')"> <!-- @click="fnShowDatePicke('ENTRY_DATE')">-->
<u--input v-model="form.ENTRY_DATE" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.ENTRY_DATE" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="是否签署劳动合同" prop="IS_SIGN_LABOR_NAME" borderBottom required <u-form-item label="是否签署劳动合同" prop="IS_SIGN_LABOR_NAME" borderBottom required
@click="fnShowLaborContract"> @click="fnShowLaborContract">
<u--input v-model="form.IS_SIGN_LABOR_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_SIGN_LABOR_NAME" border="none" disabled disabledColor="#ffffff"

View File

@ -4,7 +4,7 @@
<view class="card"> <view class="card">
<view class="text_content"> <view class="text_content">
<view class="title title_left">基础信息</view> <view class="title title_left">基础信息</view>
<view class="title_right" @click="fnGoEditUserInfo"></view> <!-- <view class="title_right" @click="fnGoEditUserInfo"></view>-->
</view> </view>
<u-cell-group> <u-cell-group>
<u-cell title="照片"> <u-cell title="照片">
@ -46,8 +46,8 @@
<u-cell title="婚姻状况" :value="info.MARITALSTATUS_NAME"></u-cell> <u-cell title="婚姻状况" :value="info.MARITALSTATUS_NAME"></u-cell>
<u-cell title="政治面貌" :value="info.POLITICAL_STATUS_NAME"></u-cell> <u-cell title="政治面貌" :value="info.POLITICAL_STATUS_NAME"></u-cell>
<u-cell v-if="info.POLITICAL_STATUS == 'zhonggongdangyuan'" title="入党时间" :value="info.POLITICAL_TIME"></u-cell> <u-cell v-if="info.POLITICAL_STATUS == 'zhonggongdangyuan'" title="入党时间" :value="info.POLITICAL_TIME"></u-cell>
<u-cell title="社会保障号" :value="info.SOCIAL_NUMBER"></u-cell> <u-cell title="社会保障号" :value="info.SOCIAL_NUMBER"></u-cell>
<u-cell title="社会保障卡照片"> <u-cell title="社会保障卡照片">
<template #value> <template #value>
@ -66,13 +66,14 @@
<view class="card"> <view class="card">
<view class="text_content"> <view class="text_content">
<view class="title title_left">企业就职信息</view> <view class="title title_left">企业就职信息</view>
<view v-if = "info.DEPART_STATE == '0'" class="title_right" @click="goEdit"></view> <!-- <view v-if = "info.DEPART_STATE == '0'" class="title_right" @click="goEdit"></view>-->
<view v-else class="title_right_red">已离职</view> <!-- <view v-else class="title_right_red">已离职</view>-->
<view class="title_right_red" v-if="info.DEPART_STATE != '0'"></view>
</view> </view>
<u-cell-group> <u-cell-group>
<u-cell title="岗位名称" :value="info.POST_ID"></u-cell> <u-cell title="岗位名称" :value="info.POST_ID"></u-cell>
<u-cell title="本企业从业开始日期" :value="info.CORP_START_DATE"></u-cell> <!-- <u-cell title="本企业从业开始日期" :value="info.CORP_START_DATE"></u-cell>-->
<u-cell title="本岗位从业开始日期" :value="info.ENTRY_DATE"></u-cell> <!-- <u-cell title="本岗位从业开始日期" :value="info.ENTRY_DATE"></u-cell>-->
<u-cell title="是否签署劳动合同" :value="info.IS_SIGN_LABOR == '0' ? '否' : '是'"></u-cell> <u-cell title="是否签署劳动合同" :value="info.IS_SIGN_LABOR == '0' ? '否' : '是'"></u-cell>
<u-cell title="劳动合同附件" v-show="info.IS_SIGN_LABOR === '1'"> <u-cell title="劳动合同附件" v-show="info.IS_SIGN_LABOR === '1'">
<template #value> <template #value>
@ -148,9 +149,9 @@
onLoad(query) { onLoad(query) {
this.EMPLOYMENT_APPLY_MANAGEMENT_ID = query.EMPLOYMENT_APPLY_MANAGEMENT_ID this.EMPLOYMENT_APPLY_MANAGEMENT_ID = query.EMPLOYMENT_APPLY_MANAGEMENT_ID
this.CORPINFO_ID = query.CORPINFO_ID this.CORPINFO_ID = query.CORPINFO_ID
if (query.DEPART_STATE != '0') { // if (query.DEPART_STATE != '0') {
this.DEPART_STATE = query.DEPART_STATE // this.DEPART_STATE = query.DEPART_STATE
} // }
this.fnGetData() this.fnGetData()
}, },
computed: { computed: {
@ -164,16 +165,16 @@
url: '/pages/mine/information/update' url: '/pages/mine/information/update'
}) })
}, },
goEdit() { // goEdit() {
uni.$u.route({ // uni.$u.route({
url: '/pages/related_party_units/edit', // url: '/pages/related_party_units/edit',
params: { // params: {
EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID, // EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID,
CORPINFO_ID: this.CORPINFO_ID, // CORPINFO_ID: this.CORPINFO_ID,
DEPART_STATE: this.DEPART_STATE // DEPART_STATE: this.DEPART_STATE
} // }
}) // })
}, // },
reloadx() { reloadx() {
this.contractFile = [] this.contractFile = []
this.insuranceFile = [] this.insuranceFile = []
@ -217,6 +218,7 @@
} }
if(resData.userPhotoFile && resData.userPhotoFile.length>0){ if(resData.userPhotoFile && resData.userPhotoFile.length>0){
this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH) this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH)
console.log(this.info.userPhoto)
} }
}, },