Parcourir la source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx il y a 3 ans
Parent
révision
79b3b8e407
51 fichiers modifiés avec 1217 ajouts et 433 suppressions
  1. 7 7
      src/api/dialysis_record.js
  2. 1 3
      src/api/his/his.js
  3. 47 7
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue
  4. 2 0
      src/xt_pages/dialysis/components/dialysisParametersDialog.vue
  5. 9 1
      src/xt_pages/dialysis/details/BasicInfor.vue
  6. 2 2
      src/xt_pages/dialysis/details/assessmentAfter.vue
  7. 1 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  8. 4 4
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  9. 2 0
      src/xt_pages/dialysis/dialysisDrugs_print.vue
  10. 7 1
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  11. 7 1
      src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue
  12. 67 33
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  13. 19 4
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyFive.vue
  14. 17 8
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyFour.vue
  15. 62 32
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  16. 88 30
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue
  17. 54 2
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue
  18. 6 1
      src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue
  19. 8 1
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  20. 6 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  21. 7 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue
  22. 6 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  23. 8 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  24. 6 1
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  25. 12 2
      src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue
  26. 65 31
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyEight.vue
  27. 63 33
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFour.vue
  28. 62 32
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue
  29. 49 22
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  30. 64 2
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtySeven.vue
  31. 65 18
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue
  32. 7 1
      src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue
  33. 12 3
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  34. 27 3
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue
  35. 8 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue
  36. 10 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue
  37. 7 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  38. 29 5
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue
  39. 11 5
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue
  40. 5 1
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  41. 7 1
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  42. 97 44
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  43. 13 2
      src/xt_pages/hospitalStation/doctorDesk.vue
  44. 17 16
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  45. 1 1
      src/xt_pages/stock/drugs/drugStockInOrderEdit.vue
  46. 10 7
      src/xt_pages/stock/drugs/inventoryPrint.vue
  47. 4 3
      src/xt_pages/stock/inventory.vue
  48. 1 0
      src/xt_pages/stock/inventoryPrint.vue
  49. 2 2
      src/xt_pages/stock/stockPrint.vue
  50. 51 18
      src/xt_pages/stock/stockQuery.vue
  51. 75 31
      src/xt_pages/workforce/remind_print_setting.vue

+ 7 - 7
src/api/dialysis_record.js Voir le fichier

@@ -36,7 +36,7 @@ export function editMonitor(patient_id, schedule_date, data, mode) {
36 36
     schedule_date: schedule_date,
37 37
     mode: mode
38 38
   }
39
-  console.log('data=====', data)
39
+
40 40
   return request({
41 41
     url: '/api/dislysis/monitor/edit',
42 42
     method: 'post',
@@ -47,7 +47,7 @@ export function editMonitor(patient_id, schedule_date, data, mode) {
47 47
   })
48 48
 }
49 49
 
50
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode,washpipe_nurse,change_nurse,difficult_puncture_nurse,new_fistula_nurse) {
50
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse) {
51 51
   var params = {
52 52
     patient_id: patient_id,
53 53
     date: schedule_date,
@@ -58,12 +58,12 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
58 58
     lood_drawing: lood_drawing,
59 59
     schedual_type: schedual_type,
60 60
     mode: mode,
61
-    washpipe_nurse:washpipe_nurse,
62
-    change_nurse:change_nurse,
63
-    difficult_puncture_nurse:difficult_puncture_nurse,
64
-    new_fistula_nurse:new_fistula_nurse
61
+    washpipe_nurse: washpipe_nurse,
62
+    change_nurse: change_nurse,
63
+    difficult_puncture_nurse: difficult_puncture_nurse,
64
+    new_fistula_nurse: new_fistula_nurse
65 65
   }
66
-  console.log("params",params)
66
+  console.log('params', params)
67 67
   return request({
68 68
     url: '/api/dialysis/start_record',
69 69
     method: 'post',

+ 1 - 3
src/api/his/his.js Voir le fichier

@@ -41,6 +41,7 @@ export function getDoctors() {
41 41
 }
42 42
 
43 43
 export function createHisPrescription(data, params) {
44
+  console.log('param2323232323233223233223332322323', params)
44 45
   return request({
45 46
     url: '/api/hisprescription/create',
46 47
     method: 'post',
@@ -516,7 +517,6 @@ export function GetSummarySettle(params) {
516 517
   })
517 518
 }
518 519
 
519
-
520 520
 export function GetLabelList(params) {
521 521
   return request({
522 522
     url: '/api/his/inspectionlist/get',
@@ -525,8 +525,6 @@ export function GetLabelList(params) {
525 525
   })
526 526
 }
527 527
 
528
-
529
-
530 528
 export function GetLabelInfo(params) {
531 529
   return request({
532 530
     url: '/api/his/inspectioninfo/get',

+ 47 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue Voir le fichier

@@ -454,6 +454,38 @@
454 454
                             <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
455 455
                         </td>
456 456
                     </tr>
457
+                    <tr v-for="(advice, advice_index) in record.his_project" :key="advice_index">
458
+                        <td height="32px;padding:1px 1px">
459
+                            <span v-if="advice.start_time">
460
+                                {{ getTime(advice.start_time, "{h}:{i}") }}
461
+                            </span>
462
+                        </td>
463
+                        <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
464
+                            <span style="padding-left:5px;display:inline-block;">
465
+                              <span>{{ advice && advice.project ? advice.project.project_name : '' }}</span>
466
+                            </span>
467
+                        </td>
468
+
469
+                        <td height="32px">
470
+                            <span v-if="setAdminUserES(advice, 'doctor') == ''">
471
+                                {{getAdminUser(advice, 'doctor')}}
472
+                            </span>
473
+                            <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
474
+                                <img style="height:30px;" :src="setAdminUserES(advice, 'doctor')" alt srcset />
475
+                            </span>
476
+                        </td>
477
+                        <td height="32px">
478
+                            <span v-if="setAdminUserES(advice, 'execution_staff') == ''">
479
+                                {{getAdminUser(advice, 'execution_staff')}}
480
+                            </span>
481
+                            <span v-else>
482
+                                <img style="height:30px;" :src="setAdminUserES(advice, 'execution_staff')" alt srcset />
483
+                            </span>
484
+                        </td>
485
+                        <td height="32px">
486
+                            <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
487
+                        </td>
488
+                    </tr>
457 489
                     <!-- </template> -->
458 490
                     </tbody>
459 491
                 </table>
@@ -503,7 +535,7 @@
503 535
                         </div>
504 536
                     </div>
505 537
                 </div>
506
-                <div class="row" style="border-bottom:1px solid #000;display:flex;margin-top:150px;">
538
+                <div class="row" style="border-bottom:1px solid #000;display:flex;margin-top:50px;">
507 539
                     <div class="inline_block" style="width:33%">
508 540
                         医生签名:
509 541
                         <div class="under_line" style="width: 70px;text-align: center;">
@@ -711,26 +743,34 @@ export default {
711 743
             if (this.records[recordIndex].patient.user_org_id == 9535) {
712 744
               this.records[recordIndex].isShowZero = true
713 745
             }
746
+
747
+            let his_project = []
748
+            this.records[recordIndex].his_project.map(item => {
749
+              if(item.type == 2){
750
+                his_project.push(item)
751
+              }
752
+            })
753
+            this.records[recordIndex].his_project = his_project
714 754
             
715 755
             var delghThree = 0
716 756
             if (
717 757
               this.records[recordIndex].his_advices &&
718
-              this.records[recordIndex].his_advices.length < 6
758
+              this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length < 6
719 759
             ) {
720
-              delghThree = 6 - this.records[recordIndex].his_advices.length
760
+              delghThree = 6 - (this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length)
721 761
             } else {
722 762
               delghThree = 0
723 763
             }
724 764
 
725 765
             if (delghThree > 0) {
726 766
               if (
727
-                typeof this.records[recordIndex].his_advices === 'undefined' ||
728
-                this.records[recordIndex].his_advices == null
767
+                typeof this.records[recordIndex].his_project === 'undefined' ||
768
+                this.records[recordIndex].his_project == null
729 769
               ) {
730
-                this.records[recordIndex].his_advices = []
770
+                this.records[recordIndex].his_project = []
731 771
               }
732 772
               for (let index = 0; index < delghThree; index++) {
733
-                this.records[recordIndex].his_advices.push([])
773
+                this.records[recordIndex].his_project.push([])
734 774
               }
735 775
             }
736 776
             this.records[recordIndex].his_advices = this.records[recordIndex].his_advices.sort((a,b)=>{ return a.id-b.id})

+ 2 - 0
src/xt_pages/dialysis/components/dialysisParametersDialog.vue Voir le fichier

@@ -33,6 +33,7 @@
33 33
                 <template slot-scope="scope">
34 34
                    <span v-if="scope.row.anticoagulant==1">无肝素</span>
35 35
                    <span v-if="scope.row.anticoagulant==2">普通肝素</span>
36
+                   <span v-if="scope.row.anticoagulant==3">低分子肝素</span>
36 37
                    <span v-if="scope.row.anticoagulant==4">阿加曲班</span>
37 38
                    <span v-if="scope.row.anticoagulant==5">枸橼酸钠</span>
38 39
                    <span v-if="scope.row.anticoagulant==6">低分子肝素钙</span>
@@ -40,6 +41,7 @@
40 41
                    <span v-if="scope.row.anticoagulant==8">依诺肝素</span>
41 42
                    <span v-if="scope.row.anticoagulant==9">达肝素</span>
42 43
                    <span v-if="scope.row.anticoagulant==10">体外抗凝</span>
44
+                   <span v-if="scope.row.anticoagulant==11">那曲肝素</span>
43 45
                 </template>
44 46
             </el-table-column>
45 47
             <el-table-column align="center" prop="name"label="数量">

+ 9 - 1
src/xt_pages/dialysis/details/BasicInfor.vue Voir le fichier

@@ -29,7 +29,7 @@
29 29
       </li>
30 30
       <li>
31 31
         <label>年龄:</label>
32
-        <span>{{ getAge(patient) }}</span>
32
+        <span>{{ tranAge(patient)}}</span>
33 33
       </li>
34 34
       <li>
35 35
         <label>透析号 : </label>
@@ -112,6 +112,7 @@ export default {
112 112
   },
113 113
   methods: {
114 114
     getAge: function(val) {
115
+      console.log("val323232323223322332323",val)
115 116
       if (val.id_card_no) {
116 117
         var thisLen = val.id_card_no.length
117 118
 
@@ -132,12 +133,19 @@ export default {
132 133
         return age
133 134
       }
134 135
     },
136
+   tranAge(val) {
137
+        if(val.birthday){
138
+          var birth = uParseTime(val.birthday, '{y}-{m}-{d}');
139
+          return jsGetAge(birth, '-');
140
+        }
141
+    },
135 142
 
136 143
     stepState: function() {
137 144
       return parseInt(Math.random() * 1000 + '') % 2 == 1
138 145
     }
139 146
   },
140 147
   created() {
148
+    // console.log("hh23323233232332233223",this.$store.getters.xt_user.org.id)
141 149
     this.dialysis_time = this.$route.query.date ? parseTime(this.$route.query.date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
142 150
   }
143 151
 }

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue Voir le fichier

@@ -17,8 +17,8 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.org_id == 9555) " >ml</span>
21
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.org_id == 9555 " >L</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 44 || this.$store.getters.xt_user.template_info.org_id == 9555) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 44 &&  this.$store.getters.xt_user.template_info.org_id == 9555 " >L</span>
22 22
         </li>
23 23
         <li v-if="isShow('导管')">
24 24
           <label>导管 : </label>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Voir le fichier

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>

+ 4 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Voir le fichier

@@ -1610,7 +1610,7 @@
1610 1610
           'hemodialysis',
1611 1611
           'dialyzer_perfusion_apparatus'
1612 1612
         )
1613
-        console.log('3333333', this.dialyzerPerfusionApparatus)
1613
+        // console.log('3333333', this.dialyzerPerfusionApparatus)
1614 1614
         this.bloods = getDataConfig(
1615 1615
           'hemodialysis',
1616 1616
           'blood'
@@ -1968,7 +1968,7 @@
1968 1968
         if (his_is_open == 1) {
1969 1969
           this.is_open = 0
1970 1970
         }
1971
-        
1971
+
1972 1972
         if(this.$store.getters.xt_user.org.id == 10101){
1973 1973
           if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
1974 1974
             var date = new Date(this.predialysis.created_time * 1000)
@@ -2056,7 +2056,7 @@
2056 2056
             }
2057 2057
           }
2058 2058
         }
2059
-        
2059
+
2060 2060
 
2061 2061
         if (pre.anticoagulant == 3) {
2062 2062
           this.dialysisPrescription.anticoagulant = '低分子肝素'
@@ -3513,7 +3513,7 @@
3513 3513
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3514 3514
           this.dialysisPrescription.anticoagulant_zongliang = ''
3515 3515
         }
3516
-        
3516
+
3517 3517
       },
3518 3518
       'dialysisPrescription.anticoagulant_shouji': function() {
3519 3519
         let dialysis_duration_minute = 0

+ 2 - 0
src/xt_pages/dialysis/dialysisDrugs_print.vue Voir le fichier

@@ -33,6 +33,7 @@
33 33
                                     <td>
34 34
                                       <span v-if="item.anticoagulant==1">无肝素</span>
35 35
                                       <span v-if="item.anticoagulant==2">普通肝素</span>
36
+                                      <span v-if="item.anticoagulant==3">低分子肝素</span>
36 37
                                       <span v-if="item.anticoagulant==4">阿加曲班</span>
37 38
                                       <span v-if="item.anticoagulant==5">枸橼酸钠</span>
38 39
                                       <span v-if="item.anticoagulant==6">低分子肝素钙</span>
@@ -40,6 +41,7 @@
40 41
                                       <span v-if="item.anticoagulant==8">依诺肝素</span>
41 42
                                       <span v-if="item.anticoagulant==9">达肝素</span>
42 43
                                       <span v-if="item.anticoagulant==10">体外抗凝</span> 
44
+                                      <span v-if="item.anticoagulant==11">那曲肝素</span> 
43 45
                                     </td>
44 46
                                     <td>
45 47
                                       {{item.count}}

+ 7 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name"></div>
@@ -1369,6 +1369,7 @@ export default {
1369 1369
                 if(it.id == item.monitoring_nurse){
1370 1370
                   if(it.user_type == 2){
1371 1371
                     num++
1372
+                    this.$message.closeAll()
1372 1373
                     this.$message.error('存在不是护士保存的监测')
1373 1374
                   }
1374 1375
                 }
@@ -1383,26 +1384,31 @@ export default {
1383 1384
                 if(it.id == item.advice_doctor){
1384 1385
                   if(it.user_type == 3){
1385 1386
                     num++
1387
+                    this.$message.closeAll()
1386 1388
                     this.$message.error('存在不是医生保存的医嘱')
1387 1389
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1388 1390
                     if(it.user_type == 2){
1389 1391
                       num++
1392
+                      this.$message.closeAll()
1390 1393
                       this.$message.error('存在不是护士执行的医嘱')
1391 1394
                     }
1392 1395
                   }else if(it.id == item.checker && item.checker > 0){
1393 1396
                     if(it.user_type == 2){
1394 1397
                       num++
1398
+                      this.$message.closeAll()
1395 1399
                       this.$message.error('存在不是护士核对的医嘱')
1396 1400
                     }
1397 1401
                   }
1398 1402
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1399 1403
                   if(it.user_type == 2){
1400 1404
                     num++
1405
+                    this.$message.closeAll()
1401 1406
                     this.$message.error('存在不是护士执行的医嘱')
1402 1407
                   }
1403 1408
                 }else if(it.id == item.checker && item.checker > 0){
1404 1409
                   if(it.user_type == 2){
1405 1410
                     num++
1411
+                    this.$message.closeAll()
1406 1412
                     this.$message.error('存在不是护士核对的医嘱')
1407 1413
                   }
1408 1414
                 }

+ 7 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5 5
       <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content">
6 6
         <div style="display:inline-block;width:100%;text-align:center;">
@@ -1266,6 +1266,7 @@ export default {
1266 1266
                 if(it.id == item.monitoring_nurse){
1267 1267
                   if(it.user_type == 2){
1268 1268
                     num++
1269
+                    this.$message.closeAll()
1269 1270
                     this.$message.error('存在不是护士保存的监测')
1270 1271
                   }
1271 1272
                 }
@@ -1280,26 +1281,31 @@ export default {
1280 1281
                 if(it.id == item.advice_doctor){
1281 1282
                   if(it.user_type == 3){
1282 1283
                     num++
1284
+                    this.$message.closeAll()
1283 1285
                     this.$message.error('存在不是医生保存的医嘱')
1284 1286
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1285 1287
                     if(it.user_type == 2){
1286 1288
                       num++
1289
+                      this.$message.closeAll()
1287 1290
                       this.$message.error('存在不是护士执行的医嘱')
1288 1291
                     }
1289 1292
                   }else if(it.id == item.checker && item.checker > 0){
1290 1293
                     if(it.user_type == 2){
1291 1294
                       num++
1295
+                      this.$message.closeAll()
1292 1296
                       this.$message.error('存在不是护士核对的医嘱')
1293 1297
                     }
1294 1298
                   }
1295 1299
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1296 1300
                   if(it.user_type == 2){
1297 1301
                     num++
1302
+                    this.$message.closeAll()
1298 1303
                     this.$message.error('存在不是护士执行的医嘱')
1299 1304
                   }
1300 1305
                 }else if(it.id == item.checker && item.checker > 0){
1301 1306
                   if(it.user_type == 2){
1302 1307
                     num++
1308
+                    this.$message.closeAll()
1303 1309
                     this.$message.error('存在不是护士核对的医嘱')
1304 1310
                   }
1305 1311
                 }

+ 67 - 33
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
       
@@ -1822,7 +1822,7 @@ export default {
1822 1822
           this.$message.error('透前体温未填')
1823 1823
         }else if(this.receiverTreatmentAccess.posture == 0){
1824 1824
           this.$message.error('体位未填')
1825
-        }else if(monitors[0] && (this.monitors[0].systolic_blood_pressure.systolic_blood_pressure == 0 || this.monitors[0].systolic_blood_pressure.diastolic_blood_pressure == 0)){
1825
+        }else if(this.monitors[0] && (this.monitors[0].systolic_blood_pressure == 0 || this.monitors[0].diastolic_blood_pressure == 0)){
1826 1826
           this.$message.error('透前血压未填完整')
1827 1827
         }else if(this.predialysis.catheter == ''){
1828 1828
           this.$message.error('导管穿刺口未填')
@@ -1910,46 +1910,80 @@ export default {
1910 1910
           this.$message.error('治疗小结未填')
1911 1911
         }else if(this.prescription.prescription_doctor == 0){
1912 1912
           this.$message.error('医生未填')
1913
-        }else if(this.dialysisOrder.start_nurse == 0){
1913
+        }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1914 1914
           this.$message.error('责任护士未填')
1915
-        }else if(this.dialysisOrder.puncture_nurse == 0){
1915
+        }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1916 1916
           this.$message.error('穿刺护士未填')
1917
+        }else if (this.dialysisOrder == null && this.check.creater == 0) {
1918
+          this.$message.error('核对护士未填')
1919
+        }else if (this.dialysisOrder != null && this.check.creater == 0) {
1920
+          this.$message.error('核对护士未填')
1917 1921
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1918 1922
           this.$message.error('核对护士未填')
1919 1923
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1920 1924
           this.$message.error('核对护士未填')
1921
-        }else if(this.monitors.length > 0){
1922
-          this.monitors.map(item => {
1923
-            if(item.id > 0 && item.operate_time){
1924
-              this.users.map(it => {
1925
-                if(it.id == item.monitoring_nurse){
1926
-                  if(it.type != 3){
1927
-                    this.$message.error('存在不是护士保存的监测')
1928
-                  }
1929
-                }
1930
-              })
1931
-            }
1932
-          })
1933
-        }else if(this.tableAdvice.length > 0){
1934
-          this.tableAdvice.map(item => {
1935
-            if(item.id > 0 && item.created_time){
1936
-              this.users.map(it => {
1937
-                if(it.id == item.advice_doctor){
1938
-                  if(it.type != 2){
1939
-                    this.$message.error('存在不是医生保存的医嘱')
1940
-                  }
1941
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1942
-                  if(it.type != 3){
1943
-                    this.$message.error('存在不是护士执行的医嘱')
1925
+        }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1926
+          let num = 0
1927
+          if(this.monitors.length > 0){
1928
+            this.monitors.map(item => {
1929
+              if(item.id > 0 && item.operate_time){
1930
+                this.users.map(it => {
1931
+                  if(it.id == item.monitoring_nurse){
1932
+                    if(it.user_type == 2){
1933
+                      num++
1934
+                      this.$message.closeAll()
1935
+                      this.$message.error('存在不是护士保存的监测')
1936
+                    }
1944 1937
                   }
1945
-                }else if(it.id == item.checker && item.checker > 0){
1946
-                  if(it.type != 3){
1947
-                    this.$message.error('存在不是护士核对的医嘱')
1938
+                })
1939
+              }
1940
+            })
1941
+          }
1942
+          if(this.tableAdvice.length > 0){
1943
+            this.tableAdvice.map(item => {
1944
+              if(item.id > 0 && (item.created_time || item.start_time)){
1945
+                this.users.map(it => {
1946
+                  if(it.id == item.advice_doctor){
1947
+                    if(it.user_type == 3){
1948
+                      num++
1949
+                      this.$message.closeAll()
1950
+                      this.$message.error('存在不是医生保存的医嘱')
1951
+                    }else if(it.id == item.execution_staff && item.execution_staff > 0){
1952
+                      if(it.user_type == 2){
1953
+                        num++
1954
+                        this.$message.closeAll()
1955
+                        this.$message.error('存在不是护士执行的医嘱')
1956
+                      }
1957
+                    }else if(it.id == item.checker && item.checker > 0){
1958
+                      if(it.user_type == 2){
1959
+                        num++
1960
+                        this.$message.closeAll()
1961
+                        this.$message.error('存在不是护士核对的医嘱')
1962
+                      }
1963
+                    }
1964
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1965
+                    if(it.user_type == 2){
1966
+                      num++
1967
+                      this.$message.closeAll()
1968
+                      this.$message.error('存在不是护士执行的医嘱')
1969
+                    }
1970
+                  }else if(it.id == item.checker && item.checker > 0){
1971
+                    if(it.user_type == 2){
1972
+                      num++
1973
+                      this.$message.closeAll()
1974
+                      this.$message.error('存在不是护士核对的医嘱')
1975
+                    }
1948 1976
                   }
1949
-                }
1950
-              })
1951
-            }
1977
+                })
1978
+              }
1952 1979
           })
1980
+          }
1981
+          
1982
+          if(num == 0){
1983
+            this.$message.success('核对完成')
1984
+          }
1985
+        }else{
1986
+          this.$message.success('核对完成')
1953 1987
         }
1954 1988
       },
1955 1989
       getComplication(complication){

+ 19 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFortyFive.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -834,7 +834,7 @@
834 834
                           <!--<span v-if="afterdialysis.creater==0">&nbsp;</span>-->
835 835
                           <!--<img class="es-img" :src="setAdminUserES(afterdialysis.creater)" alt="" srcset="" v-else>-->
836 836
 
837
-                          <span v-if="dialysisOrder.start_nurse != check.modifier">
837
+                          <span v-if="dialysisOrder ? dialysisOrder.start_nurse != check.modifier : false">
838 838
                             <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
839 839
                             {{ getAdminUser(check == null ? 0 : check.modifier) }}
840 840
                             </span>
@@ -1183,8 +1183,10 @@ export default {
1183 1183
         this.$message.error('透前体温未填')
1184 1184
       }else if(this.receiverTreatmentAccess.posture == 0){
1185 1185
         this.$message.error('体位未填')
1186
-      }else if((this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1186
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1187 1187
         this.$message.error('透前血压未填完整')
1188
+      }else if(this.predialysis.pulse_frequency == ""){
1189
+        this.$message.error('透前脉搏未填')
1188 1190
       }else if(this.predialysis.is_hemorrhage == 0){
1189 1191
         this.$message.error('出血未填')
1190 1192
       }else if(this.predialysis.blood_access_part_opera_name == ''){
@@ -1225,6 +1227,8 @@ export default {
1225 1227
         this.$message.error('医生签名未填')
1226 1228
       }else if(this.advices[0].length > 0 && this.advices[0][0].advice_doctor == 0 && this.org_id != 9987){
1227 1229
         this.$message.error('医生签名未填')
1230
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1231
+        this.$message.error('上机护士未填')
1228 1232
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1229 1233
         this.$message.error('实际治疗时间未填')
1230 1234
       }else if(this.afterdialysis.actual_ultrafiltration == 0){
@@ -1247,7 +1251,13 @@ export default {
1247 1251
         this.$message.error('患者去向未填')
1248 1252
       }else if(this.afterdialysis.patient_gose == 3 && this.afterdialysis.observation_content == ""){
1249 1253
         this.$message.error('交待病房护士/患者/陪人观察内容未填')
1250
-      }else if(this.afterdialysis.creater == 0){
1254
+      }else if (this.dialysisOrder == null && this.check.creater == 0) {
1255
+        this.$message.error('当班责任(核对)护士未填')
1256
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
1257
+        this.$message.error('当班责任(核对)护士未填')
1258
+      }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1259
+        this.$message.error('当班责任(核对)护士未填')
1260
+      }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1251 1261
         this.$message.error('当班责任(核对)护士未填')
1252 1262
       }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
1253 1263
         this.$message.error('下机护士未填')
@@ -1259,26 +1269,31 @@ export default {
1259 1269
               if(it.id == item.advice_doctor){
1260 1270
                 if(it.user_type == 3){
1261 1271
                   num++
1272
+                  this.$message.closeAll()
1262 1273
                   this.$message.error('存在不是医生保存的医嘱')
1263 1274
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1264 1275
                   if(it.user_type == 2){
1265 1276
                     num++
1277
+                    this.$message.closeAll()
1266 1278
                     this.$message.error('存在不是护士执行的医嘱')
1267 1279
                   }
1268 1280
                 }else if(it.id == item.checker && item.checker > 0){
1269 1281
                   if(it.user_type == 2){
1270 1282
                     num++
1283
+                    this.$message.closeAll()
1271 1284
                     this.$message.error('存在不是护士核对的医嘱')
1272 1285
                   }
1273 1286
                 }
1274 1287
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1275 1288
                 if(it.user_type == 2){
1276 1289
                   num++
1290
+                  this.$message.closeAll()
1277 1291
                   this.$message.error('存在不是护士执行的医嘱')
1278 1292
                 }
1279 1293
               }else if(it.id == item.checker && item.checker > 0){
1280 1294
                 if(it.user_type == 2){
1281 1295
                   num++
1296
+                  this.$message.closeAll()
1282 1297
                   this.$message.error('存在不是护士核对的医嘱')
1283 1298
                 }
1284 1299
               }

+ 17 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderFortyFour.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1" style="width:940px">
5 5
       <div
6 6
         id="dialysis-print-box-1-1"
@@ -280,7 +280,7 @@
280 280
                       <div class="under_line" style="width: 60px;text-align: center">
281 281
                         {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
282 282
                       </div>
283
-                      L
283
+                      ml
284 284
                     </div>
285 285
                     <div class="inline_block" style="margin-left:48px;">
286 286
                       透后体重:
@@ -916,8 +916,8 @@ export default {
916 916
   },
917 917
   methods: {
918 918
     checkData(){
919
-      if(this.receiverTreatmentAccess.condition == 0){
920
-        this.$message.error('门诊或住院未填')
919
+      if(this.predialysis.dialysis_count == 0){
920
+        this.$message.error('透析频率未填')
921 921
       }else if(this.predialysis.temperature == ""){
922 922
         this.$message.error('透前体温未填')
923 923
       }else if(this.predialysis.pulse_frequency == ""){
@@ -986,6 +986,12 @@ export default {
986 986
         this.$message.error('置换方式未填')
987 987
       }else if(this.prescription.mode_id == 2 && this.prescription.displace_liqui_value == 0){
988 988
         this.$message.error('置换总量未填')
989
+      }else if(this.prescription.mode_id == 2 && this.prescription.displace_speed == ''){
990
+        this.$message.error('置换液流速未填')
991
+      }else if(this.prescription.dialysis_dialyszers == ''){
992
+        this.$message.error('透析器未填')
993
+      }else if(this.prescription.dialysis_irrigation == ''){
994
+        this.$message.error('灌流器未填')
989 995
       }else if(this.predialysis.blood_access_part_opera_name == ''){
990 996
         this.$message.error('血管通路未填')
991 997
       }else if(this.predialysis.blood_access_part_id == ''){
@@ -1004,8 +1010,6 @@ export default {
1004 1010
         this.$message.error('钙未填')
1005 1011
       }else if(this.prescription.bicarbonate == 0){
1006 1012
         this.$message.error('碳酸氢根未填')
1007
-      }else if(this.prescription.max_ultrafiltration_rate == 0){
1008
-        this.$message.error('最大超滤率未填')
1009 1013
       }else if(this.summary.special_record == ""){
1010 1014
         this.$message.error('医师记录未填')
1011 1015
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
@@ -1014,7 +1018,7 @@ export default {
1014 1018
         this.$message.error('治疗小结未填')
1015 1019
       }else if(this.summary.mission == ""){
1016 1020
         this.$message.error('透后宣教未填')
1017
-      }else if(this.dialysisOrder.start_nurse == 0){
1021
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1018 1022
         this.$message.error('上机护士未填')
1019 1023
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1020 1024
         this.$message.error('核对人员未填')
@@ -1024,7 +1028,7 @@ export default {
1024 1028
         this.$message.error('核对人员未填')
1025 1029
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
1026 1030
         this.$message.error('核对人员未填')
1027
-      }else if(this.dialysisOrder.finish_nurse == 0){
1031
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
1028 1032
         this.$message.error('下机护士未填')
1029 1033
       }else if(this.prescription.creater == 0){
1030 1034
         this.$message.error('医生签名未填')
@@ -1051,26 +1055,31 @@ export default {
1051 1055
                 if(it.id == item.advice_doctor){
1052 1056
                   if(it.user_type == 3){
1053 1057
                     num++
1058
+                    this.$message.closeAll()
1054 1059
                     this.$message.error('存在不是医生保存的医嘱')
1055 1060
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1056 1061
                     if(it.user_type == 2){
1057 1062
                       num++
1063
+                      this.$message.closeAll()
1058 1064
                       this.$message.error('存在不是护士执行的医嘱')
1059 1065
                     }
1060 1066
                   }else if(it.id == item.checker && item.checker > 0){
1061 1067
                     if(it.user_type == 2){
1062 1068
                       num++
1069
+                      this.$message.closeAll()
1063 1070
                       this.$message.error('存在不是护士核对的医嘱')
1064 1071
                     }
1065 1072
                   }
1066 1073
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1067 1074
                   if(it.user_type == 2){
1068 1075
                     num++
1076
+                    this.$message.closeAll()
1069 1077
                     this.$message.error('存在不是护士执行的医嘱')
1070 1078
                   }
1071 1079
                 }else if(it.id == item.checker && item.checker > 0){
1072 1080
                   if(it.user_type == 2){
1073 1081
                     num++
1082
+                    this.$message.closeAll()
1074 1083
                     this.$message.error('存在不是护士核对的医嘱')
1075 1084
                   }
1076 1085
                 }

+ 62 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1" style="width:940px">
5 5
       <div
6 6
         id="dialysis-print-box-1-1"
@@ -1012,7 +1012,7 @@ export default {
1012 1012
         this.$message.error('治疗小结未填')
1013 1013
       }else if(this.summary.mission == ""){
1014 1014
         this.$message.error('透后宣教未填')
1015
-      }else if(this.dialysisOrder.start_nurse == 0){
1015
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1016 1016
         this.$message.error('上机护士未填')
1017 1017
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1018 1018
         this.$message.error('核对人员未填')
@@ -1022,42 +1022,72 @@ export default {
1022 1022
         this.$message.error('核对人员未填')
1023 1023
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
1024 1024
         this.$message.error('核对人员未填')
1025
-      }else if(this.dialysisOrder.finish_nurse == 0){
1025
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
1026 1026
         this.$message.error('下机护士未填')
1027 1027
       }else if(this.prescription.creater == 0){
1028 1028
         this.$message.error('医生签名未填')
1029
-      }else if(this.monitors.length > 0){
1030
-        this.monitors.map(item => {
1031
-          if(item.id > 0 && item.operate_time){
1032
-            this.users.map(it => {
1033
-              if(it.id == item.monitoring_nurse){
1034
-                if(it.type != 3){
1035
-                  this.$message.error('存在不是护士保存的监测')
1029
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1030
+        let num = 0
1031
+        if(this.monitors.length > 0){
1032
+          this.monitors.map(item => {
1033
+            if(item.id > 0 && item.operate_time){
1034
+              this.users.map(it => {
1035
+                if(it.id == item.monitoring_nurse){
1036
+                  if(it.user_type == 2){
1037
+                    num++
1038
+                    this.$message.closeAll()
1039
+                    this.$message.error('存在不是护士保存的监测')
1040
+                  }
1036 1041
                 }
1037
-              }
1038
-            })
1039
-          }
1040
-        })
1041
-      }else if(this.tableAdvice.length > 0){
1042
-        this.tableAdvice.map(item => {
1043
-          if(item.id > 0 && item.created_time){
1044
-            this.users.map(it => {
1045
-              if(it.id == item.advice_doctor){
1046
-                if(it.type != 2){
1047
-                  this.$message.error('存在不是医生保存的医嘱')
1048
-                }
1049
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1050
-                if(it.type != 3){
1051
-                  this.$message.error('存在不是护士执行的医嘱')
1052
-                }
1053
-              }else if(it.id == item.checker && item.checker > 0){
1054
-                if(it.type != 3){
1055
-                  this.$message.error('存在不是护士核对的医嘱')
1042
+              })
1043
+            }
1044
+          })
1045
+        }
1046
+        if(this.tableAdvice.length > 0){
1047
+          this.tableAdvice.map(item => {
1048
+            if(item.id > 0 && (item.created_time || item.start_time)){
1049
+              this.users.map(it => {
1050
+                if(it.id == item.advice_doctor){
1051
+                  if(it.user_type == 3){
1052
+                    num++
1053
+                    this.$message.closeAll()
1054
+                    this.$message.error('存在不是医生保存的医嘱')
1055
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1056
+                    if(it.user_type == 2){
1057
+                      num++
1058
+                      this.$message.closeAll()
1059
+                      this.$message.error('存在不是护士执行的医嘱')
1060
+                    }
1061
+                  }else if(it.id == item.checker && item.checker > 0){
1062
+                    if(it.user_type == 2){
1063
+                      num++
1064
+                      this.$message.closeAll()
1065
+                      this.$message.error('存在不是护士核对的医嘱')
1066
+                    }
1067
+                  }
1068
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1069
+                  if(it.user_type == 2){
1070
+                    num++
1071
+                    this.$message.closeAll()
1072
+                    this.$message.error('存在不是护士执行的医嘱')
1073
+                  }
1074
+                }else if(it.id == item.checker && item.checker > 0){
1075
+                  if(it.user_type == 2){
1076
+                    num++
1077
+                    this.$message.closeAll()
1078
+                    this.$message.error('存在不是护士核对的医嘱')
1079
+                  }
1056 1080
                 }
1057
-              }
1058
-            })
1059
-          }
1081
+              })
1082
+            }
1060 1083
         })
1084
+        }
1085
+        
1086
+        if(num == 0){
1087
+          this.$message.success('核对完成')
1088
+        }
1089
+      }else{
1090
+        this.$message.success('核对完成')
1061 1091
       }
1062 1092
     },
1063 1093
     getDisplaceLiquiPart: function(val) {

+ 88 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5 5
       <div
6 6
         id="dialysis-print-box-1-1"
@@ -424,7 +424,27 @@
424 424
                   <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
425 425
                   </td>
426 426
               </tr>
427
-              <!-- </template> -->
427
+              <tr v-for="(advice, advice_index) in projects" :key="advice_index">
428
+                  <td height="32px;padding:1px 1px">
429
+                  <span v-if="advice.start_time">
430
+                      {{ getTime(advice.start_time, "{h}:{i}") }}
431
+                  </span>
432
+                  </td>
433
+                  <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
434
+                    <span>{{ advice && advice.project ? advice.project.project_name : '' }}</span>
435
+                  </td>
436
+                  <td height="32px">
437
+                      <span v-if="setAdminUserES(advice.doctor) == ''">{{ getAdminUser(advice.doctor) }}</span>
438
+                      <img style="height:30px" :src="setAdminUserES(advice.doctor)" alt="" srcset="" v-else />
439
+                  </td>
440
+                  <td height="32px">
441
+                      <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
442
+                      <img style="height:30px" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
443
+                  </td>
444
+                  <td height="32px">
445
+                  <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
446
+                  </td>
447
+              </tr>
428 448
               </tbody>
429 449
           </table>
430 450
           <div style="border:1px solid #000;margin-top:5px;padding:0 10px;">
@@ -473,7 +493,7 @@
473 493
                   </div>
474 494
               </div>
475 495
           </div>
476
-          <div class="row" style="border-bottom:1px solid #000;display:flex;margin-top:150px;">
496
+          <div class="row" style="border-bottom:1px solid #000;display:flex;margin-top:50px;">
477 497
             <div class="inline_block" style="width:33%">
478 498
                   医生签名:
479 499
                   <div class="under_line" style="width: 70px;text-align: center;">
@@ -656,6 +676,7 @@ export default {
656 676
         gaijiliang_unit: ''
657 677
       },
658 678
       org_id:0,
679
+      projects:[]
659 680
     }
660 681
   },
661 682
   methods: {
@@ -692,7 +713,7 @@ export default {
692 713
         this.$message.error('透析器未填')
693 714
       }else if(this.prescription.anticoagulant == 0){
694 715
         this.$message.error('抗凝剂未填')
695
-      }else if(this.prescription.blood_access_part_opera_name == ''){
716
+      }else if(this.predialysis.blood_access_part_opera_name == ''){
696 717
         this.$message.error('血管通路未填')
697 718
       }else if(this.prescription.mode_id == 2 && this.prescription.displace_liqui_part == 0){
698 719
         this.$message.error('置换方式未填')
@@ -702,13 +723,13 @@ export default {
702 723
         this.$message.error('血流速未填')
703 724
       }else if(this.predialysis.symptom_before_dialysis == ""){
704 725
         this.$message.error('透前病情未填')
705
-      }else if(this.dialysisOrder.washpipe_nurse == 0){
726
+      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse == 0){
706 727
         this.$message.error('预冲者未填')
707
-      }else if(this.dialysisOrder.puncture_nurse == 0){
728
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
708 729
         this.$message.error('穿刺者未填')
709
-      }else if(this.dialysisOrder.start_nurse == 0){
730
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
710 731
         this.$message.error('上机者未填')
711
-      }else if(this.dialysisOrder.finish_nurse == 0){
732
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
712 733
         this.$message.error('下机者未填')
713 734
       }else if(this.afterdialysis.weight_after == 0){
714 735
         this.$message.error('透后体重未填')
@@ -733,25 +754,52 @@ export default {
733 754
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
734 755
         this.$message.error('查对护士未填')
735 756
       }else if(this.tableAdvice.length > 0){
736
-        this.tableAdvice.map(item => {
737
-          if(item.id > 0 && item.created_time){
738
-            this.users.map(it => {
739
-              if(it.id == item.advice_doctor){
740
-                if(it.type != 2){
741
-                  this.$message.error('存在不是医生保存的医嘱')
757
+        let num = 0
758
+        if(this.tableAdvice.length > 0){
759
+          this.tableAdvice.map(item => {
760
+            if(item.id > 0 && (item.created_time || item.start_time)){
761
+              this.users.map(it => {
762
+                if(it.id == item.advice_doctor){
763
+                  if(it.user_type == 3){
764
+                    num++
765
+                    this.$message.closeAll()
766
+                    this.$message.error('存在不是医生保存的医嘱')
767
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
768
+                    if(it.user_type == 2){
769
+                      num++
770
+                      this.$message.closeAll()
771
+                      this.$message.error('存在不是护士执行的医嘱')
772
+                    }
773
+                  }else if(it.id == item.checker && item.checker > 0){
774
+                    if(it.user_type == 2){
775
+                      num++
776
+                      this.$message.closeAll()
777
+                      this.$message.error('存在不是护士核对的医嘱')
778
+                    }
779
+                  }
780
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
781
+                  if(it.user_type == 2){
782
+                    num++
783
+                    this.$message.closeAll()
784
+                    this.$message.error('存在不是护士执行的医嘱')
785
+                  }
786
+                }else if(it.id == item.checker && item.checker > 0){
787
+                  if(it.user_type == 2){
788
+                    num++
789
+                    this.$message.closeAll()
790
+                    this.$message.error('存在不是护士核对的医嘱')
791
+                  }
742 792
                 }
743
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
744
-                if(it.type != 3){
745
-                  this.$message.error('存在不是护士执行的医嘱')
746
-                }
747
-              }else if(it.id == item.checker && item.checker > 0){
748
-                if(it.type != 3){
749
-                  this.$message.error('存在不是护士核对的医嘱')
750
-                }
751
-              }
752
-            })
753
-          }
793
+              })
794
+            }
754 795
         })
796
+        }
797
+        
798
+        if(num == 0){
799
+          this.$message.success('核对完成')
800
+        }
801
+      }else{
802
+        this.$message.success('核对完成')
755 803
       }
756 804
     },
757 805
     getDisplaceLiquiPart: function(val) {
@@ -1209,21 +1257,31 @@ export default {
1209 1257
         //    this.advice_groups.push(group)
1210 1258
         //   }
1211 1259
         // }
1212
-        if (this.doctor_advices.length <= 6) {
1213
-          var nl = 6
1260
+
1261
+        let projects = []
1262
+        response.data.data.projects.map(item => {
1263
+          if(item.type == 2){
1264
+            projects.push(item)
1265
+          }
1266
+        })
1267
+        this.projects = projects
1268
+        if ((this.doctor_advices.length + this.projects.length) <= 6) {
1269
+          var nl = 6 - (this.doctor_advices.length + this.projects.length)
1214 1270
           this.print_length = 6
1215 1271
 
1216 1272
           for (let index = 0; index < nl; index++) {
1217 1273
             if (
1218
-              this.doctor_advices[index] == undefined ||
1219
-              this.doctor_advices[index].length <= 0
1274
+              this.projects[index] == undefined ||
1275
+              this.projects[index].length <= 0
1220 1276
             ) {
1221
-              this.doctor_advices.push([])
1277
+              this.projects.push([])
1222 1278
             } else {
1223 1279
               continue
1224 1280
             }
1225 1281
           }
1226 1282
         }
1283
+        
1284
+        console.log('this.projects',this.projects)
1227 1285
 
1228 1286
         // this.totollength = this.doctor_advices.length + this.monitors.length
1229 1287
         // if (this.totollength > 18) {

+ 54 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name"></div>
@@ -796,16 +796,68 @@ export default {
796 796
         this.$message.error('导管评估未填')
797 797
       }else if(this.afterdialysis.intravenous_tube == 0){
798 798
         this.$message.error('静脉管道未填')
799
-      }else if(this.dialysisOrder.start_nurse == 0){
799
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
800 800
         this.$message.error('责任护士未填')
801 801
       }else if(this.dialysisOrder == null && this.check.creater == 0){
802 802
         this.$message.error('核对护士未填')
803
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
804
+        this.$message.error('核对护士未填')
803 805
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
804 806
         this.$message.error('核对护士未填')
805 807
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
806 808
         this.$message.error('核对护士未填')
807 809
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
808 810
         this.$message.error('核对护士未填')
811
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
812
+        let num = 0
813
+        if(this.monitors.length > 0){
814
+          this.monitors.map(item => {
815
+            if(item.id > 0 && item.operate_time){
816
+              this.users.map(it => {
817
+                if(it.id == item.monitoring_nurse){
818
+                  if(it.user_type == 2){
819
+                    num++
820
+                    this.$message.closeAll()
821
+                    this.$message.error('存在不是护士保存的监测')
822
+                  }
823
+                }
824
+              })
825
+            }
826
+          })
827
+        }
828
+        if(this.tableAdvice.length > 0){
829
+          this.tableAdvice.map(item => {
830
+            if(item.id > 0 && (item.created_time || item.start_time)){
831
+              this.users.map(it => {
832
+                if(it.id == item.advice_doctor){
833
+                  if(it.user_type == 3){
834
+                    num++
835
+                    this.$message.closeAll()
836
+                    this.$message.error('存在不是医生保存的医嘱')
837
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
838
+                    if(it.user_type == 2){
839
+                      num++
840
+                      this.$message.closeAll()
841
+                      this.$message.error('存在不是护士执行的医嘱')
842
+                    }
843
+                  }
844
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
845
+                  if(it.user_type == 2){
846
+                    num++
847
+                    this.$message.closeAll()
848
+                    this.$message.error('存在不是护士执行的医嘱')
849
+                  }
850
+                }
851
+              })
852
+            }
853
+        })
854
+        }
855
+        
856
+        if(num == 0){
857
+          this.$message.success('核对完成')
858
+        }
859
+      }else{
860
+        this.$message.success('核对完成')
809 861
       }
810 862
     },
811 863
     getMonths(t){

+ 6 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -1864,26 +1864,31 @@ export default {
1864 1864
                 if(it.id == item.advice_doctor){
1865 1865
                   if(it.user_type == 3){
1866 1866
                     num++
1867
+                    this.$message.closeAll()
1867 1868
                     this.$message.error('存在不是医生保存的医嘱')
1868 1869
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1869 1870
                     if(it.user_type == 2){
1870 1871
                       num++
1872
+                      this.$message.closeAll()
1871 1873
                       this.$message.error('存在不是护士执行的医嘱')
1872 1874
                     }
1873 1875
                   }else if(it.id == item.checker && item.checker > 0){
1874 1876
                     if(it.user_type == 2){
1875 1877
                       num++
1878
+                      this.$message.closeAll()
1876 1879
                       this.$message.error('存在不是护士核对的医嘱')
1877 1880
                     }
1878 1881
                   }
1879 1882
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1880 1883
                   if(it.user_type == 2){
1881 1884
                     num++
1885
+                    this.$message.closeAll()
1882 1886
                     this.$message.error('存在不是护士执行的医嘱')
1883 1887
                   }
1884 1888
                 }else if(it.id == item.checker && item.checker > 0){
1885 1889
                   if(it.user_type == 2){
1886 1890
                     num++
1891
+                    this.$message.closeAll()
1887 1892
                     this.$message.error('存在不是护士核对的医嘱')
1888 1893
                   }
1889 1894
                 }

+ 8 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -1198,6 +1198,8 @@ export default {
1198 1198
         this.$message.error('医生签名未填')
1199 1199
       }else if(this.advices[0].length > 0 && this.advices[0][0].advice_doctor == 0 && this.org_id != 9987){
1200 1200
         this.$message.error('医生签名未填')
1201
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1202
+        this.$message.error('上机护士未填')
1201 1203
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1202 1204
         this.$message.error('实际治疗时间未填')
1203 1205
       }else if(this.afterdialysis.actual_ultrafiltration == 0){
@@ -1232,26 +1234,31 @@ export default {
1232 1234
               if(it.id == item.advice_doctor){
1233 1235
                 if(it.user_type == 3){
1234 1236
                   num++
1237
+                  this.$message.closeAll()
1235 1238
                   this.$message.error('存在不是医生保存的医嘱')
1236 1239
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1237 1240
                   if(it.user_type == 2){
1238 1241
                     num++
1242
+                    this.$message.closeAll()
1239 1243
                     this.$message.error('存在不是护士执行的医嘱')
1240 1244
                   }
1241 1245
                 }else if(it.id == item.checker && item.checker > 0){
1242 1246
                   if(it.user_type == 2){
1243 1247
                     num++
1248
+                    this.$message.closeAll()
1244 1249
                     this.$message.error('存在不是护士核对的医嘱')
1245 1250
                   }
1246 1251
                 }
1247 1252
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1248 1253
                 if(it.user_type == 2){
1249 1254
                   num++
1255
+                  this.$message.closeAll()
1250 1256
                   this.$message.error('存在不是护士执行的医嘱')
1251 1257
                 }
1252 1258
               }else if(it.id == item.checker && item.checker > 0){
1253 1259
                 if(it.user_type == 2){
1254 1260
                   num++
1261
+                  this.$message.closeAll()
1255 1262
                   this.$message.error('存在不是护士核对的医嘱')
1256 1263
                 }
1257 1264
               }

+ 6 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -748,26 +748,31 @@ export default {
748 748
               if(it.id == item.advice_doctor){
749 749
                 if(it.user_type == 3){
750 750
                   num++
751
+                  this.$message.closeAll()
751 752
                   this.$message.error('存在不是医生保存的医嘱')
752 753
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
753 754
                   if(it.user_type == 2){
754 755
                     num++
756
+                    this.$message.closeAll()
755 757
                     this.$message.error('存在不是护士执行的医嘱')
756 758
                   }
757 759
                 }else if(it.id == item.checker && item.checker > 0){
758 760
                   if(it.user_type == 2){
759 761
                     num++
762
+                    this.$message.closeAll()
760 763
                     this.$message.error('存在不是护士核对的医嘱')
761 764
                   }
762 765
                 }
763 766
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
764 767
                 if(it.user_type == 2){
765 768
                   num++
769
+                  this.$message.closeAll()
766 770
                   this.$message.error('存在不是护士执行的医嘱')
767 771
                 }
768 772
               }else if(it.id == item.checker && item.checker > 0){
769 773
                 if(it.user_type == 2){
770 774
                   num++
775
+                  this.$message.closeAll()
771 776
                   this.$message.error('存在不是护士核对的医嘱')
772 777
                 }
773 778
               }

+ 7 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name"></div>
@@ -1397,6 +1397,7 @@ export default {
1397 1397
                 if(it.id == item.monitoring_nurse){
1398 1398
                   if(it.user_type == 2){
1399 1399
                     num++
1400
+                    this.$message.closeAll()
1400 1401
                     this.$message.error('存在不是护士保存的监测')
1401 1402
                   }
1402 1403
                 }
@@ -1411,26 +1412,31 @@ export default {
1411 1412
                 if(it.id == item.advice_doctor){
1412 1413
                   if(it.user_type == 3){
1413 1414
                     num++
1415
+                    this.$message.closeAll()
1414 1416
                     this.$message.error('存在不是医生保存的医嘱')
1415 1417
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1416 1418
                     if(it.user_type == 2){
1417 1419
                       num++
1420
+                      this.$message.closeAll()
1418 1421
                       this.$message.error('存在不是护士执行的医嘱')
1419 1422
                     }
1420 1423
                   }else if(it.id == item.checker && item.checker > 0){
1421 1424
                     if(it.user_type == 2){
1422 1425
                       num++
1426
+                      this.$message.closeAll()
1423 1427
                       this.$message.error('存在不是护士核对的医嘱')
1424 1428
                     }
1425 1429
                   }
1426 1430
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1427 1431
                   if(it.user_type == 2){
1428 1432
                     num++
1433
+                    this.$message.closeAll()
1429 1434
                     this.$message.error('存在不是护士执行的医嘱')
1430 1435
                   }
1431 1436
                 }else if(it.id == item.checker && item.checker > 0){
1432 1437
                   if(it.user_type == 2){
1433 1438
                     num++
1439
+                    this.$message.closeAll()
1434 1440
                     this.$message.error('存在不是护士核对的医嘱')
1435 1441
                   }
1436 1442
                 }

+ 6 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5 5
       <div
6 6
         id="dialysis-print-box-1-1"
@@ -1383,26 +1383,31 @@ export default {
1383 1383
               if(it.id == item.advice_doctor){
1384 1384
                 if(it.user_type == 3){
1385 1385
                   num++
1386
+                  this.$message.closeAll()
1386 1387
                   this.$message.error('存在不是医生保存的医嘱')
1387 1388
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1388 1389
                   if(it.user_type == 2){
1389 1390
                     num++
1391
+                    this.$message.closeAll()
1390 1392
                     this.$message.error('存在不是护士执行的医嘱')
1391 1393
                   }
1392 1394
                 }else if(it.id == item.checker && item.checker > 0){
1393 1395
                   if(it.user_type == 2){
1394 1396
                     num++
1397
+                    this.$message.closeAll()
1395 1398
                     this.$message.error('存在不是护士核对的医嘱')
1396 1399
                   }
1397 1400
                 }
1398 1401
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1399 1402
                 if(it.user_type == 2){
1400 1403
                   num++
1404
+                  this.$message.closeAll()
1401 1405
                   this.$message.error('存在不是护士执行的医嘱')
1402 1406
                 }
1403 1407
               }else if(it.id == item.checker && item.checker > 0){
1404 1408
                 if(it.user_type == 2){
1405 1409
                   num++
1410
+                  this.$message.closeAll()
1406 1411
                   this.$message.error('存在不是护士核对的医嘱')
1407 1412
                 }
1408 1413
               }

+ 8 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5 5
       <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content">
6 6
         <div style="display:inline-block;width:100%;text-align:center;">
@@ -1184,7 +1184,7 @@ export default {
1184 1184
         this.$message.error('透前脉搏未填')
1185 1185
       }else if(this.predialysis.breathing_rate == ""){
1186 1186
         this.$message.error('透前呼吸频率未填')
1187
-      }else if((this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1187
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1188 1188
         this.$message.error('透前血压未填完整')
1189 1189
       }else if(this.predialysis.puncture_way == ''){
1190 1190
         this.$message.error('穿刺方式未填')
@@ -1285,6 +1285,7 @@ export default {
1285 1285
                 if(it.id == item.monitoring_nurse){
1286 1286
                   if(it.user_type == 2){
1287 1287
                     num++
1288
+                    this.$message.closeAll()
1288 1289
                     this.$message.error('存在不是护士保存的监测')
1289 1290
                   }
1290 1291
                 }
@@ -1299,26 +1300,31 @@ export default {
1299 1300
                 if(it.id == item.advice_doctor){
1300 1301
                   if(it.user_type == 3){
1301 1302
                     num++
1303
+                    this.$message.closeAll()
1302 1304
                     this.$message.error('存在不是医生保存的医嘱')
1303 1305
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1304 1306
                     if(it.user_type == 2){
1305 1307
                       num++
1308
+                      this.$message.closeAll()
1306 1309
                       this.$message.error('存在不是护士执行的医嘱')
1307 1310
                     }
1308 1311
                   }else if(it.id == item.checker && item.checker > 0){
1309 1312
                     if(it.user_type == 2){
1310 1313
                       num++
1314
+                      this.$message.closeAll()
1311 1315
                       this.$message.error('存在不是护士核对的医嘱')
1312 1316
                     }
1313 1317
                   }
1314 1318
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1315 1319
                   if(it.user_type == 2){
1316 1320
                     num++
1321
+                    this.$message.closeAll()
1317 1322
                     this.$message.error('存在不是护士执行的医嘱')
1318 1323
                   }
1319 1324
                 }else if(it.id == item.checker && item.checker > 0){
1320 1325
                   if(it.user_type == 2){
1321 1326
                     num++
1327
+                    this.$message.closeAll()
1322 1328
                     this.$message.error('存在不是护士核对的医嘱')
1323 1329
                   }
1324 1330
                 }

+ 6 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5 5
       <div
6 6
         id="dialysis-print-box-1-1"
@@ -829,26 +829,31 @@ export default {
829 829
               if(it.id == item.advice_doctor){
830 830
                 if(it.user_type == 3){
831 831
                   num++
832
+                  this.$message.closeAll()
832 833
                   this.$message.error('存在不是医生保存的医嘱')
833 834
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
834 835
                   if(it.user_type == 2){
835 836
                     num++
837
+                    this.$message.closeAll()
836 838
                     this.$message.error('存在不是护士执行的医嘱')
837 839
                   }
838 840
                 }else if(it.id == item.checker && item.checker > 0){
839 841
                   if(it.user_type == 2){
840 842
                     num++
843
+                    this.$message.closeAll()
841 844
                     this.$message.error('存在不是护士核对的医嘱')
842 845
                   }
843 846
                 }
844 847
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
845 848
                 if(it.user_type == 2){
846 849
                   num++
850
+                  this.$message.closeAll()
847 851
                   this.$message.error('存在不是护士执行的医嘱')
848 852
                 }
849 853
               }else if(it.id == item.checker && item.checker > 0){
850 854
                 if(it.user_type == 2){
851 855
                   num++
856
+                  this.$message.closeAll()
852 857
                   this.$message.error('存在不是护士核对的医嘱')
853 858
                 }
854 859
               }

+ 12 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div id='new-dialysis-1' class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -724,11 +724,15 @@ export default {
724 724
         this.$message.error('透后体重未填')
725 725
       }else if(this.summary.dialysis_summary == ""){
726 726
         this.$message.error('透析小结未填')
727
+      }else if (this.dialysisOrder == null && this.check.creater == 0) {
728
+        this.$message.error('核对护士未填')
729
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
730
+        this.$message.error('核对护士未填')
727 731
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
728 732
         this.$message.error('核对护士未填')
729 733
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
730 734
         this.$message.error('核对护士未填')
731
-      }else if(this.dialysisOrder.start_nurse == 0){
735
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
732 736
         this.$message.error('上机护士未填')
733 737
       }else if(this.prescription.prescription_doctor == 0){
734 738
         this.$message.error('医师签名未填')
@@ -741,6 +745,7 @@ export default {
741 745
                 if(it.id == item.monitoring_nurse){
742 746
                   if(it.user_type == 2){
743 747
                     num++
748
+                    this.$message.closeAll()
744 749
                     this.$message.error('存在不是护士保存的监测')
745 750
                   }
746 751
                 }
@@ -755,26 +760,31 @@ export default {
755 760
                 if(it.id == item.advice_doctor){
756 761
                   if(it.user_type == 3){
757 762
                     num++
763
+                    this.$message.closeAll()
758 764
                     this.$message.error('存在不是医生保存的医嘱')
759 765
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
760 766
                     if(it.user_type == 2){
761 767
                       num++
768
+                      this.$message.closeAll()
762 769
                       this.$message.error('存在不是护士执行的医嘱')
763 770
                     }
764 771
                   }else if(it.id == item.checker && item.checker > 0){
765 772
                     if(it.user_type == 2){
766 773
                       num++
774
+                      this.$message.closeAll()
767 775
                       this.$message.error('存在不是护士核对的医嘱')
768 776
                     }
769 777
                   }
770 778
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
771 779
                   if(it.user_type == 2){
772 780
                     num++
781
+                    this.$message.closeAll()
773 782
                     this.$message.error('存在不是护士执行的医嘱')
774 783
                   }
775 784
                 }else if(it.id == item.checker && item.checker > 0){
776 785
                   if(it.user_type == 2){
777 786
                     num++
787
+                    this.$message.closeAll()
778 788
                     this.$message.error('存在不是护士核对的医嘱')
779 789
                   }
780 790
                 }

+ 65 - 31
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyEight.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -667,11 +667,15 @@ export default {
667 667
         this.$message.error('医生未填')
668 668
       }else if(this.predialysis.creater == 0){
669 669
         this.$message.error('透前评估护士未填')
670
+      }else if (this.dialysisOrder == null && this.check.creater == 0) {
671
+        this.$message.error('核对护士未填')
672
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
673
+        this.$message.error('核对护士未填')
670 674
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
671 675
         this.$message.error('核对护士未填')
672 676
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
673 677
         this.$message.error('核对护士未填')
674
-      }else if(this.dialysisOrder.start_nurse == 0){
678
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
675 679
         this.$message.error('责任护士未填')
676 680
       }else if(this.monitors.length > 0 && this.monitors[0].blood_pressure_monitoring_site == 0){
677 681
         this.$message.error('血压检测部位未填')
@@ -699,38 +703,68 @@ export default {
699 703
         this.$message.error('下机护士未填')
700 704
       }else if(this.summary.dialysis_summary == ""){
701 705
         this.$message.error('病程记录未填')
702
-      }else if(this.monitors.length > 0){
703
-        this.monitors.map(item => {
704
-          if(item.id > 0 && item.operate_time){
705
-            this.users.map(it => {
706
-              if(it.id == item.monitoring_nurse){
707
-                if(it.type != 3){
708
-                  this.$message.error('存在不是护士保存的监测')
709
-                }
710
-              }
711
-            })
712
-          }
713
-        })
714
-      }else if(this.tableAdvice.length > 0){
715
-        this.tableAdvice.map(item => {
716
-          if(item.id > 0 && item.created_time){
717
-            this.users.map(it => {
718
-              if(it.id == item.advice_doctor){
719
-                if(it.type != 2){
720
-                  this.$message.error('存在不是医生保存的医嘱')
721
-                }
722
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
723
-                if(it.type != 3){
724
-                  this.$message.error('存在不是护士执行的医嘱')
706
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
707
+        let num = 0
708
+        if(this.monitors.length > 0){
709
+          this.monitors.map(item => {
710
+            if(item.id > 0 && item.operate_time){
711
+              this.users.map(it => {
712
+                if(it.id == item.monitoring_nurse){
713
+                  if(it.user_type == 2){
714
+                    num++
715
+                    this.$message.closeAll()
716
+                    this.$message.error('存在不是护士保存的监测')
717
+                  }
725 718
                 }
726
-              }else if(it.id == item.checker && item.checker > 0){
727
-                if(it.type != 3){
728
-                  this.$message.error('存在不是护士核对的医嘱')
719
+              })
720
+            }
721
+          })
722
+        }
723
+        if(this.tableAdvice.length > 0){
724
+          this.tableAdvice.map(item => {
725
+            if(item.id > 0 && (item.created_time || item.start_time)){
726
+              this.users.map(it => {
727
+                if(it.id == item.advice_doctor){
728
+                  if(it.user_type == 3){
729
+                    num++
730
+                    this.$message.closeAll()
731
+                    this.$message.error('存在不是医生保存的医嘱')
732
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
733
+                    if(it.user_type == 2){
734
+                      num++
735
+                      this.$message.closeAll()
736
+                      this.$message.error('存在不是护士执行的医嘱')
737
+                    }
738
+                  }else if(it.id == item.checker && item.checker > 0){
739
+                    if(it.user_type == 2){
740
+                      num++
741
+                      this.$message.closeAll()
742
+                      this.$message.error('存在不是护士核对的医嘱')
743
+                    }
744
+                  }
745
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
746
+                  if(it.user_type == 2){
747
+                    num++
748
+                    this.$message.closeAll()
749
+                    this.$message.error('存在不是护士执行的医嘱')
750
+                  }
751
+                }else if(it.id == item.checker && item.checker > 0){
752
+                  if(it.user_type == 2){
753
+                    num++
754
+                    this.$message.closeAll()
755
+                    this.$message.error('存在不是护士核对的医嘱')
756
+                  }
729 757
                 }
730
-              }
731
-            })
732
-          }
758
+              })
759
+            }
733 760
         })
761
+        }
762
+        
763
+        if(num == 0){
764
+          this.$message.success('核对完成')
765
+        }
766
+      }else{
767
+        this.$message.success('核对完成')
734 768
       }
735 769
     },
736 770
     getMonths(t){

+ 63 - 33
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFour.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5 5
       <div
6 6
         id="dialysis-print-box-1-1"
@@ -618,19 +618,19 @@ export default {
618 618
         this.$message.error('实际脱水量未填')
619 619
       }else if(this.afterdialysis.weight_after == 0){
620 620
         this.$message.error('透后体重未填')
621
-      }else if(this.dialysisOrder.end_time == 0){
621
+      }else if(this.dialysisOrder == null || (this.dialysisOrder && this.dialysisOrder.end_time == 0)){
622 622
         this.$message.error('离科时间未填')
623 623
       }else if(this.dialysisOrder.washpipe_nurse == 0){
624 624
         this.$message.error('预冲者未填')
625 625
       }else if(this.dialysisOrder.puncture_nurse == 0){
626 626
         this.$message.error('穿刺者/换药者未填')
627
-      }else if(this.dialysisOrder.start_nurse == 0){
627
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
628 628
         this.$message.error('责任护士未填')
629 629
       }else if(this.check.creater == 0){
630 630
         this.$message.error('查对者未填')
631 631
       }else if(this.check.modifier == 0){
632 632
         this.$message.error('交叉核对者未填')
633
-      }else if(this.dialysisOrder.finish_nurse == 0){
633
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
634 634
         this.$message.error('下机护士未填')
635 635
       }else if(this.afterdialysis.cruor == ""){
636 636
         this.$message.error('透析器级别未填')
@@ -638,38 +638,68 @@ export default {
638 638
         this.$message.error('透析小结未填')
639 639
       }else if(this.prescription.prescription_doctor == 0){
640 640
         this.$message.error('医生签字未填')
641
-      }else if(this.monitors.length > 0){
642
-        this.monitors.map(item => {
643
-          if(item.id > 0 && item.operate_time){
644
-            this.users.map(it => {
645
-              if(it.id == item.monitoring_nurse){
646
-                if(it.type != 3){
647
-                  this.$message.error('存在不是护士保存的监测')
641
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
642
+        let num = 0
643
+        if(this.monitors.length > 0){
644
+          this.monitors.map(item => {
645
+            if(item.id > 0 && item.operate_time){
646
+              this.users.map(it => {
647
+                if(it.id == item.monitoring_nurse){
648
+                  if(it.user_type == 2){
649
+                    num++
650
+                    this.$message.closeAll()
651
+                    this.$message.error('存在不是护士保存的监测')
652
+                  }
648 653
                 }
649
-              }
650
-            })
651
-          }
652
-        })
653
-      }else if(this.tableAdvice.length > 0){
654
-        this.tableAdvice.map(item => {
655
-          if(item.id > 0 && item.created_time){
656
-            this.users.map(it => {
657
-              if(it.id == item.advice_doctor){
658
-                if(it.type != 2){
659
-                  this.$message.error('存在不是医生保存的医嘱')
660
-                }
661
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
662
-                if(it.type != 3){
663
-                  this.$message.error('存在不是护士执行的医嘱')
664
-                }
665
-              }else if(it.id == item.checker && item.checker > 0){
666
-                if(it.type != 3){
667
-                  this.$message.error('存在不是护士核对的医嘱')
654
+              })
655
+            }
656
+          })
657
+        }
658
+        if(this.tableAdvice.length > 0){
659
+          this.tableAdvice.map(item => {
660
+            if(item.id > 0 && (item.created_time || item.start_time)){
661
+              this.users.map(it => {
662
+                if(it.id == item.advice_doctor){
663
+                  if(it.user_type == 3){
664
+                    num++
665
+                    this.$message.closeAll()
666
+                    this.$message.error('存在不是医生保存的医嘱')
667
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
668
+                    if(it.user_type == 2){
669
+                      num++
670
+                      this.$message.closeAll()
671
+                      this.$message.error('存在不是护士执行的医嘱')
672
+                    }
673
+                  }else if(it.id == item.checker && item.checker > 0){
674
+                    if(it.user_type == 2){
675
+                      num++
676
+                      this.$message.closeAll()
677
+                      this.$message.error('存在不是护士核对的医嘱')
678
+                    }
679
+                  }
680
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
681
+                  if(it.user_type == 2){
682
+                    num++
683
+                    this.$message.closeAll()
684
+                    this.$message.error('存在不是护士执行的医嘱')
685
+                  }
686
+                }else if(it.id == item.checker && item.checker > 0){
687
+                  if(it.user_type == 2){
688
+                    num++
689
+                    this.$message.closeAll()
690
+                    this.$message.error('存在不是护士核对的医嘱')
691
+                  }
668 692
                 }
669
-              }
670
-            })
671
-          }
693
+              })
694
+            }
672 695
         })
696
+        }
697
+        
698
+        if(num == 0){
699
+          this.$message.success('核对完成')
700
+        }
701
+      }else{
702
+        this.$message.success('核对完成')
673 703
       }
674 704
     },
675 705
     getDisplaceLiquiPart: function(val) {

+ 62 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
         <div class="dialysis-print-order">
6 6
             <div class="order-yy-name">{{ orgname }}</div>
@@ -588,7 +588,7 @@ export default {
588 588
         this.$message.error('透析器型号未填')
589 589
       }else if(this.prescription.prescription_doctor == 0){
590 590
         this.$message.error('医生未填')
591
-      }else if(this.dialysisOrder.start_nurse == 0){
591
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
592 592
         this.$message.error('接管护士未填')
593 593
       }else if(this.dialysisOrder.start_time == 0){
594 594
         this.$message.error('接管时间未填')
@@ -602,42 +602,72 @@ export default {
602 602
         this.$message.error('凝血分级未填')
603 603
       }else if(this.summary.dialysis_summary == ""){
604 604
         this.$message.error('补充记录未填')
605
-      }else if(this.dialysisOrder.finish_nurse == 0){
605
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
606 606
         this.$message.error('回血护士未填')
607 607
       }else if(this.dialysisOrder.end_time == 0){
608 608
         this.$message.error('回血时间未填')
609
-      }else if(this.monitors.length > 0){
610
-        this.monitors.map(item => {
611
-          if(item.id > 0 && item.operate_time){
612
-            this.users.map(it => {
613
-              if(it.id == item.monitoring_nurse){
614
-                if(it.type != 3){
615
-                  this.$message.error('存在不是护士保存的监测')
616
-                }
617
-              }
618
-            })
619
-          }
620
-        })
621
-      }else if(this.tableAdvice.length > 0){
622
-        this.tableAdvice.map(item => {
623
-          if(item.id > 0 && item.created_time){
624
-            this.users.map(it => {
625
-              if(it.id == item.advice_doctor){
626
-                if(it.type != 2){
627
-                  this.$message.error('存在不是医生保存的医嘱')
628
-                }
629
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
630
-                if(it.type != 3){
631
-                  this.$message.error('存在不是护士执行的医嘱')
609
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
610
+        let num = 0
611
+        if(this.monitors.length > 0){
612
+          this.monitors.map(item => {
613
+            if(item.id > 0 && item.operate_time){
614
+              this.users.map(it => {
615
+                if(it.id == item.monitoring_nurse){
616
+                  if(it.user_type == 2){
617
+                    num++
618
+                    this.$message.closeAll()
619
+                    this.$message.error('存在不是护士保存的监测')
620
+                  }
632 621
                 }
633
-              }else if(it.id == item.checker && item.checker > 0){
634
-                if(it.type != 3){
635
-                  this.$message.error('存在不是护士核对的医嘱')
622
+              })
623
+            }
624
+          })
625
+        }
626
+        if(this.tableAdvice.length > 0){
627
+          this.tableAdvice.map(item => {
628
+            if(item.id > 0 && (item.created_time || item.start_time)){
629
+              this.users.map(it => {
630
+                if(it.id == item.advice_doctor){
631
+                  if(it.user_type == 3){
632
+                    num++
633
+                    this.$message.closeAll()
634
+                    this.$message.error('存在不是医生保存的医嘱')
635
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
636
+                    if(it.user_type == 2){
637
+                      num++
638
+                      this.$message.closeAll()
639
+                      this.$message.error('存在不是护士执行的医嘱')
640
+                    }
641
+                  }else if(it.id == item.checker && item.checker > 0){
642
+                    if(it.user_type == 2){
643
+                      num++
644
+                      this.$message.closeAll()
645
+                      this.$message.error('存在不是护士核对的医嘱')
646
+                    }
647
+                  }
648
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
649
+                  if(it.user_type == 2){
650
+                    num++
651
+                    this.$message.closeAll()
652
+                    this.$message.error('存在不是护士执行的医嘱')
653
+                  }
654
+                }else if(it.id == item.checker && item.checker > 0){
655
+                  if(it.user_type == 2){
656
+                    num++
657
+                    this.$message.closeAll()
658
+                    this.$message.error('存在不是护士核对的医嘱')
659
+                  }
636 660
                 }
637
-              }
638
-            })
639
-          }
661
+              })
662
+            }
640 663
         })
664
+        }
665
+        
666
+        if(num == 0){
667
+          this.$message.success('核对完成')
668
+        }
669
+      }else{
670
+        this.$message.success('核对完成')
641 671
       }
642 672
     },
643 673
     getNewAge(UUserCard) {

+ 49 - 22
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5 5
       <div
6 6
         id="dialysis-print-box-1-1"
@@ -850,13 +850,13 @@ export default {
850 850
         this.$message.error('跌倒风险预防措施未填')
851 851
       }else if(this.prescription.prescription_doctor == 0){
852 852
         this.$message.error('上机医生未填')
853
-      }else if(this.dialysisOrder.washpipe_nurse == 0){
853
+      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse == 0){
854 854
         this.$message.error('冲管护士未填')
855
-      }else if(this.dialysisOrder.puncture_nurse == 0){
855
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
856 856
         this.$message.error('穿刺者未填')
857
-      }else if(this.dialysisOrder.start_nurse == 0){
857
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
858 858
         this.$message.error('上机护士未填')
859
-      }else if(this.dialysisOrder.finish_nurse == 0){
859
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
860 860
         this.$message.error('下机护士未填')
861 861
       }else if(this.afterdialysis.temperature == 0){
862 862
         this.$message.error('透后体温未填')
@@ -885,25 +885,52 @@ export default {
885 885
       }else if(this.summary.special_record == ""){
886 886
         this.$message.error('病情记录未填')
887 887
       }else if(this.tableAdvice.length > 0){
888
-        this.tableAdvice.map(item => {
889
-          if(item.id > 0 && item.created_time){
890
-            this.users.map(it => {
891
-              if(it.id == item.advice_doctor){
892
-                if(it.type != 2){
893
-                  this.$message.error('存在不是医生保存的医嘱')
894
-                }
895
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
896
-                if(it.type != 3){
897
-                  this.$message.error('存在不是护士执行的医嘱')
898
-                }
899
-              }else if(it.id == item.checker && item.checker > 0){
900
-                if(it.type != 3){
901
-                  this.$message.error('存在不是护士核对的医嘱')
888
+        let num = 0
889
+        if(this.tableAdvice.length > 0){
890
+          this.tableAdvice.map(item => {
891
+            if(item.id > 0 && (item.created_time || item.start_time)){
892
+              this.users.map(it => {
893
+                if(it.id == item.advice_doctor){
894
+                  if(it.user_type == 3){
895
+                    num++
896
+                    this.$message.closeAll()
897
+                    this.$message.error('存在不是医生保存的医嘱')
898
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
899
+                    if(it.user_type == 2){
900
+                      num++
901
+                      this.$message.closeAll()
902
+                      this.$message.error('存在不是护士执行的医嘱')
903
+                    }
904
+                  }else if(it.id == item.checker && item.checker > 0){
905
+                    if(it.user_type == 2){
906
+                      num++
907
+                      this.$message.closeAll()
908
+                      this.$message.error('存在不是护士核对的医嘱')
909
+                    }
910
+                  }
911
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
912
+                  if(it.user_type == 2){
913
+                    num++
914
+                    this.$message.closeAll()
915
+                    this.$message.error('存在不是护士执行的医嘱')
916
+                  }
917
+                }else if(it.id == item.checker && item.checker > 0){
918
+                  if(it.user_type == 2){
919
+                    num++
920
+                    this.$message.closeAll()
921
+                    this.$message.error('存在不是护士核对的医嘱')
922
+                  }
902 923
                 }
903
-              }
904
-            })
905
-          }
924
+              })
925
+            }
906 926
         })
927
+        }
928
+        
929
+        if(num == 0){
930
+          this.$message.success('核对完成')
931
+        }
932
+      }else{
933
+        this.$message.success('核对完成')
907 934
       }
908 935
     },
909 936
     getNewAge(UUserCard) {

+ 64 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySeven.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -673,8 +673,70 @@ export default {
673 673
         this.$message.error('静脉凝血未填')
674 674
       }else if(this.dialysis_summary == ""){
675 675
         this.$message.error('治疗小结未填')
676
-      }else if(this.dialysisOrder.start_nurse == 0){
676
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
677 677
         this.$message.error('上机护士未填')
678
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
679
+        let num = 0
680
+        if(this.monitors.length > 0){
681
+          this.monitors.map(item => {
682
+            if(item.id > 0 && item.operate_time){
683
+              this.users.map(it => {
684
+                if(it.id == item.monitoring_nurse){
685
+                  if(it.user_type == 2){
686
+                    num++
687
+                    this.$message.closeAll()
688
+                    this.$message.error('存在不是护士保存的监测')
689
+                  }
690
+                }
691
+              })
692
+            }
693
+          })
694
+        }
695
+        if(this.tableAdvice.length > 0){
696
+          this.tableAdvice.map(item => {
697
+            if(item.id > 0 && (item.created_time || item.start_time)){
698
+              this.users.map(it => {
699
+                if(it.id == item.advice_doctor){
700
+                  if(it.user_type == 3){
701
+                    num++
702
+                    this.$message.closeAll()
703
+                    this.$message.error('存在不是医生保存的医嘱')
704
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
705
+                    if(it.user_type == 2){
706
+                      num++
707
+                      this.$message.closeAll()
708
+                      this.$message.error('存在不是护士执行的医嘱')
709
+                    }
710
+                  }else if(it.id == item.checker && item.checker > 0){
711
+                    if(it.user_type == 2){
712
+                      num++
713
+                      this.$message.closeAll()
714
+                      this.$message.error('存在不是护士核对的医嘱')
715
+                    }
716
+                  }
717
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
718
+                  if(it.user_type == 2){
719
+                    num++
720
+                    this.$message.closeAll()
721
+                    this.$message.error('存在不是护士执行的医嘱')
722
+                  }
723
+                }else if(it.id == item.checker && item.checker > 0){
724
+                  if(it.user_type == 2){
725
+                    num++
726
+                    this.$message.closeAll()
727
+                    this.$message.error('存在不是护士核对的医嘱')
728
+                  }
729
+                }
730
+              })
731
+            }
732
+        })
733
+        }
734
+        
735
+        if(num == 0){
736
+          this.$message.success('核对完成')
737
+        }
738
+      }else{
739
+        this.$message.success('核对完成')
678 740
       }
679 741
     },
680 742
     getCruor(cruor){

+ 65 - 18
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <!-- <div class="order-yy-name">{{ orgname }}</div> -->
@@ -1213,6 +1213,10 @@ export default {
1213 1213
           this.$message.error('医生签名未填')
1214 1214
         }else if(this.dialysisOrder.puncture_nurse == 0){
1215 1215
           this.$message.error('穿刺护士未填')
1216
+        }else if (this.dialysisOrder == null && this.check.creater == 0) {
1217
+          this.$message.error('核对护士未填')
1218
+        }else if (this.dialysisOrder != null && this.check.creater == 0) {
1219
+          this.$message.error('核对护士未填')
1216 1220
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1217 1221
           this.$message.error('核对护士未填')
1218 1222
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
@@ -1221,26 +1225,68 @@ export default {
1221 1225
           this.$message.error('看机护士未填')
1222 1226
         }else if(this.dialysisOrder.finish_nurse == 0){
1223 1227
           this.$message.error('下机护士未填')
1224
-        }else if(this.tableAdvice.length > 0){
1225
-          this.tableAdvice.map(item => {
1226
-            if(item.id > 0 && item.created_time){
1227
-              this.users.map(it => {
1228
-                if(it.id == item.advice_doctor){
1229
-                  if(it.type != 2){
1230
-                    this.$message.error('存在不是医生保存的医嘱')
1231
-                  }
1232
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1233
-                  if(it.type != 3){
1234
-                    this.$message.error('存在不是护士执行的医嘱')
1228
+        }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1229
+          let num = 0
1230
+          if(this.monitors.length > 0){
1231
+            this.monitors.map(item => {
1232
+              if(item.id > 0 && item.operate_time){
1233
+                this.users.map(it => {
1234
+                  if(it.id == item.monitoring_nurse){
1235
+                    if(it.user_type == 2){
1236
+                      num++
1237
+                      this.$message.closeAll()
1238
+                      this.$message.error('存在不是护士保存的监测')
1239
+                    }
1235 1240
                   }
1236
-                }else if(it.id == item.checker && item.checker > 0){
1237
-                  if(it.type != 3){
1238
-                    this.$message.error('存在不是护士核对的医嘱')
1241
+                })
1242
+              }
1243
+            })
1244
+          }
1245
+          if(this.tableAdvice.length > 0){
1246
+            this.tableAdvice.map(item => {
1247
+              if(item.id > 0 && (item.created_time || item.start_time)){
1248
+                this.users.map(it => {
1249
+                  if(it.id == item.advice_doctor){
1250
+                    if(it.user_type == 3){
1251
+                      num++
1252
+                      this.$message.closeAll()
1253
+                      this.$message.error('存在不是医生保存的医嘱')
1254
+                    }else if(it.id == item.execution_staff && item.execution_staff > 0){
1255
+                      if(it.user_type == 2){
1256
+                        num++
1257
+                        this.$message.closeAll()
1258
+                        this.$message.error('存在不是护士执行的医嘱')
1259
+                      }
1260
+                    }else if(it.id == item.checker && item.checker > 0){
1261
+                      if(it.user_type == 2){
1262
+                        num++
1263
+                        this.$message.closeAll()
1264
+                        this.$message.error('存在不是护士核对的医嘱')
1265
+                      }
1266
+                    }
1267
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1268
+                    if(it.user_type == 2){
1269
+                      num++
1270
+                      this.$message.closeAll()
1271
+                      this.$message.error('存在不是护士执行的医嘱')
1272
+                    }
1273
+                  }else if(it.id == item.checker && item.checker > 0){
1274
+                    if(it.user_type == 2){
1275
+                      num++
1276
+                      this.$message.closeAll()
1277
+                      this.$message.error('存在不是护士核对的医嘱')
1278
+                    }
1239 1279
                   }
1240
-                }
1241
-              })
1242
-            }
1280
+                })
1281
+              }
1243 1282
           })
1283
+          }
1284
+          
1285
+          if(num == 0){
1286
+            this.$message.success('核对完成')
1287
+          }
1288
+        }else{
1289
+          this.$message.success('核对完成')
1244 1290
         }
1245 1291
       },
1246 1292
       getComplication(complication){
@@ -1508,6 +1554,7 @@ export default {
1508 1554
             }
1509 1555
 
1510 1556
             this.advices = response.data.data.advices
1557
+            this.tableAdvice = response.data.data.advices;
1511 1558
             console.log('hhhhhhhhhhhh', this.advices)
1512 1559
             this.monitors = response.data.data.monitors
1513 1560
             console.log('哈哈哈哈哈哈哈', this.monitors)

+ 7 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -1197,6 +1197,7 @@ export default {
1197 1197
                 if(it.id == item.monitoring_nurse){
1198 1198
                   if(it.user_type == 2){
1199 1199
                     num++
1200
+                    this.$message.closeAll()
1200 1201
                     this.$message.error('存在不是护士保存的监测')
1201 1202
                   }
1202 1203
                 }
@@ -1211,26 +1212,31 @@ export default {
1211 1212
                 if(it.id == item.advice_doctor){
1212 1213
                   if(it.user_type == 3){
1213 1214
                     num++
1215
+                    this.$message.closeAll()
1214 1216
                     this.$message.error('存在不是医生保存的医嘱')
1215 1217
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1216 1218
                     if(it.user_type == 2){
1217 1219
                       num++
1220
+                      this.$message.closeAll()
1218 1221
                       this.$message.error('存在不是护士执行的医嘱')
1219 1222
                     }
1220 1223
                   }else if(it.id == item.checker && item.checker > 0){
1221 1224
                     if(it.user_type == 2){
1222 1225
                       num++
1226
+                      this.$message.closeAll()
1223 1227
                       this.$message.error('存在不是护士核对的医嘱')
1224 1228
                     }
1225 1229
                   }
1226 1230
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1227 1231
                   if(it.user_type == 2){
1228 1232
                     num++
1233
+                    this.$message.closeAll()
1229 1234
                     this.$message.error('存在不是护士执行的医嘱')
1230 1235
                   }
1231 1236
                 }else if(it.id == item.checker && item.checker > 0){
1232 1237
                   if(it.user_type == 2){
1233 1238
                     num++
1239
+                    this.$message.closeAll()
1234 1240
                     this.$message.error('存在不是护士核对的医嘱')
1235 1241
                   }
1236 1242
                 }

+ 12 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
       
@@ -1763,7 +1763,7 @@ export default {
1763 1763
           this.$message.error('计划治疗时间未填')
1764 1764
         }else if(this.prescription.target_ultrafiltration == 0){
1765 1765
           this.$message.error('计划超滤总量未填')
1766
-        }else if(this.prescription.replacement_total == ""){
1766
+        }else if(this.prescription.replacement_total == "" && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
1767 1767
           this.$message.error('置换量未填')
1768 1768
         }else if(this.prescription.mode_id == ""){
1769 1769
           this.$message.error('透析方式未填')
@@ -1803,10 +1803,14 @@ export default {
1803 1803
           this.$message.error('去向未填')
1804 1804
         }else if(this.prescription.prescription_doctor == 0){
1805 1805
           this.$message.error('医生未填')
1806
-        }else if(this.dialysisOrder.start_nurse == 0){
1806
+        }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1807 1807
           this.$message.error('责任护士未填')
1808 1808
         }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1809 1809
           this.$message.error('穿刺护士未填')
1810
+        }else if (this.dialysisOrder == null && this.check.creater == 0) {
1811
+          this.$message.error('核对护士未填')
1812
+        }else if (this.dialysisOrder != null && this.check.creater == 0) {
1813
+          this.$message.error('核对护士未填')
1810 1814
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1811 1815
           this.$message.error('核对护士未填')
1812 1816
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
@@ -1820,26 +1824,31 @@ export default {
1820 1824
                   if(it.id == item.advice_doctor){
1821 1825
                     if(it.user_type == 3){
1822 1826
                       num++
1827
+                      this.$message.closeAll()
1823 1828
                       this.$message.error('存在不是医生保存的医嘱')
1824 1829
                     }else if(it.id == item.execution_staff && item.execution_staff > 0){
1825 1830
                       if(it.user_type == 2){
1826 1831
                         num++
1832
+                        this.$message.closeAll()
1827 1833
                         this.$message.error('存在不是护士执行的医嘱')
1828 1834
                       }
1829 1835
                     }else if(it.id == item.checker && item.checker > 0){
1830 1836
                       if(it.user_type == 2){
1831 1837
                         num++
1838
+                        this.$message.closeAll()
1832 1839
                         this.$message.error('存在不是护士核对的医嘱')
1833 1840
                       }
1834 1841
                     }
1835 1842
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1836 1843
                     if(it.user_type == 2){
1837 1844
                       num++
1845
+                      this.$message.closeAll()
1838 1846
                       this.$message.error('存在不是护士执行的医嘱')
1839 1847
                     }
1840 1848
                   }else if(it.id == item.checker && item.checker > 0){
1841 1849
                     if(it.user_type == 2){
1842 1850
                       num++
1851
+                      this.$message.closeAll()
1843 1852
                       this.$message.error('存在不是护士核对的医嘱')
1844 1853
                     }
1845 1854
                   }

+ 27 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <!-- <div class="order-yy-name">{{ orgname }}</div> -->
@@ -1214,16 +1214,35 @@ export default {
1214 1214
           this.$message.error('医生签名未填')
1215 1215
         }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1216 1216
           this.$message.error('穿刺护士未填')
1217
+        }else if (this.dialysisOrder == null && this.check.creater == 0) {
1218
+          this.$message.error('核对护士未填')
1219
+        }else if (this.dialysisOrder != null && this.check.creater == 0) {
1220
+          this.$message.error('核对护士未填')
1217 1221
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1218 1222
           this.$message.error('核对护士未填')
1219 1223
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1220 1224
           this.$message.error('核对护士未填')
1221
-        }else if(this.dialysisOrder.start_nurse == 0){
1225
+        }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1222 1226
           this.$message.error('看机护士未填')
1223 1227
         }else if(this.dialysisOrder.finish_nurse == 0){
1224 1228
           this.$message.error('下机护士未填')
1225
-        }else if(this.tableAdvice.length > 0){
1229
+        }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1226 1230
           let num = 0
1231
+          if(this.monitors.length > 0){
1232
+            this.monitors.map(item => {
1233
+              if(item.id > 0 && item.operate_time){
1234
+                this.users.map(it => {
1235
+                  if(it.id == item.monitoring_nurse){
1236
+                    if(it.user_type == 2){
1237
+                      num++
1238
+                      this.$message.closeAll()
1239
+                      this.$message.error('存在不是护士保存的监测')
1240
+                    }
1241
+                  }
1242
+                })
1243
+              }
1244
+            })
1245
+          }
1227 1246
           if(this.tableAdvice.length > 0){
1228 1247
             this.tableAdvice.map(item => {
1229 1248
               if(item.id > 0 && (item.created_time || item.start_time)){
@@ -1231,26 +1250,31 @@ export default {
1231 1250
                   if(it.id == item.advice_doctor){
1232 1251
                     if(it.user_type == 3){
1233 1252
                       num++
1253
+                      this.$message.closeAll()
1234 1254
                       this.$message.error('存在不是医生保存的医嘱')
1235 1255
                     }else if(it.id == item.execution_staff && item.execution_staff > 0){
1236 1256
                       if(it.user_type == 2){
1237 1257
                         num++
1258
+                        this.$message.closeAll()
1238 1259
                         this.$message.error('存在不是护士执行的医嘱')
1239 1260
                       }
1240 1261
                     }else if(it.id == item.checker && item.checker > 0){
1241 1262
                       if(it.user_type == 2){
1242 1263
                         num++
1264
+                        this.$message.closeAll()
1243 1265
                         this.$message.error('存在不是护士核对的医嘱')
1244 1266
                       }
1245 1267
                     }
1246 1268
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1247 1269
                     if(it.user_type == 2){
1248 1270
                       num++
1271
+                      this.$message.closeAll()
1249 1272
                       this.$message.error('存在不是护士执行的医嘱')
1250 1273
                     }
1251 1274
                   }else if(it.id == item.checker && item.checker > 0){
1252 1275
                     if(it.user_type == 2){
1253 1276
                       num++
1277
+                      this.$message.closeAll()
1254 1278
                       this.$message.error('存在不是护士核对的医嘱')
1255 1279
                     }
1256 1280
                   }

+ 8 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div id='new-dialysis-1' class="dialysis-print-order">
6 6
         <div class="order-yy-name" style="font-size:28px;font-weight:bold;">{{ orgname }}</div>
@@ -1750,7 +1750,7 @@ export default {
1750 1750
         this.$message.error('冲管护士未填')
1751 1751
       }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1752 1752
         this.$message.error('穿刺护士未填')
1753
-      }else if(this.dialysisOrder.start_nurse == 0){
1753
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1754 1754
         this.$message.error('责任护士未填')
1755 1755
       }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1756 1756
         let num = 0
@@ -1761,6 +1761,7 @@ export default {
1761 1761
                 if(it.id == item.monitoring_nurse){
1762 1762
                   if(it.user_type == 2){
1763 1763
                     num++
1764
+                    this.$message.closeAll()
1764 1765
                     this.$message.error('存在不是护士保存的监测')
1765 1766
                   }
1766 1767
                 }
@@ -1775,26 +1776,31 @@ export default {
1775 1776
                 if(it.id == item.advice_doctor){
1776 1777
                   if(it.user_type == 3){
1777 1778
                     num++
1779
+                    this.$message.closeAll()
1778 1780
                     this.$message.error('存在不是医生保存的医嘱')
1779 1781
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1780 1782
                     if(it.user_type == 2){
1781 1783
                       num++
1784
+                      this.$message.closeAll()
1782 1785
                       this.$message.error('存在不是护士执行的医嘱')
1783 1786
                     }
1784 1787
                   }else if(it.id == item.checker && item.checker > 0){
1785 1788
                     if(it.user_type == 2){
1786 1789
                       num++
1790
+                      this.$message.closeAll()
1787 1791
                       this.$message.error('存在不是护士核对的医嘱')
1788 1792
                     }
1789 1793
                   }
1790 1794
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1791 1795
                   if(it.user_type == 2){
1792 1796
                     num++
1797
+                    this.$message.closeAll()
1793 1798
                     this.$message.error('存在不是护士执行的医嘱')
1794 1799
                   }
1795 1800
                 }else if(it.id == item.checker && item.checker > 0){
1796 1801
                   if(it.user_type == 2){
1797 1802
                     num++
1803
+                    this.$message.closeAll()
1798 1804
                     this.$message.error('存在不是护士核对的医嘱')
1799 1805
                   }
1800 1806
                 }

+ 10 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div id='new-dialysis-1' class="dialysis-print-order" style="position:relative;">
6 6
         <img src="../../../assets/img/xuanwei.jpg" style="position: absolute;" alt="">
@@ -734,7 +734,9 @@ export default {
734 734
   },
735 735
   methods: {
736 736
     checkData(){
737
-      if(this.predialysis.is_hemorrhage == 0){
737
+      if(this.receiverTreatmentAccess.condition == 0){
738
+        this.$message.error('病室未填')
739
+      }else if(this.predialysis.is_hemorrhage == 0){
738 740
         this.$message.error('出血未填')
739 741
       }else if(this.predialysis.is_hemorrhage == 1 && this.predialysis.hemorrhage == ""){
740 742
         this.$message.error('出血未填')
@@ -791,6 +793,7 @@ export default {
791 793
                 if(it.id == item.monitoring_nurse){
792 794
                   if(it.user_type == 2){
793 795
                     num++
796
+                    this.$message.closeAll()
794 797
                     this.$message.error('存在不是护士保存的监测')
795 798
                   }
796 799
                 }
@@ -805,26 +808,31 @@ export default {
805 808
                 if(it.id == item.advice_doctor){
806 809
                   if(it.user_type == 3){
807 810
                     num++
811
+                    this.$message.closeAll()
808 812
                     this.$message.error('存在不是医生保存的医嘱')
809 813
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
810 814
                     if(it.user_type == 2){
811 815
                       num++
816
+                      this.$message.closeAll()
812 817
                       this.$message.error('存在不是护士执行的医嘱')
813 818
                     }
814 819
                   }else if(it.id == item.checker && item.checker > 0){
815 820
                     if(it.user_type == 2){
816 821
                       num++
822
+                      this.$message.closeAll()
817 823
                       this.$message.error('存在不是护士核对的医嘱')
818 824
                     }
819 825
                   }
820 826
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
821 827
                   if(it.user_type == 2){
822 828
                     num++
829
+                    this.$message.closeAll()
823 830
                     this.$message.error('存在不是护士执行的医嘱')
824 831
                   }
825 832
                 }else if(it.id == item.checker && item.checker > 0){
826 833
                   if(it.user_type == 2){
827 834
                     num++
835
+                    this.$message.closeAll()
828 836
                     this.$message.error('存在不是护士核对的医嘱')
829 837
                   }
830 838
                 }

+ 7 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div id='new-dialysis-1' class="dialysis-print-order">
6 6
         <div class="order-yy-name"></div>
@@ -1424,7 +1424,7 @@ export default {
1424 1424
         this.$message.error('透后并发症未填')
1425 1425
       }else if(this.summary.special_record == ""){
1426 1426
         this.$message.error('特殊记录未填')
1427
-      }else if(this.dialysisOrder.start_nurse == 0){
1427
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1428 1428
         this.$message.error('当班责任护士未填')
1429 1429
       }else if(this.dialysisOrder.finish_nurse == 0){
1430 1430
         this.$message.error('下机护士未填')
@@ -1437,26 +1437,31 @@ export default {
1437 1437
                 if(it.id == item.advice_doctor){
1438 1438
                   if(it.user_type == 3){
1439 1439
                     num++
1440
+                    this.$message.closeAll()
1440 1441
                     this.$message.error('存在不是医生保存的医嘱')
1441 1442
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1442 1443
                     if(it.user_type == 2){
1443 1444
                       num++
1445
+                      this.$message.closeAll()
1444 1446
                       this.$message.error('存在不是护士执行的医嘱')
1445 1447
                     }
1446 1448
                   }else if(it.id == item.checker && item.checker > 0){
1447 1449
                     if(it.user_type == 2){
1448 1450
                       num++
1451
+                      this.$message.closeAll()
1449 1452
                       this.$message.error('存在不是护士核对的医嘱')
1450 1453
                     }
1451 1454
                   }
1452 1455
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1453 1456
                   if(it.user_type == 2){
1454 1457
                     num++
1458
+                    this.$message.closeAll()
1455 1459
                     this.$message.error('存在不是护士执行的医嘱')
1456 1460
                   }
1457 1461
                 }else if(it.id == item.checker && item.checker > 0){
1458 1462
                   if(it.user_type == 2){
1459 1463
                     num++
1464
+                    this.$message.closeAll()
1460 1465
                     this.$message.error('存在不是护士核对的医嘱')
1461 1466
                   }
1462 1467
                 }

+ 29 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -1261,7 +1261,7 @@ export default {
1261 1261
         this.$message.error('透前脉搏未填')
1262 1262
       }else if(this.predialysis.breathing_rate == ""){
1263 1263
         this.$message.error('透前呼吸频率未填')
1264
-      }else if((this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1264
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1265 1265
         this.$message.error('透前血压未填完整')
1266 1266
       }else if(this.predialysis.symptom_before_dialysis == ""){
1267 1267
         this.$message.error('上机前病情未填')
@@ -1295,7 +1295,7 @@ export default {
1295 1295
         this.$message.error('碳酸氢根未填')
1296 1296
       }else if(this.predialysis.blood_access_part_opera_name == ''){
1297 1297
         this.$message.error('血管通路未填')
1298
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1298
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1299 1299
         this.$message.error('穿刺者未填')
1300 1300
       }else if(this.predialysis.weight_before == 0){
1301 1301
         this.$message.error('透前体重未填')
@@ -1313,14 +1313,33 @@ export default {
1313 1313
         this.$message.error('透后导管未填')
1314 1314
       }else if(this.summary.dialysis_summary == ""){
1315 1315
         this.$message.error('治疗小结未填')
1316
-      }else if(this.dialysisOrder.start_nurse == 0){
1316
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1317 1317
         this.$message.error('护士签名未填')
1318
+      }else if (this.dialysisOrder == null && this.check.creater == 0) {
1319
+        this.$message.error('核对护士未填')
1320
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
1321
+        this.$message.error('核对护士未填')
1318 1322
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1319 1323
         this.$message.error('核对护士未填')
1320 1324
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1321 1325
         this.$message.error('核对护士未填')
1322
-      }else if(this.tableAdvice.length > 0){
1326
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1323 1327
         let num = 0
1328
+        if(this.monitors.length > 0){
1329
+          this.monitors.map(item => {
1330
+            if(item.id > 0 && item.operate_time){
1331
+              this.users.map(it => {
1332
+                if(it.id == item.monitoring_nurse){
1333
+                  if(it.user_type == 2){
1334
+                    num++
1335
+                    this.$message.closeAll()
1336
+                    this.$message.error('存在不是护士保存的监测')
1337
+                  }
1338
+                }
1339
+              })
1340
+            }
1341
+          })
1342
+        }
1324 1343
         if(this.tableAdvice.length > 0){
1325 1344
           this.tableAdvice.map(item => {
1326 1345
             if(item.id > 0 && (item.created_time || item.start_time)){
@@ -1328,26 +1347,31 @@ export default {
1328 1347
                 if(it.id == item.advice_doctor){
1329 1348
                   if(it.user_type == 3){
1330 1349
                     num++
1350
+                    this.$message.closeAll()
1331 1351
                     this.$message.error('存在不是医生保存的医嘱')
1332 1352
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1333 1353
                     if(it.user_type == 2){
1334 1354
                       num++
1355
+                      this.$message.closeAll()
1335 1356
                       this.$message.error('存在不是护士执行的医嘱')
1336 1357
                     }
1337 1358
                   }else if(it.id == item.checker && item.checker > 0){
1338 1359
                     if(it.user_type == 2){
1339 1360
                       num++
1361
+                      this.$message.closeAll()
1340 1362
                       this.$message.error('存在不是护士核对的医嘱')
1341 1363
                     }
1342 1364
                   }
1343 1365
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1344 1366
                   if(it.user_type == 2){
1345 1367
                     num++
1368
+                    this.$message.closeAll()
1346 1369
                     this.$message.error('存在不是护士执行的医嘱')
1347 1370
                   }
1348 1371
                 }else if(it.id == item.checker && item.checker > 0){
1349 1372
                   if(it.user_type == 2){
1350 1373
                     num++
1374
+                    this.$message.closeAll()
1351 1375
                     this.$message.error('存在不是护士核对的医嘱')
1352 1376
                   }
1353 1377
                 }

+ 11 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5 5
       <div id="dialysis-print-box-1-1" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-900 dialysis-print-order print-template-two print_page_main_content' : 'margin-bottom-50 dialysis-print-order print-template-two print_page_main_content'">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -1343,7 +1343,7 @@ export default {
1343 1343
       }else if(this.predialysis.puncture_way == ""){
1344 1344
         this.$message.error('穿刺方式未填')
1345 1345
       }else if(this.predialysis.venous_catheterization == 0){
1346
-        this.$message.error('中心静脉管未填')
1346
+        this.$message.error('中心静脉管未填')
1347 1347
       }else if(this.predialysis.blood_access_part_id == ''){
1348 1348
         this.$message.error('中心静脉导管位置未填')
1349 1349
       }else if(this.predialysis.catheter == ''){
@@ -1384,7 +1384,7 @@ export default {
1384 1384
         this.$message.error('透析器凝血未填')
1385 1385
       }else if(this.afterdialysis.patient_gose == 0){
1386 1386
         this.$message.error('患者去向未填')
1387
-      }else if(this.dialysisOrder.start_nurse == 0){
1387
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1388 1388
         this.$message.error('责任护士未填')
1389 1389
       }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1390 1390
         this.$message.error('穿刺者未填')
@@ -1398,7 +1398,7 @@ export default {
1398 1398
         this.$message.error('核对人未填')
1399 1399
       }else if(this.dialysisOrder.finish_nurse == 0){
1400 1400
         this.$message.error('收针者未填')
1401
-      }else if(this.dialysisOrder.start_nurse == 0){
1401
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1402 1402
         this.$message.error('血透室护士签名未填')
1403 1403
       }else if(this.prescription.mode_id == ""){
1404 1404
         this.$message.error('治疗方式未填')
@@ -1416,7 +1416,7 @@ export default {
1416 1416
         this.$message.error('钠未填')
1417 1417
       }else if(this.prescription.kalium == 0){
1418 1418
         this.$message.error('钾未填')
1419
-      }else if(this.prescription.displace_liqui_value == 0){
1419
+      }else if(this.prescription.displace_liqui_value == 0 && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
1420 1420
         this.$message.error('置换液后/前稀释未填')
1421 1421
       }else if(this.prescription.blood_access == 0){
1422 1422
         this.$message.error('血管通路未填')
@@ -1441,6 +1441,7 @@ export default {
1441 1441
                 if(it.id == item.monitoring_nurse){
1442 1442
                   if(it.user_type == 2){
1443 1443
                     num++
1444
+                    this.$message.closeAll()
1444 1445
                     this.$message.error('存在不是护士保存的监测')
1445 1446
                   }
1446 1447
                 }
@@ -1455,26 +1456,31 @@ export default {
1455 1456
                 if(it.id == item.advice_doctor){
1456 1457
                   if(it.user_type == 3){
1457 1458
                     num++
1459
+                    this.$message.closeAll()
1458 1460
                     this.$message.error('存在不是医生保存的医嘱')
1459 1461
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1460 1462
                     if(it.user_type == 2){
1461 1463
                       num++
1464
+                      this.$message.closeAll()
1462 1465
                       this.$message.error('存在不是护士执行的医嘱')
1463 1466
                     }
1464 1467
                   }else if(it.id == item.checker && item.checker > 0){
1465 1468
                     if(it.user_type == 2){
1466 1469
                       num++
1470
+                      this.$message.closeAll()
1467 1471
                       this.$message.error('存在不是护士核对的医嘱')
1468 1472
                     }
1469 1473
                   }
1470 1474
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1471 1475
                   if(it.user_type == 2){
1472 1476
                     num++
1477
+                    this.$message.closeAll()
1473 1478
                     this.$message.error('存在不是护士执行的医嘱')
1474 1479
                   }
1475 1480
                 }else if(it.id == item.checker && item.checker > 0){
1476 1481
                   if(it.user_type == 2){
1477 1482
                     num++
1483
+                    this.$message.closeAll()
1478 1484
                     this.$message.error('存在不是护士核对的医嘱')
1479 1485
                   }
1480 1486
                 }

+ 5 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box">
5 5
       <div class="dialysis-print-order">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -1311,6 +1311,7 @@ export default {
1311 1311
                 if(it.id == item.monitoring_nurse){
1312 1312
                   if(it.user_type == 2){
1313 1313
                     num++
1314
+                    this.$message.closeAll()
1314 1315
                     this.$message.error('存在不是护士保存的监测')
1315 1316
                   }
1316 1317
                 }
@@ -1325,17 +1326,20 @@ export default {
1325 1326
                 if(it.id == item.advice_doctor){
1326 1327
                   if(it.user_type == 3){
1327 1328
                     num++
1329
+                    this.$message.closeAll()
1328 1330
                     this.$message.error('存在不是医生保存的医嘱')
1329 1331
                   }
1330 1332
                   else if(it.id == item.execution_staff && item.execution_staff > 0){
1331 1333
                     if(it.user_type == 2){
1332 1334
                       num++
1335
+                      this.$message.closeAll()
1333 1336
                       this.$message.error('存在不是护士执行的医嘱')
1334 1337
                     }
1335 1338
                   }
1336 1339
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1337 1340
                   if(it.user_type == 2){
1338 1341
                     num++
1342
+                    this.$message.closeAll()
1339 1343
                     this.$message.error('存在不是护士执行的医嘱')
1340 1344
                   }
1341 1345
                 }

+ 7 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4 4
     <div id="dialysis-print-box-1">
5 5
       <div id="dialysis-print-box-1-1" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-900 dialysis-print-order print-template-two print_page_main_content' : 'margin-bottom-50 dialysis-print-order print-template-two print_page_main_content'">
6 6
         <div class="order-yy-name">{{ orgname }}</div>
@@ -1445,6 +1445,7 @@ export default {
1445 1445
                 if(it.id == item.monitoring_nurse){
1446 1446
                   if(it.user_type == 2){
1447 1447
                     num++
1448
+                    this.$message.closeAll()
1448 1449
                     this.$message.error('存在不是护士保存的监测')
1449 1450
                   }
1450 1451
                 }
@@ -1459,26 +1460,31 @@ export default {
1459 1460
                 if(it.id == item.advice_doctor){
1460 1461
                   if(it.user_type == 3){
1461 1462
                     num++
1463
+                    this.$message.closeAll()
1462 1464
                     this.$message.error('存在不是医生保存的医嘱')
1463 1465
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1464 1466
                     if(it.user_type == 2){
1465 1467
                       num++
1468
+                      this.$message.closeAll()
1466 1469
                       this.$message.error('存在不是护士执行的医嘱')
1467 1470
                     }
1468 1471
                   }else if(it.id == item.checker && item.checker > 0){
1469 1472
                     if(it.user_type == 2){
1470 1473
                       num++
1474
+                      this.$message.closeAll()
1471 1475
                       this.$message.error('存在不是护士核对的医嘱')
1472 1476
                     }
1473 1477
                   }
1474 1478
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1475 1479
                   if(it.user_type == 2){
1476 1480
                     num++
1481
+                    this.$message.closeAll()
1477 1482
                     this.$message.error('存在不是护士执行的医嘱')
1478 1483
                   }
1479 1484
                 }else if(it.id == item.checker && item.checker > 0){
1480 1485
                   if(it.user_type == 2){
1481 1486
                     num++
1487
+                    this.$message.closeAll()
1482 1488
                     this.$message.error('存在不是护士核对的医嘱')
1483 1489
                   }
1484 1490
                 }

+ 97 - 44
src/xt_pages/hospitalStation/components/deskPrescription.vue Voir le fichier

@@ -287,11 +287,11 @@
287 287
                     </el-table-column>
288 288
                     <el-table-column label="库存" width="60">
289 289
                       <template slot-scope="scope">
290
-                        {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}
291
-                        <!--/ {{-->
292
-                        <!--scope.row.total * (scope.row.dose / scope.row.min_number)}}-->
293
-                        <!--{{(scope.row.total * (scope.row.dose /-->
294
-                        <!--scope.row.min_number))?scope.row.max_unit:''}}-->
290
+                         <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 ">
291
+                             <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
292
+                             <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
293
+                          </span>
294
+                         <span v-else> {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}</span>
295 295
                       </template>
296 296
                     </el-table-column>
297 297
                     <el-table-column label="单价" width="40">
@@ -382,7 +382,12 @@
382 382
                       <template slot-scope="scope">{{ scope.row.single_dose }}</template>
383 383
                     </el-table-column>
384 384
                     <el-table-column label="库存" width="40">
385
-                      <template slot-scope="scope">{{ scope.row.total }}</template>
385
+                      <template slot-scope="scope">
386
+                         <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10088">
387
+                            {{scope.row.stock_count}}
388
+                        </span>
389
+                       <span v-else> {{ scope.row.total }}</span>
390
+                      </template>
386 391
                     </el-table-column>
387 392
                     <el-table-column label="单价" width="40">
388 393
                       <template slot-scope="scope">{{ scope.row.price }}</template>
@@ -503,6 +508,7 @@
503 508
       month_prescriptions: Array,
504 509
       isloading: false,
505 510
       loading: false,
511
+      org_id:Number,
506 512
       other_sick: {
507 513
         type: Array,
508 514
         default: function() {
@@ -2293,18 +2299,18 @@
2293 2299
             isLoading = true
2294 2300
             console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
2295 2301
             let num = 0
2296
-            this.prescriptions.map(item => {
2297
-              if (item.advices.length > 0) {
2298
-                item.advices.map(it => {
2299
-                  if (it.drug.total <= 0) {
2300
-                    num++
2301
-                    setTimeout(() => {
2302
-                      this.$message.error(it.drug.drug_name + '库存不足')
2303
-                    }, 100)
2304
-                  }
2305
-                })
2306
-              }
2307
-            })
2302
+            // this.prescriptions.map(item => {
2303
+            //   if (item.advices.length > 0) {
2304
+            //     item.advices.map(it => {
2305
+            //       if (it.drug.total <= 0) {
2306
+            //         num++
2307
+            //         setTimeout(() => {
2308
+            //           this.$message.error(it.drug.drug_name + '库存不足')
2309
+            //         }, 100)
2310
+            //       }
2311
+            //     })
2312
+            //   }
2313
+            // })
2308 2314
             if (num == 0) {
2309 2315
               createHisPrescription(data, params).then(response => {
2310 2316
                 if (response.data.state == 1) {
@@ -2649,20 +2655,34 @@
2649 2655
         this.$refs.additionalCharges.show()
2650 2656
       },
2651 2657
       selectDrugs(selection, row) {
2652
-        console.log('selection', selection)
2653
-        console.log('row', row)
2654
-        if (row.total <= 0) {
2655
-          if (selection) {
2656
-            selection.forEach(row => {
2657
-              if (row.total <= 0) {
2658
-                this.$refs.multipleTable.toggleRowSelection(row)
2658
+      if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id ==10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id ==10088 ){
2659
+            if (row.count <= 0) {
2660
+              if (selection) {
2661
+                selection.forEach(row => {
2662
+                  if (row.count <= 0) {
2663
+                    this.$refs.multipleTable.toggleRowSelection(row)
2664
+                  }
2665
+                })
2666
+              } else {
2667
+                this.$refs.multipleTable.clearSelection()
2659 2668
               }
2660
-            })
2661
-          } else {
2662
-            this.$refs.multipleTable.clearSelection()
2663
-          }
2664
-          this.$message.error(row.drug_name + '库存不足')
2665
-          return
2669
+              this.$message.error(row.drug_name + '库存不足')
2670
+              return
2671
+            }
2672
+        }else{
2673
+           if (row.total <= 0) {
2674
+              if (selection) {
2675
+                selection.forEach(row => {
2676
+                  if (row.total <= 0) {
2677
+                    this.$refs.multipleTable.toggleRowSelection(row)
2678
+                  }
2679
+                })
2680
+              } else {
2681
+                this.$refs.multipleTable.clearSelection()
2682
+              }
2683
+              this.$message.error(row.drug_name + '库存不足')
2684
+              return
2685
+            }
2666 2686
         }
2667 2687
         this.curDrugs = selection
2668 2688
       },
@@ -2909,20 +2929,39 @@
2909 2929
       },
2910 2930
       selectChange(selection, row) {
2911 2931
         console.log('row', row)
2912
-        if (row.total <= 0) {
2913
-          if (row.type == 3) {
2914
-            if (selection) {
2915
-              selection.forEach(row => {
2916
-                if (row.total <= 0) {
2917
-                  this.$refs.tables.toggleRowSelection(row)
2918
-                }
2919
-              })
2920
-            } else {
2921
-              this.$refs.tables.clearSelection()
2932
+          if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id ==10245 || this.org_id == 9919 || this.org_id ==10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id ==10088){
2933
+           if (row.stock_count <= 0) {
2934
+            if (row.type == 3) {
2935
+              if (selection) {
2936
+                selection.forEach(row => {
2937
+                  if (row.stock_count <= 0) {
2938
+                    this.$refs.tables.toggleRowSelection(row)
2939
+                  }
2940
+                })
2941
+              } else {
2942
+                this.$refs.tables.clearSelection()
2943
+              }
2944
+              this.$message.error(row.project_name + '库存不足')
2945
+              return
2922 2946
             }
2923
-            this.$message.error(row.project_name + '库存不足')
2924
-            return
2925 2947
           }
2948
+        }else{
2949
+           if (row.total <= 0) {
2950
+            if (row.type == 3) {
2951
+              if (selection) {
2952
+                selection.forEach(row => {
2953
+                  if (row.total <= 0) {
2954
+                    this.$refs.tables.toggleRowSelection(row)
2955
+                  }
2956
+                })
2957
+              } else {
2958
+                this.$refs.tables.clearSelection()
2959
+              }
2960
+              this.$message.error(row.project_name + '库存不足')
2961
+              return
2962
+            }
2963
+          }
2964
+
2926 2965
         }
2927 2966
         this.teamList.push(row)
2928 2967
       },
@@ -2948,6 +2987,7 @@
2948 2987
                 total: project[i].total,
2949 2988
                 is_special_diseases: project[i].disease_directory,
2950 2989
                 project: project[i],
2990
+                stock_count:0,
2951 2991
               }
2952 2992
 
2953 2993
               this.tabProject.push(obj)
@@ -2956,6 +2996,12 @@
2956 2996
             var good_info = response.data.data.good_info
2957 2997
 
2958 2998
             for (let i = 0; i < good_info.length; i++) {
2999
+               good_info[i].stock_count = 0
3000
+              if(good_info[i].good_stock_in.length >0 ){
3001
+                for(let j=0;j<good_info[i].good_stock_in.length;j++){
3002
+                   good_info[i].stock_count += good_info[i].good_stock_in[j].stock_count
3003
+                }
3004
+              }
2959 3005
               let obj = {
2960 3006
                 id: good_info[i].id,
2961 3007
                 project_name: good_info[i].good_name,
@@ -2972,6 +3018,7 @@
2972 3018
                 total: good_info[i].total,
2973 3019
                 is_special_diseases: good_info[i].is_special_diseases,
2974 3020
                 good_info: good_info[i],
3021
+                stock_count:good_info[i].stock_count,
2975 3022
               }
2976 3023
               this.tabProject.push(obj)
2977 3024
             }
@@ -3154,7 +3201,9 @@
3154 3201
       clearSelection() {
3155 3202
         this.$refs.tabProjectTeam.clearSelection()
3156 3203
       }
3157
-    }, mounted() {
3204
+    }, 
3205
+    mounted() {
3206
+     
3158 3207
       this.request_record_date = this.record_date
3159 3208
       // this.getInitData()
3160 3209
       //获取所有项目
@@ -3183,6 +3232,10 @@
3183 3232
           }, 400)
3184 3233
         }
3185 3234
       }
3235
+    },
3236
+    created(){
3237
+      console.log("中华任命工商过多水分我333323232",this.org_id)
3238
+      console.log("jjjjjjjjjjjjjjjjjjjjjjjjjjjj",this.drugs)
3186 3239
     }
3187 3240
 
3188 3241
   }

+ 13 - 2
src/xt_pages/hospitalStation/doctorDesk.vue Voir le fichier

@@ -121,6 +121,7 @@
121 121
                                    :month_prescriptions="month_prescriptions"
122 122
                                    ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
123 123
                                    :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)"
124
+                                   :org_id="org_id"
124 125
                                    v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
125 126
 
126 127
 
@@ -941,7 +942,16 @@
941 942
             this.$message.error(response.data.msg)
942 943
             return false
943 944
           } else {
944
-            this.drugs = response.data.data.drugs
945
+            var drugs = response.data.data.drugs
946
+            for(let i=0;i<drugs.length;i++){
947
+                drugs[i].count = 0
948
+              if(drugs[i].stock_in.length > 0){
949
+                 for(let j=0;j<drugs[i].stock_in.length;j++){
950
+                    drugs[i].count += (drugs[i].stock_in[j].stock_max_number * drugs[i].min_number + drugs[i].stock_in[j].stock_min_number)
951
+                 }
952
+              }
953
+            }
954
+            this.drugs = drugs
945 955
             console.log("所有药品信息",this.drugs)
946 956
             this.allDrugs = response.data.data.drugs
947 957
             this.advices_template = response.data.data.advices_template
@@ -4189,7 +4199,8 @@
4189 4199
       // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4190 4200
       let tableHeight = document.body.clientHeight - 323
4191 4201
       this.tableHeight = tableHeight
4192
-
4202
+      this.org_id = this.$store.getters.xt_user.template_info.org_id
4203
+     
4193 4204
     },
4194 4205
 
4195 4206
     mounted() {

+ 17 - 16
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Voir le fichier

@@ -286,7 +286,7 @@
286 286
                                         </el-table-column>
287 287
                                         <el-table-column label="库存" width="60">
288 288
                                             <template slot-scope="scope">
289
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919">
289
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10088">
290 290
                                                <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
291 291
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
292 292
                                               </span>
@@ -383,7 +383,7 @@
383 383
                                         </el-table-column>
384 384
                                         <el-table-column label="库存" width="40">
385 385
                                             <template slot-scope="scope">
386
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919">
386
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10088">
387 387
                                                    {{scope.row.stock_count}}
388 388
                                               </span>
389 389
                                               <span v-else> {{ scope.row.total }}</span>
@@ -2297,19 +2297,20 @@
2297 2297
             isLoading = true
2298 2298
             console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
2299 2299
             let num = 0
2300
-            this.prescriptions.map(item => {
2301
-              if (item.advices.length > 0) {
2302
-                item.advices.map(it => {
2303
-                  if (it.drug.total <= 0) {
2304
-                    num++
2305
-                    setTimeout(() => {
2306
-                      this.$message.error(it.drug.drug_name + '库存不足')
2307
-                    }, 100)
2308
-                  }
2309
-                })
2310
-              }
2311
-            })
2300
+            // this.prescriptions.map(item => {
2301
+            //   if (item.advices.length > 0) {
2302
+            //     item.advices.map(it => {
2303
+            //       if (it.drug.total <= 0) {
2304
+            //         num++
2305
+            //         setTimeout(() => {
2306
+            //           this.$message.error(it.drug.drug_name + '库存不足')
2307
+            //         }, 100)
2308
+            //       }
2309
+            //     })
2310
+            //   }
2311
+            // })
2312 2312
             if (num == 0) {
2313
+             
2313 2314
               createHisPrescription(data, params).then(response => {
2314 2315
                 if (response.data.state == 1) {
2315 2316
                   this.$emit('change', this.patientInfo.id)
@@ -2656,7 +2657,7 @@
2656 2657
       selectDrugs(selection, row) {
2657 2658
         console.log('selection', selection)
2658 2659
         console.log('row', row)
2659
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919){
2660
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10088){
2660 2661
             if (row.count <= 0) {
2661 2662
               if (selection) {
2662 2663
                 selection.forEach(row => {
@@ -2931,7 +2932,7 @@
2931 2932
       },
2932 2933
       selectChange(selection, row) {
2933 2934
         console.log('row', row)
2934
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id ==10245 || this.org_id == 9919 ){
2935
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10088){
2935 2936
            if (row.stock_count <= 0) {
2936 2937
             if (row.type == 3) {
2937 2938
               if (selection) {

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Voir le fichier

@@ -688,7 +688,7 @@ export default {
688 688
             stockIn: this.recordInfo.recordData
689 689
           };
690 690
           console.log("params22222222222",params)
691
-         
691
+        
692 692
           EditDrugWarehouse(
693 693
             params,
694 694
             this.warehousing_time,

+ 10 - 7
src/xt_pages/stock/drugs/inventoryPrint.vue Voir le fichier

@@ -100,14 +100,17 @@ export default {
100 100
          }
101 101
       },
102 102
       getManufacturerName(id){
103
-        var name = ""
104
-        for(let i=0;i<this.manufacturerList.length;i++){
105
-          if(id == this.manufacturerList[i].id){
106
-             name = this.manufacturerList[i].manufacturer_name
107
-          }
108
-          return name
103
+       
104
+           var name = ""
105
+           for(let i=0;i<this.manufacturerList.length;i++){
106
+              if(id == this.manufacturerList[i].id){
107
+                  name = this.manufacturerList[i].manufacturer_name
108
+              }
109
+           }
110
+           return name
109 111
         }
110
-      }
112
+      
113
+      
111 114
      },
112 115
     created(){
113 116
       this.getlist()

+ 4 - 3
src/xt_pages/stock/inventory.vue Voir le fichier

@@ -217,9 +217,9 @@ export default {
217 217
                 this.dealerList = dealer
218 218
                 for(let i=0;i<this.goodList.length;i++){
219 219
                     for(let j=0;j<this.manufacturerList.length;j++){
220
-                    if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
221
-                        this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
222
-                    }
220
+                      if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
221
+                          this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
222
+                      }
223 223
                     }
224 224
                 }
225 225
 
@@ -423,6 +423,7 @@ export default {
423 423
               list[i].type = 6
424 424
               list[i].good_name = list[i].GoodInfo.good_name
425 425
               list[i].specification_name = list[i].GoodInfo.specification_name
426
+              list[i].manufacturer_name = ""
426 427
               for(let j=0;j<this.manufacturerList.length;j++){
427 428
                 if(list[i].manufacturer == this.manufacturerList[j].id){
428 429
                   list[i].manufacturer_name = this.manufacturerList[j].manufacturer_name

+ 1 - 0
src/xt_pages/stock/inventoryPrint.vue Voir le fichier

@@ -96,6 +96,7 @@ export default {
96 96
          })
97 97
         },
98 98
         getManufacturerName(id){
99
+       
99 100
            var name = ""
100 101
            for(let i=0;i<this.manufacturerList.length;i++){
101 102
               if(id == this.manufacturerList[i].id){

+ 2 - 2
src/xt_pages/stock/stockPrint.vue Voir le fichier

@@ -42,7 +42,7 @@
42 42
                                       <span v-if="getWareInfo(item.xt_warehouse_info)>0">{{getWareInfo(item.xt_warehouse_info)}}{{item.packing_unit}}</span>
43 43
                                    </td>
44 44
                                    <td>
45
-                                      <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245">
45
+                                      <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779">
46 46
                                         <span>
47 47
                                           {{getWareInfo(item.xt_warehouse_info) - getOverFlushInfo(item.xt_warehouse_info) + getCancelSotckInfo(item.cancel_stock_info) }}
48 48
                                           </span>
@@ -51,7 +51,7 @@
51 51
                                    </td>
52 52
                                   
53 53
                                    <td>
54
-                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245">{{getOverFlushInfo(item.xt_warehouse_info)}}</span>
54
+                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779">{{getOverFlushInfo(item.xt_warehouse_info)}}</span>
55 55
                                      <span v-else>{{getWareInfo(item.xt_warehouse_info) - getAutoCount(item.id) - getOutCount(item.id) + getCancelCount(item.id) }}</span>
56 56
                                     
57 57
                                    </td>

+ 51 - 18
src/xt_pages/stock/stockQuery.vue Voir le fichier

@@ -106,9 +106,9 @@
106 106
            <span v-if="getWareInfo(scope.row.xt_warehouse_info)>0">{{getWareInfo(scope.row.xt_warehouse_info)}}{{scope.row.packing_unit}}</span>
107 107
          </template>
108 108
        </el-table-column>
109
-       <el-table-column label="出库数量" align="center">
109
+       <el-table-column label="出库数量" align="center" v-if="showOne">
110 110
          <template slot-scope="scope">
111
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245">
111
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id ==  10088">
112 112
             <span>
113 113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
114 114
             </span>
@@ -117,12 +117,24 @@
117 117
          </template>
118 118
        </el-table-column>
119 119
 
120
-       <el-table-column label="剩余库存量" align="center">
120
+       <el-table-column label="出库数量" align="center" v-if="showTwo">
121 121
          <template slot-scope="scope">
122
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
122
+          <span>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span>
123
+         </template>
124
+       </el-table-column>
125
+
126
+       <el-table-column label="剩余库存量" align="center" v-if="showThree">
127
+         <template slot-scope="scope">
128
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
123 129
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
124 130
          </template>
125 131
        </el-table-column>
132
+
133
+      <el-table-column label="剩余库存量" align="center" v-if="showFour">
134
+         <template slot-scope="scope">
135
+          <span>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
136
+         </template>
137
+       </el-table-column>
126 138
        <el-table-column label="操作" align="center" width="260px">
127 139
           <template slot-scope="scope">
128 140
               <el-button
@@ -218,6 +230,10 @@ export default {
218 230
       autoCountList:[],
219 231
       cancelCountList:[],
220 232
       org_id:0,
233
+      showOne:true,
234
+      showTwo:false,
235
+      showThree:true,
236
+      showFour:false
221 237
     };
222 238
   },
223 239
   methods: {
@@ -342,18 +358,23 @@ export default {
342 358
            this.tableList[i].prodect_name = this.getManufacture(this.tableList[i].manufacturer)
343 359
            this.tableList[i].inCount =  this.getWareInfo(this.tableList[i].xt_warehouse_info)
344 360
 
345
-        
346
-          if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245){
347
-             this.tableList[i].outCount  = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverFlushInfo(this.tableList[i].xt_warehouse_info) + this.getCancelSotckInfo(this.tableList[i].cancel_stock_info) 
361
+          if(this.end_time == ""){
362
+            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 ){
363
+              this.tableList[i].outCount  = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverFlushInfo(this.tableList[i].xt_warehouse_info) + this.getCancelSotckInfo(this.tableList[i].cancel_stock_info) 
364
+            }else{
365
+              this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
366
+            }
367
+            
368
+            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 ){
369
+                this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
370
+            }else{
371
+              this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)
372
+            }
348 373
           }else{
349 374
             this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
375
+            this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)
350 376
           }
351 377
           
352
-           if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245){
353
-              this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
354
-           }else{
355
-             this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)
356
-           }
357 378
 
358 379
          }
359 380
          const data = this.formatJson(filterVal, this.tableList)
@@ -412,8 +433,21 @@ export default {
412 433
       };
413 434
     getAllStockList(params).then(response=>{
414 435
          if(response.data.state == 1){
436
+         
437
+          if(this.end_time == ""){
438
+             this.showOne = true
439
+             this.showTwo = false
440
+             this.showThree = true
441
+             this.showFour = false
442
+          }
443
+          if(this.end_time !=""){
444
+            this.showOne = false
445
+            this.showTwo = true
446
+            this.showThree = false
447
+            this.showFour = true
448
+          }
415 449
           var list = response.data.data.list
416
-          // console.log("总库存数量",list)
450
+
417 451
           this.tableList = list
418 452
           var total = response.data.data.total
419 453
           this.total = total
@@ -468,13 +502,13 @@ export default {
468 502
       getStockDrugCount(params).then(response=>{
469 503
          if(response.data.state == 1){
470 504
            var outlist = response.data.data.outList
471
-          //  console.log("出库数量",outlist)
505
+        
472 506
            this.outCountList = outlist
473 507
            var autoCount = response.data.data.autoCount
474
-          //  console.log("autoCount",autoCount)
508
+        
475 509
            this.autoCountList = autoCount
476 510
            var totalCount = response.data.data.totalCount
477
-          //  console.log("totalcount",totalCount)
511
+         
478 512
            this.cancelCountList = totalCount
479 513
          }
480 514
       })
@@ -567,14 +601,13 @@ export default {
567 601
      return total
568 602
    },
569 603
    getCancelSotckInfo(arr){
570
-     console.log("2332323232322332",arr)
604
+    
571 605
      var cancle_toal = 0
572 606
      if(arr.length >0){
573 607
       for(let z=0;z<arr.length;z++){
574 608
         cancle_toal += arr[z].count
575 609
       }
576 610
      }
577
-     console.log("total",cancle_toal)
578 611
      return cancle_toal
579 612
    }
580 613
   }

+ 75 - 31
src/xt_pages/workforce/remind_print_setting.vue Voir le fichier

@@ -19,7 +19,7 @@
19 19
         <div class="print_main_content">
20 20
           <div class="table_panel">
21 21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
22
-              <div class="signPrint">
22
+              <div class="signPrint" v-if="org_id != 10188">
23 23
                 <div>
24 24
                  <span v-if="printObj.zone == 1">分区/</span>
25 25
                  <span v-if="printObj.number == 1">床位号:</span>
@@ -33,7 +33,7 @@
33 33
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
34 34
                   <span v-if="org_id == 10138 ">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
35 35
                   <span v-else >
36
-                   <span>{{getAnticoagulant(main_collection.solution,main_collection.mode_id)}}</span>
36
+                   <span>{{getAnticoagulant(main_collection.dialysissolution.mode_id)}}</span>
37 37
                   </span>
38 38
                 </div>
39 39
                <div v-if="org_id == 10188">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
@@ -41,37 +41,37 @@
41 41
                 <div v-if="printObj.anticoagulant_zongliang == 1">
42 42
                   用量:
43 43
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
44
-                  {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
44
+                   {{main_collection.dialysissolution.anticoagulant_zongliang}}mg
45 45
                   </span>
46 46
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
47
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
47
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}mg
48 48
                   </span>
49 49
                   <span v-if="main_collection.dialysissolution.anticoagulant == 3">
50
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
50
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
51 51
                   </span>
52 52
                   <span v-if="main_collection.dialysissolution.anticoagulant == 4">
53
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
53
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}mg
54 54
                   </span>
55 55
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">
56
-                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
56
+                     {{main_collection.dialysissolution.anticoagulant_zongliang}}mg
57 57
                    </span>
58 58
                   <span v-if="main_collection.dialysissolution.anticoagulant == 6">
59
-                   {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
59
+                   {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
60 60
                   </span>
61 61
                   <span v-if="main_collection.dialysissolution.anticoagulant == 7">
62
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
62
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
63 63
                    </span>
64 64
                   <span v-if="main_collection.dialysissolution.anticoagulant == 8">
65
-                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
65
+                     {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
66 66
                   </span>
67 67
                   <span v-if="main_collection.dialysissolution.anticoagulant == 9">
68
-                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
68
+                     {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
69 69
                   </span>
70 70
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">
71
-                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
71
+                     {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
72 72
                     </span>
73 73
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
74
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
74
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
75 75
                    </span>
76 76
                 </div>
77 77
                 <div v-if="org_id == 10188">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
@@ -80,6 +80,38 @@
80 80
                 <div>用法:静脉注射</div>
81 81
                 <div>打印时间:{{currentDate}}</div>
82 82
               </div>
83
+              <div class="signPrint" style="font-size:16px;" v-else>
84
+                <div style="margin-left:50px;">姓名:
85
+                  <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
86
+                  <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
87
+                  ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
88
+                </div>
89
+                <div class="printCell">
90
+                  <span>
91
+                    床号:{{ main_collection.number.number }}
92
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
93
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
94
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
95
+                  </span>
96
+                  <span>{{ printDate }}</span>
97
+                </div>
98
+                <div class="printCell">
99
+                  <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
100
+                  <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
101
+                </div>
102
+                <div class="printCell">
103
+                  <span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
104
+                  <span>首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</span>
105
+                </div>
106
+                <div class="printCell">
107
+                  <span>体重增加:{{ main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after }}Kg</span>
108
+                  <span>维持:{{main_collection.dialysissolution.anticoagulant_weichi}}</span>
109
+                </div>
110
+                <div class="printCell">
111
+                  <span>处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}</span>
112
+                  <span>总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}</span>
113
+                </div>
114
+              </div>
83 115
            </div>
84 116
           </div>
85 117
         </div>
@@ -121,6 +153,7 @@
121 153
         pre_status:0,
122 154
         printObj:{},
123 155
         type:1,
156
+        printDate:''
124 157
       }
125 158
     },
126 159
     components: {
@@ -133,6 +166,7 @@
133 166
      console.log("机构ID",this.org_id)
134 167
      this.currentDate = this.getCurrentDate()
135 168
 
169
+    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
136 170
     this.modeOptions = this.$store.getters.treatment_mode
137 171
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
138 172
     this.week_type = this.$route.query.week_type
@@ -258,15 +292,26 @@
258 292
 
259 293
       },
260 294
       printAction: function() {
261
-        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } @page {margin-top:10px;}}'
262
-
263
-        printJS({
264
-          printable: 'print_content',
265
-          type: 'html',
266
-          documentTitle: '  ',
267
-          style: style,
268
-          scanStyles: false
269
-        })
295
+        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
296
+        const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 170px;} @page {margin-top:10px;}}'
297
+        if(this.org_id == 10188){
298
+          printJS({
299
+            printable: 'print_content',
300
+            type: 'html',
301
+            documentTitle: '  ',
302
+            style: style1,
303
+            scanStyles: false
304
+          })
305
+        }else{
306
+          printJS({
307
+            printable: 'print_content',
308
+            type: 'html',
309
+            documentTitle: '  ',
310
+            style: style,
311
+            scanStyles: false
312
+          })
313
+        }
314
+        
270 315
       }, getSchedulesType: function(type) {
271 316
         let type_name = ''
272 317
         switch (type) {
@@ -412,14 +457,8 @@
412 457
         }
413 458
       });
414 459
      },
415
-      getAnticoagulant(arr,mode_id){
416
-       var name = ""
417
-       if(arr.length > 0){
418
-           for(let i=0;i<arr.length;i++){
419
-          if(mode_id == arr[i].mode_id){
420
-            name = arr[i].anticoagulant
421
-          }
422
-       } 
460
+    getAnticoagulant(name){
461
+     
423 462
       if(name == 0){
424 463
          name = ""
425 464
        }
@@ -447,7 +486,6 @@
447 486
        }
448 487
 
449 488
        return name
450
-      }
451 489
      },
452 490
      getAnticoagulantZonliang(arr,mode_id){
453 491
        var name = 0
@@ -537,4 +575,10 @@
537 575
   margin-bottom: 20px;
538 576
   padding: 20px 10px;
539 577
 }
578
+.printCell{
579
+  span{
580
+    display: inline-block;
581
+    width: 180px;
582
+  }
583
+}
540 584
 </style>