This commit is contained in:
Euni4U 2025-02-21 14:54:06 +08:00
commit 341679b32d
2 changed files with 23 additions and 6 deletions

View File

@ -42,6 +42,10 @@ export const updateItemsAnalyse = (data: AnalyseVO[]) => {
return request.post({ url: '/checkup/result/updateItemsAnalyse', data }) return request.post({ url: '/checkup/result/updateItemsAnalyse', data })
} }
// 患者是否存在未检或者待查
export const isExistUncheck = (medicalSn: String) => {
return request.get({ url: '/checkup/result/isExistUncheck?medicalSn=' + medicalSn })
}
// 用户密码重置 // 用户密码重置
export const resetUserPwd = (id: number, password: string) => { export const resetUserPwd = (id: number, password: string) => {

View File

@ -63,9 +63,9 @@
<li style="margin-top: 10px"> <li style="margin-top: 10px">
<el-button type="primary" @click="checkAll">全部选中</el-button> <el-button type="primary" @click="checkAll">全部选中</el-button>
</li> </li>
<!-- <li style="margin-top: 10px"> <!-- <li style="margin-top: 10px">
<el-button type="primary" @click="automaticRollups">自动汇总</el-button> <el-button type="primary" @click="automaticRollups">自动汇总</el-button>
</li>--> </li>-->
<li style="margin-top: 10px"> <li style="margin-top: 10px">
<el-button type="primary" @click="autoEncoding">自动编码</el-button> <el-button type="primary" @click="autoEncoding">自动编码</el-button>
</li> </li>
@ -90,6 +90,7 @@
<script setup lang="ts"> <script setup lang="ts">
import * as SummaryApi from '@/api/summary' import * as SummaryApi from '@/api/summary'
import {DICT_TYPE, getIntDictOptions} from "@/utils/dict"; import {DICT_TYPE, getIntDictOptions} from "@/utils/dict";
import {Action, ElMessage} from "element-plus";
const { t } = useI18n() // const { t } = useI18n() //
const message = useMessage() // const message = useMessage() //
@ -101,7 +102,8 @@ const list = ref([]);
{ id: 3, itemName: 'Item 3', itemResult: 'Description for Item 3' ,analyse: ''}, { id: 3, itemName: 'Item 3', itemResult: 'Description for Item 3' ,analyse: ''},
]);*/ ]);*/
/*const list3 = ref(['Item 1', 'Item 2', 'Item 3', 'Item 4']) // 列表的数*/ /*const list3 = ref(['Item 1', 'Item 2', 'Item 3', 'Item 4']) // 列表的数*/
const list3 = ref([]) // const list3 = ref([
{ id: undefined, itemName: undefined, itemResult: undefined ,analyse: undefined}]) //
const showNumbers = ref(false) const showNumbers = ref(false)
const analyseFlag = ref(false) const analyseFlag = ref(false)
@ -166,8 +168,19 @@ const handleBlur = async () =>{
const patientInfo = await SummaryApi.getPatient(medicalSn.value) const patientInfo = await SummaryApi.getPatient(medicalSn.value)
const patientItemsInfo = await SummaryApi.getPatientItems(medicalSn.value) const patientItemsInfo = await SummaryApi.getPatientItems(medicalSn.value)
formData2.value = patientInfo formData2.value = patientInfo
list.value = patientItemsInfo const isCheck = await SummaryApi.isExistUncheck(medicalSn.value);
console.log('patientInfo',patientInfo) if (isCheck){
await ElMessageBox({
title: '提示',
message: h('p', null, [
h('span', {style: 'color: red'}, '该患者存在检查项目未查或者待查,请全部检查完在进行汇总!'),
]),
})
}else {
list.value = patientItemsInfo
}
} }
const save = async () =>{ const save = async () =>{
await SummaryApi.updateItemsAnalyse(list3.value) await SummaryApi.updateItemsAnalyse(list3.value)