相关方app端编辑信息bug修复
parent
eee02bfa5a
commit
ce7d33dc34
|
@ -52,6 +52,27 @@
|
|||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否签订劳动合同" :value="info.IS_SIGN_LABOR_NAME"></u-cell>
|
||||
<u-cell title="合同图片" v-if="info.IS_SIGN_LABOR==='1'">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in contractFile" :key="index"
|
||||
style="display: flex;justify-content: space-between">
|
||||
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;"
|
||||
@click="fnPreview(contractFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否缴纳商业保险" :value="info.ISPAY_NAME"></u-cell>
|
||||
<u-cell title="商业保险单号" v-if="info.ISPAY==='1'" :value="info.ISPAY_NUMBER"></u-cell>
|
||||
<u-cell title="保险图片" v-if="info.ISPAY==='1'">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in insuranceFile" :key="index"
|
||||
style="display: flex;justify-content: space-between">
|
||||
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;"
|
||||
@click="fnPreview(insuranceFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否按期缴纳工伤保险" :value="info.IS_INJURIES_PAY_NAME"></u-cell>
|
||||
<u-cell title="工伤保险有效期" v-if="info.IS_INJURIES_PAY==='1'" :value="info.IS_INJURIES_PAY_TIME"></u-cell>
|
||||
<u-cell title="工伤保险凭证" v-if="info.IS_INJURIES_PAY==='1'">
|
||||
|
@ -63,6 +84,17 @@
|
|||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="岗位名称(工种)" :value="info.POST_ID"></u-cell>
|
||||
<u-cell title="是否参加三级安全培训" :value="info.IS_LEVEL_THREE_NAME"></u-cell>
|
||||
<u-cell title="三级安全培训照片" v-if="info.IS_LEVEL_THREE==='1'">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in photosOfLevel" :key="index"
|
||||
style="display: flex;justify-content: space-between">
|
||||
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;"
|
||||
@click="fnPreview(photosOfLevel)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否流动人员" :value="info.ISFLOW_NAME"></u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
|
@ -82,6 +114,9 @@
|
|||
userCardIDPhotoFile: [],
|
||||
socialPhotoFile: [],
|
||||
injuriesPayTiemFile:[],
|
||||
photosOfLevel:[],
|
||||
contractFile:[],
|
||||
insuranceFile: [],
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID:'',
|
||||
}
|
||||
},
|
||||
|
@ -110,6 +145,9 @@
|
|||
this.userCardIDPhotoFile = []
|
||||
this.socialPhotoFile = []
|
||||
this.injuriesPayTiemFile = []
|
||||
this.contractFile = []
|
||||
this.photosOfLevel = []
|
||||
this.insuranceFile = []
|
||||
let Employed = await getEmployedBy({
|
||||
showCount: 10,
|
||||
currentPage: 1,
|
||||
|
@ -136,6 +174,19 @@
|
|||
for (let i = 0; i < resData.workInsurancePhotoFile.length; i++) {
|
||||
this.injuriesPayTiemFile.push(this.$filePath + resData.workInsurancePhotoFile[i].FILEPATH)
|
||||
}
|
||||
|
||||
for (let i = 0; i < resData.contractFile.length; i++) {
|
||||
this.contractFile.push(this.$filePath + resData.contractFile[i].FILEPATH)
|
||||
}
|
||||
|
||||
for (let i = 0; i < resData.photosOfLevel.length; i++) {
|
||||
this.photosOfLevel.push(this.$filePath + resData.photosOfLevel[i].FILEPATH)
|
||||
}
|
||||
|
||||
for (let i = 0; i < resData.insuranceFile.length; i++){
|
||||
this.insuranceFile.push(this.$filePath + resData.insuranceFile[i].FILEPATH)
|
||||
}
|
||||
|
||||
if (this.info.ISFLOW === '0') {
|
||||
this.info.ISFLOW_NAME = '否'
|
||||
} else if (this.info.ISFLOW === '1') {
|
||||
|
@ -151,6 +202,21 @@
|
|||
} else if (this.info.IS_INJURIES_PAY === '1') {
|
||||
this.info.IS_INJURIES_PAY_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_SIGN_LABOR === '0') {
|
||||
this.info.IS_SIGN_LABOR_NAME = '否'
|
||||
} else if (this.info.IS_SIGN_LABOR === '1') {
|
||||
this.info.IS_SIGN_LABOR_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_LEVEL_THREE === '0'){
|
||||
this.info.IS_LEVEL_THREE_NAME = '否'
|
||||
} else if (this.info.IS_LEVEL_THREE === '1'){
|
||||
this.info.IS_LEVEL_THREE_NAME = '是'
|
||||
}
|
||||
if (this.info.ISPAY === '1'){
|
||||
this.info.ISPAY_NAME = '是'
|
||||
}else {
|
||||
this.info.ISPAY_NAME = '否'
|
||||
}
|
||||
if (resData.userPhotoFile.length > 0) {
|
||||
this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH)
|
||||
}
|
||||
|
|
|
@ -88,6 +88,19 @@
|
|||
<u-upload class="mt-10" :fileList="form.contractFile" @afterRead="fnIsSignLaborAdd"
|
||||
@delete="fnIsSignLaborDelete" multiple :maxCount="4" previewFullImage>
|
||||
</u-upload>
|
||||
</u-form-item>
|
||||
<u-form-item label="是否缴纳商业保险" prop="ISPAY_NAME" borderBottom required
|
||||
@click="fnShowIsPay">
|
||||
<u--input v-model="form.ISPAY_NAME" border="none" disabled disabledColor="#ffffff"
|
||||
inputAlign="right"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item v-if="form.ISPAY==='1'" label="商业保险单号" prop="PHONE" borderBottom required>
|
||||
<u--input border="none" v-model="form.ISPAY_NUMBER" :disabled="true"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item v-if="form.ISPAY==='1'" label="保险图片" prop="contractFile" borderBottom required class="form-item-block">
|
||||
<u-upload class="mt-10" :fileList="form.insuranceFile" @afterRead="fnIsPayAdd"
|
||||
@delete="fnIsPayDelete" multiple :maxCount="4" previewFullImage>
|
||||
</u-upload>
|
||||
</u-form-item>
|
||||
<u-form-item label="是否按期缴纳工伤保险" prop="IS_INJURIES_PAY_NAME" borderBottom required
|
||||
@click="fnShowEmploymentInjuryInsurance">
|
||||
|
@ -140,6 +153,8 @@
|
|||
@confirm="fnIsSignLaborConfirm" @cancel="fnShowIsSignLabor"></u-picker>
|
||||
<u-picker :show="showPhotosOfLevel" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name"
|
||||
@confirm="fnShowPhotosOfLevelConfirm" @cancel="fnShowPhotosOfLevel"></u-picker>
|
||||
<u-picker :show="showIsPay" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name"
|
||||
@confirm="fnShowIsPayConfirm" @cancel="fnShowIsPay"></u-picker>
|
||||
|
||||
<u-datetime-picker :show="showInjuriesPayTiem" v-model="IS_INJURIES_PAY_TIME" mode="date"
|
||||
@confirm="fnShowInjuriesPayTiemConfirm" @cancel="fnShowInjuriesPayTiemEducation"></u-datetime-picker>
|
||||
|
@ -182,6 +197,7 @@
|
|||
showBf: false,
|
||||
showIsSignLabor: false,
|
||||
showPhotosOfLevel: false,
|
||||
showIsPay: false,
|
||||
personWorkTypeColumns: [],
|
||||
prePhotoId: [],
|
||||
form: {
|
||||
|
@ -191,6 +207,7 @@
|
|||
contractFile:[],
|
||||
injuriesPayTiemFile: [],
|
||||
photosOfLevel:[],
|
||||
insuranceFile: [],
|
||||
IS_INJURIES_PAY_TIME:'',
|
||||
NAME: '',
|
||||
USERNAME: '',
|
||||
|
@ -215,7 +232,9 @@
|
|||
IS_SIGN_LABOR_NAME: '',
|
||||
POST_ID: '',
|
||||
IS_LEVEL_THREE: '',
|
||||
IS_LEVEL_THREE_NAME: ''
|
||||
IS_LEVEL_THREE_NAME: '',
|
||||
ISPAY: '',
|
||||
ISPAY_NAME: ''
|
||||
},
|
||||
rules: {
|
||||
userPhoto: {
|
||||
|
@ -472,12 +491,39 @@
|
|||
});
|
||||
},
|
||||
// 合同图片
|
||||
fnIsPayAdd(event) {
|
||||
for (let i = 0; i < event.file.length; i++) {
|
||||
this.form.insuranceFile.push(event.file[i])
|
||||
}
|
||||
},
|
||||
// 合同图片删除
|
||||
fnIsPayDelete(event) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定删除吗',
|
||||
success: async (res) => {
|
||||
if (res.confirm) {
|
||||
if (event.file.id) {
|
||||
this.prePhotoId.push(event.file.id)
|
||||
}
|
||||
uni.showToast({
|
||||
title: '操作成功',
|
||||
duration: 2000
|
||||
});
|
||||
this.form.insuranceFile.splice(event.index, 1)
|
||||
} else if (res.cancel) {
|
||||
// console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
// 三级教育培训新增
|
||||
fnPhotosOfLevelAdd(event) {
|
||||
for (let i = 0; i < event.file.length; i++) {
|
||||
this.form.photosOfLevel.push(event.file[i])
|
||||
}
|
||||
},
|
||||
// 合同图片删除
|
||||
// 三级教育培训删除
|
||||
fnPhotosOfLevelDelete(event) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
|
@ -525,6 +571,14 @@
|
|||
fnShowIsSignLabor(){
|
||||
this.showIsSignLabor = !this.showIsSignLabor
|
||||
},
|
||||
fnShowIsPay(){
|
||||
this.showIsPay = !this.showIsPay
|
||||
},
|
||||
fnShowIsPayConfirm(e){
|
||||
this.form.ISPAY = e.value[0].id
|
||||
this.form.ISPAY_NAME = e.value[0].name
|
||||
this.fnShowIsPay()
|
||||
},
|
||||
fnShowPhotosOfLevel(){
|
||||
this.showPhotosOfLevel = !this.showPhotosOfLevel
|
||||
},
|
||||
|
@ -695,6 +749,12 @@
|
|||
this.form.ISFLOW_NAME = '是'
|
||||
}
|
||||
|
||||
if (this.form.ISPAY === '1'){
|
||||
this.form.ISPAY_NAME = '是'
|
||||
}else {
|
||||
this.form.ISPAY_NAME = '否'
|
||||
}
|
||||
|
||||
if (this.form.IS_LEVEL_THREE === '0'){
|
||||
this.form.IS_LEVEL_THREE_NAME = '否'
|
||||
}else {
|
||||
|
@ -745,7 +805,33 @@
|
|||
this.form.injuriesPayTiemFile.push(obj)
|
||||
})
|
||||
}
|
||||
|
||||
if (resData.photosOfLevel.length > 0) {
|
||||
resData.photosOfLevel.forEach(item => {
|
||||
const obj = {
|
||||
id: item.IMGFILES_ID,
|
||||
url: this.$filePath + item.FILEPATH
|
||||
}
|
||||
this.form.photosOfLevel.push(obj)
|
||||
})
|
||||
}
|
||||
if (resData.contractFile.length > 0) {
|
||||
resData.contractFile.forEach(item => {
|
||||
const obj = {
|
||||
id: item.IMGFILES_ID,
|
||||
url: this.$filePath + item.FILEPATH
|
||||
}
|
||||
this.form.contractFile.push(obj)
|
||||
})
|
||||
}
|
||||
if (resData.insuranceFile.length > 0) {
|
||||
resData.insuranceFile.forEach(item => {
|
||||
const obj = {
|
||||
id: item.IMGFILES_ID,
|
||||
url: this.$filePath + item.FILEPATH
|
||||
}
|
||||
this.form.insuranceFile.push(obj)
|
||||
})
|
||||
}
|
||||
},
|
||||
fnAfterRead(event) {
|
||||
this.form.userPhoto.push(event.file)
|
||||
|
@ -823,8 +909,8 @@
|
|||
name: 'files',
|
||||
formData: {
|
||||
TYPE: '16',
|
||||
FOREIGN_KEY: this.userInfo.USER_ID,
|
||||
CORPINFO_ID: this.CORPINFO_ID,
|
||||
FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
CORPINFO_ID: this.userInfo.CORPINFO_ID,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -834,8 +920,8 @@
|
|||
name: 'files',
|
||||
formData: {
|
||||
TYPE: '19',
|
||||
FOREIGN_KEY: this.userInfo.USER_ID,
|
||||
CORPINFO_ID: this.CORPINFO_ID,
|
||||
FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
CORPINFO_ID: this.userInfo.CORPINFO_ID,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -845,8 +931,19 @@
|
|||
name: 'files',
|
||||
formData: {
|
||||
TYPE: '10',
|
||||
FOREIGN_KEY: this.userInfo.USER_ID,
|
||||
CORPINFO_ID: this.CORPINFO_ID,
|
||||
FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
CORPINFO_ID: this.userInfo.CORPINFO_ID,
|
||||
}
|
||||
})
|
||||
}
|
||||
for (let i = 0; i < this.form.insuranceFile.length; i++) {
|
||||
await setUploadAttachments({
|
||||
filePath: this.form.insuranceFile[i].url,
|
||||
name: 'files',
|
||||
formData: {
|
||||
TYPE: '11',
|
||||
FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
CORPINFO_ID: this.userInfo.CORPINFO_ID,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue