Browse Source

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 3 weeks ago
parent
commit
1f3dc4131a

+ 12 - 4
src/pages/main/template/DialysisPrintOrderServentyFour.vue View File

349
 import { jsGetAge, uParseTime } from "@/utils/tools";
349
 import { jsGetAge, uParseTime } from "@/utils/tools";
350
 import LabelBox from "../printItem/LabelBox";
350
 import LabelBox from "../printItem/LabelBox";
351
 import { fetchAllAdminUsers } from "@/api/doctor";
351
 import { fetchAllAdminUsers } from "@/api/doctor";
352
+import {Dialog} from 'vant'
352
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
353
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
353
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
354
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
354
 import print from "print-js";
355
 import print from "print-js";
1063
     },
1064
     },
1064
     getcheckData(val){
1065
     getcheckData(val){
1065
       if(val.length >0){
1066
       if(val.length >0){
1066
-        const a = val.join(',')
1067
-        console.log('a',a);
1068
-        this.$toast(a +" 未填");
1069
-        return a
1067
+        let message = `记录单未填数据:\n${val.join("\n")}`;
1068
+        Dialog.confirm({
1069
+          allowHtml:true,
1070
+          message:message,
1071
+        }).then(() => {
1072
+
1073
+          })
1074
+          .catch(() => {
1075
+
1076
+          });
1077
+        return message
1070
       }else{
1078
       }else{
1071
         this.$toast('核对完成');
1079
         this.$toast('核对完成');
1072
       }
1080
       }

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

417
 import { jsGetAge, uParseTime } from "@/utils/tools";
417
 import { jsGetAge, uParseTime } from "@/utils/tools";
418
 import LabelBox from "../printItem/LabelBox";
418
 import LabelBox from "../printItem/LabelBox";
419
 import { fetchAllAdminUsers } from "@/api/doctor";
419
 import { fetchAllAdminUsers } from "@/api/doctor";
420
-import {Toast} from 'vant'
420
+import {Toast,Dialog} from 'vant'
421
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
421
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
422
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
422
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
423
 import print from "print-js";
423
 import print from "print-js";
1154
     getcheckData(val){
1154
     getcheckData(val){
1155
       if(val.length >0){
1155
       if(val.length >0){
1156
         let message = `记录单未填数据:\n${val.join("\n")}`;
1156
         let message = `记录单未填数据:\n${val.join("\n")}`;
1157
-        Toast({
1158
-          duration:0,
1157
+        Dialog.confirm({
1158
+          allowHtml:true,
1159
           message:message,
1159
           message:message,
1160
-          closeOnClick:true,
1161
-          closeOnClickOverlay:true,
1162
-        })
1160
+        }).then(() => {
1161
+
1162
+          })
1163
+          .catch(() => {
1164
+
1165
+          });
1163
         return message
1166
         return message
1164
       }else{
1167
       }else{
1165
         this.$toast('核对完成')
1168
         this.$toast('核对完成')

+ 21 - 12
src/pages/main/template/DialysisPrintOrderSeventysix.vue View File

924
 import { getDataConfig } from '@/utils/data'
924
 import { getDataConfig } from '@/utils/data'
925
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
925
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
926
 import LabelBox from '../printItem/LabelBox'
926
 import LabelBox from '../printItem/LabelBox'
927
-
927
+import {Dialog} from 'vant'
928
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
928
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
929
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
929
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
930
 import print from 'print-js'
930
 import print from 'print-js'
1178
       ) {
1178
       ) {
1179
         const obj30 = '首剂'
1179
         const obj30 = '首剂'
1180
         checkDate.push(obj30);
1180
         checkDate.push(obj30);
1181
-      } if (
1182
-        this.prescription.anticoagulant_weichi == "" &&
1183
-        this.prescription.anticoagulant != 1
1184
-      ) {
1185
-        const obj31 = '维持'
1186
-        checkDate.push(obj31);
1187
-      } if (
1181
+      } 
1182
+      // if (
1183
+      //   this.prescription.anticoagulant_weichi == "" &&
1184
+      //   this.prescription.anticoagulant != 1
1185
+      // ) {
1186
+      //   const obj31 = '维持'
1187
+      //   checkDate.push(obj31);
1188
+      // } 
1189
+      if (
1188
         this.prescription.anticoagulant_zongliang == "" &&
1190
         this.prescription.anticoagulant_zongliang == "" &&
1189
         this.prescription.anticoagulant != 1 &&
1191
         this.prescription.anticoagulant != 1 &&
1190
         this.prescription.anticoagulant != 5
1192
         this.prescription.anticoagulant != 5
1854
     },
1856
     },
1855
     getcheckData(val){
1857
     getcheckData(val){
1856
       if(val.length >0){
1858
       if(val.length >0){
1857
-        const a = val.join(',')
1858
-        console.log('a',a);
1859
-        this.$toast(a +" 未填");
1860
-        return a
1859
+        let message = `记录单未填数据:\n${val.join("\n")}`;
1860
+        Dialog.confirm({
1861
+          allowHtml:true,
1862
+          message:message,
1863
+        }).then(() => {
1864
+
1865
+          })
1866
+          .catch(() => {
1867
+
1868
+          });
1869
+        return message
1861
       }else{
1870
       }else{
1862
         this.$toast('核对完成')
1871
         this.$toast('核对完成')
1863
       }
1872
       }

+ 3 - 3
src/pages/main/template/DialysisPrintOrdereighty.vue View File

175
                           : ""
175
                           : ""
176
                       }}
176
                       }}
177
                     </div>
177
                     </div>
178
-                    
178
+                    /
179
                     <div class="under_line" style="width: 50px; text-align: center">
179
                     <div class="under_line" style="width: 50px; text-align: center">
180
                       {{
180
                       {{
181
                         predialysis.diastolic_blood_pressure
181
                         predialysis.diastolic_blood_pressure
568
 
568
 
569
                     <tr v-for="(monitor, monindex) in monitors" :key="monindex">
569
                     <tr v-for="(monitor, monindex) in monitors" :key="monindex">
570
                       <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
570
                       <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
571
-                      <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "": ""}}
571
+                      <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
572
                         {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
572
                         {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
573
                       <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
573
                       <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
574
                       <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
574
                       <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
768
                     </span>
768
                     </span>
769
                       <span v-else></span>
769
                       <span v-else></span>
770
                   </div>
770
                   </div>
771
-                  
771
+                  /
772
                   <div class="under_line"
772
                   <div class="under_line"
773
                     style="width: 50px; text-align: center"
773
                     style="width: 50px; text-align: center"
774
                   >
774
                   >

+ 12 - 12
src/pages/main/template/DialysisPrintOrdereightytwo.vue View File

654
 import { getDataConfig } from '@/utils/data'
654
 import { getDataConfig } from '@/utils/data'
655
 import { jsGetAge, uParseTime } from '@/utils/tools'
655
 import { jsGetAge, uParseTime } from '@/utils/tools'
656
 import LabelBox from '../printItem/LabelBox'
656
 import LabelBox from '../printItem/LabelBox'
657
-import {Toast} from 'vant'
657
+import {Dialog} from 'vant'
658
 import { EasyScroller } from 'easyscroller'
658
 import { EasyScroller } from 'easyscroller'
659
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
659
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
660
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
660
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
805
         const obj0 = '血液净化方式'
805
         const obj0 = '血液净化方式'
806
         checkDate.push(obj0)
806
         checkDate.push(obj0)
807
       }
807
       }
808
-      if(this.prescription.dialyzer_perfusion_apparatus ==''){
808
+      if(this.prescription.dialysis_dialyszers =='' && this.prescription.dialysis_irrigation == ''){
809
         const obj = '血液净化器类型'
809
         const obj = '血液净化器类型'
810
         checkDate.push(obj)
810
         checkDate.push(obj)
811
       } if(this.prescription.dialysate_formulation_name ==''){
811
       } if(this.prescription.dialysate_formulation_name ==''){
817
       } if(this.predialysis.blood_access_part_opera_name ==''){
817
       } if(this.predialysis.blood_access_part_opera_name ==''){
818
         const obj3 = '血管通路'
818
         const obj3 = '血管通路'
819
         checkDate.push(obj3)
819
         checkDate.push(obj3)
820
-      } if(this.predialysis.catheter == ''){
820
+      } if(this.predialysis.catheter == '' && this.predialysis.internal_fistula ==''){
821
         const obj4 = '透前导管'
821
         const obj4 = '透前导管'
822
         checkDate.push(obj4)
822
         checkDate.push(obj4)
823
-      } if(this.predialysis.internal_fistula ==''){
823
+      } if(this.predialysis.internal_fistula ==''&&this.predialysis.catheter == ''){
824
         const obj5 = '透前内瘘'
824
         const obj5 = '透前内瘘'
825
         checkDate.push(obj5)
825
         checkDate.push(obj5)
826
       } if(this.prescription.anticoagulant == 0){
826
       } if(this.prescription.anticoagulant == 0){
947
       } if(this.summary.dialysis_summary == ""){
947
       } if(this.summary.dialysis_summary == ""){
948
         const obj41 = '透析小结'
948
         const obj41 = '透析小结'
949
         checkDate.push(obj41)
949
         checkDate.push(obj41)
950
-      } if(this.summary.special_record == ""){
951
-        const obj42 = '病情记录'
952
-        checkDate.push(obj42)
953
       } if(this.tableAdvice.length > 0){
950
       } if(this.tableAdvice.length > 0){
954
         this.tableAdvice.map((item) =>{
951
         this.tableAdvice.map((item) =>{
955
           if(item.id > 0 && (item.created_time || item.start_time)){
952
           if(item.id > 0 && (item.created_time || item.start_time)){
1589
     getcheckData(val){
1586
     getcheckData(val){
1590
       if(val.length >0){
1587
       if(val.length >0){
1591
         let message = `记录单未填数据:\n${val.join("\n")}`;
1588
         let message = `记录单未填数据:\n${val.join("\n")}`;
1592
-        Toast({
1593
-          duration:0,
1589
+        Dialog.confirm({
1590
+          allowHtml:true,
1594
           message:message,
1591
           message:message,
1595
-          closeOnClick:true,
1596
-          closeOnClickOverlay:true,
1597
-        })
1592
+        }).then(() => {
1593
+
1594
+          })
1595
+          .catch(() => {
1596
+
1597
+          });
1598
         return message
1598
         return message
1599
       }else{
1599
       }else{
1600
         this.$toast('核对完成');
1600
         this.$toast('核对完成');