Просмотр исходного кода

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

csx 2 лет назад
Родитель
Сommit
87124f7a45

+ 1 - 1
src/xt_pages/hospitalStation/invoicePrint.vue Просмотреть файл

@@ -14,7 +14,7 @@
14 14
     <div class="app-container" style="padding-top:40px;">
15 15
         <div class='dialysisPage'>
16 16
             <printOne v-if="org_id != 10215 && org_id != 10265 && org_id !=0" :paramsObj="invoiceParams"></printOne>
17
-            <printTwo v-if="org_id == 10215  " :paramsObj="invoiceParams"></printTwo>
17
+            <printTwo v-if="org_id == 10215  || org_id == 0 " :paramsObj="invoiceParams"></printTwo>
18 18
             <printThree v-if="org_id == 10265" :paramsObj="invoiceParams"></printThree>
19 19
         </div>
20 20
     </div>

+ 28 - 10
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue Просмотреть файл

@@ -6,14 +6,14 @@
6 6
         </div>
7 7
         <div style="display:flex;justify-content: space-between;">
8 8
             <!-- <div>{{ list.department_name }}</div> -->
9
-            <div  style="position: absolute;top:50px;left:260px">{{ list.his_hospital_record.id_card_no?list.order.certno:''}}</div>
9
+            <div  style="position: absolute;top:50px;left:260px">{{id_card_no?id_card_no:list.order.certno}}</div>
10 10
             <div></div>
11 11
         </div>
12 12
         <div style="display:flex;justify-content: space-between;">
13 13
             <!-- <div>{{ list.department_name }}</div> -->
14 14
             <div  style="position: absolute;top:70px;left:90px">门诊</div>
15 15
             <div></div>
16
-            <div  style="position: absolute;top:70px;left:240px">{{ list.his_hospital_record.number?list.order.mdtrt_id:''}}</div>
16
+            <div  style="position: absolute;top:70px;left:240px">{{ number?number:list.order.mdtrt_id}}</div>
17 17
             <div  style="position: absolute;left:470px;top:70px;">
18 18
                 <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
19 19
             </div>
@@ -33,10 +33,11 @@
33 33
         </div>
34 34
         <div style="display:flex;justify-content: space-between;">
35 35
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
36
-            <div v-if="paramsObj.gend == 1" style="position: absolute;top:110px;left:100px;">√</div>
36
+            <div v-if=" gend == 1" style="position: absolute;top:110px;left:100px;">√</div>
37 37
             <div v-else style="position: absolute;top:110px;left:140px;">√</div>
38
-            <div style="position: absolute;top:110px;left:260px;">{{ list.his_hospital_record.number.length <= 13 ? (totalPrice - list.order.psn_cash_pay).toFixed(2) : '0.00' }}</div>
39
-            <div style="position: absolute;top:110px;left:420px;">{{ list.his_hospital_record.number.length <= 13 ? list.order.psn_cash_pay.toFixed(2) : (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
38
+
39
+            <div style="position: absolute;top:110px;left:260px;">{{ number.length <= 13 ? (totalPrice - list.order.psn_cash_pay).toFixed(2) : '0.00' }}</div>
40
+            <div style="position: absolute;top:110px;left:420px;">{{ number.length <= 13 ? list.order.psn_cash_pay.toFixed(2) : (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
40 41
             <div style="position: absolute;top:110px;left:540px;">现金</div>
41 42
         </div>
42 43
         <div style="display:flex;justify-content: space-between;">
@@ -73,8 +74,10 @@
73 74
             <div style="position: absolute;top:210px;left:50px"></div>
74 75
             <div style="position: absolute;top:210px;left:130px"></div>
75 76
             <div style="position: absolute;top:210px;left:180px"></div>
76
-            <div style="position: absolute;top:210px;left:260px">{{ list.psn_cash_money ? list.psn_cash_money.toFixed(2) : '' }}</div>
77
-            <div style="position: absolute;top:210px;left:340px"></div>
77
+            <div style="position: absolute;top:210px;left:260px" v-if="balance_accounts_type != 2">{{ list.psn_cash_money ? list.psn_cash_money.toFixed(2) : '' }}</div>
78
+          <div style="position: absolute;top:210px;left:260px" v-else>{{ list.order.medfee_sumamt ? list.order.medfee_sumamt : '' }}</div>
79
+
80
+          <div style="position: absolute;top:210px;left:340px"></div>
78 81
             <div style="position: absolute;top:210px;left:420px"></div>
79 82
             <div style="position: absolute;top:210px;left:480px"></div>
80 83
             <div style="position: absolute;top:210px;left:540px"></div>
@@ -157,7 +160,12 @@ export default {
157 160
             org_id:'',
158 161
             org_name:'',
159 162
             in_hosptial_time:'',
160
-            out_hosptial_time:''
163
+            out_hosptial_time:'',
164
+            id_card_no:'',
165
+           number:'',
166
+          balance_accounts_type:"",
167
+          gend:"",
168
+
161 169
         }
162 170
     },
163 171
     created(){
@@ -188,8 +196,18 @@ export default {
188 196
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
189 197
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
190 198
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
191
-                this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
192
-                this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
199
+                if(this.list.his.id > 0){
200
+                  this.in_hosptial_time = this.getTime()
201
+                  this.out_hosptial_time = this.list.order.setl_time.split(' ')[0]
202
+                }else{
203
+                  this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
204
+                  this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
205
+                }
206
+
207
+              this.id_card_no = this.list.his_hospital_record.id_card_no
208
+              this.number = this.list.his_hospital_record.number
209
+              this.balance_accounts_type = this.list.his_hospital_record.balance_accounts_type
210
+              this.gend= this.list.his_hospital_record.gend
193 211
             })
194 212
         },
195 213
         smalltoBIG(n) {

+ 8 - 8
src/xt_pages/hospitalStation/statementTemplate/printOne.vue Просмотреть файл

@@ -365,14 +365,14 @@
365 365
         let yy = new Date().getFullYear();
366 366
         let mm = new Date().getMonth() + 1;
367 367
         let dd = new Date().getDate();
368
-        let hh = new Date().getHours();
369
-        let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
370
-          :
371
-          new Date().getMinutes();
372
-        let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
373
-          :
374
-          new Date().getSeconds();
375
-        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
368
+        // let hh = new Date().getHours();
369
+        // let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
370
+        //   :
371
+        //   new Date().getMinutes();
372
+        // let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
373
+        //   :
374
+        //   new Date().getSeconds();
375
+        dateTime = yy + '-' + mm + '-' + dd
376 376
         return dateTime
377 377
       },
378 378
 

+ 223 - 65
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Просмотреть файл

@@ -46,7 +46,7 @@
46 46
           </el-button>
47 47
         </div>
48 48
         <div>
49
-          <el-table  :data="patientTableData" :height="tableHeight" border style="width: 100%;"
49
+          <el-table :data="patientTableData" :height="tableHeight" border style="width: 100%;"
50 50
                     :row-style="{ color: '#303133' }"
51 51
 
52 52
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
@@ -61,20 +61,20 @@
61 61
             </el-table-column>
62 62
           </el-table>
63 63
 
64
-<!--          <el-table v-else :data="monthChargePatientTableData" :height="tableHeight" border style="width: 100%;"-->
65
-<!--                    :row-style="{ color: '#303133' }"-->
66
-
67
-<!--                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
68
-<!--                    highlight-current-row ref="tab"-->
69
-<!--                    @current-change="handleCurrentChange">-->
70
-<!--            <el-table-column align="center" prop="name" label="姓名" wdith='89'>-->
71
-<!--              <template slot-scope="scope">{{ scope.row.name }}</template>-->
72
-<!--            </el-table-column>-->
73
-<!--            <el-table-column align="center" prop="name" label="就诊号" width="110">-->
74
-<!--              <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}-->
75
-<!--              </template>-->
76
-<!--            </el-table-column>-->
77
-<!--          </el-table>-->
64
+          <!--          <el-table v-else :data="monthChargePatientTableData" :height="tableHeight" border style="width: 100%;"-->
65
+          <!--                    :row-style="{ color: '#303133' }"-->
66
+
67
+          <!--                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
68
+          <!--                    highlight-current-row ref="tab"-->
69
+          <!--                    @current-change="handleCurrentChange">-->
70
+          <!--            <el-table-column align="center" prop="name" label="姓名" wdith='89'>-->
71
+          <!--              <template slot-scope="scope">{{ scope.row.name }}</template>-->
72
+          <!--            </el-table-column>-->
73
+          <!--            <el-table-column align="center" prop="name" label="就诊号" width="110">-->
74
+          <!--              <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}-->
75
+          <!--              </template>-->
76
+          <!--            </el-table-column>-->
77
+          <!--          </el-table>-->
78 78
 
79 79
         </div>
80 80
       </div>
@@ -85,6 +85,22 @@
85 85
 
86 86
 
87 87
           <div>
88
+<!--            <el-button size="small"-->
89
+<!--                       @click="openZb(1)"-->
90
+<!--                       type="primary">登记-->
91
+<!--            </el-button>-->
92
+
93
+<!--            <el-button  size="small"-->
94
+<!--                       @click="openZb(2)"-->
95
+<!--                       type="primary">记账-->
96
+<!--            </el-button>-->
97
+
98
+<!--            <el-button   size="small"-->
99
+<!--                       @click="openZb(3)"-->
100
+<!--                       type="primary">撤销记账-->
101
+<!--            </el-button>-->
102
+
103
+
88 104
             <el-button v-loading="loadingone" size="small"
89 105
                        @click="open(6)"
90 106
                        type="primary">挂号
@@ -381,10 +397,10 @@
381 397
                               </el-button>
382 398
 
383 399
                               <el-button
384
-                                         v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) || items.curMonthPrescriptions.order.order_status == 1 ||  items.curMonthPrescriptions.order.order_status == 3"
385
-                                         size="small"
386
-                                         @click="open(4,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
387
-                                         type="primary">收费
400
+                                  v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) || items.curMonthPrescriptions.order.order_status == 1 ||  items.curMonthPrescriptions.order.order_status == 3"
401
+                                  size="small"
402
+                                  @click="open(4,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
403
+                                  type="primary">收费
388 404
                               </el-button>
389 405
                             </div>
390 406
                           </div>
@@ -575,32 +591,32 @@
575 591
                                 type="primary"
576 592
                             >修改医疗类型
577 593
                             </el-button>
578
-<!--                            <div style="margin-bottom:10px;float: right">-->
579
-<!--                              <div>-->
580
-<!--                                <el-button-->
581
-<!--                                    v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0)"-->
582
-<!--                                    size="small"-->
583
-<!--                                    @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
584
-<!--                                    type="primary"-->
585
-<!--                                >预结算-->
586
-<!--                                </el-button>-->
587
-<!--                                <el-button-->
588
-<!--                                    v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2"-->
589
-<!--                                    size="small"-->
590
-<!--                                    @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
591
-<!--                                    type="primary"-->
592
-<!--                                >撤销明细-->
593
-<!--                                </el-button>-->
594
-
595
-
596
-<!--                                <el-button v-loading="loadingtwo"-->
597
-<!--                                           v-if="(hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3"-->
598
-<!--                                           size="small"-->
599
-<!--                                           @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"-->
600
-<!--                                           type="primary">收费-->
601
-<!--                                </el-button>-->
602
-<!--                              </div>-->
603
-<!--                            </div>-->
594
+                            <!--                            <div style="margin-bottom:10px;float: right">-->
595
+                            <!--                              <div>-->
596
+                            <!--                                <el-button-->
597
+                            <!--                                    v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0)"-->
598
+                            <!--                                    size="small"-->
599
+                            <!--                                    @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
600
+                            <!--                                    type="primary"-->
601
+                            <!--                                >预结算-->
602
+                            <!--                                </el-button>-->
603
+                            <!--                                <el-button-->
604
+                            <!--                                    v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2"-->
605
+                            <!--                                    size="small"-->
606
+                            <!--                                    @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
607
+                            <!--                                    type="primary"-->
608
+                            <!--                                >撤销明细-->
609
+                            <!--                                </el-button>-->
610
+
611
+
612
+                            <!--                                <el-button v-loading="loadingtwo"-->
613
+                            <!--                                           v-if="(hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3"-->
614
+                            <!--                                           size="small"-->
615
+                            <!--                                           @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"-->
616
+                            <!--                                           type="primary">收费-->
617
+                            <!--                                </el-button>-->
618
+                            <!--                              </div>-->
619
+                            <!--                            </div>-->
604 620
                           </el-tab-pane>
605 621
 
606 622
 
@@ -746,7 +762,8 @@
746 762
         width="30%"
747 763
     >
748 764
       <span>是否修改医疗类型</span>
749
-      <el-select v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217" style="width:50%;" v-model="temp_med_type"
765
+      <el-select v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217"
766
+                 style="width:50%;" v-model="temp_med_type"
750 767
                  placeholder="医疗类型" @change="changevalue">
751 768
         <el-option
752 769
             v-for="(item,index) in registerThree"
@@ -756,7 +773,8 @@
756 773
         </el-option>
757 774
       </el-select>
758 775
 
759
-      <el-select v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217" style="width:50%;" v-model="temp_med_type"
776
+      <el-select v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217"
777
+                 style="width:50%;" v-model="temp_med_type"
760 778
                  placeholder="医疗类型" @change="changevalue">
761 779
         <el-option
762 780
             v-for="(item,index) in register"
@@ -855,8 +873,7 @@ import {
855 873
   Refund,
856 874
   refundNumber,
857 875
   register,
858
-  upload,
859
-
876
+  upload
860 877
 } from '@/api/his/his'
861 878
 import RegisterDialog from './components/registerDialog'
862 879
 import treatPrint from './treatPrint'
@@ -890,9 +907,9 @@ export default {
890 907
   },
891 908
   data() {
892 909
     return {
893
-      monthChargePatientTableData:[],
894
-      invoiceVisible:false,
895
-      invoiceParams:null,
910
+      monthChargePatientTableData: [],
911
+      invoiceVisible: false,
912
+      invoiceParams: null,
896 913
       temp_med_type: '',
897 914
       dialogVisible: false,
898 915
       pwdFormVisible: false,
@@ -957,7 +974,6 @@ export default {
957 974
         { value: '1402', label: '门诊特殊病(1402)' },
958 975
         { value: '0', label: '自费' }
959 976
 
960
-
961 977
       ],
962 978
       register_two: [
963 979
         { value: '11', label: '普通门诊' },
@@ -986,7 +1002,7 @@ export default {
986 1002
 
987 1003
       other_start_time_two: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
988 1004
       other_end_time_two: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
989
-      adminUserOptions:[],
1005
+      adminUserOptions: [],
990 1006
       curMonthPrescriptions: null,
991 1007
       newCurMonthPrescriptions: null,
992 1008
       big_month_prescriptions: [],
@@ -1310,8 +1326,6 @@ export default {
1310 1326
         }
1311 1327
       })
1312 1328
 
1313
-
1314
-
1315 1329
     },
1316 1330
     changeEndTime(val) {
1317 1331
       const params = {
@@ -2673,6 +2687,151 @@ export default {
2673 2687
       if (tab == 'more') {
2674 2688
         return false
2675 2689
       }
2690
+    }, openZb(index) {
2691
+      switch (index) {
2692
+        case 1:
2693
+          if(this.patientInfo.id == 0){
2694
+            this.$message.error("请需要选择挂号的患者")
2695
+            return
2696
+          }
2697
+          if(this.big_prescriptions.length == 0){
2698
+            this.$message.error("处方不能为空")
2699
+            return
2700
+          }
2701
+          if(this.form.diagnosis.length == 0){
2702
+            this.$message.error("诊断不能为空")
2703
+            return
2704
+          }
2705
+          var that = this
2706
+          let obj = {
2707
+            patient_id: this.patientInfo.id,
2708
+            diagnosis_time: this.form.diagnosis_time,
2709
+            record_date: this.record_date,
2710
+            admin_user_id: this.$store.getters.xt_user.user.id,
2711
+            org_id: this.$store.getters.xt_user.org_id
2712
+
2713
+          }
2714
+          axios.get(process.env.BASE_API +'/coordinate/register', {
2715
+            params: obj
2716
+          })
2717
+              .then(function(response) {
2718
+                if (response.data.state == 0) {
2719
+                  that.$message.error(response.data.msg)
2720
+                  that.loadingtwo = false
2721
+                  return false
2722
+                } else {
2723
+                  if (response.data.data.failed_code == -10) {
2724
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
2725
+                      confirmButtonText: '确 定',
2726
+                      type: 'warning'
2727
+                    }).then(() => {
2728
+
2729
+                    }).catch(() => {
2730
+                    })
2731
+
2732
+                  } else {
2733
+                    that.radio = 1
2734
+                    that.changeRadioAndPatient(1)
2735
+                    that.$message({ message: '挂号成功', type: 'success', duration: 5000 })
2736
+                  }
2737
+
2738
+                }
2739
+              })
2740
+              .catch(function(error) {
2741
+
2742
+              })
2743
+
2744
+          break
2745
+        case 2:
2746
+          var that = this
2747
+          var obj2 = {
2748
+            id: this.patientInfo.id,
2749
+            record_time: this.record_date,
2750
+            his_patient_id: this.hisPatientInfo.id,
2751
+            org_id: this.$store.getters.xt_user.org_id,
2752
+            p_type:14,
2753
+
2754
+          }
2755
+          obj2['diagnosis'] = this.form.diagnosis.join(',')
2756
+          obj2['sick_type'] = this.form.sick_type
2757
+          if (this.activeName == 'first') {
2758
+            obj2['settle_accounts_type'] = 1
2759
+          } else if (this.activeName == 'second') {
2760
+            obj2['start_time'] = this.other_start_time
2761
+            obj2['end_time'] = this.other_end_time
2762
+            obj2['settle_accounts_type'] = 2
2763
+          }
2764
+          axios.get(process.env.BASE_API  + '/coordinate/opKeepAccounts', {
2765
+            params: obj2
2766
+          })
2767
+              .then(function(response) {
2768
+                if (response.data.state == 0) {
2769
+                  that.$message.error(response.data.msg)
2770
+                  that.loadingtwo = false
2771
+                  return false
2772
+                } else {
2773
+                  if (response.data.data.failed_code == -10) {
2774
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
2775
+                      confirmButtonText: '确 定',
2776
+                      type: 'warning'
2777
+                    }).then(() => {
2778
+
2779
+                    }).catch(() => {
2780
+                    })
2781
+
2782
+                  } else {
2783
+                    that.radio = 1
2784
+                    that.changeRadioAndPatient(1)
2785
+                    that.$message({ message: '记账成功', type: 'success', duration: 5000 })
2786
+                  }
2787
+
2788
+                }
2789
+              })
2790
+              .catch(function(error) {
2791
+
2792
+              })
2793
+
2794
+          break
2795
+        case 3:
2796
+          var that = this
2797
+          let obj3 = {
2798
+            order_id:this.order.id,
2799
+            admin_user_id: this.$store.getters.xt_user.user.id,
2800
+            org_id: this.$store.getters.xt_user.org_id
2801
+          }
2802
+          axios.get(process.env.BASE_API + '/coordinate/opCancelKeepAccounts', {
2803
+            params: obj3
2804
+          })
2805
+              .then(function(response) {
2806
+                if (response.data.state == 0) {
2807
+                  that.$message.error(response.data.msg)
2808
+                  that.loadingtwo = false
2809
+                  return false
2810
+                } else {
2811
+                  if (response.data.data.failed_code == -10) {
2812
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
2813
+                      confirmButtonText: '确 定',
2814
+                      type: 'warning'
2815
+                    }).then(() => {
2816
+
2817
+                    }).catch(() => {
2818
+                    })
2819
+
2820
+                  } else {
2821
+                    that.radio = 1
2822
+                    that.changeRadioAndPatient(1)
2823
+                    that.$message({ message: '撤销记账成功', type: 'success', duration: 5000 })
2824
+                  }
2825
+
2826
+                }
2827
+              })
2828
+              .catch(function(error) {
2829
+
2830
+              })
2831
+
2832
+          break
2833
+
2834
+      }
2676 2835
     },
2677 2836
     open(index, med_type, order, prescriptions) {
2678 2837
       this.other_prescriptions = prescriptions
@@ -2937,7 +3096,6 @@ export default {
2937 3096
         // this.$refs.print.getInfo(this.order.id)
2938 3097
       } else if (index == 10) {
2939 3098
 
2940
-
2941 3099
         if (this.hisPatientInfo.balance_accounts_type == 2) {
2942 3100
           this.$confirm('是否退号', '退号', {
2943 3101
             confirmButtonText: '确 定',
@@ -2960,8 +3118,8 @@ export default {
2960 3118
           }).catch(() => {
2961 3119
           })
2962 3120
         } else {
2963
-          if(this.$store.getters.xt_user.org_id == 10215 && this.order.id > 0){
2964
-            this.$message.error("该就诊号尚未撤销明细或者退费无法进行退号操作")
3121
+          if (this.$store.getters.xt_user.org_id == 10215 && this.order.id > 0) {
3122
+            this.$message.error('该就诊号尚未撤销明细或者退费无法进行退号操作')
2965 3123
             return
2966 3124
           }
2967 3125
           var that = this
@@ -3058,7 +3216,7 @@ export default {
3058 3216
             .catch(function(error) {
3059 3217
             })
3060 3218
 
3061
-      } else if(index == 30){
3219
+      } else if (index == 30) {
3062 3220
 
3063 3221
         let paramsObj = {
3064 3222
           order_id: this.order.id,
@@ -3572,11 +3730,11 @@ export default {
3572 3730
         num = num.substring(0)
3573 3731
       }
3574 3732
       return parseFloat(num).toFixed(decimal)
3575
-    },getMonthChargePatientList(){
3733
+    }, getMonthChargePatientList() {
3576 3734
       let params = {
3577 3735
         'record_date': this.record_date,
3578
-        'start_time':this.other_start_time,
3579
-        'end_time':this.other_end_time,
3736
+        'start_time': this.other_start_time,
3737
+        'end_time': this.other_end_time
3580 3738
       }
3581 3739
       getChargeHisPatientList(params).then(response => {
3582 3740
         if (response.data.state == 0) {
@@ -3593,7 +3751,7 @@ export default {
3593 3751
     getPatientList() {
3594 3752
       let params = {
3595 3753
         'record_date': this.record_date,
3596
-        'type': this.radio,
3754
+        'type': this.radio
3597 3755
       }
3598 3756
       getChargeHisPatientList(params).then(response => {
3599 3757
         if (response.data.state == 0) {
@@ -4198,7 +4356,7 @@ export default {
4198 4356
             } else {
4199 4357
               this.form.p_type = 14
4200 4358
               this.form.sick_type = this.sick[0].id
4201
-              if (response.data.data.last_info.diagnoses.length == 0) {
4359
+              if (response.data.data.last_info.id == 0) {
4202 4360
                 this.form.diagnosis = []
4203 4361
               } else {
4204 4362
                 for (let i = 0; i < response.data.data.last_info.diagnosis.split(',').length; i++) {

+ 6 - 3
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue Просмотреть файл

@@ -128,7 +128,9 @@
128 128
 
129 129
                             </div>
130 130
                             <div style="display:flex;flez-wrap:wrap;font-size:16px;">
131
-                                <div style="width:33%;">个人支付金额:{{ info.psn_pay?info.psn_pay:0 }}元</div>
131
+                              <div style="width:33%;">医疗救助基金金额:{{info.maf_pay?info.maf_pay:0}}元</div>
132
+
133
+                              <div style="width:33%;">个人支付金额:{{ info.psn_pay?info.psn_pay:0 }}元</div>
132 134
                                 <div style="width:33%;">个人账户金额:{{info.balc >= 0 ? info.balc : 0 }}元</div>
133 135
                             </div>
134 136
                         </td>
@@ -149,7 +151,7 @@
149 151
         <div v-else id='prescription-print' class="prescription-print" style="position: relative;">
150 152
             <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
151 153
             <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id == 10278" src="https://kuyi.shengws.com/beierlog.png" alt="">
152
-           
154
+
153 155
             <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
154 156
             <div style="display:flex;">
155 157
                 <div>单据号:<span style="display:inline-block;width:200px;">{{balanceAccounts.his.number ? balanceAccounts.his.number : ''}}</span>
@@ -269,7 +271,8 @@
269 271
 
270 272
                             </div>
271 273
                             <div style="display:flex;flez-wrap:wrap;">
272
-                                <div style="width:33%;">
274
+                              <div style="width:33%;">医疗救助基金金额:0元</div>
275
+                              <div style="width:33%;">
273 276
                                     个人支付金额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元
274 277
                                 </div>
275 278
                                 <div style="width:33%;">个人账户金额:0元</div>

+ 8 - 8
src/xt_pages/outpatientCharges/statementTemplate/privateChargePrint.vue Просмотреть файл

@@ -299,14 +299,14 @@ export default {
299 299
       let yy = new Date().getFullYear();
300 300
       let mm = new Date().getMonth() + 1;
301 301
       let dd = new Date().getDate();
302
-      let hh = new Date().getHours();
303
-      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
304
-          :
305
-          new Date().getMinutes();
306
-      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
307
-          :
308
-          new Date().getSeconds();
309
-      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
302
+      // let hh = new Date().getHours();
303
+      // let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
304
+      //     :
305
+      //     new Date().getMinutes();
306
+      // let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
307
+      //     :
308
+      //     new Date().getSeconds();
309
+      dateTime = yy + '-' + mm + '-' + dd
310 310
       return dateTime
311 311
     },
312 312
 

+ 9 - 9
src/xt_pages/outpatientDoctorStation/checkPrint.vue Просмотреть файл

@@ -11,9 +11,9 @@
11 11
           >打印</el-button
12 12
         >
13 13
       </template> -->
14
-            
14
+
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne 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>
16
+        <printOne :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17 17
       </div>
18 18
   </div>
19 19
 </template>
@@ -66,16 +66,16 @@ export default {
66 66
                 scanStyles: false
67 67
             });
68 68
         },500)
69
-        
69
+
70 70
     },
71 71
     getAllDoctorList(){
72 72
       getAllDoctorList().then(response=>{
73 73
         if(response.data.state == 1){
74 74
                var doctor =  response.data.data.doctor
75
-               
75
+
76 76
                this.doctorList = doctor
77 77
              }
78
-         })   
78
+         })
79 79
      },
80 80
     getAllHisPatientList(){
81 81
          const params = {
@@ -101,7 +101,7 @@ export default {
101 101
             // console.log(this.patientTableData[0])
102 102
             // this.choosePatient(this.patientTableData[0])
103 103
             this.cal_one = cal_one
104
-            this.cal_two = cal_two   
104
+            this.cal_two = cal_two
105 105
          }
106 106
       })
107 107
     },
@@ -135,7 +135,7 @@ export default {
135 135
     searchAction(){
136 136
 
137 137
     }
138
-    
138
+
139 139
   },
140 140
 
141 141
   created() {
@@ -159,7 +159,7 @@ export default {
159 159
         var prescription_id = this.paramsObj.prescription_id
160 160
         this.prescription_id = prescription_id
161 161
         this.ids = this.paramsObj.ids
162
-        
162
+
163 163
       },
164 164
       deep:true
165 165
     }
@@ -332,7 +332,7 @@ export default {
332 332
   .dialysisPage::-webkit-scrollbar {
333 333
     height: 15px;
334 334
   }
335
-  
335
+
336 336
   .el-date-editor{
337 337
     .el-input__inner{
338 338
       padding-right:0px;

+ 6 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Просмотреть файл

@@ -1860,6 +1860,10 @@
1860 1860
           this.order_status = '已退费'
1861 1861
         }
1862 1862
 
1863
+        if (this.curPrescriptions.order_status == 5) {
1864
+          this.order_status = '已记账'
1865
+        }
1866
+
1863 1867
       },
1864 1868
       clearData() {
1865 1869
         this.curPrescriptions = []
@@ -2490,8 +2494,8 @@
2490 2494
 
2491 2495
       },
2492 2496
       removeTab(targetName) {
2493
-        if (this.curPrescriptions.order_status == 2) {
2494
-          this.$message.error('该处方已经结算,无法删除')
2497
+        if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 5) {
2498
+          this.$message.error('该处方已经结算或者记账,无法删除')
2495 2499
           return
2496 2500
         }
2497 2501
         this.$confirm('处方删除后不可恢复,是否确认删除', '删除', {

+ 6 - 6
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Просмотреть файл

@@ -275,8 +275,8 @@
275 275
         cb(results)
276 276
       },
277 277
       delAddition(index, addition) {
278
-        if (this.prescription.order_status == 2) {
279
-          this.$message.error('该处方已经结算,无法删除')
278
+        if (this.prescription.order_status == 2 || this.prescription.order_status == 5) {
279
+          this.$message.error('该处方已经结算或记账,无法删除')
280 280
           return
281 281
         }
282 282
         this.$confirm('附加费删除后不可恢复,是否确认删除', '删除', {
@@ -323,8 +323,8 @@
323 323
         })
324 324
 
325 325
       }, deleteDrug: function(index, row) {
326
-        if (this.prescription.order_status == 2) {
327
-          this.$message.error('该处方已经结算,无法删除')
326
+        if (this.prescription.order_status == 2 ||  this.prescription.order_status ==5) {
327
+          this.$message.error('该处方已经结算或记账,无法删除')
328 328
           return
329 329
         }
330 330
         this.$confirm('药品删除后不可恢复,是否确认删除', '删除', {
@@ -394,8 +394,8 @@
394 394
         return name
395 395
       },
396 396
       deleteProject(row, i) {
397
-        if (this.prescription.order_status == 2) {
398
-          this.$message.error('该处方已经结算,无法删除')
397
+        if (this.prescription.order_status == 2  || this.prescription.order_status == 5) {
398
+          this.$message.error('该处方已经结算或记账,无法删除')
399 399
           return
400 400
         }
401 401
         this.$confirm('项目删除后不可恢复,是否确认删除', '删除', {