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
df86a19e9e

File diff suppressed because it is too large
+ 831 - 789
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


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

@@ -190,8 +190,8 @@ export default {
190 190
               scanStyles: false
191 191
             });
192 192
           }
193
-          
194
-          
193
+
194
+
195 195
         },500)
196 196
       }else if(this.$store.getters.xt_user.org_id == 9504){
197 197
         const style =
@@ -213,7 +213,7 @@ export default {
213 213
         });
214 214
       }
215 215
 
216
-      
216
+
217 217
 
218 218
       // if (this.org_template_info.template_id == 1) {
219 219
       //   printJS({
@@ -306,7 +306,7 @@ export default {
306 306
 
307 307
             return false
308 308
           } else {
309
-            
309
+
310 310
             this.balanceAccounts = response.data.data
311 311
             let arr = []
312 312
             let obj = {
@@ -326,7 +326,7 @@ export default {
326 326
             }
327 327
             let num = 0
328 328
             this.balanceAccounts.order_info.map(item => {
329
-              
329
+
330 330
               if(item.advice_id > 0){
331 331
                 obj.details.push(item)
332 332
                 obj.total += (item.pric * item.advice.prescribing_number)
@@ -354,7 +354,7 @@ export default {
354 354
         })
355 355
 
356 356
 
357
-      }else if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  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 == 4 || this.$store.getters.xt_user.org_id == 9990) {
357
+      }else {
358 358
 
359 359
         var that = this;
360 360
 

+ 254 - 281
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue View File

@@ -1,216 +1,249 @@
1 1
 <template>
2 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"
4
+             style="position: relative;">
4 5
             <img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
5 6
             <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
6 7
             <div style="display:flex;">
7
-                <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.patient.dialysis_no ? info.patient.dialysis_no : ''}}</span></div>
8
+                <div>单据号:<span
9
+                        style="display:inline-block;width:200px;">{{info.order_number ? info.order_number : ''}}</span>
10
+                </div>
11
+                <div>透析号:<span style="display:inline-block;width:200px;">{{info.patient.dialysis_no ? info.patient.dialysis_no : ''}}</span>
12
+                </div>
9 13
             </div>
10 14
             <div style="display:flex;justify-content: space-between;">
11 15
                 <div style="display:flex;">
12
-                  <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient.name ? info.patient.name.indexOf("(") > -1 ? info.patient.name.substring(0,info.patient.name.indexOf("(")) : info.patient.name : ''}}</span></div>
13
-                  <div>性别:<span style="display:inline-block;width:30px;">{{info.patient.gender == '1' ? '男' : '女'}}</span></div>
14
-                  <div>年龄:<span style="display:inline-block;width:50px;">{{info.patient.age ? info.patient.age : ''}}岁</span></div>
15
-                  <div>费别:<span style="display:inline-block;min-width:80px;">医保</span>
16
-                  </div>
17
-                  <div style="margin-left:2px;">电脑号:<span style="display:inline-block;width:80px;">{{info.psn_no ? info.psn_no : ''}}</span></div>
18
-                  <div>收费日期:<span style="display:inline-block;width:100px;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span></div>
16
+                    <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient.name ? info.patient.name.indexOf('(') > -1 ? info.patient.name.substring(0,info.patient.name.indexOf('(')) : info.patient.name : ''}}</span>
17
+                    </div>
18
+                    <div>性别:<span
19
+                            style="display:inline-block;width:30px;">{{info.patient.gender == '1' ? '男' : '女'}}</span>
20
+                    </div>
21
+                    <div>年龄:<span
22
+                            style="display:inline-block;width:50px;">{{info.patient.age ? info.patient.age : ''}}岁</span>
23
+                    </div>
24
+                    <div>费别:<span style="display:inline-block;min-width:80px;">医保</span>
25
+                    </div>
26
+                    <div style="margin-left:2px;">电脑号:<span style="display:inline-block;width:80px;">{{info.psn_no ? info.psn_no : ''}}</span>
27
+                    </div>
28
+                    <div>收费日期:<span style="display:inline-block;width:100px;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span>
29
+                    </div>
19 30
                 </div>
20 31
                 <div style="float:right">金额单位:元</div>
21 32
             </div>
22 33
             <div style="min-height: 300px;">
23
-              <table border='1' style="width:100%;" cellspacing="0">
24
-                  <tr>
25
-                      <td width="70">类别</td>
26
-                      <td>项目</td>
27
-                      <td min-width="180" style="min-width:60px;">规格</td>
28
-                      <td width="40">单位</td>
29
-                      <td width="40">数量</td>
30
-                      <td width="60">单价</td>
31
-                      <td width="70">总额</td>
32
-                      <td width="130">小计</td>
33
-                  </tr>
34
-                  <div v-for="(item,i) in info.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
35
-                      <tr v-for="(subItem,index) in item.details" :key="index">
36
-                        <td>
37
-                          <span v-if="item.type == 1">药品费</span>
38
-                          <span v-if="item.type == 2">治疗费</span>
39
-                          <span v-if="item.type == 3">耗材费</span>
40
-                        </td>
41
-                        <td>
42
-                          <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
43
-                          <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
44
-                          <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
45
-                        </td>
46
-                        <td>
47
-                          <span v-if="item.type == 1"><span v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
48
-                          <span v-if="item.type == 2"></span>
49
-                          <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
50
-                        </td>
51
-                        <td>
52
-                          <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
53
-                          <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
54
-                          <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
55
-                        </td>
56
-                        <td>
57
-                          <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
58
-                          <span v-if="item.type == 2">{{ subItem.project.count }}</span>
59
-                          <span v-if="item.type == 3">{{ subItem.project.count }}</span>
60
-                        </td>
61
-                        <td>
62
-                          <span v-if="item.type == 1">{{ subItem.pric }}</span>
63
-                          <span v-if="item.type == 2">{{ subItem.pric }}</span>
64
-                          <span v-if="item.type == 3">{{ subItem.pric }}</span>
34
+                <table border='1' style="width:100%;" cellspacing="0">
35
+                    <tr>
36
+                        <td width="70">类别</td>
37
+                        <td>项目</td>
38
+                        <td min-width="180" style="min-width:60px;">规格</td>
39
+                        <td width="40">单位</td>
40
+                        <td width="40">数量</td>
41
+                        <td width="60">单价</td>
42
+                        <td width="70">总额</td>
43
+                        <td width="130">小计</td>
44
+                    </tr>
45
+                    <div v-for="(item,i) in info.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
46
+                        <tr v-for="(subItem,index) in item.details" :key="index">
47
+                            <td>
48
+                                <span v-if="item.type == 1">药品费</span>
49
+                                <span v-if="item.type == 2">治疗费</span>
50
+                                <span v-if="item.type == 3">耗材费</span>
51
+                            </td>
52
+                            <td>
53
+                                <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
54
+                                <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
55
+                                <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
56
+                            </td>
57
+                            <td>
58
+                                <span v-if="item.type == 1"><span
59
+                                        v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
60
+                                <span v-if="item.type == 2"></span>
61
+                                <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
62
+                            </td>
63
+                            <td>
64
+                                <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
65
+                                <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
66
+                                <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
67
+                            </td>
68
+                            <td>
69
+                                <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
70
+                                <span v-if="item.type == 2">{{ subItem.project.count }}</span>
71
+                                <span v-if="item.type == 3">{{ subItem.project.count }}</span>
72
+                            </td>
73
+                            <td>
74
+                                <span v-if="item.type == 1">{{ subItem.pric }}</span>
75
+                                <span v-if="item.type == 2">{{ subItem.pric }}</span>
76
+                                <span v-if="item.type == 3">{{ subItem.pric }}</span>
77
+                            </td>
78
+                            <td>
79
+                                <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
80
+                                <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
81
+                                <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
82
+                            </td>
83
+                            <td :rowspan="item.details.length" v-if="index == 0"
84
+                                style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}
85
+                            </td>
86
+                        </tr>
87
+                    </div>
88
+                    <tr>
89
+                        <td colspan="7">
90
+                            <div style="display:flex;flez-wrap:wrap;">
91
+                                <div style="width:33%;" v-for="(item,index) in info.new_detail_list" :key="index">
92
+                                    <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
93
+                                    <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(2) }}</span>
94
+                                    <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
95
+                                </div>
96
+                            </div>
65 97
                         </td>
66
-                        <td>
67
-                          <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
68
-                          <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
69
-                          <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
98
+                        <td>合计: {{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
99
+                    </tr>
100
+                    <tr>
101
+                        <td colspan="7">
102
+                            <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
103
+                                <div style="width:33%;">医疗费总额:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</div>
104
+                                <div style="width:33%;">基金支付金额:{{info.fund_pay_sumamt?info.fund_pay_sumamt:0}}元</div>
105
+                                <div style="width:33%;">个人账户支付金额:{{info.acct_pay?info.acct_pay:0}}元</div>
106
+
107
+                            </div>
108
+                            <div style="display:flex;flez-wrap:wrap;font-size:16px;">
109
+                                <div style="width:33%;">个人支付金额:{{info.psn_cash_pay?info.psn_cash_pay:0}}元</div>
110
+                                <div style="width:33%;">个人账户金额:{{info.balc}}元</div>
111
+                            </div>
70 112
                         </td>
71
-                        <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
72
-                      </tr>
73
-                  </div>
74
-                  <tr>
75
-                    <td colspan="7">
76
-                      <div style="display:flex;flez-wrap:wrap;">
77
-                        <div style="width:33%;" v-for="(item,index) in info.new_detail_list" :key="index">
78
-                          <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
79
-                          <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(2) }}</span>
80
-                          <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
81
-                        </div>
82
-                      </div>
83
-                    </td>
84
-                    <td>合计: {{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
85
-                  </tr>
86
-                  <tr>
87
-                      <td colspan="7">
88
-                          <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
89
-                              <div style="width:33%;">医疗费总额:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</div>
90
-                              <div style="width:33%;">基金支付金额:{{info.fund_pay_sumamt?info.fund_pay_sumamt:0}}元</div>
91
-                              <div style="width:33%;">个人账户支付金额:{{info.acct_pay?info.acct_pay:0}}元</div>
92
-
93
-                          </div>
94
-                          <div style="display:flex;flez-wrap:wrap;font-size:16px;">
95
-                              <div style="width:33%;">个人支付金额:{{info.psn_cash_pay?info.psn_cash_pay:0}}元</div>
96
-                              <div style="width:33%;">个人账户金额:{{info.balc}}元</div>
97
-                          </div>
98
-                      </td>
99
-                      <td style="font-size:16px;">合计:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
100
-                  </tr>
101
-
102
-              </table>
113
+                        <td style="font-size:16px;">合计:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>
114
+                    </tr>
115
+
116
+                </table>
103 117
             </div>
104 118
             <div style="float:right;margin:10px 0;display:flex;">
105 119
                 <div>操作人:<span style="width:100px;display:inline-block;">{{info.p_admin.user_name}}</span></div>
106
-                <div>操作日期:<span style="width:100px;display:inline-block;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span></div>
120
+                <div>操作日期:<span style="width:100px;display:inline-block;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</span>
121
+                </div>
107 122
             </div>
108 123
             <img style="width:100%;" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
109 124
         </div>
110 125
         <div v-else id='prescription-print' class="prescription-print" style="position: relative;">
111
-          <img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
126
+            <img style="width:100%;height:80px" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
112 127
             <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
113 128
             <div style="display:flex;">
114
-                <div>单据号:<span style="display:inline-block;width:200px;">{{balanceAccounts.his.number ? balanceAccounts.his.number : ''}}</span></div>
115
-                <div>透析号:<span style="display:inline-block;width:200px;">{{balanceAccounts.patient ? balanceAccounts.patient.dialysis_no : ''}}</span></div>
129
+                <div>单据号:<span style="display:inline-block;width:200px;">{{balanceAccounts.his.number ? balanceAccounts.his.number : ''}}</span>
130
+                </div>
131
+                <div>透析号:<span style="display:inline-block;width:200px;">{{balanceAccounts.patient ? balanceAccounts.patient.dialysis_no : ''}}</span>
132
+                </div>
116 133
             </div>
117 134
             <div style="display:flex;justify-content: space-between;">
118 135
                 <div style="display:flex;">
119
-                  <div>姓名:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.name.indexOf("(") > -1 ? balanceAccounts.patient.name.substring(0,balanceAccounts.patient.name.indexOf("(")) : balanceAccounts.patient.name : ''}}</span></div>
120
-                  <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient.gender == '1' ? '男' : '女'}}</span></div>
121
-                  <div>年龄:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.age : ''}}岁</span></div>
122
-                  <div>费别:<span style="display:inline-block;width:80px;">自费</span>
123
-                  </div>
124
-                  <div>电脑号:<span style="display:inline-block;width:80px;"></span></div>
125
-                  <div>收费日期:<span style="display:inline-block;width:100px;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
136
+                    <div>姓名:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.name.indexOf('(') > -1 ? balanceAccounts.patient.name.substring(0,balanceAccounts.patient.name.indexOf('(')) : balanceAccounts.patient.name : ''}}</span>
137
+                    </div>
138
+                    <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient.gender == '1' ? '男' : '女'}}</span>
139
+                    </div>
140
+                    <div>年龄:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.age : ''}}岁</span>
141
+                    </div>
142
+                    <div>费别:<span style="display:inline-block;width:80px;">自费</span>
143
+                    </div>
144
+                    <div>电脑号:<span style="display:inline-block;width:80px;"></span></div>
145
+                    <div>收费日期:<span style="display:inline-block;width:100px;">{{getTime(new Date(),'{y}-{m}-{d}')?getTime(new Date(),'{y}-{m}-{d}'):''}}</span>
146
+                    </div>
126 147
                 </div>
127 148
                 <div style="float:right">金额单位:元</div>
128 149
             </div>
129 150
             <div style="min-height: 300px;">
130
-              <table border='1' style="width:100%;" cellspacing="0">
131
-                  <tr>
132
-                      <td width="70">类别</td>
133
-                      <td>项目</td>
134
-                      <td min-width="180" style="min-width:60px;">规格</td>
135
-                      <td width="40">单位</td>
136
-                      <td width="40">数量</td>
137
-                      <td width="60">单价</td>
138
-                      <td width="70">总额</td>
139
-                      <td width="130">小计</td>
140
-                  </tr>
141
-                  <div v-for="(item,i) in balanceAccounts.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
142
-                      <tr v-for="(subItem,index) in item.details" :key="index">
143
-                        <td>
144
-                          <span v-if="item.type == 1">药品费</span>
145
-                          <span v-if="item.type == 2">治疗费</span>
146
-                          <span v-if="item.type == 3">耗材费</span>
147
-                        </td>
148
-                        <td>
149
-                          <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
150
-                          <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
151
-                          <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
152
-                        </td>
153
-                        <td>
154
-                          <span v-if="item.type == 1"><span v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
155
-                          <span v-if="item.type == 2"></span>
156
-                          <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
151
+                <table border='1' style="width:100%;" cellspacing="0">
152
+                    <tr>
153
+                        <td width="70">类别</td>
154
+                        <td>项目</td>
155
+                        <td min-width="180" style="min-width:60px;">规格</td>
156
+                        <td width="40">单位</td>
157
+                        <td width="40">数量</td>
158
+                        <td width="60">单价</td>
159
+                        <td width="70">总额</td>
160
+                        <td width="130">小计</td>
161
+                    </tr>
162
+                    <div v-for="(item,i) in balanceAccounts.new_detail_list" :key="i"
163
+                         style="width:100%;display: table-row-group;">
164
+                        <tr v-for="(subItem,index) in item.details" :key="index">
165
+                            <td>
166
+                                <span v-if="item.type == 1">药品费</span>
167
+                                <span v-if="item.type == 2">治疗费</span>
168
+                                <span v-if="item.type == 3">耗材费</span>
169
+                            </td>
170
+                            <td>
171
+                                <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
172
+                                <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
173
+                                <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
174
+                            </td>
175
+                            <td>
176
+                                <span v-if="item.type == 1"><span
177
+                                        v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
178
+                                <span v-if="item.type == 2"></span>
179
+                                <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
180
+                            </td>
181
+                            <td>
182
+                                <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
183
+                                <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
184
+                                <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
185
+                            </td>
186
+                            <td>
187
+                                <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
188
+                                <span v-if="item.type == 2">{{ subItem.project.count }}</span>
189
+                                <span v-if="item.type == 3">{{ subItem.project.count }}</span>
190
+                            </td>
191
+                            <td>
192
+                                <span v-if="item.type == 1">{{ subItem.pric }}</span>
193
+                                <span v-if="item.type == 2">{{ subItem.pric }}</span>
194
+                                <span v-if="item.type == 3">{{ subItem.pric }}</span>
195
+                            </td>
196
+                            <td>
197
+                                <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
198
+                                <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
199
+                                <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
200
+                            </td>
201
+                            <td :rowspan="item.details.length" v-if="index == 0"
202
+                                style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}
203
+                            </td>
204
+                        </tr>
205
+                    </div>
206
+                    <tr>
207
+                        <td colspan="7">
208
+                            <div style="display:flex;flez-wrap:wrap;">
209
+                                <div style="width:33%;" v-for="(item,index) in balanceAccounts.new_detail_list"
210
+                                     :key="index">
211
+                                    <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
212
+                                    <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(2) }}</span>
213
+                                    <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
214
+                                </div>
215
+                            </div>
157 216
                         </td>
158
-                        <td>
159
-                          <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
160
-                          <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
161
-                          <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
217
+                        <td>合计: {{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
218
+                    </tr>
219
+                    <tr>
220
+                        <td colspan="7">
221
+                            <div style="display:flex;flez-wrap:wrap;">
222
+                                <div style="width:33%;">
223
+                                    医疗费总额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元
224
+                                </div>
225
+                                <div style="width:33%;">基金支付金额:0元</div>
226
+                                <div style="width:33%;">个人账户支付金额:0元</div>
227
+
228
+                            </div>
229
+                            <div style="display:flex;flez-wrap:wrap;">
230
+                                <div style="width:33%;">
231
+                                    个人支付金额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元
232
+                                </div>
233
+                                <div style="width:33%;">个人账户金额:0元</div>
234
+                            </div>
162 235
                         </td>
163
-                        <td>
164
-                          <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
165
-                          <span v-if="item.type == 2">{{ subItem.project.count }}</span>
166
-                          <span v-if="item.type == 3">{{ subItem.project.count }}</span>
167
-                        </td>
168
-                        <td>
169
-                          <span v-if="item.type == 1">{{ subItem.pric }}</span>
170
-                          <span v-if="item.type == 2">{{ subItem.pric }}</span>
171
-                          <span v-if="item.type == 3">{{ subItem.pric }}</span>
172
-                        </td>
173
-                        <td>
174
-                          <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
175
-                          <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
176
-                          <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
177
-                        </td>
178
-                        <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
179
-                      </tr>
180
-                  </div>
181
-                  <tr>
182
-                    <td colspan="7">
183
-                      <div style="display:flex;flez-wrap:wrap;">
184
-                        <div style="width:33%;" v-for="(item,index) in balanceAccounts.new_detail_list" :key="index">
185
-                          <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
186
-                          <span v-if="item.type == 2">治疗费: {{ item.total.toFixed(2) }}</span>
187
-                          <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
188
-                        </div>
189
-                      </div>
190
-                    </td>
191
-                    <td>合计: {{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
192
-                  </tr>
193
-                  <tr>
194
-                      <td colspan="7">
195
-                          <div style="display:flex;flez-wrap:wrap;">
196
-                              <div style="width:33%;">医疗费总额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</div>
197
-                              <div style="width:33%;">基金支付金额:0元</div>
198
-                              <div style="width:33%;">个人账户支付金额:0元</div>
199
-
200
-                          </div>
201
-                          <div style="display:flex;flez-wrap:wrap;">
202
-                              <div style="width:33%;">个人支付金额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</div>
203
-                              <div style="width:33%;">个人账户金额:0元</div>
204
-                          </div>
205
-                      </td>
206
-                      <td>合计:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
207
-                  </tr>
208
-
209
-              </table>
236
+                        <td>合计:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
237
+                    </tr>
238
+
239
+                </table>
210 240
             </div>
211 241
             <div style="float:right;margin:10px 0;display:flex;">
212
-                <div>操作人:<span style="width:100px;display:inline-block;">{{balanceAccounts.current_admin.user_name}}</span></div>
213
-                <div>操作日期:<span style="width:100px;display:inline-block;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
242
+                <div>操作人:<span
243
+                        style="width:100px;display:inline-block;">{{balanceAccounts.current_admin.user_name}}</span>
244
+                </div>
245
+                <div>操作日期:<span style="width:100px;display:inline-block;">{{getTime(new Date(),'{y}-{m}-{d}')?getTime(new Date(),'{y}-{m}-{d}'):''}}</span>
246
+                </div>
214 247
             </div>
215 248
             <img style="width:100%;" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
216 249
         </div>
@@ -218,7 +251,6 @@
218 251
 
219 252
 </template>
220 253
 <script>
221
-  import axios from 'axios'
222 254
   import { getChargePrint } from '@/api/project/project'
223 255
   import { uParseTime } from '@/utils/tools'
224 256
 
@@ -240,14 +272,14 @@
240 272
         spec_arr: [],
241 273
         count_arr: [],
242 274
         price_arr: [],
243
-        total_arr: [],
275
+        total_arr: []
244 276
 
245 277
       }
246 278
     },
247 279
     props: {
248 280
       paramsObj: Object,
249 281
       info: Object,
250
-      balanceAccounts:Object
282
+      balanceAccounts: Object
251 283
     },
252 284
     methods: {
253 285
       getName(list) {
@@ -259,68 +291,66 @@
259 291
         }
260 292
 
261 293
         switch (new_list[0].bcc334) {
262
-          case "A31001":
263
-            return "深圳医保1档"
294
+          case 'A31001':
295
+            return '深圳医保1档'
264 296
             break
265
-          case "A31002":
266
-            return "深圳医保2档"
297
+          case 'A31002':
298
+            return '深圳医保2档'
267 299
 
268 300
             break
269
-          case "A31003":
270
-            return "深圳医保3档"
301
+          case 'A31003':
302
+            return '深圳医保3档'
271 303
 
272 304
             break
273
-          case "A31004":
274
-            return "二档(少儿)"
305
+          case 'A31004':
306
+            return '二档(少儿)'
275 307
 
276 308
             break
277
-          case "A31005":
278
-            return "学生二档"
309
+          case 'A31005':
310
+            return '学生二档'
279 311
 
280 312
             break
281
-          case "A31006":
282
-            return "大学生二档"
313
+          case 'A31006':
314
+            return '大学生二档'
283 315
 
284 316
             break
285
-          case "A32001":
286
-            return "在职公务员"
317
+          case 'A32001':
318
+            return '在职公务员'
287 319
             break
288
-          case "A32002":
289
-            return "在职驻深公务员"
320
+          case 'A32002':
321
+            return '在职驻深公务员'
290 322
 
291 323
             break
292
-          case "A39301":
293
-            return "家属统筹医疗"
324
+          case 'A39301':
325
+            return '家属统筹医疗'
294 326
 
295 327
             break
296
-          case "A41001":
297
-            return "工伤在职"
328
+          case 'A41001':
329
+            return '工伤在职'
298 330
 
299 331
             break
300
-          case "A51001":
301
-            return "生育在职"
332
+          case 'A51001':
333
+            return '生育在职'
302 334
 
303 335
             break
304
-          case "A52001":
305
-            return "生育医疗一档"
336
+          case 'A52001':
337
+            return '生育医疗一档'
306 338
 
307 339
             break
308
-          case "A52002":
309
-            return "生育医疗一档"
340
+          case 'A52002':
341
+            return '生育医疗一档'
310 342
 
311 343
             break
312
-          case "C31001":
313
-            return "一档医疗退休"
344
+          case 'C31001':
345
+            return '一档医疗退休'
314 346
 
315 347
             break
316
-          case "C31002":
317
-            return "二档医疗退休"
348
+          case 'C31002':
349
+            return '二档医疗退休'
318 350
             break
319 351
 
320 352
         }
321 353
 
322
-
323
-
324 354
       },
325 355
       getValue(item) {
326 356
         return this.getItemName(item.aka111) + ': ' + item.bka058 + '元'
@@ -461,79 +491,22 @@
461 491
       },
462 492
       getTime(value, temp) {
463 493
         if (value != undefined) {
464
-            return uParseTime(value, temp)
494
+          return uParseTime(value, temp)
465 495
         }
466 496
         return ''
467
-      },
497
+      }
468 498
     },
469 499
     mounted() {
470 500
       this.org_id = this.$store.getters.xt_user.org_id
471
-      if (this.org_id == 9504 || this.org_id == 10028 || this.org_id == 10138) {
472
-        var xtuser = this.$store.getters.xt_user
473
-        this.orgname = xtuser.org.org_name
474
-        var form = {
475
-          'order_id': this.paramsObj.order_id,
476
-          'patient_id': this.paramsObj.patient_id,
477
-          'record_time': this.paramsObj.record_date,
478
-          'admin_user_id': this.$store.getters.xt_user.user.id
479
-        }
480
-        var that = this
481
-        axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
482
-          params: form
483
-        })
484
-          .then(function(response) {
485
-            if (response.data.state == 0) {
486
-              // that.$message.error(response.data.msg)
487
-              return false
488
-            } else {
489
-              if (response.data.data.failed_code == -10) {
490
-                // that.$message.error(response.data.data.msg)
491
-                that.$confirm(response.data.data.msg, '医保错误信息', {
492
-                  confirmButtonText: '确 定',
493
-                  type: 'warning'
494
-                }).then(() => {
495
-
496
-                }).catch(() => {
497
-                })
498
-              } else {
499
-                that.result = response.data.data.result
500
-
501
-                that.org_code = response.data.data.org_code
502
-                that.patient_name = response.data.data.patient_name
503
-                that.doctor_code = response.data.data.doctor_code
504
-                that.doctor_name = response.data.data.doctor_name
505
-                that.name_arr = []
506
-                that.spec_arr = []
507
-                that.count_arr = []
508
-                that.price_arr = []
509
-                that.total_arr = []
510
-                for (let i = 0; i < that.result.transBody.outputlist1.length; i++) {
511
-                  that.name_arr.push(that.result.transBody.outputlist1[i].ake006)
512
-                  that.spec_arr.push(that.result.transBody.outputlist1[i].aka074)
513
-                  that.count_arr.push(that.result.transBody.outputlist1[i].akc226)
514
-                  that.price_arr.push(that.result.transBody.outputlist1[i].akc225)
515
-                  that.total_arr.push(that.result.transBody.outputlist1[i].akc264)
516
-                }
517
-
518
-              }
519
-
520
-            }
521
-          })
522
-          .catch(function(error) {
523
-
524
-          })
525
-
526
-      } else {
527
-        var record_date = this.paramsObj.record_date
528
-        console.log('record_date', record_date)
529
-        var patient_id = this.paramsObj.patient_id
530
-        console.log('patient_id', patient_id)
531
-        var prescription_id = this.paramsObj.prescription_id
532
-        this.getChargePrint(record_date, patient_id, prescription_id)
533
-        var xtuser = this.$store.getters.xt_user
534
-        this.orgname = xtuser.org.org_name
535 501
 
536
-      }
502
+      var record_date = this.paramsObj.record_date
503
+      console.log('record_date', record_date)
504
+      var patient_id = this.paramsObj.patient_id
505
+      console.log('patient_id', patient_id)
506
+      var prescription_id = this.paramsObj.prescription_id
507
+      this.getChargePrint(record_date, patient_id, prescription_id)
508
+      var xtuser = this.$store.getters.xt_user
509
+      this.orgname = xtuser.org.org_name
537 510
 
538 511
     },
539 512
     watch: {

+ 4 - 2
src/xt_pages/outpatientRegistration/index.vue View File

@@ -843,7 +843,8 @@
843 843
               var patient = response.data.data.patient
844 844
 
845 845
               if (that.form.id_card_type == 1) {
846
-                that.form.name = patient.ID
846
+                that.form.id = patient.id
847
+                that.form.name = patient.name
847 848
                 that.form.sex = patient.gender
848 849
                 that.form.age = patient.age
849 850
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
@@ -852,7 +853,8 @@
852 853
                 that.form.medicalInsuranceCard = response.data.data.number
853 854
 
854 855
               } else if (that.form.id_card_type == 2) {
855
-                that.form.name = patient.ID
856
+                that.form.id = patient.id
857
+                that.form.name = patient.name
856 858
                 that.form.sex = patient.gender
857 859
                 that.form.age = patient.age
858 860
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')