Ver código fonte

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

yq1 1 ano atrás
pai
commit
8662781685
29 arquivos alterados com 1891 adições e 324 exclusões
  1. 1 1
      src/api/common/common.js
  2. 8 0
      src/api/dialysis.js
  3. 70 60
      src/pages/dqc/components/dialysisStatisticsPersonal.vue
  4. 174 31
      src/pages/main/DetailsPage.vue
  5. 134 9
      src/pages/main/DialysisArea.vue
  6. 451 32
      src/pages/main/PatientBox.vue
  7. 4 4
      src/pages/main/RecordPage.vue
  8. 239 20
      src/pages/main/WaitingArea.vue
  9. 133 6
      src/pages/main/beforeDialysis/components/consumables.vue
  10. 2 0
      src/pages/main/beforeDialysis/index.vue
  11. 12 1
      src/pages/main/dialog/subMenu/LongAdviceSubMenu.vue
  12. 1 0
      src/pages/main/dialog/subMenu/dryWeightMenu.vue
  13. 39 7
      src/pages/main/newActionBar/assessmentAfter.vue
  14. 25 10
      src/pages/main/newActionBar/assessmentBefore.vue
  15. 20 1
      src/pages/main/newActionBar/components/adviceTemplate.vue
  16. 60 5
      src/pages/main/newActionBar/components/newAddOrder.vue
  17. 71 8
      src/pages/main/newActionBar/consumables.vue
  18. 224 91
      src/pages/main/newActionBar/dialysisPrescription.vue
  19. 2 2
      src/pages/main/newActionBar/doubleCheck.vue
  20. 23 17
      src/pages/main/newActionBar/monitoring.vue
  21. 2 2
      src/pages/main/template/DialysisPrintOrderOne.vue
  22. 18 9
      src/pages/main/template/DialysisPrintOrderSix.vue
  23. 6 2
      src/pages/main/template/DialysisPrintOrderSixty.vue
  24. 5 1
      src/pages/main/today/TodayTab.vue
  25. 3 3
      src/pages/main/today/dialysisMonitoring.vue
  26. 14 1
      src/pages/main/today/dialysisPrescription.vue
  27. 26 1
      src/pages/patients/editPatient.vue
  28. 4 0
      src/router/index.js
  29. 120 0
      src/store/modules/globalConfig.js

+ 1 - 1
src/api/common/common.js Ver arquivo

@@ -90,7 +90,7 @@ export function getPrescriptionList (startime, endtime, limit, page) {
90 90
   }
91 91
   console.log('parasm', params)
92 92
   return request({
93
-    url: '/m/api/getprescriptionlist',
93
+    url: '/m/api/getprescriptionlist/one',
94 94
     method: 'get',
95 95
     params: params
96 96
   })

+ 8 - 0
src/api/dialysis.js Ver arquivo

@@ -396,6 +396,14 @@ export function getMobilePrintStockGood (params) {
396 396
   })
397 397
 }
398 398
 
399
+export function getPrescriptionList(params){
400
+  return request({
401
+    url:"/m/api/getprescriptionlist",
402
+    method:"get",
403
+    params:params
404
+  })
405
+}  
406
+
399 407
 export function batchDeleteMonitor (params) {
400 408
   return request({
401 409
     url: '/m/api/batchdeletemonitor',

+ 70 - 60
src/pages/dqc/components/dialysisStatisticsPersonal.vue Ver arquivo

@@ -154,6 +154,7 @@ export default {
154 154
       getMobilePatientDetial(id, this.startTime, this.endTime, this.listQuery.limit, this.listQuery.page).then(response => {
155 155
         if (response.data.state === 1) {
156 156
           var patients = response.data.data.patients
157
+          console.log("patients",patients)
157 158
           this.isStop = true
158 159
           this.getModeId(patients)
159 160
           var hash = {}
@@ -251,7 +252,7 @@ export default {
251 252
             var totallist = response.data.data.totallist
252 253
             // console.log('totallist', totallist)
253 254
             var prescriptionList = response.data.data.prescriptionList
254
-            // console.log("prescription",prescriptionList)
255
+            console.log("prescription",prescriptionList)
255 256
             // console.log('prescriptionList', prescriptionList)
256 257
             this.getModeId(prescriptionList)
257 258
             var modeIdCount = response.data.data.modeIdCount
@@ -396,65 +397,68 @@ export default {
396 397
     },
397 398
     // 转透析模式id
398 399
     getModeId (patients) {
399
-      for (let i = 0; i < patients.length; i++) {
400
-        if (patients[i].mode_id == 1) {
401
-          patients[i].mode_id = 'HD'
402
-        } else if (patients[i].mode_id == 2) {
403
-          patients[i].mode_id = 'HDF'
404
-        } else if (patients[i].mode_id == 3) {
405
-          patients[i].mode_id = 'HD+HP'
406
-        } else if (patients[i].mode_id == 4) {
407
-          patients[i].mode_id = 'HP'
408
-        } else if (patients[i].mode_id == 5) {
409
-          patients[i].mode_id = 'HF'
410
-        } else if (patients[i].mode_id == 6) {
411
-          patients[i].mode_id = 'SCUF'
412
-        } else if (patients[i].mode_id == 7) {
413
-          patients[i].mode_id = 'IUF'
414
-        } else if (patients[i].mode_id == 8) {
415
-          patients[i].mode_id = 'HFHD'
416
-        } else if (patients[i].mode_id == 9) {
417
-          patients[i].mode_id = 'HFHD+HP'
418
-        } else if (patients[i].mode_id == 10) {
419
-          patients[i].mode_id = 'PHF'
420
-        } else if (patients[i].mode_id == 11) {
421
-          patients[i].mode_id = 'HFR'
422
-        } else if (patients[i].mode_id == 12) {
423
-          patients[i].mode_id = 'HDF+HP'
424
-        } else if (patients[i].mode_id == 13) {
425
-          patients[i].mode_id = 'CRRT'
426
-        } else if (patients[i].mode_id == 14) {
427
-          patients[i].mode_id = '腹水回输'
428
-        } else if (patients[i].mode_id == 15) {
429
-          patients[i].mode_id = 'HD前置换'
430
-        } else if (patients[i].mode_id == 16) {
431
-          patients[i].mode_id = 'HD后置换'
432
-        } else if (patients[i].mode_id == 17) {
433
-          patients[i].mode_id = 'HDF前置换'
434
-        } else if (patients[i].mode_id == 18) {
435
-          patients[i].mode_id = 'HDF后置换'
436
-        } else if (patients[i].mode_id == 19) {
437
-          patients[i].mode_id = 'IUF+HD'
438
-        } else if (patients[i].mode_id == 24) {
439
-          patients[i].mode_id = 'I-HDF'
440
-        } else if (patients[i].mode_id == 25) {
441
-          patients[i].mode_id = 'HD高通'
442
-        } else if (patients[i].mode_id == 26) {
443
-          patients[i].mode_id = 'CVVH'
444
-        } else if (patients[i].mode_id == 27) {
445
-          patients[i].mode_id = 'CVVHD'
446
-        } else if (patients[i].mode_id == 28) {
447
-          patients[i].mode_id = 'CVVHDF'
448
-        } else if (patients[i].mode_id == 29) {
449
-          patients[i].mode_id = 'PE'
450
-        } else if (patients[i].mode_id == 30) {
451
-          patients[i].mode_id = '血浆胆红素吸附+HP'
452
-        } else if (patients[i].mode_id == 31) {
453
-          patients[i].mode_id = 'HPD'
454
-        } else if (patients[i].mode_id == 32) {
455
-          patients[i].mode_id = 'HDP'
400
+      if(patients!=null && patients.length>0){
401
+       for (let i = 0; i < patients.length; i++) {
402
+          if (patients[i].mode_id == 1) {
403
+            patients[i].mode_id = 'HD'
404
+          } else if (patients[i].mode_id == 2) {
405
+            patients[i].mode_id = 'HDF'
406
+          } else if (patients[i].mode_id == 3) {
407
+            patients[i].mode_id = 'HD+HP'
408
+          } else if (patients[i].mode_id == 4) {
409
+            patients[i].mode_id = 'HP'
410
+          } else if (patients[i].mode_id == 5) {
411
+            patients[i].mode_id = 'HF'
412
+          } else if (patients[i].mode_id == 6) {
413
+            patients[i].mode_id = 'SCUF'
414
+          } else if (patients[i].mode_id == 7) {
415
+            patients[i].mode_id = 'IUF'
416
+          } else if (patients[i].mode_id == 8) {
417
+            patients[i].mode_id = 'HFHD'
418
+          } else if (patients[i].mode_id == 9) {
419
+            patients[i].mode_id = 'HFHD+HP'
420
+          } else if (patients[i].mode_id == 10) {
421
+            patients[i].mode_id = 'PHF'
422
+          } else if (patients[i].mode_id == 11) {
423
+            patients[i].mode_id = 'HFR'
424
+          } else if (patients[i].mode_id == 12) {
425
+            patients[i].mode_id = 'HDF+HP'
426
+          } else if (patients[i].mode_id == 13) {
427
+            patients[i].mode_id = 'CRRT'
428
+          } else if (patients[i].mode_id == 14) {
429
+            patients[i].mode_id = '腹水回输'
430
+          } else if (patients[i].mode_id == 15) {
431
+            patients[i].mode_id = 'HD前置换'
432
+          } else if (patients[i].mode_id == 16) {
433
+            patients[i].mode_id = 'HD后置换'
434
+          } else if (patients[i].mode_id == 17) {
435
+            patients[i].mode_id = 'HDF前置换'
436
+          } else if (patients[i].mode_id == 18) {
437
+            patients[i].mode_id = 'HDF后置换'
438
+          } else if (patients[i].mode_id == 19) {
439
+            patients[i].mode_id = 'IUF+HD'
440
+          } else if (patients[i].mode_id == 24) {
441
+            patients[i].mode_id = 'I-HDF'
442
+          } else if (patients[i].mode_id == 25) {
443
+            patients[i].mode_id = 'HD高通'
444
+          } else if (patients[i].mode_id == 26) {
445
+            patients[i].mode_id = 'CVVH'
446
+          } else if (patients[i].mode_id == 27) {
447
+            patients[i].mode_id = 'CVVHD'
448
+          } else if (patients[i].mode_id == 28) {
449
+            patients[i].mode_id = 'CVVHDF'
450
+          } else if (patients[i].mode_id == 29) {
451
+            patients[i].mode_id = 'PE'
452
+          } else if (patients[i].mode_id == 30) {
453
+            patients[i].mode_id = '血浆胆红素吸附+HP'
454
+          } else if (patients[i].mode_id == 31) {
455
+            patients[i].mode_id = 'HPD'
456
+          } else if (patients[i].mode_id == 32) {
457
+            patients[i].mode_id = 'HDP'
458
+          }
456 459
         }
457 460
       }
461
+    
458 462
     },
459 463
     // 获取年龄
460 464
     getAge (UUserCard) {
@@ -495,9 +499,13 @@ export default {
495 499
           var totallist = response.data.data.totallist
496 500
           var prescriptionList = response.data.data.prescriptionList
497 501
           // console.log('prescriptionList', prescriptionList)
498
-          this.getModeId(prescriptionList)
502
+          if(prescriptionList!=null && prescriptionList.length>0){
503
+            this.getModeId(prescriptionList)
504
+          }
505
+         
499 506
           var modeIdCount = response.data.data.modeIdCount
500
-          for (let i = 0; i < modeIdCount.length; i++) {
507
+          if(modeIdCount!=null && modeIdCount.length>0){
508
+            for (let i = 0; i < modeIdCount.length; i++) {
501 509
             if (modeIdCount[i].mode_id == 1) {
502 510
               modeIdCount[i].mode_id = 'HD'
503 511
             }
@@ -594,7 +602,9 @@ export default {
594 602
             if (modeIdCount[i].mode_id == 32) {
595 603
               modeIdCount[i].mode_id = 'HDP'
596 604
             }
605
+            }
597 606
           }
607
+       
598 608
           this.modeIdCount = modeIdCount
599 609
           let dataInfo = {}
600 610
           list.forEach((item, index) => {

+ 174 - 31
src/pages/main/DetailsPage.vue Ver arquivo

@@ -23,6 +23,12 @@
23 23
           </ul>
24 24
         </div>
25 25
 
26
+        <!-- <div @click="openPicker()" class="time">
27
+                  {{pickerVisible}}<span class="iconfont">&#xe74a;</span>
28
+        </div>-->
29
+        <!-- <div class="time" style="width:1.49rem;">
30
+                  <span class="iconfont">2018-01-01&#xe74a;</span>
31
+        </div>-->
26 32
         <div class="previewBox">
27 33
           <i class="el-icon-printer printerIcon" @click="print"></i>
28 34
           <!-- <span class="preview" @click="print">预览</span> -->
@@ -34,12 +40,34 @@
34 40
       </div>
35 41
 
36 42
       <div class="Tab">
37
-
43
+        <!-- <CaseHistory v-show="index == 0" title="病历"></CaseHistory> -->
44
+        <!--<check-tab v-show="index==1" title="化验单"></check-tab>-->
38 45
         <dialysis-tab v-if="index == 1" title="透析" v-on:records="jump(val)"></dialysis-tab>
39 46
         <today-tab ref="today" v-show="index == 0 && !showView" title="今日" @show_patient_list="showPatientList"></today-tab>
47
+        <!-- <div v-if="showView" style="text-align:center;font-size:0.6rem;">
48
+          <p style="margin-top:20px;">当前叫号</p>
49
+          <p style="margin-top:20px;">{{ $route.query.patient_name ? $route.query.patient_name : ""}}</p>
50
+          <p style="margin-top:20px;">签到时间:{{ $route.query.curPatientTime ? getDates($route.query.curPatientTime) : '' }}</p>
51
+          <p style="color:red;margin-top:20px;">提示:当前患者无排班,请先排班</p>
52
+        </div> -->
40 53
       </div>
41 54
     </div>
42
-
55
+    <!-- <div class="add" @click="print">
56
+      <p>打印预览</p>
57
+    </div> -->
58
+    <!-- <div class="fixedCalling" v-if="queueConfig.txxqyxs == 1">
59
+      <div class="nowCalling">
60
+        <div class="callingName">{{ fisrtQueueInfo && fisrtQueueInfo.patient_name ? fisrtQueueInfo.patient_name : '暂无叫号' }}</div>
61
+        <p v-if="fisrtQueueInfo != null && fisrtQueueInfo.patient_name">当前叫号</p>
62
+      </div>
63
+      <div class="fixedVolume" @click="call">
64
+        <van-icon name="volume" />
65
+      </div>
66
+      <div class="callingName" @click="next">下一位</div>
67
+    </div> -->
68
+    <!-- <div class="callFamilyBox" @click="callFamily" v-if="queueConfig.txxqyxs == 1">
69
+      <img src="../../assets/images/callFamily.png" alt="">
70
+    </div> -->
43 71
     <div class="callFamilyBox" @click="callFamily" ref="callBtn" v-if="queueConfig.txxqyxs == 1" @touchstart="down" @mousedown="down"
44 72
       @mousemove="move"
45 73
       @touchmove="move"
@@ -48,7 +76,19 @@
48 76
       @touchcancel="end">
49 77
       <img src="../../assets/images/callFamily.png" alt="">
50 78
     </div>
51
-    <!-- 病人弹窗 -->
79
+    <!-- <div class="printBox" @click="print">
80
+      <img src="../../assets/images/print.png" alt="">
81
+    </div> -->
82
+    <!-- <side-bar :active_index="0"></side-bar> -->
83
+    <!-- <mt-datetime-picker
84
+            v-model="pickerVisible"
85
+            type="date"
86
+            ref="picker"
87
+            year-format="{value} "
88
+            month-format="{value} "
89
+            date-format="{value} ">
90
+    </mt-datetime-picker>-->
91
+
52 92
     <div class="showBox">
53 93
       <van-popup v-model="show" position="top" :style="{ height: '100%' }">
54 94
       <div
@@ -131,7 +171,7 @@
131 171
     </van-popup>
132 172
     </div>
133 173
     <!-- :min-date="minDate" :max-date="maxDate" -->
134
-    <van-calendar class="calendarPopup" v-model="calendarShow" @confirm="onCalendar" :min-date="minDate" :max-date="maxDate"  :formatter="formatter" :show-confirm='false' />
174
+    <van-calendar class="calendarPopup" v-model="calendarShow" @confirm="onCalendar" :min-date="minDate"  :formatter="formatter" :show-confirm='false' />
135 175
 
136 176
   </div>
137 177
 </template>
@@ -290,12 +330,13 @@ export default {
290 330
 
291 331
     this.GetPatientInfoWithDiseases(this.patient_id)
292 332
     // this.requestDialysisScheduals()
333
+
293 334
     this.users.name = this.$store.getters.user.user.user_name
294 335
     this.users.id = this.$store.getters.user.admin.id
295 336
     this.users.user_type = this.$store.getters.user.user.user_type
296 337
     // console.log('this.users', this.users)
297 338
     let newScheduals = this.$store.getters.scheduals
298
-
339
+    console.log('333333333', newScheduals)
299 340
     var zoneMap = {}
300 341
     var schedualMap = {}
301 342
     for (let index = 0; index < newScheduals.scheduals.length; index++) {
@@ -454,7 +495,7 @@ export default {
454 495
       this.websocket.onmessage = e => {
455 496
         let res = JSON.parse(e.data)
456 497
         // let res = re.data;
457
-
498
+        console.log('res3333333333', res)
458 499
         if (res.channel == 'queue/join') {
459 500
           // res.data.fisrtQueueInfo.create_time = moment(res.data.fisrtQueueInfo.create_time * 1000).format('HH:mm')
460 501
           let timeType = null
@@ -509,6 +550,8 @@ export default {
509 550
               calledArr.push(item)
510 551
             }
511 552
           })
553
+          console.log('waitingCalledArr待叫号', waitingCalledArr)
554
+          console.log('waitingCalledArr以较好', calledArr)
512 555
           this.waitingCalled = waitingCalledArr
513 556
           this.called = calledArr
514 557
         } else if (res.channel == 'allQueueList') {
@@ -564,7 +607,10 @@ export default {
564 607
       let org_id = parseInt(sessionStorage.getItem('org_id'))
565 608
       let admin_user_id = parseInt(sessionStorage.getItem('admin_user_id'))
566 609
       axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
567
-
610
+        console.log(res)
611
+        // let patientArr = res.data.queue_list.data
612
+        // this.patientArr = patientArr
613
+        // this.$emit('child-event',this.patientArr)
568 614
         if (res.data.code == 200) {
569 615
           Toast.success('叫号成功')
570 616
           this.curPatient = res.data.data.patientInfo
@@ -592,7 +638,10 @@ export default {
592 638
       let org_id = parseInt(sessionStorage.getItem('org_id'))
593 639
       let admin_user_id = parseInt(sessionStorage.getItem('admin_user_id'))
594 640
       axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
595
-
641
+        console.log(res)
642
+        // let patientArr = res.data.queue_list.data
643
+        // this.patientArr = patientArr
644
+        // this.$emit('child-event',this.patientArr)
596 645
         if (res.data.data.patientInfo == null) {
597 646
           Toast.success('已经是最后一位了')
598 647
           return
@@ -621,7 +670,7 @@ export default {
621 670
       let org_id = parseInt(sessionStorage.getItem('org_id'))
622 671
       let admin_user_id = parseInt(sessionStorage.getItem('admin_user_id'))
623 672
       axios.get('/api/index/callpatientjs?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
624
-
673
+        console.log(res)
625 674
         if (res.data.code == 200) {
626 675
           Toast.success('叫号成功')
627 676
         } else {
@@ -651,11 +700,10 @@ export default {
651 700
       }
652 701
     },
653 702
     GetPatientInfoWithDiseases (id) {
654
-      GetPatientInfoWithDiseases(id)
655
-        .then(response => {
703
+       
704
+      GetPatientInfoWithDiseases(id).then(response => {
656 705
           if (response.data.state == 1) {
657 706
             this.patient = response.data.data.patient
658
-
659 707
           } else {
660 708
             Toast.fail(response.data.msg)
661 709
             return false
@@ -675,15 +723,16 @@ export default {
675 723
       this.$router.push('/mypatients/' + patient_id)
676 724
     },
677 725
     getScheduals (patient) {
678
-
726
+      // console.log('222222', this.$store.getters.adminUserArr.adminUserArr)
679 727
       if (this.$store.getters.adminUserArr.adminUserArr) {
680
-
728
+        // console.log('上面')
681 729
         this.getAdminUser(patient)
682 730
       } else {
683
-
731
+        // console.log('下面')
684 732
         this.dialysisGlobalConfig(patient)
685 733
       }
686 734
 
735
+      // console.log(222222, patient)
687 736
       this.allSearchArr = patient
688 737
 
689 738
       let newPatients = []
@@ -728,10 +777,55 @@ export default {
728 777
           }
729 778
         })
730 779
         this.patients = newObj
731
-
780
+        // console.log('所有的病人', this.patients)
732 781
       })
733 782
     },
734
- 
783
+    // requestDialysisScheduals () {
784
+    //   var type = 0
785
+    //   getDialysisScheduals({ type: type, date: parseTime(this.date, '{y}-{m}-{d}') })
786
+    //     .then(rs => {
787
+    //       var resp = rs.data
788
+    //       if (resp.state == 1) {
789
+
790
+    //         var patient = resp.data.scheduals
791
+    //         this.dialysisGlobalConfig(patient)
792
+    //         console.log(222222,patient)
793
+    //         this.allSearchArr = patient
794
+    //         let cityNameList = []
795
+    //         for (let p in patient) {
796
+    //           cityNameList.push(patient[p])
797
+    //         }
798
+    //         let firstName = {}
799
+    //         this.FirstPin.forEach(item => {
800
+    //           firstName[item] = []
801
+    //           cityNameList.forEach(el => {
802
+    //             let first = pinyin.getFullChars(el.patient.name).substring(0, 1)
803
+    //             if (first == item) {
804
+    //               firstName[item].push(el)
805
+    //             }
806
+    //           })
807
+    //           this.patients = firstName
808
+    //           // 判断非空
809
+    //           let newObj = {}
810
+    //           Object.keys(this.patients).map((item, index) => {
811
+    //             if (this.patients[item].length != 0) {
812
+    //               newObj[item] = this.patients[item]
813
+    //             }
814
+    //           })
815
+    //           this.patients = newObj
816
+    //         })
817
+    //         console.log(33333333,this.patients)
818
+
819
+    //       } else {
820
+    //         this.$toast({
821
+    //           message: resp.msg
822
+    //         })
823
+    //       }
824
+    //     })
825
+    //     .catch(error => {
826
+
827
+    //     })
828
+    // },
735 829
     choosePatient (schedual) {
736 830
       var patient_id = schedual.patient.id
737 831
       var date = schedual.schedule_date
@@ -749,8 +843,9 @@ export default {
749 843
       this.show = false
750 844
     },
751 845
     getAdminUser (patient) {
752
-    
846
+      // console.log('user---', this.users.user_type)
753 847
       if (this.users.user_type == 1 || this.users.user_type == 2) {
848
+        // console.log('触发了吗')
754 849
         let arr = []
755 850
         let zoneArr = []
756 851
         patient.map((item, index) => {
@@ -793,9 +888,12 @@ export default {
793 888
           })
794 889
           this.mypatients = newObj
795 890
         })
891
+        // console.log('我的病人', this.mypatients)
796 892
       } else if (this.users.user_type == 3) {
797 893
         let arr = []
798 894
         let zoneArr = []
895
+        console.log('武警机构ID', this.$store.getters.user.template_info.org_id)
896
+        console.log('9999999', patient)
799 897
 
800 898
         if (this.$store.getters.user.template_info.org_id == 10340) {
801 899
           patient.map((item, index) => {
@@ -804,12 +902,16 @@ export default {
804 902
                 arr.push(item)
805 903
               } else if (this.schedualValue == 0) {
806 904
                 if (item.patient_id == 19471) {
807
-
905
+                  console.log('item.dialysis_order.start_nurse', item.dialysis_order.start_nurse)
906
+                  console.log('this.users.id', this.users.id)
907
+                  console.log('schedule_type', item.schedule_type)
908
+                  console.log('this.schedualValue', this.schedualValue)
808 909
                 }
809 910
                 arr.push(item)
810 911
               }
811 912
             }
812 913
           })
914
+          console.log('arr0------------------', arr)
813 915
         } else {
814 916
           patient.map((item, index) => {
815 917
             if (item.dialysis_order != null && item.dialysis_order.start_nurse == this.users.id) {
@@ -829,7 +931,7 @@ export default {
829 931
             zoneArr.push(item)
830 932
           }
831 933
         })
832
-
934
+        // console.log('arr', arr)
833 935
         let cityNameList = []
834 936
         for (let p in zoneArr) {
835 937
           cityNameList.push(zoneArr[p])
@@ -853,6 +955,7 @@ export default {
853 955
           })
854 956
           this.mypatients = newObj
855 957
         })
958
+        console.log('我的病人', this.mypatients)
856 959
       }
857 960
     },
858 961
     dialysisGlobalConfig (patient) {
@@ -904,6 +1007,7 @@ export default {
904 1007
               })
905 1008
               this.mypatients = newObj
906 1009
             })
1010
+            // console.log('我的病人', this.mypatients)
907 1011
           } else if (this.users.user_type == 3) {
908 1012
             let arr = []
909 1013
             let zoneArr = []
@@ -923,7 +1027,7 @@ export default {
923 1027
                 zoneArr.push(item)
924 1028
               }
925 1029
             })
926
-
1030
+            // console.log('arr', arr)
927 1031
             let cityNameList = []
928 1032
             for (let p in zoneArr) {
929 1033
               cityNameList.push(zoneArr[p])
@@ -947,17 +1051,17 @@ export default {
947 1051
               })
948 1052
               this.mypatients = newObj
949 1053
             })
950
-
1054
+            // console.log('我的病人', this.mypatients)
951 1055
           }
952 1056
         }
953 1057
       })
954 1058
     },
955 1059
     onSearch (val) {
1060
+      console.log(val)
956 1061
       if (this.active == 0) {
957 1062
         let arr = []
958 1063
         this.searchArr.map(item => {
959
-          if (item.patient.name.indexOf(val) != -1 ||
960
-          item.patient.first_letter.indexOf(val) !=-1) {
1064
+          if (item.patient.name.indexOf(val) != -1) {
961 1065
             arr.push(item)
962 1066
           }
963 1067
         })
@@ -987,8 +1091,7 @@ export default {
987 1091
       } else if (this.active == 1) {
988 1092
         let arr = []
989 1093
         this.allSearchArr.map(item => {
990
-          if (item.patient.name.indexOf(val) != -1 ||
991
-          item.patient.first_letter.indexOf(val) !=-1) {
1094
+          if (item.patient.name.indexOf(val) != -1) {
992 1095
             arr.push(item)
993 1096
           }
994 1097
         })
@@ -1034,6 +1137,7 @@ export default {
1034 1137
       this.schedualTypesShow = false
1035 1138
     },
1036 1139
     chooseZone (value) {
1140
+      console.log(value)
1037 1141
       this.zoneTypes = value.text
1038 1142
       this.zoneValue = value.id
1039 1143
       sessionStorage.setItem('zoneType', this.zoneValue)
@@ -1046,16 +1150,27 @@ export default {
1046 1150
     },
1047 1151
     formatter (day) {
1048 1152
       this.patientAllDayList.map(item => {
1049
-        if (item.dialysis_date == new Date(day.date).getTime() / 1000) {
1050
-          day.bottomInfo = item.schedual_type == 1 ? '上午' : item.schedual_type == 2 ? '下午' : item.schedual_type == 3 ? '晚上' : ''
1153
+       
1154
+       if (item.schedule_date == new Date(day.date).getTime() / 1000) {
1155
+          day.bottomInfo = item.schedule_type == 1 ? '上午' : item.schedule_type == 2 ? '下午' : item.schedule_type == 3 ? '晚上' : ''
1051 1156
           day.topInfo = this.GetModeByModeId(item.mode_id)
1052 1157
         }
1158
+        
1159
+        
1053 1160
       })
1054 1161
       return day
1055 1162
     },
1056 1163
     getPatientDialysisRecord () {
1057 1164
       let patient_id = this.patient_id
1058
-      getPatientDialysisRecord({id: patient_id}).then((res) => {
1165
+      //某月第一天
1166
+      // let startTime = moment().startOf('months').format('YYYY-MM-DD')
1167
+      let startTime =  moment().month(moment().month() - 6).startOf('month').format('YYYY-MM-DD')
1168
+        //某月最后一天
1169
+      let endTime = moment().month(moment().month() +1).endOf('month').format('YYYY-MM-DD')
1170
+
1171
+      console.log("开始时间",startTime,endTime)
1172
+      getPatientDialysisRecord({id: patient_id,start_time:startTime,end_time:endTime}).then((res) => {
1173
+        console.log('resres', res)
1059 1174
         let list = res.data.data.list
1060 1175
         this.patientAllDayList = list
1061 1176
         this.calendarShow = true
@@ -1075,7 +1190,7 @@ export default {
1075 1190
     },
1076 1191
     onCalendar (val) {
1077 1192
       this.patientAllDayList.map(item => {
1078
-        if (item.dialysis_date == new Date(val).getTime() / 1000) {
1193
+          if (item.schedule_date == new Date(val).getTime() / 1000) {
1079 1194
           this.reload()
1080 1195
           this.$router.replace({
1081 1196
             path: '/details',
@@ -1088,6 +1203,8 @@ export default {
1088 1203
           // sessionStorage.removeItem('newBarIndex')
1089 1204
           this.calendarShow = false
1090 1205
         }
1206
+        
1207
+       
1091 1208
       })
1092 1209
     },
1093 1210
     openCalendarShow () {
@@ -1105,6 +1222,7 @@ export default {
1105 1222
         let that = this
1106 1223
         setTimeout(function () {
1107 1224
           // 打印screenWidth变化的值
1225
+          console.log('zhixing')
1108 1226
           that.timer = false
1109 1227
           setRem()
1110 1228
         }, 400)
@@ -1136,12 +1254,30 @@ export default {
1136 1254
     // 在渲染该组件的对应路由被 confirm 前调用
1137 1255
     // 不!能!获取组件实例 `this`
1138 1256
     // 因为当钩子执行前,组件实例还没被创建
1139
-
1257
+    console.log('to', to)
1258
+    console.log('from', from)
1140 1259
     if (to.path == '/main') {
1141 1260
       sessionStorage.removeItem('newBarIndex')
1142 1261
     }
1143 1262
     next()
1144 1263
   }
1264
+  // beforeRouteUpdate(to, from){
1265
+  //   console.log(to)
1266
+  //   if(to.query.active1 == "2" && to.active2 == undefined){
1267
+  //     console.log(123)
1268
+
1269
+  //     var patient_id = to.query.patient_id;
1270
+  //     var date = to.query.date;
1271
+  //     var patient_name = to.query.patient_name;
1272
+  //     this.patient_id = patient_id;
1273
+  //     this.date = date;
1274
+  //     this.patient_name = patient_name;
1275
+  //     console.log(this.date)
1276
+  //     this.GetPatientInfoWithDiseases(this.patient_id);
1277
+  //     // this.index = parseInt(to.query.active1)
1278
+  //   }
1279
+  //   console.log(from)
1280
+  // }
1145 1281
 }
1146 1282
 </script>
1147 1283
 
@@ -1163,6 +1299,13 @@ export default {
1163 1299
 .mainContent {
1164 1300
   // position: relative;
1165 1301
   .navigation {
1302
+    // @include display-flex;
1303
+    // @include align-items-center;
1304
+    // @include text-align;
1305
+    // @include box-sizing;
1306
+    // @include justify-content-between;
1307
+    // padding: 0.3rem 0.36rem;
1308
+    // border-bottom: 1px #e5e5e5 solid;
1166 1309
     padding: 0 .625rem;
1167 1310
     height: 3.125rem;
1168 1311
     position: fixed;

+ 134 - 9
src/pages/main/DialysisArea.vue Ver arquivo

@@ -146,6 +146,7 @@
146 146
             网络异常,请点击重新加载
147 147
           </p>
148 148
 
149
+          <!--<img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/no_network.jpg" alt="">-->
149 150
           <van-button
150 151
             slot="button"
151 152
             size="normal"
@@ -287,7 +288,7 @@ export default {
287 288
         }
288 289
         return schedules
289 290
       }
290
-      // console.log('我的患者--------------', this.ismypatient)
291
+      console.log('我的患者--------------', this.ismypatient)
291 292
       if (this.ismypatient) {
292 293
         var zone_selected = this.zone_selected
293 294
         var timetype_selected = this.schedual_type_selected
@@ -400,7 +401,7 @@ export default {
400 401
         }
401 402
       }
402 403
       this.zoneMapObj = zoneMap
403
-      // console.log('zoneMap----------------', zoneMap)
404
+      console.log('zoneMap----------------', zoneMap)
404 405
       var zones = []
405 406
       zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
406 407
 
@@ -411,7 +412,8 @@ export default {
411 412
       zones = zones.sort(function (a, b) {
412 413
         return a.value > b.value
413 414
       })
414
-  
415
+      // this.zones = zones
416
+      // console.log('zones323232332', zones)
415 417
       this.zonesList = zones
416 418
 
417 419
       var dialysis_scheduals = []
@@ -677,9 +679,32 @@ export default {
677 679
                 }
678 680
               }
679 681
             }
682
+        
680 683
 
681 684
             let schedualsLength = scheduals.length
685
+            if(scheduals!=null&&scheduals.length>0){
686
+              var arr = []
687
+              var arrTwo = []
688
+              var arrThree = []
689
+               for(let i=0;i<scheduals.length;i++){
690
+                 if(scheduals[i].schedule_type == 1){
691
+                    arr.push(scheduals[i])
692
+                 }
693
+                 if(scheduals[i].schedule_type == 2){
694
+                  arrTwo.push(scheduals[i])
695
+                 }
696
+                 if(scheduals[i].schedule_type == 3){
697
+                  arrThree.push(scheduals[i])
698
+                 }
699
+               }
700
+               sessionStorage.setItem('schedualsOneLength', arr.length)
701
+               sessionStorage.setItem('schedualsTwoLength', arrTwo.length)
702
+               sessionStorage.setItem('schedualsThreeLength', arrThree.length)
703
+            }
682 704
             sessionStorage.setItem('schedualsLength', schedualsLength)
705
+
706
+          
707
+            
683 708
             this.schedualsLength = schedualsLength
684 709
             this.$store.dispatch('SetScheduals', { scheduals: scheduals })
685 710
             this.$store.dispatch('SetWaitScheduals', { waitscheduals: scheduals })
@@ -755,6 +780,44 @@ export default {
755 780
               this.zones = zones
756 781
             }
757 782
 
783
+            // console.log('zones', zones)
784
+
785
+            // var schedule_type_one = 0
786
+            // var schedule_type_two = 0
787
+            // var schedule_type_three = 0
788
+            // if (dialysis_scheduals != null && dialysis_scheduals.length > 0) {
789
+            //   for (let i = 0; i < dialysis_scheduals.length; i++) {
790
+            //     for (let j = 0; j < dialysis_scheduals[i].scheduals.length; j++) {
791
+            //       if (dialysis_scheduals[i].scheduals[j].schedule_type == 1) {
792
+            //         schedule_type_one++
793
+            //       }
794
+            //       if (dialysis_scheduals[i].scheduals[j].schedule_type == 2) {
795
+            //         schedule_type_two++
796
+            //       }
797
+            //       if (dialysis_scheduals[i].scheduals[j].schedule_type == 3) {
798
+            //         schedule_type_three++
799
+            //       }
800
+            //     }
801
+            //   }
802
+            // }
803
+            // var total = 0
804
+            // total = schedule_type_one + schedule_type_two + schedule_type_three
805
+
806
+            // for (let i = 0; i < this.schedual_types.length; i++) {
807
+            //   if (this.schedual_types[i].value == 0) {
808
+            //     this.schedual_types[i].text = this.schedual_types[i].text + '(' + total + ')'
809
+            //   }
810
+            //   if (this.schedual_types[i].value == 1) {
811
+            //     this.schedual_types[i].text = this.schedual_types[i].text + '(' + schedule_type_one + ')'
812
+            //   }
813
+            //   if (this.schedual_types[i].value == 2) {
814
+            //     this.schedual_types[i].text = this.schedual_types[i].text + '(' + schedule_type_two + ')'
815
+            //   }
816
+            //   if (this.schedual_types[i].value == 3) {
817
+            //     this.schedual_types[i].text = this.schedual_types[i].text + '(' + schedule_type_three + ')'
818
+            //   }
819
+            // }
820
+
758 821
             this.dialysis_scheduals = dialysis_scheduals
759 822
 
760 823
             this.getData()
@@ -800,7 +863,7 @@ export default {
800 863
           if (resp.state == 1) {
801 864
             this.loading = false
802 865
             var scheduals = resp.data.scheduals
803
-            // console.log('刷新后的数据', scheduals)
866
+            console.log('刷新后的数据', scheduals)
804 867
             this.$store.dispatch('SetScheduals', { scheduals: scheduals })
805 868
             this.$store.dispatch('SetWaitScheduals', { waitscheduals: scheduals })
806 869
 
@@ -853,6 +916,7 @@ export default {
853 916
             let state = false
854 917
             this.$emit('func', state)
855 918
           } else {
919
+            console.log('网络异常')
856 920
             this.loading = false
857 921
             let state = false
858 922
             this.$emit('func', state)
@@ -861,11 +925,13 @@ export default {
861 925
             })
862 926
           }
863 927
         }).catch(error => {
928
+          console.log('网络异常23332')
864 929
           this.loading = false
865 930
           // 超时之后在这里捕抓错误信息.
866 931
           if (error.response) {
867 932
             this.networkStates = false
868 933
           } else if (error.request) {
934
+            // console.log(error.request)
869 935
             this.networkStates = false
870 936
           } else {
871 937
             this.networkStates = false
@@ -900,6 +966,7 @@ export default {
900 966
         arr2 = JSON.parse(JSON.stringify(arr1))
901 967
       } else {
902 968
         let arr = JSON.parse(JSON.stringify(arr1))
969
+        // console.log('arr',arr)
903 970
         for (let i = 0; i < arr.length; i++) {
904 971
           for (let j = 0; j < arr[i].scheduals.length; j++) {
905 972
             if (this.schedual_type_selected != arr[i].scheduals[j].schedule_type) {
@@ -927,6 +994,7 @@ export default {
927 994
                 arr[i].scheduals.splice(j--, 1)
928 995
               }
929 996
             } else if (this.$store.getters.user.user.user_type == 3) {
997
+              console.log('武警机构ID', this.$store.getters.user.template_info.org_id)
930 998
               if (this.$store.getters.user.template_info.org_id == 10340) {
931 999
                 if ((arr[i].scheduals[j].dialysis_order == null || ((arr[i].scheduals[j] && arr[i].scheduals[j].dialysis_order != null) ? arr[i].scheduals[j].dialysis_order.start_nurse != this.$store.getters.user.admin.id : false)) && ((arr[i].scheduals[j].dobule_check == null) || ((arr[i].scheduals[j].dobule_check != null && (arr[i].scheduals[j].dobule_check.creater != this.$store.getters.user.admin.id)) && ((arr[i].scheduals[j].dobule_check != null && (arr[i].scheduals[j].dobule_check.modifier != this.$store.getters.user.admin.id)))))) {
932 1000
                   arr[i].scheduals.splice(j--, 1)
@@ -939,6 +1007,7 @@ export default {
939 1007
             }
940 1008
           }
941 1009
         }
1010
+        console.log('上机', newArr)
942 1011
         arr3 = arr
943 1012
       }
944 1013
 
@@ -1023,6 +1092,7 @@ export default {
1023 1092
             if (arr[i].scheduals && arr[i].scheduals[j] && arr[i].scheduals[j].doctor_advice) {
1024 1093
               let sign = 0
1025 1094
               arr[i].scheduals[j].doctor_advice.map(item => {
1095
+                console.log("待执行itmewowowowo",item.patient_id,item.execution_state)
1026 1096
                 if (item.execution_state == 1) {
1027 1097
                   sign++
1028 1098
                 }
@@ -1039,7 +1109,7 @@ export default {
1039 1109
         let arr = JSON.parse(JSON.stringify(arr3))
1040 1110
         for (let i = 0; i < arr.length; i++) {
1041 1111
           for (let j = 0; j < arr[i].scheduals.length; j++) {
1042
-            // console.log("arr[i]",arr[i].scheduals[j])
1112
+            console.log("arr[i]",arr[i].scheduals[j])
1043 1113
             if (arr[i].scheduals[j] && arr[i].scheduals[j].dialysis_order != null && arr[i].scheduals[j] && arr[i].scheduals[j].dialysis_order.url != "") {
1044 1114
               arr[i].scheduals.splice(j--, 1)
1045 1115
             }
@@ -1094,6 +1164,7 @@ export default {
1094 1164
         arr2 = JSON.parse(JSON.stringify(arr1))
1095 1165
       } else {
1096 1166
         let arr = JSON.parse(JSON.stringify(arr1))
1167
+        // console.log('arr',arr)
1097 1168
         for (let i = 0; i < arr.length; i++) {
1098 1169
           for (let j = 0; j < arr[i].scheduals.length; j++) {
1099 1170
             if (this.schedual_type_selected != arr[i].scheduals[j].schedule_type) {
@@ -1112,6 +1183,7 @@ export default {
1112 1183
         }
1113 1184
       } else {
1114 1185
         let arr = JSON.parse(JSON.stringify(arr2))
1186
+        console.log('arr23332232323', this.$store.getters.user.admin.id)
1115 1187
 
1116 1188
         var newArr = []
1117 1189
         for (let i = 0; i < arr.length; i++) {
@@ -1134,6 +1206,7 @@ export default {
1134 1206
             }
1135 1207
           }
1136 1208
         }
1209
+        console.log('上机', newArr)
1137 1210
         arr3 = arr
1138 1211
       }
1139 1212
 
@@ -1235,6 +1308,7 @@ export default {
1235 1308
         let arr = JSON.parse(JSON.stringify(arr3))
1236 1309
         for (let i = 0; i < arr.length; i++) {
1237 1310
           for (let j = 0; j < arr[i].scheduals.length; j++) {
1311
+            console.log("arr[i]",arr[i].scheduals[j])
1238 1312
             if (arr[i].scheduals[j] && arr[i].scheduals[j].dialysis_order != null && arr[i].scheduals[j] && arr[i].scheduals[j].dialysis_order.url != "") {
1239 1313
               arr[i].scheduals.splice(j--, 1)
1240 1314
             }
@@ -1261,7 +1335,7 @@ export default {
1261 1335
           item.scheduals.sort(this.compare('sort'))
1262 1336
         })
1263 1337
       }
1264
-      // console.log('zoneMapObj', this.zoneMapObj)
1338
+      console.log('zoneMapObj', this.zoneMapObj)
1265 1339
       var zones = []
1266 1340
       zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
1267 1341
 
@@ -1296,6 +1370,7 @@ export default {
1296 1370
             }
1297 1371
           }
1298 1372
         }
1373
+        console.log('zones', zones)
1299 1374
         this.zones = []
1300 1375
         this.zones = zones
1301 1376
       } else {
@@ -1321,9 +1396,12 @@ export default {
1321 1396
             }
1322 1397
           }
1323 1398
         }
1399
+        console.log('zones', zones)
1324 1400
         this.zones = []
1325 1401
         this.zones = zones
1326 1402
       }
1403
+
1404
+      console.log('哈哈哈哈哈', arr5)
1327 1405
       this.allPatient = arr5
1328 1406
     },
1329 1407
     getDataTwo (index) {
@@ -1351,6 +1429,7 @@ export default {
1351 1429
         arr2 = JSON.parse(JSON.stringify(arr1))
1352 1430
       } else {
1353 1431
         let arr = JSON.parse(JSON.stringify(arr1))
1432
+        // console.log('arr',arr)
1354 1433
         for (let i = 0; i < arr.length; i++) {
1355 1434
           for (let j = 0; j < arr[i].scheduals.length; j++) {
1356 1435
             if (this.schedual_type_selected != arr[i].scheduals[j].schedule_type) {
@@ -1369,6 +1448,7 @@ export default {
1369 1448
         }
1370 1449
       } else {
1371 1450
         let arr = JSON.parse(JSON.stringify(arr2))
1451
+        console.log('arr23332232323', this.$store.getters.user.admin.id)
1372 1452
 
1373 1453
         var newArr = []
1374 1454
         for (let i = 0; i < arr.length; i++) {
@@ -1379,6 +1459,7 @@ export default {
1379 1459
                 arr[i].scheduals.splice(j--, 1)
1380 1460
               }
1381 1461
             } else if (this.$store.getters.user.user.user_type == 3) {
1462
+              console.log('武警机构ID', this.$store.getters.user.template_info.org_id)
1382 1463
               if (this.$store.getters.user.template_info.org_id == 10340) {
1383 1464
                 if ((arr[i].scheduals[j].dialysis_order == null || ((arr[i].scheduals[j] && arr[i].scheduals[j].dialysis_order != null) ? arr[i].scheduals[j].dialysis_order.start_nurse != this.$store.getters.user.admin.id : false)) && ((arr[i].scheduals[j].dobule_check == null) || ((arr[i].scheduals[j].dobule_check != null && (arr[i].scheduals[j].dobule_check.creater != this.$store.getters.user.admin.id)) && ((arr[i].scheduals[j].dobule_check != null && (arr[i].scheduals[j].dobule_check.modifier != this.$store.getters.user.admin.id)))))) {
1384 1465
                   arr[i].scheduals.splice(j--, 1)
@@ -1391,6 +1472,7 @@ export default {
1391 1472
             }
1392 1473
           }
1393 1474
         }
1475
+        console.log('上机', newArr)
1394 1476
         arr3 = arr
1395 1477
       }
1396 1478
 
@@ -1475,6 +1557,7 @@ export default {
1475 1557
             if (arr[i].scheduals && arr[i].scheduals[j] && arr[i].scheduals[j].doctor_advice) {
1476 1558
               let sign = 0
1477 1559
               arr[i].scheduals[j].doctor_advice.map(item => {
1560
+                console.log("待执行itmewowowowo",item)
1478 1561
                 if (item.execution_state == 1) {
1479 1562
                   sign++
1480 1563
                 }
@@ -1491,6 +1574,7 @@ export default {
1491 1574
         let arr = JSON.parse(JSON.stringify(arr3))
1492 1575
         for (let i = 0; i < arr.length; i++) {
1493 1576
           for (let j = 0; j < arr[i].scheduals.length; j++) {
1577
+            console.log("arr[i]",arr[i].scheduals[j])
1494 1578
             if (arr[i].scheduals[j] && arr[i].scheduals[j].dialysis_order != null && arr[i].scheduals[j] && arr[i].scheduals[j].dialysis_order.url != "") {
1495 1579
               arr[i].scheduals.splice(j--, 1)
1496 1580
             }
@@ -1517,6 +1601,43 @@ export default {
1517 1601
           item.scheduals.sort(this.compare('sort'))
1518 1602
         })
1519 1603
       }
1604
+      // console.log('zoneMapObj', this.zoneMapObj)
1605
+      // var zones = []
1606
+      // zones.push({ value: 0, text: '全部分区' })
1607
+
1608
+      // for (var zoneName in this.zoneMapObj) {
1609
+      //   zones.push({ value: this.zoneMapObj[zoneName].id, text: zoneName })
1610
+      // }
1611
+
1612
+      // zones = zones.sort(function (a, b) {
1613
+      //   return a.value > b.value
1614
+      // })
1615
+      // console.log('分区this.dialysis_scheduals', this.dialysis_scheduals)
1616
+      // var total = 0
1617
+      // for (let i = 0; i < this.dialysis_scheduals.length; i++) {
1618
+      //   this.dialysis_scheduals[i].bedList = []
1619
+      //   for (let j = 0; j < this.dialysis_scheduals[i].scheduals.length; j++) {
1620
+      //     if (index == this.dialysis_scheduals[i].scheduals[j].schedule_type) {
1621
+      //       this.dialysis_scheduals[i].bedList.push(this.dialysis_scheduals[i].scheduals[j])
1622
+      //     }
1623
+      //   }
1624
+      //   total += this.dialysis_scheduals[i].bedList.length
1625
+      // }
1626
+      // for (let i = 0; i < zones.length; i++) {
1627
+      //   for (let j = 0; j < this.dialysis_scheduals.length; j++) {
1628
+      //     if (zones[i].value == 0 && total > 0) {
1629
+      //       zones[i].text = '全部分区'
1630
+      //       zones[i].text = zones[i].text + '(' + total + ')'
1631
+      //     }
1632
+      //     if (zones[i].text == this.dialysis_scheduals[j].zone_name) {
1633
+      //       zones[i].text = zones[i].text + '(' + this.dialysis_scheduals[j].bedList.length + ')'
1634
+      //     }
1635
+      //   }
1636
+      // }
1637
+      // console.log('zones', zones)
1638
+      // this.zones = []
1639
+      // this.zones = zones
1640
+      console.log('哈哈哈哈哈', arr5)
1520 1641
       this.allPatient = arr5
1521 1642
     },
1522 1643
     compare (property) {
@@ -1539,9 +1660,7 @@ export default {
1539 1660
           var filtedSchedules = []
1540 1661
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
1541 1662
             const schedule = originSchedules[s_i]
1542
-            if (schedule.patient.name.indexOf(search_keyword) != -1 || 
1543
-                schedule.patient.dialysis_no.indexOf(search_keyword) != -1 ||
1544
-                schedule.patient.first_letter.indexOf(search_keyword) != -1) {
1663
+            if (schedule.patient.name.indexOf(search_keyword) != -1 || schedule.patient.dialysis_no.indexOf(search_keyword) != -1) {
1545 1664
               filtedSchedules.push(schedule)
1546 1665
             }
1547 1666
           }
@@ -1592,6 +1711,8 @@ export default {
1592 1711
         arr1 = JSON.parse(JSON.stringify(patientArr))
1593 1712
       } else {
1594 1713
         let arr = JSON.parse(JSON.stringify(patientArr))
1714
+        console.log('zoneList', this.zones)
1715
+        console.log('this.zoneList[this.zone_selected].text', this.zones[this.zone_selected].zone_name)
1595 1716
         for (let i = 0; i < arr.length; i++) {
1596 1717
           if (this.zones[this.zone_selected].zone_name != arr[i].zone_name) {
1597 1718
             // 删除元素后改变i的值
@@ -1606,6 +1727,7 @@ export default {
1606 1727
         arr2 = JSON.parse(JSON.stringify(arr1))
1607 1728
       } else {
1608 1729
         let arr = JSON.parse(JSON.stringify(arr1))
1730
+        // console.log('arr',arr)
1609 1731
         for (let i = 0; i < arr.length; i++) {
1610 1732
           for (let j = 0; j < arr[i].scheduals.length; j++) {
1611 1733
             if (this.schedual_type_selected != arr[i].scheduals[j].schedule_type) {
@@ -1624,6 +1746,7 @@ export default {
1624 1746
         }
1625 1747
       } else {
1626 1748
         let arr = JSON.parse(JSON.stringify(arr2))
1749
+        console.log('arr23332232323', this.$store.getters.user.admin.id)
1627 1750
 
1628 1751
         var newArr = []
1629 1752
         for (let i = 0; i < arr.length; i++) {
@@ -1634,6 +1757,7 @@ export default {
1634 1757
                 arr[i].scheduals.splice(j--, 1)
1635 1758
               }
1636 1759
             } else if (this.$store.getters.user.user.user_type == 3) {
1760
+              console.log('woowowo', this.$store.getters.user.template_info.org_id)
1637 1761
               if (this.$store.getters.user.template_info.org_id == 10340) {
1638 1762
                 if ((arr[i].scheduals[j].dialysis_order == null || ((arr[i].scheduals[j] && arr[i].scheduals[j].dialysis_order != null) ? arr[i].scheduals[j].dialysis_order.start_nurse != this.$store.getters.user.admin.id : false)) && ((arr[i].scheduals[j].dobule_check == null) || ((arr[i].scheduals[j].dobule_check != null && (arr[i].scheduals[j].dobule_check.creater != this.$store.getters.user.admin.id)) && ((arr[i].scheduals[j].dobule_check != null && (arr[i].scheduals[j].dobule_check.modifier != this.$store.getters.user.admin.id)))))) {
1639 1763
                   arr[i].scheduals.splice(j--, 1)
@@ -1646,6 +1770,7 @@ export default {
1646 1770
             }
1647 1771
           }
1648 1772
         }
1773
+        console.log('上机', newArr)
1649 1774
         arr3 = arr
1650 1775
       }
1651 1776
 

+ 451 - 32
src/pages/main/PatientBox.vue Ver arquivo

@@ -745,6 +745,7 @@
745 745
         @longSolution="longSolutionFunc"
746 746
         :admin_map="admin_user_map"
747 747
         :admin_staff="admin_staff_map"
748
+        :lastDialysisPrescription="lastDialysisPrescription"
748 749
         ref="prescription_dialog"
749 750
       ></prescription-dialog>
750 751
     </van-popup>
@@ -839,6 +840,7 @@
839 840
 
840 841
     <!-- 消毒弹窗 -->
841 842
     <van-popup
843
+      v-if="$store.getters.user.template_info.org_id!=9671"
842 844
       title="消毒时间"
843 845
       v-model="showPlan"
844 846
       class="appPopup"
@@ -874,6 +876,7 @@
874 876
             </div>
875 877
           </div>
876 878
 
879
+       
877 880
           <div class="item">
878 881
             <label class="name" for="dtl">消毒时长</label>
879 882
             <div class="content">
@@ -888,6 +891,7 @@
888 891
             </div>
889 892
           </div>
890 893
 
894
+         
891 895
           <div class="item">
892 896
             <h2 class="name">结束消毒时间</h2>
893 897
             <div class="content">
@@ -900,9 +904,96 @@
900 904
               <span class="iconfont">&#xe6f9;</span>
901 905
             </div>
902 906
           </div>
903
-          <!-- 选择框 -->
907
+        </div>
908
+
909
+        <mt-datetime-picker
910
+        class="double_check_dialog"
911
+          ref="start_time_picker"
912
+          type="datetime"
913
+          @confirm="didSelectStartTime"
914
+          v-model="start_time"
915
+        ></mt-datetime-picker>
916
+
917
+       <mt-datetime-picker
918
+       class="double_check_dialog"
919
+          ref="select_time_picker"
920
+          type="datetime"
921
+          @confirm="didSelectEndTime"
922
+          v-model="select_time"
923
+        ></mt-datetime-picker>
924
+
925
+      </div>
926
+    </van-popup>
927
+
928
+
929
+
930
+    <van-popup
931
+      v-if="$store.getters.user.template_info.org_id==9671"
932
+      title="消毒时间"
933
+      v-model="showPlan"
934
+      class="appPopup"
935
+      get-container="#app"
936
+      :overlay="true"
937
+      :close-on-click-overlay="false"
938
+    >
939
+      <div class="Dialog">
940
+        <div class="DialogTit">
941
+          <span @click="close()" class="iconfont">&#xe6e9;</span>
942
+          <h1 class="name">消毒时间</h1>
943
+          <span class="success" @click="commitInfoOne" v-show="showOne">保存</span>
944
+          <span class="success" @click="updateInfoOne" v-show="showTwo">修改</span>
945
+        </div>
946
+        <div class="DialogContent">
947
+          <div class="item">
948
+            <h2 class="name">{{ bed_name }}</h2>
949
+            <div class="content">
950
+              <span class="text" style="width: 100px"></span>
951
+            </div>
952
+          </div>
953
+
954
+          <div class="item">
955
+            <h2 class="name">开始消毒时间</h2>
956
+            <div class="content">
957
+              <span
958
+                class="text"
959
+                style="width: 100px"
960
+                @click="selectStartTimeAction"
961
+                >{{ start_time_str }}</span
962
+              >
963
+              <span class="iconfont">&#xe6f9;</span>
964
+            </div>
965
+          </div>
966
+
967
+       
904 968
           <div class="item">
905
-            <h2 class="name">选择框</h2>
969
+            <label class="name" for="dtl">消毒时长</label>
970
+            <div class="content">
971
+              <input
972
+                type="number"
973
+                @click="newClick($event)"
974
+                @focus="inputFocus"
975
+                id="dtl"
976
+                v-model="disinfec_time"
977
+                @change="inputBlur"
978
+              />
979
+            </div>
980
+          </div>
981
+
982
+         
983
+          <div class="item">
984
+            <h2 class="name">结束消毒时间</h2>
985
+            <div class="content">
986
+              <span
987
+                class="text"
988
+                style="width: 100px"
989
+                @click="selectEndTimeAction"
990
+                >{{ select_time_str }}</span
991
+              >
992
+              <span class="iconfont">&#xe6f9;</span>
993
+            </div>
994
+          </div>
995
+          <div class="item">
996
+            <h2 class="name">机表(床单元、床旁桌)消毒方式:</h2>
906 997
             <div class="content" @click="showPicker = true">
907 998
               <span
908 999
                 class="text"
@@ -914,7 +1005,7 @@
914 1005
           </div>
915 1006
 
916 1007
           <div class="item">
917
-            <h2 class="name">选择框2</h2>
1008
+            <h2 class="name">机表(床单元、床旁桌)消毒液:</h2>
918 1009
             <div class="content" @click="showPicker2 = true">
919 1010
               <span
920 1011
                 class="text"
@@ -924,6 +1015,44 @@
924 1015
               <span class="iconfont">&#xe6f9;</span>
925 1016
             </div>
926 1017
           </div>
1018
+
1019
+          <div class="item">
1020
+            <h2 class="name">液路消毒方式:</h2>
1021
+            <div class="content" @click="showPicker3 = true">
1022
+              <span
1023
+                class="text"
1024
+                style="width: 100px"
1025
+                >{{ kuangvalue3 }}</span
1026
+              >
1027
+              <span class="iconfont">&#xe6f9;</span>
1028
+            </div>
1029
+          </div>
1030
+
1031
+          <div class="item">
1032
+            <h2 class="name">液路消毒液:</h2>
1033
+            <div class="content" @click="showPicker4 = true">
1034
+              <span
1035
+                class="text"
1036
+                style="width: 100px"
1037
+                >{{ kuangvalue4 }}</span
1038
+              >
1039
+              <span class="iconfont">&#xe6f9;</span>
1040
+            </div>
1041
+          </div>
1042
+
1043
+          <div class="item">
1044
+            <h2 class="name">床位更换:</h2>
1045
+            <div class="content" @click="showPicker5 = true">
1046
+              <span
1047
+                class="text"
1048
+                style="width: 100px"
1049
+                >{{ kuangvalue5 }}</span
1050
+              >
1051
+              <span class="iconfont">&#xe6f9;</span>
1052
+            </div>
1053
+          </div>
1054
+
1055
+
927 1056
         </div>
928 1057
 
929 1058
         <mt-datetime-picker
@@ -946,7 +1075,7 @@
946 1075
         <van-popup v-model:show="showPicker" round position="bottom">
947 1076
           <van-picker
948 1077
             show-toolbar
949
-            :columns="columns"
1078
+            :columns="disinfectType"
950 1079
             placeholder="请选择"
951 1080
             @cancel="showPicker=false"
952 1081
             @confirm="onConfirm"
@@ -955,9 +1084,37 @@
955 1084
         <van-popup v-model:show="showPicker2" round position="bottom">
956 1085
           <van-picker
957 1086
             show-toolbar
958
-            :columns="columns"
1087
+            :columns="disinfectantType"
959 1088
             @cancel="showPicker2=false"
960
-            @confirm="onConfirms"
1089
+            @confirm="onConfirmOne"
1090
+          />
1091
+        </van-popup> 
1092
+
1093
+        <van-popup v-model:show="showPicker3" round position="bottom">
1094
+          <van-picker
1095
+            show-toolbar
1096
+            :columns="sterilizeType"
1097
+            @cancel="showPicker3=false"
1098
+            @confirm="onConfirmTwo"
1099
+          />
1100
+        </van-popup> 
1101
+
1102
+
1103
+        <van-popup v-model:show="showPicker4" round position="bottom">
1104
+          <van-picker
1105
+            show-toolbar
1106
+            :columns="fluidPathType"
1107
+            @cancel="showPicker4=false"
1108
+            @confirm="onConfirmThree"
1109
+          />
1110
+        </van-popup> 
1111
+
1112
+        <van-popup v-model:show="showPicker5" round position="bottom">
1113
+          <van-picker
1114
+            show-toolbar
1115
+            :columns="bedType"
1116
+            @cancel="showPicker5=false"
1117
+            @confirm="onConfirmFour"
961 1118
           />
962 1119
         </van-popup> 
963 1120
       </div>
@@ -1028,6 +1185,10 @@ export default {
1028 1185
       monit_dialog_reset: true,
1029 1186
       showPicker:false,
1030 1187
       showPicker2:false,
1188
+      showPicker3:false,
1189
+      showPicker4:false,
1190
+      showPicker5:false,
1191
+      showPicker6:false,
1031 1192
       receiver_treatment_access: {}, // 接诊评估
1032 1193
       predialysis_evaluation: {}, // 透前评估
1033 1194
       last_predialysis_evaluation: {}, // 上次透前评估
@@ -1036,6 +1197,7 @@ export default {
1036 1197
       double_check: {}, // 双人核对
1037 1198
       assessment_after_dislysis: {}, // 透后评估
1038 1199
       last_assessment_after_dislysis: {}, // 上次透后评估
1200
+      lastDialysisPrescription:{},//上次透析处方,不按透析模式
1039 1201
       treatment_summary: {}, // 治疗小结
1040 1202
       monitor_records: [], // 透析监测
1041 1203
       special_premission: [],
@@ -1104,6 +1266,58 @@ export default {
1104 1266
     ],
1105 1267
     kuangvalue:'',
1106 1268
     kuangvalue2:'',
1269
+    kuangvalue3:"",
1270
+    kuangvalue4:"",
1271
+    kuangvalue5:"",
1272
+    kuangvalue6:"",
1273
+    // 机表消毒方式
1274
+    disinfectType: [
1275
+      { value: 0, text: "/" },
1276
+      { value: 1, text: "擦拭" },
1277
+      { value: 2, text: "化学消毒" }
1278
+    ],
1279
+    // 基表消毒液
1280
+    disinfectantType: [
1281
+      { value: 0, text: "/" },
1282
+      { value: 1, text: "0.22%季铵盐" },
1283
+      { value: 2, text: "500mg/l含氯消毒剂" },
1284
+      { value: 3, text: "1000mg/l含氯消毒剂" },
1285
+      { value: 4, text: "1500mg/l含氯消毒剂" },
1286
+      { value: 5,  text:"消毒湿巾"}
1287
+    ],
1288
+    // 夜路消毒方式
1289
+    sterilizeType: [
1290
+        { value: 0, text: "/" },
1291
+        { value: 1, text: "热化学消毒" },
1292
+        { value: 2, text: "化学消毒 + 除钙" },
1293
+        { value: 3, text: "热化学消毒 + 除钙" },
1294
+        { value: 4, text: "热消毒" },
1295
+        { value: 5, text: "化学消毒" },
1296
+        { value: 6, text: "除钙" },
1297
+        { value: 7, text: "清洗" }
1298
+      ],
1299
+      // 夜路消毒液
1300
+      fluidPathType: [
1301
+        { value: 0, text: "/" },
1302
+        { value: 1, text: "20%柠檬酸" },
1303
+        { value: 2, text: "25%柠檬酸" },
1304
+        { value: 3, text: "50%柠檬酸" },
1305
+        { value: 4, text: "50%柠檬酸 + 5%次氯酸钠" },
1306
+        { value: 5, text: "20%柠檬酸 + 10%冰醋酸" },
1307
+        { value: 6, text: "0.2%过氧化乙酸" },
1308
+        { value: 7, text: "10%冰醋酸" },
1309
+        { value: 8, text: "50%冰醋酸" },
1310
+        { value: 9, text: "5%次氯酸钠" },
1311
+        { value: 10,text:"25%的柠檬酸+5%次氯酸钠"},
1312
+      ],
1313
+       // 床单位更换
1314
+       bedType: [
1315
+        { value: 0, text: "/" },
1316
+        { value: 1, text: "床单" },
1317
+        { value: 2, text: "被套" },
1318
+        { value: 3, text: "枕套" },
1319
+      
1320
+      ],
1107 1321
     }
1108 1322
   },
1109 1323
   methods: {
@@ -1222,7 +1436,9 @@ export default {
1222 1436
           var last_assessment_after_dislysis =
1223 1437
             resp.data.last_assessment_after_dislysis // 上一次透前评估
1224 1438
           var last_monitor_record = resp.data.last_monitor_record
1225
-
1439
+          //上一次透析处方,不按透析模式
1440
+          var lastDialysisPrescription =  resp.data.lastDialysisPrescription
1441
+          this.lastDialysisPrescription = lastDialysisPrescription
1226 1442
           if (Object.keys(waitstoredata).length > 0) {
1227 1443
             for (let index = 0; index < waitscheduals.length; index++) {
1228 1444
               if (waitscheduals[index].patient_id == patient.id) {
@@ -1259,8 +1475,7 @@ export default {
1259 1475
           this.schedual = schedual == null ? {} : schedual
1260 1476
           this.prescription = prescription == null ? { id: '' } : prescription
1261 1477
           this.solution = solution == null ? { id: '' } : solution
1262
-          this.last_prescription =
1263
-            last_prescription == null ? { id: '' } : last_prescription
1478
+          this.last_prescription = last_prescription == null ? { id: '' } : last_prescription
1264 1479
           this.receiver_treatment_access =
1265 1480
             receiver_treatment_access == null
1266 1481
               ? { id: '' }
@@ -2146,17 +2361,31 @@ export default {
2146 2361
           console.log('start_time_str', this.start_time_str)
2147 2362
         }
2148 2363
       }
2364
+     
2149 2365
       var params = {
2150 2366
         patient_id: schedual.patient_id,
2151 2367
         schedule_date: schedual.schedule_date
2152 2368
       }
2153 2369
       console.log('params23232323', params)
2154
-      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490) {
2370
+      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10101) {
2155 2371
         getDialysisRecordOrde(params).then((response) => {
2156 2372
           if (response.data.state == 1) {
2157 2373
             var order = response.data.data.order
2158 2374
             console.log('order', order)
2159
-            this.start_time_str = this.getTimeTwo(order.end_time)
2375
+            if(this.$store.getters.user.template_info.org_id == 10101){
2376
+              var end_order_time = 0
2377
+              if(order.end_time >0){
2378
+
2379
+                 end_order_time = parseInt(order.end_time) + 300
2380
+              }
2381
+              console.log(order.end_time)
2382
+              console.log("end_order_time",end_order_time)
2383
+              this.start_time_str = this.getTimeTwo(end_order_time)
2384
+              console.log("开始时间",this.start_time_str)
2385
+            }else{
2386
+              this.start_time_str = this.getTimeTwo(order.end_time)
2387
+            }
2388
+          
2160 2389
             this.getDisInfectionTime()
2161 2390
             this.showPlan = true
2162 2391
           }
@@ -2170,6 +2399,8 @@ export default {
2170 2399
       this.showPlan = false
2171 2400
     },
2172 2401
     commitInfo () {
2402
+      
2403
+      
2173 2404
       const params = {
2174 2405
         bed_id: this.bed_id,
2175 2406
         start_time: this.start_time_str,
@@ -2179,8 +2410,11 @@ export default {
2179 2410
         zone_id: this.zone_id,
2180 2411
         patient_id: this.patient_id,
2181 2412
         mode_id: this.mode_id,
2182
-        schedule_type: this.schedule_type
2413
+        schedule_type: this.schedule_type,
2414
+       
2183 2415
       }
2416
+      console.log("newoowowo",params)
2417
+      
2184 2418
       if (this.disinfec_time == '') {
2185 2419
         this.$toast('消毒时长不能为空!')
2186 2420
         return false
@@ -2210,6 +2444,86 @@ export default {
2210 2444
         }
2211 2445
       })
2212 2446
     },
2447
+    commitInfoOne () {
2448
+      var way = 0
2449
+      for(let i=0;i<this.disinfectType.length;i++){
2450
+        if(this.kuangvalue == this.disinfectType[i].text){
2451
+           way = this.disinfectType.value
2452
+        }
2453
+      }
2454
+      var machine_disinfectant =0 
2455
+      for(let i=0;i<this.disinfectantType.length;i++){
2456
+          if(this.kuangvalue2 == this.disinfectType[i].text){
2457
+            machine_disinfectant = this.disinfectType[i].value
2458
+          }
2459
+      }
2460
+
2461
+      var disinfectant_way = 0
2462
+      for(let i=0;i<this.sterilizeType.length;i++){
2463
+        if(this.kuangvalue3 == this.sterilizeType[i].text){
2464
+           disinfectant_way = this.sterilizeType[i].value
2465
+        }
2466
+      }
2467
+
2468
+      var disinfectant=0
2469
+      for(let i=0;i<this.fluidPathType.length;i++){
2470
+         if(this.kuangvalue4 == this.fluidPathType[i].text){
2471
+            disinfectant = this.fluidPathType[i].value
2472
+         }
2473
+      }
2474
+
2475
+      var bed_way =0
2476
+      for(let i=0;i<this.bedType.length;i++){
2477
+        if(this.kuangvalue5 == this.bedType[i].text){
2478
+            bed_way== this.fluidPathType[i].bedType
2479
+        }
2480
+      }
2481
+
2482
+      const params = {
2483
+        bed_id: this.bed_id,
2484
+        start_time: this.start_time_str,
2485
+        disinfec_time: this.disinfec_time,
2486
+        end_time: this.select_time_str,
2487
+        schedule_date: this.schedule_date,
2488
+        zone_id: this.zone_id,
2489
+        patient_id: this.patient_id,
2490
+        mode_id: this.mode_id,
2491
+        schedule_type: this.schedule_type,
2492
+        way:way,
2493
+        machine_disinfectant:machine_disinfectant,
2494
+        disinfectant_way:disinfectant_way,
2495
+        disinfectant:disinfectant,
2496
+        bed_way:bed_way,
2497
+      }
2498
+      if (this.disinfec_time == '') {
2499
+        this.$toast('消毒时长不能为空!')
2500
+        return false
2501
+      }
2502
+      if (this.planStatus == 1) {
2503
+        this.$toast('该设备无消毒计划,保存失败!')
2504
+        return false
2505
+      }
2506
+      console.log('params', params)
2507
+      
2508
+      SaveDisinfetionInfo(params).then((response) => {
2509
+        if (response.data.state == 1) {
2510
+          var information = response.data.data.information
2511
+
2512
+          this.$toast('保存成功')
2513
+          this.showPlan = false
2514
+          var msstatus = response.data.data.msstatus
2515
+          // console.log('inforstate', msstatus)
2516
+          this.$parent.getDeviceInformation()
2517
+          if (msstatus == 2) {
2518
+            this.showPlan = false
2519
+            this.$toast('保存失败,该设备无消毒计划')
2520
+          }
2521
+        } else {
2522
+          this.showPlan = false
2523
+          this.$toast('保存失败')
2524
+        }
2525
+      })
2526
+    },
2213 2527
     updateInfo () {
2214 2528
       var u = navigator.userAgent
2215 2529
       var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 // android终端
@@ -2242,6 +2556,38 @@ export default {
2242 2556
         }
2243 2557
       })
2244 2558
     },
2559
+    updateInfoOne () {
2560
+      var u = navigator.userAgent
2561
+      var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 // android终端
2562
+      var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios终端
2563
+      const params = {
2564
+        bed_id: this.bed_id,
2565
+        start_time: this.start_time_str,
2566
+        disinfec_time: this.disinfec_time,
2567
+        end_time: this.select_time_str,
2568
+        schedule_date: this.schedule_date,
2569
+        zone_id: this.zone_id,
2570
+        patient_id: this.patient_id,
2571
+        mode_id: this.mode_id,
2572
+        schedule_type: this.schedule_type
2573
+      }
2574
+      if (this.disinfec_time == '') {
2575
+        this.$toast('消毒时长不能为空!')
2576
+        return false
2577
+      }
2578
+      // console.log("params",params)
2579
+      SaveDisinfetionInfo(params).then((response) => {
2580
+        if (response.data.state == 1) {
2581
+          var information = response.data.data.information
2582
+
2583
+          this.$toast('修改成功')
2584
+          this.showPlan = false
2585
+        } else {
2586
+          this.showPlan = false
2587
+          this.$toast('修改失败')
2588
+        }
2589
+      })
2590
+    },
2245 2591
     selectStartTimeAction: function () {
2246 2592
       this.$refs.start_time_picker.open()
2247 2593
     },
@@ -2300,20 +2646,55 @@ export default {
2300 2646
           var plan = response.data.data.plan
2301 2647
 
2302 2648
           this.disinfec_time = plan
2649
+         
2650
+          // var planObj = response.data.data.planObj
2651
+          // if(planObj!="" && planObj!=undefined){
2652
+          //   var way = ""
2653
+          //   for(let i=0;i<this.disinfectType.length;i++){
2654
+          //     if(planObj.way == this.disinfectType[i].value){
2655
+          //        way = this.disinfectantType[i].text
2656
+          //     }
2657
+          //   }
2658
+          //   this.kuangvalue =way
2659
+
2660
+          //   var machine_disinfectant = ""
2661
+          //   for(let i=0;i<this.disinfectantType.length;i++){
2662
+          //       if(planObj.device_type == this.disinfectType[i].value){
2663
+          //         machine_disinfectant = this.disinfectType[i].text
2664
+          //       }
2665
+          //   }
2666
+          //   this.kuangvalue2 = machine_disinfectant
2667
+
2668
+          //   var disinfectant_way = ""
2669
+          //   for(let i=0;i<this.sterilizeType.length;i++){
2670
+          //     if(planObj.sterilizeType == this.sterilizeType[i].text){
2671
+          //       disinfectant_way = this.sterilizeType[i].text 
2672
+          //     }
2673
+          //   }
2674
+          //   this.kuangvalue3 = disinfectant_way
2675
+
2676
+          //   var disinfectant=""
2677
+          //   for(let i=0;i<this.fluidPathType.length;i++){
2678
+          //     if(planObj.disinfectant == this.fluidPathType[i].value){
2679
+          //        disinfectant = this.fluidPathType[i].text
2680
+          //     }
2681
+          //   }
2682
+          //   this.kuangvalue4 = disinfectant
2683
+           
2684
+          //   var bed_type = ""
2685
+          //   for(let i=0;i<this.bedType.length;i++){
2686
+          //     if(planObj.bed_way == this.bedType[i].value){
2687
+          //        bed_type = this.bedType[i].text
2688
+          //     }
2689
+          //   }
2690
+          //   this.kuangvalue5 =bed_type
2691
+           
2692
+          // }
2303 2693
           var total = 60 * parseInt(this.disinfec_time) + new Date(this.start_time_str).valueOf() / 1000
2304 2694
           console.log('total', total)
2305 2695
           this.select_time_str = this.getTimeTwo(total)
2306 2696
           this.select_time = this.getTimeTwo(total)
2307
-          // let oldTime = this.start_time_str
2308
-          // console.log('oldTime2333232', oldTime)
2309
-          // var time = new Date(oldTime.replace('-', '/'))
2310
-          // var b = parseInt(plan) // 分钟数
2311
-          // time.setMinutes(time.getMinutes() + b)
2312
-          // console.log('time2233323232', time)
2313
-          // this.end_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
2314
-          // this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
2315
-          // this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
2316
-          // console.log('数据2323322232', this.select_time_str)
2697
+        
2317 2698
           if (plan == '') {
2318 2699
             this.end_time = ''
2319 2700
             this.select_time = ''
@@ -2386,6 +2767,21 @@ export default {
2386 2767
       console.log('total', total)
2387 2768
       this.select_time_str = this.getTimeTwo(total)
2388 2769
       this.select_time = this.getTimeTwo(total)
2770
+
2771
+      // let oldTime = this.start_time_str
2772
+      // var time = new Date(oldTime.replace('-', '/'))
2773
+      // var b = parseInt(this.disinfec_time) // 分钟数
2774
+      // time.setMinutes(time.getMinutes() + b)
2775
+
2776
+      // this.end_time = ''
2777
+      // this.end_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
2778
+      // this.end_time_one = ''
2779
+      // this.end_time_one = parseTime(time, '{y}-{m}-{d} {h}:{i}')
2780
+
2781
+      // this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
2782
+      // console.log('select_time23323233223', this.select_time)
2783
+      // this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
2784
+      // console.log('select_time_str', this.select_time_str)
2389 2785
     },
2390 2786
     modeColor (id) {
2391 2787
       if (id == 1) {
@@ -2426,32 +2822,55 @@ export default {
2426 2822
       this.patients.splice(index, 1)
2427 2823
     },
2428 2824
     onConfirm(val){
2429
-      
2430
-      for(let i=0;i<this.columns.length;i++){
2431
-        if(val.value==this.columns[i].value){
2825
+      console.log("val2o2o2o2o",val)
2826
+      for(let i=0;i<this.disinfectType.length;i++){
2827
+        if(val.id==this.disinfectType[i].id){
2432 2828
           this.kuangvalue=val.text
2433
-          console.log('vvvv',this.kuangvalue)
2434 2829
         }
2435 2830
       }
2436 2831
       this.showPicker=false
2437 2832
     },
2438
-    onConfirms(val){
2439
-      for(let i=0;i<this.columns.length;i++){
2440
-        if(val.value==this.columns[i].value){
2833
+    onConfirmOne(val){
2834
+      for(let i=0;i<this.disinfectantType.length;i++){
2835
+        if(val.id==this.disinfectantType[i].id){
2441 2836
           this.kuangvalue2=val.text
2442
-          console.log('vvvv',this.kuangvalue2)
2443 2837
         }
2444 2838
       }
2445 2839
       this.showPicker2=false
2840
+    },
2841
+    onConfirmTwo(val){
2842
+      for(let i=0;i<this.sterilizeType.length;i++){
2843
+        if(val.id==this.sterilizeType[i].id){
2844
+          this.kuangvalue3=val.text
2845
+        }
2846
+      }
2847
+      this.showPicker3=false
2848
+    },
2849
+    onConfirmThree(val){
2850
+      for(let i=0;i<this.fluidPathType.length;i++){
2851
+        if(val.id==this.fluidPathType[i].id){
2852
+          this.kuangvalue4=val.text
2853
+        }
2854
+      }
2855
+      this.showPicker4=false
2856
+    },
2857
+    onConfirmFour(val){
2858
+      for(let i=0;i<this.bedType.length;i++){
2859
+        if(val.id==this.bedType[i].id){
2860
+          this.kuangvalue5=val.text
2861
+        }
2862
+      }
2863
+      this.showPicker5=false
2446 2864
     }
2447 2865
 
2866
+
2448 2867
   },
2449 2868
   created () {
2450
-    // console.log("thiso2ooow",this.newIndex)
2869
+    console.log("thiso2ooow",this.newIndex)
2451 2870
     if (this.$store.getters.user.template_info.org_id != 10340 && this.$store.getters.user.template_info.org_id != 9829 &&  this.$store.getters.user.template_info.org_id != 10490) {
2452 2871
       this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}')
2453 2872
       this.select_time_str = parseTime(this.select_time, '{y}-{m}-{d} {h}:{i}')
2454
-      // console.log('this.select_time_str3232323', this.select_time_str)
2873
+      console.log('this.select_time_str3232323', this.select_time_str)
2455 2874
       
2456 2875
     }
2457 2876
   },

+ 4 - 4
src/pages/main/RecordPage.vue Ver arquivo

@@ -75,9 +75,9 @@
75 75
       <van-tab title="透析医嘱">
76 76
         <dialysis-advice-table v-if="index == 3"></dialysis-advice-table>
77 77
       </van-tab>
78
-      <!-- <van-tab title="病历质控">
78
+      <van-tab title="病历质控">
79 79
         <control v-if="index == 4" ref='control' :search_keyword="search_keyword"></control>
80
-      </van-tab> -->
80
+      </van-tab>
81 81
 
82 82
       <van-tab title="耗材药品">
83 83
         <before-dialysis  v-if="index ==5" ref="dialysisParameters"  :search_keyword="search_keyword"></before-dialysis>
@@ -154,7 +154,7 @@ import { getDialysisScheduals, getWaitingScheduals } from '@/api/dialysis'
154 154
 import { parseTime } from '@/utils/index'
155 155
 import { getDialysisOrWaitSelectedConfig } from '@/utils/data_config'
156 156
 import monitoring from '../monitoring/index'
157
-// import control from '../control/index.vue'
157
+import control from '../control/index.vue'
158 158
 import DialysisAdviceTable from '../advice/DialysisAdviceTable'
159 159
 import DialysisAdvice from '../advice/DialysiAdive'
160 160
 import beforeDialysis from './beforeDialysis/index'
@@ -249,7 +249,7 @@ export default {
249 249
     beforeDialysis,
250 250
     calling,
251 251
     schedule,
252
-    // control
252
+    control
253 253
     // Group,
254 254
     // Cell
255 255
   },

+ 239 - 20
src/pages/main/WaitingArea.vue Ver arquivo

@@ -86,7 +86,7 @@
86 86
         </ul>
87 87
       </div>
88 88
       <div class="stateBox" ref="waitScroll">
89
-        <div style="margin-top:10px;">今日排班总人数:{{ schedualsLength }}人</div>
89
+        <div style="margin-top:10px;">今日排班总人数:{{ schedualsLength }}人 上午:{{ schedualsLengthOne }}人 下午:{{ schedualsLengthTwo }}人 晚上:{{ schedualsLengthThree }}人</div>
90 90
         <!-- <patient-box class="clearfix" :patients="filtedScheduals "></patient-box> -->
91 91
         <div v-for="(item, index) in allPatient" :key="index">
92 92
           <h2 class="title" v-if='patient_selected != 2'>{{ item.zone_name }}</h2>
@@ -111,6 +111,7 @@
111 111
           v-if="!networkStates"
112 112
           style="display: block;text-align: center;"
113 113
         >
114
+          <!--<img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/no_network.jpg" alt="">-->
114 115
           <p style="margin-top: 100px;font-size: 18px">
115 116
             网络异常,请点击重新加载
116 117
           </p>
@@ -214,6 +215,9 @@ export default {
214 215
       information: [],
215 216
       deviceTypeList:[],
216 217
       schedualsLength: 0,
218
+      schedualsLengthOne:0,
219
+      schedualsLengthTwo:0,
220
+      schedualsLengthThree:0,
217 221
       zonesList: [],
218 222
       zoneMap: {}
219 223
     }
@@ -271,7 +275,14 @@ export default {
271 275
               }
272 276
             }
273 277
           }
274
-        }
278
+          // if (filtedSchedules.length > 0) {
279
+          //   schedules.push({
280
+          //     zone_name: scheduleInfo.zone_name,
281
+          //     scheduals: filtedSchedules
282
+          //   });
283
+          // }
284
+        }
285
+        // console.log(filtedSchedules)
275 286
         return this.processScheduals(filtedSchedules)
276 287
       }
277 288
 
@@ -306,7 +317,14 @@ export default {
306 317
               }
307 318
             }
308 319
           }
309
-        }
320
+          // if (filtedSchedules.length > 0) {
321
+          //   schedules.push({
322
+          //     zone_name: scheduleInfo.zone_name,
323
+          //     scheduals: filtedSchedules
324
+          //   });
325
+          // }
326
+        }
327
+        // console.log(222, filtedSchedules)
310 328
         return this.processScheduals(filtedSchedules)
311 329
       }
312 330
 
@@ -338,8 +356,90 @@ export default {
338 356
               }
339 357
             }
340 358
           }
359
+          // if (filtedSchedules.length > 0) {
360
+          //   schedules.push({
361
+          //     zone_name: scheduleInfo.zone_name,
362
+          //     scheduals: filtedSchedules
363
+          //   });
364
+          // }
341 365
         }
366
+
367
+        // console.log(111, filtedSchedules)
342 368
         return this.processScheduals(filtedSchedules)
369
+        // eslint-disable-next-line no-unreachable
370
+        if (this.select_index == 2) {
371
+          var scheduals = []
372
+          for (let index = 0; index < this.scheduals.length; index++) {
373
+            const schedual = this.scheduals[index]
374
+            if (
375
+              schedual.assessment_before_dislysis == null ||
376
+              schedual.assessment_before_dislysis.weight_before == 0
377
+            ) {
378
+              if (
379
+                this.cur_zone_selected > 0 &&
380
+                schedual.device_number.zone.id != this.cur_zone_selected
381
+              ) {
382
+                continue
383
+              }
384
+              if (
385
+                timetype_selected > 0 &&
386
+                schedual.schedule_type != timetype_selected
387
+              ) {
388
+                continue
389
+              }
390
+              scheduals.push(schedual)
391
+            }
392
+          }
393
+          return this.processScheduals(scheduals)
394
+          // return scheduals;
395
+        } else if (this.select_index == 1) {
396
+          var scheduals = []
397
+          for (let index = 0; index < this.scheduals.length; index++) {
398
+            const schedual = this.scheduals[index]
399
+            if (
400
+              schedual.prescription == null ||
401
+              schedual.prescription.creater == 0
402
+            ) {
403
+              if (
404
+                this.cur_zone_selected > 0 &&
405
+                schedual.device_number.zone.id != this.cur_zone_selected
406
+              ) {
407
+                continue
408
+              }
409
+              if (
410
+                timetype_selected > 0 &&
411
+                schedual.schedule_type != timetype_selected
412
+              ) {
413
+                continue
414
+              }
415
+              scheduals.push(schedual)
416
+            }
417
+          }
418
+          // return scheduals;
419
+          return this.processScheduals(scheduals)
420
+        } else {
421
+          var scheduals = []
422
+          for (let index = 0; index < this.scheduals.length; index++) {
423
+            const schedual = this.scheduals[index]
424
+            if (schedual.dialysis_order == null) {
425
+              if (
426
+                this.cur_zone_selected > 0 &&
427
+                schedual.device_number.zone.id != this.cur_zone_selected
428
+              ) {
429
+                continue
430
+              }
431
+              if (
432
+                timetype_selected > 0 &&
433
+                schedual.schedule_type != timetype_selected
434
+              ) {
435
+                continue
436
+              }
437
+              scheduals.push(schedual)
438
+            }
439
+          }
440
+          // return scheduals;
441
+          return this.processScheduals(scheduals)
442
+        }
343 443
       }
344 444
 
345 445
       if (this.select_index == 2) {
@@ -394,6 +494,7 @@ export default {
394 494
     var time = getSelectedTimesDataConfigList()
395 495
     var type = getWaitTypeSelectedConfig()
396 496
     var patientType = getPatientTypeSelectedConfig()
497
+    // console.log('type',type)
397 498
     if (area != null) {
398 499
       this.zone_options_visible = false
399 500
       this.zone_selected = parseInt(area)
@@ -414,8 +515,9 @@ export default {
414 515
     }
415 516
 
416 517
     var storedata = this.$store.getters.waitscheduals
518
+    // console.log('storedata', storedata)
417 519
     var scheduals = storedata.waitscheduals
418
-
520
+    // console.log('scheduals', scheduals)
419 521
 
420 522
     if (Object.keys(storedata).length > 0) {
421 523
       var totalCount = scheduals.length
@@ -434,7 +536,7 @@ export default {
434 536
       // this.menuList[1].count = prescription_count;
435 537
       this.scheduals = scheduals
436 538
 
437
-      // console.log('scheduals99999999', this.scheduals)
539
+      console.log('scheduals99999999', this.scheduals)
438 540
       var zoneMap = {}
439 541
       var schedualMap = {}
440 542
       for (let index = 0; index < scheduals.length; index++) {
@@ -509,7 +611,8 @@ export default {
509 611
       this.zone_options = []
510 612
      
511 613
       this.zone_options = zones
512
-      // console.log('dialysis_scheduals33223322323', dialysis_scheduals)
614
+      // eslint-disable-next-line camelcase
615
+      console.log('dialysis_scheduals33223322323', dialysis_scheduals)
513 616
 
514 617
       this.zone_scheduals = dialysis_scheduals
515 618
 
@@ -574,6 +677,15 @@ export default {
574 677
       if (sessionStorage.getItem('schedualsLength')) {
575 678
         this.schedualsLength = Number(sessionStorage.getItem('schedualsLength'))
576 679
       }
680
+      if (sessionStorage.getItem('schedualsOneLength')) {
681
+        this.schedualsLengthOne = Number(sessionStorage.getItem('schedualsOneLength'))
682
+      }
683
+      if (sessionStorage.getItem('schedualsTwoLength')) {
684
+        this.schedualsLengthTwo = Number(sessionStorage.getItem('schedualsTwoLength'))
685
+      }
686
+      if (sessionStorage.getItem('schedualsThreeLength')) {
687
+        this.schedualsLengthThree = Number(sessionStorage.getItem('schedualsThreeLength'))
688
+      }
577 689
     },
578 690
     websocketSend (data) {
579 691
       try {
@@ -634,6 +746,8 @@ export default {
634 746
               calledArr.push(item)
635 747
             }
636 748
           })
749
+          // console.log('waitingCalledArr待叫号',waitingCalledArr)
750
+          // console.log('waitingCalledArr以较好',calledArr)
637 751
           this.waitingCalled = waitingCalledArr
638 752
           this.called = calledArr
639 753
         } else if (res.channel == 'allQueueList') {
@@ -690,6 +804,7 @@ export default {
690 804
         }
691 805
       },
692 806
       this.websocket.onerror = function (event, e) {
807
+        // console.log('error '+event.data);
693 808
         let unObj = {
694 809
           cmd: 'queue/unjoin',
695 810
           data: {type: 3}
@@ -714,9 +829,11 @@ export default {
714 829
       } else {
715 830
         schedule_type = 2
716 831
       }
832
+      // console.log('patient_id',patient_id)
717 833
       let org_id = parseInt(sessionStorage.getItem('org_id'))
718 834
       let admin_user_id = parseInt(sessionStorage.getItem('admin_user_id'))
719 835
       axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
836
+        // console.log(res)
720 837
         // let patientArr = res.data.queue_list.data
721 838
         // this.patientArr = patientArr
722 839
         // this.$emit('child-event',this.patientArr)
@@ -730,6 +847,7 @@ export default {
730 847
         Toast.success('已经是最后一位了')
731 848
         return
732 849
       }
850
+      // console.log('patient_id',patient_id)
733 851
       let schedule_type = null
734 852
       if (this.time_selected == 0) {
735 853
         if (new Date().getHours() < 11) {
@@ -745,6 +863,7 @@ export default {
745 863
       let org_id = parseInt(sessionStorage.getItem('org_id'))
746 864
       let admin_user_id = parseInt(sessionStorage.getItem('admin_user_id'))
747 865
       axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
866
+        // console.log(res)
748 867
         // let patientArr = res.data.queue_list.data
749 868
         // this.patientArr = patientArr
750 869
         // this.$emit('child-event',this.patientArr)
@@ -851,7 +970,7 @@ export default {
851 970
       this.getData()
852 971
     },
853 972
     handleZoneChange: function (index, zone) {
854
-      // console.log('中国232322323', zone)
973
+      console.log('中国232322323', zone)
855 974
       this.zone_options_visible = false
856 975
       this.zone_selected = index
857 976
       this.cur_zone_selected = zone.value
@@ -862,7 +981,7 @@ export default {
862 981
       this.getDataTwo()
863 982
     },
864 983
     handleTimeChange: function (index) {
865
-      // console.log('indesx222222', index)
984
+     
866 985
       let obj = {
867 986
         cmd: 'queue/join',
868 987
         data: {type: 3, page: 0, size: 0}
@@ -877,11 +996,21 @@ export default {
877 996
     },
878 997
 
879 998
     requestScheduals: function () {
999
+      // this.loading = true;
1000
+      // var date = parseTime(Date.parse(new Date()), '{y}-{m}-{d}')
1001
+      // getWaitingScheduals({ date: date }).then(rs => {
1002
+      // var resp = rs.data
1003
+      // if (resp.state == 1) {
1004
+
880 1005
       this.loading = false
881 1006
       var storedata = this.$store.getters.waitscheduals
882 1007
 
883 1008
       var scheduals = storedata.waitscheduals
884
-      // console.log('我的时间我做主', scheduals)
1009
+      console.log('我的时间我做主', scheduals)
1010
+      // var scheduals = resp.data.scheduals
1011
+      // this.$store.dispatch('SetWaitScheduals', {
1012
+      //   waitscheduals: scheduals
1013
+      // })
885 1014
       var totalCount = scheduals.length
886 1015
       var prescription_count = 0
887 1016
       var assessment_before_dislysis_count = 0
@@ -894,6 +1023,8 @@ export default {
894 1023
           prescription_count += 1
895 1024
         }
896 1025
       }
1026
+      // this.menuList[2].count = assessment_before_dislysis_count;
1027
+      // this.menuList[1].count = prescription_count;
897 1028
       this.scheduals = scheduals
898 1029
 
899 1030
       var zoneMap = {}
@@ -939,6 +1070,10 @@ export default {
939 1070
         }
940 1071
       }
941 1072
       this.zonesList = zones
1073
+
1074
+      // this.zone_options = zones
1075
+
1076
+      // eslint-disable-next-line camelcase
942 1077
       var dialysis_scheduals = []
943 1078
       for (let index = 0; index < zones.length; index++) {
944 1079
         const zone = zones[index]
@@ -965,13 +1100,42 @@ export default {
965 1100
         }
966 1101
       }
967 1102
       this.zone_options = []
1103
+      console.log('zones33223232332', zones)
968 1104
       this.zone_options = zones
969 1105
 
970 1106
       this.zone_scheduals = dialysis_scheduals
971
-      // this.getData()
972
-      // return 
1107
+      this.getData()
1108
+
1109
+      // this.zone_options = this.makeZones(scheduals);
1110
+      // this.zone_scheduals = this.processScheduals(scheduals);
1111
+      // console.log('this.zone_options',this.zone_options)
1112
+      // console.log('this.zone_scheduals',this.dialysis_scheduals)
1113
+      // } else {
1114
+      //   this.loading = false
1115
+
1116
+      //   this.$toast({
1117
+      //     message: resp.msg
1118
+      //   })
1119
+      // }
1120
+      // }).catch(error => {
1121
+      //     this.loading = false
1122
+
1123
+      //     // 超时之后在这里捕抓错误信息.
1124
+      //     if (error.response) {
1125
+      //       this.networkStates = false
1126
+      //     } else if (error.request) {
1127
+      //       this.networkStates = false
1128
+      //       // if(error.request.readyState == 4 && error.request.status == 0){
1129
+      //       //   //我在这里重新请求
1130
+      //       //   this.networkStates = false
1131
+      //       // }
1132
+      //     } else {
1133
+      //       this.networkStates = false
1134
+      //     }
1135
+      //   })
973 1136
     },
974 1137
     makeZones: function (scheduals) {
1138
+      console.log('schedualsjianmie', scheduals)
975 1139
       var zoneMap = {}
976 1140
       for (let index = 0; index < scheduals.length; index++) {
977 1141
         const schedual = scheduals[index]
@@ -986,6 +1150,7 @@ export default {
986 1150
       for (var zoneId in zoneMap) {
987 1151
         zones.push({ value: zoneMap[zoneId].id, text: zoneMap[zoneId].name, zone_name: zoneMap[zoneId].name })
988 1152
       }
1153
+      console.log('zones233223232wi', zones)
989 1154
       return zones
990 1155
     },
991 1156
     getData () {
@@ -1036,8 +1201,9 @@ export default {
1036 1201
 
1037 1202
         arr2 = arr
1038 1203
       }
1039
-      if (this.$store.getters.user.template_info.org_id == 10346 || this.$store.getters.user.template_info.org_id == 10490 ||  this.$store.getters.user.template_info.org_id == 10340) {
1040
-
1204
+      console.log('机构ID', this.$store.getters.user.template_info.org_id)
1205
+      if (this.$store.getters.user.template_info.org_id == 10346 || this.$store.getters.user.template_info.org_id == 10490 ||  this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 10579 || this.$store.getters.user.template_info.org_id == 10587) {
1206
+        console.log('进来23323223233223')
1041 1207
         arr2.map(item => {
1042 1208
           item.scheduals.map(it => {
1043 1209
             it.sort = parseInt(it.device_number.sort)
@@ -1047,6 +1213,9 @@ export default {
1047 1213
           item.scheduals.sort(this.compareOne('sort'))
1048 1214
         })
1049 1215
       }
1216
+      console.log('机构ID', this.$store.getters.user.template_info.org_id)
1217
+      console.log('this.zone_selected', this.zone_selected)
1218
+      console.log('热爱生活', arr2)
1050 1219
       let arr3 = []
1051 1220
       if (this.zone_selected == 0) {
1052 1221
         arr3 = JSON.parse(JSON.stringify(arr2))
@@ -1097,8 +1266,10 @@ export default {
1097 1266
         if (this.$store.getters.user.template_info.org_id == 10346 || this.$store.getters.user.template_info.org_id == 10490 ||  this.$store.getters.user.template_info.org_id == 10340) {
1098 1267
           arr4[0].scheduals.sort(this.compareOne('sort'))
1099 1268
         }
1269
+        console.log("arr4[0]", arr4[0])
1270
+       
1100 1271
         this.allPatient = arr4
1101
-        // console.log('arr4', arr4)
1272
+        console.log('arr4', arr4)
1102 1273
       } else {
1103 1274
         this.allPatient = arr4
1104 1275
       }
@@ -1117,6 +1288,7 @@ export default {
1117 1288
     },
1118 1289
 
1119 1290
     getDataOne (index) {
1291
+      console.log("寄哪里地我哦我我",this.patient_selected)
1120 1292
       this.menuList[1].count = 0
1121 1293
       let patientArr = this.zone_scheduals
1122 1294
 
@@ -1128,6 +1300,10 @@ export default {
1128 1300
       zones = zones.sort(function (a, b) {
1129 1301
         return a.value > b.value
1130 1302
       })
1303
+       console.log("this.zone_scheduals",this.zone_scheduals)
1304
+     
1305
+     
1306
+     
1131 1307
       if (index > 0) {
1132 1308
         var total = 0
1133 1309
         for (let i = 0; i < this.zone_scheduals.length; i++) {
@@ -1152,6 +1328,7 @@ export default {
1152 1328
             }
1153 1329
           }
1154 1330
         }
1331
+        console.log('zones232332233', zones)
1155 1332
         this.zone_options = []
1156 1333
         this.zone_options = zones
1157 1334
       } else {
@@ -1159,6 +1336,7 @@ export default {
1159 1336
         for (let i = 0; i < this.zone_scheduals.length; i++) {
1160 1337
           this.zone_scheduals[i].bedList = []
1161 1338
           for (let j = 0; j < this.zone_scheduals[i].scheduals.length; j++) {
1339
+            console.log('999988wo', this.zone_scheduals[i].scheduals[j].schedule_type, this.zone_scheduals[i].scheduals[j].schedule_type)
1162 1340
             if (this.zone_scheduals[i].scheduals[j].schedule_type == 1 || this.zone_scheduals[i].scheduals[j].schedule_type == 2 || this.zone_scheduals[i].scheduals[j].schedule_type == 3) {
1163 1341
               this.zone_scheduals[i].bedList.push(this.zone_scheduals[i].scheduals[j])
1164 1342
             }
@@ -1177,6 +1355,7 @@ export default {
1177 1355
             }
1178 1356
           }
1179 1357
         }
1358
+        console.log('zones9999999999999999', zones)
1180 1359
         this.zone_options = []
1181 1360
         this.zone_options = zones
1182 1361
       }
@@ -1195,12 +1374,14 @@ export default {
1195 1374
             }
1196 1375
           }
1197 1376
         }
1377
+        console.log("arrwoowowowow",arr)
1198 1378
         arr1 = arr
1199 1379
       }
1200 1380
 
1201 1381
       let arr2 = []
1202 1382
       if (this.patient_selected == 0) {
1203 1383
         arr2 = JSON.parse(JSON.stringify(arr1))
1384
+        console.log("arr2owoowowowowowowowo",arr2)
1204 1385
       } else if (this.patient_selected == 1) {
1205 1386
         let arr = JSON.parse(JSON.stringify(arr1))
1206 1387
         for (let i = 0; i < arr.length; i++) {
@@ -1245,6 +1426,7 @@ export default {
1245 1426
         arr4 = JSON.parse(JSON.stringify(arr3))
1246 1427
       } else {
1247 1428
         let arr = JSON.parse(JSON.stringify(arr3))
1429
+        // console.log('arr',arr)
1248 1430
         for (let i = 0; i < arr.length; i++) {
1249 1431
           for (let j = 0; j < arr[i].scheduals.length; j++) {
1250 1432
             if (this.time_selected != arr[i].scheduals[j].schedule_type) {
@@ -1267,15 +1449,30 @@ export default {
1267 1449
           item.created_time = item.assessment_before_dislysis.created_time
1268 1450
           item.sort = item.device_number.sort
1269 1451
         })
1270
-        if (this.$store.getters.user.template_info.org_id != 10346 && this.$store.getters.user.template_info.org_id != 10490 && this.$store.getters.user.template_info.org_id != 10340) {
1452
+        if (this.$store.getters.user.template_info.org_id != 10346 && this.$store.getters.user.template_info.org_id != 10490 && this.$store.getters.user.template_info.org_id != 10340 && this.$store.getters.user.template_info.org_id != 10579 && this.$store.getters.user.template_info.org_id != 10587) {
1271 1453
           arr4[0].scheduals.sort(this.compare('created_time'))
1272 1454
         }
1273 1455
 
1274
-        if (this.$store.getters.user.template_info.org_id == 10346 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10340) {
1456
+        if (this.$store.getters.user.template_info.org_id == 10346 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10340  || this.$store.getters.user.template_info.org_id == 10579 || this.$store.getters.user.template_info.org_id == 10587) {
1275 1457
           arr4[0].scheduals.sort(this.compareOne('sort'))
1276 1458
         }
1277 1459
         this.allPatient = arr4
1460
+        console.log('arr4', arr4)
1278 1461
       } else {
1462
+        console.log('arr6666666666666666666', arr4)
1463
+        arr4.map((item, index) => {
1464
+          if (index != 0) {
1465
+            arr4[0].scheduals.push(...arr4[index].scheduals)
1466
+            arr4[index].scheduals = []
1467
+          }
1468
+        })
1469
+        arr4[0].scheduals.map(item => {
1470
+          item.sort = item.device_number.sort
1471
+        })
1472
+       
1473
+        if (this.$store.getters.user.template_info.org_id == 10346 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10340  || this.$store.getters.user.template_info.org_id == 10579 || this.$store.getters.user.template_info.org_id == 10587) {
1474
+          arr4[0].scheduals.sort(this.compareOne('sort'))
1475
+        }
1279 1476
         this.allPatient = arr4
1280 1477
       }
1281 1478
 
@@ -1311,11 +1508,13 @@ export default {
1311 1508
         var scheduals = []
1312 1509
         for (let index = 0; index < this.scheduals.length; index++) {
1313 1510
           const schedual = this.scheduals[index]
1314
-          if (schedual.patient.name.indexOf(search_keyword) != -1 || 
1315
-              schedual.patient.dialysis_no.indexOf(search_keyword) != -1 ||
1316
-              schedual.patient.first_letter.indexOf(search_keyword) != -1) {
1317
-            scheduals.push(schedual)
1511
+          console.log("schedual.patient.name",schedual.patient)
1512
+          if(schedual.patient!=null && schedual.patient.name!=undefined){
1513
+            if (schedual.patient.name.indexOf(search_keyword) != -1 || schedual.patient.dialysis_no.indexOf(search_keyword) != -1) {
1514
+              scheduals.push(schedual)
1515
+            }
1318 1516
           }
1517
+        
1319 1518
         }
1320 1519
         this.allPatient = this.processScheduals(scheduals)
1321 1520
       } else {
@@ -1324,6 +1523,7 @@ export default {
1324 1523
     },
1325 1524
 
1326 1525
     getDataTwo () {
1526
+      console.log("patient_selected",this.patient_selected)
1327 1527
       this.menuList[1].count = 0
1328 1528
       let patientArr = this.zone_scheduals
1329 1529
 
@@ -1370,11 +1570,14 @@ export default {
1370 1570
         }
1371 1571
         arr2 = arr
1372 1572
       }
1573
+      console.log('this.zone_selected', this.zone_selected)
1574
+      console.log('arr2', arr2)
1373 1575
       let arr3 = []
1374 1576
       if (this.zone_selected == 0) {
1375 1577
         arr3 = JSON.parse(JSON.stringify(arr2))
1376 1578
       } else {
1377 1579
         let arr = JSON.parse(JSON.stringify(arr2))
1580
+       
1378 1581
         for (let i = 0; i < arr.length; i++) {
1379 1582
           if (this.zone_options[this.zone_selected].zone_name != arr[i].zone_name) {
1380 1583
             // 删除元素后改变i的值
@@ -1389,6 +1592,7 @@ export default {
1389 1592
         arr4 = JSON.parse(JSON.stringify(arr3))
1390 1593
       } else {
1391 1594
         let arr = JSON.parse(JSON.stringify(arr3))
1595
+        // console.log('arr',arr)
1392 1596
         for (let i = 0; i < arr.length; i++) {
1393 1597
           for (let j = 0; j < arr[i].scheduals.length; j++) {
1394 1598
             if (this.time_selected != arr[i].scheduals[j].schedule_type) {
@@ -1420,6 +1624,7 @@ export default {
1420 1624
           arr4[0].scheduals.sort(this.compareOne('sort'))
1421 1625
         }
1422 1626
         this.allPatient = arr4
1627
+        console.log('arr4', arr4)
1423 1628
       } else {
1424 1629
         this.allPatient = arr4
1425 1630
       }
@@ -1450,7 +1655,21 @@ export default {
1450 1655
 .screening {
1451 1656
   border-bottom: 1px #e5e5e5 solid;
1452 1657
   width: 100%;
1658
+  // position: fixed;
1659
+  // top: 86px;
1660
+  // @media only screen and (min-width: 768px) {
1661
+  //   top: 143px;
1662
+  // }
1663
+  // @media only screen and (min-width: 415px) and (max-width: 767px) {
1664
+  //   top: 114px;
1665
+  // }
1666
+  // right: 0;
1667
+  // z-index: 66;
1668
+  // left: 0;
1453 1669
   background: #fff;
1670
+  // @media only screen and (max-width: 812px) {
1671
+  //   top: 50px !important;
1672
+  // }
1454 1673
   ul {
1455 1674
     @include display-flex;
1456 1675
     @include align-items-center;

+ 133 - 6
src/pages/main/beforeDialysis/components/consumables.vue Ver arquivo

@@ -3,8 +3,9 @@
3 3
     <div class="consumableList">
4 4
       <van-list v-if="list.length > 0">
5 5
         <div class="consumableListOne" v-for="(item,index) in list" :key="index">
6
-          <p v-for="subItem,index in item.good_type" :key="index">{{subItem.id == 0? subItem.name:subItem.name+": "}}
7
-            <span style="color:#258ffc">{{ getGoodUserInfo(subItem.id,item.good_user,item.last_good_user, item.good_user_detail,item.last_good_user_detail) }}</span>
6
+          <p v-for="subItem,index in item.good_type" :key="index">
7
+            {{subItem.id == 0? subItem.name:subItem.name+": "}}
8
+            <span style="color:#258ffc">{{ getGoodUserInfo(subItem.id,item.good_user,item.last_good_user, item.good_user_detail,item.last_good_user_detail,item.prescription) }}</span>
8 9
           </p>
9 10
 
10 11
         </div>
@@ -35,7 +36,9 @@
35 36
       }
36 37
     },
37 38
     methods: {
38
-      getGoodUserInfo(good_type_id, good_user, last_good_user, good_user_detail, last_good_user_detail) {
39
+      getGoodUserInfo(good_type_id, good_user, last_good_user, good_user_detail, last_good_user_detail,prescription) {
40
+        console.log("good_type_id",good_type_id)
41
+        
39 42
         if (good_user != null && good_user.length > 0) {
40 43
           let desc = ""
41 44
           for (let b = 0; b < good_user.length; b++) {
@@ -43,9 +46,128 @@
43 46
               desc = desc + " " + good_user[b].info.specification_name + "*" + good_user[b].count
44 47
           }
45 48
           return desc
49
+          // } else if (good_user.length <= 0) {
50
+          //   if (last_good_user != null && last_good_user.length > 0) {
51
+          //     let desc = ""
52
+          //     for (let b = 0; b < last_good_user.length; b++){
53
+          //       if(good_type_id == last_good_user[b].good_type_id)
54
+          //         desc = desc + " " + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
55
+          //     }
56
+          //     return desc
57
+          //
58
+          //   }
59
+          //   return ""
60
+        }else{
61
+          if(good_type_id == 9741){
62
+            return prescription.dialysis_dialyszers
63
+          }
64
+          if(good_type_id == 9742){
65
+            return  prescription.dialysis_irrigation
66
+          }
67
+
68
+          if(good_type_id == 9743){
69
+            return prescription.dialysis_strainer
70
+          }
71
+          if(good_type_id ==9748){
72
+            return prescription.dialysis_dialyszers
73
+          }
74
+          if(good_type_id ==9749){
75
+            return prescription.dialysis_irrigation
76
+          }
77
+          if(good_type_id ==9750){
78
+            return prescription.dialysis_strainer
79
+          }
80
+          
46 81
         }
47
-        return ""
82
+        
48 83
       },
84
+      // GetDialysisGoods() {
85
+      //   var newDate = new Date();
86
+      //   var y = newDate.getFullYear();
87
+      //   var m = newDate.getMonth() + 1;
88
+      //   var d = newDate.getDate();
89
+      //   var schedule_date =
90
+      //     y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
91
+      //   let params = {
92
+      //     schedule_date:schedule_date,
93
+      //     schedule_type:0,
94
+      //     partition_id:0,
95
+      //     page:1,
96
+      //   }
97
+      //   getDialysisGoods(params).then(rs => {
98
+      //     var res = rs.data
99
+      //     if (res.state == 1) {
100
+      //       this.list = []
101
+      //       for(let i = 0; i < res.data.dialysis_goods.length; i++){
102
+      //           let arr =[]
103
+      //           let obj = {
104
+      //             id:0,
105
+      //             name:"姓名:" + res.data.dialysis_goods[i].patient.name
106
+      //           }
107
+      //           arr.push(obj)
108
+      //
109
+      //           for (let a = 0; a <  res.data.good_type.length; a++){
110
+      //             let obj = {
111
+      //               id:res.data.good_type[a].id,
112
+      //               name:res.data.good_type[a].type_name,
113
+      //             }
114
+      //             arr.push(obj)
115
+      //           }
116
+      //         this.list.push(arr)
117
+      //
118
+      //       }
119
+      //
120
+      //       var zoneMap = {}
121
+      //       var schedualMap = {}
122
+      //       for (let index = 0; index < res.data.dialysis_goods.length; index++) {
123
+      //         const schedual = res.data.dialysis_goods[index]
124
+      //         if (schedual.dialysis_order == null) {
125
+      //           continue
126
+      //         }
127
+      //         if (schedualMap[schedual.device_number.zone.name] == null) {
128
+      //           schedualMap[schedual.device_number.zone.name] = []
129
+      //         }
130
+      //         schedualMap[schedual.device_number.zone.name].push(schedual)
131
+      //         if (zoneMap[schedual.device_number.zone.name] == null) {
132
+      //           zoneMap[schedual.device_number.zone.name] =
133
+      //             schedual.device_number.zone
134
+      //         }
135
+      //       }
136
+      //
137
+      //       var zones = []
138
+      //       zones.push({ value: 0, text: '全部分区' })
139
+      //       for (var zoneName in zoneMap) {
140
+      //         zones.push({ value: zoneMap[zoneName].id, text: zoneName })
141
+      //       }
142
+      //
143
+      //       zones = zones.sort(function (a, b) {
144
+      //         return a.value > b.value
145
+      //       })
146
+      //       this.zones = zones
147
+      //       // console.log('this.zones',this.zones)
148
+      //
149
+      //       // eslint-disable-next-line camelcase
150
+      //       var dialysis_scheduals = []
151
+      //       for (let index = 0; index < zones.length; index++) {
152
+      //         const zone = zones[index]
153
+      //         // eslint-disable-next-line no-redeclare
154
+      //         var scheduals = schedualMap[zone.text]
155
+      //         if (scheduals == null) {
156
+      //           continue
157
+      //         }
158
+      //         dialysis_scheduals.push({
159
+      //           zone_name: zone.text,
160
+      //           scheduals: scheduals
161
+      //         })
162
+      //       }
163
+      //
164
+      //
165
+      //
166
+      //     }
167
+      //   })
168
+      //
169
+      //
170
+      // },
49 171
       onLoad() {
50 172
         // 异步更新数据
51 173
         // setTimeout 仅做示例,真实场景中一般为 ajax 请求
@@ -60,11 +182,16 @@
60 182
         }, 1000);
61 183
       },
62 184
       toDetail() {
63
-        this.$router.push("/consumablesDetail");
185
+        if(this.$store.getters.user.template_info.org_id != 10579 && this.$store.getters.user.template_info.org_id != 10587){
186
+          this.$router.push("/consumablesDetail");
187
+        }else{
188
+          this.$router.push("/consumablesDetailOne");
189
+        }
190
+       
64 191
       }
65 192
     },
66 193
     created() {
67
-      //  console.log("元旦",this.list)
194
+       console.log("元旦",this.list)
68 195
      
69 196
     }
70 197
   }

+ 2 - 0
src/pages/main/beforeDialysis/index.vue Ver arquivo

@@ -271,7 +271,9 @@
271 271
                 "last_good_user":res.data.dialysis_goods[i].last_good_user,
272 272
                 "good_user_detail":res.data.dialysis_goods[i].good_user_detail,
273 273
                 "last_good_user_detail":res.data.dialysis_goods[i].last_good_user_detail,
274
+                "prescription":res.data.dialysis_goods[i].prescription
274 275
               }
276
+              console.log("几哪来的哦我饿哦饿哦问哦饿哦",this.list)
275 277
               this.list.push(newObj)
276 278
               // console.log(this.list)
277 279
             }

+ 12 - 1
src/pages/main/dialog/subMenu/LongAdviceSubMenu.vue Ver arquivo

@@ -417,8 +417,19 @@ export default {
417 417
               this.advice_start_time = year + '-' + month + '-' + day + ' ' + '15:00'
418 418
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
419 419
             }
420
+          } else if (this.$store.getters.user.org.id == 10580) {
421
+            if (sch.schedule_type == 1) {
422
+              this.advice_start_time = year + '-' + month + '-' + day + ' ' + '07:00'
423
+              this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
424
+            } else if (sch.schedule_type == 2) {
425
+              this.advice_start_time = year + '-' + month + '-' + day + ' ' + '10:30'
426
+              this.start_time = year + '-' + month + '-' + day + ' ' + '10:30'
427
+            } else if (sch.schedule_type == 3) {
428
+              this.advice_start_time = year + '-' + month + '-' + day + ' ' + '18:00'
429
+              this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
430
+            }
420 431
           } else {
421
-            if (this.$store.getters.user.org.id == 10016 || this.$store.getters.user.org.id == 10013 || this.$store.getters.user.org.id == 10014 || this.$store.getters.user.org.id == 10121) {
432
+            if (this.$store.getters.user.org.id == 10016 || this.$store.getters.user.org.id == 10013 || this.$store.getters.user.org.id == 10014 || this.$store.getters.user.org.id == 10121 || this.$store.getters.user.org.id == 10587) {
422 433
               var nowDate = new Date()
423 434
               var nowYear = nowDate.getFullYear()
424 435
               var nowMonth = nowDate.getMonth() + 1

+ 1 - 0
src/pages/main/dialog/subMenu/dryWeightMenu.vue Ver arquivo

@@ -98,6 +98,7 @@ export default {
98 98
     open() {
99 99
       this.creator = this.$store.getters.user.admin.id;
100 100
       this.dry_weight = this.propsForm.weight;
101
+      this.remark = this.propsForm.remark
101 102
       this.visibility = true;
102 103
     },
103 104
     close() {

+ 39 - 7
src/pages/main/newActionBar/assessmentAfter.vue Ver arquivo

@@ -618,6 +618,7 @@ export default {
618 618
     }
619 619
   },
620 620
   created () {
621
+    console.log("中国",this.record.weight_loss)
621 622
     this.getPermission()
622 623
     let initHour = ''
623 624
     let initMinute = ''
@@ -626,6 +627,7 @@ export default {
626 627
     this.template_id = this.$store.getters.user.template_info.template_id
627 628
     this.leaveOfficeList = getDataConfig('hemodialysis', 'leave_office_method')
628 629
     this.consciousnessList = getDataConfig('hemodialysis', 'consciousness')
630
+    console.log('意识', this.consciousnessList)
629 631
     this.fallriskList = getDataConfig('hemodialysis', 'fallrisk')
630 632
     this.bloodFlowList = getDataConfig('hemodialysis', 'blood_flow')
631 633
     this.lapseList = getDataConfig('hemodialysis', 'lapse')
@@ -644,11 +646,12 @@ export default {
644 646
         this.predialysis['additional_weight'].toString()
645 647
       )
646 648
     }
647
-   
649
+    console.log('h233232233223recoe', this.record)
648 650
     if (this.record != null && this.record.id != '') {
649 651
       this.formValue.actual_ultrafiltration = this.record.actual_ultrafiltration
650 652
       this.formValue.weight_loss = this.record.weight_loss
651 653
     } else {
654
+      console.log('last_record3232323232', this.last_record)
652 655
       if (this.last_record != null && this.last_record.id > 0) {
653 656
         for (var key in this.last_record) {
654 657
           if (key != 'actual_treatment_hour' && key != 'actual_treatment_minute' && key != 'weight_loss' && key != 'weight_after' && key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' && key != 'remark') {
@@ -658,11 +661,13 @@ export default {
658 661
         }
659 662
       }
660 663
     }
664
+    console.log('小时2332322323', this.formValue.actual_treatment_hour)
661 665
     if (typeof this.formValue.actual_treatment_hour === 'undefined') {
662 666
       tempHour = ''
663 667
       initHour = '00'
664 668
     } else {
665 669
       tempHour = this.formValue.actual_treatment_hour + '小时'
670
+      console.log('23323232233', tempHour)
666 671
       if (parseInt(this.formValue.actual_treatment_hour) < 10) {
667 672
         initHour = '0' + this.formValue.actual_treatment_hour
668 673
       } else {
@@ -684,6 +689,7 @@ export default {
684 689
 
685 690
     this.time = initHour + ':' + initMinute
686 691
     this.timeValue = tempHour + tempMinute
692
+    console.log('timeValue33232323232', this.timeValue)
687 693
     var date = this.$route.query && this.$route.query.date
688 694
     date *= 1000
689 695
     var newDate = new Date(date)
@@ -710,11 +716,17 @@ export default {
710 716
       this.formValue.weight_loss = this.record.weight_loss
711 717
     }
712 718
 
719
+    console.log('this.formValue.weight_loss', this.formValue.weight_loss)
720
+    console.log('this.record.weight_loss', this.record.weight_loss)
721
+
713 722
     if (this.record != null && this.record != undefined) {
714 723
       this.formValue.actual_ultrafiltration = this.record.actual_ultrafiltration
715 724
       if(this.$store.getters.user.template_info.org_id==9829){
716 725
         this.formValue.pulse_frequency= 80
717 726
       }
727
+      // if(this.$store.getters.user.template_info.org_id==10580){
728
+      //   this.formValue.actual_ultrafiltration = this.record.weight_loss*1000
729
+      // }
718 730
       if(this.$route.query.patient_id ==18695){
719 731
           this.formValue.actual_displacement = 0
720 732
       }
@@ -726,6 +738,10 @@ export default {
726 738
       if(this.$store.getters.user.template_info.org_id==10138 || this.$store.getters.user.template_info.org_id==10278 ||  this.$store.getters.user.template_info.org_id==0 || this.$store.getters.user.template_info.org_id==3877 || this.$store.getters.user.template_info.org_id==10551 || this.$store.getters.user.template_info.org_id==10558 || this.$store.getters.user.template_info.org_id==10515){
727 739
           this.formValue.additional_weight = this.predialysis.additional_weight
728 740
       }
741
+      if(this.$store.getters.user.template_info.org_id==10551){
742
+         this.formValue.dialysis_intakes = 0
743
+      }
744
+      console.log("干体重",this.formValue.additional_weight)
729 745
     }
730 746
 
731 747
   },
@@ -1428,15 +1444,21 @@ export default {
1428 1444
               newArr.push(arr1[j]);
1429 1445
           }
1430 1446
         }
1447
+        // console.log(newArr,'newArr')
1431 1448
       }
1432 1449
        return newArr;
1433 1450
     },
1434 1451
 
1435 1452
     open_tips(info) {
1436
-
1453
+      // console.log(info, "oo");
1437 1454
       for (let i = 0; i < info.length; i++) {
1438 1455
         if (info[i].is_write == 1) {
1439
-
1456
+          // Dialog.alert({
1457
+          //   title: "必填提示",
1458
+          //   message: `${info[i].filed_name_cn}为必填字段,不能为空`,
1459
+          // }).then(() => {
1460
+          //   // on close
1461
+          // });
1440 1462
           Toast.fail(`${info[i].filed_name_cn}为必填字段,不能为空`)
1441 1463
         }
1442 1464
       }
@@ -1462,6 +1484,7 @@ export default {
1462 1484
         this.formValue.actual_treatment_hour == ''&&
1463 1485
         this.formValue.actual_treatment_minute == '')
1464 1486
         {
1487
+          console.log('实际治疗时长',this.formValue.actual_treatment_hour);
1465 1488
         Toast.fail(`实际治疗时长为必填字段,不能为空`)
1466 1489
       } else if (this.isCommit == true) {
1467 1490
 
@@ -1475,8 +1498,12 @@ export default {
1475 1498
             ParamsQuery['mode'] = '3'
1476 1499
           }
1477 1500
         }
1501
+        console.log('pramsquery', ParamsQuery)
1502
+
1503
+        console.log("params----------",ParamsQuery)
1478 1504
         let newParams = ParamsQuery;
1479 1505
         // 必填弹窗开始
1506
+        console.log(newParams, "提交的参数");
1480 1507
         if(newParams.dialysis_process != 2){
1481 1508
             delete newParams.in_advance_minute
1482 1509
             delete newParams.in_advance_reason
@@ -1500,9 +1527,11 @@ export default {
1500 1527
               result.unshift(el)
1501 1528
             }
1502 1529
           });
1503
-  
1530
+          console.log(result, "提交的参数当中过滤出为空的");
1531
+          console.log(this.getArrEqual(filedList, result));
1504 1532
           let warnarr = [];
1505 1533
           warnarr = this.getArrEqual(filedList, result);
1534
+          console.log("warenarr23323232",warnarr)
1506 1535
           if (warnarr.length > 0) {
1507 1536
             this.open_tips(warnarr);
1508 1537
             // 必填弹窗结束
@@ -1516,10 +1545,11 @@ export default {
1516 1545
             if(ParamsQuery.breathing_rate!=undefined){
1517 1546
               ParamsQuery.breathing_rate = ParamsQuery.breathing_rate.toString()
1518 1547
             }
1519
-
1548
+            console.log("param2332233232",ParamsQuery)
1520 1549
             commitAssessmentAfterDislysis(ParamsQuery).then(response => {
1521
-
1550
+              console.log("hhhh2h2h2h",response.data.state)
1522 1551
             if (response.data.state == 0) {
1552
+              console.log("o2o3o32o2323oo32")
1523 1553
               Toast.fail(response.data.msg)
1524 1554
               this.isCommit = true
1525 1555
               if(response.data.code == 600000008){
@@ -1720,7 +1750,8 @@ export default {
1720 1750
           }
1721 1751
         })
1722 1752
         .then(res => {
1723
-
1753
+          console.log(res)
1754
+          console.log('透后', this.predialysis)
1724 1755
           if (res.data.state == 0) {
1725 1756
             this.hasPermission = false
1726 1757
           } else if (res.data.state == 1) {
@@ -1820,6 +1851,7 @@ export default {
1820 1851
 
1821 1852
         // this.formValue.weight_loss = (this.predialysis.weight_before - this.predialysis.additional_weight) - (this.formValue.weight_after - this.formValue.additional_weight)
1822 1853
         this.formValue.weight_loss = ((this.predialysis.weight_before - this.predialysis.additional_weight) - (this.formValue.weight_after - this.formValue.additional_weight)).toFixed(1)
1854
+        console.log('sssss', this.formValue.weight_loss)
1823 1855
         if (this.formValue.weight_loss < 0) {
1824 1856
           this.formValue.weight_loss = ''
1825 1857
         }

+ 25 - 10
src/pages/main/newActionBar/assessmentBefore.vue Ver arquivo

@@ -602,7 +602,8 @@ data () {
602 602
     thromubusShow: false,
603 603
     propDryForm: {
604 604
       weight: 0,
605
-      doctor: []
605
+      doctor: [],
606
+      remark:""
606 607
     },
607 608
     dry_visibility: false,
608 609
 
@@ -660,7 +661,7 @@ created () {
660 661
   this.edema_arr = getDataConfig('hemodialysis', 'edema')
661 662
   this.catheter_maintenance_arr = getDataConfig('hemodialysis', 'catheter_maintenance')
662 663
   this.suctionList = getDataConfig('hemodialysis', 'suction')
663
-  // console.log('2323322323', this.suctionList)
664
+  console.log('戈纳提中', this.dry_weight)
664 665
   this.catheter_evaluation_program_list = getDataConfig('hemodialysis','catheter_evaluation_program')
665 666
   this.skin_site_catheterization_list = getDataConfig('hemodialysis','skin_site_catheterization')
666 667
   this.teach = getDataConfig('befor_symptoms', 'befor_symptoms')
@@ -692,9 +693,11 @@ created () {
692 693
         )
693 694
       }
694 695
     }
696
+    console.log("dryWeight",this.dry_weight)
695 697
     if (this.dry_weight != undefined) {
696 698
       this.formValue.dry_weight = this.dry_weight.dry_weight
697 699
       this.propDryForm.weight = this.dry_weight.dry_weight.toString()
700
+      this.propDryForm.remark = this.dry_weight.remakes
698 701
     }
699 702
   }
700 703
 
@@ -717,14 +720,17 @@ created () {
717 720
       this.$set(this.formValue, 'dry_weight', this.dry_weight.dry_weight.toString())
718 721
     }
719 722
     this.propDryForm.weight = this.dry_weight.dry_weight.toString()
723
+    this.propDryForm.remark = this.dry_weight.remakes
720 724
   } else {
721 725
     if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
726
+      console.log('几拿了23232332')
722 727
       this.$set(
723 728
         this.formValue,
724 729
         'dry_weight',
725 730
         this.last_predialysis['dry_weight'].toString()
726 731
       )
727 732
       this.propDryForm.weight = this.formValue.dry_weight
733
+     
728 734
     }
729 735
   }
730 736
   this.hemorrhage_state = this.formValue.is_hemorrhage == 0
@@ -747,12 +753,12 @@ created () {
747 753
     this.formValue.blood_access_part_id = this.lastAssessment.blood_access_part_id
748 754
 
749 755
   }
750
-
756
+  console.log('998823323232323232', this.predialysis.id)
751 757
   if(this.predialysis!=null && this.predialysis.id ==undefined && this.last_predialysis.id > 0){
752
-
758
+    console.log("上次我哦我我", this.last_predialysis.venous_catheterization)
753 759
     this.formValue.venous_catheterization = this.last_predialysis.venous_catheterization
754 760
   }
755
-  // console.log('last_predialysis2332323232', this.last_predialysis)
761
+  console.log('last_predialysis2332323232', this.last_predialysis)
756 762
   if (this.predialysis.id == 0 && this.last_predialysis.id != 0) {
757 763
     let vascular_access_desc = getDataConfig(
758 764
       'hemodialysis',
@@ -800,6 +806,7 @@ methods: {
800 806
     }
801 807
   },
802 808
   newClick (event) {
809
+    console.log(event)
803 810
     // event.currentTarget.select()
804 811
   },
805 812
   isShow (name) {
@@ -833,6 +840,7 @@ methods: {
833 840
   },
834 841
   commitInfo: function () {
835 842
   if(this.isWrite('透前称重') ==true   && (this.formValue.weight_before =='' || this.formValue.weight_before ==undefined ||  this.formValue.weight_before == '0')){
843
+      console.log('12345678899',this.formValue.weight_before);
836 844
       Toast.fail(`透前称重为必填字段,不能为空`)
837 845
     }else if (this.isCommit == true) {
838 846
      // this.isCommit = false
@@ -885,7 +893,7 @@ methods: {
885 893
      if(this.formValue.breathing_rate!=undefined){
886 894
         this.formValue.breathing_rate = this.formValue.breathing_rate.toString()
887 895
      }
888
-  
896
+     console.log('hhhahhah', this.formValue)
889 897
      if (this.formValue.thromubus_type === 2) {
890 898
        this.formValue.thromubus_a = ''
891 899
        this.formValue.thromubus_v = ''
@@ -898,6 +906,7 @@ methods: {
898 906
      // 必填弹窗开始
899 907
        let ParamsQuery = this.formValue;
900 908
 
909
+       console.log(ParamsQuery, "提交的参数");
901 910
 
902 911
        if(ParamsQuery.is_hemorrhage!=1){
903 912
          delete ParamsQuery.hemorrhage
@@ -923,6 +932,8 @@ methods: {
923 932
             result.unshift(el)
924 933
           }
925 934
        });
935
+       console.log(result, "提交的参数当中过滤出为空的");
936
+       console.log(this.getArrEqual(filedList, result));
926 937
        let warnarr = [];
927 938
        warnarr = this.getArrEqual(filedList, result);
928 939
 
@@ -974,12 +985,13 @@ methods: {
974 985
   },
975 986
 
976 987
   getArrEqual(arr1, arr2) {
977
-
988
+    // console.log(arr1, arr2, "arr1, arr2");
978 989
     let newArr = [];
979 990
     for (let i = 0; i < arr2.length; i++) {
980 991
       for (let j = 0; j < arr1.length; j++) {
981 992
         if (arr1[j].module == 3 && arr1[j].is_show == 1 &&arr1[j].filed_name == arr2[i][0]&&arr1[j].is_write == 1) {
982
-
993
+          // console.log(arr1[j],'数据字段')
994
+          // console.log(arr2[i][0], "这是啥呀");
983 995
           newArr.push(arr1[j]);
984 996
         }
985 997
         if(arr1[j].module == 3 &&
@@ -988,7 +1000,7 @@ methods: {
988 1000
           arr1[j].filed_name == arr2[i][0] &&
989 1001
           arr1[j].filed_name == 'hemorrhage_other' && this.formValue.is_hemorrhage == 1)
990 1002
           {
991
-      
1003
+            console.log('1234567889999',this.formValue.hemorrhage_other);
992 1004
             newArr.push(arr1[j]);
993 1005
         }
994 1006
         if(arr1[j].module == 3 &&
@@ -997,16 +1009,18 @@ methods: {
997 1009
           arr1[j].filed_name == arr2[i][0] &&
998 1010
           arr1[j].filed_name == 'hemorrhage' && this.formValue.is_hemorrhage == 1)
999 1011
           {
1012
+            console.log('qwertyuiop',this.formValue.hemorrhage_other);
1000 1013
             newArr.push(arr1[j]);
1001 1014
         }
1002 1015
       }
1003 1016
 
1004 1017
     }
1005
-
1018
+    console.log(newArr,'newArr')
1006 1019
     return newArr;
1007 1020
   },
1008 1021
 
1009 1022
   open_tips(info) {
1023
+    console.log(info, "oo");
1010 1024
     for (let i = 0; i < info.length; i++) {
1011 1025
       if (info[i].is_write == 1) {
1012 1026
         Toast.fail(`${info[i].filed_name_cn}为必填字段,不能为空`)
@@ -1775,6 +1789,7 @@ methods: {
1775 1789
         ) {
1776 1790
           if (this.formValue.pinholing.length > 0) {
1777 1791
             this.propForm.result = this.formValue.pinholing.split(',')
1792
+            // console.log("箴言------",this.propForm.result)
1778 1793
           } else {
1779 1794
             this.propForm.result = []
1780 1795
           }

+ 20 - 1
src/pages/main/newActionBar/components/adviceTemplate.vue Ver arquivo

@@ -117,7 +117,7 @@ export default {
117 117
       } else {
118 118
         this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
119 119
       }
120
-    } else if (this.$store.getters.user.org.id == 9671 || this.$store.getters.user.org.id == 9675 || this.$store.getters.user.org.id == 10340) {
120
+    } else if (this.$store.getters.user.org.id == 9671 || this.$store.getters.user.org.id == 9675 || this.$store.getters.user.org.id == 10340 ) {
121 121
       var date = new Date()
122 122
       var year = date.getFullYear() // 获取完整的年份(4位)
123 123
       var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1).toString() : date.getMonth() + 1 // 获取当前月份(0-11,0代表1月)
@@ -151,6 +151,23 @@ export default {
151 151
         this.start_time = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
152 152
       }
153 153
       
154
+    }else if (this.$store.getters.user.org.id == 10580) {
155
+      var date = new Date()
156
+      var year = date.getFullYear() // 获取完整的年份(4位)
157
+      var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1).toString() : date.getMonth() + 1 // 获取当前月份(0-11,0代表1月)
158
+      var day = date.getDate() < 10 ? '0' + date.getDate().toString() : date.getDate() // 获取当前日(1-31)
159
+
160
+      if (this.schedulePatient.schedule_type == 1) {
161
+        this.start_time_str = year + '-' + month + '-' + day + ' ' + '07:00' + ':00'
162
+        this.start_time = year + '-' + month + '-' + day + ' ' + '07:00' + ':00'
163
+      } else if (this.schedulePatient.schedule_type == 2) {
164
+        this.start_time_str = year + '-' + month + '-' + day + ' ' + '10:30' + ':00'
165
+        this.start_time = year + '-' + month + '-' + day + ' ' + '10:30' + ':00'
166
+      } else if (this.schedulePatient.schedule_type == 3) {
167
+        this.start_time_str = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
168
+        this.start_time = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
169
+      }
170
+      
154 171
     }else if (this.$store.getters.user.org.id == 10234) {
155 172
       var date = new Date()
156 173
       var year = date.getFullYear() // 获取完整的年份(4位)
@@ -168,6 +185,8 @@ export default {
168 185
         this.start_time = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
169 186
       }
170 187
       
188
+    }else if (this.$store.getters.user.org.id == 10587) {
189
+      this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
171 190
     } else {
172 191
       this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
173 192
     }

+ 60 - 5
src/pages/main/newActionBar/components/newAddOrder.vue Ver arquivo

@@ -140,6 +140,8 @@
140 140
                 </div>
141 141
             </van-popup>
142 142
         </div>
143
+
144
+
143 145
        <van-popup
144 146
         v-model="infor_visibility"
145 147
         class="advicePopup"
@@ -274,7 +276,8 @@ export default {
274 276
     }
275 277
   },
276 278
   mounted () {
277
-
279
+    console.log('drug_spec_unit_options', this.execution_frequency_options)
280
+    // console.log('中国实际233322332323232', this.schedulePatient)
278 281
     var patient_id = this.$route.query.patient_id
279 282
     this.patient_id = patient_id
280 283
     this.record_date_str = parseTime(new Date(), '{y}-{m}-{d}')
@@ -285,7 +288,7 @@ export default {
285 288
       } else {
286 289
         this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
287 290
       }
288
-    } else if (this.$store.getters.user.org.id == 9671 || this.$store.getters.user.org.id == 9675 || this.$store.getters.user.org.id == 10340 || this.$store.getters.user.org.id == 10447 ) {
291
+    } else if (this.$store.getters.user.org.id == 9671 || this.$store.getters.user.org.id == 9675 || this.$store.getters.user.org.id == 10340 || this.$store.getters.user.org.id == 10447) {
289 292
       var date = new Date()
290 293
       var year = date.getFullYear() // 获取完整的年份(4位)
291 294
       var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1).toString() : date.getMonth() + 1 // 获取当前月份(0-11,0代表1月)
@@ -317,6 +320,22 @@ export default {
317 320
         this.start_time_str = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
318 321
         this.start_time = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
319 322
       }
323
+    }else if (this.$store.getters.user.org.id == 10580) {
324
+      var date = new Date()
325
+      var year = date.getFullYear() // 获取完整的年份(4位)
326
+      var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1).toString() : date.getMonth() + 1 // 获取当前月份(0-11,0代表1月)
327
+      var day = date.getDate() < 10 ? '0' + date.getDate().toString() : date.getDate() // 获取当前日(1-31)
328
+
329
+      if (this.schedulePatient.schedule_type == 1) {
330
+        this.start_time_str = year + '-' + month + '-' + day + ' ' + '07:00' + ':00'
331
+        this.start_time = year + '-' + month + '-' + day + ' ' + '07:00' + ':00'
332
+      } else if (this.schedulePatient.schedule_type == 2) {
333
+        this.start_time_str = year + '-' + month + '-' + day + ' ' + '10:30' + ':00'
334
+        this.start_time = year + '-' + month + '-' + day + ' ' + '10:30' + ':00'
335
+      } else if (this.schedulePatient.schedule_type == 3) {
336
+        this.start_time_str = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
337
+        this.start_time = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
338
+      }
320 339
     }else if (this.$store.getters.user.org.id == 10234) {
321 340
       var date = new Date()
322 341
       var year = date.getFullYear() // 获取完整的年份(4位)
@@ -333,6 +352,8 @@ export default {
333 352
         this.start_time_str = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
334 353
         this.start_time = year + '-' + month + '-' + day + ' ' + '15:30' + ':00'
335 354
       }
355
+    }else if (this.$store.getters.user.org.id == 10587){
356
+      this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
336 357
     } else {
337 358
       this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
338 359
     }
@@ -368,24 +389,48 @@ export default {
368 389
       this.start_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}') + ':00'
369 390
     },
370 391
     querySearch (queryString, cb) {
392
+      console.log('hhhhhhhh232323', this.all_drug)
393
+      console.log('queryString', queryString)
371 394
       var restaurants = this.all_drug
372 395
       restaurants.map(item => {
373 396
         item.value = item.drug_name
374 397
       })
375 398
       var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants
376 399
       // 调用 callback 返回建议列表的数据
400
+      console.log('results', results)
377 401
       cb(results)
378 402
     },
379 403
     createFilter (queryString) {
404
+     
380 405
       return (restaurant) => {
381
-        return (restaurant.drug_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
406
+        console.log("restaurant23223232323",restaurant)
407
+        return (restaurant.drug_name.toLowerCase().indexOf(queryString.toLowerCase()) !=-1)
382 408
       }
383 409
     },
410
+    getUnits(id){
411
+     console.log("drug_spec_unit_options",this.drug_spec_unit_options)
412
+     var name = ""
413
+      for(let i=0;i<this.drug_spec_unit_options.length;i++){
414
+        if(id == this.drug_spec_unit_options[i].id){
415
+           name = this.drug_spec_unit_options[i].name
416
+        }
417
+      }
418
+      return name
419
+    },
384 420
     handleSelect (item) {
385 421
       this.drug_id = item.id
386 422
       this.way = 1
423
+      console.log('itme33333333', item)
387 424
       this.current_drug_name = name
388
-      this.order.advice_desc = ''
425
+      var specai_name = item.drug_specs[0].dose + item.drug_specs[0].dose_unit +"*" +item.drug_specs[0].min_number + item.drug_specs[0].min_unit +"/" + item.drug_specs[0].max_unit
426
+      this.order.advice_desc = specai_name
427
+      this.order.drug_spec_unit = item.drug_specs[0].min_unit
428
+      this.order.prescribing_number = item.drug_specs[0].prescribing_number
429
+      this.order.prescribing_number_unit = item.drug_specs[0].prescribing_number_unit
430
+      this.order.single_dose = item.drug_specs[0].single_dose
431
+      this.order.single_dose_unit =this.getUnits(item.drug_specs[0].drug_dose_unit) 
432
+      this.order.delivery_way  = item.drug_specs[0].delivery_way
433
+      this.order.execution_frequency = item.drug_specs[0].execution_frequency
389 434
       this.drugSpec = []
390 435
       for (let i = 0; i < this.all_drug.length; i++) {
391 436
         if (this.all_drug[i].drug_name == item.drug_name) {
@@ -404,11 +449,13 @@ export default {
404 449
     },
405 450
     querySearch1 (queryString, cb) {
406 451
       var restaurants = this.drugSpec
452
+      console.log(restaurants)
407 453
       restaurants.map(item => {
408 454
         item.value = item.drug_spec
409 455
       })
410 456
       var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants
411 457
       // 调用 callback 返回建议列表的数据
458
+      console.log('results', results)
412 459
       cb(results)
413 460
     },
414 461
     createFilter1 (queryString) {
@@ -417,6 +464,7 @@ export default {
417 464
       }
418 465
     },
419 466
     handleSelect1 (item) {
467
+      console.log("itemwowoowowoow",item)
420 468
       for (let i = 0; i < this.drugSpec.length; i++) {
421 469
         if (this.drugSpec[i].drug_spec == item.drug_spec) {
422 470
           this.order.advice_desc = this.drugSpec[i].drug_spec
@@ -458,10 +506,13 @@ export default {
458 506
       this.drug_spec_unit_show = true
459 507
     },
460 508
     comfirmAction: function () {
509
+      console.log('2323232', this.drug_id)
510
+      console.log('3544555', this.way)
461 511
       if (this.way == 1) {
462 512
         this.drug_name_id = this.drug_id
463 513
       }
464 514
       if (this.way == 2) { // 自备药
515
+        // console.log('1111222222')
465 516
         var arr = this.order.title.split('(自备药)')
466 517
         this.order.title = arr[0]
467 518
       }
@@ -472,7 +523,8 @@ export default {
472 523
             arr = this.all_drug[i].drug_specs
473 524
           }
474 525
         }
475
-
526
+        console.log('arr', arr)
527
+        console.log('orrrrr', this.order.advice_desc)
476 528
         if (arr.length > 0) {
477 529
           for (let i = 0; i < arr.length; i++) {
478 530
             if (arr[i].drug_spec == this.order.advice_desc) {
@@ -500,6 +552,7 @@ export default {
500 552
         id: 0,
501 553
         subdrugs: []
502 554
       })
555
+      console.log('advice:', this.advices)
503 556
 
504 557
       var data = {}
505 558
       data.advice_type = 2
@@ -544,10 +597,12 @@ export default {
544 597
       }
545 598
 
546 599
       data.adviceNames = adviceJSONs
600
+      console.log('232323232woowowwo', adviceJSONs)
547 601
 
548 602
       this.loading = true
549 603
       let mode = '1'
550 604
       var is_child = 1
605
+      console.log('data233223232332我', data)
551 606
 
552 607
       batchCreateAdvices(this.patient_id, this.group_no, data, mode, is_child)
553 608
         .then(rs => {

+ 71 - 8
src/pages/main/newActionBar/consumables.vue Ver arquivo

@@ -80,6 +80,10 @@ export default {
80 80
       settle_open: 0
81 81
     }
82 82
   },
83
+  created(){
84
+    console.log("is_openwowowowowow",this.is_open)
85
+
86
+  },
83 87
   methods: {
84 88
     stockOut () {
85 89
       this.loading = true
@@ -96,6 +100,10 @@ export default {
96 100
           let data = {
97 101
             goods: this.list
98 102
           }
103
+          console.log('data------------------', data)
104
+
105
+          console.log("data------------------",data)
106
+
99 107
           // 处方修改数量触发接口
100 108
           PostOtherGoodStockOut(this.patient_id, parseTime(this.schedule_date, '{y}-{m}-{d}'), data).then(rs => {
101 109
             var res = rs.data
@@ -120,6 +128,7 @@ export default {
120 128
           }
121 129
           )
122 130
         } else {
131
+          console.log('进来22222222222222222222222')
123 132
           PostGoodStockOut(this.patient_id, parseTime(this.schedule_date, '{y}-{m}-{d}')).then(rs => {
124 133
             var res = rs.data
125 134
             if (res.state == 1) {
@@ -192,6 +201,7 @@ export default {
192 201
               this.isEditBefore = 2
193 202
             }
194 203
           }
204
+          //good_user auto    last_good_user (上次透析)  good_user_detail(准备表) last_good_user_detail(上次透析)
195 205
           for (let i = 0; i < res.data.dialysis_goods.length; i++) {
196 206
             if (res.data.dialysis_goods[i].good_user.length > 0) {
197 207
               for (let b = 0; b < res.data.dialysis_goods[i].good_user.length; b++) {
@@ -232,6 +242,7 @@ export default {
232 242
                   for (let b = 0; b < res.data.dialysis_goods[i].project.length; b++) {
233 243
                     if (res.data.dialysis_goods[i].project[b].good_info.type.out_stock == 1) {
234 244
                       if (res.data.dialysis_goods[i].project[b].good_info.id > 0) {
245
+                        console.log("金我我我我嚄1111")
235 246
                         var newArr = []
236 247
                         let obj = {
237 248
                           good_type_id: res.data.dialysis_goods[i].project[b].good_info.good_type_id,
@@ -245,6 +256,7 @@ export default {
245 256
                           good_type_id:res.data.dialysis_goods[i].project[b].good_info.good_type_id,
246 257
                         }
247 258
                         this.list.push(obj)
259
+                        console.log('list', this.list)
248 260
                       }
249 261
                     }
250 262
                   }
@@ -278,7 +290,7 @@ export default {
278 290
           }
279 291
 
280 292
           var arr = this.list
281
-
293
+          console.log("arrwowoowowowowow",arr)
282 294
           if (arr.length > 0) {
283 295
             for (let i = 0; i < arr.length; i++) {
284 296
               arr[i].child = []
@@ -293,6 +305,7 @@ export default {
293 305
 
294 306
           // 已经出库数据
295 307
           var warehouseOutList = res.data.warehouseOutList
308
+          console.log('warehouseOutList', warehouseOutList)
296 309
 
297 310
           for (let i = 0; i < arr.length; i++) {
298 311
             if (arr[i].child != undefined && arr[i].child.length > 0) {
@@ -338,7 +351,7 @@ export default {
338 351
           var dialyszerArr = []
339 352
           var irrigationArr = []
340 353
           var dialysisStrainerArr = []
341
-          if (this.$store.getters.user.template_info.org_id != 10318 && this.$store.getters.user.template_info.org_id != 10402 && this.$store.getters.user.template_info.org_id != 10485 && this.$store.getters.user.template_info.org_id != 10489) {
354
+          if (this.$store.getters.user.template_info.org_id != 10318 && this.$store.getters.user.template_info.org_id != 10402 && this.$store.getters.user.template_info.org_id != 10485 && this.$store.getters.user.template_info.org_id != 10489 && this.$store.getters.user.template_info.org_id != 10215 && this.$store.getters.user.template_info.org_id != 10485 && this.$store.getters.user.template_info.org_id != 10265 && this.$store.getters.user.template_info.org_id != 10515 && this.$store.getters.user.template_info.org_id != 10278 && this.$store.getters.user.template_info.org_id != 10480) {
342 355
             if (prescription != null && res.data.dialysis_goods[0].good_user_detail.length == 0) {
343 356
               var dialysisDialyszers = prescription.dialysis_dialyszers
344 357
               var arr = dialysisDialyszers.split(',')
@@ -474,7 +487,7 @@ export default {
474 487
 
475 488
                // 已经出库数据
476 489
           var warehouseOutList = res.data.warehouseOutList
477
-
490
+          console.log('warehouseOutList', warehouseOutList)
478 491
 
479 492
           for (let i = 0; i < arr.length; i++) {
480 493
             if (arr[i].child != undefined && arr[i].child.length > 0) {
@@ -513,6 +526,7 @@ export default {
513 526
             }
514 527
           }
515 528
 
529
+        
516 530
           // 判断是否出库
517 531
           if(newArr!=null && newArr.length >0){
518 532
              var total_one = 0
@@ -532,13 +546,16 @@ export default {
532 546
 
533 547
           this.list = newArr
534 548
 
549
+          console.log("listowowowoowowowowowowowowo",this.list)
535 550
 
536 551
           if (outConfig.is_open == 1) {
537
-            this.list = []
552
+            this.isShowButton =1
553
+            this.is_open =1
554
+            //this.list = []
538 555
           }
539 556
 
540 557
           if (settleConfig.is_open == 1) {
541
-            this.list = []
558
+             this.list = []
542 559
           }
543 560
         }
544 561
       }
@@ -554,7 +571,8 @@ export default {
554 571
     },
555 572
 
556 573
     updateAutoReduceDetail (count, good_id) {
557
-  
574
+      console.log("arrrrr------",count,good_id)
575
+      console.log("record_adate",this.list)
558 576
      if(this.list!=null && this.list.length >0){
559 577
         for(let i=0;i<this.list.length;i++){
560 578
           if(good_id == this.list[i].good_id){
@@ -562,7 +580,9 @@ export default {
562 580
           }
563 581
         }
564 582
      }
565
-
583
+     console.log("this-------",this.list)
584
+     console.log("goods------------",this.new_dialysis_goods)
585
+     console.log(" this.schedule_date",this.schedule_date)
566 586
      var record_time = ""
567 587
      if(this.new_dialysis_goods!=null && this.new_dialysis_goods.length >0){
568 588
         if(this.new_dialysis_goods[0].last_good_user!=null){
@@ -600,7 +620,42 @@ export default {
600 620
         record_time: record_time,
601 621
         patient_id: this.patient_id ? this.patient_id : this.$route.query.patient_id
602 622
       }
603
-
623
+      console.log('Data0-----', data)
624
+      // if (count == 0) {
625
+      //   Dialog.confirm({
626
+      //     title: '删除',
627
+      //     message: '是否删除该条耗材'
628
+      //   }).then(() => {
629
+      //     deteleAutoReduceDetail(data).then((res) => {
630
+      //       if (res.data.state == 1) {
631
+      //         this.list.map((item, index) => {
632
+      //           if (item.good_id == good_id) {
633
+      //             this.list.splice(index, 1)
634
+      //           }
635
+      //         })
636
+      //         Toast.success('删除成功')
637
+      //       }
638
+      //     })
639
+      //   }).catch(() => {
640
+      // if (count == 0) {
641
+      //   Dialog.confirm({
642
+      //     title: '删除',
643
+      //     message: '是否删除该条耗材'
644
+      //   }).then(() => {
645
+      //     deteleAutoReduceDetail(data).then((res) => {
646
+      //       if (res.data.state == 1) {
647
+      //         this.list.map((item, index) => {
648
+      //           if (item.good_id == good_id) {
649
+      //             this.list.splice(index, 1)
650
+      //           }
651
+      //         })
652
+      //         Toast.success('删除成功')
653
+      //       }
654
+      //     })
655
+      //   }).catch(() => {
656
+
657
+      //   })
658
+      // }
604 659
 
605 660
         updateStockGoods(data).then(response => {
606 661
             if (response.data.state == 1) {
@@ -609,6 +664,14 @@ export default {
609 664
             }
610 665
           })
611 666
 
667
+        // updateStockGoods(data).then((res) => {
668
+        //   updateStockGoods(data).then(response => {
669
+        //     if (response.data.state == 1) {
670
+        //       var msg = response.data.data.msg
671
+        //       // Toast.success('更新成功')
672
+        //     }
673
+        //   })
674
+        // })
612 675
         updateStockGoods(data).then(response => {
613 676
           if (response.data.state == 1) {
614 677
             var msg = response.data.data.msg

+ 224 - 91
src/pages/main/newActionBar/dialysisPrescription.vue Ver arquivo

@@ -86,15 +86,19 @@
86 86
               predialysis.dry_weight ? predialysis.dry_weight : "--"
87 87
             }}Kg</span
88 88
           >
89
-          <span
90
-            >衣物重:{{
89
+          <span v-if="$store.getters.user.template_info.org_id !=10599">衣物重:{{
91 90
               predialysis.additional_weight
92 91
                 ? predialysis.additional_weight
93 92
                 : "--"
94
-            }}Kg</span><br>
95
-          <span v-if="last_record!=undefined">上次透后体重:{{last_record.weight_after?last_record.weight_after: "--"}}Kg</span><br>
96
-
97
-          <span v-if="$store.getters.user.template_info.org_id == 10551 &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined && dialysisPrescription.target_ultrafiltration>0">超滤量占体重百分比:{{ ((predialysis.weight_before/(dialysisPrescription.target_ultrafiltration*1000))*100).toFixed(2)  }}%</span>
93
+            }}Kg</span></br>
94
+          <span v-if="last_record!=undefined && $store.getters.user.template_info.org_id !=10599">上次透后体重:{{last_record.weight_after?last_record.weight_after: "--"}}Kg</span></br>
95
+
96
+          <span v-if="$store.getters.user.template_info.org_id == 10551 &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined && dialysisPrescription.target_ultrafiltration>0">目标脱水量百分比:{{ (((dialysisPrescription.target_ultrafiltration)/predialysis.dry_weight)*100).toFixed(2)  }}%</span>
97
+          <span v-if="$store.getters.user.template_info.org_id == 10249 &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined && dialysisPrescription.target_ultrafiltration>0">目标脱水量百分比:{{ (((dialysisPrescription.target_ultrafiltration/1000)/predialysis.dry_weight)*100).toFixed(2)  }}%</span>
98
+          <span v-if="$store.getters.user.template_info.org_id == 10449 &&predialysis!=undefined&&predialysis.weight_before>0 &&dialysisPrescription!=undefined">4小时超滤量上限(5%):{{ (predialysis.dry_weight*0.05).toFixed(2)  }}kg</span>
99
+          <span v-if="$store.getters.user.template_info.org_id ==10599 &&predialysis!=undefined">心率:{{predialysis.pulse_frequency  }}次/分</span>&nbsp;
100
+          <span v-if="$store.getters.user.template_info.org_id ==10599 &&predialysis!=undefined">体温:{{predialysis.temperature  }}℃</span>&nbsp;
101
+          <span v-if="$store.getters.user.template_info.org_id ==10599 &&predialysis!=undefined">血压:{{predialysis.systolic_blood_pressure  }}/{{ predialysis.diastolic_blood_pressure  }}mmHg</span>
98 102
         </van-cell>
99 103
         <van-field
100 104
           v-model="dialysisPrescription.target_ultrafiltration"
@@ -140,7 +144,7 @@
140 144
                 $store.getters.user.template_info.org_id!=9829 &&
141 145
                 $store.getters.user.template_info.org_id!=10440 &&
142 146
                 $store.getters.user.template_info.org_id!=10469 &&
143
-                $store.getters.user.template_info.org_id!=10460 
147
+                $store.getters.user.template_info.org_id!=10460
144 148
               "
145 149
               >目标超滤量(L)</span
146 150
             >
@@ -187,9 +191,11 @@
187 191
         </van-field>
188 192
         <van-field v-model="dialysisPrescription.prescription_water" @focus="inputFocus" v-if="isShow('处方脱水量')" type="number" input-align="right">
189 193
             <template #label>
190
-                <span>处方脱水量(ml)</span>
194
+                <span v-if=" $store.getters.user.template_info.org_id!=10597">处方脱水量(ml)</span>
195
+                <span  v-if=" $store.getters.user.template_info.org_id==10597">处方脱水量(L)</span>
191 196
             </template>
192 197
          </van-field>
198
+         
193 199
         <van-collapse-item
194 200
           v-if="isShow('是否单超脱水')"
195 201
           title="是否单超脱水"
@@ -381,17 +387,17 @@
381 387
                     dialysisPrescription.anticoagulant != 1 &&
382 388
                     dialysisPrescription.anticoagulant != 12 && isShow_title('首剂')"
383 389
         >
384
-           <template #label v-if="$store.getters.user.template_info.org_id != 10101 && $store.getters.user.template_info.org_id != 10346  && $store.getters.user.template_info.template_id != 45 && $store.getters.user.template_info.template_id != 54  && $store.getters.user.template_info.org_id != 10340  && $store.getters.user.template_info.org_id != 10432 && $store.getters.user.template_info.org_id != 10441  && $store.getters.user.template_info.org_id != 10445 && $store.getters.user.template_info.org_id!=10447&& $store.getters.user.template_info.org_id!=9829 && $store.getters.user.template_info.org_id!=10440 && $store.getters.user.template_info.org_id!=10469&& $store.getters.user.template_info.org_id!=10471 && $store.getters.user.template_info.org_id!=10495 && $store.getters.user.template_info.org_id!=10375 && $store.getters.user.template_info.org_id!=10223 && $store.getters.user.template_info.org_id!=10551">
390
+           <template #label v-if="$store.getters.user.template_info.org_id != 10101 && $store.getters.user.template_info.org_id != 10346  && $store.getters.user.template_info.template_id != 45 && $store.getters.user.template_info.template_id != 54  && $store.getters.user.template_info.org_id != 10340  && $store.getters.user.template_info.org_id != 10432 && $store.getters.user.template_info.org_id != 10441  && $store.getters.user.template_info.org_id != 10445 && $store.getters.user.template_info.org_id!=10447&& $store.getters.user.template_info.org_id!=9829 && $store.getters.user.template_info.org_id!=10440 && $store.getters.user.template_info.org_id!=10469&& $store.getters.user.template_info.org_id!=10471 && $store.getters.user.template_info.org_id!=10495 && $store.getters.user.template_info.org_id!=10375 && $store.getters.user.template_info.org_id!=10223 && $store.getters.user.template_info.org_id!=10551 && $store.getters.user.template_info.org_id!=9882 && $store.getters.user.template_info.org_id!=10206&& $store.getters.user.template_info.org_id!=10580&& $store.getters.user.template_info.org_id!=10600&& $store.getters.user.template_info.org_id!=10587&& $store.getters.user.template_info.org_id!=10599&& $store.getters.user.template_info.org_id!=10597">
385 391
                       <span v-if="dialysisPrescription.anticoagulant == 0 || dialysisPrescription.anticoagulant == -2">首剂(mg)</span>
386 392
 
387
-                      <span v-if="dialysisPrescription.anticoagulant == 2 && $store.getters.user.template_info.template_id != 13 && $store.getters.user.template_info.template_id != 21 && $store.getters.user.template_info.template_id != 23 && $store.getters.user.template_info.template_id != 40 && $store.getters.user.template_info.template_id != 41  && $store.getters.user.template_info.template_id != 6 && $store.getters.user.template_info.template_id != 38 && $store.getters.user.template_info.template_id != 47 && $store.getters.user.template_info.template_id != 54 && $store.getters.user.template_info.org_id != 10234 && $store.getters.user.template_info.org_id !=10495 && $store.getters.user.template_info.org_id !=10375 ||  $store.getters.user.template_info.org_id ==9538 || $store.getters.user.template_info.org_id !=10340 || $store.getters.user.template_info.org_id !=10432  || $store.getters.user.template_info.org_id !=9829   ">首剂
393
+                      <span v-if="dialysisPrescription.anticoagulant == 2 && $store.getters.user.template_info.template_id != 13 && $store.getters.user.template_info.template_id != 21 && $store.getters.user.template_info.template_id != 23 && $store.getters.user.template_info.template_id != 40 && $store.getters.user.template_info.template_id != 41  && $store.getters.user.template_info.template_id != 6 && $store.getters.user.template_info.template_id != 38 && $store.getters.user.template_info.template_id != 47 && $store.getters.user.template_info.template_id != 54 && $store.getters.user.template_info.org_id != 10234 && $store.getters.user.template_info.org_id !=10495 && $store.getters.user.template_info.org_id !=10375 && $store.getters.user.template_info.org_id !=10580 ||  $store.getters.user.template_info.org_id ==9538 || $store.getters.user.template_info.org_id !=10340 || $store.getters.user.template_info.org_id !=10432  || $store.getters.user.template_info.org_id !=9829   ">首剂
388 394
                         <span v-if="$store.getters.user.template_info.org_id == 9538">(u)</span>
389 395
                         <span v-if="$store.getters.user.template_info.org_id != 9538">(iu)</span>
390 396
                       </span>
391 397
 
392 398
                       <span v-if="dialysisPrescription.anticoagulant == 2 && ($store.getters.user.template_info.template_id == 13 || $store.getters.user.template_info.template_id == 21 || $store.getters.user.template_info.template_id == 23 || $store.getters.user.template_info.template_id == 40 || $store.getters.user.template_info.template_id == 41 || ($store.getters.user.template_info.template_id == 6 && $store.getters.user.template_info.org_id!=9538) || $store.getters.user.template_info.template_id == 38 || $store.getters.user.template_info.template_id == 47 || $store.getters.user.template_info.template_id == 54 ||  $store.getters.user.template_info.org_id == 10234 || $store.getters.user.template_info.org_id == 10375 || $store.getters.user.template_info.org_id == 10340 || $store.getters.user.template_info.org_id == 10432 || $store.getters.user.template_info.org_id == 9829  || $store.getters.user.template_info.org_id ==10495 || $store.getters.user.template_info.org_id ==10551)">首剂(mg)</span>
393 399
 
394
-                      <span v-if="dialysisPrescription.anticoagulant == 3 || dialysisPrescription.anticoagulant == 8 || dialysisPrescription.anticoagulant == 9 || dialysisPrescription.anticoagulant ==10">
400
+                      <span v-if="dialysisPrescription.anticoagulant == 3 || dialysisPrescription.anticoagulant == 8 || dialysisPrescription.anticoagulant == 9 || dialysisPrescription.anticoagulant ==10 || dialysisPrescription.anticoagulant ==17">
395 401
                          <span v-if="$store.getters.user.template_info.org_id == 9671">首剂(mg)</span>
396 402
                         <!-- <span v-else>首剂(iu)</span> -->
397 403
                       </span>
@@ -409,7 +415,7 @@
409 415
                   </template>
410 416
 
411 417
                   <template #label v-else>
412
-                    <span v-if="dialysisPrescription.anticoagulant == 2">首剂(mg)</span>
418
+                    <span v-if="dialysisPrescription.anticoagulant == 2 || dialysisPrescription.anticoagulant == 17 ">首剂(mg)</span>
413 419
                     <span v-else>首剂(iu)</span>
414 420
                </template>
415 421
         </van-field>
@@ -441,7 +447,12 @@
441 447
               $store.getters.user.template_info.org_id != 10432 &&
442 448
               $store.getters.user.template_info.org_id != 10495 &&
443 449
               $store.getters.user.template_info.org_id != 10375 &&
444
-              $store.getters.user.template_info.org_id != 10551
450
+              $store.getters.user.template_info.org_id != 10551 && 
451
+              $store.getters.user.template_info.org_id!=10600 &&
452
+              $store.getters.user.template_info.org_id!=10587 &&
453
+              $store.getters.user.template_info.org_id!=10599 &&
454
+              $store.getters.user.template_info.org_id!=10597
455
+              
445 456
             "
446 457
           >
447 458
             <span
@@ -467,10 +478,14 @@
467 478
                   $store.getters.user.template_info.org_id != 10234 &&
468 479
                   $store.getters.user.template_info.org_id != 10340 &&
469 480
                   $store.getters.user.template_info.org_id != 10432 &&
470
-                  $store.getters.user.template_info.org_id != 10495 && 
481
+                  $store.getters.user.template_info.org_id != 10495 &&
471 482
                   $store.getters.user.template_info.org_id != 10375 &&
472 483
                   $store.getters.user.template_info.org_id != 10223 &&
473
-                  $store.getters.user.template_info.org_id != 10551
484
+                  $store.getters.user.template_info.org_id != 10551 &&
485
+                  $store.getters.user.template_info.org_id!=10600 &&
486
+                  $store.getters.user.template_info.org_id!=10587 &&
487
+                  $store.getters.user.template_info.org_id!=10599 &&
488
+                  $store.getters.user.template_info.org_id!=10597
474 489
                   )
475 490
               "
476 491
             >
@@ -501,7 +516,11 @@
501 516
                   $store.getters.user.template_info.org_id == 10495 ||
502 517
                   $store.getters.user.template_info.org_id == 10375 ||
503 518
                   $store.getters.user.template_info.org_id == 10223 ||
504
-                  $store.getters.user.template_info.org_id == 10551 
519
+                  $store.getters.user.template_info.org_id == 10551 ||
520
+                  $store.getters.user.template_info.org_id ==10600  ||
521
+                  $store.getters.user.template_info.org_id ==10587  ||
522
+                  $store.getters.user.template_info.org_id ==10599  ||
523
+                  $store.getters.user.template_info.org_id==10597
505 524
                   )
506 525
               "
507 526
               >维持(mg/h)</span
@@ -523,7 +542,10 @@
523 542
             <span v-if="dialysisPrescription.anticoagulant == 5"
524 543
               >维持(ml/h)</span
525 544
             >
526
-            <span v-if="dialysisPrescription.anticoagulant == 1"
545
+            <span v-if="dialysisPrescription.anticoagulant == 16"
546
+              >维持(iu/h)</span
547
+            >
548
+            <span v-if="dialysisPrescription.anticoagulant == 1 || dialysisPrescription.anticoagulant == 17"
527 549
               >维持(mg/h)</span
528 550
             >
529 551
             <span v-if="dialysisPrescription.anticoagulant == 6">
@@ -533,7 +555,8 @@
533 555
                   $store.getters.user.template_info.org_id == 10432 ||
534 556
                   $store.getters.user.template_info.org_id == 10495 ||
535 557
                   $store.getters.user.template_info.org_id == 10375 ||
536
-                  $store.getters.user.template_info.org_id == 10551
558
+                  $store.getters.user.template_info.org_id == 10551 
559
+
537 560
                 "
538 561
                 >维持(mg/h)</span
539 562
               >
@@ -589,7 +612,11 @@
589 612
               $store.getters.user.template_info.org_id != 10432 &&
590 613
               $store.getters.user.template_info.org_id != 10495 &&
591 614
               $store.getters.user.template_info.org_id != 10375 &&
592
-              $store.getters.user.template_info.org_id != 10551
615
+              $store.getters.user.template_info.org_id != 10551 &&
616
+              $store.getters.user.template_info.org_id!=10600 &&
617
+              $store.getters.user.template_info.org_id!=10587 &&
618
+              $store.getters.user.template_info.org_id !=10599 &&
619
+              $store.getters.user.template_info.org_id!=10597
593 620
             "
594 621
           >
595 622
             <span
@@ -647,10 +674,11 @@
647 674
                 dialysisPrescription.anticoagulant == 3 ||
648 675
                 dialysisPrescription.anticoagulant == 8 ||
649 676
                 dialysisPrescription.anticoagulant == 9 ||
650
-                dialysisPrescription.anticoagulant == 10
677
+                dialysisPrescription.anticoagulant == 10 ||
678
+                dialysisPrescription.anticoagulant == 17
651 679
               "
652 680
             >
653
-              <span v-if="$store.getters.user.template_info.org_id == 9671">
681
+              <span v-if="$store.getters.user.template_info.org_id == 9671 || $store.getters.user.template_info.org_id == 10206">
654 682
                 总量(mg)</span
655 683
               >
656 684
               <span v-else> 总量(iu)</span>
@@ -673,12 +701,12 @@
673 701
               >
674 702
               <span v-else>总量(iu)</span>
675 703
             </span>
676
-            <span v-if="dialysisPrescription.anticoagulant == 11 || dialysisPrescription.anticoagulant == 13"
704
+            <span v-if="dialysisPrescription.anticoagulant == 11 || dialysisPrescription.anticoagulant == 13 || dialysisPrescription.anticoagulant == 16"
677 705
               >总量(iu)</span
678 706
             >
679 707
           </template>
680 708
           <template #label v-else>
681
-            <span v-if="dialysisPrescription.anticoagulant == 2">总量(mg)</span>
709
+            <span v-if="dialysisPrescription.anticoagulant == 2 || dialysisPrescription.anticoagulant == 17">总量(mg)</span>
682 710
             <span v-else>总量(iu)</span>
683 711
           </template>
684 712
         </van-field>
@@ -1044,6 +1072,16 @@
1044 1072
           input-align="right"
1045 1073
           :required="isShow_title('目标KT/V')"
1046 1074
         />
1075
+
1076
+        <van-collapse-item v-if="isShow('血管通路部位')" title="血管通路部位" name="blood_access_part_id">
1077
+                  <template slot="title">
1078
+                      <div><span v-if="isShow_title('血管通路部位')" class="warn_tip">*</span>血管通路部位</div>
1079
+                  </template>
1080
+                  <template #value>
1081
+                      <div>{{dialysisPrescription.blood_access_part_id}}</div>
1082
+                  </template>
1083
+                  <checkBoxMenu v-if='checkBoxShow' v-on:menu-comfirm="getString" :propsForm="propForm"></checkBoxMenu>
1084
+        </van-collapse-item>
1047 1085
         <van-collapse-item v-if="isShow('血管通路')" title="血管通路" name="10">
1048 1086
           <template slot="title">
1049 1087
                   <div><span v-if="isShow_title('血管通路')" class="warn_tip">*</span>血管通路</div>
@@ -1292,7 +1330,7 @@
1292 1330
          <van-field v-model="dialysisPrescription.sodium_bicarbonate_flow" @focus="inputFocus" v-if="isShow('碳酸氢钠流速')" label="碳酸氢钠流速(ml/h)" input-align="right"/>
1293 1331
 
1294 1332
          <van-field v-model="dialysisPrescription.washing_time" @focus="inputFocus" v-if="isShow('冲洗时间') && dialysisPrescription.anticoagulant == 1" label="q(h)" input-align="right"/>
1295
-         
1333
+
1296 1334
          <van-field v-model="dialysisPrescription.warsh_count" @focus="inputFocus" v-if="isShow('冲洗量') && dialysisPrescription.anticoagulant == 1" label="NS冲洗量(ml)" input-align="right"/>
1297 1335
 
1298 1336
 
@@ -1458,6 +1496,9 @@ export default {
1458 1496
     last_prescription: {
1459 1497
       type: Object,
1460 1498
     },
1499
+    lastDialysisPrescription:{
1500
+      type:Object,
1501
+    },
1461 1502
     prescription_prop: {
1462 1503
       type: Object,
1463 1504
     },
@@ -1626,6 +1667,7 @@ export default {
1626 1667
         chaptalization:"",
1627 1668
         washing_time:"",
1628 1669
         warsh_count:"",
1670
+        blood_access_part_id:"",
1629 1671
       },
1630 1672
       anticoagulant: {
1631 1673
         id: 0,
@@ -1702,6 +1744,7 @@ export default {
1702 1744
     },
1703 1745
   },
1704 1746
   created() {
1747
+    console.log("wo'wo'o'o'o'o'o'o'o'o'o'o'o'o'o'o'o'o'o",this.lastDialysisPrescription)
1705 1748
     this.teachList = getDataConfig('dialysis_remark', 'dialysis_remark')
1706 1749
     if (this.prescription_prop != undefined) {
1707 1750
       if (this.prescription_prop.anticoagulant == 1) {
@@ -1933,13 +1976,15 @@ export default {
1933 1976
     this.dialysisPrescription.sodium = this.getFloat(
1934 1977
       this.dialysisPrescription.sodium
1935 1978
     );
1936
-    // console.log("机哪里了232332", this.prescription_prop);
1979
+    console.log("机哪里了232332", this.prescription_prop);
1937 1980
     if (this.prescription_prop != undefined && this.prescription_prop.id == 0) {
1981
+      console.log("jinlai22222");
1938 1982
       if (this.$store.getters.user.template_info.org_id == 9671 ||this.$store.getters.user.template_info.org_id == 9675 ||this.$store.getters.user.template_info.org_id == 10340) {
1939 1983
         this.dialysisPrescription.sodium = 138;
1940 1984
         this.dialysisPrescription.bicarbonate = 31.1;
1941 1985
         this.dialysisPrescription.dialysate_flow = 500;
1942
-        
1986
+
1987
+        console.log("hhh23h32h23h", this.last_prescription);
1943 1988
         if (this.last_prescription != null) {
1944 1989
           this.dialysisPrescription.remark = this.last_prescription.remark;
1945 1990
           this.dialysisPrescription.chaptalization = this.last_prescription.chaptalization
@@ -1951,12 +1996,28 @@ export default {
1951 1996
           if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
1952 1997
             this.dialysisPrescription.target_ultrafiltration = this.predialysis.weight_before - this.predialysis.dry_weight
1953 1998
           }
1954
-        
1999
+
2000
+        }
2001
+
2002
+      }
2003
+
2004
+      //针对北方营口
2005
+      console.log("org_idwpwpwpwppw",this.$store.getters.user.template_info.org_id )
2006
+      if(this.$store.getters.user.template_info.org_id == 10445){
2007
+        if(this.lastDialysisPrescription!=undefined){
2008
+           this.dialysisPrescription.remark = this.lastDialysisPrescription.remark
2009
+        }
2010
+      }
2011
+
2012
+      if(this.$store.getters.user.template_info.org_id == 10579 || this.$store.getters.user.template_info.org_id == 10587){
2013
+        console.log("进来2噢噢噢哦",this.lastDialysisPrescription.blood_access_part_id)
2014
+        if(this.lastDialysisPrescription!=undefined){
2015
+
2016
+           this.dialysisPrescription.blood_access_part_id = this.lastDialysisPrescription.blood_access_part_id
1955 2017
         }
1956
-      
1957 2018
       }
1958 2019
     }
1959
-  
2020
+
1960 2021
     this.dialysisPrescription.calcium = this.getFloat(
1961 2022
       this.dialysisPrescription.calcium
1962 2023
     );
@@ -1998,7 +2059,7 @@ export default {
1998 2059
         this.dialysisPrescription.is_water = "请选择";
1999 2060
       }
2000 2061
     }
2001
-    
2062
+
2002 2063
   },
2003 2064
   methods: {
2004 2065
     radioChange(val) {},
@@ -3541,10 +3602,14 @@ export default {
3541 3602
         this.is_open = 0;
3542 3603
       }
3543 3604
       if(this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 3877){
3544
-           if(this.dialysisPrescription.prescribing_number == 0){
3545
-            Toast.fail('请填写开药数量!')
3546
-            return
3547
-           }
3605
+          
3606
+            if(this.dialysisPrescription.anticoagulant!=1){
3607
+              if(this.dialysisPrescription.prescribing_number == 0){
3608
+                  Toast.fail('请填写开药数量!')
3609
+                  return
3610
+              }
3611
+            }
3612
+          
3548 3613
 
3549 3614
            if(this.dialysisPrescription.anticoagulant == 0){
3550 3615
             Toast.fail('请填写抗凝剂!')
@@ -3552,13 +3617,9 @@ export default {
3552 3617
            }
3553 3618
         }
3554 3619
       if (this.$store.getters.user.template_info.template_id == 6) {
3620
+        console.log(" this.dialysisPrescription.mode_id", this.dialysisPrescription.mode_id)
3555 3621
         if (this.dialysisPrescription.mode_id == 2) {
3556
-          if (
3557
-            this.dialysisPrescription.displace_liqui_part == 0 ||
3558
-            this.dialysisPrescription.displace_liqui_part == -2 ||
3559
-            this.dialysisPrescription.displace_liqui_value == 0 ||
3560
-            this.dialysisPrescription.displace_liqui_value == ""
3561
-          ) {
3622
+          if ( this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 ||this.dialysisPrescription.displace_liqui_value == 0 || this.dialysisPrescription.displace_liqui_value == "") {
3562 3623
             Toast.fail("HDF模式下置换方式和置换液总量不能为空!");
3563 3624
             return;
3564 3625
           }
@@ -3566,7 +3627,13 @@ export default {
3566 3627
             this.dialysisPrescription.mode_id != 2 &&
3567 3628
             this.dialysisPrescription.mode_id != 5 &&
3568 3629
             this.dialysisPrescription.mode_id != 12 &&
3569
-            this.dialysisPrescription.mode_id != 28
3630
+            this.dialysisPrescription.mode_id != 28 &&
3631
+            this.dialysisPrescription.mode_id != 34 &&
3632
+            this.dialysisPrescription.mode_id != 35&&
3633
+            this.dialysisPrescription.mode_id != 36&&
3634
+            this.dialysisPrescription.mode_id != 37&&
3635
+            this.dialysisPrescription.mode_id != 38 && 
3636
+            this.dialysisPrescription.mode_id != 26
3570 3637
           ) {
3571 3638
             this.dialysisPrescription.displace_liqui_part = 0;
3572 3639
             this.dialysisPrescription.displace_liqui_value = 0;
@@ -3581,6 +3648,7 @@ export default {
3581 3648
 
3582 3649
           let ParamsQuery = arr;
3583 3650
           console.log("ParamsQueryOne", ParamsQuery);
3651
+        
3584 3652
           if (this.$route.query.patient_id) {
3585 3653
             ParamsQuery["patient"] = this.$route.query.patient_id;
3586 3654
           } else {
@@ -3601,7 +3669,7 @@ export default {
3601 3669
             delete newParams.oxygen_time;
3602 3670
             delete newParams.oxygen_flow;
3603 3671
           }
3604
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
3672
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
3605 3673
             delete newParams.replacement_total;
3606 3674
             delete newParams.displace_liqui_part;
3607 3675
             delete newParams.displace_liqui_value;
@@ -3765,12 +3833,12 @@ export default {
3765 3833
                   this.doctorAdvices = resp.data.advices;
3766 3834
                   this.$emit(
3767 3835
                     "longSolution",
3768
-                    response.data.data.solution,
3836
+                    resp.data.solution,
3769 3837
                     resp.data.advices
3770 3838
                   );
3771 3839
                   this.$emit(
3772 3840
                     "prescription",
3773
-                    response.data.data.prescription,
3841
+                    resp.data.prescription,
3774 3842
                     resp.data.advices
3775 3843
                   );
3776 3844
                 } else {
@@ -3793,6 +3861,7 @@ export default {
3793 3861
 
3794 3862
             let ParamsQuery = arr;
3795 3863
             console.log("ParamsQueryOne", ParamsQuery);
3864
+           
3796 3865
             if (this.$route.query.patient_id) {
3797 3866
               ParamsQuery["patient"] = this.$route.query.patient_id;
3798 3867
             } else {
@@ -3812,7 +3881,7 @@ export default {
3812 3881
             delete newParams.oxygen_time;
3813 3882
             delete newParams.oxygen_flow;
3814 3883
           }
3815
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28){
3884
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
3816 3885
             delete newParams.replacement_total;
3817 3886
             delete newParams.displace_liqui_part;
3818 3887
             delete newParams.displace_liqui_value;
@@ -3935,6 +4004,7 @@ export default {
3935 4004
 
3936 4005
             let ParamsQuery = arr;
3937 4006
             console.log("ParamsQueryOne", ParamsQuery);
4007
+         
3938 4008
             if (this.$route.query.patient_id) {
3939 4009
               ParamsQuery["patient"] = this.$route.query.patient_id;
3940 4010
             } else {
@@ -3954,7 +4024,7 @@ export default {
3954 4024
             delete newParams.oxygen_time;
3955 4025
             delete newParams.oxygen_flow;
3956 4026
           }
3957
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
4027
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
3958 4028
             delete newParams.replacement_total;
3959 4029
             delete newParams.displace_liqui_part;
3960 4030
             delete newParams.displace_liqui_value;
@@ -4087,6 +4157,7 @@ export default {
4087 4157
 
4088 4158
             let ParamsQuery = arr;
4089 4159
             console.log("ParamsQueryOne", ParamsQuery);
4160
+           
4090 4161
             if (this.$route.query.patient_id) {
4091 4162
               ParamsQuery["patient"] = this.$route.query.patient_id;
4092 4163
             } else {
@@ -4106,7 +4177,7 @@ export default {
4106 4177
             delete newParams.oxygen_time;
4107 4178
             delete newParams.oxygen_flow;
4108 4179
           }
4109
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28){
4180
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
4110 4181
             delete newParams.replacement_total;
4111 4182
             delete newParams.displace_liqui_part;
4112 4183
             delete newParams.displace_liqui_value;
@@ -4305,7 +4376,8 @@ export default {
4305 4376
             var arr = this.dialysisPrescription;
4306 4377
 
4307 4378
             let ParamsQuery = arr;
4308
-            console.log("ParamsQueryOne", ParamsQuery);
4379
+            console.log("ParamsQueryOne5555", ParamsQuery);
4380
+           
4309 4381
             if (this.$route.query.patient_id) {
4310 4382
               ParamsQuery["patient"] = this.$route.query.patient_id;
4311 4383
             } else {
@@ -4325,7 +4397,7 @@ export default {
4325 4397
             delete newParams.oxygen_time;
4326 4398
             delete newParams.oxygen_flow;
4327 4399
           }
4328
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
4400
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
4329 4401
             delete newParams.replacement_total;
4330 4402
             delete newParams.displace_liqui_part;
4331 4403
             delete newParams.displace_liqui_value;
@@ -4458,6 +4530,7 @@ export default {
4458 4530
 
4459 4531
             let ParamsQuery = arr;
4460 4532
             console.log("ParamsQueryOne", ParamsQuery);
4533
+         
4461 4534
             if (this.$route.query.patient_id) {
4462 4535
               ParamsQuery["patient"] = this.$route.query.patient_id;
4463 4536
             } else {
@@ -4477,7 +4550,7 @@ export default {
4477 4550
             delete newParams.oxygen_time;
4478 4551
             delete newParams.oxygen_flow;
4479 4552
           }
4480
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 & newParams.mode_id!= 28){
4553
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26 && newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
4481 4554
             delete newParams.replacement_total;
4482 4555
             delete newParams.displace_liqui_part;
4483 4556
             delete newParams.displace_liqui_value;
@@ -4687,6 +4760,7 @@ export default {
4687 4760
 
4688 4761
               let ParamsQuery = arr;
4689 4762
               console.log("ParamsQueryOne", ParamsQuery);
4763
+             
4690 4764
               if (this.$route.query.patient_id) {
4691 4765
                 ParamsQuery["patient"] = this.$route.query.patient_id;
4692 4766
               } else {
@@ -4706,7 +4780,7 @@ export default {
4706 4780
             delete newParams.oxygen_time;
4707 4781
             delete newParams.oxygen_flow;
4708 4782
           }
4709
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28){
4783
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28  && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
4710 4784
             delete newParams.replacement_total;
4711 4785
             delete newParams.displace_liqui_part;
4712 4786
             delete newParams.displace_liqui_value;
@@ -4838,6 +4912,7 @@ export default {
4838 4912
 
4839 4913
               let ParamsQuery = arr;
4840 4914
               console.log("ParamsQueryOne", ParamsQuery);
4915
+            
4841 4916
               if (this.$route.query.patient_id) {
4842 4917
                 ParamsQuery["patient"] = this.$route.query.patient_id;
4843 4918
               } else {
@@ -4857,7 +4932,7 @@ export default {
4857 4932
             delete newParams.oxygen_time;
4858 4933
             delete newParams.oxygen_flow;
4859 4934
           }
4860
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
4935
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26 && newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
4861 4936
             delete newParams.replacement_total;
4862 4937
             delete newParams.displace_liqui_part;
4863 4938
             delete newParams.displace_liqui_value;
@@ -5058,6 +5133,7 @@ export default {
5058 5133
 
5059 5134
               let ParamsQuery = arr;
5060 5135
               console.log("ParamsQueryOne", ParamsQuery);
5136
+             
5061 5137
               if (this.$route.query.patient_id) {
5062 5138
                 ParamsQuery["patient"] = this.$route.query.patient_id;
5063 5139
               } else {
@@ -5077,7 +5153,7 @@ export default {
5077 5153
             delete newParams.oxygen_time;
5078 5154
             delete newParams.oxygen_flow;
5079 5155
           }
5080
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
5156
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
5081 5157
             delete newParams.replacement_total;
5082 5158
             delete newParams.displace_liqui_part;
5083 5159
             delete newParams.displace_liqui_value;
@@ -5228,7 +5304,7 @@ export default {
5228 5304
             delete newParams.oxygen_time;
5229 5305
             delete newParams.oxygen_flow;
5230 5306
           }
5231
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
5307
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28  && newParams.mode_id!= 26 && newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
5232 5308
             delete newParams.replacement_total;
5233 5309
             delete newParams.displace_liqui_part;
5234 5310
             delete newParams.displace_liqui_value;
@@ -5362,10 +5438,14 @@ export default {
5362 5438
         this.is_open = 0;
5363 5439
       }
5364 5440
       if(this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 3877){
5365
-         if(this.dialysisPrescription.prescribing_number == 0){
5366
-          Toast.fail('请填写开药数量!')
5367
-          return
5441
+        
5442
+        if(this.dialysisPrescription.anticoagulant!=1){
5443
+          if(this.dialysisPrescription.prescribing_number == 0){
5444
+            Toast.fail('请填写开药数量!')
5445
+             return
5368 5446
          }
5447
+        }
5448
+      
5369 5449
          if(this.dialysisPrescription.anticoagulant == 0){
5370 5450
           Toast.fail('请填写抗凝剂!')
5371 5451
           return
@@ -5386,7 +5466,13 @@ export default {
5386 5466
             this.dialysisPrescription.mode_id != 2 &&
5387 5467
             this.dialysisPrescription.mode_id != 5 &&
5388 5468
             this.dialysisPrescription.mode_id != 12 &&
5389
-            this.dialysisPrescription.mode_id !=28
5469
+            this.dialysisPrescription.mode_id !=28 &&
5470
+            this.dialysisPrescription.mode_id !=34 &&
5471
+            this.dialysisPrescription.mode_id !=35&&
5472
+            this.dialysisPrescription.mode_id !=36&&
5473
+            this.dialysisPrescription.mode_id !=37&&
5474
+            this.dialysisPrescription.mode_id !=38&&
5475
+            this.dialysisPrescription.mode_id !=26
5390 5476
           ) {
5391 5477
             this.dialysisPrescription.displace_liqui_part = 0;
5392 5478
             this.dialysisPrescription.displace_liqui_value = 0;
@@ -5401,6 +5487,7 @@ export default {
5401 5487
 
5402 5488
           let ParamsQuery = arr;
5403 5489
           console.log("ParamsQueryOne", ParamsQuery);
5490
+         
5404 5491
           if (this.$route.query.patient_id) {
5405 5492
             ParamsQuery["patient"] = this.$route.query.patient_id;
5406 5493
           } else {
@@ -5420,7 +5507,7 @@ export default {
5420 5507
             delete newParams.oxygen_time;
5421 5508
             delete newParams.oxygen_flow;
5422 5509
           }
5423
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12){
5510
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 26 && newParams.mode_id!= 34 && newParams.mode_id!= 35 && newParams.mode_id!= 36&& newParams.mode_id!= 37){
5424 5511
             delete newParams.replacement_total;
5425 5512
             delete newParams.displace_liqui_part;
5426 5513
             delete newParams.displace_liqui_value;
@@ -5608,6 +5695,7 @@ export default {
5608 5695
 
5609 5696
             let ParamsQuery = arr;
5610 5697
             console.log("ParamsQueryOne", ParamsQuery);
5698
+         
5611 5699
             if (this.$route.query.patient_id) {
5612 5700
               ParamsQuery["patient"] = this.$route.query.patient_id;
5613 5701
             } else {
@@ -5627,7 +5715,7 @@ export default {
5627 5715
             delete newParams.oxygen_time;
5628 5716
             delete newParams.oxygen_flow;
5629 5717
           }
5630
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
5718
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 &&newParams.mode_id!= 26){
5631 5719
             delete newParams.replacement_total;
5632 5720
             delete newParams.displace_liqui_part;
5633 5721
             delete newParams.displace_liqui_value;
@@ -5747,12 +5835,13 @@ export default {
5747 5835
           }
5748 5836
 
5749 5837
           } else {
5750
-            console.log('777777777',this.is_open);
5838
+         
5751 5839
             Toast.loading({ forbidClick: true, duration: 0 });
5752 5840
             var arr = this.dialysisPrescription;
5753 5841
 
5754 5842
             let ParamsQuery = arr;
5755 5843
             console.log("ParamsQueryOne", ParamsQuery);
5844
+          
5756 5845
             if (this.$route.query.patient_id) {
5757 5846
               ParamsQuery["patient"] = this.$route.query.patient_id;
5758 5847
             } else {
@@ -5772,7 +5861,7 @@ export default {
5772 5861
             delete newParams.oxygen_time;
5773 5862
             delete newParams.oxygen_flow;
5774 5863
           }
5775
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
5864
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26 && newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
5776 5865
             delete newParams.replacement_total;
5777 5866
             delete newParams.displace_liqui_part;
5778 5867
             delete newParams.displace_liqui_value;
@@ -5905,6 +5994,7 @@ export default {
5905 5994
 
5906 5995
             let ParamsQuery = arr;
5907 5996
             console.log("ParamsQueryOne", ParamsQuery);
5997
+          
5908 5998
             if (this.$route.query.patient_id) {
5909 5999
               ParamsQuery["patient"] = this.$route.query.patient_id;
5910 6000
             } else {
@@ -5924,7 +6014,7 @@ export default {
5924 6014
             delete newParams.oxygen_time;
5925 6015
             delete newParams.oxygen_flow;
5926 6016
           }
5927
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
6017
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26 && newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
5928 6018
             delete newParams.replacement_total;
5929 6019
             delete newParams.displace_liqui_part;
5930 6020
             delete newParams.displace_liqui_value;
@@ -6114,7 +6204,8 @@ export default {
6114 6204
             var arr = this.dialysisPrescription;
6115 6205
 
6116 6206
             let ParamsQuery = arr;
6117
-            console.log("ParamsQueryOne", ParamsQuery);
6207
+          
6208
+           
6118 6209
             if (this.$route.query.patient_id) {
6119 6210
               ParamsQuery["patient"] = this.$route.query.patient_id;
6120 6211
             } else {
@@ -6134,7 +6225,7 @@ export default {
6134 6225
             delete newParams.oxygen_time;
6135 6226
             delete newParams.oxygen_flow;
6136 6227
           }
6137
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28){
6228
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
6138 6229
             delete newParams.replacement_total;
6139 6230
             delete newParams.displace_liqui_part;
6140 6231
             delete newParams.displace_liqui_value;
@@ -6286,7 +6377,7 @@ export default {
6286 6377
             delete newParams.oxygen_time;
6287 6378
             delete newParams.oxygen_flow;
6288 6379
           }
6289
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
6380
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
6290 6381
             delete newParams.replacement_total;
6291 6382
             delete newParams.displace_liqui_part;
6292 6383
             delete newParams.displace_liqui_value;
@@ -6494,7 +6585,7 @@ export default {
6494 6585
               delete newParams.oxygen_time;
6495 6586
               delete newParams.oxygen_flow;
6496 6587
             }
6497
-            if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
6588
+            if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
6498 6589
               delete newParams.replacement_total;
6499 6590
               delete newParams.displace_liqui_part;
6500 6591
               delete newParams.displace_liqui_value;
@@ -6637,7 +6728,7 @@ export default {
6637 6728
               delete newParams.oxygen_time;
6638 6729
               delete newParams.oxygen_flow;
6639 6730
             }
6640
-            if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
6731
+            if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28&& newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
6641 6732
               delete newParams.replacement_total;
6642 6733
               delete newParams.displace_liqui_part;
6643 6734
               delete newParams.displace_liqui_value;
@@ -6789,7 +6880,7 @@ export default {
6789 6880
             delete newParams.oxygen_time;
6790 6881
             delete newParams.oxygen_flow;
6791 6882
           }
6792
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
6883
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28&& newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
6793 6884
             delete newParams.replacement_total;
6794 6885
             delete newParams.displace_liqui_part;
6795 6886
             delete newParams.displace_liqui_value;
@@ -7006,7 +7097,7 @@ export default {
7006 7097
             delete newParams.oxygen_time;
7007 7098
             delete newParams.oxygen_flow;
7008 7099
           }
7009
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28){
7100
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12  && newParams.mode_id!= 28 && newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 36){
7010 7101
             delete newParams.replacement_total;
7011 7102
             delete newParams.displace_liqui_part;
7012 7103
             delete newParams.displace_liqui_value;
@@ -7157,7 +7248,7 @@ export default {
7157 7248
             delete newParams.oxygen_time;
7158 7249
             delete newParams.oxygen_flow;
7159 7250
           }
7160
-          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28){
7251
+          if (newParams.mode_id!=2 && newParams.mode_id!=5 && newParams.mode_id!= 12 && newParams.mode_id!= 28&& newParams.mode_id!= 26&& newParams.mode_id!= 34&& newParams.mode_id!= 35&& newParams.mode_id!= 36&& newParams.mode_id!= 37){
7161 7252
             delete newParams.replacement_total;
7162 7253
             delete newParams.displace_liqui_part;
7163 7254
             delete newParams.displace_liqui_value;
@@ -9168,7 +9259,7 @@ export default {
9168 9259
             arr1[j].is_show == 1 &&
9169 9260
             arr1[j].is_write == 1 &&
9170 9261
             arr1[j].filed_name == arr2[i][0]
9171
-            &&(this.dialysisPrescription.mode_id == 2||this.dialysisPrescription.mode_id == 5||this.dialysisPrescription.mode_id == 12 ||this.dialysisPrescription.mode_id == 28)
9262
+            &&(this.dialysisPrescription.mode_id == 2||this.dialysisPrescription.mode_id == 5||this.dialysisPrescription.mode_id == 12 ||this.dialysisPrescription.mode_id == 28 ||this.dialysisPrescription.mode_id == 26)
9172 9263
             &&arr1[j].filed_name == 'displace_liqui_part'
9173 9264
           ) {
9174 9265
             newArr.push(arr1[j]);
@@ -9178,7 +9269,7 @@ export default {
9178 9269
             arr1[j].is_show == 1 &&
9179 9270
             arr1[j].is_write == 1 &&
9180 9271
             arr1[j].filed_name == arr2[i][0]
9181
-            &&(this.dialysisPrescription.mode_id == 2||this.dialysisPrescription.mode_id == 5||this.dialysisPrescription.mode_id == 12 ||this.dialysisPrescription.mode_id == 28)
9272
+            &&(this.dialysisPrescription.mode_id == 2||this.dialysisPrescription.mode_id == 5||this.dialysisPrescription.mode_id == 12 ||this.dialysisPrescription.mode_id == 28 ||this.dialysisPrescription.mode_id == 26 )
9182 9273
             &&arr1[j].filed_name == 'replacement_total'
9183 9274
           ) {
9184 9275
             newArr.push(arr1[j]);
@@ -9188,7 +9279,7 @@ export default {
9188 9279
             arr1[j].is_show == 1 &&
9189 9280
             arr1[j].is_write == 1 &&
9190 9281
             arr1[j].filed_name == arr2[i][0]
9191
-            &&(this.dialysisPrescription.mode_id == 2||this.dialysisPrescription.mode_id == 5||this.dialysisPrescription.mode_id == 12 ||this.dialysisPrescription.mode_id == 28)
9282
+            &&(this.dialysisPrescription.mode_id == 2||this.dialysisPrescription.mode_id == 5||this.dialysisPrescription.mode_id == 12 ||this.dialysisPrescription.mode_id == 28 ||this.dialysisPrescription.mode_id == 26)
9192 9283
             &&arr1[j].filed_name == 'displace_liqui_value'
9193 9284
           ) {
9194 9285
             newArr.push(arr1[j]);delete newParams.displace_speed;
@@ -9198,7 +9289,7 @@ export default {
9198 9289
             arr1[j].is_show == 1 &&
9199 9290
             arr1[j].is_write == 1 &&
9200 9291
             arr1[j].filed_name == arr2[i][0]
9201
-            &&(this.dialysisPrescription.mode_id == 2||this.dialysisPrescription.mode_id == 5||this.dialysisPrescription.mode_id == 12 ||this.dialysisPrescription.mode_id == 28)
9292
+            &&(this.dialysisPrescription.mode_id == 2||this.dialysisPrescription.mode_id == 5||this.dialysisPrescription.mode_id == 12 ||this.dialysisPrescription.mode_id == 28 ||this.dialysisPrescription.mode_id == 26)
9202 9293
             &&arr1[j].filed_name == 'displace_speed'
9203 9294
           ) {
9204 9295
             newArr.push(arr1[j]);
@@ -9757,24 +9848,13 @@ export default {
9757 9848
                     response.data.data.solution[key];
9758 9849
                 }
9759 9850
               }
9760
-              if (
9761
-                this.$store.getters.user.template_info.org_id == 9671 ||
9762
-                this.$store.getters.user.template_info.org_id == 9675 ||
9763
-                this.$store.getters.user.template_info.org_id == 10340
9764
-              ) {
9765
-                console.log(
9766
-                  "抠门;哦啊",
9767
-                  response.data.data.dialysisPrescription.remark
9768
-                );
9851
+              if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 ||this.$store.getters.user.template_info.org_id == 10340) {
9852
+                console.log("抠门;哦啊",response.data.data.dialysisPrescription.remark);
9769 9853
                 this.dialysisPrescription.sodium = 138;
9770 9854
                 this.dialysisPrescription.bicarbonate = 31.1;
9771 9855
                 this.dialysisPrescription.dialysate_flow = 500;
9772
-                if (
9773
-                  this.last_prescription != null &&
9774
-                  response.data.data.dialysisPrescription != null
9775
-                ) {
9776
-                  this.dialysisPrescription.remark =
9777
-                    response.data.data.dialysisPrescription.remark;
9856
+                if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
9857
+                  this.dialysisPrescription.remark =  response.data.data.dialysisPrescription.remark;
9778 9858
                 }
9779 9859
               }
9780 9860
               if(this.$store.getters.user.template_info.org_id == 10447){
@@ -9788,6 +9868,13 @@ export default {
9788 9868
                     this.dialysisPrescription.displace_liqui_value = 32
9789 9869
                 }
9790 9870
               }
9871
+              console.log("机构id我噢哦嚄嚄我",this.$store.getters.user.template_info.org_id)
9872
+              if(this.$store.getters.user.template_info.org_id == 10445){
9873
+                console.log("上次透析处方",this.lastDialysisPrescription)
9874
+                if (this.lastDialysisPrescription != null) {
9875
+                  this.dialysisPrescription.remark = this.lastDialysisPrescription.remark
9876
+                }
9877
+              }
9791 9878
             } else {
9792 9879
               if (response.data.data.prescription != null) {
9793 9880
                 // 临时处方不为空
@@ -9899,6 +9986,13 @@ export default {
9899 9986
                     this.last_prescription.remark;
9900 9987
                 }
9901 9988
               }
9989
+
9990
+              if(this.$store.getters.user.template_info.org_id == 10445){
9991
+                console.log("上次透析处方2",this.lastDialysisPrescription)
9992
+                if (this.lastDialysisPrescription != null) {
9993
+                  this.dialysisPrescription.remark = this.lastDialysisPrescription.remark;
9994
+                }
9995
+              }
9902 9996
             }
9903 9997
           }
9904 9998
 
@@ -9987,6 +10081,8 @@ export default {
9987 10081
         this.dialysisPrescription.anticoagulant_shouji = "";
9988 10082
         this.dialysisPrescription.anticoagulant_zongliang = "";
9989 10083
         this.dialysisPrescription.anticoagulant_weichi = "";
10084
+        this.dialysisPrescription.washing_time=1
10085
+        this.dialysisPrescription.warsh_count =150
9990 10086
       }
9991 10087
       let anticoagulan_name = "";
9992 10088
       let anticoagulant = this.anticoagulantsConfitTwo;
@@ -9995,6 +10091,7 @@ export default {
9995 10091
           anticoagulan_name = anticoagulant[keys].name;
9996 10092
         }
9997 10093
       }
10094
+
9998 10095
       return anticoagulan_name;
9999 10096
     },
10000 10097
     getBodyFluid: function (val) {
@@ -10170,6 +10267,38 @@ export default {
10170 10267
           this.propForm.click_ref = "vascular_access_desc";
10171 10268
           break;
10172 10269
 
10270
+       case 'blood_access_part_id':
10271
+
10272
+        this.propForm.result = []
10273
+        this.isHasOther = 2
10274
+        this.propForm.isShowOther = 1
10275
+
10276
+        this.propForm.type = 20
10277
+        this.isShowDialog = false
10278
+        this.propForm.title = '血管通路部位'
10279
+        this.visibility = true
10280
+        this.propForm.list = []
10281
+        this.propForm.list = getDataConfig(
10282
+          'hemodialysis',
10283
+          'vascular_access'
10284
+        )
10285
+        this.propForm.optionList = []
10286
+        this.propForm.isMultiple = 2
10287
+        if (
10288
+          this.dialysisPrescription.blood_access_part_id != undefined ||
10289
+                  this.dialysisPrescription.blood_access_part_id != null
10290
+        ) {
10291
+          if (this.dialysisPrescription.blood_access_part_id.length > 0) {
10292
+            this.propForm.result = this.dialysisPrescription.blood_access_part_id.split(',')
10293
+          } else {
10294
+            this.propForm.result = []
10295
+          }
10296
+        } else {
10297
+          this.propForm.result = []
10298
+        }
10299
+        this.propForm.click_ref = 'blood_access_part_id'
10300
+        break
10301
+
10173 10302
         case "dialyzer_perfusion_apparatus":
10174 10303
           this.propForm.type = 11;
10175 10304
           this.isShowDialog = false;
@@ -10381,7 +10510,7 @@ export default {
10381 10510
           this.propForm.result = newArr;
10382 10511
           this.propForm.click_ref = "dialysis_irrigation";
10383 10512
           break;
10384
-        
10513
+
10385 10514
         case "plasma_separator":
10386 10515
           this.propForm.type = 16;
10387 10516
           this.isShowDialog = false;
@@ -10568,6 +10697,9 @@ export default {
10568 10697
         case 19:
10569 10698
         this.dialysisPrescription.dialysis_strainer = val.result.join(',')
10570 10699
         break
10700
+        case 20:
10701
+        this.dialysisPrescription.blood_access_part_id = val.result.join(',')
10702
+        break
10571 10703
       }
10572 10704
     },
10573 10705
     getPermission() {
@@ -10720,6 +10852,7 @@ export default {
10720 10852
   },
10721 10853
   watch: {
10722 10854
     "dialysisPrescription.blood_flow_volume": function () {
10855
+      console.log("处方233322323");
10723 10856
       this.dialysisPrescription.replacement_flow = replacementFlow(
10724 10857
         this.dialysisPrescription.blood_flow_volume
10725 10858
       );

+ 2 - 2
src/pages/main/newActionBar/doubleCheck.vue Ver arquivo

@@ -89,7 +89,7 @@
89 89
               <van-cell title='第一核对人员'>
90 90
                   <template #label>
91 91
                       <van-radio-group class="doctorList" v-model="doubleReview.creater">
92
-                          <van-radio :name="item.id" v-for='(item,index) in admin_map' :key="index"  v-if='item.status === 1'>{{ item.name }}</van-radio>
92
+                          <van-radio :name="item.id" v-for='(item,index) in admin_map' :key="index"  v-if='item.status === 1&& item.user_type ===3'>{{ item.name }}</van-radio>
93 93
                       </van-radio-group>
94 94
                   </template>
95 95
               </van-cell>
@@ -97,7 +97,7 @@
97 97
               <van-cell title='第二核对人员'>
98 98
                   <template #label>
99 99
                       <van-radio-group class="doctorList" v-model="doubleReview.modifier">
100
-                          <van-radio :name="item.id"  v-for='(item,index) in admin_map' :key="index" v-if='item.status === 1'>{{ item.name }}</van-radio>
100
+                          <van-radio :name="item.id"  v-for='(item,index) in admin_map' :key="index" v-if='item.status === 1&& item.user_type ===3 '>{{ item.name }}</van-radio>
101 101
                       </van-radio-group>
102 102
                   </template>
103 103
               </van-cell>

+ 23 - 17
src/pages/main/newActionBar/monitoring.vue Ver arquivo

@@ -38,22 +38,22 @@
38 38
                   <th v-if="isShow('血流量')" width="40px" style="width:5%"> 血流量 <br />(ml/min) </th>
39 39
                   <th width="60px" style="width:6%"> 静脉压/动脉压 <br />({{monitorRecords[0]&&monitorRecords[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}) </th>
40 40
                   <th v-if="isShow('跨膜压')" width="40px" style="width:6%"> 跨膜压 <br />({{monitorRecords[0]&&monitorRecords[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}) </th>
41
-                  <th v-if="isShow('超滤量') && (template_id ==5 || template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || org_id == 9555 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 40 || template_id == 9 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 65 || template_id == 56 || template_id == 60 || org_id == 10340 || org_id == 10387 || org_id == 10432 || org_id == 10445 || org_id == 10375 || org_id == 10480 || org_id == 10551)" width="50px" style="width:6%"> 超滤量 <br />(ml) </th>
42
-                  <th v-if="isShow('超滤量') && template_id != 5 && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && org_id !=9555 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id !=9 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id!=40 && template_id!=41 && template_id!=43 && template_id!=44 && template_id!=47 && template_id!=46  && template_id!=48 && template_id!=53 && template_id!=54 && template_id!=65 && template_id!=56 && template_id!=60 && org_id != 10340 && org_id != 10387 && org_id != 10432  && org_id != 10445 && org_id!=10375 && org_id!=10480 && org_id!=10551" width="50px" style="width:6%"> 超滤量 <br />(L) </th>
41
+                  <th v-if="isShow('超滤量') && (template_id ==5 || template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || org_id == 9555 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 40 || template_id == 9 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 65 || template_id == 56 || template_id == 60 || org_id == 10340 || org_id == 10387 || org_id == 10432 || org_id == 10445 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id == 10485)" width="50px" style="width:6%"> 超滤量 <br />(ml) </th>
42
+                  <th v-if="isShow('超滤量') && template_id != 5 && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && org_id !=9555 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id !=9 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id!=40 && template_id!=41 && template_id!=43 && template_id!=44 && template_id!=47 && template_id!=46  && template_id!=48 && template_id!=53 && template_id!=54 && template_id!=65 && template_id!=56 && template_id!=60 && org_id != 10340 && org_id != 10387 && org_id != 10432  && org_id != 10445 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10485" width="50px" style="width:6%"> 超滤量 <br />(L) </th>
43 43
                   <th v-if="isShow('钠浓度')" width="40px" style="width:6%"> 钠浓度 <br />(mmol/L) </th>
44 44
                   <th v-if="isShow('透析液温度')" width="60px" style="width:6%"> 透析液温度 <br />(℃) </th>
45 45
                   <th v-if="isShow('置换率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29  || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || org_id == 10340 || org_id == 10445 || org_id == 10410) && org_id!=10558" width="50px" style="width:6%"> 置换率 <br />(ml/min) </th>
46 46
                   <th v-if="isShow('置换率') && (template_id !=6 && template_id !=10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29  && template_id != 46 && template_id != 48 && template_id != 53  && template_id != 54 && org_id!=10340 && org_id!=10445 && org_id!=10410) || org_id ==10558" width="50px"  style="width:6%"> 置换率 <br />(L/h) </th>
47 47
                   <th v-if="isShow('置换量') && (template_id ==43 )" width="40px" style="width:6%"> 置换量 <br />(ml/h) </th>
48
-                  <th v-if="isShow('置换量') && ((template_id ==6 && org_id != 9919 && org_id!=10191 && template_id!=43) || org_id ==9779 ||template_id ==11 ||template_id ==20 ||template_id ==26 ||template_id ==29 ||template_id == 48 ||template_id == 46 ||template_id == 53 ||template_id == 54 ||template_id == 56 ||org_id == 10340 ||org_id == 10432 ||org_id == 10445) && org_id!=10558" width="50px" style="width:6%"> 置换量 <br />(ml) </th>
49
-                  <th v-if="isShow('置换量') && ((template_id !=6 || org_id == 9919 || org_id == 10191) && org_id !=9779 && template_id !=11 && template_id !=20 && template_id !=26 && template_id !=29 && template_id!=43 && template_id!=48 && template_id!=46 && template_id!=53 && template_id!=54 && template_id!=56 && org_id!=10340 && org_id!=10432  && org_id!=10445) || org_id ==10558" width="50px" style="width:6%"> 置换量 <br />(L) </th>
48
+                  <th v-if="isShow('置换量') && ((template_id ==6 && org_id != 9919 && org_id!=10191 && template_id!=43) || org_id ==9779 ||template_id ==11 ||template_id ==20 ||template_id ==26 ||template_id ==29 ||template_id == 48 ||template_id == 46 ||template_id == 53 ||template_id == 54 ||template_id == 56 ||org_id == 10340 ||org_id == 10432 ||org_id == 10445) && org_id!=10558 && org_id!=10346" width="50px" style="width:6%"> 置换量 <br />(ml) </th>
49
+                  <th v-if="isShow('置换量') && ((template_id !=6 || org_id == 9919 || org_id == 10191) && org_id !=9779 && template_id !=11 && template_id !=20 && template_id !=26 && template_id !=29 && template_id!=43 && template_id!=48 && template_id!=46 && template_id!=53 && template_id!=54 && template_id!=56 && org_id!=10340 && org_id!=10432  && org_id!=10445) || org_id ==10558 || org_id ==10346" width="50px" style="width:6%"> 置换量 <br />(L) </th>
50 50
                   <th v-if="isShow('SpO₂')  && template_id !=6 && template_id !=10 && template_id !=11" width="40px" > SpO₂ <br />(%) </th>
51 51
                   <th v-if="isShow('SpO₂')  && org_id == 10447" width="40px" > SpO₂ <br />(%) </th>
52 52
                   <th v-if="isShow('电导度')" width="40px"> 电导度 <br />(mS/cm) </th>
53
-                  <th v-if="isShow('置换液流量')" width="50px"> 置换液流量 <br /><span v-if="template_id !=27">(ml/h)</span><span v-if="template_id ==27 || template_id ==29 ">(ml/min)</span> </th>
53
+                  <th v-if="isShow('置换液流量')" width="50px"> 置换液流量 <br /><span v-if="template_id !=27 && template_id !=29 && template_id !=60">(ml/h)</span><span v-if="template_id ==27 || template_id ==29 || template_id == 60">(ml/min)</span> </th>
54 54
                   <th v-if="isShow('透析液流量')" width="50px"> 透析液流量 <br />(ml/h) </th>
55
-                  <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 65 || org_id == 10432 || org_id == 10445 || org_id == 10375 || org_id == 10480 || org_id == 10551)" width="50px" style="6%"> 超滤率 <br />(ml/h) </th>
56
-                  <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38 && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=47 && template_id !=48 && template_id !=53 && template_id !=54 && template_id !=56 && template_id !=65 && org_id!=10432 && org_id!=10445 && org_id!=10375  && org_id!=10480 && org_id!=10551" width="50px" style="6%"> 超滤率 <br />(L/h) </th>
55
+                  <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 65 || org_id == 10432 || org_id == 10445 || org_id == 10375 || org_id == 10480 || org_id == 10551  || org_id == 10537)" width="50px" style="6%"> 超滤率 <br />(ml/h) </th>
56
+                  <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38 && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=47 && template_id !=48 && template_id !=53 && template_id !=54 && template_id !=56 && template_id !=65 && org_id!=10432 && org_id!=10445 && org_id!=10375  && org_id!=10480 && org_id!=10551 && org_id!=10537" width="50px" style="6%"> 超滤率 <br />(L/h) </th>
57 57
                   <th v-if="isShow('肝素用量余量')" width="60px"> 肝素用量余量 <br />(ml) </th>
58 58
                   <th v-if="isShow('肝素量')" width="60px"> 肝素量 <br />(mg) </th>
59 59
                   <th v-if="isShow('抗凝剂')" width="60px">抗凝剂</th>
@@ -67,7 +67,7 @@
67 67
                   <th v-if="isShow('血浓量')" width="60px">血浓量</th>
68 68
                   <!-- <th v-if="isShow('血浓量')" width="60px">血浓量</th> -->
69 69
                   <th v-if="isShow('脱水')" width="60px">脱水</th>
70
-                  <th v-if="isShow('KT/V') && (org_id == 9987|| org_id == 10215 || org_id == 9800)" width="60px">KT/V</th>
70
+                  <th v-if="isShow('KT/V') && (org_id == 9987|| org_id == 10215 || org_id == 9800 || org_id ==10517)" width="60px">KT/V</th>
71 71
                 
72 72
                   <th v-if="isShow('病情变化')" width="92px" >病情变化</th>
73 73
                   <th v-if="isShow('处理')" width="92px" >处理</th>
@@ -127,7 +127,7 @@
127 127
                   <!-- <td v-if="isShow('血浓量')" width="60px">{{item.blood_monitor}}</td> -->
128 128
                   <td v-if="isShow('脱水')" width="60px">{{item.dehydration}}</td>
129 129
 
130
-                  <td v-if="isShow('KT/V') && (org_id == 9987 || org_id ==10215 || org_id == 9800)">{{item.ktv?item.ktv:''}}</td>
130
+                  <td v-if="isShow('KT/V') && (org_id == 9987 || org_id ==10215 || org_id == 9800 || org_id ==10517)">{{item.ktv?item.ktv:''}}</td>
131 131
                   <td v-if="isShow('病情变化')">{{item.symptom}}</td>
132 132
                   <td v-if="isShow('处理')">{{item.dispose}}</td>
133 133
                   <td v-if="isShow('结果')">{{item.result}}</td>
@@ -159,6 +159,8 @@
159 159
                           <van-field v-model="form.temperature" @focus="inputFocus" @keydown='changeFocus' v-if="isShow('体温')" :required="isShow_title('体温')" label="体温(℃)" type="number" input-align="right" />
160 160
                           <van-field  v-model="form.breathing_rated" @focus="inputFocus" @keydown='changeFocus' v-if="isShow('呼吸频率')&& org_id!=10340 && org_id!=9671" :required="isShow_title('呼吸频率')" label="呼吸频率(次/分)" input-align="right" />
161 161
                           <van-field  v-model="form.breathing_rated" @focus="inputFocus" @keydown='changeFocus' type="number" v-if="isShow('呼吸频率')&& (org_id ==10340 || org_id ==9671)" :required="isShow_title('呼吸频率')" label="呼吸频率(次/分)" input-align="right" />
162
+                         
163
+
162 164
                           <van-field v-model="form.blood_flow_volume" @focus="inputFocus" @keydown='changeFocus' v-if="isShow('血流量')" :required="isShow_title('血流量')" label="血流量(ml/min)" type="number" input-align="right" />
163 165
                           <van-field v-model="form.arterial_pressure" @focus="inputFocus" @keydown='changeFocus' v-if="isShow('动脉压')  && org_id!=10340 && org_id!=9671" :required="isShow_title('动脉压')" input-align="right">
164 166
                               <template #label>
@@ -186,6 +188,8 @@
186 188
                                   <van-button @click="venousPressureChangeOne" size="small" class="changeBtn" type="primary" style="margin-left:40px">切换</van-button>
187 189
                               </template>
188 190
                           </van-field>
191
+                         
192
+                          
189 193
                           <van-field v-model="form.transmembrane_pressure" @focus="inputFocus" @keydown='changeFocus' :required="isShow_title('跨膜压')" v-if="isShow('跨膜压')" type="number" input-align="right">
190 194
                               <template #label>
191 195
                                   <span>跨膜压({{form.transmembrane_pressure_type == 2 ? 'kpa': 'mmHg'}})</span>
@@ -194,6 +198,8 @@
194 198
                                   <van-button @click="venousPressureChangeTwo" size="small" class="changeBtn" type="primary" style="margin-left:40px">切换</van-button>
195 199
                               </template>
196 200
                           </van-field>
201
+                          
202
+                         
197 203
                           <van-field v-model="form.ultrafiltration_volume" @focus="inputFocus" @keydown='changeFocus' :required="isShow_title('超滤量')" v-if="isShow('超滤量')" type="number" input-align="right">
198 204
                               <template #label>
199 205
                                   <!-- <span v-if="template_id == 5 || template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || org_id == 9555 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 9 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 40 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || org_id == 10340  || org_id == 10387 || org_id == 10432 || org_id == 10445" >超滤量(ml)</span>
@@ -206,7 +212,7 @@
206 212
                               <template #label>
207 213
                                   <!-- <span v-if="template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || org_id == 10340 || org_id == 10432 || org_id == 10445">超滤率(ml/h)</span>
208 214
                                   <span v-if="(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || org_id == 10340 || org_id == 10432 || org_id == 10445 || org_id == 10410 || org_id == 10485) && org_id!=10471">超滤率(ml/h)</span> -->
209
-                                  <span v-if="(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || template_id == 65 || org_id == 10340 || org_id == 10432 || org_id == 10445 || org_id == 10410 || org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551) && org_id!=10471">超滤率(ml/h)</span>
215
+                                  <span v-if="(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || template_id == 65 || org_id == 10340 || org_id == 10432 || org_id == 10445 || org_id == 10410 || org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10537) && org_id!=10471">超滤率(ml/h)</span>
210 216
                                   <span v-else>超滤率(L/h)</span>
211 217
                               </template>
212 218
                           </van-field>
@@ -239,8 +245,8 @@
239 245
                           <van-field v-model="form.blood_sugar" @focus="inputFocus" @keydown='changeFocus' v-if="isShow('血糖')" :required="isShow_title('血糖')" label="血糖(mmol/L)" type="number" input-align="right"/>
240 246
                           <van-field v-model="form.displacement_flow_quantity" @focus="inputFocus" @keydown='changeFocus' v-if="isShow('置换液流量')" :required="isShow_title('置换液流量')" type="number" input-align="right">
241 247
                               <template #label>
242
-                                  <span v-if="template_id != 27">置换液流量(ml/h)</span>
243
-                                  <span v-if="template_id == 27 || template_id == 29">置换液流量(ml/min)</span>
248
+                                  <span v-if="template_id != 27 && template_id!=29 && template_id!=60">置换液流量(ml/h)</span>
249
+                                  <span v-if="template_id == 27 || template_id == 29 || template_id ==60">置换液流量(ml/min)</span>
244 250
                               </template>
245 251
                           </van-field>
246 252
                           <van-field v-model="form.dialysate_flow" @focus="inputFocus" @keydown='changeFocus' v-if="isShow('透析液流量')" :required="isShow_title('透析液流量')" label="透析液流量(ml/h)" type="number" input-align="right"/>
@@ -355,10 +361,10 @@
355 361
                             <th v-if="isShow('SpO₂')  && template_id !=6 && template_id !=10 && template_id !=11" width="40px" > SpO₂ <br />(%) </th>
356 362
                             <th v-if="isShow('SpO₂')  && org_id == 10447" width="40px" > SpO₂ <br />(%) </th>
357 363
                             <th v-if="isShow('电导度')" width="40px"> 电导度 <br />(mS/cm) </th>
358
-                            <th v-if="isShow('置换液流量')" width="50px"> 置换液流量 <br /><span v-if="template_id !=27">(ml/h)</span><span v-if="template_id ==27 || template_id ==29 ">(ml/min)</span> </th>
364
+                            <th v-if="isShow('置换液流量')" width="50px"> 置换液流量 <br /><span v-if="template_id !=27 && template_id !=29 && template_id !=60">(ml/h)</span><span v-if="template_id ==27 || template_id ==29 || template_id==60">(ml/min)</span> </th>
359 365
                             <th v-if="isShow('透析液流量')" width="50px"> 透析液流量 <br />(ml/h) </th>
360
-                            <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10480)" width="50px"> 超滤率 <br />(ml/h) </th>
361
-                            <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38 && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=47 && template_id !=48 && template_id !=53 && template_id !=54 && template_id !=56 && org_id!=10432 && org_id!=10445 && org_id!=10480" width="50px"> 超滤率 <br />(L/h) </th>
366
+                            <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10480 || org_id ==10537)" width="50px"> 超滤率 <br />(ml/h) </th>
367
+                            <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38 && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=47 && template_id !=48 && template_id !=53 && template_id !=54 && template_id !=56 && org_id!=10432 && org_id!=10445 && org_id!=10480 && org_id!=10537" width="50px"> 超滤率 <br />(L/h) </th>
362 368
                             <th v-if="isShow('肝素用量余量')" width="60px"> 肝素用量余量 <br />(ml) </th>
363 369
                             <th v-if="isShow('肝素量')" width="60px"> 肝素量 <br />(mg) </th>
364 370
                             <th v-if="isShow('抗凝剂')" width="60px">抗凝剂</th>
@@ -372,7 +378,7 @@
372 378
                             <th v-if="isShow('血浓量')" width="60px">血浓量</th>
373 379
                             <!-- <th v-if="isShow('血浓量')" width="60px">血浓量</th> -->
374 380
                             <th v-if="isShow('脱水')" width="60px">脱水</th>
375
-                            <th v-if="isShow('KT/V') && (org_id == 9987|| org_id == 10215 || org_id == 9800)" width="60px">KT/V</th>
381
+                            <th v-if="isShow('KT/V') && (org_id == 9987|| org_id == 10215 || org_id == 9800 || org_id ==10517)" width="60px">KT/V</th>
376 382
                             <th v-if="isShow('病情变化')" width="92px">病情变化</th>
377 383
                             <th v-if="isShow('处理')" width="92px">处理</th>
378 384
                             <th v-if="isShow('结果')" width="92px">结果</th>
@@ -417,7 +423,7 @@
417 423
                                 <span v-if="item.monitor_anticoagulant == 13">那屈肝素钙</span>
418 424
                               <span v-if="item.monitor_anticoagulant_value!=''">({{item.monitor_anticoagulant_value}})</span>
419 425
                               </td>
420
-                              <td v-if="isShow('KT/V') && (org_id == 9987 || org_id ==10215 || org_id == 9800 || org_id == 10278 || org_id == 10138 )">{{item.ktv?item.ktv:''}}</td>
426
+                              <td v-if="isShow('KT/V') && (org_id == 9987 || org_id ==10215 || org_id == 9800 || org_id == 10278 || org_id == 10138 || org_id ==10517)">{{item.ktv?item.ktv:''}}</td>
421 427
                               <td v-if="isShow('病情变化')">{{item.symptom}}</td>
422 428
                               <td v-if="isShow('处理')">{{item.dispose}}</td>
423 429
                               <td v-if="isShow('结果')">{{item.result}}</td>

+ 2 - 2
src/pages/main/template/DialysisPrintOrderOne.vue Ver arquivo

@@ -34,8 +34,8 @@
34 34
               </td>
35 35
               <td width="110">住院号/透析卡号:</td>
36 36
               <td width="130">
37
-                <div class="under-line">&nbsp;{{patientInfo.admission_number?patientInfo.admission_number:'无'}}
38
-                  /{{patientInfo.dialysis_no}}
37
+                <div class="under-line">&nbsp;{{receiverTreatmentAccess.admission_number?receiverTreatmentAccess.admission_number:'无'}}
38
+                  <span v-if="receiverTreatmentAccess.admission_number==''|| receiverTreatmentAccess.admission_number ==0"> /{{patientInfo.dialysis_no}}</span>
39 39
                 </div>
40 40
               </td>
41 41
             </tr>

+ 18 - 9
src/pages/main/template/DialysisPrintOrderSix.vue Ver arquivo

@@ -360,7 +360,8 @@
360 360
                   <div class="inline_block" style="margin-left:10px;flex:1;">
361 361
                     置换量:
362 362
                     <div class="under_line" style="width: 70px;text-align: center">
363
-                      {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
363
+                      <span v-if="org_id!=10206">{{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}</span> 
364
+                      <span v-if="org_id==10206">{{prescription.replacement_total?prescription.replacement_total:'/'}}</span>
364 365
                     </div>
365 366
                     L
366 367
                   </div>
@@ -497,14 +498,14 @@
497 498
                     <div class="under_line" style="width: 50px;text-align: center;">
498 499
                       {{prescription.anticoagulant_shouji?prescription.anticoagulant_shouji:'/'}}
499 500
                     </div>
500
-                    <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471">
501
+                    <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471 && org_id!=10206">
501 502
                       <span v-if="prescription.anticoagulant == 4">mg</span>
502 503
                       <span v-if="prescription.anticoagulant == 3">iu</span>
503 504
                       <span v-if="prescription.anticoagulant == 2">iu</span>
504 505
                       <span v-if="prescription.anticoagulant == 1">mg</span>
505 506
                     </span>
506 507
 
507
-                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">
508
+                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id ==10206">
508 509
                       <span v-if="prescription.anticoagulant == 4">iu</span>
509 510
                       <span v-if="prescription.anticoagulant == 3">iu</span>
510 511
                       <span v-if="prescription.anticoagulant == 2">mg</span>
@@ -516,6 +517,9 @@
516 517
                      <span v-if="prescription.anticoagulant == 10">iu</span>
517 518
                      <span v-if="prescription.anticoagulant == 11">iu</span>
518 519
                      <span v-if="prescription.anticoagulant == 13">iu</span>
520
+                     <span v-if="prescription.anticoagulant == 16">iu</span>
521
+                     <span v-if="prescription.anticoagulant == 17">mg</span>
522
+
519 523
 
520 524
                     </span>
521 525
 
@@ -529,7 +533,7 @@
529 533
                     <div v-if="prescription.anticoagulant != 1"  class="under_line" style="width: 50px;text-align: center;">
530 534
                       {{prescription.anticoagulant_weichi?prescription.anticoagulant_weichi:"0"}}
531 535
                     </div>
532
-                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
536
+                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471&& org_id!=10206">
533 537
 
534 538
                        <span v-if="prescription.anticoagulant == 5">ml/h</span>
535 539
                         <span v-if="prescription.anticoagulant == 4">mg/h</span>
@@ -537,7 +541,7 @@
537 541
                         <span v-if="prescription.anticoagulant == 2">iu/h</span>
538 542
                         <span v-if="prescription.anticoagulant == 1">mg/h</span>
539 543
                      </span>
540
-                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">
544
+                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10206">
541 545
                        <span v-if="prescription.anticoagulant == 2">mg/h</span>
542 546
                         <span v-if="prescription.anticoagulant == 3">iu/h</span>
543 547
                         <span v-if="prescription.anticoagulant == 4">ml</span>
@@ -549,6 +553,8 @@
549 553
                         <span v-if="prescription.anticoagulant == 10">iu/h</span>
550 554
                         <span v-if="prescription.anticoagulant == 11">iu/h</span>
551 555
                         <span v-if="prescription.anticoagulant == 13">iu/h</span>
556
+                        <span v-if="prescription.anticoagulant == 16">iu/h</span>
557
+                        <span v-if="prescription.anticoagulant == 17">mg/h</span>
552 558
                     </span>
553 559
 
554 560
                   </div>
@@ -571,13 +577,13 @@
571 577
                     <div class="under_line" style="width: 50px;text-align: center;">
572 578
                       {{prescription.anticoagulant_zongliang?prescription.anticoagulant_zongliang:'/'}}
573 579
                     </div>
574
-                    <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
580
+                    <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10206">
575 581
                       <span v-if="prescription.anticoagulant == 4">mg</span>
576 582
                       <span v-if="prescription.anticoagulant == 3">iu</span>
577 583
                       <span v-if="prescription.anticoagulant == 2">iu</span>
578 584
                       <span v-if="prescription.anticoagulant == 1">mg</span>
579 585
                      </span>
580
-                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">
586
+                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10206">
581 587
                        <span v-if="prescription.anticoagulant == 2">mg</span>
582 588
                        <span v-if="prescription.anticoagulant == 3">iu</span>
583 589
                        <span v-if="prescription.anticoagulant == 4">ml</span>
@@ -589,6 +595,8 @@
589 595
                        <span v-if="prescription.anticoagulant == 10">iu</span>
590 596
                       <span v-if="prescription.anticoagulant == 11">iu</span>
591 597
                       <span v-if="prescription.anticoagulant == 13">iu</span>
598
+                      <span v-if="prescription.anticoagulant == 16">iu</span>
599
+                      <span v-if="prescription.anticoagulant == 17">mg</span>
592 600
 
593 601
                     </span>
594 602
 
@@ -1147,7 +1155,7 @@
1147 1155
                     <img style="height:20px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
1148 1156
                   </div>
1149 1157
                 </div>
1150
-                <div class="inline_block" style="flex:1;">
1158
+                <div class="inline_block" style="flex:1;" v-if="org_id!=10206">
1151 1159
                   治疗护士:
1152 1160
                   <div class="under_line" style="width: 80px;text-align: center">
1153 1161
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
@@ -1155,7 +1163,8 @@
1155 1163
                   </div>
1156 1164
                 </div>
1157 1165
                 <div class="inline_block" style="flex:1;">
1158
-                  核对人员:
1166
+                  <span v-if="org_id!=10206"> 核对人员:</span>
1167
+                  <span v-if="org_id==10206"> 核对护士:</span>
1159 1168
                   <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
1160 1169
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
1161 1170
                     <img style="height:20px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>

+ 6 - 2
src/pages/main/template/DialysisPrintOrderSixty.vue Ver arquivo

@@ -1024,7 +1024,8 @@
1024 1024
                         }})
1025 1025
                       </td>
1026 1026
                       <td width="60">透析液温度(°C)</td>
1027
-                      <td width="60">电导度<br />(mS/cm)</td>
1027
+                      <td width="60" v-if="org_id!=10537">电导度<br />(mS/cm)</td>
1028
+                      <td width="60" v-if="org_id ==10537">钠浓度<br />(mS/cm)</td>
1028 1029
                       <td width="50">超滤量<br />(ml)</td>
1029 1030
                       <td width="200">病情变化及处理</td>
1030 1031
                     </tr>
@@ -1081,9 +1082,12 @@
1081 1082
                             : ""
1082 1083
                         }}
1083 1084
                       </td>
1084
-                      <td>
1085
+                      <td v-if="org_id!=10537">
1085 1086
                         {{ monitor.conductivity ? monitor.conductivity : "" }}
1086 1087
                       </td>
1088
+                      <td v-if="org_id ==10537">
1089
+                        {{ monitor.sodium_concentration?monitor.sodium_concentration:"" }}
1090
+                      </td>
1087 1091
                       <td>
1088 1092
                         {{
1089 1093
                           monitor.ultrafiltration_volume

+ 5 - 1
src/pages/main/today/TodayTab.vue Ver arquivo

@@ -103,6 +103,7 @@
103 103
                            :stockType="stockType"
104 104
                            :admin_map="admin_user_map"
105 105
                            :admins="admin_users"
106
+                           :lastDialysisPrescription="lastDialysisPrescription"
106 107
                            ></dialysisPrescription>
107 108
 
108 109
         <accepts v-if="barActive == 2" ref="accepts" :accepts="receiver_treatment_access" :patient_prop="patient"></accepts>
@@ -374,6 +375,7 @@ export default {
374 375
       his_is_open: 0,
375 376
       his_project_is_open: 0,
376 377
       last_prescription: {},
378
+      lastDialysisPrescription:{},
377 379
       system_prescription: {}, // 系统透析模版
378 380
       thoroug_dialog_reset: true,
379 381
       prescription_dialog_reset: true,
@@ -1170,7 +1172,9 @@ export default {
1170 1172
           this.prescription_open = resp.data.prescription_open
1171 1173
 
1172 1174
           var last_prescription = resp.data.last_prescription
1173
-
1175
+         //不按透析模式
1176
+         this.lastDialysisPrescription =  resp.data.lastDialysisPrescription
1177
+         console.log("不按透析模式wowowowo",this.lastDialysisPrescription)
1174 1178
           var system_prescription = resp.data.system_prescription
1175 1179
 
1176 1180
           this.dryWeight = resp.data.dry_weight

+ 3 - 3
src/pages/main/today/dialysisMonitoring.vue Ver arquivo

@@ -26,10 +26,10 @@
26 26
           <th v-if="isShow('置换率')&& (template_id == 6 ||template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 48 || template_id == 53  || template_id == 54 | template_id == 56 || org_id == 10340 || org_id == 10410 || org_id == 10375) && org_id==10558" width="60px" > 置换率 <br />(ml/min) </th>
27 27
           <th v-if="isShow('置换率')&& (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10340  && org_id!=10410 && org_id!=10375) || org_id ==10558" width="60px" > 置换率 <br />(L/h) </th>
28 28
            <th v-if="isShow('置换量')&& (template_id == 43 )" width="50px" > 置换量 <br />(ml/h) </th>
29
-          <th v-if="isShow('置换量')&& ((template_id == 6 && org_id != 9919 && template_id!=43 && org_id!=10478) || (template_id == 10 && org_id!=10191) || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29  || template_id == 46  || template_id == 47 || template_id == 48 || template_id == 53 || template_id == 54 | template_id == 56 || org_id == 10340 || org_id == 10432) && org_id!=10558" width="50px" > 置换量 <br />(ml) </th>
30
-          <th v-if="isShow('置换量')&& ((template_id != 6 || org_id == 9919 || org_id ==10478) && (template_id != 10 || org_id == 10191) && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id!=43 && template_id!=46 && template_id!=47  && template_id!=48  && template_id!=53 && template_id!=54 && template_id!=56 && org_id!=10340  && org_id!=10432) || org_id == 10558" width="50px" > 置换量 <br />(L) </th>
29
+          <th v-if="isShow('置换量')&& ((template_id == 6 && org_id != 9919 && template_id!=43 && org_id!=10478) || (template_id == 10 && org_id!=10191) || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29  || template_id == 46  || template_id == 47 || template_id == 48 || template_id == 53 || template_id == 54 | template_id == 56 || org_id == 10340 || org_id == 10432) && org_id!=10558 && org_id!=10346" width="50px" > 置换量 <br />(ml) </th>
30
+          <th v-if="isShow('置换量')&& ((template_id != 6 || org_id == 9919 || org_id ==10478) && (template_id != 10 || org_id == 10191) && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id!=43 && template_id!=46 && template_id!=47  && template_id!=48  && template_id!=53 && template_id!=54 && template_id!=56 && org_id!=10340  && org_id!=10432) || org_id == 10558 || org_id ==10346" width="50px" > 置换量 <br />(L) </th>
31 31
           <th v-if="isShow('电导度')" width="60px"> 电导度 <br />(mS/cm) </th>
32
-          <th v-if="isShow('置换液流量')" width="70px"> 置换液流量 <br /><span v-if="template_id !=27">(ml/h)</span><span v-if="template_id == 27 || template_id == 29">(ml/min)</span>  </th>
32
+          <th v-if="isShow('置换液流量')" width="70px"> 置换液流量 <br /><span v-if="template_id !=27 && template_id!=29 && template_id!=60">(ml/h)</span><span v-if="template_id == 27 || template_id == 29 || template_id ==60">(ml/min)</span>  </th>
33 33
           <th v-if="isShow('透析液流量')" width="70px"> 透析液流量 <br />(ml/h)  </th>
34 34
 
35 35
           <th v-if="isShow('肝素用量余量')" width="70px"> 肝素用量余量 <br />(ml) </th>

+ 14 - 1
src/pages/main/today/dialysisPrescription.vue Ver arquivo

@@ -26,7 +26,8 @@
26 26
 
27 27
         <li v-if="isShow('处方脱水量')">
28 28
           <label>处方脱水量 :</label>
29
-          <span class="content">{{prescription_water != '0'?prescription_water:''}}ml</span>
29
+          <span class="content" v-if="this.$store.getters.user.template_info.org_id !=10597">{{prescription_water != '0'?prescription_water:''}}ml</span>
30
+          <span class="content" v-if="this.$store.getters.user.template_info.org_id ==10597">{{prescription_water != '0'?prescription_water:''}}L</span>
30 31
         </li>
31 32
 
32 33
         <li v-if="isShow('钙')">
@@ -115,6 +116,8 @@
115 116
              </span>
116 117
             <span class="unit" v-if="this.prescription.anticoagulant == 8">{{anticoagulant_shouji != '0'?"iu":""}}</span>
117 118
             <span class="unit" v-if="this.prescription.anticoagulant == 9">{{anticoagulant_shouji != '0'?"iu":""}}</span>
119
+            <span class="unit" v-if="this.prescription.anticoagulant == 16">{{anticoagulant_shouji != '0'?"iu":""}}</span>
120
+            <span class="unit" v-if="this.prescription.anticoagulant == 17">{{anticoagulant_shouji != '0'?"mg":""}}</span>
118 121
           </span>
119 122
           <span v-else>
120 123
             <span class="unit" v-if="this.prescription.anticoagulant == 2">{{anticoagulant_shouji != '0'?"mg":""}}</span>
@@ -154,6 +157,8 @@
154 157
             </span>
155 158
             <span class="unit" v-if="this.prescription.anticoagulant == 8">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
156 159
             <span class="unit" v-if="this.prescription.anticoagulant == 9">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
160
+            <span class="unit" v-if="this.prescription.anticoagulant == 16">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
161
+            <span class="unit" v-if="this.prescription.anticoagulant == 17">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
157 162
           </span>
158 163
         </li>
159 164
 
@@ -178,6 +183,8 @@
178 183
             </span>
179 184
             <span class="unit" v-if="this.prescription.anticoagulant == 8">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
180 185
             <span class="unit" v-if="this.prescription.anticoagulant == 9">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
186
+            <span class="unit" v-if="this.prescription.anticoagulant == 16">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
187
+            <span class="unit" v-if="this.prescription.anticoagulant == 17">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
181 188
           </span>
182 189
           <span v-else>
183 190
             <span class="unit" v-if="this.prescription.anticoagulant == 2">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
@@ -266,6 +273,12 @@
266 273
 
267 274
         </li>
268 275
 
276
+        <li v-if="isShow('血管通路部位')">
277
+          <label>血管通路部位: </label>
278
+          <span class="content">{{this.prescription.blood_access_part_id}}</span>
279
+          <span class="unit"></span>
280
+        </li>
281
+
269 282
         <li v-if="isShow('血管通路')">
270 283
           <label>血管通路: </label>
271 284
           <span class="content">{{blood_access}}</span>

+ 26 - 1
src/pages/patients/editPatient.vue Ver arquivo

@@ -67,6 +67,18 @@
67 67
         label="家属手机号"
68 68
         placeholder="请输入"
69 69
       />
70
+
71
+      <van-field
72
+          :class="readonly ? 'changeColor' : ''"
73
+          v-model="patientForm.home_address"
74
+          rows="1"
75
+          autosize
76
+          label="家庭地址"
77
+          type="textarea"
78
+          maxlength="50"
79
+          :readonly="readonly"
80
+          placeholder="请输入家庭地址"
81
+        />
70 82
       <van-cell>
71 83
         <!-- 使用 title 插槽来自定义标题 -->
72 84
         <template slot="title">
@@ -265,6 +277,8 @@
265 277
           placeholder="请输入诊疗计划"
266 278
         />
267 279
 
280
+       
281
+
268 282
       <van-field
269 283
           :class="readonly ? 'changeColor' : ''"
270 284
           v-model="patientForm.remark"
@@ -514,7 +528,9 @@ export default {
514 528
         out_reason: '',
515 529
         relative_phone: '',
516 530
         remark: '',
517
-        treatment_plan: ''
531
+        treatment_plan: '',
532
+        home_address:"",
533
+        home_telephone:"",
518 534
       },
519 535
       bloodShow: true,
520 536
       slowShow: false,
@@ -784,6 +800,12 @@ export default {
784 800
         
785 801
           this.patientForm.phone = patientdetail.phone
786 802
           this.patientForm.relative_phone = patientdetail.relative_phone
803
+          console.log("hahhah",this.patientForm.relative_phone)
804
+          if(this.patientForm.relative_phone == ""){
805
+            console.log("进啦为33232",patientdetail.home_telephone)
806
+             this.patientForm.relative_phone = patientdetail.home_telephone
807
+          } 
808
+          this.patientForm.home_address = patientdetail.home_address
787 809
 
788 810
           if (patientdetail.blood_patients == 1) {
789 811
             this.result.push(String(1))
@@ -1190,6 +1212,9 @@ export default {
1190 1212
           this.patientForm.patientsoure = 2
1191 1213
         }
1192 1214
       }
1215
+      if(this.patientForm.patientsoure >2){
1216
+         this.patientForm.patientsoure = parseInt(this.patientForm.patientsoure)
1217
+      }
1193 1218
       if (this.patientForm.lapseto !== '') {
1194 1219
         if (this.patientForm.lapseto === '留治') {
1195 1220
           this.patientForm.lapseto = 1

+ 4 - 0
src/router/index.js Ver arquivo

@@ -625,6 +625,10 @@ export default new Router({
625 625
     path: '/consumablesDetail',
626 626
     component: () => import('@/pages/main/beforeDialysis/consumablesDetail')
627 627
   },
628
+  {
629
+    path: '/consumablesDetailOne',
630
+    component: () => import('@/pages/main/beforeDialysis/consumablesDetailOne')
631
+  },
628 632
   {
629 633
     path: '/adviceDetail',
630 634
     component: () => import('@/pages/main/beforeDialysis/adviceDetail')

+ 120 - 0
src/store/modules/globalConfig.js Ver arquivo

@@ -659,6 +659,96 @@ const global_config = {
659 659
         sodium: 1,
660 660
         calcium: 1,
661 661
         bicarbonate: 1
662
+      },
663
+      32: {
664
+        id: 32,
665
+        name: 'HDP',
666
+        dialysis_duration: 1,
667
+        replacement_way: 2,
668
+        hemodialysis_machine: 1,
669
+        blood_filter: 2,
670
+        perfusion_apparatus: 2,
671
+        blood_flow_volume: 1,
672
+        dialysate_flow: 1,
673
+        kalium: 1,
674
+        sodium: 1,
675
+        calcium: 1,
676
+        bicarbonate: 1
677
+      },
678
+      33: {
679
+        id: 33,
680
+        name: 'HFD',
681
+        dialysis_duration: 1,
682
+        replacement_way: 2,
683
+        hemodialysis_machine: 1,
684
+        blood_filter: 2,
685
+        perfusion_apparatus: 2,
686
+        blood_flow_volume: 1,
687
+        dialysate_flow: 1,
688
+        kalium: 1,
689
+        sodium: 1,
690
+        calcium: 1,
691
+        bicarbonate: 1
692
+      },
693
+      34: {
694
+        id: 34,
695
+        name: 'HDF100',
696
+        dialysis_duration: 1,
697
+        replacement_way: 2,
698
+        hemodialysis_machine: 1,
699
+        blood_filter: 2,
700
+        perfusion_apparatus: 2,
701
+        blood_flow_volume: 1,
702
+        dialysate_flow: 1,
703
+        kalium: 1,
704
+        sodium: 1,
705
+        calcium: 1,
706
+        bicarbonate: 1
707
+      },
708
+      35: {
709
+        id: 35,
710
+        name: 'HDF600',
711
+        dialysis_duration: 1,
712
+        replacement_way: 2,
713
+        hemodialysis_machine: 1,
714
+        blood_filter: 2,
715
+        perfusion_apparatus: 2,
716
+        blood_flow_volume: 1,
717
+        dialysate_flow: 1,
718
+        kalium: 1,
719
+        sodium: 1,
720
+        calcium: 1,
721
+        bicarbonate: 1
722
+      },
723
+      36: {
724
+        id: 36,
725
+        name: 'HDF800',
726
+        dialysis_duration: 1,
727
+        replacement_way: 2,
728
+        hemodialysis_machine: 1,
729
+        blood_filter: 2,
730
+        perfusion_apparatus: 2,
731
+        blood_flow_volume: 1,
732
+        dialysate_flow: 1,
733
+        kalium: 1,
734
+        sodium: 1,
735
+        calcium: 1,
736
+        bicarbonate: 1
737
+      },
738
+      37: {
739
+        id: 37,
740
+        name: 'HDF1000',
741
+        dialysis_duration: 1,
742
+        replacement_way: 2,
743
+        hemodialysis_machine: 1,
744
+        blood_filter: 2,
745
+        perfusion_apparatus: 2,
746
+        blood_flow_volume: 1,
747
+        dialysate_flow: 1,
748
+        kalium: 1,
749
+        sodium: 1,
750
+        calcium: 1,
751
+        bicarbonate: 1
662 752
       }
663 753
 
664 754
     },
@@ -887,6 +977,36 @@ const global_config = {
887 977
         zongliang_unit: 'mg',
888 978
         gaimingcheng_unit: '',
889 979
         gaijiliang_unit: ''
980
+      },
981
+      16: {
982
+        id: 16,
983
+        name: '低分子量肝素钙',
984
+        type: 1,
985
+        shouji: 2,
986
+        weichi: 2,
987
+        zongliang: 2,
988
+        gaimingcheng: -1,
989
+        gaijiliang: -1,
990
+        shouji_unit: 'mg',
991
+        weichi_unit: 'mg/h',
992
+        zongliang_unit: 'mg',
993
+        gaimingcheng_unit: '',
994
+        gaijiliang_unit: ''
995
+      },
996
+      17: {
997
+        id: 17,
998
+        name: '肝素钠',
999
+        type: 1,
1000
+        shouji: 2,
1001
+        weichi: 2,
1002
+        zongliang: 2,
1003
+        gaimingcheng: -1,
1004
+        gaijiliang: -1,
1005
+        shouji_unit: 'mg',
1006
+        weichi_unit: 'mg/h',
1007
+        zongliang_unit: 'mg',
1008
+        gaimingcheng_unit: '',
1009
+        gaijiliang_unit: ''
890 1010
       }
891 1011
       // 6: {
892 1012
       //   id: 6,