瀏覽代碼

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

28169 1 年之前
父節點
當前提交
e81196bdeb

+ 98 - 48
src/xt_pages/dialysis/details/index.vue 查看文件

32
           icon="el-icon-printer"
32
           icon="el-icon-printer"
33
           >打印</el-button
33
           >打印</el-button
34
         >
34
         >
35
-      
35
+
36
       </div>
36
       </div>
37
     </div>
37
     </div>
38
 
38
 
54
         <!-- 候诊区 -->
54
         <!-- 候诊区 -->
55
         <el-tab-pane label="候诊区" name="first">
55
         <el-tab-pane label="候诊区" name="first">
56
           <div class="cell clearfix" style="margin-bottom:10px;">
56
           <div class="cell clearfix" style="margin-bottom:10px;">
57
-            <el-date-picker v-model="selected_date" 
57
+            <el-date-picker v-model="selected_date"
58
               prefix-icon="el-icon-date" @change="handleScheduleDateChange"
58
               prefix-icon="el-icon-date" @change="handleScheduleDateChange"
59
              :editable="false" :clearable="false"
59
              :editable="false" :clearable="false"
60
               style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" >
60
               style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" >
119
               <el-table-column
119
               <el-table-column
120
                 prop="date"
120
                 prop="date"
121
                 label="患者"
121
                 label="患者"
122
-                >
122
+              >
123
                 <template slot-scope="scope">
123
                 <template slot-scope="scope">
124
                   {{ scope.row.patient.name }}
124
                   {{ scope.row.patient.name }}
125
                   <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
125
                   <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
126
                     ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
126
                     ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
127
                   </span>
127
                   </span>
128
+                  <!-- <span class="touxi_cishu"  @click.stop="chishuclick(scope.row.patient.name)">
129
+                    0/4
130
+                  </span> -->
128
                 </template>
131
                 </template>
129
               </el-table-column>
132
               </el-table-column>
130
               <el-table-column
133
               <el-table-column
215
                   <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
218
                   <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
216
                     ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
219
                     ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
217
                   </span>
220
                   </span>
221
+                  <!-- <span class="touxi_cishu"  @click.stop="chishuclick(scope.row.patient.name)">
222
+                    0/4
223
+                  </span> -->
218
                 </template>
224
                 </template>
219
               </el-table-column>
225
               </el-table-column>
220
               <el-table-column
226
               <el-table-column
282
                 </div>
288
                 </div>
283
                 <div class="printCell" style="display:flex;justify-content: space-around;">
289
                 <div class="printCell" style="display:flex;justify-content: space-around;">
284
                   <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
290
                   <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
285
-                  
291
+
286
                   <span style="display: block;width: 50%;">
292
                   <span style="display: block;width: 50%;">
287
                     首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
293
                     首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
288
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
294
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
315
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
321
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
316
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
322
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
317
                   </span>
323
                   </span>
318
-                    </span> 
319
-                
324
+                    </span>
325
+
320
                 </div>
326
                 </div>
321
                 <div class="printCell" style="display:flex;justify-content: space-around;">
327
                 <div class="printCell" style="display:flex;justify-content: space-around;">
322
                   <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
328
                   <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
356
                     iu/h
362
                     iu/h
357
                   </span>
363
                   </span>
358
                   </span>
364
                   </span>
359
-                
365
+
360
                 </div>
366
                 </div>
361
                 <div class="printCell" style="display:flex;justify-content: space-around;">
367
                 <div class="printCell" style="display:flex;justify-content: space-around;">
362
                   <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
368
                   <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
363
-                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138 || $store.getters.xt_user.org.id == 10460">ml</span> 
369
+                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138 || $store.getters.xt_user.org.id == 10460">ml</span>
364
                     <span v-else>L</span>
370
                     <span v-else>L</span>
365
                   </span>
371
                   </span>
366
                   <span style="display: block;width: 50%;">
372
                   <span style="display: block;width: 50%;">
405
 
411
 
406
             <!-- <div v-for="(main_collection,index) in printList" :key="index" style="width: 80%;">
412
             <!-- <div v-for="(main_collection,index) in printList" :key="index" style="width: 80%;">
407
               <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; text-align: center; margin: auto;">
413
               <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; text-align: center; margin: auto;">
408
-              
414
+
409
                 <tr style="height: 20px;">
415
                 <tr style="height: 20px;">
410
                   <td>{{ printDate }}</td>
416
                   <td>{{ printDate }}</td>
411
                   <td>机号:{{ main_collection.number.number }}</td>
417
                   <td>机号:{{ main_collection.number.number }}</td>
477
             <div style="border: 1px solid black;width: 82%;"  >
483
             <div style="border: 1px solid black;width: 82%;"  >
478
               <div style="margin: 5px 0;">
484
               <div style="margin: 5px 0;">
479
                 <span style="font-weight: bolder;">{{main_collection.patient.name}} </span>&nbsp;&nbsp;
485
                 <span style="font-weight: bolder;">{{main_collection.patient.name}} </span>&nbsp;&nbsp;
480
-                 
486
+
481
                 <span>
487
                 <span>
482
                   <span v-if="main_collection.patient.gender==1">男</span>
488
                   <span v-if="main_collection.patient.gender==1">男</span>
483
                   <span v-if="main_collection.patient.gender==2">女</span>
489
                   <span v-if="main_collection.patient.gender==2">女</span>
493
               </div>
499
               </div>
494
               <div style="margin: 5px 0;">
500
               <div style="margin: 5px 0;">
495
                 <span>身高:{{ main_collection.patient.height?main_collection.patient.height:"" }} cm</span>&nbsp;&nbsp;<span>干体重:{{main_collection.assessmentbefor.dry_weight}}kg</span>&nbsp;&nbsp;
501
                 <span>身高:{{ main_collection.patient.height?main_collection.patient.height:"" }} cm</span>&nbsp;&nbsp;<span>干体重:{{main_collection.assessmentbefor.dry_weight}}kg</span>&nbsp;&nbsp;
496
-                 <span>HCT:%</span>&nbsp;&nbsp;<span>KTV目标:</span> 
502
+                 <span>HCT:%</span>&nbsp;&nbsp;<span>KTV目标:</span>
497
               </div>
503
               </div>
498
             </div>
504
             </div>
499
             <div style="height: 30px;width: 82%;border: 1px solid black;">
505
             <div style="height: 30px;width: 82%;border: 1px solid black;">
503
               <div style="display: flex;margin: 5px 0;">
509
               <div style="display: flex;margin: 5px 0;">
504
                 <div style="flex: 1;">透析模式:{{getModeId(main_collection.mode_id)}}</div>
510
                 <div style="flex: 1;">透析模式:{{getModeId(main_collection.mode_id)}}</div>
505
                 <div style="flex: 1;">透析器/灌流器:{{main_collection.prescription.dialyzer_perfusion_apparatus }} </div>
511
                 <div style="flex: 1;">透析器/灌流器:{{main_collection.prescription.dialyzer_perfusion_apparatus }} </div>
506
-              
512
+
507
               </div>
513
               </div>
508
               <div style="display: flex;margin: 5px 0;">
514
               <div style="display: flex;margin: 5px 0;">
509
                 <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
515
                 <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
559
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
565
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
560
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
566
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
561
                   </span>
567
                   </span>
562
-                </span> 
568
+                </span>
563
 
569
 
564
                 <span>
570
                 <span>
565
                   维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
571
                   维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
596
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
602
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
597
                     iu/h
603
                     iu/h
598
                   </span>
604
                   </span>
599
-                </span>  
600
-                
605
+                </span>
606
+
601
                 <span>
607
                 <span>
602
                     总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
608
                     总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
603
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
609
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
691
                 </div>
697
                 </div>
692
                 <div class="printCell" style="display:flex;justify-content: space-around;">
698
                 <div class="printCell" style="display:flex;justify-content: space-around;">
693
                   <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
699
                   <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
694
-                  
700
+
695
                   <span style="display: block;width: 50%;">
701
                   <span style="display: block;width: 50%;">
696
                     首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
702
                     首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
697
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
703
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
724
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
730
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
725
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
731
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
726
                    </span>
732
                    </span>
727
-                    </span> 
728
-                 
733
+                    </span>
734
+
729
                 </div>
735
                 </div>
730
                 <div class="printCell" style="display:flex;justify-content: space-around;">
736
                 <div class="printCell" style="display:flex;justify-content: space-around;">
731
                   <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
737
                   <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
765
                     iu/h
771
                     iu/h
766
                    </span>
772
                    </span>
767
                   </span>
773
                   </span>
768
-                
774
+
769
                 </div>
775
                 </div>
770
                 <div class="printCell" style="display:flex;justify-content: space-around;">
776
                 <div class="printCell" style="display:flex;justify-content: space-around;">
771
                   <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
777
                   <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
772
-                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138">ml</span> 
778
+                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138">ml</span>
773
                     <span v-else>L</span>
779
                     <span v-else>L</span>
774
                   </span>
780
                   </span>
775
                   <span style="display: block;width: 50%;">
781
                   <span style="display: block;width: 50%;">
820
       </span>
826
       </span>
821
     </el-dialog>
827
     </el-dialog>
822
 
828
 
823
-
829
+ <!-- 显示透析日期的弹窗 -->
830
+      <el-dialog
831
+        :title="'患者信息(姓名:'+Dialysis_patient+'、透析号:'+20011120+')'"
832
+        :visible.sync="cishu_dialogVisible"
833
+        width="50%"
834
+        :modal-append-to-body='false'
835
+        :close-on-click-modal="false">
836
+        <div>
837
+          <div style="line-height: 40px;">
838
+            透析频率:HD(每周2次)
839
+          </div>
840
+          <div style="line-height: 40px;">
841
+            已排详情
842
+          </div>
843
+          <div>
844
+            <el-calendar>
845
+              <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法-->
846
+              <template
847
+                slot="dateCell"
848
+                slot-scope="{date, data}">
849
+                <P v-if="data.day.split('-').slice(1).join('-')=='11-27'"
850
+                  style="background: red;color: white;text-align: center;">
851
+                  HD
852
+                </P>
853
+                <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
854
+                  {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : ''}}<br/>
855
+                  <span v-if="data.day.split('-').slice(1).join('-')=='11-27'">上午 门诊</span>
856
+                </p>
857
+
858
+              </template>
859
+            </el-calendar>
860
+          </div>
861
+        </div>
862
+      </el-dialog>
824
     </div>
863
     </div>
825
 
864
 
826
     <div style="width:75%" v-show="!showView">
865
     <div style="width:75%" v-show="!showView">
885
         :lastOrder="lastOrder"
924
         :lastOrder="lastOrder"
886
         :dryWeightList="dryWeightList"
925
         :dryWeightList="dryWeightList"
887
         :docList="docList"
926
         :docList="docList"
888
-       
927
+
889
       >
928
       >
890
       </nav-igation>
929
       </nav-igation>
891
 
930
 
892
-
893
-
894
       <basic-infor
931
       <basic-infor
895
         :patient="patient"
932
         :patient="patient"
896
         :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
933
         :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
906
         title="透析处方"
943
         title="透析处方"
907
       ></dialysis-prescription>
944
       ></dialysis-prescription>
908
 
945
 
909
-
910
-
911
     <!-- <past-data class="往期数据"></past-data> -->
946
     <!-- <past-data class="往期数据"></past-data> -->
912
       <div style="height: 20px;background-color: #f6f8f9"></div>
947
       <div style="height: 20px;background-color: #f6f8f9"></div>
913
       <accepts-assessment
948
       <accepts-assessment
1207
       dialogFormVisible: false,
1242
       dialogFormVisible: false,
1208
       orders: false,
1243
       orders: false,
1209
       loading: false,
1244
       loading: false,
1245
+      cishu_dialogVisible:false,//
1210
       patient_id: 0,
1246
       patient_id: 0,
1211
       date: 0,
1247
       date: 0,
1248
+      dialysis_date:0,
1212
 
1249
 
1213
       longAdvices: [],
1250
       longAdvices: [],
1214
       waitUploadAdvices: [],
1251
       waitUploadAdvices: [],
1334
     var date = this.$route.query.date
1371
     var date = this.$route.query.date
1335
     this.patient_id = patient_id
1372
     this.patient_id = patient_id
1336
     this.date = date
1373
     this.date = date
1337
-
1374
+    this.dialysis_date=
1338
     this.getScheduleDetail()
1375
     this.getScheduleDetail()
1339
     this.getLongAdvice()
1376
     this.getLongAdvice()
1340
 
1377
 
1534
     this.websocketSend(unObj)
1571
     this.websocketSend(unObj)
1535
   },
1572
   },
1536
   methods: {
1573
   methods: {
1574
+    // 透析次数
1575
+    chishuclick(row){
1576
+      this.cishu_dialogVisible=true
1577
+      console.log('ddddddd',row);
1578
+      this.Dialysis_patient=row
1579
+    },
1537
      getNewAge(UUserCard) {
1580
      getNewAge(UUserCard) {
1538
       if (UUserCard != null && UUserCard != '') {
1581
       if (UUserCard != null && UUserCard != '') {
1539
         // 获取年龄
1582
         // 获取年龄
1554
       const params = {
1597
       const params = {
1555
         patient_id: this.patient_id,
1598
         patient_id: this.patient_id,
1556
         schedule_date:this.$route.query.date,
1599
         schedule_date:this.$route.query.date,
1600
+
1557
       }
1601
       }
1558
       getLongAdviceTwo(params).then(rs => {
1602
       getLongAdviceTwo(params).then(rs => {
1559
         var resp = rs.data
1603
         var resp = rs.data
1560
         if (resp.state == 1) {
1604
         if (resp.state == 1) {
1561
           var status = parseInt(resp.data.status)
1605
           var status = parseInt(resp.data.status)
1562
-
1563
           switch (status) {
1606
           switch (status) {
1564
             case 2:
1607
             case 2:
1565
               var totalAdvice = resp.data.advices
1608
               var totalAdvice = resp.data.advices
1626
         this.loading = false
1669
         this.loading = false
1627
         return
1670
         return
1628
       }
1671
       }
1629
-
1672
+      // console.log('kkkkkkk',dateStr);
1630
       this.doctor_advices = []
1673
       this.doctor_advices = []
1631
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
1674
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
1632
 
1675
 
1634
         if (resp.state == 1) {
1677
         if (resp.state == 1) {
1635
           var patient = resp.data.patient // 患者信息
1678
           var patient = resp.data.patient // 患者信息
1636
           var schedual = resp.data.schedual // 患者排班信息
1679
           var schedual = resp.data.schedual // 患者排班信息
1637
-          // console.log("排班22222222222",schedual)
1680
+          console.log("排班22222222222",resp)
1638
           var prescription = resp.data.prescription // 透析处方
1681
           var prescription = resp.data.prescription // 透析处方
1639
 
1682
 
1640
           if (prescription != null) {
1683
           if (prescription != null) {
1708
           var system_prescribe = resp.data.system_prescribe
1751
           var system_prescribe = resp.data.system_prescribe
1709
 
1752
 
1710
           var lastAssessment =  resp.data.lastAssessment
1753
           var lastAssessment =  resp.data.lastAssessment
1711
-          
1754
+
1712
           var lastOrder = resp.data.lastOrder
1755
           var lastOrder = resp.data.lastOrder
1713
           this.lastOrder = lastOrder
1756
           this.lastOrder = lastOrder
1714
           this.$refs.nav.setLastRecord(
1757
           this.$refs.nav.setLastRecord(
1752
           this.safe_package_info = []
1795
           this.safe_package_info = []
1753
           this.aliquid_info = []
1796
           this.aliquid_info = []
1754
 
1797
 
1755
-
1756
-
1757
-
1758
-
1759
           this.niprocart_info = niprocart_info
1798
           this.niprocart_info = niprocart_info
1760
           this.jms_info = jms_info
1799
           this.jms_info = jms_info
1761
           this.fistula_needle_set_info = fistula_needle_set_info
1800
           this.fistula_needle_set_info = fistula_needle_set_info
1770
           this.safe_package_info = safe_package_info
1809
           this.safe_package_info = safe_package_info
1771
           this.aliquid_info = aliquid_info
1810
           this.aliquid_info = aliquid_info
1772
           this.config = config
1811
           this.config = config
1773
-
1812
+            // console.log('sdfdasfda4444444',this.patient);
1774
           this.patient = patient
1813
           this.patient = patient
1814
+          console.log('bbbbbbbcccccccccc',this.patient);
1775
           this.schedual = schedual == null ? { id: 0 } : schedual
1815
           this.schedual = schedual == null ? { id: 0 } : schedual
1776
           this.prescription = prescription == null ? { id: 0 } : prescription
1816
           this.prescription = prescription == null ? { id: 0 } : prescription
1777
           this.solution = solution == null ? { id: 0 } : solution
1817
           this.solution = solution == null ? { id: 0 } : solution
1808
 
1848
 
1809
           var stockType =  resp.data.stockType
1849
           var stockType =  resp.data.stockType
1810
           this.stockType = stockType
1850
           this.stockType = stockType
1811
-          
1851
+
1812
           this.dryWeightList = resp.data.dryWeightList
1852
           this.dryWeightList = resp.data.dryWeightList
1813
           this.docList = resp.data.docList
1853
           this.docList = resp.data.docList
1814
           console.log("doclist-----",this.docList)
1854
           console.log("doclist-----",this.docList)
1870
         }
1910
         }
1871
         if(this.predialysis_evaluation.id > 0){
1911
         if(this.predialysis_evaluation.id > 0){
1872
           this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
1912
           this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
1913
+          this.dialysis_date = parseTime(this.predialysis_evaluation.created_time, '{y}-{m}-{d}')
1914
+          console.log('qqqqqqqqq',this.dialysis_date);
1915
+          // this.dialysis_date=this.predialysis_evaluation.created_time
1873
         }
1916
         }
1874
 
1917
 
1875
         this.loading = false
1918
         this.loading = false
2035
           patientArr.map(item => {
2078
           patientArr.map(item => {
2036
             newArr.push(...item.schedules)
2079
             newArr.push(...item.schedules)
2037
           })
2080
           })
2038
-         
2039
-        
2081
+
2082
+
2040
           console.log("newArrwowowowowoowwowo",newArr)
2083
           console.log("newArrwowowowowoowwowo",newArr)
2041
           this.tableData = newArr
2084
           this.tableData = newArr
2042
           this.getData()
2085
           this.getData()
2207
            return a.sort - b.sort;
2250
            return a.sort - b.sort;
2208
           });
2251
           });
2209
         }
2252
         }
2210
-       
2253
+
2211
 
2254
 
2212
         // console.log('排序',newArr)
2255
         // console.log('排序',newArr)
2213
         this.tableData = newArr
2256
         this.tableData = newArr
2373
           })
2416
           })
2374
           newArr.sort(this.compare('created_time'))
2417
           newArr.sort(this.compare('created_time'))
2375
         }
2418
         }
2376
-      
2419
+
2377
         if(this.org_id == 0 || this.org_id == 10579){
2420
         if(this.org_id == 0 || this.org_id == 10579){
2378
           if(newArr!=null && newArr.length>0){
2421
           if(newArr!=null && newArr.length>0){
2379
             for(let i=0;i<newArr.length;i++){
2422
             for(let i=0;i<newArr.length;i++){
2386
            return a.sort - b.sort;
2429
            return a.sort - b.sort;
2387
           });
2430
           });
2388
         }
2431
         }
2389
-       
2432
+
2390
         this.tableData1 = newArr
2433
         this.tableData1 = newArr
2391
         const name = this.$route.query.patient_name
2434
         const name = this.$route.query.patient_name
2392
         this.tableData1.map((item, index) => {
2435
         this.tableData1.map((item, index) => {
2679
         spinner: 'el-icon-loading',
2722
         spinner: 'el-icon-loading',
2680
         background: 'rgba(0, 0, 0, 0.7)'
2723
         background: 'rgba(0, 0, 0, 0.7)'
2681
        })
2724
        })
2682
-      
2725
+
2683
        var params = {
2726
        var params = {
2684
          patient_id:this.$route.query.patient_id,
2727
          patient_id:this.$route.query.patient_id,
2685
          record_date:this.$route.query.date,
2728
          record_date:this.$route.query.date,
2689
           var list = response.data.data.list
2732
           var list = response.data.data.list
2690
           console.log("listwowoowowowowow",list)
2733
           console.log("listwowoowowowowow",list)
2691
           var assessmentAfterDislysis =  response.data.data.assessmentAfterDislysis
2734
           var assessmentAfterDislysis =  response.data.data.assessmentAfterDislysis
2692
-         
2735
+
2693
           this.printList = list
2736
           this.printList = list
2694
           this.assessmentAfterDislysis = assessmentAfterDislysis
2737
           this.assessmentAfterDislysis = assessmentAfterDislysis
2695
-        
2738
+
2696
           if(this.org_id == 0 || this.org_id ==10469){
2739
           if(this.org_id == 0 || this.org_id ==10469){
2697
             this.centerDialogVisible = true
2740
             this.centerDialogVisible = true
2698
           }else{
2741
           }else{
2817
         }
2860
         }
2818
         return name
2861
         return name
2819
     }
2862
     }
2820
-    
2863
+
2821
   }
2864
   }
2822
 }
2865
 }
2823
 </script>
2866
 </script>
2884
   display: flex;
2927
   display: flex;
2885
   .patientBox{
2928
   .patientBox{
2886
     background: #fff;
2929
     background: #fff;
2930
+    .touxi_cishu{
2931
+      display: inline-block;
2932
+      border: 1px solid #409eff;
2933
+      width: 30px;
2934
+      text-align: center;
2935
+      border-radius: 10px;
2936
+    }
2887
   }
2937
   }
2888
   .tip1{
2938
   .tip1{
2889
     background: #4fc7cb;
2939
     background: #4fc7cb;
2895
     // height: 23px;
2945
     // height: 23px;
2896
     // line-height: 23px;
2946
     // line-height: 23px;
2897
     color: #fff;
2947
     color: #fff;
2898
-   
2948
+
2899
   }
2949
   }
2900
   .tip2{
2950
   .tip2{
2901
     background: #ee8556;
2951
     background: #ee8556;
2953
   }
3003
   }
2954
   .el-table td, .el-table th{
3004
   .el-table td, .el-table th{
2955
     text-align: center;
3005
     text-align: center;
2956
-    
3006
+
2957
   }
3007
   }
2958
   .el-table td{
3008
   .el-table td{
2959
     height: 44px !important;
3009
     height: 44px !important;

+ 92 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

728
     }
728
     }
729
   },
729
   },
730
   methods: {
730
   methods: {
731
+    getZuobiaoGoodStock(){
732
+      var that = this
733
+      axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystockgood', {
734
+      })
735
+        .then(function(response) {
736
+          if (response.data.state == 0) {
737
+            that.$message.error(response.data.msg)
738
+            that.loadingtwo = false
739
+            return false
740
+          } else {
741
+            if (response.data.data.failed_code == -10) {
742
+              that.$confirm(response.data.data.msg, '医保错误信息', {
743
+                confirmButtonText: '确 定',
744
+                type: 'warning'
745
+              }).then(() => {
746
+
747
+              }).catch(() => {
748
+              })
749
+
750
+            } else {
751
+              that.zuobiao_project  = response.data.data.project
752
+              for (let i = 0; i < that.zuobiao_project.length; i++) {
753
+                for (let b = 0; b < that.tabProject.length; b++) {
754
+                  if (that.zuobiao_project[i].bbx01 == that.tabProject[b].bbx01 &&  that.zuobiao_project[i].bby06 == that.tabProject[b].single_dose){
755
+                    console.log( that.zuobiao_project[i].lsqty)
756
+                    console.log( that.tabProject[b].zuobiao_stock_num)
757
+                    that.tabProject[b].zuobiao_stock_num = that.zuobiao_project[i].lsqty
758
+                    that.tabProject[b].price = that.zuobiao_project[i].price
759
+                  }
760
+                }
761
+              }
762
+
763
+
764
+            }
765
+          }
766
+        })
767
+        .catch(function(error) {
768
+        })
769
+
770
+
771
+
772
+
773
+
774
+    },
775
+    getZuobiaoDrugStock(){
776
+      var that = this
777
+      axios.get('http://127.0.0.1:9532' + '/nmg/coordinate/querystockdrug', {})
778
+        .then(function(response) {
779
+          if (response.data.state == 0) {
780
+            that.$message.error(response.data.msg)
781
+            that.loadingtwo = false
782
+            return false
783
+          } else {
784
+            if (response.data.data.failed_code == -10) {
785
+              that.$confirm(response.data.data.msg, '医保错误信息', {
786
+                confirmButtonText: '确 定',
787
+                type: 'warning'
788
+              }).then(() => {
789
+
790
+              }).catch(() => {
791
+              })
792
+
793
+            } else {
794
+              that.zuobiao_drug = response.data.data.drug
795
+              console.log('坐标~~坐标')
796
+              console.log(that.zuobiao_drug)
797
+              console.log(response.data.data.drug)
798
+              console.log('坐标~~坐标')
799
+
800
+              // that.zuobiao_project  = response.data.data.project
801
+              //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
802
+              for (let i = 0; i < that.zuobiao_drug.length; i++) {
803
+                for (let b = 0; b < that.drugs.length; b++) {
804
+                  if (that.zuobiao_drug[i].bby01 == that.drugs[b].bby01) {
805
+                    that.drugs[b]['zuobiao_stock_num'] = that.zuobiao_drug[i].sysl
806
+                    that.drugs[b].min_price = that.zuobiao_drug[i].lsj
807
+
808
+                  }
809
+
810
+                }
811
+              }
812
+              console.log('坐标~~坐标')
813
+              console.log(that.drugs)
814
+              console.log('坐标~~坐标')
815
+
816
+            }
817
+          }
818
+        })
819
+        .catch(function(error) {
820
+        })
821
+
822
+    },
731
     getzuobiao(){
823
     getzuobiao(){
732
 
824
 
733
       if(this.org_id == 10206){
825
       if(this.org_id == 10206){

+ 6 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

115
 
115
 
116
           </el-tabs>
116
           </el-tabs>
117
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
117
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
118
+            <el-button size="small" ref="button_three" @click="open_four()" type="primary">刷新库存</el-button>
119
+
120
+
118
             <el-button size="small" ref="button_one" @click="open(1)" type="primary"
121
             <el-button size="small" ref="button_one" @click="open(1)" type="primary"
119
                        v-loading="saveLoading">保存
122
                        v-loading="saveLoading">保存
120
             </el-button>
123
             </el-button>
655
     openPrint() {
658
     openPrint() {
656
       // this.centerDialogVisible = true
659
       // this.centerDialogVisible = true
657
       this.getPrescriptionList(this.patientInfo.id, this.record_date)
660
       this.getPrescriptionList(this.patientInfo.id, this.record_date)
661
+    },open_four(){
662
+      this.$refs.prescriptions.getZuobiaoGoodStock()
663
+      this.$refs.prescriptions.getZuobiaoDrugStock()
658
     },
664
     },
659
-
660
     // 电子病历打印
665
     // 电子病历打印
661
     opentwo(index) {
666
     opentwo(index) {
662
       if (index == 1) {
667
       if (index == 1) {