Ver código fonte

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

csx 3 anos atrás
pai
commit
c719868e4b

+ 22 - 12
src/xt_pages/hospitalStation/chargeDetailManagement.vue Ver arquivo

@@ -884,7 +884,7 @@ export default {
884 884
                   } else {
885 885
                     that.$message.success('上传明细成功')
886 886
                     that.radio = 2
887
-                    that.getPatientList()
887
+                    that.changePatientInfo()
888 888
                   }
889 889
 
890 890
                 }
@@ -941,8 +941,11 @@ export default {
941 941
               break
942 942
             case 2:
943 943
               this.all_table_data = response.data.data.list_two
944
-
945 944
               this.patientTableData = response.data.data.list_two
945
+
946
+
947
+
948
+
946 949
               this.$refs.tab.setCurrentRow(this.patientTableData[0])
947 950
               this.getPatientInformation(this.chargePatientTableData[0].patient_id, this.patientTableData[0].id)
948 951
               break
@@ -996,29 +999,36 @@ export default {
996 999
             case 1:
997 1000
               this.all_table_data = response.data.data.list
998 1001
               this.patientTableData = response.data.data.list
999
-              if (this.hisPatientInfo.id > 0){
1002
+              if (this.hisPatientInfo.id > 0) {
1000 1003
                 for (let i = 0; i < this.patientTableData.length; i++) {
1001 1004
                   if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
1002 1005
                     this.current_index = i
1003 1006
                     this.$refs.tab.setCurrentRow(this.patientTableData[i])
1004
-                    this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].id)
1007
+                    this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1005 1008
 
1006 1009
                   }
1007 1010
                 }
1008 1011
               }else{
1009 1012
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
1010
-                this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].id)
1013
+                this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1011 1014
               }
1012 1015
               break
1013 1016
             case 2:
1014 1017
               this.all_table_data = response.data.data.list_two
1015 1018
               this.patientTableData = response.data.data.list_two
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
-                 }
1019
+              if (this.hisPatientInfo.id > 0) {
1020
+                for (let i = 0; i < this.patientTableData.length; i++) {
1021
+                  if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
1022
+                    this.current_index = i
1023
+                    this.$refs.tab.setCurrentRow(this.patientTableData[i])
1024
+                    this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1025
+
1026
+                  }
1027
+                }
1028
+              }else{
1029
+                this.$refs.tab.setCurrentRow(this.patientTableData[0])
1030
+                this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1031
+              }
1022 1032
               break
1023 1033
           }
1024 1034
         }
@@ -1610,7 +1620,7 @@ export default {
1610 1620
                 order_id: this.order.id,
1611 1621
                 record_time: this.record_date,
1612 1622
                 admin_user_id: this.$store.getters.xt_user.user.id,
1613
-                patient_id: this.patientInfo.id
1623
+                patient_id: this.hisPatientInfo.patient_id
1614 1624
               }
1615 1625
             })
1616 1626
                 .then(function(response) {

+ 6 - 6
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue Ver arquivo

@@ -1,8 +1,8 @@
1 1
 <template>
2 2
     <div>
3 3
         <div v-if="paramsObj.balance_accounts_type != 2" id='prescription-print' class="prescription-print" style="position: relative;">
4
-            <span v-if="$store.getters.xt_user.org_id == 10138"><img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt=""></span>
5
-             <span v-if="$store.getters.xt_user.org_id ==10278"><img style="width:100%;height:80px" src="https://kuyi.shengws.com/beierlog.png" alt=""></span>
4
+            <span v-if="org_id ==10138"><img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt=""></span>
5
+             <span v-if="org_id ==10278"><img style="width:100%;height:80px" src="https://kuyi.shengws.com/beierlog.png" alt=""></span>
6 6
             <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
7 7
             <div style="display:flex;">
8 8
                 <div>单据号:<span style="display:inline-block;width:200px;">{{info.order_number ? info.order_number : ''}}</span></div>
@@ -75,8 +75,8 @@
75 75
                 <div>操作人:<span style="width:100px;display:inline-block;">{{info.doctor_name}}</span></div>
76 76
                 <div>操作日期:<span style="width:100px;display:inline-block;">{{info.record_date}}</span></div>
77 77
             </div>
78
-          <span v-if="$store.getters.xt_user.org_id == 10138"><img src="https://kuyi.shengws.com/bailin/blend.jpg" style="width:100%" alt=""></span>
79
-          <span v-if="$store.getters.xt_user.org_id == 10278"><img src="https://kuyi.shengws.com/bailinbeier.png" style="width:100%" alt=""></span>
78
+          <span v-if="org_id == 10138"><img src="https://kuyi.shengws.com/bailin/blend.jpg" style="width:100%" alt=""></span>
79
+          <span v-if="org_id == 10278"><img src="https://kuyi.shengws.com/bailinbeier.png" style="width:100%" alt=""></span>
80 80
         </div>
81 81
         <div v-else id='prescription-print' class="prescription-print" style="position: relative;">
82 82
           <img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
@@ -183,8 +183,8 @@
183 183
                 <div>操作人:<span style="width:100px;display:inline-block;">{{balanceAccounts.current_admin.user_name}}</span></div>
184 184
                 <div>操作日期:<span style="width:100px;display:inline-block;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
185 185
             </div>
186
-            <span v-if="$store.getters.xt_user.org_id == 10138"><img src="https://kuyi.shengws.com/bailin/blend.jpg" style="width:100%" alt=""></span>
187
-            <span v-if="$store.getters.xt_user.org_id == 10278"><img src="https://kuyi.shengws.com/bailinbeier.png" style="width:100%" alt=""></span>
186
+            <span v-if="org_id == 10138"><img src="https://kuyi.shengws.com/bailin/blend.jpg" style="width:100%" alt=""></span>
187
+            <span v-if="org_id == 10278"><img src="https://kuyi.shengws.com/bailinbeier.png" style="width:100%" alt=""></span>
188 188
         </div>
189 189
     </div>
190 190
 

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

@@ -135,7 +135,7 @@
135 135
                             <div style="margin-bottom:10px;float: right">
136 136
                               <div>
137 137
                                 <el-button
138
-                                    v-if="(hisPatientInfo.balance_accounts_type == 1 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0)"
138
+                                    v-if="(hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0)"
139 139
                                     size="small"
140 140
                                     @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"
141 141
                                     type="primary"

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue Ver arquivo

@@ -287,7 +287,7 @@
287 287
                 </div>
288 288
             </div>
289 289
             <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
290
-            <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10278" src="https://kuyi.shengws.com/bailinbeier.png" alt="">
290
+            <img style="width:100%;" v-else src="https://kuyi.shengws.com/bailinbeier.png" alt="">
291 291
 
292 292
         </div>
293 293
     </div>

+ 3 - 3
src/xt_pages/outpatientDoctorStation/template/printThree.vue Ver arquivo

@@ -3,8 +3,8 @@
3 3
   <div id='prescriptionPrint1'>
4 4
     <div v-for="(item,index) in advicePrint" :key="index">
5 5
       <div id='prescription-print' v-if="item.project.length == 0" v-for='(i,pageIndex) in item.pageArr.length' :key="pageIndex" class="prescription-print" style="page-break-after: always;">
6
-          <span v-if="org_id = 10138"> <img src="https://kuyi.shengws.com/bailin/bltotle.jpg" style="width:100%" alt=""></span> 
7
-          <span v-if="org_id = 10278"> <img src="https://kuyi.shengws.com/beierlog.png" style="width:100%" alt=""></span> 
6
+          <span v-if="org_id == 10138"> <img src="https://kuyi.shengws.com/bailin/bltotle.jpg" style="width:100%" alt=""></span>
7
+          <span v-if="org_id == 10278"> <img src="https://kuyi.shengws.com/beierlog.png" style="width:100%" alt=""></span>
8 8
           <div class="printTitle">
9 9
             处方笺
10 10
             <span v-if="item.med_type == '1111'" style="margin-left: 50px;border: 1px solid #000;">精一</span>
@@ -71,7 +71,7 @@
71 71
           </div>
72 72
           <div>*处方当日有效,特殊情况可适当延长,一般不超过3天</div>
73 73
           <div>*药品属于特殊商品,非质量问题不允许退换</div>
74
-          <span v-if="org_id == 10138"><img src="https://kuyi.shengws.com/bailin/blend.jpg" style="width:100%" alt=""></span> 
74
+          <span v-if="org_id == 10138"><img src="https://kuyi.shengws.com/bailin/blend.jpg" style="width:100%" alt=""></span>
75 75
           <span v-if="org_id == 10278"><img src="https://kuyi.shengws.com/bailinbeier.png" style="width:100%" alt=""></span>
76 76
           <!-- <div class="doctorBox">
77 77
               <p>医师:{{item.doctor?item.doctor:""}}</p>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue Ver arquivo

@@ -2,8 +2,8 @@
2 2
    <div id='prescriptionPrint2'>
3 3
     <div id='prescription-print' v-if="item.advices.length == 0" class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4 4
 
5
-        <span v-if="org_id = 10138"> <img src="https://kuyi.shengws.com/bailin/bltotle.jpg" style="width:100%" alt=""></span>
6
-         <span v-if="org_id = 10278"> <img src="https://kuyi.shengws.com/beierlog.png" style="width:100%" alt=""></span>
5
+        <span v-if="org_id == 10138"> <img src="https://kuyi.shengws.com/bailin/bltotle.jpg" style="width:100%" alt=""></span>
6
+         <span v-if="org_id == 10278"> <img src="https://kuyi.shengws.com/beierlog.png" style="width:100%" alt=""></span>
7 7
         <div class="printTitle">治疗单
8 8
           <span v-if="item.med_type == '1111'" style="margin-left: 50px;border: 1px solid #000;">精一</span>
9 9
           <span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>