浏览代码

读卡成功后弹窗提示。

lighter 3 年之前
父节点
当前提交
1b982ee36e
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. 4 6
      src/utils/readcard.js

+ 4 - 6
src/utils/readcard.js

@@ -1,4 +1,4 @@
-import { ElMessage } from 'element-plus'
+import { ElMessageBox } from 'element-plus'
 import { readCardCallback } from '../api/medical-insurance/si-inpatient'
 
 export function prepareReadCard(type, inpatientNo, bizType) {
@@ -9,11 +9,9 @@ export function prepareReadCard(type, inpatientNo, bizType) {
 const startReadCard = (param) => {
   window.open('ReadCard://' + param, '_self')
   readCardCallback(param).then((res) => {
-    ElMessage({
-      message: res.message,
+    ElMessageBox.alert(res.message, '提示', {
       type: 'success',
-      duration: 3000,
-      showClose: true,
-    })
+      showCancelButton: false,
+    }).then(() => {})
   })
 }