Browse Source

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

csx 2 years ago
parent
commit
2734a577bf

+ 3 - 1
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

@@ -2749,6 +2749,7 @@ export default {
2749 2749
         let overlmt_amt = 0
2750 2750
         let inscp_scp_amt = 0
2751 2751
         let preselfpay_amt = 0
2752
+        let day = 0
2752 2753
         for (let a = 0; a < drug_month_prescriptions.advices.length; a++) {
2753 2754
           if (drug_ids[i].price == drug_month_prescriptions.advices[a].price && drug_ids[i].id == drug_month_prescriptions.advices[a].drug_id) {
2754 2755
 
@@ -2756,7 +2757,6 @@ export default {
2756 2757
             obj['single_dose'] = drug_month_prescriptions.advices[a].single_dose
2757 2758
             obj['delivery_way'] = drug_month_prescriptions.advices[a].delivery_way
2758 2759
             obj['execution_frequency'] = drug_month_prescriptions.advices[a].execution_frequency
2759
-            obj['day'] = drug_month_prescriptions.advices[a].day
2760 2760
             // obj['prescribing_number'] =  obj['prescribing_number']  + drug_month_prescriptions.advices[a].prescribing_number
2761 2761
             obj['prescribing_number_unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
2762 2762
             obj['medical_insurance_number'] = drug_month_prescriptions.advices[a].drug.medical_insurance_number
@@ -2773,11 +2773,13 @@ export default {
2773 2773
             overlmt_amt = overlmt_amt + drug_month_prescriptions.advices[a].order_info.overlmt_amt
2774 2774
             inscp_scp_amt = inscp_scp_amt + drug_month_prescriptions.advices[a].order_info.inscp_scp_amt
2775 2775
             preselfpay_amt = preselfpay_amt + drug_month_prescriptions.advices[a].order_info.preselfpay_amt
2776
+            day =day + parseNumber(drug_month_prescriptions.advices[a].day)
2776 2777
 
2777 2778
 
2778 2779
           }
2779 2780
         }
2780 2781
         obj['prescribing_number'] = count
2782
+        obj['day'] = day
2781 2783
         obj['fulamt_ownpay_amt'] = fulamt_ownpay_amt.toFixed(2)
2782 2784
         obj['overlmt_amt'] = overlmt_amt.toFixed(2)
2783 2785
         obj['inscp_scp_amt'] = inscp_scp_amt.toFixed(2)

+ 5 - 5
src/xt_pages/hospitalStation/statementTemplate/printOne.vue View 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">{{patient.phone}}</td>
80
+        <td width="110">{{info.patient.phone}}</td>
81 81
         <td width="80">身份证号</td>
82 82
         <td colspan="3">{{info.certno}}</td>
83 83
       </tr>
@@ -105,12 +105,12 @@
105 105
         <td colspan="2" v-if="info.insutype == '390'">城乡居民基本医疗保险</td>
106 106
         <td colspan="2" v-if="info.insutype == '392'">城乡居民大病医疗保险</td>
107 107
         <td colspan="2" v-if="info.insutype == '510'">生育保险</td>
108
-
109
-
110 108
         <td>入院第一诊断</td>
111
-        <td colspan="3"></td>
109
+        <td colspan="3">{{info.diagnosis}}</td>
112 110
         <td>出院第一诊断</td>
113
-        <td colspan="4"></td>
111
+        <td colspan="4">{{info.diagnosis}}</td>
112
+
113
+
114 114
       </tr>
115 115
       <tr>
116 116
         <td>业务类别</td>

+ 12 - 7
src/xt_pages/outpatientCharges/allListPrint.vue View File

@@ -14,7 +14,9 @@
14 14
     </template>
15 15
 
16 16
     <div class='dialysisPage' style="padding-top:40px;">
17
-      <printOne :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17
+      <printOne  v-if="org_id != 10215 && org_id != 0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
18
+      <summary-print v-if="org_id == 10215|| org_id == 0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
19
+
18 20
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
19 21
     </div>
20 22
   </div>
@@ -25,10 +27,12 @@
25 27
   import { uParseTime } from '@/utils/tools'
26 28
   import printOne from './allListTemplate/printOne'
27 29
   import ListPrintTwo from './listTemplate/listPrintTwo'
30
+  import SummaryPrint from './allListTemplate/summaryPrint'
28 31
 
29 32
   export default {
30 33
     name: 'allListPrint',
31 34
     components: {
35
+      SummaryPrint,
32 36
       ListPrintTwo,
33 37
       printOne
34 38
     },
@@ -42,12 +46,13 @@
42 46
         order: {},
43 47
         admin: {},
44 48
         his_hospital:{},
49
+        org_id:0,
45 50
       }
46 51
     },
47 52
 
48 53
     created() {
49 54
       this.getInfo(this.paramsObj.id)
50
-
55
+      this.org_id = this.$store.getters.xt_user.org_id
51 56
     },
52 57
     methods: {
53 58
       getTimes(time) {
@@ -93,12 +98,12 @@
93 98
               }
94 99
 
95 100
               obj.details = this.setNewData(tempDetails)
96
-              obj.total = this.getTotal(obj.details)
101
+              // obj.total = this.getTotal(obj.details)
97 102
 
98
-              obj.details.push({
99
-                total: obj.total,
100
-                is_total: 1,
101
-              })
103
+              // obj.details.push({
104
+              //   total: obj.total,
105
+              //   is_total: 1,
106
+              // })
102 107
               this.list =  this.list.concat(obj.details)
103 108
             }
104 109
 

+ 0 - 13
src/xt_pages/outpatientCharges/allListTemplate/summary.vue View File

@@ -1,13 +0,0 @@
1
-<template>
2
-
3
-</template>
4
-
5
-<script>
6
-export default {
7
-  name: 'summary'
8
-}
9
-</script>
10
-
11
-<style scoped>
12
-
13
-</style>

+ 241 - 0
src/xt_pages/outpatientCharges/allListTemplate/summaryPrint.vue View File

@@ -0,0 +1,241 @@
1
+<template>
2
+  <div id="allList-print" class="allList-print">
3
+    <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}汇总清单</div>
4
+    <div class="allListInfo">
5
+      <div>科别:门诊</div>
6
+      <div>床号:</div>
7
+      <div>门诊号:{{ order.mdtrt_id }}</div>
8
+      <div>患者姓名:{{ patient.name }}</div>
9
+    </div>
10
+
11
+    <div class="allListInfo">
12
+      <div>预交款:</div>
13
+      <div>门诊日期:</div>
14
+      <div>总费用:{{ order.medfee_sumamt }}</div>
15
+    </div>
16
+
17
+    <div class="allListInfo">
18
+      <div>西药</div>
19
+      <div >中成药</div>
20
+      <div >中草药</div>
21
+      <div >检查费</div>
22
+    </div>
23
+
24
+
25
+    <div class="allListInfo">
26
+      <div >输氧费</div>
27
+      <div>手术费</div>
28
+      <div >化验费</div>
29
+      <div>输血费</div>
30
+    </div>
31
+
32
+
33
+    <div class="allListInfo">
34
+      <div >诊察费</div>
35
+      <div >治疗费</div>
36
+      <div >护理费</div>
37
+      <div >床位费</div>
38
+    </div>
39
+
40
+
41
+    <div class="allListInfo">
42
+      <div >麻醉费</div>
43
+      <div >材料费</div>
44
+      <div >其他费</div>
45
+    </div>
46
+    <!--    <div style="display:flex;justify-content: space-between;">-->
47
+<!--          <div style="position: absolute;top:160px;left:40px">西药</div>-->
48
+<!--          <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>-->
49
+<!--          <div style="position: absolute;top:160px;left:180px">检查费</div>-->
50
+<!--          <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>-->
51
+<!--          <div style="position: absolute;top:160px;left:340px">化验费</div>-->
52
+<!--          <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>-->
53
+<!--          <div style="position: absolute;top:160px;left:500px">治疗费</div>-->
54
+<!--          <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
55
+<!--          <div style="position: absolute;top:160px;left:500px">麻醉费</div>-->
56
+<!--          <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
57
+    <!--    </div>-->
58
+    <!--    <div style="display:flex;justify-content: space-between;">-->
59
+    <!--      <div style="position: absolute;top:190px;left:40px">中成药</div>-->
60
+    <!--      <div style="position: absolute;top:190px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>-->
61
+    <!--      <div style="position: absolute;top:190px;left:180px">输氧费</div>-->
62
+    <!--      <div style="position: absolute;top:190px;left:260px">{{ list.laboratoryCostTotal }}</div>-->
63
+    <!--      <div style="position: absolute;top:190px;left:340px">输血费</div>-->
64
+    <!--      <div style="position: absolute;top:190px;left:420px">{{ list.operationCostTotal }}</div>-->
65
+    <!--      <div style="position: absolute;top:190px;left:500px">护理费</div>-->
66
+    <!--      <div style="position: absolute;top:190px;left:580px">{{ list.otherCostTotal }}</div>-->
67
+
68
+    <!--      <div style="position: absolute;top:160px;left:500px">材料费</div>-->
69
+    <!--      <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
70
+    <!--    </div>-->
71
+    <!--    <div style="display:flex;justify-content: space-between;">-->
72
+    <!--      <div style="position: absolute;top:210px;left:40px">中草药</div>-->
73
+    <!--      <div style="position: absolute;top:210px;left:110px"></div>-->
74
+    <!--      <div style="position: absolute;top:210px;left:180px">手术费</div>-->
75
+    <!--      <div style="position: absolute;top:210px;left:260px"></div>-->
76
+    <!--      <div style="position: absolute;top:210px;left:340px">诊察费</div>-->
77
+    <!--      <div style="position: absolute;top:210px;left:420px">{{ list.materialCostTotal }}</div>-->
78
+    <!--      <div style="position: absolute;top:210px;left:500px">床位费</div>-->
79
+    <!--      <div style="position: absolute;top:210px;left:580px"></div>-->
80
+    <!--      <div style="position: absolute;top:160px;left:500px">其他</div>-->
81
+    <!--      <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
82
+    <!--    </div>-->
83
+
84
+
85
+    <table class="allListTable" border="1">
86
+      <tr>
87
+        <td style="width:10%">费用类别</td>
88
+        <td style="width:35%">项目名称</td>
89
+        <td style="width:15%">规格</td>
90
+        <td style="width:5%">单位</td>
91
+        <td style="width:10%">数量</td>
92
+        <td style="width:10%">单价</td>
93
+        <td style="width:15%">金额</td>
94
+        <td style="width:10%">医保类型</td>
95
+
96
+      </tr>
97
+      <template v-for='(item,index) in list'>
98
+        <tr>
99
+          <td style="width:10%">{{ item.med_chrgitm_type }}</td>
100
+          <td style="width:35%">{{ item.name }}</td>
101
+          <td style="width:15%">{{ item.spec }}</td>
102
+          <td style="width:5%">{{ item.unit }}</td>
103
+          <td style="width:10%">{{ item.count }}</td>
104
+          <td style="width:10%">{{ item.price }}</td>
105
+          <td style="width:15%">{{ (item.price * item.count).toFixed(2) }}</td>
106
+          <td style="width:10%">{{ item.medicine_insurance_kind }}</td>
107
+
108
+        </tr>
109
+      </template>
110
+    </table>
111
+
112
+  </div>
113
+</template>
114
+
115
+<script>
116
+import { uParseTime } from '@/utils/tools'
117
+
118
+export default {
119
+  props: {
120
+    list: {
121
+      type: Array,
122
+      default: function() {
123
+        return []
124
+      }
125
+    }, patient: {
126
+      type: Object,
127
+      default: function() {
128
+        return {}
129
+      }
130
+    }, order: {
131
+      type: Object,
132
+      default: function() {
133
+        return {}
134
+      }
135
+    }, admin: {
136
+      type: Object,
137
+      default: function() {
138
+        return {}
139
+      }
140
+    }, hospital: {
141
+      type: Object,
142
+      default: function() {
143
+        return {}
144
+      }
145
+
146
+    }
147
+  },
148
+  data() {
149
+    return {
150
+      page: 1,
151
+      pageArr: []
152
+    }
153
+  },
154
+  methods: {
155
+    getNowTime: function() {
156
+      let dateTime
157
+      let yy = new Date().getFullYear()
158
+      let mm = new Date().getMonth() + 1
159
+      let dd = new Date().getDate()
160
+      let hh = new Date().getHours()
161
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
162
+          :
163
+          new Date().getMinutes()
164
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
165
+          :
166
+          new Date().getSeconds()
167
+      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
168
+      return dateTime
169
+    },
170
+    getTimes(time) {
171
+      return uParseTime(time, '{y}-{m}-{d}')
172
+    }, getTotal: function(items) {
173
+      let total = 0
174
+      for (let i = 0; i < items.length; i++) {
175
+        total = total + (items[i].count * items[i].price).toFixed(2)
176
+      }
177
+      return total
178
+
179
+    }
180
+
181
+  },
182
+  watch: {
183
+    list: {
184
+      handler(newVal) {
185
+        this.getPage()
186
+      },
187
+      deep: true
188
+    }
189
+  }
190
+}
191
+
192
+
193
+</script>
194
+
195
+<style lang="scss" scoped>
196
+.allList-print {
197
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
198
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
199
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
200
+  margin-bottom: 20px;
201
+  padding: 20px 10px;
202
+}
203
+
204
+.allListTitle {
205
+  font-size: 24px;
206
+  text-align: center;
207
+  font-weight: bold;
208
+  margin-bottom: 10px;
209
+}
210
+
211
+.allListInfo {
212
+  display: flex;
213
+  font-size: 16px;
214
+  justify-content: space-between;
215
+  margin: 10px 0;
216
+}
217
+
218
+.allListTable {
219
+  width: 100%;
220
+  text-align: center;
221
+  border-collapse: collapse;
222
+  line-height: 20px;
223
+  font-size: 14px;
224
+  border-color: #000;
225
+  text-align: left;
226
+}
227
+
228
+.allListTable tr td {
229
+  padding: 0 5px;
230
+}
231
+
232
+.tableBottom {
233
+  font-size: 16px;
234
+  display: flex;
235
+  margin-top: 20px;
236
+}
237
+
238
+.tableBottomOne {
239
+  margin-right: 40px;
240
+}
241
+</style>

+ 21 - 5
src/xt_pages/outpatientCharges/listPrint.vue View File

@@ -14,9 +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>
17
+      <printOne v-if="org_id != 10106 && org_id != 10215 && org_id != 0" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18 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 19
       <print-three 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"></print-three>
20
+      <list-print-two v-if="org_id == 10215 || org_id == 0" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-two>
20 21
 <!--      <list-print-two></list-print-two>-->
21 22
     </div>
22 23
   </div>
@@ -77,7 +78,7 @@
77 78
 
78 79
     methods: {
79 80
       getTimes(time) {
80
-        return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
81
+        return uParseTime(time, '{y}-{m}-{d}')
81 82
       },
82 83
       getInfo(order_id) {
83 84
         let params = {
@@ -104,21 +105,29 @@
104 105
               console.log(infos)
105 106
               if (infos.advice && infos.advice.id == 0 && infos.project && infos.project.id > 0) {
106 107
                 obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
108
+                obj['feedetl_sn'] = infos.feedetl_sn
109
+
107 110
                 if(infos.project.type == 2){
108 111
                   obj['name'] = infos.project.project.project_name
112
+                  obj['spec'] = ''
113
+                  obj['unit'] =  infos.project.project.unit
114
+
115
+
109 116
                 }else if (infos.project.type == 3){
110 117
                   obj['name'] = infos.project.good_info.good_name
118
+                  obj['spec'] = infos.project.good_info.specification_name
119
+                  obj['unit'] = this.getGoodUnit(infos.project.good_info.good_unit)
120
+
111 121
                 }
112
-                obj['spec'] = 1
113
-                obj['unit'] = infos.project.unit
114 122
 
115 123
               }
116 124
 
117 125
               if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
118 126
                 obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
119 127
                 obj['name'] = infos.advice.advice_name
120
-                obj['spec'] = infos.advice.drug.drug_spec
121 128
                 obj['unit'] = infos.advice.drug.max_unit
129
+                obj['feedetl_sn'] =  infos.feedetl_sn
130
+
122 131
 
123 132
               }
124 133
               this.list.push(obj)
@@ -242,6 +251,13 @@
242 251
           }
243 252
         })
244 253
 
254
+      }, getGoodUnit(id) {
255
+        var goodUnit = this.$store.getters.good_unit
256
+        for (let i = 0; i < goodUnit.length; i++) {
257
+          if (goodUnit[i].id == id) {
258
+            return goodUnit[i].name
259
+          }
260
+        }
245 261
       },
246 262
       getInfo10106(order_id) {
247 263
         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 ) {

+ 25 - 18
src/xt_pages/outpatientCharges/listTemplate/listPrintTwo.vue View File

@@ -4,38 +4,45 @@
4 4
       <div class="allListInfo">
5 5
         <div>患者姓名:{{ patient.name }}</div>
6 6
         <div>性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
7
-        <div>结算类型:{{balance_accounts_type == 1 ?'医保':'自费'}}</div>
7
+        <div>结算类型:{{order.is_medicine_insurance == 1 ?'医保':'自费'}}</div>
8 8
         <div>发票号码:</div>
9
+      </div>
10
+
11
+    <div class="allListInfo">
9 12
         <div>住院/门诊号:{{order.mdtrt_id}}</div>
10
-        <div>科室:</div>
11
-        <div>就诊流水号:</div>
13
+        <div>科室:血透</div>
14
+        <div>就诊流水号:{{order.mdtrt_id}}</div>
12 15
         <div>总费用:{{order.medfee_sumamt}}</div>
13
-        <div>个人支付:{{order.psn_part_amt}}</div>
16
+    </div>
17
+
18
+      <div class="allListInfo">
19
+
20
+      <div>个人支付:{{order.psn_part_amt}}</div>
14 21
         <div>基金支付记账:{{order.fund_pay_sumamt}}</div>
15 22
         <div>补充医疗支付记账:0.00</div>
16 23
         <div>救助支付金额:{{order.maf_pay}}</div>
17 24
       </div>
18 25
       <table class="allListTable" border="1">
19 26
         <tr>
20
-          <td style="width:10%">序号</td>
21
-          <td style="width:10%">处方日期</td>
27
+          <td style="width:5%">序号</td>
28
+          <td style="width:15%">处方日期</td>
22 29
           <td style="width:10%">费用编号</td>
23
-          <td style="width:10%">费用名称/规格</td>
24
-          <td style="width:10%">单位</td>
25
-          <td style="width:10%">数量</td>
30
+          <td style="width:40%">费用名称/规格</td>
31
+          <td style="width:5%">单位</td>
32
+          <td style="width:5%">数量</td>
26 33
           <td style="width:10%">单价</td>
27 34
           <td style="width:10%">金额</td>
28 35
         </tr>
29 36
         <template v-for='(item,index) in list'>
30 37
           <tr>
31
-            <td style="width:10%">{{index + 1}}</td>
32
-            <td style="width:10%">{{}}</td>
33
-            <td style="width:10%">{{ item.feedetl_sn }}</td>
34
-            <td style="width:50%">{{ }}</td>
35
-            <td style="width:10%">{{ }}</td>
36
-            <td style="width:10%">{{ item.cnt }}</td>
37
-            <td style="width:10%">{{ item.pric }}</td>
38
-            <td style="width:10%">{{ (item.pric * item.cnt).toFixed(2) }}</td>
38
+            <td style="width:5%">{{index + 1}}</td>
39
+            <td style="width:15%">{{item.p_time}}</td>
40
+            <td style="width:10%">{{item.feedetl_sn.split("-")[2]}}</td>
41
+            <td style="width:40%">{{item.name}}/{{item.spec}}</td>
42
+            <td style="width:5%">{{item.unit}}</td>
43
+            <td style="width:5%">{{ item.count }}</td>
44
+            <td style="width:10%">{{ item.price }}</td>
45
+            <td style="width:10%">{{ (item.price * item.count).toFixed(2) }}</td>
39 46
           </tr>
40 47
         </template>
41 48
       </table>
@@ -114,7 +121,7 @@ export default {
114 121
   watch: {
115 122
     list: {
116 123
       handler(newVal) {
117
-        this.getPage()
124
+        // this.getPage()
118 125
       },
119 126
       deep: true
120 127
     }

+ 4 - 4
src/xt_pages/outpatientDoctorStation/batch_print_checkTemplate/printOne.vue View File

@@ -14,8 +14,8 @@
14 14
           id="prescription-print"
15 15
           class="prescription-print"
16 16
           style="page-break-after: always"
17
-          v-for="(item, index) in i.prescriptions"
18
-          v-if="item.project.length > 0 && getTeam(i.prescriptions).length > 0"
17
+          v-for="(item, index) in i.new_prescriptions"
18
+          v-if="item.project.length > 0 && getTeam(i.new_prescriptions).length > 0"
19 19
           :key="index"
20 20
       >
21 21
         <div class="printTitle">检验申请单</div>
@@ -41,7 +41,7 @@
41 41
               }}
42 42
             </div>
43 43
             <div
44
-                v-for="item in getSingleTeam(i.prescriptions)"
44
+                v-for="item in getSingleTeam(i.new_prescriptions)"
45 45
                 :key="item"
46 46
                 style="margin-bottom: 10px"
47 47
             >
@@ -87,7 +87,7 @@
87 87
             <div>检验项目:</div>
88 88
             <div>
89 89
               <div
90
-                  v-for="item in getTeam(i.prescriptions)"
90
+                  v-for="item in getTeam(i.new_prescriptions)"
91 91
                   :key="item.id"
92 92
                   style="margin-bottom: 10px"
93 93
               >

+ 2 - 2
src/xt_pages/outpatientDoctorStation/batch_print_template/batchPrintTwo.vue View File

@@ -7,8 +7,8 @@
7 7
           <div class="infoTitle">
8 8
             <p>姓名:{{i.his_patient.id != 0 ? i.his_patient.name : i.name}}</p>
9 9
             <p>性别:
10
-              <span v-if="item.gender == 1">男</span>
11
-              <span v-if="item.gender == 2">女</span>
10
+              <span v-if="i.gender == 1">男</span>
11
+              <span v-if="i.gender == 2">女</span>
12 12
             </p>
13 13
             <p>年龄:{{ i.his_patient.id != 0 ? getAge(i.his_patient) : i.age}}岁</p>
14 14
           </div>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/batch_print_template/index.vue View File

@@ -14,8 +14,8 @@
14 14
 
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16 16
       <div v-if="org_id != 10138 && org_id != 10278">
17
-        <printOne v-if="org_id != 10088 && org_id != 10215  && org_id != 0" :printData="printData"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
-        <batch-print-two v-if="org_id == 10088 || org_id == 0" :printData="printData"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></batch-print-two>
17
+        <printOne v-if="org_id != 10215" :printData="printData"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
+<!--        <batch-print-two v-if="org_id == 10088 || org_id == 0" :printData="printData"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></batch-print-two>-->
19 19
 <!--        <print-six v-if="org_id == 10088 || org_id == 0" :printData="printData"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></print-six>-->
20 20
 <!--        <printFour v-if="org_id == 10088 || org_id == 0"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>-->
21 21
 <!--        <printFive v-if="org_id == 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>-->

+ 2 - 3
src/xt_pages/outpatientDoctorStation/pastInquiries.vue View File

@@ -385,9 +385,8 @@ export default {
385 385
               }
386 386
             })
387 387
           } else {
388
-            // 过滤检查单数据出来,筛选出有检查项目的单子,不显示没有检查项目的单子
389 388
             Arr.forEach((el) => {
390
-              el.prescriptions.forEach((o) => {
389
+              el.new_prescriptions.forEach((o) => {
391 390
                 o.project.forEach((i) => {
392 391
                   if (i.team.project_team != '') {
393 392
                     new_patients.push(el)
@@ -397,7 +396,7 @@ export default {
397 396
             })
398 397
             let projectPrint = []
399 398
             new_patients.forEach((el) => {
400
-              el.prescriptions.map((item) => {
399
+              el.new_prescriptions.map((item) => {
401 400
                 if (item.project.length > 0) {
402 401
                   item.project.map((it) => {
403 402
                     projectPrint.push(it)

+ 1 - 1
src/xt_pages/outpatientDoctorStation/template/printThree.vue View File

@@ -98,7 +98,7 @@
98 98
             </div>
99 99
             <div style="margin-bottom: 10px; display: flex">
100 100
               临床诊断:{{
101
-                hisPatient.diagnosis ? getDiagnosis(hisPatient.diagnosis) : ""
101
+                item.info ? getDiagnosis(item.info.diagnosis) : ""
102 102
               }}
103 103
             </div>
104 104
             <div style="margin-bottom: 10px; display: flex">

+ 26 - 274
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

@@ -1,12 +1,7 @@
1 1
 <template>
2
-  <!-- <div class="main-contain outpatientChargesManagement">
3
-      <div class="position">
4
-          <bread-crumb :crumbs='crumbs'></bread-crumb>
5
-      </div> -->
6 2
   <div>
7 3
     <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8 4
       <div>
9
-
10 5
         <el-select size="small" v-model="item_type" placeholder="请选择"
11 6
                    style="width:150px;margin-left:10px;" @change="changeItem">
12 7
           <el-option
@@ -21,15 +16,20 @@
21 16
           </el-option>
22 17
         </el-select>
23 18
 
24
-        <div class="mainCell" style="margin-bottom:10px;">
25
-          <el-input size="small"  v-model.trim="search_input"
26
-                    class="filter-item"/>
27
-          <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
28
-                     @click="searchAction">
29
-            搜索
30
-          </el-button>
31
-        </div>
32
-
19
+        <el-input
20
+            size="small"
21
+            style="width: 150px"
22
+            v-model="keywords"
23
+            class="filter-item"
24
+        />
25
+        <el-button
26
+            size="small"
27
+            style="margin: 0 10px"
28
+            class="filter-item"
29
+            type="primary"
30
+            @click="searchAction"
31
+        >搜索
32
+        </el-button>
33 33
         <el-date-picker
34 34
             v-model="chargeDate"
35 35
             type="daterange"
@@ -40,6 +40,8 @@
40 40
             end-placeholder="结束日期">
41 41
         </el-date-picker>
42 42
       </div>
43
+      <div>
44
+      </div>
43 45
     </div>
44 46
     <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
45 47
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
@@ -81,16 +83,22 @@
81 83
 
82 84
 <script>
83 85
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
84
-import { GetSummaryDetail } from '@/api/his/his'
85
-import { uParseTime } from '@/utils/tools'
86
-import axios from 'axios'
86
+import {  } from '@/api/his/his'
87 87
 const moment = require('moment')
88 88
 export default {
89 89
   components: {
90 90
     BreadCrumb
91 91
 
92 92
   },
93
+  props: {
94
+    patient_id: {
95
+      type: Number,
96
+      default: 0
97
+    }
98
+  },
99
+
93 100
   data() {
101
+
94 102
     return {
95 103
       detail_loading: false,
96 104
       tempArr: [],
@@ -123,274 +131,18 @@ export default {
123 131
       this.getSummaryDetailList()
124 132
     },
125 133
     getSummaryDetailList() {
126
-      this.detail_loading = true
127 134
       let start_time = this.chargeDate[0]
128 135
       let end_time = this.chargeDate[1]
129 136
       let params = {
137
+        patient_id:this.patient_id,
130 138
         start_time: start_time,
131 139
         end_time: end_time,
132 140
         type: this.item_type,
133 141
         keyword: this.keywords
134 142
       }
135
-      GetSummaryDetail(params).then(response => {
136
-        if (response.data.state == 0) {
137
-          this.detail_loading = false
138
-
139
-          this.$message.error(response.data.msg)
140
-          return false
141
-        } else {
142
-          this.detail_loading = false
143
-
144
-          this.tableData = []
145
-          let tempPatients = []
146
-          let tempPatientsTwo = []
147
-
148
-          let tempData = response.data.data.patients
149
-          let data = response.data.data.patients
150
-          let orders = this.unique(tempData)
151
-          for (let i = 0; i < orders.length; i++) {
152
-            let obj = {
153
-              patient_id: orders[i].id,
154
-              name: orders[i].name,
155
-              orders: []
156
-            }
157
-            for (let b = 0; b < data.length; b++) {
158
-              if (orders[i].id == data[b].id) {
159
-                obj.orders = obj.orders.concat(data[b].orders)
160
-              }
161
-            }
162
-            tempPatients.push(obj)
163
-          }
164
-
165
-          for (let i = 0; i < tempPatients.length; i++) {
166
-            let obj = {
167
-              patient_id: tempPatients[i].patient_id,
168
-              name: tempPatients[i].name,
169
-              order_info: []
170
-            }
171
-            let orders = tempPatients[i].orders
172
-            for (let b = 0; b < orders.length; b++) {
173
-              for (let c = 0; c < orders[b].order_info.length; c++) {
174
-                let newObj = {}
175
-
176
-                newObj['count'] = orders[b].order_info[c].cnt
177
-                newObj['price'] = orders[b].order_info[c].pric
178
-                if (orders[b].order_info[c].advice_id > 0 && orders[b].order_info[c].project_id == 0) {
179
-                  newObj['type'] = 1
180
-                  newObj['item_name'] = orders[b].order_info[c].advice.advice_name
181
-                  newObj['item_id'] = orders[b].order_info[c].advice.drug_id
182
-
183
-                  if (orders[b].order_info[c].advice.drug.min_unit != orders[b].order_info[c].advice.drug.dose_unit) {
184
-                    newObj['item_spec'] =  orders[b].order_info[c].advice.drug.dose + orders[b].order_info[c].advice.drug.dose_unit + '*' + orders[b].order_info[c].advice.drug.min_number + orders[b].order_info[c].advice.drug.min_unit + '/' + orders[b].order_info[c].advice.drug.max_unit
185
-                  } else {
186
-
187
-                    newObj['item_spec'] = ''
188
-                  }
189
-
190
-                }
191
-                if (orders[b].order_info[c].advice_id == 0 && orders[b].order_info[c].project_id > 0) {
192
-                  newObj['type'] = 2
193
-                  newObj['item_id'] = orders[b].order_info[c].project.project_id
194
-
195
-                  if (orders[b].order_info[c].project.type == 2) {
196
-                    newObj['item_spec'] =""
197
-                    newObj['item_name'] = orders[b].order_info[c].project.project.project_name
198
-
199
-
200
-                  } else if (orders[b].order_info[c].project.type == 3) {
201
-                    newObj['item_spec'] =    orders[b].order_info[c].project.good_info.specification_name
202
-                    newObj['item_name'] = orders[b].order_info[c].project.good_info.good_name
203
-
204
-
205
-                  }
206
-                }
207
-                obj.order_info.push(newObj)
208
-              }
209
-            }
210
-            tempPatientsTwo.push(obj)
211
-          }
212
-
213
-          for (let d = 0; d < tempPatientsTwo.length; d++) {
214
-            tempPatientsTwo[d]['new_order_info'] = []
215
-            let project = []
216
-            let advice = []
217
-            for (let b = 0; b < tempPatientsTwo[d].order_info.length; b++) {
218
-              if (tempPatientsTwo[d].order_info[b].type == 1) {
219
-                advice.push(tempPatientsTwo[d].order_info[b])
220
-              } else {
221
-                project.push(tempPatientsTwo[d].order_info[b])
222
-              }
223
-            }
224
-            project = this.uniqueProjectAndAdvice(project)
225
-            advice = this.uniqueProjectAndAdvice(advice)
226
-
227
-            for (let i = 0; i < project.length; i++) {
228
-              let obj = {}
229
-              let count = 0
230
-              for (let a = 0; a < tempPatientsTwo[d].order_info.length; a++) {
231
-                if (project[i].item_id == tempPatientsTwo[d].order_info[a].item_id && project[i].price == tempPatientsTwo[d].order_info[a].price) {
232
-                  count = count + tempPatientsTwo[d].order_info[a].count
233
-                }
234
-              }
235
-
236
-
237
-
238
-              obj['price'] = project[i].price
239
-              obj['type'] = project[i].type
240
-              obj['item_name'] = project[i].item_name
241
-              obj['item_spec'] = project[i].item_spec
242
-
243
-              obj['item_id'] = project[i].item_id
244
-              obj['name'] = tempPatientsTwo[d].name
245
-              obj['patient_id'] = tempPatientsTwo[d].patient_id
246
-              obj['count'] = count
247
-              tempPatientsTwo[d].new_order_info.push(obj)
248
-            }
249
-
250
-            for (let i = 0; i < advice.length; i++) {
251
-              let obj = {}
252
-              let count = 0
253
-              for (let a = 0; a < tempPatientsTwo[d].order_info.length; a++) {
254
-                if (advice[i].item_id == tempPatientsTwo[d].order_info[a].item_id && advice[i].price == tempPatientsTwo[d].order_info[a].price) {
255
-                  count = count + tempPatientsTwo[d].order_info[a].count
256
-                }
257
-              }
258
-
259
-              obj['price'] = advice[i].price
260
-              obj['type'] = advice[i].type
261
-              obj['item_name'] = advice[i].item_name
262
-              obj['item_spec'] = advice[i].item_spec
263
-              obj['item_id'] = advice[i].item_id
264
-              obj['name'] = tempPatientsTwo[d].name
265
-              obj['patient_id'] = tempPatientsTwo[d].patient_id
266
-              obj['count'] = count
267
-              tempPatientsTwo[d].new_order_info.push(obj)
268
-            }
269
-
270
-          }
271
-
272
-          for (let i = 0; i < tempPatientsTwo.length; i++) {
273
-            let total = 0
274
-            for (let b = 0; b < tempPatientsTwo[i].new_order_info.length; b++) {
275
-              let new_name = tempPatientsTwo[i].new_order_info[b].item_name
276
-              // console.log('3 ' + new_name)
277
-              if (new_name != undefined){
278
-                // console.log('3 ' + tempPatientsTwo[i].new_order_info[b].patient_id)
279
-                // console.log('3 ' + tempPatientsTwo[i].new_order_info[b].price)
280
-                // console.log('3 ' + tempPatientsTwo[i].new_order_info[b].count)
281
-                //
282
-                // new_name = new_name.replace('( ', '')
283
-                // new_name = new_name.replace(' )', '')
284
-                if (new_name.length != 0) {
285
-                  total = parseFloat(total) + parseFloat((parseFloat(tempPatientsTwo[i].new_order_info[b].count.toString()) * parseFloat(tempPatientsTwo[i].new_order_info[b].price.toString().toString())).toFixed(2))
286
-                }
287
-
288
-
289
-
290
-              }
291
-
292
-
293
-            }
294
-            tempPatientsTwo[i]['total'] = total
295
-          }
296
-          console.log('tempPatientsTwo', tempPatientsTwo)
297
-          for (let i = 0; i < tempPatientsTwo.length; i++) {
298
-            // console.log(111,tempPatientsTwo[i].total)
299
-            if (tempPatientsTwo[i].new_order_info.length > 0) {
300
-
301
-              for (let b = 0; b < tempPatientsTwo[i].new_order_info.length; b++) {
302
-                // let new_name = tempPatientsTwo[i].new_order_info[b].item_name
303
-                // console.log('2 ' + new_name)
304
-                //
305
-                // new_name = new_name.replace('( ', '')
306
-                // new_name = new_name.replace(' )', '')
307
-
308
-                let obj = {
309
-                  name: tempPatientsTwo[i].name,
310
-                  patient_id: tempPatientsTwo[i].patient_id,
311
-                  price: tempPatientsTwo[i].new_order_info[b].price,
312
-                  type: tempPatientsTwo[i].new_order_info[b].type,
313
-                  item_name: tempPatientsTwo[i].new_order_info[b].item_name,
314
-                  item_id: tempPatientsTwo[i].new_order_info[b].item_id,
315
-                  count: tempPatientsTwo[i].new_order_info[b].count,
316
-                  item_spec: tempPatientsTwo[i].new_order_info[b].item_spec
317
-                }
318
-
319
-
320
-                // if(b == 0){
321
-                obj['total'] = tempPatientsTwo[i].total
322
-                // }else{
323
-                //   obj['total'] = 0
324
-                // }
325
-                this.tableData.push(obj)
326
-
327
-
328
-              }
329
-            }
330
-          }
331
-          this.handleSpanTempArr()
332
-          // this.tableData = tempPatientsTwo
333
-
334
-          // console.log(tempPatientsTwo.length)
335
-          //
336 143
 
337
-        }
338
-        //
339
-        // console.log('去重前')
340
-        // console.log(advice)
341
-        // console.log(project)
342
-        // //
343
-        // //
344 144
 
345
-        // //
346
-        // console.log('去重后')
347
-        //
348
-        // console.log(advice.length)
349
-        // console.log(project.length)
350
-        //
351
-        // for (let i = 0; i < project.length; i++) {
352
-        //   let obj = {}
353
-        //   let count = 0
354
-        //   for (let a = 0; a < tempPatientsTwo.length; a++) {
355
-        //     if (project[i].patient_id == tempPatientsTwo[a].patient_id && project[i].item_id == tempPatientsTwo[a].item_id && project[i].price == tempPatientsTwo[a].price) {
356
-        //       count = count + tempPatientsTwo[a].count
357
-        //       obj['count'] = count
358
-        //
359
-        //     }
360
-        //     obj['price'] = project[i].price
361
-        //     obj['type'] = project[i].type
362
-        //     obj['item_name'] = project[i].item_name
363
-        //     obj['item_id'] = project[i].item_id
364
-        //     obj['name'] = project[i].name
365
-        //     obj['patient_id'] = project[i].patient_id
366
-        //     obj['count'] = count
367
-        //     this.tableData.push(obj)
368
-        //   }
369
-        // }
370
-        //
371
-        //
372
-        // for (let i = 0; i < advice.length; i++) {
373
-        //   let obj = {}
374
-        //   let count = 0
375
-        //   for (let a = 0; a < tempPatientsTwo.length; a++) {
376
-        //     if (advice[i].patient_id == tempPatientsTwo[a].patient_id && advice[i].item_id == tempPatientsTwo[a].item_id && advice[i].price == tempPatientsTwo[a].price) {
377
-        //       count = count + tempPatientsTwo[a].count
378
-        //       obj['count'] = count
379
-        //
380
-        //     }
381
-        //     obj['price'] = advice[i].price
382
-        //     obj['type'] = advice[i].type
383
-        //     obj['item_name'] = advice[i].item_name
384
-        //     obj['item_id'] = advice[i].item_id
385
-        //     obj['name'] = advice[i].name
386
-        //     obj['patient_id'] = advice[i].patient_id
387
-        //     this.tableData.push(obj)
388
-        //   }
389
-        // }
390
-        // console.log(this.tableData.length)
391
-        // this.tableData = this.sort(this.tableData)
392 145
 
393
-      })
394 146
     },
395 147
   },
396 148
   created() {

+ 148 - 5
src/xt_pages/outpatientTool/components/gatherStatistics.vue View File

@@ -1,13 +1,156 @@
1 1
 <template>
2
+  <div>
3
+    <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
4
+      <div>
5
+        <el-select size="small" v-model="item_type" placeholder="请选择"
6
+                   style="width:150px;margin-left:10px;" @change="changeItem">
7
+          <el-option
8
+              label="全部"
9
+              value="0">
10
+          </el-option>
11
+          <el-option
12
+              v-for="(item,index) in items"
13
+              :key="index"
14
+              :label="item.name"
15
+              :value="item.id">
16
+          </el-option>
17
+        </el-select>
2 18
 
19
+        <el-input
20
+            size="small"
21
+            style="width: 150px"
22
+            v-model="keywords"
23
+            class="filter-item"
24
+        />
25
+        <el-button
26
+            size="small"
27
+            style="margin: 0 10px"
28
+            class="filter-item"
29
+            type="primary"
30
+            @click="searchAction"
31
+        >搜索
32
+        </el-button>
33
+        <el-date-picker
34
+            v-model="chargeDate"
35
+            type="daterange"
36
+            value-format="yyyy-MM-dd"
37
+            range-separator="至"
38
+            start-placeholder="开始日期"
39
+            @change="changeDate"
40
+            end-placeholder="结束日期">
41
+        </el-date-picker>
42
+      </div>
43
+      <div>
44
+      </div>
45
+    </div>
46
+    <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
47
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
48
+              show-summary
49
+              max-height="600"
50
+              v-loading="detail_loading"
51
+              highlight-current-row>
52
+      <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
53
+      <el-table-column align="center" prop="name" label="处方日期">
54
+        <template slot-scope="scope">{{  }}</template>
55
+      </el-table-column>
56
+      <el-table-column align="center" prop="name" label="费用分类">
57
+        <template slot-scope="scope">{{scope.row.code}}</template>
58
+      </el-table-column>
59
+      <el-table-column align="center" prop="name" label="项目名称">
60
+        <template slot-scope="scope">{{scope.row.item_name}}</template>
61
+      </el-table-column>
62
+      <el-table-column align="center" prop="name" label="规格型号">
63
+        <template slot-scope="scope">{{scope.row.item_spec}}</template>
64
+      </el-table-column>
65
+      <el-table-column align="center" prop="name" label="数量">
66
+        <template slot-scope="scope">{{scope.row.count}}</template>
67
+      </el-table-column>
68
+      <el-table-column align="center" prop="name" label="单价">
69
+        <template slot-scope="scope">{{scope.row.price.toFixed(2)}}</template>
70
+      </el-table-column>
71
+      <el-table-column align="center" prop="name" label="金额">
72
+        <template slot-scope="scope">
73
+          <div>{{(scope.row.price.toFixed(2)*scope.row.count).toFixed(2)}}</div>
74
+        </template>
75
+      </el-table-column>
76
+      <el-table-column align="center" prop="name" label="医保类别">
77
+        <template slot-scope="scope"></template>
78
+      </el-table-column>
79
+
80
+    </el-table>
81
+  </div>
82
+
83
+  <!-- </div> -->
3 84
 </template>
4 85
 
86
+
5 87
 <script>
88
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
89
+import {  } from '@/api/his/his'
90
+const moment = require('moment')
6 91
 export default {
7
-  name: 'gatherStatistics'
8
-}
9
-</script>
92
+  components: {
93
+    BreadCrumb
94
+
95
+  },
96
+  props: {
97
+    patient_id: {
98
+      type: Number,
99
+      default: 0
100
+    }
101
+  },
102
+
103
+  data() {
104
+
105
+    return {
106
+      detail_loading: false,
107
+      tempArr: [],
108
+      pos: 0,
109
+      search_input: '',
110
+
111
+      sameRowArr: [],
112
+      keywords: '',
113
+      tableData: [],
114
+      chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
115
+      item_type: '0',
116
+      items: [
117
+        { id: 1, name: '药品' },
118
+        { id: 3, name: '耗材' },
119
+        { id: 2, name: '项目' }
10 120
 
11
-<style scoped>
121
+      ]
12 122
 
13
-</style>
123
+    }
124
+  },
125
+  methods: {
126
+    searchAction(){
127
+
128
+
129
+    },
130
+    changeDate() {
131
+      this.getSummaryDetailList()
132
+    },
133
+    changeItem() {
134
+      this.getSummaryDetailList()
135
+    },
136
+    getSummaryDetailList() {
137
+      let start_time = this.chargeDate[0]
138
+      let end_time = this.chargeDate[1]
139
+      let params = {
140
+        patient_id:this.patient_id,
141
+        start_time: start_time,
142
+        end_time: end_time,
143
+        type: this.item_type,
144
+        keyword: this.keywords
145
+      }
146
+
147
+
148
+
149
+    },
150
+  },
151
+  created() {
152
+    this.getSummaryDetailList()
153
+
154
+  }
155
+}
156
+</script>

+ 11 - 5
src/xt_pages/outpatientTool/statistics.vue View File

@@ -1,6 +1,7 @@
1 1
 <template>
2 2
   <div class="main-contain new-main-contain">
3 3
     <div class="position">
4
+<!--      <bread-crumb :crumbs='crumbs'></bread-crumb>-->
4 5
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5 6
     </div>
6 7
     <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
@@ -22,8 +23,8 @@
22 23
           <el-tab-pane label="明细" name="明细"></el-tab-pane>
23 24
           <el-tab-pane label="汇总" name="汇总"></el-tab-pane>
24 25
         </el-tabs>
25
-        <detail-statistics v-if="titleType == '明细'"></detail-statistics>
26
-        <gather-statistics v-if="titleType == '汇总'"></gather-statistics>
26
+        <detail-statistics v-if="titleType == '明细'" :patient_id="patient_id"></detail-statistics>
27
+        <gather-statistics v-if="titleType == '汇总'" :patient_id="patient_id"></gather-statistics>
27 28
       </div>
28 29
     </div>
29 30
   </div>
@@ -34,12 +35,14 @@ import {
34 35
   GetAllPatients,
35 36
 } from '@/api/his/his_tools'
36 37
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
38
+
37 39
 import DetailStatistics from './components/detailStatistics'
38 40
 import GatherStatistics from './components/gatherStatistics'
39 41
 export default {
40 42
   components: {
41 43
     GatherStatistics,
42 44
     DetailStatistics,
45
+    BreadCrumb,
43 46
 
44 47
 
45 48
   },
@@ -47,12 +50,13 @@ export default {
47 50
 
48 51
     return {
49 52
       patientTableData:[],
50
-      tableHeight: '',
53
+      tableHeight: 400,
51 54
       crumbs: [
52 55
         { path: false, name: 'His工具' },
53 56
         { path: false, name: '明细汇总统计' }
54 57
       ],
55
-      titleType: '明细'
58
+      titleType: '明细',
59
+      patient_id:0
56 60
     }
57 61
   },
58 62
   methods: {
@@ -63,10 +67,12 @@ export default {
63 67
           return false
64 68
         } else {
65 69
           this.patientTableData = response.data.data.list
70
+          this.patient_id =  this.patientTableData[0].id
66 71
         }
67 72
       })
68 73
     },
69
-    handleCurrentChange(){
74
+    handleCurrentChange(row){
75
+      this.patient_id =  row.id
70 76
 
71 77
     },
72 78