检查删除
continuous-integration/drone/push Build is running Details

main
wangxiaoshuang 2024-04-29 11:08:48 +08:00
parent 664385435a
commit 7802dd30a2
3 changed files with 47 additions and 3 deletions

View File

@ -126,3 +126,12 @@ export function DeletePatientStudyAllData(params) {
params params
}) })
} }
// 删除检查
export function deletePatientStudy(params) {
return request({
url: '/Patient/deletePatientStudy',
method: 'delete',
params
})
}

View File

@ -139,6 +139,13 @@
:title="$t('trials:inspection:button:image')" :title="$t('trials:inspection:button:image')"
@click.stop="image(scope.row)" @click.stop="image(scope.row)"
/> />
<!--删除-->
<el-button
circle
icon="el-icon-delete"
:title="$t('trials:inspection:button:delete')"
@click.stop="deletePatientStudy(scope.row)"
/>
<!-- 诊断报告 --> <!-- 诊断报告 -->
<el-button <el-button
circle circle
@ -163,7 +170,7 @@
</template> </template>
<script> <script>
import Pagination from "@/components/Pagination"; import Pagination from "@/components/Pagination";
import { getPatientStudyList } from "@/api/inspection.js"; import { getPatientStudyList, deletePatientStudy } from "@/api/inspection.js";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
const defaultSearchData = () => { const defaultSearchData = () => {
@ -205,6 +212,33 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
//
async deletePatientStudy(item) {
try {
let confirm = await this.$confirm(
this.$t("trials:inspection:message:remove"),
{
type: "warning",
distinguishCancelAndClose: true,
confirmButtonText: this.$t("common:button:confirm"),
cancelButtonText: this.$t("common:button:cancel"),
}
);
if (confirm !== "confirm") return;
let params = {
PatiendId: item.PatientId,
ScpStudyId: item.SCPStudyId,
};
let res = await deletePatientStudy(params);
if (res.IsSuccess) {
this.getList();
this.$emit("getList");
this.$message.success(this.$t("common:message:deletedSuccessfully"));
}
} catch (err) {
console.log(err);
}
},
// //
beforeCloseStudyDig() { beforeCloseStudyDig() {
this.$setOpenWindow(); this.$setOpenWindow();

View File

@ -279,6 +279,7 @@
v-if="studyTrialsVisible" v-if="studyTrialsVisible"
:visible.sync="studyTrialsVisible" :visible.sync="studyTrialsVisible"
:Patient="selectPatient" :Patient="selectPatient"
@getList="getList"
/> />
</BaseContainer> </BaseContainer>
</template> </template>
@ -346,12 +347,12 @@ export default {
async DeletePatientStudyAllData(item) { async DeletePatientStudyAllData(item) {
try { try {
let confirm = await this.$confirm( let confirm = await this.$confirm(
this.$t("trials:sitesList:message:removeSite"), this.$t("trials:inspection:message:remove"),
{ {
type: "warning", type: "warning",
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
confirmButtonText: this.$t("common:button:confirm"), confirmButtonText: this.$t("common:button:confirm"),
cancelButtonText: this.$t("recompose:button:cancel"), cancelButtonText: this.$t("common:button:cancel"),
} }
); );
if (confirm !== "confirm") return; if (confirm !== "confirm") return;