Browse Source

11月8日,打印单

yq1 6 days ago
parent
commit
c41c650c50
1 changed files with 9 additions and 6 deletions
  1. 9 6
      src/pages/main/template/DialysisPrintOrdereightyone.vue

+ 9 - 6
src/pages/main/template/DialysisPrintOrdereightyone.vue View File

1124
 import { EasyScroller } from 'easyscroller'
1124
 import { EasyScroller } from 'easyscroller'
1125
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1125
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1126
 import LabelBox from '../printItem/LabelBox'
1126
 import LabelBox from '../printItem/LabelBox'
1127
-import {Toast} from 'vant'
1127
+import {Toast,Dialog} from 'vant'
1128
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1128
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1129
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1129
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1130
 import print from 'print-js'
1130
 import print from 'print-js'
2088
     getcheckData(val){
2088
     getcheckData(val){
2089
       if(val.length >0){
2089
       if(val.length >0){
2090
         let message = `记录单未填数据:\n${val.join("\n")}`;
2090
         let message = `记录单未填数据:\n${val.join("\n")}`;
2091
-        Toast({
2092
-          duration:0,
2091
+        Dialog.confirm({
2092
+          allowHtml:true,
2093
           message:message,
2093
           message:message,
2094
-          closeOnClick:true,
2095
-          closeOnClickOverlay:true,
2096
-        })
2094
+        }).then(() => {
2095
+
2096
+          })
2097
+          .catch(() => {
2098
+
2099
+          });
2097
        
2100
        
2098
         return message
2101
         return message
2099
       }else{
2102
       }else{