Browse Source

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

csx 3 years ago
parent
commit
5acd4eea85

+ 12 - 0
src/api/his/his.js View File

@@ -519,6 +519,18 @@ export function refunddetail(params) {
519 519
 
520 520
 
521 521
 
522
+export function getPrivateExpensesOrder(params) {
523
+  return request({
524
+    url: "/api/privateexpensesorder/get",
525
+    method: "get",
526
+    params:params,
527
+  });
528
+}
529
+
530
+
531
+
532
+
533
+
522 534
 
523 535
 
524 536
 

+ 43 - 7
src/xt_pages/outpatientCharges/listPrint.vue View File

@@ -14,8 +14,10 @@
14 14
     </template>
15 15
 
16 16
     <div class='dialysisPage' style="padding-top:40px;">
17
-      <printOne v-if="org_id != 10106" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18
-      <printTwo v-if="org_id == 10106" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
17
+      <printOne v-if="org_id != 10106 && this.paramsObj.balance_accounts_type != 2" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18
+      <printTwo v-if="org_id == 10106 && this.paramsObj.balance_accounts_type != 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
19
+      <!--<printThree v-if="org_id == 0 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printThree>-->
20
+      <print-three v-if="org_id == 0 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
19 21
     </div>
20 22
   </div>
21 23
 </template>
@@ -23,13 +25,17 @@
23 25
 <script>
24 26
   import printOne from './listTemplate/printOne'
25 27
   import printTwo from './listTemplate/printTwo'
26
-  import { getHisOrderDetail } from '@/api/his/his'
28
+  // import printThree from './listTemplate/printThree'
29
+
30
+  import { getHisOrderDetail,getPrivateExpensesOrder } from '@/api/his/his'
27 31
   import { uParseTime } from '@/utils/tools'
28 32
   import axios from 'axios'
33
+  import PrintThree from './listTemplate/printThree'
29 34
 
30 35
   export default {
31 36
     name: 'listPrint',
32 37
     components: {
38
+      PrintThree,
33 39
       printOne,
34 40
       printTwo
35 41
     },
@@ -42,8 +48,7 @@
42 48
         patient:{},
43 49
         order:{},
44 50
         admin:{},
45
-
46
-
51
+        order_infos:null,
47 52
         info:null,
48 53
         p_admin:{},
49 54
         charge_admin:{},
@@ -53,8 +58,17 @@
53 58
     created() {
54 59
       this.getInfo(this.paramsObj.id)
55 60
       this.org_id = this.$store.getters.xt_user.org_id
56
-      if(this.org_id == 10106){
57
-        this.getInfo10106(this.paramsObj.id)
61
+      if(this.org_id == 0){
62
+        if(this.paramsObj.balance_accounts_type == 2){
63
+
64
+          this.getInfoPrivateExpenses10106(this.paramsObj.id)
65
+
66
+        }else{
67
+          this.getInfo10106(this.paramsObj.id)
68
+
69
+
70
+
71
+        }
58 72
       }
59 73
 
60 74
     },
@@ -204,6 +218,28 @@
204 218
         //     scanStyles: false
205 219
         //   });
206 220
         // }
221
+      },getInfoPrivateExpenses10106(order_id){
222
+        let params = {
223
+          order_id: order_id,
224
+          admin_user_id:this.$store.getters.xt_user.user.id
225
+        }
226
+
227
+        getPrivateExpensesOrder(params).then(response => {
228
+          if (response.data.state == 0) {
229
+            this.$message.error(response.data.msg)
230
+            return false
231
+          } else {
232
+            this.info = response.data.data.info
233
+            this.info['org_name'] = response.data.data.org_name
234
+            this.info['date'] = response.data.data.date
235
+            this.info['number'] = response.data.data.number
236
+            this.info['name'] = response.data.data.name
237
+            this.p_admin = response.data.data.printor_admin
238
+            this.charge_admin = response.data.data.charge_admin
239
+            this.order_infos = response.data.data
240
+          }
241
+        })
242
+
207 243
       },
208 244
       getInfo10106(order_id) {
209 245
         if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {

+ 2 - 2
src/xt_pages/outpatientCharges/listTemplate/printTwo.vue View File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div id="statement-print" class="statement-print">
3
-    <div class="statementTitle" style="margin-top:20px;" v-if="info.insutype == '310'">医保费用明细清单</div>
4
-    <div class="statementTitle" style="margin-top:20px;" v-if="info.insutype == '390'">医保费用明细清单</div>
3
+    <div class="statementTitle" style="margin-top:20px;" >医保费用明细清单</div>
4
+    <!--<div class="statementTitle" style="margin-top:20px;" v-if="info.insutype == '390'">医保费用明细清单</div>-->
5 5
 
6 6
     <div style="display:flex">
7 7
       <div style="width:70%">医疗机构名称:{{info.fixmedins_name}}</div>

+ 5 - 1
src/xt_pages/outpatientCharges/summaryDetail.vue View File

@@ -173,7 +173,8 @@ export default {
173 173
           listVisible:false,
174 174
           allListVisible:false,
175 175
           paramsObj:{
176
-            id:this.$route.query.id
176
+            id:this.$route.query.id,
177
+            balance_accounts_type:0
177 178
           },
178 179
             crumbs: [
179 180
                 { path: false, name: '门诊收费' },
@@ -213,10 +214,13 @@ export default {
213 214
       open(val){
214 215
         if(val == 1){
215 216
           this.paramsObj.id == this.$route.query.id
217
+          this.paramsObj.balance_accounts_type = this.hisPatientInfo.balance_accounts_type
216 218
           this.listVisible = true
217 219
 
218 220
         }else if(val == 2){
219 221
           this.paramsObj.id == this.$route.query.id
222
+          this.paramsObj.balance_accounts_type = this.hisPatientInfo.balance_accounts_type
223
+
220 224
           this.allListVisible = true
221 225
         }
222 226
       },