|
@@ -232,9 +232,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- 报错信息 -->
|
|
|
- <bao-cun-xin-xi @clickError="clickError"
|
|
|
- :currentKey="yiZhuData.actOrderNo"/>
|
|
|
+ <BaoCuoXinXi v-if="errorMsg.dialog"
|
|
|
+ @click-error="clickError"/>
|
|
|
<!-- 弹窗医嘱 -->
|
|
|
<yz-dialog :yz-data="yiZhuData" v-if="yzDialogRef" @closed="yzDialogRef = false"/>
|
|
|
</div>
|
|
@@ -255,7 +254,6 @@ import XcOption from "@/components/xiao-chan/select/XcOption";
|
|
|
import XcSelect from "@/components/xiao-chan/select/XcSelect";
|
|
|
import XcCheckbox from "@/components/xiao-chan/checkbox/XcCheckbox";
|
|
|
import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
-import BaoCunXinXi from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/BaoCunXinXi";
|
|
|
import {
|
|
|
queryParam,
|
|
|
yiZhuData,
|
|
@@ -270,7 +268,13 @@ import {
|
|
|
frequencyConfig,
|
|
|
addTempOrderNo,
|
|
|
yiZhuDataInit,
|
|
|
- setOrderDataAndTwinkle, feeKey, YzType, SearchOrdersType, RefFillingValue, errorMsg, YzErrTypeEnum
|
|
|
+ setOrderDataAndTwinkle,
|
|
|
+ feeKey,
|
|
|
+ YzType,
|
|
|
+ SearchOrdersType,
|
|
|
+ RefFillingValue,
|
|
|
+ YzErrTypeEnum,
|
|
|
+ errorMsgFunc, errorMsg
|
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
|
|
|
import {ElMessageBox} from "element-plus";
|
|
|
import YzDialog from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/dialog/YzDialog";
|
|
@@ -296,6 +300,8 @@ import {getServerDate} from "@/utils/moment-utils";
|
|
|
import {CyMessageBox} from "@/components/cy/message-box";
|
|
|
import setDialogToJs from "@/components/js-dialog-comp/useDialogToJs";
|
|
|
import CyComboGrid from "@/components/cy/combo-grid/src/CyComboGrid.vue";
|
|
|
+import BaoCuoXinXi from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/BaoCuoXinXi.vue";
|
|
|
+import {log} from "echarts/types/src/util/log";
|
|
|
|
|
|
const props = withDefaults(defineProps<{
|
|
|
patientInfo: {
|
|
@@ -367,7 +373,7 @@ const searchClickFunc = async (row: SearchOrdersType): Promise<void> => {
|
|
|
if (row.serial !== '00') {
|
|
|
await drugDefaultValue(true, row)
|
|
|
} else {
|
|
|
- await itemDefaultValue(true, row)
|
|
|
+ itemDefaultValue(true, row)
|
|
|
}
|
|
|
await defaultAll(true, row)
|
|
|
}
|
|
@@ -662,9 +668,8 @@ const clearDoctorSOrder = () => {
|
|
|
/**
|
|
|
* 设置医嘱为临时变量,可以新增医嘱,关闭医嘱错误信息的弹窗。
|
|
|
*/
|
|
|
-const setTheTemporaryVariableMedicalOrder = () => {
|
|
|
+const setTheTemporaryVariableMedicalOrder = (clearMsg = true) => {
|
|
|
qingKong()
|
|
|
- errorMsg.value.dialog = false
|
|
|
yiZhuData.value.actOrderNo = addTempOrderNo
|
|
|
openSearch()
|
|
|
}
|
|
@@ -707,15 +712,13 @@ const toAddAnOrder = async () => {
|
|
|
try {
|
|
|
let res = await enterOrders(param)
|
|
|
if (res && res.error) {
|
|
|
- errorMsg.value.type = YzErrTypeEnum.确认错误
|
|
|
- errorMsg.value.dialog = true
|
|
|
- errorMsg.value.data = res.data
|
|
|
+ errorMsgFunc.add(res.data)
|
|
|
return false
|
|
|
}
|
|
|
// 数据完全没问题
|
|
|
if (res != null && res.code && res.code === 200) {
|
|
|
- errorMsg.value.data = {}
|
|
|
let orderNo = yiZhuData.value.actOrderNo
|
|
|
+ errorMsgFunc.delByOrder(orderNo)
|
|
|
await setOrderDataAndTwinkle(orderNo, res.data)
|
|
|
}
|
|
|
setTheTemporaryVariableMedicalOrder()
|
|
@@ -749,9 +752,7 @@ const confirmOrdersClick = async () => {
|
|
|
}
|
|
|
let res = await confirmOrders(props.patientInfo)
|
|
|
if (res !== null && res.error) {
|
|
|
- errorMsg.value.type = YzErrTypeEnum.确认错误
|
|
|
- errorMsg.value.dialog = true
|
|
|
- errorMsg.value.data = res.data
|
|
|
+ errorMsgFunc.add(res.data)
|
|
|
}
|
|
|
} catch (e) {
|
|
|
|
|
@@ -930,6 +931,7 @@ onMounted(() => {
|
|
|
if (clearOrNot) {
|
|
|
qingKong()
|
|
|
}
|
|
|
+ errorMsgFunc.delByOrder(actOrderNo)
|
|
|
})
|
|
|
}).catch(() => {
|
|
|
|