diff --git a/src/api/manage/patientInfoImport.js b/src/api/manage/patientInfoImport.js index 072e107..f444c6f 100644 --- a/src/api/manage/patientInfoImport.js +++ b/src/api/manage/patientInfoImport.js @@ -7,4 +7,20 @@ export function patientInfoImportBatchlist(query) { method: 'get', params: query }) -} \ No newline at end of file +} +// 删除导入 +export function updateSn(sn) { + return request({ + url: `/manage/patientInfoimportmain/updateSn?sn=${sn}` , + method: 'POST' + }) +} +//删除导入明细 + +export function updatePatientInfoImport(data) { + return request({ + url: `/manage/patientInfoimportmain/updatePatientInfoImport` , + method: 'POST', + data + }) +} diff --git a/src/views/manage/ImportDetails/index.vue b/src/views/manage/ImportDetails/index.vue index 12bb70e..a0cea7f 100644 --- a/src/views/manage/ImportDetails/index.vue +++ b/src/views/manage/ImportDetails/index.vue @@ -116,7 +116,7 @@ --> - + @@ -146,6 +149,8 @@ import { usergetList } from "@/api/unitconfig/patientConfiguration"; import SearchFilter from "../../components/SearchForm.vue"; import cardlist from "../components/cardlist.vue"; +import { updatePatientInfoImport } from "@/api/manage/patientInfoImport"; + export default { name: "PatientInfo", dicts: ["patient_type", "visit_method", "sign_status", "patient_source"], @@ -241,6 +246,21 @@ this.attendingPhysicianlist = res.data; }); }, + /** 删除按钮操作 */ + handleDelete(row) { + console.log(row.id,'row') + var obj={ + sn:this.$route.query.sn, + patientName:row.patientName, + patientPhone:row.patientPhone + } + this.$modal.confirm('是否确认删除?').then(function () { + return updatePatientInfoImport(obj); + }).then(() => { + this.getList(); + this.$modal.msgSuccess("删除成功"); + }).catch(() => { }); + }, /** 详情操作 */ handleAuthRole(row) { this.$router.push({ diff --git a/src/views/manage/patientInfoImport/index.vue b/src/views/manage/patientInfoImport/index.vue index 493522a..a2563db 100644 --- a/src/views/manage/patientInfoImport/index.vue +++ b/src/views/manage/patientInfoImport/index.vue @@ -1,24 +1,62 @@