Sfoglia il codice sorgente

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

csx 3 anni fa
parent
commit
1564254b8d

+ 61 - 4
src/xt_pages/hospitalStation/chargeDetailManagement.vue Vedi File

@@ -896,6 +896,61 @@ export default {
896 896
 
897 897
         }
898 898
       }
899
+    },changePatientInfo(){
900
+      let params = {
901
+        'record_date': this.record_date,
902
+        'sch_type': this.schedule_type
903
+      }
904
+      getHisHospitalDetailList(params).then(response => {
905
+        if (response.data.state == 0) {
906
+          this.$message.error(response.data.msg)
907
+          return false
908
+        } else {
909
+          if (response.data.data.list == null) {
910
+            response.data.data.list = []
911
+          }
912
+          if (response.data.data.list_two == null) {
913
+            response.data.data.list_two = []
914
+          }
915
+          this.hisPatientInfo = {}
916
+          this.curPrescriptions = {}
917
+          this.curMonthPrescriptions = {}
918
+          this.month_prescriptions = []
919
+          this.prescriptions = []
920
+
921
+          this.patientTableData = []
922
+          this.upload_num = response.data.data.upload_num
923
+          this.un_upload_num = response.data.data.un_upload_num
924
+          switch (this.radio) {
925
+            case 1:
926
+              this.all_table_data = response.data.data.list
927
+              this.patientTableData = response.data.data.list
928
+              if (this.hisPatientInfo.id > 0){
929
+                for (let i = 0; i < this.patientTableData.length; i++) {
930
+                  if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
931
+                    this.current_index = i
932
+                    this.$refs.tab.setCurrentRow(this.patientTableData[i])
933
+                    this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].id)
934
+
935
+                  }
936
+                }
937
+              }else{
938
+                this.$refs.tab.setCurrentRow(this.patientTableData[0])
939
+                this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].id)
940
+              }
941
+              break
942
+            case 2:
943
+              this.all_table_data = response.data.data.list_two
944
+
945
+              this.patientTableData = response.data.data.list_two
946
+              this.$refs.tab.setCurrentRow(this.patientTableData[0])
947
+              this.getPatientInformation(this.chargePatientTableData[0].patient_id, this.patientTableData[0].id)
948
+              break
949
+
950
+          }
951
+        }
952
+      })
953
+
899 954
     },
900 955
     changeRadio(id) {
901 956
       // this.hisPatientInfo = null
@@ -957,12 +1012,14 @@ export default {
957 1012
               break
958 1013
             case 2:
959 1014
               this.all_table_data = response.data.data.list_two
960
-
961 1015
               this.patientTableData = response.data.data.list_two
962
-              this.$refs.tab.setCurrentRow(this.patientTableData[0])
963
-              this.getPatientInformation(this.chargePatientTableData[0].patient_id, this.patientTableData[0].id)
1016
+                 for(let i = 0; i < this.patientTableData.length; i++){
1017
+                   if(this.patientInfo.id ==this.patientTableData[i].patient_id){
1018
+                     this.$refs.tab.setCurrentRow(this.patientTableData[i])
1019
+                     this.getPatientInformation(this.chargePatientTableData[i].patient_id, this.patientTableData[i].id)
1020
+                   }
1021
+                 }
964 1022
               break
965
-
966 1023
           }
967 1024
         }
968 1025
       })

+ 2 - 2
src/xt_pages/hospitalStation/newStatementPrint.vue Vedi File

@@ -13,7 +13,7 @@
13 13
     </template>
14 14
 
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne :info="info" :p_admin="p_admin" :charge_admin="charge_admin" :his="his" :his_hospital="his_hospital"></printOne>
16
+      <printOne :info="info" :p_admin="p_admin" :charge_admin="charge_admin" :his="his" :his_hospital="his_hospital" :patient="patient"></printOne>
17 17
     </div>
18 18
   </div>
19 19
 </template>
@@ -177,7 +177,7 @@
177 177
                 that.info = response.data.data.info;
178 178
                 that.p_admin = response.data.data.printor_admin;
179 179
                 that.charge_admin = response.data.data.charge_admin;
180
-
180
+                that.patient = response.data.data.patient
181 181
                 that.his = response.data.data.his;
182 182
                 that.his_hospital = response.data.data.his_hospital;
183 183
 

+ 7 - 1
src/xt_pages/hospitalStation/statementTemplate/printOne.vue Vedi File

@@ -77,7 +77,7 @@
77 77
         <td>单位名称</td>
78 78
         <td colspan="5">{{info.emp_name}}</td>
79 79
         <td width="80">联系电话</td>
80
-        <td width="110"></td>
80
+        <td width="110">{{patient.phone}}</td>
81 81
         <td width="80">身份证号</td>
82 82
         <td colspan="3">{{info.certno}}</td>
83 83
       </tr>
@@ -338,6 +338,12 @@
338 338
         default: function() {
339 339
           return {}
340 340
         },
341
+      },patient:{
342
+        type: Object,
343
+        default: function() {
344
+          return {}
345
+        },
346
+
341 347
       }
342 348
     },methods:{
343 349
       getDay(dateString1,dateString2){

+ 2 - 6
src/xt_pages/hospitalStation/summary.vue Vedi File

@@ -80,11 +80,7 @@
80 80
                 </el-table-column>
81 81
                 <el-table-column align="center" prop="name" label="收费日期">
82 82
                     <template slot-scope="scope">
83
-                        <div v-if="scope.row.his_hospital_patient.balance_accounts_type == 2">
84
-                            {{getTimes(scope.row.settle_accounts_date)}}
85
-                        </div>
86
-                        <div v-if="scope.row.his_hospital_patient.balance_accounts_type != 2">{{scope.row.setl_time}}
87
-                        </div>
83
+                      <div>{{scope.row.setl_time}}</div>
88 84
                     </template>
89 85
                 </el-table-column>
90 86
                 <el-table-column align="center" prop="name" label="收费员">
@@ -570,7 +566,7 @@
570 566
         }
571 567
       },
572 568
       toPrint(row) {
573
-        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10138) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10278)) {
569
+        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || (row.order_status == 2 && $store.getters.xt_user.org_id == 10138) || (row.order_status == 2 && $store.getters.xt_user.org_id == 10278)) {
574 570
           this.statementVisible9504 = true
575 571
           let obj = {
576 572
             order_id: row.id,

+ 6 - 0
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Vedi File

@@ -2898,6 +2898,8 @@ export default {
2898 2898
         this.orderObj = obj
2899 2899
         // this.$refs.print.getInfo(this.order.id)
2900 2900
       } else if (index == 10) {
2901
+
2902
+
2901 2903
         if (this.hisPatientInfo.balance_accounts_type == 2) {
2902 2904
           this.$confirm('是否退号', '退号', {
2903 2905
             confirmButtonText: '确 定',
@@ -2920,6 +2922,10 @@ export default {
2920 2922
           }).catch(() => {
2921 2923
           })
2922 2924
         } else {
2925
+          if(this.order.id > 0){
2926
+            this.$message.error("该就诊号尚未撤销明细或者退费无法进行退号操作")
2927
+            return
2928
+          }
2923 2929
           var that = this
2924 2930
           this.$confirm('是否退号', '退号', {
2925 2931
             confirmButtonText: '确 定',

+ 6 - 0
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue Vedi File

@@ -281,6 +281,12 @@
281 281
         <td colspan="3" style="text-align:left;padding-left:10px;">公务员基金支付</td>
282 282
         <td colspan="3">{{info.cvlserv_pay}}</td>
283 283
       </tr>
284
+      <tr>
285
+        <td colspan="3" style="text-align:left;padding-left:10px;">其他基金支付</td>
286
+        <td colspan="3">{{info.oth_pay}}</td>
287
+        <td colspan="3" style="text-align:left;padding-left:10px;">个人账户支付</td>
288
+        <td colspan="3">{{info.acct_pay}}</td>
289
+      </tr>
284 290
       <tr>
285 291
         <td>收款人:</td>
286 292
         <td colspan="2">{{info.charge_admin.user_name}}</td>