1. 自觉遵守国家法律、法规;
2. 自觉遵守学生行为规范和学校的规章制度,遵守社会公德;
3. 自觉遵守外宿住址所在社区的有关管理规定;
- 4. - 本人申请外宿,属个人自愿行为,外宿期间发生的一切事故,造成本人、他人或集体的人身、财产损害的,学校不负责任。 + 4. 本人申请外宿,属个人自愿行为,外宿期间发生的一切事故,造成本人、他人或集体的人身、财产损害的,学校不负责任。
1.自觉遵守国家法律、法规;
+2.自觉遵守学生行为规范和学校的规章制度,遵守社会公德;
+3.自觉遵守外宿住址所在社区的有关管理规定;
+4.本人申请外宿,属个人自愿行为,外宿期间发生的一切事故,造成本人、他人或集体的人身、财产损害的,学校不负责任。
` // 将地址数组转为字符串(用 / 拼接,后端可按此分隔解析) const submitForm = { @@ -711,6 +752,11 @@ export default { this.loading = true; if (this.form.id != null) { updateOutsideAccommodationApply(submitForm).then((response) => { + // 批量新增材料附件 + if (this.reasonFileList && this.reasonFileList.length > 0) { + batchAddOutsideAccommodationAttachment(this.reasonFileList) + this.resetForm() + } this.loading = false; this.$modal.msgSuccess('修改成功') this.goBack() @@ -720,6 +766,15 @@ export default { }) } else { addOutsideAccommodationApply(submitForm).then((response) => { + // 填写附件里面的申请编号 + this.reasonFileList.forEach(element => { + element.applyId = response.data.id + }) + // 批量新增材料附件 + if (this.reasonFileList && this.reasonFileList.length > 0) { + batchAddOutsideAccommodationAttachment(this.reasonFileList) + this.resetForm() + } this.loading = false; this.$modal.msgSuccess('新增成功') this.goBack() @@ -728,7 +783,6 @@ export default { this.goBack() }) } - this.resetForm() } else { this.loading = false; this.$message.error('表单填写有误,请检查!') @@ -740,6 +794,8 @@ export default { resetForm() { this.$refs.formRef.resetFields() this.reasonFileList = [] + this.fileList = [] + this.form.affixId = "" this.form.studentSignature = '' this.form.studentPromiseSign = '' this.clearStudentCanvas() @@ -775,7 +831,6 @@ export default { } else { this.$message.warning('该文件已添加,请勿重复上传') } - console.log(this.reasonFileList) }, // 处理子组件传递的删除文件事件 handleDeleteFile(fileName) { diff --git a/src/views/dormitory/outsideAccommodation/outsideAccommodationApply/components/detailApply.vue b/src/views/dormitory/outsideAccommodation/outsideAccommodationApply/components/detailApply.vue index af0bd83..f89c3ae 100644 --- a/src/views/dormitory/outsideAccommodation/outsideAccommodationApply/components/detailApply.vue +++ b/src/views/dormitory/outsideAccommodation/outsideAccommodationApply/components/detailApply.vue @@ -1,80 +1,91 @@ -