Bläddra i källkod

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

csx 4 år sedan
förälder
incheckning
ef72068037

+ 19 - 3
src/xt_pages/outpatientCharges/components/registerDialog.vue Visa fil

@@ -53,10 +53,10 @@
53 53
       <el-form-item label="医疗类别:">
54 54
         <el-select v-model="form.medical_care" placeholder="请选择" style="width:100%;">
55 55
           <el-option
56
-            v-for="(item,index) in getDictionaryDataConfig('system','social_type')"
56
+            v-for="(item,index) in medical_care"
57 57
             :key="index"
58
-            :label="item.name"
59
-            :value="item.id">
58
+            :label="item.label"
59
+            :value="item.value">
60 60
           </el-option>
61 61
         </el-select>
62 62
       </el-form-item>
@@ -204,6 +204,22 @@
204 204
           {value: 16, label: "门诊慢性病"},
205 205
           {value: 21, label: "普通住院"},
206 206
         ],
207
+        medical_care:[
208
+          {value: 11, label: "普通门诊"},
209
+          {value: 12, label: '家庭通道'},
210
+          {value: 13, label: "门诊大病"},
211
+          {value: 14, label: "重疾特药"},
212
+          {value: 15, label: "门诊慢病"},
213
+          {value: 16, label: "门诊特检"},
214
+          {value: 17, label: "健康体检"},
215
+          {value: 18, label: "预防接种"},
216
+          {value: 19, label: "门诊输血"},
217
+          {value: 91, label: "新冠肺炎门诊"},
218
+        ],
219
+
220
+
221
+
222
+
207 223
         form: {
208 224
           id: '',
209 225
           settlement_value: '',

+ 345 - 0
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Visa fil

@@ -0,0 +1,345 @@
1
+<template>
2
+    <div>
3
+        <template>
4
+            <el-button
5
+                    style="position:fixed;right:25px;z-index:999"
6
+                    :loading="loading"
7
+                    size="small"
8
+                    icon="el-icon-printer"
9
+                    @click="printThisPage"
10
+                    type="primary"
11
+            >打印</el-button
12
+            >
13
+        </template>
14
+
15
+        <div class='dialysisPage' style="padding-top:40px;">
16
+            <!--<printOne :info="info"></printOne>-->
17
+            <print-one :info="info"></print-one>
18
+        </div>
19
+    </div>
20
+</template>
21
+
22
+<script>
23
+
24
+
25
+  import { parseTime } from "@/utils";
26
+  import { getDialysisRecord } from "@/api/dialysis";
27
+  import { getDataConfig } from "@/utils/data";
28
+  import { jsGetAge, uParseTime } from "@/utils/tools";
29
+  import axios from 'axios'
30
+  import BreadCrumb from "@/xt_pages/components/bread-crumb";
31
+  import print from "print-js";
32
+  import printOne from "./newTreatTemplate/printOne"
33
+  export default {
34
+    name: "newStatementPrintTwo",
35
+    components: {
36
+      BreadCrumb,
37
+      printOne
38
+    },
39
+    props:{
40
+      paramsObj:Object
41
+    },
42
+    data() {
43
+      return {
44
+        crumbs: [
45
+          { path: false, name: '门诊医生站' },
46
+          { path: false, name: '打印' }
47
+        ],
48
+        record_date:"",
49
+        patientTableData:[],
50
+        advicePrint:[],
51
+        hisPatient:{},
52
+        patient:{},
53
+        search_input:"",
54
+        loading:false,
55
+        patient_id:0,
56
+        prescription_id:0,
57
+        ids:'',
58
+        info:null,
59
+      };
60
+    },
61
+    methods:{
62
+      printThisPage() {
63
+        var ptime = Math.round(new Date().getTime() / 1000);
64
+        this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
65
+
66
+        const style =
67
+          '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
68
+        printJS({
69
+          printable: "statement-print",
70
+          type: "html",
71
+          style: style,
72
+          scanStyles: false
73
+        });
74
+
75
+        // if (this.org_template_info.template_id == 1) {
76
+        //   printJS({
77
+        //     printable: "dialysis-print-box",
78
+        //     type: "html",
79
+        //     style: style,
80
+        //     scanStyles: false
81
+        //   });
82
+        // }
83
+      },
84
+
85
+      searchAction(){
86
+
87
+      },
88
+      getInfo(obj) {
89
+        if (this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9504) {
90
+          var that = this
91
+          axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
92
+            params: obj
93
+          })
94
+            .then(function (response) {
95
+              if (response.data.state == 0) {
96
+                this.$message.error(response.data.msg)
97
+                return false
98
+              } else {
99
+                if (response.data.data.failed_code == -10) {
100
+                  that.$message.error(response.data.data.msg)
101
+
102
+                } else {
103
+
104
+                  console.log("~~~~")
105
+                  that.info = response.data.data.result
106
+                  console.log(that.info)
107
+
108
+                  that.info['org_code'] = response.data.data.org_code
109
+                  that.info['patient_name'] = response.data.data.patient_name
110
+                  that.info['doctor_code'] = response.data.data.doctor_code
111
+                  that.info['doctor_name'] = response.data.data.doctor_name
112
+
113
+                  that.info['org_name'] = that.$store.getters.xt_user.org.org_name
114
+                  console.log("~~~~" + that.info)
115
+
116
+                  var name_arr = []
117
+                  var spec_arr = []
118
+                  var count_arr = []
119
+                  var price_arr = []
120
+                  var total_arr = []
121
+                  for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
122
+                    name_arr.push(that.info.transBody.outputlist1[i].ake006)
123
+                    spec_arr.push(that.info.transBody.outputlist1[i].aka074)
124
+                    count_arr.push(that.info.transBody.outputlist1[i].akc226)
125
+                    price_arr.push(that.info.transBody.outputlist1[i].akc225)
126
+                    total_arr.push(that.info.transBody.outputlist1[i].akc264)
127
+                  }
128
+
129
+                  console.log("~~~" + that.info)
130
+
131
+                  that.info['name_arr'] = name_arr
132
+                  that.info['spec_arr'] = spec_arr
133
+                  that.info['count_arr'] = count_arr
134
+                  that.info['price_arr'] = price_arr
135
+                  that.info['total_arr'] = total_arr
136
+                  that.info['record_date'] = obj.record_time
137
+
138
+                  console.log("~~" + that.info)
139
+
140
+                }
141
+              }
142
+            })
143
+            .catch(function (error) {
144
+
145
+            });
146
+        }
147
+      }
148
+
149
+    },
150
+
151
+    created() {
152
+      this.getInfo(this.paramsObj)
153
+    },
154
+    watch:{
155
+      paramsObj:{//深度监听,可监听到对象、数组的变化
156
+        handler(val, oldVal){
157
+          this.paramsObj = val
158
+          this.getInfo(this.paramsObj)
159
+
160
+        },
161
+        deep:true
162
+      }
163
+    }
164
+
165
+  };
166
+</script>
167
+
168
+<style>
169
+    .dialysis-print-order {
170
+        width: 960px;
171
+        margin: 0 auto;
172
+    }
173
+
174
+    .dialysis-print-order .order-yy-name {
175
+        margin: auto;
176
+        text-align: center;
177
+        font-size: 20px;
178
+        letter-spacing: 5px;
179
+    }
180
+
181
+    .dialysis-print-order .order-title {
182
+        margin: auto;
183
+        font-weight: 600;
184
+        text-align: center;
185
+        font-size: 22px;
186
+        padding: 10px;
187
+    }
188
+
189
+    .dialysis-print-order .table-box {
190
+        width: 100%;
191
+        line-height: 23px;
192
+        font-size: 14px;
193
+    }
194
+
195
+    .dialysis-print-order .print-table {
196
+        width: 100%;
197
+        text-align: center;
198
+        border-collapse: collapse;
199
+        line-height: 40px;
200
+        font-size: 14px;
201
+        border-color: #000;
202
+    }
203
+
204
+    .dialysis-print-order .print-table-no {
205
+        width: 100%;
206
+        text-align: center;
207
+        border-collapse: collapse;
208
+        font-size: 14px;
209
+    }
210
+
211
+    .dialysis-print-order .under-line {
212
+        border-bottom: 1px solid #999;
213
+        width: 95%;
214
+        text-align: center;
215
+        margin-left: 2px;
216
+    }
217
+
218
+    .dialysis-print-order .title-box {
219
+        text-align: center;
220
+        font-size: 16px;
221
+    }
222
+
223
+    .dialysis-print-order .radio-lebel-box {
224
+        font-weight: 400;
225
+        cursor: pointer;
226
+    }
227
+
228
+    .dialysis-print-order .radio-no {
229
+        opacity: 0;
230
+        outline: none;
231
+        position: absolute;
232
+        margin: 0;
233
+        width: 0;
234
+        height: 0;
235
+        z-index: -1;
236
+    }
237
+
238
+    .dialysis-print-order .radio-inner {
239
+        white-space: nowrap;
240
+        cursor: pointer;
241
+        outline: none;
242
+        display: inline-block;
243
+        line-height: 1;
244
+        position: relative;
245
+        vertical-align: middle;
246
+    }
247
+
248
+    .dialysis-print-order .radio-fang {
249
+        display: inline-block;
250
+        position: relative;
251
+        border: 1px solid #000;
252
+        box-sizing: border-box;
253
+        width: 14px;
254
+        height: 14px;
255
+        background-color: #fff;
256
+        z-index: 1;
257
+        transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
258
+        background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
259
+    }
260
+
261
+    .dialysis-print-order .is-checked-radio::after {
262
+        content: "√";
263
+        font-size: 15px;
264
+    }
265
+
266
+    .dialysis-print-order .print-table-no tr td {
267
+        padding: 8px 5px;
268
+        line-height: 25px;
269
+    }
270
+
271
+    .dialysis-print-order .print-table tr td {
272
+        padding: 1px 1px;
273
+        /*line-height: 25px;*/
274
+    }
275
+
276
+    .es-img {
277
+        height: 30px;
278
+    }
279
+
280
+    .advice-name {
281
+        text-align: left;
282
+    }
283
+
284
+    .advice-children {
285
+        display: flex;
286
+    }
287
+
288
+    .title-box-pro {
289
+        border: 0 #fff;
290
+        line-height: 25px;
291
+        height: 25px;
292
+        text-align: left;
293
+        padding-left: 10px !important;
294
+    }
295
+    .title-box-pro-tr {
296
+        border: 0 #fff;
297
+    }
298
+    .text-align-left {
299
+        text-align: left !important;
300
+        padding-left: 10px !important;
301
+        font-size: 14px !important;
302
+        line-height: 25px;
303
+    }
304
+    .print-table-tr-new td {
305
+        line-height: 20px !important;
306
+    }
307
+    .border-top-solid {
308
+        border: solid 1px #000;
309
+    }
310
+    .print-template-two tr {
311
+        line-height: 30px;
312
+    }
313
+
314
+    .table-box1 {
315
+        border: 1px solid #000;
316
+        width: 100%;
317
+        line-height: 30px;
318
+        font-size: 14px;
319
+        border-collapse: collapse;
320
+    }
321
+    .table-box1 tr {
322
+        border-bottom: 1px solid #000;
323
+    }
324
+</style>
325
+
326
+<style lang="scss">
327
+
328
+    .newContainer{
329
+    .dialysisPage::-webkit-scrollbar {
330
+        height: 15px;
331
+    }
332
+
333
+    .el-date-editor{
334
+    .el-input__inner{
335
+        padding-right:0px;
336
+    }
337
+    }
338
+    .el-table td, .el-table th{
339
+        text-align: center;
340
+    }
341
+    }
342
+    .newContainer::-webkit-scrollbar{
343
+        height: 15px !important;
344
+    }
345
+</style>

+ 311 - 0
src/xt_pages/outpatientCharges/newTreatTemplate/printOne.vue Visa fil

@@ -0,0 +1,311 @@
1
+<template>
2
+    <div>
3
+        <div id='prescription-print' class="prescription-print">
4
+            <div>
5
+                <div class="printTitle">&nbsp血液透析中心医药费收据及收费项目清单</div>
6
+                <div class="infoMain">
7
+                    <div class="infoP">医院(药店)编号:{{info.org_code}}</div>
8
+                    <div class="infoP">名称:{{info.org_name}}</div>
9
+                    <div class="infoP">医生工号:{{info.doctor_code}}</div>
10
+                    <div class="infoP">门诊流水号:{{info.transBody.akc190}}</div>
11
+                    <div class="infoP">科别: 全科</div>
12
+                    <div class="infoP">处方单据号:</div>
13
+                    <div class="infoP">姓名:{{info.patient_name}}</div>
14
+                    <div class="infoP">医疗账号:</div>
15
+                    <div class="infoP">医疗类别:普通</div>
16
+                </div>
17
+                <div class="chargeBox">
18
+                    <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
19
+                        <div class="chargeUl" style="width:20%;">
20
+                            <p style="width:50%;border-right:1px solid #000;">费用类型</p>
21
+                            <p style="width:50%;border-right:1px solid #000;">金额</p>
22
+                        </div>
23
+                        <div class="chargeUl" style="width:80%;">
24
+                            <p style="width:40%;border-right:1px solid #000;">明细名称</p>
25
+                            <p style="width:15%;border-right:1px solid #000;">规格</p>
26
+                            <p style="width:15%;border-right:1px solid #000;">数量</p>
27
+                            <p style="width:15%;border-right:1px solid #000;">单价</p>
28
+                            <p style="width:15%;">金额</p>
29
+                        </div>
30
+                    </div>
31
+                    <div style="display:flex;justify-content: space-between;">
32
+                        <div style="width:20%;">
33
+                            <div class="chargeUl" v-for="(item,index) in info.transBody.outputlist2" :key="index">
34
+                                <p style="width:50%;">{{getItemName(item.aka111)}}</p>
35
+                                <p style="width:50%;">{{item.bka058}}</p>
36
+                            </div>
37
+                            <div class="chargeUl" style="border-top:1px solid #000;">
38
+                                <p style="width:50%;">费用合计</p>
39
+                                <p style="width:50%;">{{info.transBody.akc264}}</p>
40
+                            </div>
41
+                            <div class="chargeUl" style="border-top:1px solid #000;">
42
+                                <p style="width:50%;">记账支付</p>
43
+                                <p style="width:50%;">{{info.transBody.akb068}}</p>
44
+                            </div>
45
+                            <div class="chargeUl" style="border-top:1px solid #000;">
46
+                                <p style="width:50%;">个人账号</p>
47
+                                <p style="width:50%;">{{info.transBody.akc266}}</p>
48
+                            </div>
49
+                            <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
50
+                                <p style="width:50%;">现金支付</p>
51
+                                <p style="width:50%;">{{info.transBody.akb067}}</p>
52
+                            </div>
53
+                        </div>
54
+                        <div style="width:80%;display:flex;height:300px;">
55
+
56
+                            <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
57
+                                <p v-for="(item,i) in info.name_arr" :key="i" class="chargeP">
58
+                                    {{item}}</p>
59
+                            </div>
60
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
61
+                                <p v-for="(item,y) in info.spec_arr" :key="y" class="chargeP">
62
+                                    {{item}}</p>
63
+                            </div>
64
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
65
+                                <p v-for="(item,z) in info.count_arr" :key="z" class="chargeP">
66
+                                    {{item}}次</p>
67
+                            </div>
68
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
69
+                                <p v-for="(item,f) in info.price_arr" :key="f" class="chargeP">{{item}}</p>
70
+                            </div>
71
+                            <div style="width:15%;text-align:center;">
72
+                                <p v-for="(item,d) in info.total_arr" :key="d" class="chargeP">{{item}}</p>
73
+                            </div>
74
+                        </div>
75
+                    </div>
76
+
77
+                </div>
78
+                <div class="moneyBox">
79
+                    <p>实收金:{{info.transBody.akc264}}</p>
80
+                    <p>记账前金额:{{0.00}}</p>
81
+                    <p>扣款金额:{{0.00}}</p>
82
+                    <p>记账后金额:{{0.00}}</p>
83
+                    <p>找赎金:{{0.00}}</p>
84
+                </div>
85
+                <div class="actionBar">
86
+                    <div>收费员:{{info.doctor_name}}</div>
87
+                    <div>日期:{{info.record_date}}</div>
88
+                </div>
89
+            </div>
90
+
91
+        </div>
92
+    </div>
93
+
94
+</template>
95
+<script>
96
+  import axios from 'axios'
97
+  import { getChargePrint } from '@/api/project/project'
98
+
99
+  export default {
100
+    data() {
101
+      return {
102
+        list: {},
103
+        prescription: [],
104
+        patient: {},
105
+        orgname: '',
106
+
107
+        result: {},
108
+        org_code: '',
109
+        patient_name: '',
110
+        doctor_code: '',
111
+        doctor_name: '',
112
+
113
+        name_arr: [],
114
+        spec_arr: [],
115
+        count_arr: [],
116
+        price_arr: [],
117
+        total_arr: []
118
+
119
+      }
120
+    },
121
+    props: {
122
+      info: Object
123
+    },
124
+    methods: {
125
+      getItemName(number) {
126
+        switch (number) {
127
+          case '01':
128
+            return '床位费'
129
+            break
130
+          case '02':
131
+            return '西药费'
132
+
133
+            break
134
+          case '03':
135
+            return '中药费'
136
+
137
+            break
138
+          case '04':
139
+            return '中成药费'
140
+
141
+            break
142
+          case '05':
143
+            return '中草药费'
144
+
145
+            break
146
+          case '06':
147
+            return '检查费'
148
+
149
+            break
150
+          case '07':
151
+            return '治疗费'
152
+
153
+            break
154
+          case '08':
155
+            return '放射费'
156
+
157
+            break
158
+          case '09':
159
+            return '手术费'
160
+
161
+            break
162
+          case '10':
163
+            return '化验费'
164
+
165
+            break
166
+          case '11':
167
+            return '输血费'
168
+
169
+            break
170
+          case '12':
171
+            return '输氧费'
172
+
173
+            break
174
+          case '13':
175
+            return '其它费'
176
+
177
+            break
178
+          case '14':
179
+            return '麻醉费'
180
+
181
+            break
182
+          case '15':
183
+            return '材料费'
184
+
185
+            break
186
+          case '16':
187
+            return '特殊检查费'
188
+
189
+            break
190
+          case '17':
191
+            return '特殊治疗费'
192
+
193
+            break
194
+          case '18':
195
+            return '诊疗费(诊查费)'
196
+
197
+            break
198
+          case '19':
199
+            return '护理费'
200
+
201
+            break
202
+          case '20':
203
+            return '诊金'
204
+
205
+            break
206
+          case '21':
207
+            return '检查费(CT)'
208
+
209
+            break
210
+          case '22':
211
+            return '检查费(MRT)'
212
+
213
+            break
214
+          case '23':
215
+            return '检查费(其他)'
216
+
217
+            break
218
+          case '24':
219
+            return '特需服务费'
220
+
221
+            break
222
+          case '25':
223
+            return '杂费'
224
+
225
+            break
226
+          case '26':
227
+            return '挂号费'
228
+            break
229
+
230
+        }
231
+
232
+      },
233
+    },
234
+    created() {
235
+
236
+
237
+    },
238
+
239
+  }
240
+</script>
241
+
242
+
243
+<style lang="scss" scoped>
244
+    .prescription-print {
245
+        -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
246
+        -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
247
+        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
248
+        margin-bottom: 20px;
249
+        padding: 20px 10px;
250
+    }
251
+
252
+    .printTitle {
253
+        font-size: 22px;
254
+        text-align: center;
255
+        font-weight: bold;
256
+    }
257
+
258
+    .infoMain {
259
+        display: flex;
260
+        flex-wrap: wrap;
261
+        padding: 0 10px;
262
+        margin-top: 10px;
263
+    }
264
+
265
+    .infoMain .infoP {
266
+        width: 33%;
267
+        line-height: 24px;
268
+    }
269
+
270
+    .chargeBox {
271
+        border: 1px solid #000;
272
+    }
273
+
274
+    .chargeUl {
275
+        display: flex;
276
+        justify-content: space-between;
277
+        text-align: center;
278
+    }
279
+
280
+    .chargeUl p {
281
+        height: 40px;
282
+        line-height: 40px;
283
+    }
284
+
285
+    .chargeP {
286
+        height: 40px;
287
+        line-height: 40px;
288
+    }
289
+
290
+    .moneyBox {
291
+        display: flex;
292
+        justify-content: space-between;
293
+        padding: 0 10px;
294
+        background: #eee;
295
+        height: 40px;
296
+        align-items: center;
297
+        border: 1px solid #000;
298
+        border-top: none
299
+    }
300
+
301
+    .actionBar {
302
+        display: flex;
303
+        justify-content: space-between;
304
+        line-height: 24px;
305
+        padding: 0 10px;
306
+    }
307
+
308
+    .actionBar div {
309
+        width: 150px;
310
+    }
311
+</style>

+ 32 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Visa fil

@@ -76,6 +76,10 @@
76 76
                         >
77 77
                             退费
78 78
                         </el-button>
79
+
80
+
81
+                        <el-button size="small" @click="sz_open(10)" type="primary">打印</el-button>
82
+
79 83
                     </div>
80 84
 
81 85
 
@@ -98,11 +102,11 @@
98 102
 
99 103
                     <!-- <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
100 104
                     <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button> -->
101
-                    <el-button size="small" @click="open(3)" type="primary">打印</el-button>
102 105
 
103 106
 
104
-                    <div v-if="this.$store.getters.xt_user.org_id != 9504 && this.$store.getters.xt_user.org_id != 9538">
105 107
 
108
+                    <div v-if="this.$store.getters.xt_user.org_id != 9504 && this.$store.getters.xt_user.org_id != 9538">
109
+                        <el-button size="small" @click="open(3)" type="primary">打印</el-button>
106 110
                         <el-button v-loading="loadingone" size="small"
107 111
                                    @click="open(6)"
108 112
                                    type="primary">挂号
@@ -345,7 +349,17 @@
345 349
                 :visible.sync="statementVisible">
346 350
             <statementPrint ref="print" :paramsObj='orderObj'></statementPrint>
347 351
         </el-dialog>
352
+
353
+        <el-dialog
354
+                class="centerDialog"
355
+                width="1200px"
356
+                title="打印"
357
+                :visible.sync="newStatementVisible">
358
+            <new-statement-print-two :params-obj="newOrderObj"></new-statement-print-two>
359
+            <!--<newStatementPrint ref="print" :paramsObj='newOrderObj'></newStatementPrint>-->
360
+        </el-dialog>
348 361
     </div>
362
+
349 363
 </template>
350 364
 
351 365
 
@@ -375,10 +389,12 @@
375 389
   import ChargeDialog from './components/chargeDialog'
376 390
   import MonthPrescriptionTable from './components/monthPrescriptionTable'
377 391
   import ChargeMonthPrescriptionTable from './components/chargeMonthPrescriptionTable'
392
+  import NewStatementPrintTwo from './newStatementPrintTwo'
378 393
 
379 394
   const moment = require('moment')
380 395
   export default {
381 396
     components: {
397
+      NewStatementPrintTwo,
382 398
       ChargeMonthPrescriptionTable,
383 399
       MonthPrescriptionTable,
384 400
       ChargeDialog,
@@ -469,7 +485,10 @@
469 485
         treatVisible: false,
470 486
         orderObj: {},
471 487
         paramsObj: {},
488
+        newOrderObj:{},
472 489
         statementVisible: false,
490
+        newStatementVisible: false,
491
+
473 492
         sick: [],
474 493
         diagnoses: [],
475 494
 
@@ -2543,6 +2562,17 @@
2543 2562
               })
2544 2563
               .catch(function(error) {
2545 2564
               })
2565
+
2566
+          case 10:
2567
+            this.newStatementVisible = true
2568
+            let obj = {
2569
+              record_time: this.record_date,
2570
+              patient_id: this.patient_id,
2571
+              prescription_id: this.prescription_id,
2572
+              order_id: this.order.id
2573
+            }
2574
+            this.newOrderObj = obj
2575
+            // this.$refs.print.getInfo(this.order.id)
2546 2576
             break
2547 2577
 
2548 2578
         }

+ 241 - 244
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue Visa fil

@@ -1,182 +1,186 @@
1 1
 <template>
2
-    <div id='prescription-print' class="prescription-print">
3
-        <div v-if=" this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 9538">
4
-            <div class="printTitle">{{orgname}}&nbsp;&nbsp;医药费收据及收费项目清单</div>
5
-            <div class="infoMain">
6
-                <div class="infoP">医院(药店)编号:{{org_code}}</div>
7
-                <div class="infoP">名称:{{orgname}}</div>
8
-                <div class="infoP">医生工号:{{doctor_code}}</div>
9
-                <div class="infoP">门诊流水号:{{result.transBody.akc190}}</div>
10
-                <div class="infoP">科别:{{全科}}</div>
11
-                <div class="infoP">处方单据号:</div>
12
-                <div class="infoP">姓名:{{patient_name}}</div>
13
-                <div class="infoP">医疗账号:</div>
14
-                <div class="infoP">医疗类别:普通</div>
15
-            </div>
16
-            <div class="chargeBox">
17
-                <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
18
-                    <div class="chargeUl" style="width:20%;">
19
-                        <p style="width:50%;border-right:1px solid #000;">费用类型</p>
20
-                        <p style="width:50%;border-right:1px solid #000;">金额</p>
21
-                    </div>
22
-                    <div class="chargeUl" style="width:80%;">
23
-                        <p style="width:40%;border-right:1px solid #000;">明细名称</p>
24
-                        <p style="width:15%;border-right:1px solid #000;">规格</p>
25
-                        <p style="width:15%;border-right:1px solid #000;">数量</p>
26
-                        <p style="width:15%;border-right:1px solid #000;">单价</p>
27
-                        <p style="width:15%;">金额</p>
28
-                    </div>
2
+    <div>
3
+        <div id='prescription-print' class="prescription-print">
4
+            <div v-if=" this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 9538">
5
+                <div class="printTitle">{{orgname}}&nbsp;&nbsp;医药费收据及收费项目清单</div>
6
+                <div class="infoMain">
7
+                    <div class="infoP">医院(药店)编号:{{org_code}}</div>
8
+                    <div class="infoP">名称:{{orgname}}</div>
9
+                    <div class="infoP">医生工号:{{doctor_code}}</div>
10
+                    <div class="infoP">门诊流水号:{{result.transBody.akc190}}</div>
11
+                    <div class="infoP">科别:{{全科}}</div>
12
+                    <div class="infoP">处方单据号:</div>
13
+                    <div class="infoP">姓名:{{patient_name}}</div>
14
+                    <div class="infoP">医疗账号:</div>
15
+                    <div class="infoP">医疗类别:普通</div>
29 16
                 </div>
30
-                <div style="display:flex;justify-content: space-between;">
31
-                    <div style="width:20%;">
32
-                        <div class="chargeUl" v-for="(item,index) in result.transBody.outputlist2" :key="index">
33
-                            <p style="width:50%;">{{getItemName(item.aka111)}}</p>
34
-                            <p style="width:50%;">{{item.bka058}}</p>
35
-                        </div>
36
-                        <div class="chargeUl" style="border-top:1px solid #000;">
37
-                            <p style="width:50%;">费用合计</p>
38
-                            <p style="width:50%;">{{result.transBody.akc264}}</p>
39
-                        </div>
40
-                        <div class="chargeUl" style="border-top:1px solid #000;">
41
-                            <p style="width:50%;">记账支付</p>
42
-                            <p style="width:50%;">{{result.transBody.akb068}}</p>
43
-                        </div>
44
-                        <div class="chargeUl" style="border-top:1px solid #000;">
45
-                            <p style="width:50%;">个人账号</p>
46
-                            <p style="width:50%;">{{result.transBody.akc264}}</p>
17
+                <div class="chargeBox">
18
+                    <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
19
+                        <div class="chargeUl" style="width:20%;">
20
+                            <p style="width:50%;border-right:1px solid #000;">费用类型</p>
21
+                            <p style="width:50%;border-right:1px solid #000;">金额</p>
47 22
                         </div>
48
-                        <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
49
-                            <p style="width:50%;">现金支付</p>
50
-                            <p style="width:50%;">{{result.transBody.akb067}}</p>
23
+                        <div class="chargeUl" style="width:80%;">
24
+                            <p style="width:40%;border-right:1px solid #000;">明细名称</p>
25
+                            <p style="width:15%;border-right:1px solid #000;">规格</p>
26
+                            <p style="width:15%;border-right:1px solid #000;">数量</p>
27
+                            <p style="width:15%;border-right:1px solid #000;">单价</p>
28
+                            <p style="width:15%;">金额</p>
51 29
                         </div>
52 30
                     </div>
53
-                    <div style="width:80%;display:flex;height:300px;">
54
-
55
-                        <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
56
-                            <p v-for="(item,i) in name_arr" :key="i" class="chargeP">
57
-                                {{item}}</p>
58
-                        </div>
59
-                        <div style="border-right:1px solid #000;width:15%;text-align:center;">
60
-                            <p v-for="(item,y) in spec_arr" :key="y" class="chargeP">
61
-                                {{item}}</p>
62
-                        </div>
63
-                        <div style="border-right:1px solid #000;width:15%;text-align:center;">
64
-                            <p v-for="(item,z) in count_arr" :key="z" class="chargeP">
65
-                                {{item}}次</p>
31
+                    <div style="display:flex;justify-content: space-between;">
32
+                        <div style="width:20%;">
33
+                            <div class="chargeUl" v-for="(item,index) in result.transBody.outputlist2" :key="index">
34
+                                <p style="width:50%;">{{getItemName(item.aka111)}}</p>
35
+                                <p style="width:50%;">{{item.bka058}}</p>
36
+                            </div>
37
+                            <div class="chargeUl" style="border-top:1px solid #000;">
38
+                                <p style="width:50%;">费用合计</p>
39
+                                <p style="width:50%;">{{result.transBody.akc264}}</p>
40
+                            </div>
41
+                            <div class="chargeUl" style="border-top:1px solid #000;">
42
+                                <p style="width:50%;">记账支付</p>
43
+                                <p style="width:50%;">{{result.transBody.akb068}}</p>
44
+                            </div>
45
+                            <div class="chargeUl" style="border-top:1px solid #000;">
46
+                                <p style="width:50%;">个人账号</p>
47
+                                <p style="width:50%;">{{result.transBody.akc264}}</p>
48
+                            </div>
49
+                            <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
50
+                                <p style="width:50%;">现金支付</p>
51
+                                <p style="width:50%;">{{result.transBody.akb067}}</p>
52
+                            </div>
66 53
                         </div>
67
-                        <div style="border-right:1px solid #000;width:15%;text-align:center;">
68
-                            <p v-for="(item,f) in price_arr" :key="f" class="chargeP">{{item}}</p>
69
-                        </div>
70
-                        <div style="width:15%;text-align:center;">
71
-                            <p v-for="(item,d) in total_arr" :key="d" class="chargeP">{{item}}</p>
54
+                        <div style="width:80%;display:flex;height:300px;">
55
+
56
+                            <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
57
+                                <p v-for="(item,i) in name_arr" :key="i" class="chargeP">
58
+                                    {{item}}</p>
59
+                            </div>
60
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
61
+                                <p v-for="(item,y) in spec_arr" :key="y" class="chargeP">
62
+                                    {{item}}</p>
63
+                            </div>
64
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
65
+                                <p v-for="(item,z) in count_arr" :key="z" class="chargeP">
66
+                                    {{item}}次</p>
67
+                            </div>
68
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
69
+                                <p v-for="(item,f) in price_arr" :key="f" class="chargeP">{{item}}</p>
70
+                            </div>
71
+                            <div style="width:15%;text-align:center;">
72
+                                <p v-for="(item,d) in total_arr" :key="d" class="chargeP">{{item}}</p>
73
+                            </div>
72 74
                         </div>
73 75
                     </div>
74
-                </div>
75 76
 
77
+                </div>
78
+                <div class="moneyBox">
79
+                    <p>实收金:{{result.transBody.akc264}}</p>
80
+                    <p>记账前金额:{{0.00}}</p>
81
+                    <p>扣款金额:{{0.00}}</p>
82
+                    <p>记账后金额:{{0.00}}</p>
83
+                    <p>找赎金:{{0.00}}</p>
84
+                </div>
85
+                <div class="actionBar">
86
+                    <div>收费员:{{doctor_name}}</div>
87
+                    <div>日期:{{this.$route.query.record_date}}</div>
88
+                </div>
76 89
             </div>
77
-            <div class="moneyBox">
78
-                <p>实收金:{{result.transBody.akc264}}</p>
79
-                <p>记账前金额:{{0.00}}</p>
80
-                <p>扣款金额:{{0.00}}</p>
81
-                <p>记账后金额:{{0.00}}</p>
82
-                <p>找赎金:{{0.00}}</p>
83
-            </div>
84
-            <div class="actionBar">
85
-                <div>收费员:{{doctor_name}}</div>
86
-                <div>日期:{{this.$route.query.record_date}}</div>
87
-            </div>
88
-        </div>
89 90
 
90
-        <div v-else>
91
-            <div class="printTitle">{{orgname}}&nbsp;&nbsp;医药费收据及收费项目清单</div>
92
-            <div class="infoMain">
93
-                <div class="infoP">医院(药店)编号:</div>
94
-                <div class="infoP">名称:{{orgname}}</div>
95
-                <div class="infoP">医生工号:</div>
96
-                <div class="infoP">门诊流水号:</div>
97
-                <div class="infoP">科别:{{list.p_info.departments?list.p_info.departments:''}}</div>
98
-                <div class="infoP">处方单据号:</div>
99
-                <div class="infoP">姓名:{{patient.name}}</div>
100
-                <div class="infoP">医疗账号:</div>
101
-                <div class="infoP">医疗类别:普通</div>
102
-            </div>
103
-            <div class="chargeBox">
104
-                <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
105
-                    <div class="chargeUl" style="width:20%;">
106
-                        <p style="width:50%;border-right:1px solid #000;">费用类型</p>
107
-                        <p style="width:50%;border-right:1px solid #000;">金额</p>
108
-                    </div>
109
-                    <div class="chargeUl" style="width:80%;" >
110
-                        <p style="width:40%;border-right:1px solid #000;">明细名称</p>
111
-                        <p style="width:15%;border-right:1px solid #000;">规格</p>
112
-                        <p style="width:15%;border-right:1px solid #000;">数量</p>
113
-                        <p style="width:15%;border-right:1px solid #000;">单价</p>
114
-                        <p style="width:15%;">金额</p>
115
-                    </div>
91
+            <div v-else>
92
+                <div class="printTitle">{{orgname}}&nbsp;&nbsp;医药费收据及收费项目清单</div>
93
+                <div class="infoMain">
94
+                    <div class="infoP">医院(药店)编号:</div>
95
+                    <div class="infoP">名称:{{orgname}}</div>
96
+                    <div class="infoP">医生工号:</div>
97
+                    <div class="infoP">门诊流水号:</div>
98
+                    <div class="infoP">科别:{{list.p_info.departments?list.p_info.departments:''}}</div>
99
+                    <div class="infoP">处方单据号:</div>
100
+                    <div class="infoP">姓名:{{patient.name}}</div>
101
+                    <div class="infoP">医疗账号:</div>
102
+                    <div class="infoP">医疗类别:普通</div>
116 103
                 </div>
117
-                <div style="display:flex;justify-content: space-between;">
118
-                    <div style="width:20%;">
119
-                        <div class="chargeUl" v-for="(item,index) in 1" :key="index">
120
-                            <p style="width:50%;">材料费</p>
121
-                            <p style="width:50%;"></p>
122
-                        </div>
123
-                        <div class="chargeUl" style="border-top:1px solid #000;">
124
-                            <p style="width:50%;">费用合计</p>
125
-                            <p style="width:50%;">{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:''}}</p>
126
-                        </div>
127
-                        <div class="chargeUl" style="border-top:1px solid #000;">
128
-                            <p style="width:50%;">记账支付</p>
129
-                            <p style="width:50%;"></p>
104
+                <div class="chargeBox">
105
+                    <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
106
+                        <div class="chargeUl" style="width:20%;">
107
+                            <p style="width:50%;border-right:1px solid #000;">费用类型</p>
108
+                            <p style="width:50%;border-right:1px solid #000;">金额</p>
130 109
                         </div>
131
-                        <div class="chargeUl" style="border-top:1px solid #000;">
132
-                            <p style="width:50%;">个人账号</p>
133
-                            <p style="width:50%;"></p>
134
-                        </div>
135
-                        <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
136
-                            <p style="width:50%;">现金支付</p>
137
-                            <p style="width:50%;">{{list.order_info.psn_cash_pay}}</p>
110
+                        <div class="chargeUl" style="width:80%;">
111
+                            <p style="width:40%;border-right:1px solid #000;">明细名称</p>
112
+                            <p style="width:15%;border-right:1px solid #000;">规格</p>
113
+                            <p style="width:15%;border-right:1px solid #000;">数量</p>
114
+                            <p style="width:15%;border-right:1px solid #000;">单价</p>
115
+                            <p style="width:15%;">金额</p>
138 116
                         </div>
139 117
                     </div>
140
-                    <div style="width:80%;display:flex;height:300px;">
141
-
142
-                        <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
143
-                            <p v-for="(item,i) in prescription[0].advices" :key="i" class="chargeP">
144
-                                {{item.advice_name}}</p>
145
-                        </div>
146
-                        <div style="border-right:1px solid #000;width:15%;text-align:center;">
147
-                            <p v-for="(item,y) in prescription[0].advices" :key="y" class="chargeP">
148
-                                {{item.advice_desc}}</p>
118
+                    <div style="display:flex;justify-content: space-between;">
119
+                        <div style="width:20%;">
120
+                            <div class="chargeUl" v-for="(item,index) in 1" :key="index">
121
+                                <p style="width:50%;">材料费</p>
122
+                                <p style="width:50%;"></p>
123
+                            </div>
124
+                            <div class="chargeUl" style="border-top:1px solid #000;">
125
+                                <p style="width:50%;">费用合计</p>
126
+                                <p style="width:50%;">
127
+                                    {{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:''}}</p>
128
+                            </div>
129
+                            <div class="chargeUl" style="border-top:1px solid #000;">
130
+                                <p style="width:50%;">记账支付</p>
131
+                                <p style="width:50%;"></p>
132
+                            </div>
133
+                            <div class="chargeUl" style="border-top:1px solid #000;">
134
+                                <p style="width:50%;">个人账号</p>
135
+                                <p style="width:50%;"></p>
136
+                            </div>
137
+                            <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
138
+                                <p style="width:50%;">现金支付</p>
139
+                                <p style="width:50%;">{{list.order_info.psn_cash_pay}}</p>
140
+                            </div>
149 141
                         </div>
150
-                        <div style="border-right:1px solid #000;width:15%;text-align:center;">
151
-                            <p v-for="(item,z) in prescription[0].advices" :key="z" class="chargeP">
152
-                                {{item.single_dose}}个</p>
153
-                        </div>
154
-                        <div style="border-right:1px solid #000;width:15%;text-align:center;">
155
-                            <p v-for="(item,f) in prescription[0].advices" :key="f" class="chargeP">{{item.price}}</p>
156
-                        </div>
157
-                        <div style="width:15%;text-align:center;">
158
-                            <p v-for="(item,d) in prescription[0].advices" :key="d" class="chargeP">{{item.single_dose *
159
-                                item.price}}</p>
142
+                        <div style="width:80%;display:flex;height:300px;">
143
+
144
+                            <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
145
+                                <p v-for="(item,i) in prescription[0].advices" :key="i" class="chargeP">
146
+                                    {{item.advice_name}}</p>
147
+                            </div>
148
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
149
+                                <p v-for="(item,y) in prescription[0].advices" :key="y" class="chargeP">
150
+                                    {{item.advice_desc}}</p>
151
+                            </div>
152
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
153
+                                <p v-for="(item,z) in prescription[0].advices" :key="z" class="chargeP">
154
+                                    {{item.single_dose}}个</p>
155
+                            </div>
156
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
157
+                                <p v-for="(item,f) in prescription[0].advices" :key="f" class="chargeP">
158
+                                    {{item.price}}</p>
159
+                            </div>
160
+                            <div style="width:15%;text-align:center;">
161
+                                <p v-for="(item,d) in prescription[0].advices" :key="d" class="chargeP">
162
+                                    {{item.single_dose *
163
+                                    item.price}}</p>
164
+                            </div>
160 165
                         </div>
161 166
                     </div>
162
-                </div>
163 167
 
164
-            </div>
165
-            <div class="moneyBox">
166
-                <p>实收金:{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:''}}</p>
167
-                <p>记账前金额:{{list.order_info.preselfpay_amt?list.order_info.preselfpay_amt:''}}</p>
168
-                <p>扣款金额:</p>
169
-                <p>记账后金额:</p>
170
-                <p>找赎金:</p>
171
-            </div>
172
-            <div class="actionBar">
173
-                <div>收费员:{{}}</div>
174
-                <div>日期:{{this.$route.query.record_date}}</div>
168
+                </div>
169
+                <div class="moneyBox">
170
+                    <p>实收金:{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:''}}</p>
171
+                    <p>记账前金额:{{list.order_info.preselfpay_amt?list.order_info.preselfpay_amt:''}}</p>
172
+                    <p>扣款金额:</p>
173
+                    <p>记账后金额:</p>
174
+                    <p>找赎金:</p>
175
+                </div>
176
+                <div class="actionBar">
177
+                    <div>收费员:{{}}</div>
178
+                    <div>日期:{{this.$route.query.record_date}}</div>
179
+                </div>
175 180
             </div>
176 181
         </div>
177 182
     </div>
178 183
 
179
-
180 184
 </template>
181 185
 <script>
182 186
   import axios from 'axios'
@@ -190,18 +194,17 @@
190 194
         patient: {},
191 195
         orgname: '',
192 196
 
193
-        result:{},
194
-        org_code:"",
195
-        patient_name:"",
196
-        doctor_code:"",
197
-        doctor_name:"",
198
-
199
-        name_arr:[],
200
-        spec_arr:[],
201
-        count_arr:[],
202
-        price_arr:[],
203
-        total_arr:[],
197
+        result: {},
198
+        org_code: '',
199
+        patient_name: '',
200
+        doctor_code: '',
201
+        doctor_name: '',
204 202
 
203
+        name_arr: [],
204
+        spec_arr: [],
205
+        count_arr: [],
206
+        price_arr: [],
207
+        total_arr: []
205 208
 
206 209
       }
207 210
     },
@@ -209,115 +212,113 @@
209 212
       paramsObj: Object
210 213
     },
211 214
     methods: {
212
-      getItemName(number){
215
+      getItemName(number) {
213 216
         switch (number) {
214
-          case "01":
215
-            return "床位费"
217
+          case '01':
218
+            return '床位费'
216 219
             break
217
-          case "02":
218
-            return "西药费"
220
+          case '02':
221
+            return '西药费'
219 222
 
220 223
             break
221
-          case "03":
222
-            return "中药费"
224
+          case '03':
225
+            return '中药费'
223 226
 
224 227
             break
225
-          case "04":
226
-            return "中成药费"
228
+          case '04':
229
+            return '中成药费'
227 230
 
228 231
             break
229
-          case "05":
230
-            return "中草药费"
232
+          case '05':
233
+            return '中草药费'
231 234
 
232 235
             break
233
-          case "06":
234
-            return "检查费"
236
+          case '06':
237
+            return '检查费'
235 238
 
236 239
             break
237
-          case "07":
238
-            return "治疗费"
240
+          case '07':
241
+            return '治疗费'
239 242
 
240 243
             break
241
-          case "08":
242
-            return "放射费"
244
+          case '08':
245
+            return '放射费'
243 246
 
244 247
             break
245
-          case "09":
246
-            return "手术费"
248
+          case '09':
249
+            return '手术费'
247 250
 
248 251
             break
249
-          case "10":
250
-            return "化验费"
252
+          case '10':
253
+            return '化验费'
251 254
 
252 255
             break
253
-          case "11":
254
-            return "输血费"
256
+          case '11':
257
+            return '输血费'
255 258
 
256 259
             break
257
-          case "12":
258
-            return "输氧费"
259
-
260
+          case '12':
261
+            return '输氧费'
260 262
 
261 263
             break
262
-          case "13":
263
-            return "其它费"
264
+          case '13':
265
+            return '其它费'
264 266
 
265 267
             break
266
-          case "14":
267
-            return "麻醉费"
268
+          case '14':
269
+            return '麻醉费'
268 270
 
269 271
             break
270
-          case "15":
271
-            return "材料费"
272
+          case '15':
273
+            return '材料费'
272 274
 
273 275
             break
274
-          case "16":
275
-            return "特殊检查费"
276
+          case '16':
277
+            return '特殊检查费'
276 278
 
277 279
             break
278
-          case "17":
279
-            return "特殊治疗费"
280
+          case '17':
281
+            return '特殊治疗费'
280 282
 
281 283
             break
282
-          case "18":
283
-            return "诊疗费(诊查费)"
284
+          case '18':
285
+            return '诊疗费(诊查费)'
284 286
 
285 287
             break
286
-          case "19":
287
-            return "护理费"
288
+          case '19':
289
+            return '护理费'
288 290
 
289 291
             break
290
-          case "20":
291
-            return "诊金"
292
+          case '20':
293
+            return '诊金'
292 294
 
293 295
             break
294
-          case "21":
295
-            return "检查费(CT)"
296
+          case '21':
297
+            return '检查费(CT)'
296 298
 
297 299
             break
298
-          case "22":
299
-            return "检查费(MRT)"
300
+          case '22':
301
+            return '检查费(MRT)'
300 302
 
301 303
             break
302
-          case "23":
303
-            return "检查费(其他)"
304
+          case '23':
305
+            return '检查费(其他)'
304 306
 
305 307
             break
306
-          case "24":
307
-            return "特需服务费"
308
+          case '24':
309
+            return '特需服务费'
308 310
 
309 311
             break
310
-          case "25":
311
-            return "杂费"
312
+          case '25':
313
+            return '杂费'
312 314
 
313 315
             break
314
-          case "26":
315
-            return "挂号费"
316
+          case '26':
317
+            return '挂号费'
316 318
             break
317 319
 
318 320
         }
319 321
 
320
-
321 322
       },
322 323
       getChargePrint(record_date, patient_id, prescription_id) {
323 324
         var params = {
@@ -346,6 +347,7 @@
346 347
     created() {
347 348
 
348 349
       if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 9538) {
350
+        this.orgname = xtuser.org.org_name
349 351
         var form = {
350 352
           'order_id': this.paramsObj.order_id,
351 353
           'patient_id': this.paramsObj.patient_id,
@@ -364,30 +366,25 @@
364 366
               if (response.data.data.failed_code == -10) {
365 367
                 that.$message.error(response.data.data.msg)
366 368
               } else {
367
-                this.result = response.data.data.res
368
-
369
-                this.org_code = response.data.data.org_code
370
-                this.patient_name = response.data.data.patient_name
371
-                this.doctor_code = response.data.data.doctor_code
372
-                this.doctor_name = response.data.data.doctor_name
373
-                this.name_arr = []
374
-                this.spec_arr = []
375
-                this.count_arr = []
376
-                this.price_arr = []
377
-                this.total_arr = []
378
-                for(let i = 0;i < this.result.transBody.outputlist1.length; i++){
379
-                  this.name_arr.push(this.result.transBody.outputlist1[i].ake006)
380
-                  this.spec_arr.push(this.result.transBody.outputlist1[i].aka074)
381
-                  this.count_arr.push(this.result.transBody.outputlist1[i].akc226)
382
-                  this.price_arr.push(this.result.transBody.outputlist1[i].akc225)
383
-                  this.total_arr.push(this.result.transBody.outputlist1[i].akc264)
369
+                that.result = response.data.data.result
370
+
371
+                that.org_code = response.data.data.org_code
372
+                that.patient_name = response.data.data.patient_name
373
+                that.doctor_code = response.data.data.doctor_code
374
+                that.doctor_name = response.data.data.doctor_name
375
+                that.name_arr = []
376
+                that.spec_arr = []
377
+                that.count_arr = []
378
+                that.price_arr = []
379
+                that.total_arr = []
380
+                for (let i = 0; i < that.result.transBody.outputlist1.length; i++) {
381
+                  that.name_arr.push(that.result.transBody.outputlist1[i].ake006)
382
+                  that.spec_arr.push(that.result.transBody.outputlist1[i].aka074)
383
+                  that.count_arr.push(that.result.transBody.outputlist1[i].akc226)
384
+                  that.price_arr.push(that.result.transBody.outputlist1[i].akc225)
385
+                  that.total_arr.push(that.result.transBody.outputlist1[i].akc264)
384 386
                 }
385 387
 
386
-
387
-
388
-
389
-
390
-
391 388
               }
392 389
 
393 390
             }

Filskillnaden har hållits tillbaka eftersom den är för stor
+ 447 - 411
src/xt_pages/outpatientRegistration/index.vue