浏览代码

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

csx 3 年前
父节点
当前提交
c719868e4b

+ 22 - 12
src/xt_pages/hospitalStation/chargeDetailManagement.vue 查看文件

884
                   } else {
884
                   } else {
885
                     that.$message.success('上传明细成功')
885
                     that.$message.success('上传明细成功')
886
                     that.radio = 2
886
                     that.radio = 2
887
-                    that.getPatientList()
887
+                    that.changePatientInfo()
888
                   }
888
                   }
889
 
889
 
890
                 }
890
                 }
941
               break
941
               break
942
             case 2:
942
             case 2:
943
               this.all_table_data = response.data.data.list_two
943
               this.all_table_data = response.data.data.list_two
944
-
945
               this.patientTableData = response.data.data.list_two
944
               this.patientTableData = response.data.data.list_two
945
+
946
+
947
+
948
+
946
               this.$refs.tab.setCurrentRow(this.patientTableData[0])
949
               this.$refs.tab.setCurrentRow(this.patientTableData[0])
947
               this.getPatientInformation(this.chargePatientTableData[0].patient_id, this.patientTableData[0].id)
950
               this.getPatientInformation(this.chargePatientTableData[0].patient_id, this.patientTableData[0].id)
948
               break
951
               break
996
             case 1:
999
             case 1:
997
               this.all_table_data = response.data.data.list
1000
               this.all_table_data = response.data.data.list
998
               this.patientTableData = response.data.data.list
1001
               this.patientTableData = response.data.data.list
999
-              if (this.hisPatientInfo.id > 0){
1002
+              if (this.hisPatientInfo.id > 0) {
1000
                 for (let i = 0; i < this.patientTableData.length; i++) {
1003
                 for (let i = 0; i < this.patientTableData.length; i++) {
1001
                   if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
1004
                   if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
1002
                     this.current_index = i
1005
                     this.current_index = i
1003
                     this.$refs.tab.setCurrentRow(this.patientTableData[i])
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
               }else{
1011
               }else{
1009
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
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
               break
1015
               break
1013
             case 2:
1016
             case 2:
1014
               this.all_table_data = response.data.data.list_two
1017
               this.all_table_data = response.data.data.list_two
1015
               this.patientTableData = response.data.data.list_two
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
               break
1032
               break
1023
           }
1033
           }
1024
         }
1034
         }
1610
                 order_id: this.order.id,
1620
                 order_id: this.order.id,
1611
                 record_time: this.record_date,
1621
                 record_time: this.record_date,
1612
                 admin_user_id: this.$store.getters.xt_user.user.id,
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
                 .then(function(response) {
1626
                 .then(function(response) {

+ 6 - 6
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue 查看文件

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

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

135
                             <div style="margin-bottom:10px;float: right">
135
                             <div style="margin-bottom:10px;float: right">
136
                               <div>
136
                               <div>
137
                                 <el-button
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
                                     size="small"
139
                                     size="small"
140
                                     @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"
140
                                     @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"
141
                                     type="primary"
141
                                     type="primary"

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue 查看文件

287
                 </div>
287
                 </div>
288
             </div>
288
             </div>
289
             <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
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
         </div>
292
         </div>
293
     </div>
293
     </div>

+ 3 - 3
src/xt_pages/outpatientDoctorStation/template/printThree.vue 查看文件

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

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue 查看文件

2
    <div id='prescriptionPrint2'>
2
    <div id='prescriptionPrint2'>
3
     <div id='prescription-print' v-if="item.advices.length == 0" class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
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
         <div class="printTitle">治疗单
7
         <div class="printTitle">治疗单
8
           <span v-if="item.med_type == '1111'" style="margin-left: 50px;border: 1px solid #000;">精一</span>
8
           <span v-if="item.med_type == '1111'" style="margin-left: 50px;border: 1px solid #000;">精一</span>
9
           <span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>
9
           <span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>