恢复商业险、保险信息

pet_li_6.6
liujun 2024-02-29 17:53:59 +08:00
parent 92455dc009
commit 49d05552e1
1 changed files with 179 additions and 62 deletions

View File

@ -234,70 +234,160 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-row>
<el-form-item label="岗位名称(工种)" prop="POST_ID" class="input-width"> <el-col :span="8">
<el-input v-model="form.POST_ID" placeholder="这里输入岗位名称(工种)..."/> <el-form-item label="是否签订劳动合同" prop="IS_SIGN_LABOR">
</el-form-item> <el-radio-group v-model="form.IS_SIGN_LABOR" @change="form.contractFileList = []">
</el-col> <el-radio v-model="form.IS_SIGN_LABOR" label="1"></el-radio>
</el-row> <el-radio v-model="form.IS_SIGN_LABOR" label="0"></el-radio>
<el-row> </el-radio-group>
<el-col :span="12"> </el-form-item>
<el-form-item label="是否参加三级安全培训" prop="IS_LEVEL_THREE" > <el-form-item v-if="form.IS_SIGN_LABOR === '1'" label="合同图片" prop="contractFileList">
<el-radio-group v-model="form.IS_LEVEL_THREE"> <el-upload
<el-radio v-model="form.IS_LEVEL_THREE" label="1"></el-radio> ref="contractFileList"
<el-radio v-model="form.IS_LEVEL_THREE" label="0"></el-radio> :file-list="form.contractFileList"
</el-radio-group> :limit="4"
</el-form-item> :class="{hide:hideContractUpload}"
<el-form-item v-if="form.IS_LEVEL_THREE === '1'" label="三级安全培训照片" prop="photosOfLevel" > :auto-upload="false"
<el-upload :on-remove="handleContractFileRemove"
ref="photosOfLevel" :on-change="handleContractFileChange"
:file-list="form.photosOfLevel" multiple
:multiple="false" action="#"
:limit="5" accept=".jpg,.jpeg,.png"
:class="{hide:photosOfLevel}" list-type="picture-card">
:auto-upload="false" <i class="el-icon-plus" />
:on-remove="handleLevelPhotoRemove" </el-upload>
:on-change="handleLevelPhotoChangeIMG" </el-form-item>
action="#" </el-col>
accept=".jpg,.jpeg,.png" <el-col :span="8">
list-type="picture-card"> <el-form-item label="是否缴纳商业保险" prop="ISPAY" @change="form.insuranceFileList = []">
<i class="el-icon-plus" /> <el-radio-group v-model="form.ISPAY">
</el-upload> <el-radio v-model="form.ISPAY" label="1"></el-radio>
</el-form-item> <el-radio v-model="form.ISPAY" label="0"></el-radio>
</el-col> </el-radio-group>
</el-row> </el-form-item>
<el-row> <el-form-item v-if="form.ISPAY === '1'" label="商业保险单号" prop="ISPAY_NUMBER">
<el-col :span="12"> <el-input v-model="form.ISPAY_NUMBER" placeholder="这里输入商业保险单号..."/>
<el-form-item label="是否特殊工种" prop="IS_SPECIAL_JOB"> </el-form-item>
<el-radio-group v-model="form.IS_SPECIAL_JOB" disabled> <el-form-item v-if="form.ISPAY === '1'" label="保险图片" prop="insuranceFileList">
<el-radio v-model="form.IS_SPECIAL_JOB" label="1"></el-radio> <el-upload
<el-radio v-model="form.IS_SPECIAL_JOB" label="0"></el-radio> ref="insuranceFileList"
</el-radio-group> :file-list="form.insuranceFileList"
</el-form-item> :limit="4"
<el-alert :class="{hide:hideInsuranceUpload}"
:closable="false" :auto-upload="false"
title="新增完成后请提示该用户去相关方app端完善特种证书信息" :on-remove="handleInsuranceFileRemove"
type="error" :on-change="handleInsuranceFileChange"
class="alertClass" multiple
/> action="#"
</el-col> accept=".jpg,.jpeg,.png"
<el-col :span="12"> list-type="picture-card">
<el-form-item label="是否流动人员" prop="ISFLOW" style="float:left"> <i class="el-icon-plus" />
<el-radio-group v-model="form.ISFLOW"> </el-upload>
<el-radio v-model="form.ISFLOW" label="1"></el-radio> </el-form-item>
<el-radio v-model="form.ISFLOW" label="0"></el-radio> </el-col>
</el-radio-group> </el-row>
</el-form-item> <el-row>
</el-col> <el-col :span="8">
</el-row> <el-form-item label="是否按期缴纳工伤保险" prop="IS_INJURIES_PAY" style="float:left">
<el-radio-group v-model="form.IS_INJURIES_PAY">
<el-radio v-model="form.IS_INJURIES_PAY" label="1"></el-radio>
<el-radio v-model="form.IS_INJURIES_PAY" label="0"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item v-if="form.IS_INJURIES_PAY ==='1'" label="工伤保险有效期" prop="IS_INJURIES_PAY_TIME" style="float:left">
<el-date-picker
v-model="form.IS_INJURIES_PAY_TIME"
type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
style="width: 290px"
/>
</el-form-item>
<el-form-item v-if="form.IS_INJURIES_PAY ==='1'" label="上传工伤保险凭证" style="float:left" prop="gongshangbaoxianFile">
<el-upload
ref="gongshangFileList"
:file-list="form.gongshangbaoxianFile"
:limit="4"
:class="{hide:hidegongshangUpload}"
:auto-upload="false"
:on-remove="handleGongshangFileRemove"
:on-change="handleGongshangFileChange"
multiple
action="#"
accept=".jpg,.jpeg,.png"
list-type="picture-card">
<i class="el-icon-plus" />
</el-upload>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="岗位名称(工种)" prop="POST_ID" class="input-width">
<el-input v-model="form.POST_ID" placeholder="这里输入岗位名称(工种)..."/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="是否参加三级安全培训" prop="IS_LEVEL_THREE" >
<el-radio-group v-model="form.IS_LEVEL_THREE">
<el-radio v-model="form.IS_LEVEL_THREE" label="1"></el-radio>
<el-radio v-model="form.IS_LEVEL_THREE" label="0"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item v-if="form.IS_LEVEL_THREE === '1'" label="三级安全培训照片" prop="photosOfLevel" >
<el-upload
ref="photosOfLevel"
:file-list="form.photosOfLevel"
:multiple="false"
:limit="5"
:class="{hide:photosOfLevel}"
:auto-upload="false"
:on-remove="handleLevelPhotoRemove"
:on-change="handleLevelPhotoChangeIMG"
action="#"
accept=".jpg,.jpeg,.png"
list-type="picture-card">
<i class="el-icon-plus" />
</el-upload>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="是否特殊工种" prop="IS_SPECIAL_JOB">
<el-radio-group v-model="form.IS_SPECIAL_JOB" disabled>
<el-radio v-model="form.IS_SPECIAL_JOB" label="1"></el-radio>
<el-radio v-model="form.IS_SPECIAL_JOB" label="0"></el-radio>
</el-radio-group>
</el-form-item>
<el-alert
:closable="false"
title="新增完成后请提示该用户去相关方app端完善特种证书信息"
type="error"
class="alertClass"
/>
</el-col>
<el-col :span="12">
<el-form-item label="是否流动人员" prop="ISFLOW" style="float:left">
<el-radio-group v-model="form.ISFLOW">
<el-radio v-model="form.ISFLOW" label="1"></el-radio>
<el-radio v-model="form.ISFLOW" label="0"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<!--第八行--> <!--第八行-->
<el-col :span="12"/> <el-col :span="12"/>
<el-col :span="12"/> <el-col :span="12"/>
</el-row> </el-row>
</el-form> </el-row></el-form>
</div> </div>
<div class="ui-height"/> <div class="ui-height"/>
<div class="ui-foot"> <div class="ui-foot">
@ -888,6 +978,33 @@ export default {
} }
} }
} }
if (this.form.IS_INJURIES_PAY === '1') {
if (this.$refs['gongshangFileList'].uploadFiles.length > 0) {
for (let i = 0; i < this.$refs['gongshangFileList'].uploadFiles.length; i++) {
if (this.$refs['gongshangFileList'].uploadFiles[i]) {
formData.append('WORK_INSURANCE_LIST', this.$refs['gongshangFileList'].uploadFiles[i].raw)
}
}
}
}
if (this.form.ISPAY === '1') {
if (this.$refs['insuranceFileList'].uploadFiles.length > 0) {
for (let i = 0; i < this.$refs['insuranceFileList'].uploadFiles.length; i++) {
if (this.$refs['insuranceFileList'].uploadFiles[i]) {
formData.append('insuranceFile', this.$refs['insuranceFileList'].uploadFiles[i].raw)
}
}
}
}
if (this.form.IS_SIGN_LABOR === '1') {
if (this.$refs['contractFileList'].uploadFiles.length > 0) {
for (let i = 0; i < this.$refs['contractFileList'].uploadFiles.length; i++) {
if (this.$refs['contractFileList'].uploadFiles[i]) {
formData.append('contractFile', this.$refs['contractFileList'].uploadFiles[i].raw)
}
}
}
}
formData.append('CORPINFO_ID', JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID) formData.append('CORPINFO_ID', JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID)
upload( upload(
'/user/' + this.dialogType, '/user/' + this.dialogType,