患者是存在未检或者待查不能汇总
This commit is contained in:
parent
2c21c62b00
commit
355092fc04
@ -42,6 +42,10 @@ export const updateItemsAnalyse = (data: AnalyseVO[]) => {
|
||||
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) => {
|
||||
|
@ -63,9 +63,9 @@
|
||||
<li style="margin-top: 10px">
|
||||
<el-button type="primary" @click="checkAll">全部选中</el-button>
|
||||
</li>
|
||||
<!-- <li style="margin-top: 10px">
|
||||
<el-button type="primary" @click="automaticRollups">自动汇总</el-button>
|
||||
</li>-->
|
||||
<!-- <li style="margin-top: 10px">
|
||||
<el-button type="primary" @click="automaticRollups">自动汇总</el-button>
|
||||
</li>-->
|
||||
<li style="margin-top: 10px">
|
||||
<el-button type="primary" @click="autoEncoding">自动编码</el-button>
|
||||
</li>
|
||||
@ -90,6 +90,7 @@
|
||||
<script setup lang="ts">
|
||||
import * as SummaryApi from '@/api/summary'
|
||||
import {DICT_TYPE, getIntDictOptions} from "@/utils/dict";
|
||||
import {Action, ElMessage} from "element-plus";
|
||||
|
||||
const { t } = useI18n() // 国际化
|
||||
const message = useMessage() // 消息弹窗
|
||||
@ -101,7 +102,8 @@ const list = ref([]);
|
||||
{ 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([]) // 列表的数
|
||||
const list3 = ref([
|
||||
{ id: undefined, itemName: undefined, itemResult: undefined ,analyse: undefined}]) // 列表的数
|
||||
|
||||
const showNumbers = ref(false)
|
||||
const analyseFlag = ref(false)
|
||||
@ -166,8 +168,19 @@ const handleBlur = async () =>{
|
||||
const patientInfo = await SummaryApi.getPatient(medicalSn.value)
|
||||
const patientItemsInfo = await SummaryApi.getPatientItems(medicalSn.value)
|
||||
formData2.value = patientInfo
|
||||
list.value = patientItemsInfo
|
||||
console.log('patientInfo',patientInfo)
|
||||
const isCheck = await SummaryApi.isExistUncheck(medicalSn.value);
|
||||
if (isCheck){
|
||||
await ElMessageBox({
|
||||
title: '提示',
|
||||
message: h('p', null, [
|
||||
h('span', {style: 'color: red'}, '该患者存在检查项目未查或者待查,请全部检查完在进行汇总!'),
|
||||
]),
|
||||
})
|
||||
}else {
|
||||
list.value = patientItemsInfo
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
const save = async () =>{
|
||||
await SummaryApi.updateItemsAnalyse(list3.value)
|
||||
|
Loading…
Reference in New Issue
Block a user