检查删除
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

@ -125,4 +125,13 @@ export function DeletePatientStudyAllData(params) {
method: 'delete',
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')"
@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
circle
@ -163,7 +170,7 @@
</template>
<script>
import Pagination from "@/components/Pagination";
import { getPatientStudyList } from "@/api/inspection.js";
import { getPatientStudyList, deletePatientStudy } from "@/api/inspection.js";
import { getToken } from "@/utils/auth";
const defaultSearchData = () => {
@ -205,6 +212,33 @@ export default {
this.getList();
},
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() {
this.$setOpenWindow();

View File

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