|
@@ -2,7 +2,7 @@
|
|
|
import { ref, reactive } from 'vue';
|
|
import { ref, reactive } from 'vue';
|
|
|
import { getConditioningRecordDetailMethod, voidConditioningSchemeMethod } from '@/request/api/care.api';
|
|
import { getConditioningRecordDetailMethod, voidConditioningSchemeMethod } from '@/request/api/care.api';
|
|
|
import { usePagination, useRequest } from 'alova/client';
|
|
import { usePagination, useRequest } from 'alova/client';
|
|
|
-import type { ConditioningRecordListModel, ConditioningRecordListQuery,SystemCwModel } from '@/model/care.model';
|
|
|
|
|
|
|
+import type { ConditioningRecordListModel, ConditioningRecordListQuery, SystemCwModel } from '@/model/care.model';
|
|
|
import CareProcess from '@/service/CareProgress.vue';
|
|
import CareProcess from '@/service/CareProgress.vue';
|
|
|
import { message, notification } from 'ant-design-vue';
|
|
import { message, notification } from 'ant-design-vue';
|
|
|
import VxeUI from 'vxe-table';
|
|
import VxeUI from 'vxe-table';
|
|
@@ -16,7 +16,7 @@ const emit = defineEmits<{
|
|
|
(e: 'voidSubmit', data: SystemCwModel): void;
|
|
(e: 'voidSubmit', data: SystemCwModel): void;
|
|
|
}>();
|
|
}>();
|
|
|
let tableData = ref<any>({});
|
|
let tableData = ref<any>({});
|
|
|
-async function getRecordDetail(){
|
|
|
|
|
|
|
+async function getRecordDetail() {
|
|
|
try {
|
|
try {
|
|
|
const res: any = await getConditioningRecordDetailMethod(props.data);
|
|
const res: any = await getConditioningRecordDetailMethod(props.data);
|
|
|
tableData.value = res;
|
|
tableData.value = res;
|
|
@@ -66,7 +66,7 @@ const setVisible = (value: boolean): void => {
|
|
|
visible.value = value;
|
|
visible.value = value;
|
|
|
};
|
|
};
|
|
|
// 作废
|
|
// 作废
|
|
|
- function handleVoid() {
|
|
|
|
|
|
|
+function handleVoid() {
|
|
|
voidConditioningSchemeMethod(Number(props.data.id)).then(async (res) => {
|
|
voidConditioningSchemeMethod(Number(props.data.id)).then(async (res) => {
|
|
|
notification.success({
|
|
notification.success({
|
|
|
message: '作废成功',
|
|
message: '作废成功',
|
|
@@ -78,7 +78,6 @@ const setVisible = (value: boolean): void => {
|
|
|
emit('voidSubmit', tableData.value as SystemCwModel);
|
|
emit('voidSubmit', tableData.value as SystemCwModel);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
@@ -115,7 +114,7 @@ const setVisible = (value: boolean): void => {
|
|
|
<span>{{ tableData?.name }}</span>
|
|
<span>{{ tableData?.name }}</span>
|
|
|
</div> -->
|
|
</div> -->
|
|
|
<!-- 服务形象照 -->
|
|
<!-- 服务形象照 -->
|
|
|
- <div class="flex" v-if="props.data?.types === 'institution'" style="align-items: center; margin-bottom: 0">
|
|
|
|
|
|
|
+ <div class="flex" v-if="props.data?.types === 'institution' && tableData?.photo" style="align-items: center; margin-bottom: 0">
|
|
|
<div class="w-20" style="white-space: nowrap; margin-right: 8px">服务形象照:</div>
|
|
<div class="w-20" style="white-space: nowrap; margin-right: 8px">服务形象照:</div>
|
|
|
<a-image
|
|
<a-image
|
|
|
:width="100"
|
|
:width="100"
|
|
@@ -140,7 +139,15 @@ const setVisible = (value: boolean): void => {
|
|
|
<span>年龄:{{ tableData?.conditioningWrapPatientMatchRule?.age }}</span>
|
|
<span>年龄:{{ tableData?.conditioningWrapPatientMatchRule?.age }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="flex items-center" v-if="tableData?.conditioningWrapPatientMatchRule?.diagnoseDiseaseNames?.length > 0 || tableData?.conditioningWrapPatientMatchRule?.diagnoseSyndromeNames?.length > 0 || tableData?.conditioningWrapPatientMatchRule?.constitutionGroupNames?.length > 0 || tableData?.conditioningWrapPatientMatchRule?.willillStateNames?.length > 0">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="flex items-center"
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ tableData?.conditioningWrapPatientMatchRule?.diagnoseDiseaseNames?.length > 0 ||
|
|
|
|
|
+ tableData?.conditioningWrapPatientMatchRule?.diagnoseSyndromeNames?.length > 0 ||
|
|
|
|
|
+ tableData?.conditioningWrapPatientMatchRule?.constitutionGroupNames?.length > 0 ||
|
|
|
|
|
+ tableData?.conditioningWrapPatientMatchRule?.willillStateNames?.length > 0
|
|
|
|
|
+ "
|
|
|
|
|
+ >
|
|
|
<span class="w-20">适用</span>
|
|
<span class="w-20">适用</span>
|
|
|
<div class="mr-10 flex items-center" v-if="tableData?.conditioningWrapPatientMatchRule?.diagnoseDiseaseNames?.length > 0">
|
|
<div class="mr-10 flex items-center" v-if="tableData?.conditioningWrapPatientMatchRule?.diagnoseDiseaseNames?.length > 0">
|
|
|
<span>专病:</span>
|
|
<span>专病:</span>
|
|
@@ -218,7 +225,6 @@ const setVisible = (value: boolean): void => {
|
|
|
<a-button @click="handleVoid" v-if="tableData.progress !== '1'" >作废</a-button>
|
|
<a-button @click="handleVoid" v-if="tableData.progress !== '1'" >作废</a-button>
|
|
|
<a-button type="primary" style="margin-left: 24px" @click="handleViewRecord(props.data)" v-if="isVoided && tableData.progress !== '1'">查看记录</a-button>
|
|
<a-button type="primary" style="margin-left: 24px" @click="handleViewRecord(props.data)" v-if="isVoided && tableData.progress !== '1'">查看记录</a-button>
|
|
|
</div> -->
|
|
</div> -->
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|