diff --git a/src/api/routine/enlistmentReserve/enlistmentReserve.js b/src/api/routine/enlistmentReserve/enlistmentReserve.js index beae378..be38c58 100644 --- a/src/api/routine/enlistmentReserve/enlistmentReserve.js +++ b/src/api/routine/enlistmentReserve/enlistmentReserve.js @@ -36,6 +36,15 @@ export function addEnlistmentReserve(data) { }) } +// 批量新增应征入伍保留学籍申请 +export function batchInsert(data) { + return request({ + url: '/routine/enlistmentReserve/batchInsert', + method: 'post', + data: data + }) +} + // 修改应征入伍保留学籍申请 export function updateEnlistmentReserve(data) { return request({ @@ -59,4 +68,4 @@ export function getOwnInfo(){ url:'/comprehensive/stuInfoView/getOwnInfo', method:'GET' }) -} \ No newline at end of file +} diff --git a/src/views/routine/enlistmentReserve/applicationForm.vue b/src/views/routine/enlistmentReserve/applicationForm.vue index 9b4ebf0..3f256c2 100644 --- a/src/views/routine/enlistmentReserve/applicationForm.vue +++ b/src/views/routine/enlistmentReserve/applicationForm.vue @@ -661,7 +661,7 @@ export default { // 填写附件里面的申请编号 this.enlistmentReserveAttachList.forEach(element => { element.applyNo = this.formData.applyNo - element.applyId = response.data.id + element.applyId = this.formData.id }) // 批量新增材料附件 if (this.enlistmentReserveAttachList && this.enlistmentReserveAttachList.length > 0) { @@ -743,7 +743,6 @@ export default { this.$message.warning('该文件已添加,请勿重复上传'); } console.log(this.enlistmentReserveAttachList); - }, // 处理子组件传递的删除文件事件 handleDeleteFile(fileName) { diff --git a/src/views/routine/enlistmentReserve/components/applicationDialog.vue b/src/views/routine/enlistmentReserve/components/applicationDialog.vue index 8161174..10d64df 100644 --- a/src/views/routine/enlistmentReserve/components/applicationDialog.vue +++ b/src/views/routine/enlistmentReserve/components/applicationDialog.vue @@ -23,8 +23,8 @@ :disabled="single" @click="handleUpdate">修改 --> - 批量申请 + 提交批量申请