diff --git a/src/api/pro/outsourcingPro.js b/src/api/pro/outsourcingPro.js index c2fa1af..bc00ccc 100644 --- a/src/api/pro/outsourcingPro.js +++ b/src/api/pro/outsourcingPro.js @@ -171,3 +171,15 @@ export function addAnnotations(data) { data: data }) } +/** + * 删除监理人员 + * @param data + * @returns {AxiosPromise} + */ +export function delPersonByIdCardAndPhone(data) { + return request({ + url: '/project/SupervisionUnit/delSupervisoryPersonApply', + method: 'post', + data: data + }) +} diff --git a/src/views/pro/apply/supervisorEnterApply.vue b/src/views/pro/apply/supervisorEnterApply.vue index 2f27d5c..fee18dc 100644 --- a/src/views/pro/apply/supervisorEnterApply.vue +++ b/src/views/pro/apply/supervisorEnterApply.vue @@ -108,6 +108,7 @@ > @@ -658,7 +659,7 @@ import bnsFileListTabs from '@/components/pro-tabs/bns-file-list-tabs.vue' import { addSupervisoryApply, addSupervisoryPersonApply } from '@/api/pro/supervisory' import { dictTableOption, getTemplateLink, selectFile, downloadFile } from '@/api/tool/select' -import { listSupervisorPersonById, listSupervisor, listSupervisorPerson } from '@/api/pro/outsourcingPro' +import { listSupervisorPersonById, listSupervisor, listSupervisorPerson ,delPersonByIdCardAndPhone } from '@/api/pro/outsourcingPro' import numberUtils from '@/utils/validate' import bnsKkFilePreview from '@/components/pro-tabs/bns-kkFile-preview.vue' @@ -1018,11 +1019,11 @@ export default { this.getFileData(this.formData.implementationRulesFiles), ]).then( ([ - enterpriseQualificationFiles, - securityAgreementFiles, - supervisionPlanningFiles, - implementationRulesFiles, - ]) => { + enterpriseQualificationFiles, + securityAgreementFiles, + supervisionPlanningFiles, + implementationRulesFiles, + ]) => { if (!enterpriseQualificationFiles || enterpriseQualificationFiles.length === 0) { reqData.append('enterpriseQualificationFiles', new Blob()) } else { @@ -1224,6 +1225,28 @@ export default { } this.supervisorOpen = true }, + delPerson(row) { + this.$confirm('是否确认删除?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }).then(() => { + const params = { + idCard: row.idCard, + phone: row.phone + } + delPersonByIdCardAndPhone(params).then(response => { + if (response.code === 200){ + this.$modal.msgSuccess('删除成功') + this.getSupervisorPersonList() + } + }) + }) + }, + //删除 + handleDel(row, type) { + this.delPerson(row) + }, //获取详情 getDetails(row) { this.loading = true