From 49d05552e14816b884b9ff4d1fa0261bbadd81f4 Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 29 Feb 2024 17:53:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=95=86=E4=B8=9A=E9=99=A9?= =?UTF-8?q?=E3=80=81=E4=BF=9D=E9=99=A9=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonManager/user/components/add.vue | 241 +++++++++++++----- 1 file changed, 179 insertions(+), 62 deletions(-) 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,