Browse Source

新分支

28169 1 year ago
parent
commit
8c9263362b

+ 8 - 8
src/xt_pages/device/airDisinfectTwo.vue View File

@@ -1020,7 +1020,7 @@
1020 1020
                     </el-form-item>
1021 1021
 
1022 1022
                     <el-form-item label="消毒科室" label-width="110px" required prop="department">
1023
-                        <el-select v-model="form.department" placeholder="请选择">
1023
+                        <el-select v-model="form.department" placeholder="请选择" >
1024 1024
                           <el-option
1025 1025
                           v-for="(item,index) in disinfectionOfficeList"
1026 1026
                           :key="index"
@@ -1539,12 +1539,12 @@
1539 1539
         changeStore(val){
1540 1540
          
1541 1541
           this.getNewAirDisinfectList()  
1542
-        },  
1543
-      AddCard(){
1544
-        getAirDisinfectLongTime(this.storey).then(response=>{
1542
+        }, 
1543
+        changeStorey(val){
1544
+          console.log("val2o2o2o",val)
1545
+          getAirDisinfectLongTime(val).then(response=>{
1545 1546
           if(response.data.state == 1){
1546 1547
             var list = response.data.data.list
1547
-           
1548 1548
             var first_total_time = 0
1549 1549
             var sencond_total_time = 0
1550 1550
             var third_total_time = 0
@@ -1571,11 +1571,11 @@
1571 1571
             this.last_total_time = last_total_time
1572 1572
            
1573 1573
           }
1574
-          this.dialogFormVisible =  true
1575
-          
1576
-        
1577 1574
          }
1578 1575
         })
1576
+        }, 
1577
+      AddCard(){
1578
+        this.dialogFormVisible =  true
1579 1579
       },
1580 1580
       AddCardOne(){
1581 1581
         getAirDisinfectWayLongTime(this.form.department).then(response=>{

+ 45 - 5
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -75,6 +75,25 @@
75 75
             </template>
76 76
           </el-table-column>
77 77
 
78
+          <el-table-column
79
+            align="center"
80
+            label="拒测血压"
81
+            width="110"
82
+            v-if="isShow('拒测血压')"
83
+          >
84
+            <template slot-scope="scope">
85
+              {{
86
+                scope.row.is_pressure
87
+                  ? scope.row.is_pressure
88
+                  : ""
89
+              }}/{{
90
+                scope.row.is_pressure
91
+                  ? scope.row.is_pressure
92
+                  : ""
93
+              }}
94
+            </template>
95
+          </el-table-column>
96
+
78 97
           <el-table-column
79 98
             prop="pulse_frequency"
80 99
             align="center"
@@ -1660,6 +1679,20 @@
1660 1679
             </el-form-item>
1661 1680
           </el-col>
1662 1681
 
1682
+
1683
+          <el-col :span="24" v-if="isShow('拒测血压')">
1684
+            <el-form-item label="拒测血压:" :prop="isName('拒测血压')">
1685
+              <el-select v-model="form.is_pressure" placeholder="请选择">
1686
+                <el-option
1687
+                  v-for="item in pressureList"
1688
+                  :key="item.id"
1689
+                  :label="item.name"
1690
+                  :value="item.name">
1691
+                </el-option>
1692
+              </el-select>
1693
+            </el-form-item>
1694
+          </el-col>
1695
+
1663 1696
           <!-- </el-row>
1664 1697
 
1665 1698
           <el-row :gutter="20"> -->
@@ -1676,6 +1709,9 @@
1676 1709
               <el-input type="textarea" :rows="4" v-model="form.urr"></el-input>
1677 1710
             </el-form-item>
1678 1711
           </el-col>
1712
+
1713
+
1714
+
1679 1715
           <!-- </el-row>
1680 1716
 
1681 1717
           <el-row :gutter="20"> -->
@@ -1911,6 +1947,7 @@ export default {
1911 1947
         filter_pressure:"",
1912 1948
         replacement_speed:"",
1913 1949
         dicarbonate:"",
1950
+        is_pressure:"",
1914 1951
       },
1915 1952
 
1916 1953
       table_current_row: null,
@@ -1929,7 +1966,11 @@ export default {
1929 1966
       complicationList: [],
1930 1967
       infoDialogVisible:false,
1931 1968
       selected_date:"",
1932
-      remark:""
1969
+      remark:"",
1970
+      pressureList:[
1971
+        {id:1,name:"是"},
1972
+        {id:2,name:"否"}
1973
+      ]
1933 1974
     };
1934 1975
   },
1935 1976
   props: {
@@ -2631,10 +2672,9 @@ export default {
2631 2672
           ? 0
2632 2673
           : parseFloat(this.form.replacement_speed);
2633 2674
 
2634
-          this.form.dicarbonate =
2635
-        parseFloat(this.form.dicarbonate) == NaN
2636
-          ? 0
2637
-          : parseFloat(this.form.dicarbonate);
2675
+       this.form.dicarbonate =parseFloat(this.form.dicarbonate) == NaN ? 0: parseFloat(this.form.dicarbonate);
2676
+       this.form.is_pressure = this.form.is_pressure
2677
+
2638 2678
       let mode = "1";
2639 2679
       if (this.form.id > 0) {
2640 2680
         mode = "2";

+ 2 - 0
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -9,6 +9,7 @@
9 9
           <th v-if="isShow('监测时间')" width="124px">时间</th>
10 10
           <th v-if="isShow('体温')" width="72px">体温(℃)</th>
11 11
           <th v-if="isShow('血压')" width="72px">血压(mmHg)</th>
12
+          <th v-if="isShow('拒测血压')" width="72px">拒测血压</th>
12 13
           <th v-if="isShow('脉搏')" width="80px">脉搏(次/分)</th>
13 14
           <th v-if="isShow('呼吸频率')" width="110px">呼吸频率(次/分)</th>
14 15
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
@@ -55,6 +56,7 @@
55 56
           <td v-if="isShow('监测时间')"> {{ parseTime(monitor.operate_time, "{y}-{m}-{d} {h}:{i}") }} </td>
56 57
           <td v-if="isShow('体温')"> {{ monitor.temperature ? monitor.temperature : "" }} </td>
57 58
           <td v-if="isShow('血压')"> {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/{{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }} </td>
59
+          <th v-if="isShow('拒测血压')" width="72px">{{ monitor.is_pressure }}</th>
58 60
           <td v-if="isShow('脉搏')"> {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }} </td>
59 61
           <td v-if="isShow('呼吸频率')"> {{ monitor.breathing_rate ? monitor.breathing_rate : "" }} </td>
60 62
           <td> {{ monitor.venous_pressure ? monitor.venous_pressure : "" }} /{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}  </td>

+ 2 - 0
src/xt_pages/dialysis/doctorAdvicePrintOne.vue View File

@@ -53,6 +53,8 @@
53 53
                             <span v-if="schedule.mode_id == 13">(CRRT)</span>
54 54
                             <span v-if="schedule.mode_id == 14">(腹水回输)</span>
55 55
                             <span v-if="schedule.mode_id == 24">I-HDF</span>
56
+                            </br>
57
+                            <span v-if="schedule.prescription.anticoagulant==1" style="color:red">无肝素</span>
56 58
                             </td>
57 59
                           
58 60
                    

+ 5 - 0
src/xt_pages/dialysis/newDoctorAdvice.vue View File

@@ -212,6 +212,9 @@
212 212
             <span v-if="scope.row.mode_id == 13">(CRRT)</span>
213 213
             <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
214 214
             <span v-if="scope.row.mode_id == 24">I-HDF</span>
215
+            </br>
216
+
217
+            <span v-if="scope.row.anticoagulant == 1" style="color:red">无肝素</span>
215 218
           </template>
216 219
         </el-table-column>
217 220
         <el-table-column  label="分区床位" width="100">
@@ -1057,6 +1060,7 @@ export default {
1057 1060
                        it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
1058 1061
                        it.dialysis_dialyszers = item.prescription.dialysis_dialyszers
1059 1062
                        it.dialysis_irrigation = item.prescription.dialysis_irrigation
1063
+                       it.anticoagulant = item.prescription.anticoagulant
1060 1064
                     }
1061 1065
                     it.schedule_type = item.schedule_type
1062 1066
                     it.zoneId = item.device_number.zone.id
@@ -1155,6 +1159,7 @@ export default {
1155 1159
                        it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
1156 1160
                        it.dialysis_dialyszers = item.prescription.dialysis_dialyszers
1157 1161
                        it.dialysis_irrigation = item.prescription.dialysis_irrigation
1162
+                       it.anticoagulant = item.prescription.anticoagulant
1158 1163
                     }
1159 1164
                     it.schedule_type = item.schedule_type
1160 1165
                     it.zoneId = item.device_number.zone.id

+ 12 - 22
src/xt_pages/management/components/ManageForm.vue View File

@@ -34,10 +34,10 @@
34 34
             </el-form-item>
35 35
           </el-col>
36 36
 
37
-          <!-- <el-col :span="8">
37
+          <el-col :span="8">
38 38
             <el-form-item
39 39
               label="分区:"
40
-              v-show="bedShow"
40
+              v-show="bedShowTwo"
41 41
               required
42 42
               prop="zone_id"
43 43
             >
@@ -50,7 +50,7 @@
50 50
                 ></el-option>
51 51
               </el-select>
52 52
             </el-form-item>
53
-          </el-col> -->
53
+          </el-col>
54 54
 
55 55
           <el-col :span="8">
56 56
             <el-form-item
@@ -494,12 +494,7 @@ export default {
494 494
           this.deviceType = zones;
495 495
           var numbers = response.data.data.numbers;
496 496
           var devicenumber = response.data.data.devicenumber;
497
-          // console.log('devicenumber$', devicenumber)
498
-          // var device = [{ bed_id: 0, bed_number: '请选择' }]
499
-          // for (let index = 0; index < devicenumber.length; index++) {
500
-          // const item = devicenumber[index]
501
-          // device.push({ bed_id: item.bed_id, bed_number: item.bed_number })
502
-          // }
497
+         
503 498
           this.bedNumber = devicenumber;
504 499
         }
505 500
       });
@@ -603,7 +598,7 @@ export default {
603 598
         }
604 599
         arr1.push(obj.id);
605 600
       });
606
-      // console.log('arrr1', arr1)
601
+     
607 602
       this.form.treat_type = arr1;
608 603
 
609 604
       var device_type = this.form.device_type;
@@ -621,7 +616,7 @@ export default {
621 616
       var machine_statuss = parseInt(machine_status);
622 617
       this.form.machine_status = machine_statuss;
623 618
 
624
-      console.log("购买日期", this.form.buy_date);
619
+
625 620
 
626 621
       if (this.form.Disinfection_mode === "") {
627 622
         this.form.Disinfection_mode = 0;
@@ -714,7 +709,7 @@ export default {
714 709
         }
715 710
         arr1.push(obj.id);
716 711
       });
717
-      // console.log('arrr1', arr1)
712
+     
718 713
       this.form.treat_type = arr1;
719 714
 
720 715
       var device_type = this.form.device_type;
@@ -732,13 +727,7 @@ export default {
732 727
       var machine_statuss = parseInt(machine_status);
733 728
       this.form.machine_status = machine_statuss;
734 729
 
735
-      // if (this.form.bed_number === '') {
736
-      //  this.form.bed_number = 0
737
-      // }
738
-      // var bed_numbers = this.form.bed_number
739
-      // var bed_numberss = parseInt(bed_numbers)
740
-      // this.form.bed_number = bed_numberss
741
-      console.log("购买日期", this.form.buy_date);
730
+ 
742 731
 
743 732
       if (this.form.Disinfection_mode === "") {
744 733
         this.form.Disinfection_mode = 0;
@@ -824,13 +813,14 @@ export default {
824 813
          this.form.zone_id = 0
825 814
       }
826 815
     
827
-      console.log("form23232wo",this.form)
816
+    
817
+    
828 818
       this.$refs[formName].validate(valid => {
829 819
         if (valid) {
830 820
           SaveManageInfoTwo(this.form, this.forms.beds).then(response => {
831 821
             if (response.data.state === 1) {
832 822
               var add = response.data.data.addmacher;
833
-              console.log("add", add);
823
+          
834 824
               this.dialogVisible = false;
835 825
               this.$message.success("保存成功");
836 826
               this.getAllSubregion();
@@ -845,7 +835,7 @@ export default {
845 835
       getAllMode().then(response => {
846 836
         var mode = response.data.data.mode;
847 837
         this.deviceMode = mode;
848
-        console.log("mode", mode);
838
+       
849 839
       });
850 840
     },
851 841
     delManageInfo(){

+ 32 - 18
src/xt_pages/management/home.vue View File

@@ -340,6 +340,20 @@
340 340
                                    </el-form-item>
341 341
                                </el-col>
342 342
                              </el-row>
343
+                             <el-row>
344
+                              <el-col :span="7">
345
+                                   <el-form-item label="分区">
346
+                                    <el-select style="width:135px" v-model="form.zone_id" :disabled="disableFour">
347
+                                      <el-option
348
+                                        v-for="item in this.bedZone"
349
+                                        :key="item.id"
350
+                                        :label="item.name"
351
+                                        :value="item.id"
352
+                                      ></el-option>
353
+                                    </el-select>
354
+                                   </el-form-item>
355
+                               </el-col>
356
+                             </el-row>
343 357
                              <el-row>
344 358
                                <el-col :span="7">
345 359
                                  <el-form-item label="设备名称:" required prop="device_name">
@@ -3355,7 +3369,7 @@ export default {
3355 3369
       getAllSubregion() {
3356 3370
         getAllSubregion().then(response => {
3357 3371
           var zones = response.data.data.zones
3358
-          console.log("zones",zones)
3372
+       
3359 3373
           this.deviceType = zones
3360 3374
           var numbers = response.data.data.numbers
3361 3375
 
@@ -3440,7 +3454,7 @@ export default {
3440 3454
         this.tabIndex = index
3441 3455
       },
3442 3456
       handleCurrentChange(val) {
3443
-        console.log("val3223323223",val)
3457
+      
3444 3458
         // 通过设备型号区分质量控制
3445 3459
         this.device_type = val.device_type
3446 3460
         this.unitType = val.unit_type
@@ -3464,7 +3478,7 @@ export default {
3464 3478
        
3465 3479
       },
3466 3480
       toParent(){
3467
-        console.log("处方23322332")
3481
+      
3468 3482
         this.$refs.childSix.getlist()
3469 3483
       },
3470 3484
       getAutoData(id) {
@@ -3478,7 +3492,7 @@ export default {
3478 3492
         getMachineDetailById(id).then(response => {
3479 3493
           if (response.data.state === 1) {
3480 3494
             var addmacher = response.data.data.addmacher
3481
-            console.log("addmacher",addmacher)
3495
+         
3482 3496
             var warning = response.data.data.warning
3483 3497
 
3484 3498
             var time = this.getTimestamp(this.userform.date) - warning.stime
@@ -3786,6 +3800,10 @@ export default {
3786 3800
         if (this.form.zone_id === '') {
3787 3801
           this.form.zone_id = 0
3788 3802
         }
3803
+        if( this.form.zone_id >0){
3804
+          this.form.zone_id = parseInt(this.form.zone_id)
3805
+        }
3806
+     
3789 3807
 
3790 3808
         this.$refs[formName].validate(valid => {
3791 3809
           if (valid) {
@@ -3900,7 +3918,6 @@ export default {
3900 3918
         getAllPlan().then(response => {
3901 3919
           if (response.data.state === 1) {
3902 3920
             var plan = response.data.data.plan
3903
-            console.log("plan=====",plan )
3904 3921
             for (let index = 0; index < plan.length; index++) {
3905 3922
               if (plan[index].time === 1) {
3906 3923
                 plan[index].time = '周一'
@@ -4040,7 +4057,7 @@ export default {
4040 4057
         getAllPlanDetail(unit_type).then(response => {
4041 4058
           if (response.data.state === 1) {
4042 4059
             var plandetail = response.data.data.plandetail
4043
-            console.log("plandetail",plandetail)
4060
+           
4044 4061
             for (let index = 0; index < plandetail.length; index++) {
4045 4062
               if (plandetail[index].time === 1) {
4046 4063
                 plandetail[index].time = '周一'
@@ -4435,10 +4452,7 @@ export default {
4435 4452
       },
4436 4453
 
4437 4454
       SaveInformation(formName) {
4438
-        // if (this.userform.classtype === '') {
4439
-        //   this.userform.classtype = 0
4440
-        // }
4441
-        console.log("form233232322323",this.userform.classtype)
4455
+     
4442 4456
         if(this.userform.classtype!=""){
4443 4457
           var classtypes = this.userform.classtype
4444 4458
           var classtype = parseInt(classtypes)
@@ -4558,7 +4572,7 @@ export default {
4558 4572
         }
4559 4573
         this.userform.user_total = parseInt(this.userform.user_total)
4560 4574
 
4561
-        console.log("user_form",this.userform)
4575
+
4562 4576
 
4563 4577
         this.$refs[formName].validate((valid) => {
4564 4578
           if (valid) {
@@ -4778,7 +4792,7 @@ export default {
4778 4792
            this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
4779 4793
          }
4780 4794
 
4781
-        console.log("3333333",this.qualityForm)
4795
+      
4782 4796
 
4783 4797
         this.$refs[formName].validate(response => {
4784 4798
           SaveBacteria(this.equimentid, this.qualityForm).then(response => {
@@ -5124,7 +5138,7 @@ export default {
5124 5138
         getTimeBeteen(id, todayTime).then(response => {
5125 5139
           if (response.data.state === 1) {
5126 5140
             var timedata = response.data.data.timeData
5127
-            // console.log("timedata----------------------",timedata)
5141
+           
5128 5142
             if (timedata.length === 0) {
5129 5143
               this.warnShow = false
5130 5144
             }
@@ -5173,7 +5187,7 @@ export default {
5173 5187
             this.userform.bed_number = ''
5174 5188
             var change = response.data.data.change
5175 5189
             this.bedNumberTwo = change
5176
-            // console.log('change', change)
5190
+          
5177 5191
           }
5178 5192
         })
5179 5193
       },
@@ -5254,7 +5268,7 @@ export default {
5254 5268
             saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
5255 5269
               if (response.data.state === 1) {
5256 5270
                 var oxygenates = response.data.data.oxygenates
5257
-                console.log("oxygenates",oxygenates)
5271
+                
5258 5272
                 this.$message.success('保存成功')
5259 5273
                 this.qualityFormFour.specimenb = ''
5260 5274
                 this.qualityFormFour.concentrate_noc = ''
@@ -5298,7 +5312,7 @@ export default {
5298 5312
             saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
5299 5313
               if (response.data.state === 1) {
5300 5314
                 var hadwater = response.data.data.hadwater
5301
-                console.log("hadwater",hadwater)
5315
+            
5302 5316
                 this.$message.success('保存成功')
5303 5317
                 this.qualityFormFive.specimenb = ''
5304 5318
                 this.qualityFormFive.concentrate_noc = ''
@@ -5341,7 +5355,7 @@ export default {
5341 5355
             saveWater(this.equimentid, this.qualityFormSix).then(response => {
5342 5356
               if (response.data.state === 1) {
5343 5357
                 var deviceWater = response.data.data.deviceWater
5344
-                console.log("deviceWater",deviceWater)
5358
+              
5345 5359
                 this.$message.success('保存成功')
5346 5360
                 this.qualityFormSix.specimenb = ''
5347 5361
                 this.qualityFormSix.concentrate_noc = ''
@@ -5386,7 +5400,7 @@ export default {
5386 5400
             saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
5387 5401
               if (response.data.state === 1) {
5388 5402
                 var devicePh = response.data.data.devicePh
5389
-                console.log("devicePh",devicePh)
5403
+             
5390 5404
                 this.$message.success('保存成功')
5391 5405
                 this.qualityFormSeven.specimenb = ''
5392 5406
                 this.qualityFormSeven.concentrate_noc = ''

+ 13 - 1
src/xt_pages/management/index.vue View File

@@ -124,7 +124,10 @@
124 124
         </el-table-column>
125 125
 
126 126
         <el-table-column label="分区" align="center">
127
-          <template slot-scope="scope">{{ scope.row.name }}</template>
127
+          <template slot-scope="scope">
128
+            <span v-if="scope.row.device_type!='水处理机'"> {{ scope.row.name }}</span> 
129
+            <span v-if="scope.row.device_type=='水处理机'"> {{getZoneName(scope.row.zone_id)  }}</span> 
130
+          </template>
128 131
         </el-table-column>
129 132
 
130 133
         <el-table-column label="机位号" align="center">
@@ -416,6 +419,15 @@ export default {
416 419
           this.$message.success("保存成功!")
417 420
         }
418 421
       })
422
+    },
423
+    getZoneName(val){
424
+     var zone_name= ""
425
+     for(let i=0;i<this.zones.length;i++){
426
+       if(val == this.zones[i].id){
427
+          zone_name = this.zones[i].name
428
+       }
429
+     }
430
+     return zone_name
419 431
     }
420 432
   },
421 433
   created() {

+ 3 - 0
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -867,6 +867,7 @@ export default {
867 867
 
868 868
             break
869 869
           case 1:
870
+            console.log("wowowoowowow",this.un_cure_data)
870 871
             let arr3 = []
871 872
             for (let i = 0; i < this.un_cure_data.length; i++) {
872 873
               if (this.un_cure_data[i].name.indexOf(this.search_input) != -1 || this.un_cure_data[i].number.indexOf(this.search_input) != -1) {
@@ -921,6 +922,7 @@ export default {
921 922
 
922 923
           //排班
923 924
           for (let i = 0; i < response.data.data.list_two.length; i++) {
925
+            console.log("hahhahahahahahahah",response.data.data.list_two)
924 926
             //未就诊
925 927
             if (response.data.data.list_two[i].prescription.length == 0 && response.data.data.list_two[i].his_patient.id == 0) {
926 928
               let obj = {
@@ -1488,6 +1490,7 @@ export default {
1488 1490
           this.$message.error(response.data.msg)
1489 1491
           return false
1490 1492
         } else {
1493
+          console.log("getSchedulePatientList",response.data.data.list_two)
1491 1494
           //排班
1492 1495
           for (let i = 0; i < response.data.data.list_two.length; i++) {
1493 1496
             //未就诊

+ 128 - 1
src/xt_pages/stock/drugs/drugStockFlow.vue View File

@@ -49,6 +49,9 @@
49 49
             </el-option>
50 50
         </el-select>
51 51
         
52
+        <span>
53
+          <el-button type="primary" size="small" @click="toExprot">导出</el-button>
54
+        </span>
52 55
         
53 56
       </div>
54 57
       
@@ -597,7 +600,131 @@
597 600
         }
598 601
       }
599 602
       return max_str + min_str;
600
-     }
603
+     },
604
+
605
+     toExprot(){
606
+      import('@/vendor/Export2Excel').then(excel => { 
607
+         
608
+        console.log("tableList",this.tableList)
609
+
610
+        if(this.tableList!=null && this.tableList.length>0){
611
+          for(let i=0;i<this.tableList.length;i++){
612
+
613
+              this.tableList[i].index = i+1
614
+             if(this.tableList[i].consumable_type == 1){
615
+               this.tableList[i].consumable_type_name = "手动入库"
616
+             }
617
+             if(this.tableList[i].consumable_type == 2){
618
+               this.tableList[i].consumable_type_name = "手动出库"
619
+             }
620
+             if(this.tableList[i].consumable_type == 3){
621
+               this.tableList[i].consumable_type_name = "自动出库"
622
+             }
623
+             if(this.tableList[i].consumable_type == 4){
624
+               this.tableList[i].consumable_type_name = "手动退库"
625
+             }
626
+             if(this.tableList[i].consumable_type == 5){
627
+               this.tableList[i].consumable_type_name = "报损数量"
628
+             }
629
+             if(this.tableList[i].consumable_type == 7){
630
+               this.tableList[i].consumable_type_name = "自动退库"
631
+             }
632
+             if(this.tableList[i].consumable_type == 10){
633
+               this.tableList[i].consumable_type_name = "盘盈"
634
+             }
635
+             if(this.tableList[i].consumable_type == 11){
636
+               this.tableList[i].consumable_type_name = "盘亏"
637
+             }
638
+             if(this.tableList[i].consumable_type == 12){
639
+               this.tableList[i].consumable_type_name = "调拨出库"
640
+             }
641
+             if(this.tableList[i].consumable_type == 13){
642
+               this.tableList[i].consumable_type_name = "调拨入库"
643
+             }
644
+             if(this.tableList[i].consumable_type == 15){
645
+               this.tableList[i].consumable_type_name = "结算出库"
646
+             }
647
+
648
+        
649
+            if(this.tableList[i].consumable_type == 1){
650
+              this.tableList[i].order_number = this.tableList[i].warehousing_order
651
+            }
652
+            if(this.tableList[i].consumable_type == 2){
653
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
654
+            }
655
+            if(this.tableList[i].consumable_type == 3){
656
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
657
+            }
658
+            if(this.tableList[i].consumable_type == 4 || this.tableList[i].consumable_type == 7){
659
+              this.tableList[i].order_number = this.tableList[i].cancel_order_number
660
+            }
661
+            if(this.tableList[i].consumable_type == 10){
662
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
663
+            }
664
+            if(this.tableList[i].consumable_type == 11){
665
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
666
+            }
667
+            if(this.tableList[i].consumable_type == 12){
668
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
669
+            }
670
+            if(this.tableList[i].consumable_type == 13){
671
+              this.tableList[i].order_number = this.tableList[i].warehousing_order
672
+            }
673
+            if(this.tableList[i].consumable_type == 15){
674
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
675
+            }
676
+
677
+            this.tableList[i].record_time = this.getTime(this.tableList[i].ctime)
678
+          
679
+            this.tableList[i].storehouse_name = this.getHouseName(this.tableList[i].storehouse_id)
680
+
681
+
682
+            
683
+            if(this.tableList[i].consumable_type!=2 && this.tableList[i].consumable_type!=3 && this.tableList[i].consumable_type!=5 &&  this.tableList[i].consumable_type != 7){
684
+              this.tableList[i].coutn_unit = (this.tableList[i].count.toString()) +this.tableList[i].max_unit
685
+            }
686
+            if(this.tableList[i].consumable_type == 2 ||this.tableList[i].consumable_type == 3 || this.tableList[i].consumable_type == 5 ||  this.tableList[i].consumable_type ==7  && (parseInt(this.tableList[i].count/this.tableList[i].BaseDrugLib.min_number) >0)){
687
+              this.tableList[i].coutn_unit = (parseInt(this.tableList[i].count/this.tableList[i].BaseDrugLib.min_number)).toString() +  this.tableList[i].BaseDrugLib.max_unit
688
+            }
689
+            if(this.tableList[i].consumable_type == 2 ||this.tableList[i].consumable_type == 3 || this.tableList[i].consumable_type == 5 ||  this.tableList[i].consumable_type ==7  && (this.tableList[i].count%this.tableList[i].BaseDrugLib.min_number >0)){
690
+              this.tableList[i].coutn_unit = (parseInt(this.tableList[i].count%this.tableList[i].BaseDrugLib.min_number)).toString() +  this.tableList[i].BaseDrugLib.min_unit
691
+            }
692
+
693
+            if(this.tableList[i].price>0){
694
+              this.tableList[i].total_price = this.tableList[i].price
695
+            }
696
+            if(this.tableList[i].price == 0){
697
+              this.tableList[i].total_price = this.getPrice(this.tableList[i].drug_id)
698
+            }
699
+
700
+            this.tableList[i].expire_date_name = this.getTime(this.tableList[i].expire_date,"{y}-{h}-{d}")
701
+            this.tableList[i].manufacturer_name = this.getManufacturer( this.tableList[i].manufacturer)
702
+            this.tableList[i].patient_name = this.getPatientName(this.tableList[i].patient_id) 
703
+            this.tableList[i].over_count_name = this.getDrugCount(this.tableList[i].over_count,this.tableList[i].BaseDrugLib.max_unit,this.tableList[i].BaseDrugLib.min_unit,this.tableList[i].BaseDrugLib.min_number)
704
+
705
+          }
706
+        }
707
+      
708
+       
709
+        const multiHeader =['序号','出入库方式','出入库单据编码','操作日期','仓库名称','数量','单价','有效期','使用人','剩余库存']
710
+      
711
+        const filterVal = ['index', 'consumable_type_name', 'order_number', 'record_time', 'storehouse_name', 'coutn_unit', 'total_price', 'expire_date_name','patient_name','over_count_name']
712
+        
713
+
714
+        const data = this.formatJson(filterVal, this.tableList) 
715
+        console.log("datawoowow",data)
716
+         
717
+      
718
+         excel.export_json_to_excel({
719
+           header: multiHeader,
720
+           data,
721
+           filename: '药品流水'
722
+         })
723
+       })
724
+    },
725
+    formatJson(filterVal, jsonData) {
726
+     return jsonData.map(v => filterVal.map(j => v[j]))
727
+    },
601 728
     }
602 729
   }
603 730
 </script>

+ 115 - 1
src/xt_pages/stock/stockFlow.vue View File

@@ -48,6 +48,11 @@
48 48
               :value="item.id">
49 49
             </el-option>
50 50
         </el-select>
51
+
52
+        <span>
53
+          <el-button type="primary" size="small" @click="toExprot">导出</el-button>
54
+        </span>
55
+       
51 56
       </div>
52 57
       
53 58
        <el-table
@@ -490,7 +495,116 @@
490 495
           }
491 496
        }
492 497
        return name
493
-     }
498
+     },
499
+     toExprot(){
500
+      import('@/vendor/Export2Excel').then(excel => { 
501
+         
502
+        console.log("tableList",this.tableList)
503
+
504
+        if(this.tableList!=null && this.tableList.length>0){
505
+          for(let i=0;i<this.tableList.length;i++){
506
+              this.tableList[i].index = i+1
507
+             if(this.tableList[i].consumable_type == 1){
508
+               this.tableList[i].consumable_type_name = "手动入库"
509
+             }
510
+             if(this.tableList[i].consumable_type == 2){
511
+               this.tableList[i].consumable_type_name = "手动出库"
512
+             }
513
+             if(this.tableList[i].consumable_type == 3){
514
+               this.tableList[i].consumable_type_name = "自动出库"
515
+             }
516
+             if(this.tableList[i].consumable_type == 4){
517
+               this.tableList[i].consumable_type_name = "手动退库"
518
+             }
519
+             if(this.tableList[i].consumable_type == 7){
520
+               this.tableList[i].consumable_type_name = "自动退库"
521
+             }
522
+             if(this.tableList[i].consumable_type == 10){
523
+               this.tableList[i].consumable_type_name = "盘盈"
524
+             }
525
+             if(this.tableList[i].consumable_type == 11){
526
+               this.tableList[i].consumable_type_name = "盘亏"
527
+             }
528
+             if(this.tableList[i].consumable_type == 12){
529
+               this.tableList[i].consumable_type_name = "调拨出库"
530
+             }
531
+             if(this.tableList[i].consumable_type == 13){
532
+               this.tableList[i].consumable_type_name = "调拨入库"
533
+             }
534
+             if(this.tableList[i].consumable_type == 15){
535
+               this.tableList[i].consumable_type_name = "结算出库"
536
+             }
537
+
538
+            if(this.tableList[i].consumable_type == 1){
539
+              this.tableList[i].order_number = this.tableList[i].warehousing_order
540
+            }
541
+            if(this.tableList[i].consumable_type == 2){
542
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
543
+            }
544
+            if(this.tableList[i].consumable_type == 3){
545
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
546
+            }
547
+            if(this.tableList[i].consumable_type == 5){
548
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
549
+            }
550
+            if(this.tableList[i].consumable_type == 12){
551
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
552
+            }
553
+            if(this.tableList[i].consumable_type == 15){
554
+              this.tableList[i].order_number = this.tableList[i].warehouse_out_order_number
555
+            }
556
+            if(this.tableList[i].consumable_type == 4 || this.tableList[i].consumable_type == 7){
557
+              this.tableList[i].order_number = this.tableList[i].cancel_order_number
558
+            }
559
+            if(this.tableList[i].consumable_type == 7){
560
+              this.tableList[i].order_number = this.tableList[i].cancel_order_number
561
+            }
562
+
563
+            if(this.tableList[i].consumable_type == 11|| this.tableList[i].consumable_type == 13 ||this.tableList[i].consumable_type == 10 ){
564
+              this.tableList[i].warehousing_order = this.tableList[i].warehousing_order
565
+            }
566
+          
567
+
568
+            this.tableList[i].record_time = this.getTime(this.tableList[i].ctime)
569
+          
570
+            this.tableList[i].storehouse_name = this.getHouseName(this.tableList[i].storehouse_id)
571
+          
572
+            this.tableList[i].coutn_unit = (this.tableList[i].count.toString()) +this.packing_unit
573
+
574
+            if(this.tableList[i].price>0){
575
+              this.tableList[i].total_price = this.tableList[i].price
576
+            }
577
+            if(this.tableList[i].price == 0){
578
+              this.tableList[i].total_price = this.tableList[i].packing_price
579
+            }
580
+
581
+            this.tableList[i].expire_date_name = this.getTime(this.tableList[i].expire_date,"{y}-{h}-{d}")
582
+            this.tableList[i].manufacturer_name = this.getManufacturer( this.tableList[i].manufacturer)
583
+            this.tableList[i].patient_name = this.getPatientName(this.tableList[i].patient_id) 
584
+
585
+          }
586
+        }
587
+      
588
+       
589
+        const multiHeader =['序号','出入库方式','出入库单据编码','操作日期','仓库名称','数量','单价','有效期','生产商','使用人','剩余库存']
590
+      
591
+        const filterVal = ['index', 'consumable_type_name', 'order_number', 'record_time', 'storehouse_name', 'coutn_unit', 'total_price', 'expire_date_name','manufacturer_name','patient_name','over_count']
592
+        
593
+
594
+        const data = this.formatJson(filterVal, this.tableList) 
595
+        console.log("datawoowow",data)
596
+
597
+         excel.export_json_to_excel({
598
+           header: multiHeader,
599
+           data,
600
+           filename: '耗材流水'
601
+         })
602
+       })
603
+    },
604
+    formatJson(filterVal, jsonData) {
605
+     return jsonData.map(v => filterVal.map(j => v[j]))
606
+    },
607
+
494 608
     }
495 609
   }
496 610
 </script>

+ 182 - 23
src/xt_pages/workforce/scheduleTablePrintTwo.vue View File

@@ -49,35 +49,50 @@
49 49
                   <span v-if="item.Mon_M.patient_id">
50 50
                     <span>{{ item.Mon_M.patient }} </span><br/>
51 51
                     <span >{{ item.Mon_M.mode_name }}</span><br/>
52
-                    <span v-show="showflag">{{item.Mon_M.dialysis_machine_name}}</span>
52
+                    <span v-if="org_id==10469 || org_id ==0">{{getAnticoagulant(item.Mon_M.anticoagulant)}}</span><br/>
53
+                    <span v-show="showflag">{{item.Mon_M.dialysis_machine_name}}
54
+                   
55
+                    </span>
53 56
                   </span>
54 57
                 </td>
55 58
                 <td style="min-width:50px;" v-if="first_day == 1">
56 59
                   <span v-if="item.Mon_A.patient_id">
57 60
                     <span>{{ item.Mon_A.patient }} </span><br/>
58 61
                     <span >{{ item.Mon_A.mode_name }}</span><br/>
59
-                    <span v-show="showflag">{{item.Mon_A.dialysis_machine_name}}</span>
62
+                     <span v-if="org_id==10469 || org_id == 0">{{getAnticoagulant(item.Mon_A.anticoagulant)  }}</span>
63
+                    <span v-show="showflag">{{item.Mon_A.dialysis_machine_name}}
64
+                     
65
+                    </span>
60 66
                   </span>
61 67
                 </td>
62 68
                 <td style="min-width:50px;" v-if="first_day == 1">
63 69
                     <span v-if="item.Mon_N.patient_id">
64 70
                         <span>{{ item.Mon_N.patient }} </span><br/>
65 71
                         <span >{{ item.Mon_N.mode_name }}</span><br/>
66
-                        <span v-show="showflag">{{item.Mon_N.dialysis_machine_name}}</span>
72
+                        <span v-if="org_id ==10469 || org_id == 0">{{getAnticoagulant(item.Mon_N.anticoagulant)  }}</span>
73
+                        <span v-show="showflag">{{item.Mon_N.dialysis_machine_name}}
74
+                         
75
+                        </span>
67 76
                     </span>
68 77
                 </td>
69 78
                 <td style="min-width:50px;"  v-if="second_day == 2">
70 79
                     <span v-if="item.Tue_M.patient_id">
71 80
                         <span>{{ item.Tue_M.patient }} </span><br/>
72 81
                         <span >{{ item.Tue_M.mode_name }}</span><br/>
73
-                        <span v-show="showflag">{{item.Tue_M.dialysis_machine_name}}</span>
82
+                        <span v-if="org_id==0||org_id==10469">{{getAnticoagulant(item.Tue_M.anticoagulant )  }}</span><br/>
83
+                        <span v-show="showflag">{{item.Tue_M.dialysis_machine_name}}
84
+                         
85
+                        </span>
74 86
                     </span>
75 87
                 </td>
76 88
                 <td style="min-width:50px;"  v-if="second_day == 2">
77 89
                     <span v-if="item.Tue_A.patient_id">
78 90
                       <span>{{ item.Tue_A.patient }} </span><br/>
79 91
                         <span >{{ item.Tue_A.mode_name }}</span><br/>
80
-                        <span v-show="showflag">{{item.Tue_A.dialysis_machine_name}}</span>
92
+                        <span v-if="org_id ==0||org_id == 10469">{{ getAnticoagulant(item.Tue_A.anticoagulant)}}</span>
93
+                        <span v-show="showflag">{{item.Tue_A.dialysis_machine_name}}
94
+                         
95
+                        </span>
81 96
 
82 97
                     </span>
83 98
                 </td>
@@ -85,105 +100,151 @@
85 100
                     <span v-if="item.Tue_N.patient_id">
86 101
                       <span>{{ item.Tue_N.patient }} </span><br/>
87 102
                         <span >{{ item.Tue_N.mode_name }}</span><br/>
88
-                        <span v-show="showflag">{{item.Tue_N.dialysis_machine_name}}</span>
103
+                        <span v-if="org_id==0||org_id ==10469">{{getAnticoagulant(item.Tue_N.anticoagulant)  }}</span>
104
+                        <span v-show="showflag">{{item.Tue_N.dialysis_machine_name}}
105
+                          
106
+                        </span>
89 107
                     </span>
90 108
                 </td>
91 109
                 <td style="min-width:50px;" v-if="three_day == 3">
92 110
                     <span v-if="item.Wed_M.patient_id">
93 111
                       <span>{{ item.Wed_M.patient }} </span><br/>
94 112
                         <span >{{ item.Wed_M.mode_name }}</span><br/>
95
-                        <span v-show="showflag">{{item.Wed_M.dialysis_machine_name}}</span>
113
+                        <span v-if="org_id == 0 || org_id ==10469">{{getAnticoagulant(item.Wed_M.anticoagulant)  }}</span><br/>
114
+                        <span v-show="showflag">{{item.Wed_M.dialysis_machine_name}}
115
+                          
116
+                        </span>
96 117
                     </span>
97 118
                 </td>
98 119
                 <td style="min-width:50px;" v-if="three_day == 3">
99 120
                     <span v-if="item.Wed_A.patient_id">
100 121
                       <span>{{ item.Wed_A.patient }} </span><br/>
101 122
                         <span >{{ item.Wed_A.mode_name }}</span><br/>
102
-                        <span v-show="showflag">{{item.Wed_A.dialysis_machine_name}}</span>
123
+                        <span v-if="org_id ==0||org_id ==10469">{{getAnticoagulant(item.Wed_A.anticoagulant)}}</span>
124
+                        <span v-show="showflag">{{item.Wed_A.dialysis_machine_name}}
125
+                         
126
+                        </span>
103 127
                     </span>
104 128
                 </td>
105 129
                 <td style="min-width:50px;" v-if="three_day == 3">
106 130
                     <span v-if="item.Wed_N.patient_id">
107 131
                       <span>{{ item.Wed_N.patient }} </span><br/>
108 132
                         <span >{{ item.Wed_N.mode_name }}</span><br/>
109
-                        <span v-show="showflag">{{item.Wed_N.dialysis_machine_name}}</span>
133
+                        <span v-if="org_id ==0 || org_id ==10469">{{ getAnticoagulant(item.Wed_N.anticoagulant) }}</span>
134
+                        <span v-show="showflag">{{item.Wed_N.dialysis_machine_name}}
135
+                         
136
+                        </span>
110 137
                     </span>
111 138
                 </td>
112 139
                 <td style="min-width:50px;" v-if="four_day == 4">
113 140
                     <span v-if="item.Thurs_M.patient_id">
114 141
                       <span>{{ item.Thurs_M.patient }} </span><br/>
115 142
                         <span >{{ item.Thurs_M.mode_name }}</span><br/>
116
-                        <span v-show="showflag">{{item.Thurs_M.dialysis_machine_name}}</span>
143
+                        <span v-if="org_id == 0||org_id ==10469">{{ getAnticoagulant(item.Thurs_M.anticoagulant) }}</span>
144
+                        <span v-show="showflag">{{item.Thurs_M.dialysis_machine_name}}
145
+                         
146
+                        </span>
117 147
                     </span>
118 148
                 </td>
119 149
                 <td style="min-width:50px;" v-if="four_day == 4">
120 150
                     <span v-if="item.Thurs_A.patient_id">
121 151
                       <span>{{ item.Thurs_A.patient }} </span><br/>
122 152
                         <span >{{ item.Thurs_A.mode_name }}</span><br/>
123
-                        <span v-show="showflag">{{item.Thurs_A.dialysis_machine_name}}</span>
153
+                        <span v-if="org_id ==0||org_id ==10469">{{getAnticoagulant(item.Thurs_A.anticoagulant) }}</span> 
154
+
155
+                        <span v-show="showflag">{{item.Thurs_A.dialysis_machine_name}}
156
+                        
157
+                        </span>
124 158
                     </span>
125 159
                 </td>
126 160
                 <td style="min-width:50px;" v-if="four_day == 4">
127 161
                     <span v-if="item.Thurs_N.patient_id">
128 162
                       <span>{{ item.Thurs_N.patient }} </span><br/>
129 163
                         <span >{{ item.Thurs_N.mode_name }}</span><br/>
130
-                        <span v-show="showflag">{{item.Thurs_N.dialysis_machine_name}}</span>
164
+                        <span v-if="org_id ==0 || org_id ==10469" >{{ getAnticoagulant(item.Thurs_N.anticoagulant) }}</span> 
165
+                        <span v-show="showflag">{{item.Thurs_N.dialysis_machine_name}}
166
+                         
167
+                        </span>
131 168
                     </span>
132 169
                 </td>
133 170
                 <td style="min-width:50px;" v-if="five_day == 5">
134 171
                     <span v-if="item.Fri_M.patient_id">
135 172
                       <span>{{ item.Fri_M.patient }} </span><br/>
136 173
                         <span >{{ item.Fri_M.mode_name }}</span><br/>
137
-                        <span v-show="showflag">{{item.Fri_M.dialysis_machine_name}}</span>
174
+                        <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Fri_M.anticoagulant) }} </span><br/>
175
+                        <span v-show="showflag">{{item.Fri_M.dialysis_machine_name}}
176
+                          
177
+                        </span>
138 178
                     </span>
139 179
                 </td>
140 180
                 <td style="min-width:50px;" v-if="five_day == 5">
141 181
                     <span v-if="item.Fri_A.patient_id">
142 182
                       <span>{{ item.Fri_A.patient }} </span><br/>
143 183
                         <span >{{ item.Fri_A.mode_name }}</span><br/>
144
-                        <span v-show="showflag">{{item.Fri_A.dialysis_machine_name}}</span>
184
+                        <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Fri_A.anticoagulant) }}</span> 
185
+                        <span v-show="showflag">{{item.Fri_A.dialysis_machine_name}}
186
+                          
187
+                        </span>
145 188
                     </span>
146 189
                 </td>
147 190
                 <td style="min-width:50px;" v-if="five_day == 5">
148 191
                     <span v-if="item.Fri_N.patient_id">
149 192
                       <span>{{ item.Fri_N.patient }} </span><br/>
150 193
                         <span >{{ item.Fri_N.mode_name }}</span><br/>
151
-                        <span v-show="showflag">{{item.Fri_N.dialysis_machine_name}}</span>
194
+                        <span v-if="org_id == 0||org_id ==10469">{{getAnticoagulant(item.Fri_N.anticoagulant)  }}</span>
195
+                        <span v-show="showflag">{{item.Fri_N.dialysis_machine_name}}
196
+                          
197
+                        </span>
152 198
                     </span>
153 199
                 </td>
154 200
                 <td style="min-width:50px;" v-if="six_day == 6">
155 201
                     <span v-if="item.Sat_M.patient_id">
156 202
                       <span>{{ item.Sat_M.patient }} </span><br/>
157 203
                         <span >{{ item.Sat_M.mode_name }}</span><br/>
158
-                        <span v-show="showflag">{{item.Sat_M.dialysis_machine_name}}</span>
204
+                        <span v-if="org_id ==0 || org_id ==10469">{{ getAnticoagulant(item.Sat_M.anticoagulant) }}</span> 
205
+                        <span v-show="showflag">{{item.Sat_M.dialysis_machine_name}}
206
+                         
207
+                        </span>
159 208
                     </span>
160 209
                 </td>
161 210
                 <td style="min-width:50px;" v-if="six_day == 6">
162 211
                     <span v-if="item.Sat_A.patient_id">
163 212
                       <span>{{ item.Sat_A.patient }} </span><br/>
164 213
                         <span >{{ item.Sat_A.mode_name }}</span><br/>
165
-                        <span v-show="showflag">{{item.Sat_A.dialysis_machine_name}}</span>
214
+                        <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Sat_A.anticoagulant) }}</span> 
215
+                        <span v-show="showflag">{{item.Sat_A.dialysis_machine_name}}
216
+                          
217
+                        </span>
166 218
                     </span>
167 219
                 </td>
168 220
                 <td style="min-width:50px;" v-if="six_day == 6">
169 221
                     <span v-if="item.Sat_N.patient_id">
170 222
                       <span>{{ item.Sat_N.patient }} </span><br/>
171 223
                         <span >{{ item.Sat_N.mode_name }}</span><br/>
172
-                        <span v-show="showflag">{{item.Sat_N.dialysis_machine_name}}</span>
224
+                        <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Sat_N.anticoagulant) }}</span> 
225
+                        <span v-show="showflag">{{item.Sat_N.dialysis_machine_name}}
226
+                         
227
+                        </span>
173 228
                     </span>
174 229
                 </td>
175 230
                 <td style="min-width:50px;" v-if="seven_day == 7">
176 231
                     <span v-if="item.Sun_M.patient_id">
177 232
                       <span>{{ item.Sun_M.patient }} </span><br/>
178 233
                         <span >{{ item.Sun_M.mode_name }}</span><br/>
179
-                        <span v-show="showflag">{{item.Sun_M.dialysis_machine_name}}</span>
234
+                        <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Sun_M.anticoagulant) }}</span>
235
+                        <span v-show="showflag">{{item.Sun_M.dialysis_machine_name}}
236
+                         
237
+                        </span>
180 238
                     </span>
181 239
                 </td>
182 240
                 <td style="min-width:50px;" v-if="seven_day == 7">
183 241
                     <span v-if="item.Sun_A.patient_id">
184 242
                       <span>{{ item.Sun_A.patient }} </span><br/>
185 243
                         <span >{{ item.Sun_A.mode_name }}</span><br/>
186
-                        <span v-show="showflag">{{item.Sun_A.dialysis_machine_name}}</span>
244
+                        <span v-if="org_id ==0 || org_id ==10469">{{getAnticoagulant(item.Sun_A.anticoagulant)}}</span>
245
+                        <span v-show="showflag">{{item.Sun_A.dialysis_machine_name}}
246
+                         
247
+                        </span>
187 248
 
188 249
                     </span>
189 250
                 </td>
@@ -191,7 +252,10 @@
191 252
                     <span v-if="item.Sun_N.patient_id">
192 253
                       <span>{{ item.Sun_N.patient }} </span><br/>
193 254
                         <span >{{ item.Sun_N.mode_name }}</span><br/>
194
-                        <span v-show="showflag">{{item.Sun_N.dialysis_machine_name}}</span>
255
+                        <span v-if="org_id ==0||org_id ==10469">{{ getAnticoagulant(item.Sun_N.anticoagulant ) }}</span>
256
+                        <span v-show="showflag">{{item.Sun_N.dialysis_machine_name}}
257
+                          
258
+                        </span>
195 259
                     </span>
196 260
                 </td>
197 261
                 <!-- <td>{{item.total}}</td> -->
@@ -243,9 +307,11 @@ export default {
243 307
            five_day:0,
244 308
            six_day:0,
245 309
            seven_day:0,
310
+           org_id:0
246 311
         }
247 312
     },
248 313
     created(){
314
+        this.org_id = this.$store.getters.xt_user.org.id
249 315
         this.getAllZones()
250 316
         this.modeOptions = this.$store.getters.treatment_mode;
251 317
         this.partition_id = this.$route.query.partition_id
@@ -375,6 +441,7 @@ export default {
375 441
                               patient: '',
376 442
                               type:1,
377 443
                             dialysis_machine_name:"",
444
+                            anticoagulant:"",
378 445
                           },
379 446
                           Mon_A: {
380 447
                               schedule_id: 0,
@@ -384,6 +451,7 @@ export default {
384 451
                               patient: '',
385 452
                               type:1,
386 453
                             dialysis_machine_name:"",
454
+                            anticoagulant:""
387 455
 
388 456
                           },
389 457
                           Mon_N: {
@@ -394,6 +462,7 @@ export default {
394 462
                               patient: '',
395 463
                               type:1,
396 464
                             dialysis_machine_name:"",
465
+                            anticoagulant:""
397 466
 
398 467
                           },
399 468
                           Tue_M: {
@@ -404,6 +473,7 @@ export default {
404 473
                               patient: '',
405 474
                               type:1,
406 475
                             dialysis_machine_name:"",
476
+                            anticoagulant:""
407 477
 
408 478
                           },
409 479
                           Tue_A: {
@@ -414,6 +484,7 @@ export default {
414 484
                               patient: '',
415 485
                               type:1,
416 486
                             dialysis_machine_name:"",
487
+                            anticoagulant:""
417 488
 
418 489
 
419 490
                           },
@@ -425,6 +496,7 @@ export default {
425 496
                               patient: '',
426 497
                               type:1,
427 498
                             dialysis_machine_name:"",
499
+                            anticoagulant:""
428 500
 
429 501
                           },
430 502
                           Wed_M: {
@@ -435,6 +507,7 @@ export default {
435 507
                               patient: '',
436 508
                               type:1,
437 509
                             dialysis_machine_name:"",
510
+                            anticoagulant:""
438 511
 
439 512
                           },
440 513
                           Wed_A: {
@@ -445,6 +518,7 @@ export default {
445 518
                               patient: '',
446 519
                               type:1,
447 520
                             dialysis_machine_name:"",
521
+                            anticoagulant:""
448 522
 
449 523
                           },
450 524
                           Wed_N: {
@@ -455,6 +529,7 @@ export default {
455 529
                               patient: '',
456 530
                               type:1,
457 531
                             dialysis_machine_name:"",
532
+                            anticoagulant:""
458 533
 
459 534
                           },
460 535
                           Thurs_M: {
@@ -465,6 +540,7 @@ export default {
465 540
                               patient: '',
466 541
                               type:1,
467 542
                             dialysis_machine_name:"",
543
+                            anticoagulant:""
468 544
 
469 545
                           },
470 546
                           Thurs_A: {
@@ -475,6 +551,7 @@ export default {
475 551
                               patient: '',
476 552
                               type:1,
477 553
                             dialysis_machine_name:"",
554
+                            anticoagulant:""
478 555
 
479 556
                           },
480 557
                           Thurs_N: {
@@ -485,6 +562,7 @@ export default {
485 562
                               patient: '',
486 563
                               type:1,
487 564
                             dialysis_machine_name:"",
565
+                            anticoagulant:""
488 566
 
489 567
                           },
490 568
                           Fri_M: {
@@ -495,6 +573,7 @@ export default {
495 573
                               patient: '',
496 574
                               type:1,
497 575
                             dialysis_machine_name:"",
576
+                            anticoagulant:""
498 577
 
499 578
                           },
500 579
                           Fri_A: {
@@ -505,6 +584,7 @@ export default {
505 584
                               patient: '',
506 585
                               type:1,
507 586
                             dialysis_machine_name:"",
587
+                            anticoagulant:""
508 588
 
509 589
                           },
510 590
                           Fri_N: {
@@ -515,6 +595,7 @@ export default {
515 595
                               patient: '',
516 596
                               type:1,
517 597
                             dialysis_machine_name:"",
598
+                            anticoagulant:""
518 599
 
519 600
                           },
520 601
                           Sat_M: {
@@ -525,6 +606,7 @@ export default {
525 606
                               patient: '',
526 607
                               type:1,
527 608
                             dialysis_machine_name:"",
609
+                            anticoagulant:""
528 610
 
529 611
                           },
530 612
                           Sat_A: {
@@ -535,6 +617,7 @@ export default {
535 617
                               patient: '',
536 618
                               type:1,
537 619
                             dialysis_machine_name:"",
620
+                            anticoagulant:""
538 621
 
539 622
                           },
540 623
                           Sat_N: {
@@ -545,6 +628,7 @@ export default {
545 628
                               patient: '',
546 629
                               type:1,
547 630
                             dialysis_machine_name:"",
631
+                            anticoagulant:""
548 632
 
549 633
                           },
550 634
                           Sun_A: {
@@ -555,6 +639,7 @@ export default {
555 639
                               patient: '',
556 640
                               type:1,
557 641
                             dialysis_machine_name:"",
642
+                            anticoagulant:""
558 643
 
559 644
                           },
560 645
                           Sun_N: {
@@ -565,6 +650,7 @@ export default {
565 650
                               patient: '',
566 651
                               type:1,
567 652
                             dialysis_machine_name:"",
653
+                            anticoagulant:""
568 654
 
569 655
                           },
570 656
                           Sun_M: {
@@ -575,6 +661,7 @@ export default {
575 661
                               patient: '',
576 662
                               type:1,
577 663
                             dialysis_machine_name:"",
664
+                            anticoagulant:""
578 665
 
579 666
                           },
580 667
                           total: 0
@@ -635,6 +722,7 @@ export default {
635 722
                           patient: "",
636 723
                           type:1,
637 724
                         dialysis_machine_name:"",
725
+                        anticoagulant:"",
638 726
 
639 727
                       };
640 728
                       that.scheduleZone[index].Mon_A = {
@@ -644,6 +732,7 @@ export default {
644 732
                           patient: "",
645 733
                           type:1,
646 734
                         dialysis_machine_name:"",
735
+                        anticoagulant:"",
647 736
 
648 737
                       };
649 738
                       that.scheduleZone[index].Mon_N = {
@@ -653,6 +742,7 @@ export default {
653 742
                           patient: "",
654 743
                           type:1,
655 744
                         dialysis_machine_name:"",
745
+                        anticoagulant:"",
656 746
 
657 747
                       };
658 748
                       that.scheduleZone[index].Tue_M = {
@@ -662,6 +752,7 @@ export default {
662 752
                           patient: "",
663 753
                           type:1,
664 754
                         dialysis_machine_name:"",
755
+                        anticoagulant:"",
665 756
 
666 757
                       };
667 758
                       that.scheduleZone[index].Tue_A = {
@@ -671,6 +762,7 @@ export default {
671 762
                           patient: "",
672 763
                           type:1,
673 764
                         dialysis_machine_name:"",
765
+                        anticoagulant:"",
674 766
 
675 767
                       };
676 768
                       that.scheduleZone[index].Tue_N = {
@@ -680,6 +772,7 @@ export default {
680 772
                           patient: "",
681 773
                           type:1,
682 774
                         dialysis_machine_name:"",
775
+                        anticoagulant:"",
683 776
 
684 777
                       };
685 778
                       that.scheduleZone[index].Wed_M = {
@@ -689,6 +782,7 @@ export default {
689 782
                           patient: "",
690 783
                           type:1,
691 784
                         dialysis_machine_name:"",
785
+                        anticoagulant:"",
692 786
 
693 787
                       };
694 788
                       that.scheduleZone[index].Wed_A = {
@@ -698,6 +792,7 @@ export default {
698 792
                           patient: "",
699 793
                           type:1,
700 794
                         dialysis_machine_name:"",
795
+                        anticoagulant:"",
701 796
 
702 797
                       };
703 798
                       that.scheduleZone[index].Wed_N = {
@@ -707,6 +802,7 @@ export default {
707 802
                           patient: "",
708 803
                           type:1,
709 804
                         dialysis_machine_name:"",
805
+                        anticoagulant:"",
710 806
 
711 807
                       };
712 808
                       that.scheduleZone[index].Thurs_M = {
@@ -716,6 +812,7 @@ export default {
716 812
                           patient: "",
717 813
                           type:1,
718 814
                         dialysis_machine_name:"",
815
+                        anticoagulant:"",
719 816
 
720 817
                       };
721 818
                       that.scheduleZone[index].Thurs_A = {
@@ -725,6 +822,7 @@ export default {
725 822
                           patient: "",
726 823
                           type:1,
727 824
                         dialysis_machine_name:"",
825
+                        anticoagulant:"",
728 826
 
729 827
                       };
730 828
                       that.scheduleZone[index].Thurs_N = {
@@ -734,6 +832,7 @@ export default {
734 832
                           patient: "",
735 833
                           type:1,
736 834
                         dialysis_machine_name:"",
835
+                        anticoagulant:"",
737 836
 
738 837
                       };
739 838
                       that.scheduleZone[index].Fri_M = {
@@ -743,6 +842,7 @@ export default {
743 842
                           patient: "",
744 843
                           type:1,
745 844
                         dialysis_machine_name:"",
845
+                        anticoagulant:"",
746 846
 
747 847
                       };
748 848
                       that.scheduleZone[index].Fri_A = {
@@ -752,6 +852,7 @@ export default {
752 852
                           patient: "",
753 853
                           type:1,
754 854
                         dialysis_machine_name:"",
855
+                        anticoagulant:"",
755 856
 
756 857
                       };
757 858
                       that.scheduleZone[index].Fri_N = {
@@ -761,6 +862,7 @@ export default {
761 862
                           patient: "",
762 863
                           type:1,
763 864
                         dialysis_machine_name:"",
865
+                        anticoagulant:"",
764 866
 
765 867
                       };
766 868
                       that.scheduleZone[index].Sat_M = {
@@ -770,6 +872,7 @@ export default {
770 872
                           patient: "",
771 873
                           type:1,
772 874
                         dialysis_machine_name:"",
875
+                        anticoagulant:"",
773 876
 
774 877
                       };
775 878
                       that.scheduleZone[index].Sat_A = {
@@ -779,6 +882,7 @@ export default {
779 882
                           patient: "",
780 883
                           type:1,
781 884
                         dialysis_machine_name:"",
885
+                        anticoagulant:"",
782 886
 
783 887
                       };
784 888
                       that.scheduleZone[index].Sat_N = {
@@ -788,6 +892,7 @@ export default {
788 892
                           patient: "",
789 893
                           type:1,
790 894
                         dialysis_machine_name:"",
895
+                        anticoagulant:"",
791 896
 
792 897
                       };
793 898
                       that.scheduleZone[index].Sun_A = {
@@ -797,6 +902,7 @@ export default {
797 902
                           patient: "",
798 903
                           type:1,
799 904
                         dialysis_machine_name:"",
905
+                        anticoagulant:"",
800 906
 
801 907
                       };
802 908
                       that.scheduleZone[index].Sun_N = {
@@ -806,6 +912,7 @@ export default {
806 912
                           patient: "",
807 913
                           type:1,
808 914
                         dialysis_machine_name:"",
915
+                        anticoagulant:"",
809 916
 
810 917
                       };
811 918
                       that.scheduleZone[index].Sun_M = {
@@ -815,6 +922,7 @@ export default {
815 922
                           patient: "",
816 923
                           type:1,
817 924
                         dialysis_machine_name:"",
925
+                        anticoagulant:"",
818 926
 
819 927
 
820 928
                       };
@@ -840,8 +948,9 @@ export default {
840 948
                                       patient_id: schedule.patient_id,
841 949
                                       patient: schedule.patient,
842 950
                                       patient_contagions: schedule.patient_contagions,
843
-                                        dialysis_machine_name: schedule.dialysis_machine_name,
844
-                                        mode_name:typeof that.modeOptions[schedule.mode_id] ==="undefined"? "": that.modeOptions[schedule.mode_id].name
951
+                                      dialysis_machine_name: schedule.dialysis_machine_name,
952
+                                      mode_name:typeof that.modeOptions[schedule.mode_id] ==="undefined"? "": that.modeOptions[schedule.mode_id].name,
953
+                                      anticoagulant:schedule.dialysissolution.anticoagulant
845 954
                                       };
846 955
                                       that.scheduleZone[index].total += 1;
847 956
 
@@ -1222,6 +1331,56 @@ export default {
1222 1331
           return this.Screencasting =false
1223 1332
         }
1224 1333
         
1334
+      },
1335
+      getAnticoagulant(val){
1336
+        var name= ""
1337
+        if(val == 1){
1338
+          name ="无肝素"
1339
+        }
1340
+        if(val == 2){
1341
+          name ="普通肝素"
1342
+        }
1343
+        if(val == 3){
1344
+          name ="低分子肝素"
1345
+        }
1346
+        if(val == 4){
1347
+          name ="阿加曲班"
1348
+        }
1349
+        if(val == 5){
1350
+          name ="枸橼酸钠"
1351
+        }
1352
+        if(val == 6){
1353
+          name ="低分子肝素钙"
1354
+        }
1355
+        if(val == 7){
1356
+          name ="低分子肝素钠"
1357
+        }
1358
+        if(val == 8){
1359
+          name ="依诺肝素"
1360
+        }
1361
+        if(val == 9){
1362
+          name ="达肝素"
1363
+        }
1364
+        if(val == 10){
1365
+          name ="体外抗凝"
1366
+        }
1367
+        if(val == 11){
1368
+          name ="那屈肝素"
1369
+        }
1370
+        if(val == 12){
1371
+          name ="无抗凝剂"
1372
+        }
1373
+        if(val == 13){
1374
+          name ="那屈肝素钙"
1375
+        }
1376
+        if(val == 14){
1377
+          name ="肝素钙注射液"
1378
+        }
1379
+        if(val == 15){
1380
+          name ="甲磺酸萘莫司他"
1381
+        }
1382
+
1383
+        return name
1225 1384
       }
1226 1385
     }
1227 1386
 }