|
|
|
|
@ -281,7 +281,7 @@
|
|
|
|
|
import {
|
|
|
|
|
ref,
|
|
|
|
|
onMounted,
|
|
|
|
|
nextTick
|
|
|
|
|
nextTick,watch
|
|
|
|
|
} from 'vue'
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
@ -293,12 +293,18 @@
|
|
|
|
|
GetLoglist,
|
|
|
|
|
CheckEntrstItemGroup,getMainDetail,SignIn,CancelSign
|
|
|
|
|
} from '@/api/api.js'
|
|
|
|
|
import {
|
|
|
|
|
usePinia
|
|
|
|
|
} from '@/stores/index.js'
|
|
|
|
|
import {
|
|
|
|
|
ElMessage,
|
|
|
|
|
ElMessageBox
|
|
|
|
|
} from 'element-plus'
|
|
|
|
|
import ShenQingDan from '@/components/Yewu/PrintShenQingDan.vue'
|
|
|
|
|
import YuYue202506 from '@/components/Yewu/YuYue202506.vue'
|
|
|
|
|
|
|
|
|
|
let pinia = usePinia()
|
|
|
|
|
|
|
|
|
|
let YuYueVueDialogVisible=ref(false);
|
|
|
|
|
let YuYueKey=ref(0);
|
|
|
|
|
let AutoGroup=ref(true);//自动分组是否开启
|
|
|
|
|
@ -634,9 +640,7 @@
|
|
|
|
|
}
|
|
|
|
|
let loginUserinfo=ref(null);
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem("LoginUserInfo")){
|
|
|
|
|
loginUserinfo.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//打印申请单
|
|
|
|
|
let print_shenqingdan_button=ref(null);
|
|
|
|
|
let shenqingdan_list=ref([])
|
|
|
|
|
@ -750,12 +754,47 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
const getStorageData=()=>{
|
|
|
|
|
if(sessionStorage.getItem("LoginUserInfo")){
|
|
|
|
|
loginUserinfo.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))
|
|
|
|
|
}
|
|
|
|
|
if(loginUserinfo.value && loginUserinfo.value.group!=2){
|
|
|
|
|
getEnableResource()
|
|
|
|
|
}
|
|
|
|
|
//如果是医生,默认填入搜索医生
|
|
|
|
|
if(loginUserinfo.value && loginUserinfo.value.group==7){
|
|
|
|
|
searchInfo.value.doctor=loginUserinfo.value.cn_name
|
|
|
|
|
//填入默认查询体检人
|
|
|
|
|
let default_reg_num=sessionStorage.getItem("default_reg_num")
|
|
|
|
|
if(default_reg_num && default_reg_num!='null' && default_reg_num!=''){
|
|
|
|
|
searchInfo.value.reg_num=default_reg_num
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
|
|
|
|
GetEnableDeviceListFunc()
|
|
|
|
|
GetServiceDate()
|
|
|
|
|
if(pinia.baseInfoStatus){
|
|
|
|
|
getStorageData()
|
|
|
|
|
GetServiceDate()
|
|
|
|
|
}else{
|
|
|
|
|
const unwatch = watch(
|
|
|
|
|
() => pinia.baseInfoStatus,
|
|
|
|
|
(newVal) => {
|
|
|
|
|
if (newVal) {
|
|
|
|
|
console.log(newVal)
|
|
|
|
|
console.log('66666',loginUserinfo.value)
|
|
|
|
|
|
|
|
|
|
getStorageData()
|
|
|
|
|
GetServiceDate()
|
|
|
|
|
unwatch(); // 停止监听
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|