|
|
@@ -3,7 +3,7 @@ import {stringIsBlank, stringNotBlank} from "../../../../utils/blank-utils";
|
|
|
import {ElMessage} from "element-plus";
|
|
|
import {getPatientInfo} from "../../../../api/inpatient/patient";
|
|
|
import {BizException, ExceptionEnum} from "../../../../utils/BizException";
|
|
|
-import {nextTick, ref} from "vue";
|
|
|
+import {nextTick, Ref, ref} from "vue";
|
|
|
import {getServerDateApi} from "../../../../api/public-api";
|
|
|
import {getFormatDatetime} from "../../../../utils/date";
|
|
|
import {isDev} from "../../../../utils/public";
|
|
|
@@ -516,8 +516,14 @@ export const getYzIndex = (key) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+interface yZErrorType {
|
|
|
+ dialog: boolean
|
|
|
+ type: number
|
|
|
+ data: any
|
|
|
+}
|
|
|
+
|
|
|
// 错误信息
|
|
|
-export const errorMsg = ref({
|
|
|
+export const errorMsg: Ref<yZErrorType> = ref({
|
|
|
dialog: false,
|
|
|
type: 1,
|
|
|
data: {}
|
|
|
@@ -525,7 +531,6 @@ export const errorMsg = ref({
|
|
|
|
|
|
// 添加新地会诊申请
|
|
|
export const consultationApplication = ref(false)
|
|
|
-
|
|
|
// 添加手术申请
|
|
|
export const operationApplication = ref([])
|
|
|
// 添加检查申请
|
|
|
@@ -567,7 +572,7 @@ export const clickOnThePatient = async (patNo) => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-const switchPatients = () => {
|
|
|
+const switchPatients = (): boolean => {
|
|
|
let str = ''
|
|
|
if (stringNotBlank(yiZhuData.value.actOrderNo) && yiZhuData.value.statusFlag === '1') {
|
|
|
if (yiZhuData.value.actOrderNo !== addTempOrderNo) {
|
|
|
@@ -601,11 +606,14 @@ const switchPatients = () => {
|
|
|
}
|
|
|
|
|
|
// 是出院带药
|
|
|
-export function isCydy() {
|
|
|
+export function isCydy(): boolean {
|
|
|
return queryParam.value.frequCode === frequCodeEnum.takeMedicine;
|
|
|
}
|
|
|
|
|
|
-export const associateOrders = ref({
|
|
|
+export const associateOrders = ref<{
|
|
|
+ actOrderNo: number | null,
|
|
|
+ associatedGroup: []
|
|
|
+}>({
|
|
|
actOrderNo: null,
|
|
|
associatedGroup: []
|
|
|
})
|
|
|
@@ -668,3 +676,5 @@ export const yzSize = ref({
|
|
|
w: 0,
|
|
|
h: 0
|
|
|
})
|
|
|
+
|
|
|
+export const confirmLoading = ref<boolean>(false)
|