Pārlūkot izejas kodu

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

28169 1 gadu atpakaļ
vecāks
revīzija
2fd990bdfb

+ 8 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyTwo.vue Parādīt failu

@@ -67,25 +67,25 @@
67 67
           <div class="inline_block">
68 68
             病区:
69 69
             <div class="under_line" style="width: 50px; text-align: center">
70
-              <span v-if="org_id == 10121||org_id == 10138||org_id == 10414 ||org_id == 10447 || org_id == 0 || org_id ==10460 || org_id ==10567">{{
70
+              <!-- <span v-if="org_id == 10121||org_id == 10138||org_id == 10414 ||org_id == 10447  || org_id ==10460 || org_id ==10567">{{
71 71
                 patientInfo.DialysisSchedule.device_zone.name
72 72
                   ? patientInfo.DialysisSchedule.device_zone.name
73 73
                   : ""
74 74
               }}</span>
75
-              <span v-else>{{ "/" }}</span>
75
+              <span v-else>{{ "/" }}</span> -->
76 76
             </div>
77 77
           </div>
78 78
           <div class="inline_block" >
79 79
             床号:
80 80
             <div class="under_line" style="width: 50px; text-align: center">
81
-              <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id == 0 || org_id ==10460 || org_id ==10515 || org_id == 10567">{{
81
+              <!-- <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id == 0 || org_id ==10460 || org_id ==10515 || org_id == 10567">{{
82 82
                 dialysisOrder &&
83 83
                 dialysisOrder.DeviceNumber &&
84 84
                 dialysisOrder.DeviceNumber.number.length > 0
85 85
                   ? dialysisOrder.DeviceNumber.number
86 86
                   : patientInfo.DialysisSchedule.device_number.number
87 87
               }}</span>
88
-              <span v-else>{{ "/" }}</span>
88
+              <span v-else>{{ "/" }}</span> -->
89 89
             </div>
90 90
           </div>
91 91
           <div class="inline_block">
@@ -1087,7 +1087,7 @@
1087 1087
                   <div style="width: 100%;text-align: center;">
1088 1088
                     <div style="border-bottom: 1px solid black;">治疗记录</div>
1089 1089
                     <div style="display: flex;">
1090
-                      <div style="flex: 0.8;border-right: 1px solid black;">时间</div>
1090
+                      <div style="flex: 0.8;border-right: 1px solid black;"><span>时间</span></div>
1091 1091
                       <div style="flex: 0.8;border-right: 1px solid black;">血压<br/>(mmHg)</div>
1092 1092
                       <div style="flex: 0.9;border-right: 1px solid black;">脉搏<br/>(次/分)</div>
1093 1093
                       <div style="flex: 0.9;border-right: 1px solid black;">血流量<br />(ml/min)</div>
@@ -1096,8 +1096,7 @@
1096 1096
                       <div style="flex: 0.9;border-right: 1px solid black;">钠浓度<br/>(mmol/L)</div>
1097 1097
                       <div style="flex: 0.9;border-right: 1px solid black;">超滤量<br/>(ml)</div>
1098 1098
                       <div style="flex: 1;border-right: 1px solid black;" v-if="prescription.mode_id == 2">置换液速度<br/>(ml/h)</div>
1099
-                      <div style="flex: 1.2;border-right: 1px solid black;" v-if="prescription.anticoagulant_name == 7 && 
1100
-                        prescription.anticoagulant_name != ''">肝素剩余量度(ml)
1099
+                      <div style="flex: 1.2;border-right: 1px solid black;" v-if="prescription.anticoagulant_name=='低分子肝素钠'">肝素剩余量度(ml)
1101 1100
                       </div>
1102 1101
                       <div style="flex: 2;">病情变化及处理</div>
1103 1102
                     </div>
@@ -1151,9 +1150,10 @@
1151 1150
                     <div style="flex: 1;border-right: 1px solid black;" v-if="prescription.mode_id == 2">
1152 1151
                       {{ monitor.replacement_speed ? monitor.replacement_speed : "" }}
1153 1152
                     </div>
1154
-                    <div style="flex: 1.2;border-right: 1px solid black;" v-if="prescription.anticoagulant == 7 && prescription.anticoagulant_name != ''">
1153
+                    <div style="flex: 1.2;border-right: 1px solid black;" v-if="prescription.anticoagulant_name=='低分子肝素钠'">
1155 1154
 
1156 1155
                     </div>
1156
+                    <!-- v-if="prescription.anticoagulant == 7 && prescription.anticoagulant_name != ''" -->
1157 1157
                     <div style="flex: 2;">
1158 1158
                       <div style="min-height: 35px;
1159 1159
                           line-height: 35px; overflow: hidden; "

+ 3 - 6
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Parādīt failu

@@ -1813,7 +1813,7 @@ export default {
1813 1813
             this.$refs.register9504.hide()
1814 1814
             this.loadingone = false
1815 1815
 
1816
-            // this.CheckHISPatient()
1816
+            this.CheckHISPatient()
1817 1817
 
1818 1818
           }
1819 1819
         })
@@ -1846,7 +1846,7 @@ export default {
1846 1846
                   that.changeRadio(1)
1847 1847
                   that.$refs.register9504.hide()
1848 1848
                   that.$message({ message: '挂号成功', type: 'success' })
1849
-                  // that.CheckHISPatient()
1849
+                  that.CheckHISPatient()
1850 1850
 
1851 1851
                 }
1852 1852
               }
@@ -1877,7 +1877,7 @@ export default {
1877 1877
             this.$refs.register.hide()
1878 1878
             this.loadingone = false
1879 1879
 
1880
-            // this.CheckHISPatient(this.record_date,this.patientInfo.id)
1880
+            this.CheckHISPatient(this.record_date,this.patientInfo.id)
1881 1881
 
1882 1882
           }
1883 1883
         })
@@ -3520,7 +3520,6 @@ export default {
3520 3520
         }
3521 3521
         var ids_str = ids.join(',')
3522 3522
         this.temp_ids = ids_str
3523
-        this.newLoading = true
3524 3523
         var that = this
3525 3524
         let form = {}
3526 3525
         form['id'] = this.patientInfo.id
@@ -3574,10 +3573,8 @@ export default {
3574 3573
                   type: 'warning'
3575 3574
                 }).then(() => {
3576 3575
                   that.changeRadioAndPatient(1)
3577
-                  that.newLoading = false
3578 3576
                 }).catch(() => {
3579 3577
                   that.changeRadioAndPatient(1)
3580
-                  that.newLoading = false
3581 3578
                 })
3582 3579
               } else {
3583 3580
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })

+ 202 - 4
src/xt_pages/outpatientCharges/summary.vue Parādīt failu

@@ -145,7 +145,8 @@
145 145
           <!--          </el-button-->
146 146
           <!--          >-->
147 147
 
148
-                     <el-button size="small" type="primary" @click="export_detail_three">报表下载12</el-button>
148
+<!--          <el-button size="small" type="primary" @click="export_detail_three">报表下载12</el-button>-->
149
+          <el-button size="small" type="primary" @click="accounts_click = !accounts_click">门诊结账</el-button>
149 150
           <!-- <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
150 151
           <!-- <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
151 152
           <!--           <el-button size="small" type="primary" @click="export_detail_six">诊疗下载</el-button>-->
@@ -186,6 +187,35 @@
186 187
           align="right"
187 188
         ></el-date-picker>
188 189
       </div>
190
+
191
+      <div style="margin-bottom: 10px;">
192
+        <el-date-picker
193
+          size="small"
194
+          v-model="pay_time"
195
+          prefix-icon="el-icon-date"
196
+          :editable="false"
197
+          :clearable="false"
198
+          style="width:250px; "
199
+          type="datetime"
200
+          placeholder="选择缴费日期"
201
+          format="yyyy-MM-dd HH:mm:ss"
202
+          value-format="yyyy-MM-dd HH:mm:ss"
203
+          align="right"
204
+        ></el-date-picker>
205
+      </div>
206
+
207
+      <div style="margin-bottom: 10px;">
208
+        <el-select size="small" v-model="staff" placeholder="请选择缴费人员"
209
+                   style="width:150px;margin-left:10px;" >
210
+          <el-option
211
+            v-for="item,index in admins"
212
+            :key="index"
213
+            :label="item.user_name"
214
+            :value="item.user_name">
215
+          </el-option>
216
+        </el-select>
217
+      </div>
218
+
189 219
       <el-table
190 220
         :data="tableData"
191 221
         border
@@ -380,8 +410,7 @@
380 410
               type="primary"
381 411
               @click="invoicePrint(scope.row)"
382 412
             >打印发票
383
-            </el-button
384
-            >
413
+            </el-button>
385 414
           </template>
386 415
         </el-table-column>
387 416
       </el-table>
@@ -497,7 +526,111 @@
497 526
         :paramsObj="settlementObj"
498 527
       ></settlement-print>
499 528
     </el-dialog>
529
+    <!-- 门诊结账 -->
530
+    <el-dialog
531
+      class="centerDialog"
532
+      width="70%"
533
+      title="打印"
534
+      :visible.sync="accounts_click"
535
+    >
536
+      <div>
537
+        <div id="accounts_print">
538
+          <div style="text-align: center;font-size: 18px;margin-bottom:20px ;">门诊结账</div>
539
+          <div style="margin: auto;">
540
+            <div style="margin-bottom: 20px;">
541
+              <table class="table" border="1" style="border-collapse: collapse;text-align: center;width: 100%;">
542
+                <tr>
543
+                  <td>起始日期:</td>
544
+                  <td>{{start_time}}</td>
545
+                  <td>终止日期:</td>
546
+                  <td>{{end_time}}</td>
547
+                  <td>缴款日期:</td>
548
+                  <td>{{pay_time}}</td>
549
+                </tr>
550
+                <tr>
551
+                  <td>起始单号:</td>
552
+                  <td>{{tableData2[0].number}}</td>
553
+                  <td>终止单号:</td>
554
+                  <td>{{tableData2[tableData2.length-1].number}}</td>
555
+                  <td>缴款人员:</td>
556
+                  <td>{{staff}}</td>
557
+                </tr>
558
+                <tr>
559
+                  <td>收费张数:</td>
560
+                  <td>{{tableData2.length}}</td>
561
+                  <td>作废张数:</td>
562
+                  <td>0</td>
563
+                  <td>退费张数:</td>
564
+                  <td>0</td>
565
+                </tr>
566
+                <tr>
567
+                  <td>收费金额:</td>
568
+                  <td>{{getTotal()}}</td>
569
+                  <td>作废金额:</td>
570
+                  <td>0</td>
571
+                  <td>退费金额:</td>
572
+                  <td>0</td>
573
+                </tr>
574
+                <tr>
575
+                  <td>合计张数:</td>
576
+                  <td>{{tableData2.length}}</td>
577
+                  <td>合计金额:</td>
578
+                  <td colspan="3">{{getTotal()}}</td>
579
+                </tr>
580
+              </table>
581
+            </div>
582
+            <div style="margin-bottom: 20px;">
583
+              <table class="table" border="1" style="border-collapse: collapse;text-align: center;width: 50%;">
584
+                <tr>
585
+                  <td>医保</td>
586
+                  <td>微信</td>
587
+                  <td>现金</td>
588
+                  <td>门诊预存</td>
589
+                  <td>合计</td>
590
+                </tr>
591
+                <tr>
592
+                  <td>{{getYibao()}}</td>
593
+                  <td>0</td>
594
+                  <td>{{getPsnCash()}}</td>
595
+                  <td>0</td>
596
+                  <td>{{getTotal()}}</td>
597
+                </tr>
598
+              </table>
599
+            </div>
600
+            <div>
601
+              <table class="table" border="1" style="border-collapse: collapse;text-align: center;width: 100%;">
602
+                <tr>
603
+                  <td>单号</td>
604
+                  <td>卡号</td>
605
+                  <td>姓名</td>
606
+                  <td>年龄</td>
607
+                  <td>性别</td>
608
+                  <td>收费金额</td>
609
+                  <td>收费时间</td>
610
+                  <td>类型</td>
611
+                </tr>
612
+                <tr v-for="item in tableData2">
613
+                  <td>{{item.number}}</td>
614
+                  <td>{{item.certno}}</td>
615
+                  <td>{{item.psn_name}}</td>
616
+                  <td>{{item.age}}</td>
617
+                  <td v-if="item.gend == 1">男</td>
618
+                  <td v-if="item.gend != 1">女</td>
619
+                  <td>{{item.medfee_sumamt}}</td>
620
+                  <td>{{item.setl_time}}</td>
621
+                  <td></td>
622
+                </tr>
623
+              </table>
624
+            </div>
625
+          </div>
500 626
 
627
+        </div>
628
+      </div>
629
+      <span slot="footer" class="dialog-footer">
630
+        <el-button @click="accounts_click = false">取 消</el-button>
631
+        <el-button type="primary" @click="accounts_sum">确 定</el-button>
632
+      </span>
633
+    </el-dialog>
501 634
   </div>
502 635
 </template>
503 636
 
@@ -506,6 +639,7 @@
506 639
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
507 640
 import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
508 641
 // import NewStatementPrint from './newStatementPrint'
642
+import { adminMainView} from "@/api/role/admin";
509 643
 import NewStatementPrint from './statementPrint.vue'
510 644
 import listPrint from './listPrint'
511 645
 import allListPrint from './allListPrint'
@@ -547,6 +681,8 @@ export default {
547 681
   },
548 682
   data() {
549 683
     return {
684
+      staff:"",
685
+      admins:[],
550 686
       orderObj: {},
551 687
       batchOrderObj: {},
552 688
       med_options: [
@@ -567,6 +703,7 @@ export default {
567 703
         { path: false, name: '项目消费明细汇总' }
568 704
       ],
569 705
       tableData: [],
706
+      tableData2:[],
570 707
       selecting_schs: [],
571 708
       limit: 10,
572 709
       page: 1,
@@ -576,6 +713,7 @@ export default {
576 713
       medTypeVal: 0,
577 714
       start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
578 715
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
716
+      pay_time:"",
579 717
       total: '',
580 718
       doctors: [],
581 719
       sort_type: 1,
@@ -591,7 +729,8 @@ export default {
591 729
       paramsObj: {},
592 730
       invoiceParams: {},
593 731
       settlementVisible: false,
594
-      settlementObj: {}
732
+      settlementObj: {},
733
+      accounts_click:false,
595 734
     }
596 735
   },
597 736
 
@@ -633,9 +772,60 @@ export default {
633 772
     this.fetchAllAdminUsers()
634 773
     this.getDoctorList()
635 774
     this.getHisOrderList()
775
+    this.getAllstaff()
636 776
   },
637 777
 
638 778
   methods: {
779
+    getPsnCash(){
780
+      let result = 0
781
+      for(let i = 0;i < this.tableData2.length; i++){
782
+        result = result + this.tableData2[i].psn_cash_pay
783
+      }
784
+      return result.toFixed(2)
785
+    },
786
+    getYibao(){
787
+      let result = 0
788
+      for(let i = 0;i < this.tableData2.length; i++){
789
+        result = result + this.tableData2[i].fund_pay_sumamt
790
+      }
791
+      return result.toFixed(2)
792
+    },
793
+    getTotal(){
794
+     let result = 0
795
+      for(let i = 0;i < this.tableData2.length; i++){
796
+        result = result + this.tableData2[i].medfee_sumamt
797
+      }
798
+      return result.toFixed(2)
799
+    },
800
+    getAllstaff(){
801
+      adminMainView()
802
+        .then(rs => {
803
+
804
+          var resp = rs.data;
805
+          if (resp.state === 1) {
806
+            var adminData = resp.data.admins
807
+            this.admins.push(...adminData);
808
+          } else {
809
+            this.$message.error(resp.msg);
810
+          }
811
+        })
812
+        .catch(err => {
813
+          this.$message.error(err);
814
+        });
815
+
816
+
817
+    },
818
+    // 门诊结账
819
+    accounts_sum(){
820
+      const style = '@media print {#accounts_print{font-size:15px} .table tr td{padding:5px 0;}}'
821
+      printJS({
822
+        printable: "accounts_print",
823
+        type: "html",
824
+        style: style,
825
+        scanStyles: false
826
+      });
827
+
828
+    },
639 829
     handleSelectionChange(val) {
640 830
       this.selecting_schs = val
641 831
     },
@@ -3682,6 +3872,7 @@ export default {
3682 3872
           return false
3683 3873
         } else {
3684 3874
           this.tableData = response.data.data.order
3875
+          this.tableData2 =  response.data.data.order2
3685 3876
           this.total = response.data.data.total
3686 3877
         }
3687 3878
       })
@@ -3737,3 +3928,10 @@ export default {
3737 3928
   }
3738 3929
 }
3739 3930
 </script>
3931
+<style lang="scss">
3932
+  .table{
3933
+    tr td{
3934
+      padding:5px 0;
3935
+    }
3936
+  }
3937
+</style>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue Parādīt failu

@@ -261,7 +261,7 @@ export default {
261 261
           console.log("列表", this.projectPrint);
262 262
           this.total = total.toFixed(2);
263 263
           this.pre_time = this.advicePrint[0].pre_time;
264
-          this.doctor = this.advicePrint[0].doctor;
264
+          this.doctor = this.advicePrint[0].creator;
265 265
 
266 266
           this.singleProjectPrint = data2;
267 267
 

+ 42 - 18
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Parādīt failu

@@ -277,7 +277,7 @@
277 277
                                   <el-input style="width:50%;" @input="searchAction"
278 278
                                             @keyup.enter.native='searchAction'
279 279
                                             v-model.trim="search_keyword"
280
-                                            placeholder="请输入药品名字"></el-input>
280
+                                            placeholder="请输入药品名字" :clearable="true"></el-input>
281 281
                                   <el-select style="margin-left:5px;width:50%;" v-model="value" placeholder=""
282 282
                                              @change="changeKind">
283 283
                                       <el-option
@@ -393,7 +393,7 @@
393 393
                                   <el-input style="width:50%;" @input="searchProjectAction"
394 394
                                             @keyup.enter.native='searchProjectAction'
395 395
                                             v-model.trim="search_project_keyword"
396
-                                            placeholder="请输入项目名称"></el-input>
396
+                                            placeholder="请输入项目名称" :clearable="true"></el-input>
397 397
 
398 398
                                   <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
399 399
                                              @change="changeClass">
@@ -1752,23 +1752,34 @@ export default {
1752 1752
       }
1753 1753
       this.$refs.additionalCharges.hide()
1754 1754
 
1755
-    }, searchProjectAction() {
1755
+    }, 
1756
+    // 项目
1757
+    searchProjectAction() {
1756 1758
       console.log('~~~~',this.search_project_keyword)
1757
-      console.log('5555',this.tabProject)
1758
-      console.log('6666',this.allProject)
1759
-      // console.log('4444',this.tabProject[1].first_letter.indexOf(this.search_project_keyword) != -1)
1759
+      const tabProjects = this.allProject
1760
+      console.log('4444',tabProjects)
1760 1761
       if (this.search_project_keyword.length == 0) {
1761 1762
         this.tabProject = this.allProject
1762 1763
       } else {
1763 1764
         let arr = []
1764
-        for (let i = 0; i < this.tabProject.length; i++) {
1765
+
1766
+        for (let i = 0; i < tabProjects.length; i++) {
1765 1767
             // console.log('4444',this.tabProject[i].first_letter.indexOf(this.search_project_keyword) != -1)
1766
-            if (this.tabProject[i].project_name.indexOf(this.search_project_keyword) != -1 ||
1767
-            this.tabProject[i].first_letter.indexOf(this.search_project_keyword) !=-1) {
1768
-              arr = arr.concat(this.tabProject[i])
1768
+            if (tabProjects[i].project_name.indexOf(this.search_project_keyword) != -1 ||
1769
+                tabProjects[i].first_letter.indexOf(this.search_project_keyword) !=-1) {
1770
+              arr = arr.concat(tabProjects[i])
1769 1771
             }
1770 1772
 
1771 1773
         }
1774
+
1775
+        // for (let i = 0; i < this.tabProject.length; i++) {
1776
+        //     // console.log('4444',this.tabProject[i].first_letter.indexOf(this.search_project_keyword) != -1)
1777
+        //     if (this.tabProject[i].project_name.indexOf(this.search_project_keyword) != -1 ||
1778
+        //     this.tabProject[i].first_letter.indexOf(this.search_project_keyword) !=-1) {
1779
+        //       arr = arr.concat(this.tabProject[i])
1780
+        //     }
1781
+
1782
+        // }
1772 1783
         this.tabProject = arr
1773 1784
         console.log('kkkk',this.tabProject);
1774 1785
       }
@@ -1788,22 +1799,34 @@ export default {
1788 1799
       }
1789 1800
 
1790 1801
     },
1802
+    // 药品
1791 1803
     searchAction() {
1804
+      const drug2 =this.allDrugs
1805
+      console.log('this.allDrugs',drug2);
1792 1806
       if (this.search_keyword.length == 0) {
1793 1807
         this.drugs = this.allDrugs
1794 1808
       } else {
1809
+       
1795 1810
         let arr = []
1796
-        for (let i = 0; i < this.drugs.length; i++) {
1797
-          if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
1798
-           this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
1799
-           this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1800
-           this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
1811
+        for (let i = 0; i < drug2.length; i++) {
1812
+          if (drug2[i].drug_name.indexOf(this.search_keyword) != -1 ||
1813
+            drug2[i].wubi.indexOf(this.search_keyword) != -1 ||
1814
+            drug2[i].pinyin.indexOf(this.search_keyword) != -1 ||
1815
+            drug2[i].first_letter.indexOf(this.search_keyword) != -1
1801 1816
            ) {
1802
-            arr = arr.concat(this.drugs[i])
1817
+            arr = arr.concat(drug2[i])
1803 1818
           }
1804 1819
         }
1820
+        // for (let i = 0; i < this.drugs.length; i++) {
1821
+        //   if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
1822
+        //    this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
1823
+        //    this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1824
+        //    this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
1825
+        //    ) {
1826
+        //     arr = arr.concat(this.drugs[i])
1827
+        //   }
1828
+        // }
1805 1829
         this.drugs = arr
1806
-
1807 1830
       }
1808 1831
 
1809 1832
     },
@@ -3877,6 +3900,8 @@ export default {
3877 3900
       getHisProject().then(response => {
3878 3901
         if (response.data.state == 1) {
3879 3902
           var project = response.data.data.project
3903
+          // this.tabProject = project
3904
+          console.log('zzzzzzzzzz',project);
3880 3905
           for (let i = 0; i < project.length; i++) {
3881 3906
             let obj = {
3882 3907
               id: project[i].id,
@@ -3899,7 +3924,6 @@ export default {
3899 3924
               bbx01:project[i].bbx01,
3900 3925
               zuobiao_stock_num:0,
3901 3926
               number:""
3902
-
3903 3927
             }
3904 3928
             this.tabProject.push(obj)
3905 3929
           }

+ 15 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Parādīt failu

@@ -6,7 +6,6 @@
6 6
     <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7 7
       <div class="mainLeft">
8 8
 
9
-
10 9
         <el-date-picker
11 10
           v-model="record_date"
12 11
           prefix-icon="el-icon-date"
@@ -313,7 +312,17 @@
313 312
           <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'
314 313
                       :newHisPatient="hisPatientInfo"></checkPrint>
315 314
         </div>
316
-
315
+        <template>
316
+          <el-button
317
+            style="float:right;"
318
+            size="small"
319
+            icon="el-icon-printer"
320
+            @click="printThisPage"
321
+            type="primary"
322
+          >打印
323
+          </el-button
324
+          >
325
+        </template>
317 326
       </el-dialog>
318 327
       <span slot="footer" class="dialog-footer">
319 328
         <el-button @click="centerDialogVisible = false">取 消</el-button>
@@ -510,7 +519,6 @@
510 519
           </div>
511 520
         </div>
512 521
       </div>
513
-
514 522
       <span slot="footer" class="dialog-footer">
515 523
         <el-button @click="startVisibility = false">取 消</el-button>
516 524
       </span>
@@ -733,7 +741,9 @@ export default {
733 741
       // })
734 742
     },
735 743
     changeOther(patient_id) {
736
-      this.radio = 2
744
+      if(this.radio != 0) {
745
+        this.radio = 2
746
+      }
737 747
       let params = {
738 748
         'record_date': this.record_date,
739 749
         'type': this.radio,
@@ -981,7 +991,7 @@ export default {
981 991
 
982 992
           //排班
983 993
           for (let i = 0; i < response.data.data.list_two.length; i++) {
984
-            console.log('hahhahahahahahahah', response.data.data.list_two)
994
+            // console.log('hahhahahahahahahah', response.data.data.list_two)
985 995
             //未就诊
986 996
             if (response.data.data.list_two[i].prescription.length == 0 && response.data.data.list_two[i].his_patient.id == 0) {
987 997
               let obj = {

+ 13 - 16
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue Parādīt failu

@@ -136,7 +136,7 @@
136 136
                         &nbsp;&nbsp;<span>
137 137
                           {{ it.execution_frequency }}&nbsp;{{
138 138
                             it.delivery_way
139
-                          }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc}}</span>
139
+                          }}&nbsp;共{{ it.day}}天</span>&nbsp;&nbsp;<span>{{ it.advice_desc}}</span>
140 140
                       </template>
141 141
                     </div>
142 142
 
@@ -195,7 +195,7 @@
195 195
                         &nbsp;&nbsp;<span>
196 196
                           {{ it.execution_frequency }}&nbsp;{{
197 197
                             it.delivery_way
198
-                          }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc}}</span>
198
+                          }}&nbsp;共{{ it.day}}天</span><span>{{ it.advice_desc}} </span>
199 199
                       </template>
200 200
                     </div>
201 201
 
@@ -222,7 +222,7 @@
222 222
                       </div> -->
223 223
                   </template>
224 224
                 </div>
225
-                
225
+
226 226
                 <!-------------------------------------------------------------------------->
227 227
                 <!-- <template>
228 228
                   <div v-for="(ite,indexs) in item.arr" :key="indexs">
@@ -279,7 +279,7 @@
279 279
                         <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="item.arr.length>0&&item.arr[0][0].groupno==it.groupno">
280 280
                           &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
281 281
                         </div>
282
-                  
282
+
283 283
                     </template>
284 284
                   </div>
285 285
 
@@ -558,20 +558,17 @@ export default{
558 558
     },
559 559
     getPrescriptionPrint() {
560 560
       var params = {
561
-        // patient_id:this.patient_id,
562
-        // record_date:this.record_date,
563
-        // prescription_id:this.prescription_id,
564 561
         patient_id: this.patient_id,
565 562
         record_date: this.record_date,
566 563
         prescription_id: this.prescription_id,
567 564
         ids: this.ids,
568 565
         p_type: 2,
569 566
       };
570
-      console.log("params", params);
571 567
       getPrescriptionPrint(params).then((response) => {
572 568
         if (response.data.state == 1) {
573 569
           var advicePrint = response.data.data.advicePrint;
574 570
           console.log("adviceprint9999", advicePrint);
571
+          console.log("response.data.data", response.data.data);
575 572
           this.advicePrint = advicePrint;
576 573
           this.prescriptions = advicePrint;
577 574
 
@@ -588,7 +585,7 @@ export default{
588 585
               }
589 586
             }
590 587
           }
591
-          
588
+
592 589
         //   this.advicePrint[i]['advices'][0]['arr'] = arr
593 590
         //  this.advicePrint[i]["arr"]    = arr
594 591
         //  console.log('55555',arr);
@@ -601,11 +598,11 @@ export default{
601 598
             }
602 599
           }
603 600
         }
604
-        
605
-          console.log('4444444',this.advicePrint);
601
+
602
+          // console.log('4444444',this.advicePrint);
606 603
         //  console.log('55555555',this.arr);
607 604
 
608
-          console.log(this.doctorList_1, "医生列表");
605
+          // console.log(this.doctorList_1, "医生列表");
609 606
           if (this.doctorList_1.length > 0) {
610 607
             var operatorsLen = this.doctorList_1.length;
611 608
             for (var index = 0; index < operatorsLen; index++) {
@@ -617,12 +614,12 @@ export default{
617 614
             }
618 615
           }
619 616
 
620
-          console.log("处方222222", this.prescriptions);
617
+          // console.log("处方222222", this.prescriptions);
621 618
           var hisPatient = response.data.data.hisPatient;
622
-          console.log("hisPatient", hisPatient);
619
+          // console.log("hisPatient", hisPatient);
623 620
           this.hisPatient = hisPatient;
624 621
           var projectlist = response.data.data.projectlist;
625
-          console.log("所有项目列表", projectlist);
622
+          // console.log("所有项目列表", projectlist);
626 623
           this.projectList = projectlist;
627 624
         }
628 625
       });
@@ -658,7 +655,7 @@ export default{
658 655
       return name;
659 656
     },
660 657
     getTotalOne(id) {
661
-      console.log('999999999',this.prescriptions);
658
+      // console.log('999999999',this.prescriptions);
662 659
       var total = 0;
663 660
       var addtotal = 0;
664 661
       var zimuyao = 0;

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatPrint.vue Parādīt failu

@@ -16,8 +16,8 @@
16 16
         <!-- 此下条为本地开发下页面 -->
17 17
         <!-- <printTwo v-if="org_id == 4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo> -->
18 18
         <!-- org_id != 10138 && org_id != 10278 && org_id !=4&& org_id !=0 -->
19
-        <printOne v-if="org_id != 10138 && org_id != 10278 && org_id !=4 && org_id != 10375" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
20
-        <printThree v-if=" org_id == 10375 " v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
19
+        <printOne v-if="org_id != 10138 && org_id != 10278 && org_id !=4 && org_id != 10375 && org_id != 0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
20
+        <printThree v-if=" org_id == 10375 ||  org_id == 0 " v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
21 21
         <printTwo v-if="org_id == 10138 || org_id == 10278 || org_id ==4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
22 22
       </div>
23 23
   </div>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printThree.vue Parādīt failu

@@ -77,7 +77,7 @@
77 77
           </div>
78 78
 
79 79
           <div style="display: flex; margin-top: 10px; line-height: 24px;padding: 0 10px;">
80
-              <div style="width: 300px;">开单医生:{{item.doctor?item.doctor:''}}</div>
80
+              <div style="width: 300px;">开单医生:{{item.creator?item.creator:''}}</div>
81 81
               <div style="width: 300px;">签章:</div>
82 82
               <div style="width: 300px;">费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
83 83
           </div>
@@ -493,7 +493,7 @@ export default {
493 493
 
494 494
   .prescriptionBox {
495 495
       padding: 0 10px;
496
-      
496
+
497 497
   }
498 498
 
499 499
   .Rp {

+ 1 - 1
src/xt_pages/outpatientTool/org_export_data.vue Parādīt failu

@@ -26,7 +26,7 @@
26 26
 
27 27
         </div>
28 28
 
29
-        <div v-if="this.$store.getters.xt_user.org_id == 0">
29
+        <div>
30 30
 
31 31
           <el-button size="small" type="primary"
32 32
                      @click="export_detail_9919('1')">职工月结数据导出