瀏覽代碼

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

csx 3 年之前
父節點
當前提交
1564254b8d

+ 61 - 4
src/xt_pages/hospitalStation/chargeDetailManagement.vue 查看文件

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
     changeRadio(id) {
955
     changeRadio(id) {
901
       // this.hisPatientInfo = null
956
       // this.hisPatientInfo = null
957
               break
1012
               break
958
             case 2:
1013
             case 2:
959
               this.all_table_data = response.data.data.list_two
1014
               this.all_table_data = response.data.data.list_two
960
-
961
               this.patientTableData = response.data.data.list_two
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
               break
1022
               break
965
-
966
           }
1023
           }
967
         }
1024
         }
968
       })
1025
       })

+ 2 - 2
src/xt_pages/hospitalStation/newStatementPrint.vue 查看文件

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

+ 7 - 1
src/xt_pages/hospitalStation/statementTemplate/printOne.vue 查看文件

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

+ 2 - 6
src/xt_pages/hospitalStation/summary.vue 查看文件

80
                 </el-table-column>
80
                 </el-table-column>
81
                 <el-table-column align="center" prop="name" label="收费日期">
81
                 <el-table-column align="center" prop="name" label="收费日期">
82
                     <template slot-scope="scope">
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
                     </template>
84
                     </template>
89
                 </el-table-column>
85
                 </el-table-column>
90
                 <el-table-column align="center" prop="name" label="收费员">
86
                 <el-table-column align="center" prop="name" label="收费员">
570
         }
566
         }
571
       },
567
       },
572
       toPrint(row) {
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
           this.statementVisible9504 = true
570
           this.statementVisible9504 = true
575
           let obj = {
571
           let obj = {
576
             order_id: row.id,
572
             order_id: row.id,

+ 6 - 0
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

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

+ 6 - 0
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue 查看文件

281
         <td colspan="3" style="text-align:left;padding-left:10px;">公务员基金支付</td>
281
         <td colspan="3" style="text-align:left;padding-left:10px;">公务员基金支付</td>
282
         <td colspan="3">{{info.cvlserv_pay}}</td>
282
         <td colspan="3">{{info.cvlserv_pay}}</td>
283
       </tr>
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
       <tr>
290
       <tr>
285
         <td>收款人:</td>
291
         <td>收款人:</td>
286
         <td colspan="2">{{info.charge_admin.user_name}}</td>
292
         <td colspan="2">{{info.charge_admin.user_name}}</td>