diff --git a/src/views/PersonManager/user/components/add.vue b/src/views/PersonManager/user/components/add.vue index 8da6fb2..2953b17 100644 --- a/src/views/PersonManager/user/components/add.vue +++ b/src/views/PersonManager/user/components/add.vue @@ -234,70 +234,160 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - +
@@ -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) upload( '/user/' + this.dialogType,