Merge branch 'master' of http://192.168.0.75:3000/liux/nxdt-web
This commit is contained in:
commit
ff18473509
|
|
@ -171,3 +171,15 @@ export function addAnnotations(data) {
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 删除监理人员
|
||||||
|
* @param data
|
||||||
|
* @returns {AxiosPromise}
|
||||||
|
*/
|
||||||
|
export function delPersonByIdCardAndPhone(data) {
|
||||||
|
return request({
|
||||||
|
url: '/project/SupervisionUnit/delSupervisoryPersonApply',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,7 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
<el-button size="mini" type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
||||||
|
<el-button size="mini" type="text" @click="handleDel(scope.row)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -658,7 +659,7 @@ import bnsFileListTabs from '@/components/pro-tabs/bns-file-list-tabs.vue'
|
||||||
|
|
||||||
import { addSupervisoryApply, addSupervisoryPersonApply } from '@/api/pro/supervisory'
|
import { addSupervisoryApply, addSupervisoryPersonApply } from '@/api/pro/supervisory'
|
||||||
import { dictTableOption, getTemplateLink, selectFile, downloadFile } from '@/api/tool/select'
|
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 numberUtils from '@/utils/validate'
|
||||||
import bnsKkFilePreview from '@/components/pro-tabs/bns-kkFile-preview.vue'
|
import bnsKkFilePreview from '@/components/pro-tabs/bns-kkFile-preview.vue'
|
||||||
|
|
@ -1018,11 +1019,11 @@ export default {
|
||||||
this.getFileData(this.formData.implementationRulesFiles),
|
this.getFileData(this.formData.implementationRulesFiles),
|
||||||
]).then(
|
]).then(
|
||||||
([
|
([
|
||||||
enterpriseQualificationFiles,
|
enterpriseQualificationFiles,
|
||||||
securityAgreementFiles,
|
securityAgreementFiles,
|
||||||
supervisionPlanningFiles,
|
supervisionPlanningFiles,
|
||||||
implementationRulesFiles,
|
implementationRulesFiles,
|
||||||
]) => {
|
]) => {
|
||||||
if (!enterpriseQualificationFiles || enterpriseQualificationFiles.length === 0) {
|
if (!enterpriseQualificationFiles || enterpriseQualificationFiles.length === 0) {
|
||||||
reqData.append('enterpriseQualificationFiles', new Blob())
|
reqData.append('enterpriseQualificationFiles', new Blob())
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -1224,6 +1225,28 @@ export default {
|
||||||
}
|
}
|
||||||
this.supervisorOpen = true
|
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) {
|
getDetails(row) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue