Merge branch 'main' of http://114.55.171.231:3000/lxd/inspect-front
This commit is contained in:
commit
341679b32d
@ -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) => {
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user