|
@@ -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;
|
|
@@ -37,7 +37,6 @@ function handleChangePlan() {
|
|
|
|
|
|
|
|
// 查看记录
|
|
// 查看记录
|
|
|
function handleViewRecord(model?: ConditioningRecordListModel) {
|
|
function handleViewRecord(model?: ConditioningRecordListModel) {
|
|
|
- console.log(model,'查看记录');
|
|
|
|
|
VxeUI.modal.open({
|
|
VxeUI.modal.open({
|
|
|
title: model?.id ? `调养过程` : `新增调养过程`,
|
|
title: model?.id ? `调养过程` : `新增调养过程`,
|
|
|
height: 700,
|
|
height: 700,
|
|
@@ -62,9 +61,12 @@ function handleViewRecord(model?: ConditioningRecordListModel) {
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+const visible = ref<boolean>(false);
|
|
|
|
|
+const setVisible = (value: boolean): void => {
|
|
|
|
|
+ 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: '作废成功',
|
|
@@ -76,10 +78,6 @@ function handleViewRecord(model?: ConditioningRecordListModel) {
|
|
|
emit('voidSubmit', tableData.value as SystemCwModel);
|
|
emit('voidSubmit', tableData.value as SystemCwModel);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
-const visible = ref<boolean>(false);
|
|
|
|
|
-const setVisible = (value: boolean): void => {
|
|
|
|
|
- visible.value = value;
|
|
|
|
|
-};
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
@@ -116,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"
|
|
@@ -141,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>
|
|
@@ -213,13 +219,13 @@ const setVisible = (value: boolean): void => {
|
|
|
{{ tableData.phone }}</span
|
|
{{ tableData.phone }}</span
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
<!-- 按钮区,作废后隐藏 -->
|
|
<!-- 按钮区,作废后隐藏 -->
|
|
|
<!-- <div class="footer-btns">
|
|
<!-- <div class="footer-btns">
|
|
|
<a-button type="primary" style="margin-right: 24px" @click="handleChangePlan" v-if="props.data.title === '调养方案'">转方案</a-button>
|
|
<a-button type="primary" style="margin-right: 24px" @click="handleChangePlan" v-if="props.data.title === '调养方案'">转方案</a-button>
|
|
|
<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>
|
|
|
|
|
|