Browse Source

提交代码

陈少旭 1 year ago
parent
commit
81d462f23b

+ 15 - 6
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -23,7 +23,7 @@
23 23
           org_id == 10138 ||
24 24
           org_id == 9504 ||
25 25
           org_id == 10028 ||
26
-          org_id == 10278 || org_id == 0
26
+          org_id == 10278
27 27
         "
28 28
       >
29 29
         <printTwo :info="info" v-if="org_id == 9990"></printTwo>
@@ -58,17 +58,21 @@
58 58
       </printSeven>
59 59
       <print10191 :info="info" v-if="org_id == 10191"></print10191>
60 60
       <printTen :info="info" v-if="org_id == 10210"></printTen>
61
+      <printEleven :info="info" v-if="org_id == 10485 || org_id == 0"></printEleven>
61 62
       <printOne :info="info" v-if=" org_id != 9990 &&
62 63
             org_id != 10138 &&
63 64
             org_id != 9504 &&
64 65
             org_id != 10028 &&
65 66
             org_id != 0 &&
67
+            org_id != 10485 &&
66 68
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 && this.paramsObj.balance_accounts_type == 1"></printOne>
67 69
 
70
+
68 71
       <privateChargePrint  :info="info" v-if="org_id != 9990 &&
69 72
             org_id != 10138 &&
70 73
             org_id != 9504 &&
71 74
             org_id != 10028 &&
75
+            org_id != 0 &&
72 76
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 && this.paramsObj.balance_accounts_type == 2"></privateChargePrint>
73 77
     </div>
74 78
   </div>
@@ -91,6 +95,7 @@
91 95
   import printSeven from "./statementTemplate/printSeven";
92 96
   import Print10191 from "./statementTemplate/print10191";
93 97
   import printTen from "./statementTemplate/printTen";
98
+  import printEleven from "./statementTemplate/printeEleven"
94 99
   export default {
95 100
     name: "dialysisPrintOrder",
96 101
     components: {
@@ -104,7 +109,8 @@
104 109
       printFour,
105 110
       testVue,
106 111
       printFive,
107
-      printTen
112
+      printTen,
113
+      printEleven
108 114
     },
109 115
     props: {
110 116
       paramsObj: Object,
@@ -337,7 +343,6 @@
337 343
             this.patientTableData = response.data.data.list;
338 344
             this.patientTableDataTwo = response.data.data.list;
339 345
 
340
-            console.log("222", this.patientTableData);
341 346
             let cal_one = 0;
342 347
             let cal_two = 0;
343 348
             for (let i = 0; i < response.data.data.list.length; i++) {
@@ -483,7 +488,7 @@
483 488
                   console.log("this.num", this.num);
484 489
                 }
485 490
               });
486
-            } else if (this.org_id == 10028 ||  this.org_id == 0  || this.org_id == 9504) {
491
+            } else if (this.org_id == 10028  || this.org_id == 9504) {
487 492
               getPrivateExpenses(params).then((response) => {
488 493
                 if (response.data.state == 0) {
489 494
                   // this.$message.error(response.data.msg)
@@ -616,6 +621,7 @@
616 621
                   that.info["order_infos"] = response.data.data.order_infos;
617 622
                   that.info["diagnosis"] = response.data.data.diagnosis;
618 623
                   that.info["his"] = response.data.data.his;
624
+                  that.info["order"] = response.data.data.order;
619 625
 
620 626
                   let obj = {
621 627
                     type: 1,
@@ -677,9 +683,12 @@
677 683
                     that.info.enddate = that.getTimes(that.paramsObj.end_time);
678 684
                   }
679 685
 
680
-                  that.info.order_infos.map((item) => {
686
+                  console.log("~~~~~~~~")
687
+                  console.log(that.info)
688
+                  console.log("~~~~~~~~")
689
+
690
+
681 691
 
682
-                  });
683 692
 
684 693
                 }
685 694
               });

+ 216 - 0
src/xt_pages/outpatientCharges/statementTemplate/printeEleven.vue View File

@@ -0,0 +1,216 @@
1
+<template>
2
+  <div id="statement-print" class="statement-print">
3
+    <div class="statementTitle">费用明细算单</div>
4
+    <div class="statementTable">
5
+      <table border="1" style="border-collapse: collapse;width: 100%;border: none;">
6
+        <tr>
7
+          <td colspan="4">医院机构名称:{{info.fixmedins_name}}</td>
8
+          <td colspan="4">发票号:</td>
9
+        </tr>
10
+        <tr style="border-bottom: 1px solid black;">
11
+          <td colspan="4" >单据编码:{{info.number}}</td>
12
+          <td colspan="2" >就诊时间:{{info.setl_time}}</td>
13
+          <td colspan="2" >金额单位:{{info.medfee_sumamt}}元</td>
14
+        </tr>
15
+        <tr>
16
+          <td colspan="4">姓名:{{info.patient.name}}</td>
17
+          <td colspan="4">身份证号:{{info.patient.id_card_no}}</td>
18
+        </tr>
19
+        <tr>
20
+          <td colspan="8">诊断:{{info.diagnosis}}</td>
21
+        </tr>
22
+        <tr style="border-bottom: 1px solid black;">
23
+          <td colspan="4" v-if="info.psn_type == '11'">人员类别:在职</td>
24
+          <td colspan="4"  v-else-if="info.psn_type == '1101'">人员类别:职工在职</td>
25
+          <td colspan="4" v-else-if="info.psn_type == '1102'">人员类别:公务员在职</td>
26
+          <td colspan="4" v-else-if="info.psn_type == '1103'">人员类别:灵活就业人员在职</td>
27
+          <td colspan="4" v-else-if="info.psn_type == '1160'">人员类别:地方其他扩展人员</td>
28
+          <td colspan="4" v-else-if="info.psn_type == '12'">人员类别:退休人员</td>
29
+          <td colspan="4" v-else-if="info.psn_type == '1201'">人员类别:职工退休</td>
30
+          <td colspan="4" v-else-if="info.psn_type == '1202'">人员类别:公务员退休</td>
31
+          <td colspan="4" v-else-if="info.psn_type == '1203'">人员类别:灵活就业人员退休</td>
32
+          <td colspan="4" v-else-if="info.psn_type == '1260'">人员类别:地方其他扩展人员</td>
33
+          <td colspan="4" v-else-if="info.psn_type == '13'">人员类别:离休</td>
34
+          <td colspan="4" v-else-if="info.psn_type == '1300'">人员类别:离休人员</td>
35
+          <td colspan="4" v-else-if="info.psn_type == '1360'">人员类别:地方其他扩展人员</td>
36
+          <td colspan="4" v-else-if="info.psn_type == '14'">人员类别:居民(未成年)</td>
37
+          <td colspan="4" v-else-if="info.psn_type == '1401'">人员类别:新生儿</td>
38
+          <td colspan="4" v-else-if="info.psn_type == '1402'">人员类别:学龄前儿童</td>
39
+          <td colspan="4" v-else-if="info.psn_type == '1403'">人员类别:中小学生</td>
40
+          <td colspan="4" v-else-if="info.psn_type == '1404'">人员类别:大学生</td>
41
+          <td colspan="4" v-else-if="info.psn_type == '1405'">人员类别:未成年(未入学)</td>
42
+          <td colspan="4" v-else-if="info.psn_type == '15'">人员类别:居民(成年)</td>
43
+          <td colspan="4" v-else-if="info.psn_type == '1501'">人员类别:普通居民(成年)</td>
44
+          <td colspan="4" v-else-if="info.psn_type == '1560'">人员类别:地方其他扩展身份</td>
45
+          <td colspan="4" v-else-if="info.psn_type == '16'">人员类别:居民(老年)</td>
46
+          <td colspan="4" v-else></td>
47
+          <td colspan="4" v-if="info.insutype == '310'">险种类型:职工基本医疗保险</td>
48
+          <td colspan="4" v-if="info.insutype == '320'">险种类型:公务员医疗补助</td>
49
+          <td colspan="4" v-if="info.insutype == '330'">险种类型:大额医疗费用补助</td>
50
+          <td colspan="4" v-if="info.insutype == '340'">险种类型:离休人员医疗保障</td>
51
+          <td colspan="4" v-if="info.insutype == '390'">险种类型:城乡居民基本医疗保险</td>
52
+          <td colspan="4" v-if="info.insutype == '392'">险种类型:城乡居民大病医疗保险</td>
53
+          <td colspan="4" v-if="info.insutype == '510'">险种类型:生育保险</td>
54
+          <td colspan="4" v-else></td>
55
+
56
+
57
+        </tr>
58
+        <tr style="border-bottom: 1px solid black;text-align: center;">
59
+          <td width="12.5%">项目</td>
60
+          <td width="12.5%">金额</td>
61
+          <td width="12.5%">项目</td>
62
+          <td width="12.5%">金额</td>
63
+          <td width="12.5%">项目</td>
64
+          <td width="12.5%">金额</td>
65
+          <td width="12.5%">项目</td>
66
+          <td width="12.5%">金额</td>
67
+        </tr>
68
+        <tr style="text-align: center;">
69
+          <td>西药费</td>
70
+          <td>{{info.western_medicine_cost_total}}</td>
71
+          <td>化验费</td>
72
+          <td>{{info.laboratory_cost_total}}</td>
73
+          <td>治疗费</td>
74
+          <td>{{info.treat_cost_total}}</td>
75
+          <td>处置费</td>
76
+          <td></td>
77
+        </tr>
78
+        <tr style="text-align: center;">
79
+          <td>中成药</td>
80
+          <td>{{info.chinese_traditional_medicine_cost_total}}</td>
81
+          <td>诊疗费</td>
82
+          <td></td>
83
+          <td>材料费</td>
84
+          <td>{{info.material_cost_total}}</td>
85
+          <td>护理费</td>
86
+          <td></td>
87
+        </tr>
88
+        <tr style="text-align: center;">
89
+          <td>注射费</td>
90
+          <td></td>
91
+          <td>检查费</td>
92
+          <td>{{info.check_cost_total}}</td>
93
+          <td>输氧费</td>
94
+          <td></td>
95
+          <td>其他</td>
96
+          <td>{{info.other_cost_total}}</td>
97
+        </tr>
98
+        <tr style="border-bottom: 1px solid black; font: 16px bolder;">
99
+          <td colspan="8">合计:{{info.medfee_sumamt}}</td>
100
+        </tr>
101
+        <tr>
102
+          <td colspan="8">医保基金支付金额:{{info.fund_pay_sumamt}}</td>
103
+        </tr>
104
+        <tr style="border-bottom: 1px solid black;">
105
+          <td colspan="8">个人现金支付金额:{{info.psn_cash_pay}}</td>
106
+        </tr>
107
+        <tr>
108
+          <td colspan="2" >家属或参保人签名:</td>
109
+          <td colspan="2" >收费员签名:</td>
110
+          <td colspan="2" >医院盖章:</td>
111
+        </tr>
112
+        <tr>
113
+          <td colspan="8">医师签名:</td>
114
+        </tr>
115
+      </table>
116
+    </div>
117
+  </div>
118
+</template>
119
+<script>
120
+import { uParseTime } from '@/utils/tools'
121
+
122
+export default {
123
+  data() {
124
+    return {
125
+      list: {},
126
+      prescription: [],
127
+      patient: {},
128
+      orgname: '',
129
+
130
+      result: {},
131
+      org_code: '',
132
+      patient_name: '',
133
+      doctor_code: '',
134
+      doctor_name: '',
135
+
136
+      name_arr: [],
137
+      spec_arr: [],
138
+      count_arr: [],
139
+      price_arr: [],
140
+      total_arr: []
141
+
142
+    }
143
+  },
144
+  props: {
145
+    paramsObj: Object,
146
+    info: {
147
+      type: Object,
148
+      default: function() {
149
+        return {}
150
+      }
151
+    },
152
+    balanceAccounts: Object
153
+  },
154
+  methods: {
155
+    getDay(dateString1,dateString2){
156
+      var  startDate = Date.parse(dateString1);
157
+      var  endDate = Date.parse(dateString2);
158
+      if (startDate>endDate){
159
+        return 0;
160
+      }
161
+      if (startDate==endDate){
162
+        return 1;
163
+      }
164
+      var days=(endDate - startDate)/(1*24*60*60*1000);
165
+      return  days;
166
+    },
167
+    getTime(value, temp) {
168
+      if (value != undefined) {
169
+        return uParseTime(value, temp)
170
+      }
171
+      return ''
172
+    }
173
+  },
174
+  mounted() {
175
+
176
+
177
+  },
178
+  watch: {
179
+    paramsObj: {//深度监听,可监听到对象、数组的变化
180
+      handler(val, oldVal) {
181
+
182
+
183
+      },
184
+      deep: true
185
+    }
186
+  }
187
+}
188
+</script>
189
+
190
+<style lang="scss" scoped>
191
+.statement-print {
192
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
193
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
194
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
195
+  margin-bottom: 20px;
196
+  padding: 20px 10px;
197
+}
198
+.statementTitle {
199
+  font-size: 28px;
200
+  text-align: center;
201
+  font-weight: bold;
202
+  margin-bottom: 10px;
203
+}
204
+.statementTable {
205
+  width: 100%;
206
+  font-size: 14px;
207
+  word-wrap: break-word;
208
+  word-break: break-all;
209
+  table tr td{
210
+    padding: 5px;
211
+    line-height: 30px;
212
+    border: none;
213
+  }
214
+}
215
+
216
+</style>