Browse Source

提交代码

陈少旭 1 year ago
parent
commit
3caeeb1e03

+ 106 - 30
src/xt_pages/outpatientCharges/summary.vue View File

@@ -145,7 +145,7 @@
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 149
           <el-button size="small" type="primary" @click="accounts_click = !accounts_click">门诊结账</el-button>
150 150
           <!-- <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
151 151
           <!-- <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
@@ -187,6 +187,35 @@
187 187
           align="right"
188 188
         ></el-date-picker>
189 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
+
190 219
       <el-table
191 220
         :data="tableData"
192 221
         border
@@ -503,7 +532,7 @@
503 532
       width="70%"
504 533
       title="打印"
505 534
       :visible.sync="accounts_click"
506
-    > 
535
+    >
507 536
       <div>
508 537
         <div id="accounts_print">
509 538
           <div style="text-align: center;font-size: 18px;margin-bottom:20px ;">门诊结账</div>
@@ -512,41 +541,41 @@
512 541
               <table class="table" border="1" style="border-collapse: collapse;text-align: center;width: 100%;">
513 542
                 <tr>
514 543
                   <td>起始日期:</td>
515
-                  <td></td>
544
+                  <td>{{start_time}}</td>
516 545
                   <td>终止日期:</td>
517
-                  <td></td>
546
+                  <td>{{end_time}}</td>
518 547
                   <td>缴款日期:</td>
519
-                  <td></td>
548
+                  <td>{{pay_time}}</td>
520 549
                 </tr>
521 550
                 <tr>
522 551
                   <td>起始单号:</td>
523
-                  <td></td>
552
+                  <td>{{tableData2[0].number}}</td>
524 553
                   <td>终止单号:</td>
525
-                  <td></td>
554
+                  <td>{{tableData2[tableData2.length-1].number}}</td>
526 555
                   <td>缴款人员:</td>
527
-                  <td></td>
556
+                  <td>{{staff}}</td>
528 557
                 </tr>
529 558
                 <tr>
530 559
                   <td>收费张数:</td>
531
-                  <td></td>
560
+                  <td>{{tableData2.length}}</td>
532 561
                   <td>作废张数:</td>
533
-                  <td></td>
562
+                  <td>0</td>
534 563
                   <td>退费张数:</td>
535
-                  <td></td>
564
+                  <td>0</td>
536 565
                 </tr>
537 566
                 <tr>
538 567
                   <td>收费金额:</td>
539
-                  <td></td>
568
+                  <td>{{getTotal()}}</td>
540 569
                   <td>作废金额:</td>
541
-                  <td></td>
570
+                  <td>0</td>
542 571
                   <td>退费金额:</td>
543
-                  <td></td>
572
+                  <td>0</td>
544 573
                 </tr>
545 574
                 <tr>
546 575
                   <td>合计张数:</td>
547
-                  <td></td>
576
+                  <td>{{tableData2.length}}</td>
548 577
                   <td>合计金额:</td>
549
-                  <td colspan="3"></td>
578
+                  <td colspan="3">{{getTotal()}}</td>
550 579
                 </tr>
551 580
               </table>
552 581
             </div>
@@ -556,15 +585,15 @@
556 585
                   <td>医保</td>
557 586
                   <td>微信</td>
558 587
                   <td>现金</td>
559
-                  <td>门诊预</td>
588
+                  <td>门诊预</td>
560 589
                   <td>合计</td>
561 590
                 </tr>
562 591
                 <tr>
563
-                  <td></td>
564
-                  <td></td>
565
-                  <td></td>
566
-                  <td></td>
567
-                  <td></td>
592
+                  <td>{{getYibao()}}</td>
593
+                  <td>0</td>
594
+                  <td>{{getPsnCash()}}</td>
595
+                  <td>0</td>
596
+                  <td>{{getTotal()}}</td>
568 597
                 </tr>
569 598
               </table>
570 599
             </div>
@@ -580,14 +609,15 @@
580 609
                   <td>收费时间</td>
581 610
                   <td>类型</td>
582 611
                 </tr>
583
-                <tr>
584
-                  <td></td>
585
-                  <td></td>
586
-                  <td></td>
587
-                  <td></td>
588
-                  <td></td>
589
-                  <td></td>
590
-                  <td></td>
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>
591 621
                   <td></td>
592 622
                 </tr>
593 623
               </table>
@@ -609,6 +639,7 @@
609 639
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
610 640
 import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
611 641
 // import NewStatementPrint from './newStatementPrint'
642
+import { adminMainView} from "@/api/role/admin";
612 643
 import NewStatementPrint from './statementPrint.vue'
613 644
 import listPrint from './listPrint'
614 645
 import allListPrint from './allListPrint'
@@ -650,6 +681,8 @@ export default {
650 681
   },
651 682
   data() {
652 683
     return {
684
+      staff:"",
685
+      admins:[],
653 686
       orderObj: {},
654 687
       batchOrderObj: {},
655 688
       med_options: [
@@ -670,6 +703,7 @@ export default {
670 703
         { path: false, name: '项目消费明细汇总' }
671 704
       ],
672 705
       tableData: [],
706
+      tableData2:[],
673 707
       selecting_schs: [],
674 708
       limit: 10,
675 709
       page: 1,
@@ -679,6 +713,7 @@ export default {
679 713
       medTypeVal: 0,
680 714
       start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
681 715
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
716
+      pay_time:"",
682 717
       total: '',
683 718
       doctors: [],
684 719
       sort_type: 1,
@@ -737,9 +772,49 @@ export default {
737 772
     this.fetchAllAdminUsers()
738 773
     this.getDoctorList()
739 774
     this.getHisOrderList()
775
+    this.getAllstaff()
740 776
   },
741 777
 
742 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
+    },
743 818
     // 门诊结账
744 819
     accounts_sum(){
745 820
       const style = '@media print {#accounts_print{font-size:15px} .table tr td{padding:5px 0;}}'
@@ -3797,6 +3872,7 @@ export default {
3797 3872
           return false
3798 3873
         } else {
3799 3874
           this.tableData = response.data.data.order
3875
+          this.tableData2 =  response.data.data.order2
3800 3876
           this.total = response.data.data.total
3801 3877
         }
3802 3878
       })

+ 1 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue View File

@@ -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
 

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

@@ -733,7 +733,9 @@ export default {
733 733
       // })
734 734
     },
735 735
     changeOther(patient_id) {
736
-      this.radio = 2
736
+      if(this.radio != 0) {
737
+        this.radio = 2
738
+      }
737 739
       let params = {
738 740
         'record_date': this.record_date,
739 741
         'type': this.radio,

+ 5 - 5
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue View File

@@ -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
 
@@ -404,7 +404,7 @@
404 404
             <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
405 405
           </div> -->
406 406
           <div  style="border-bottom: 2px solid #000; width: 100%;margin-right: 30px;padding: 0 10px;line-height: 24px;" >
407
-            <p style="text-align: right;">医师:{{ item.doctor ? item.doctor : "" }}</p>
407
+            <p style="text-align: right;">医师:{{ item.creator ? item.creator : "" }}</p>
408 408
           </div>
409 409
           <!-- <div style="display: flex;justify-content: space-around;border-bottom: 2px solid #000;">
410 410
             <p style="width:300px;">大额处方患者意见:
@@ -588,7 +588,7 @@ export default{
588 588
               }
589 589
             }
590 590
           }
591
-          
591
+
592 592
         //   this.advicePrint[i]['advices'][0]['arr'] = arr
593 593
         //  this.advicePrint[i]["arr"]    = arr
594 594
         //  console.log('55555',arr);
@@ -601,7 +601,7 @@ export default{
601 601
             }
602 602
           }
603 603
         }
604
-        
604
+
605 605
           console.log('4444444',this.advicePrint);
606 606
         //  console.log('55555555',this.arr);
607 607
 

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatPrint.vue View File

@@ -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 View File

@@ -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 View File

@@ -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')">职工月结数据导出