|
@@ -8,7 +8,7 @@
|
|
|
<progress-bar/>
|
|
|
</template>
|
|
|
|
|
|
-<script setup name="App">
|
|
|
+<script setup lang="jsx">
|
|
|
import {useStore} from 'vuex'
|
|
|
import {setCallback, socketErrDialog} from "@/utils/websocket";
|
|
|
import {ElMessageBox, ElNotification} from "element-plus";
|
|
@@ -16,6 +16,8 @@ import sleep from "@/utils/sleep";
|
|
|
import SoctetDialog from "@/components/xiao-chan/websocket/SoctetDialog.vue";
|
|
|
import router from "@/router";
|
|
|
import ProgressBar from "@/components/xiao-chan/progress-bar/ProgressBar.vue";
|
|
|
+import {formatDateToStr} from '@/utils/moment-utils'
|
|
|
+import {ElLink} from 'element-plus'
|
|
|
|
|
|
const store = useStore()
|
|
|
|
|
@@ -65,6 +67,45 @@ const createChannel = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+function checkTheCallbacks({data, isAdd}) {
|
|
|
+ const message = () => {
|
|
|
+ return (
|
|
|
+ <table style="width: 100%">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td style="padding-right: 8px">患者:</td>
|
|
|
+ <td>{data.patientName}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding-right: 8px">检查名称:</td>
|
|
|
+ <td>{data.reqName}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding-right: 8px"> 报告时间:</td>
|
|
|
+ <td>{formatDateToStr(data.reportTime)}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" style="text-ali">
|
|
|
+ <ElLink type="primary" target="_blank"
|
|
|
+ href={`http://172.16.32.122:8081/mReport?REQUISITIONID=${data.reqNo}`}>
|
|
|
+ 查看图像
|
|
|
+ </ElLink>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ ElNotification({
|
|
|
+ title: isAdd ? '检查结果返回' : '修改检查结果',
|
|
|
+ message: message(),
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ type: 'success',
|
|
|
+ position: 'bottom-right',
|
|
|
+ duration: 0
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
|
|
|
createChannel()
|
|
@@ -116,6 +157,7 @@ onMounted(() => {
|
|
|
})
|
|
|
|
|
|
})
|
|
|
+ setCallback('checkTheCallbacks', checkTheCallbacks)
|
|
|
})
|
|
|
|
|
|
|