|
@@ -1,42 +1,33 @@
|
|
|
<template>
|
|
|
- <FloatingFrame v-model="errorMsg.dialog"
|
|
|
- title="错误信息"
|
|
|
- :x="77"
|
|
|
- :y="494"
|
|
|
- width="420px">
|
|
|
+ <FloatingFrame
|
|
|
+ v-model="errorMsg.dialog"
|
|
|
+ title="错误信息"
|
|
|
+ :x="77"
|
|
|
+ :y="494"
|
|
|
+ width="420px"
|
|
|
+ >
|
|
|
<TransitionGroup name="list" tag="div" class="box">
|
|
|
<div
|
|
|
- v-for="(value, key) in errorMsg.data "
|
|
|
- class="message"
|
|
|
- :key="`error-${key}`"
|
|
|
- :class="yiZhuData.actOrderNo == key ? 'current_selected' : '' "
|
|
|
- @click="divClick(key,value)">
|
|
|
+ v-for="(value, key) in errorMsg.data"
|
|
|
+ class="message"
|
|
|
+ :key="`error-${key}`"
|
|
|
+ :class="yiZhuData.actOrderNo == key ? 'current_selected' : ''"
|
|
|
+ @click="divClick(key, value)"
|
|
|
+ >
|
|
|
<div class="name">
|
|
|
- <span
|
|
|
- @click.stop.prevent="errorMsgFunc.delByOrder(key)">
|
|
|
- 移除
|
|
|
- </span>
|
|
|
- 医嘱号: {{ key }}
|
|
|
- 序号:{{ getYzIndex(key) + 1 }}
|
|
|
+ <span @click.stop.prevent="errorMsgFunc.delByOrder(key)"> 移除 </span>
|
|
|
+ 医嘱号: {{ key }} 序号:{{ getYzIndex(key) + 1 }}
|
|
|
</div>
|
|
|
- <div v-if="value?.error"
|
|
|
- class="error">
|
|
|
- <div>
|
|
|
- 错误信息:
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-for="(item,index) in value?.error">
|
|
|
+ <div v-if="value?.error" class="error">
|
|
|
+ <div>错误信息:</div>
|
|
|
+ <div v-for="(item, index) in value?.error">
|
|
|
{{ index + 1 }}、 {{ item }}
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div v-if="value?.warning"
|
|
|
- class="warning">
|
|
|
- <div>
|
|
|
- 警告信息:
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-for="(item,index) in value?.warning">
|
|
|
+ <div v-if="value?.warning" class="warning">
|
|
|
+ <div>警告信息:</div>
|
|
|
+ <div v-for="(item, index) in value?.warning">
|
|
|
{{ index + 1 }}、 {{ item }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -50,28 +41,27 @@ import {
|
|
|
errorMsg,
|
|
|
errorMsgFunc,
|
|
|
getYzIndex,
|
|
|
- yiZhuData
|
|
|
+ yiZhuData,
|
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
|
|
|
-import XEUtils from 'xe-utils'
|
|
|
+import XEUtils from "xe-utils";
|
|
|
import FloatingFrame from "@/components/cy/floating-frame/FloatingFrame.vue";
|
|
|
|
|
|
-
|
|
|
const emit = defineEmits<{
|
|
|
- (e: "clickError", orderNo: number): void
|
|
|
-}>()
|
|
|
+ (e: "clickError", orderNo: number): void;
|
|
|
+}>();
|
|
|
|
|
|
function divClick(key: any, data: any) {
|
|
|
if (data?.isDel) {
|
|
|
- errorMsgFunc.delByOrder(key)
|
|
|
+ errorMsgFunc.delByOrder(key);
|
|
|
} else {
|
|
|
- clickToModify(key)
|
|
|
+ clickToModify(key);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
const clickToModify = (key: any) => {
|
|
|
- if (yiZhuData.value.actOrderNo === key) return
|
|
|
- emit('clickError', XEUtils.toNumber(key))
|
|
|
-}
|
|
|
+ if (yiZhuData.value.actOrderNo === key) return;
|
|
|
+ emit("clickError", XEUtils.toNumber(key));
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
@@ -87,7 +77,6 @@ const clickToModify = (key: any) => {
|
|
|
.name {
|
|
|
background-color: #0a84fd !important;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
.message {
|
|
@@ -122,7 +111,6 @@ const clickToModify = (key: any) => {
|
|
|
border-radius: 5px;
|
|
|
background-color: #f5e1b8;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -145,5 +133,4 @@ const clickToModify = (key: any) => {
|
|
|
opacity: 0;
|
|
|
transform: translateX(30px);
|
|
|
}
|
|
|
-
|
|
|
</style>
|