|
@@ -119,20 +119,6 @@
|
119
|
119
|
@click="open(6)"
|
120
|
120
|
type="primary">挂号
|
121
|
121
|
</el-button>
|
122
|
|
-
|
123
|
|
- <!--<el-button-->
|
124
|
|
- <!--size="small" @click="open(8)" type="primary"-->
|
125
|
|
- <!-->预结算-->
|
126
|
|
- <!--</el-button>-->
|
127
|
|
-
|
128
|
|
-
|
129
|
|
- <!--<el-button v-loading="loadingtwo"-->
|
130
|
|
- <!--v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1 || this.order.order_status == 3"-->
|
131
|
|
- <!--size="small"-->
|
132
|
|
- <!--@click="open(4)"-->
|
133
|
|
- <!--type="primary">收费-->
|
134
|
|
- <!--</el-button>-->
|
135
|
|
-
|
136
|
122
|
<el-button size="small" @click="open(5)" type="primary"
|
137
|
123
|
v-if="this.radio == 2 && this.hisPatientInfo.id > 0 && this.order.id > 0 && this.order.order_status == 2">
|
138
|
124
|
退费
|
|
@@ -150,12 +136,6 @@
|
150
|
136
|
>退号
|
151
|
137
|
</el-button>
|
152
|
138
|
|
153
|
|
- <!--<el-button-->
|
154
|
|
- <!--v-if="$store.getters.xt_user.org_id == 4 || 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 == 9990"-->
|
155
|
|
- <!--size="small" @click="open(11)" type="primary"-->
|
156
|
|
- <!-->撤销明细-->
|
157
|
|
- <!--</el-button>-->
|
158
|
|
-
|
159
|
139
|
</div>
|
160
|
140
|
<!--<el-button size="small" @click="query" type="primary"-->
|
161
|
141
|
<!-->查询-->
|
|
@@ -173,27 +153,6 @@
|
173
|
153
|
<div class="tabsBox" v-for="items,index in big_prescriptions" :key="index">
|
174
|
154
|
|
175
|
155
|
|
176
|
|
- <!--<el-radio v-model="check" label="11" style="margin:10px 0;"-->
|
177
|
|
- <!--v-if="items.med_type == 11">{{'普通门诊处方'}}-->
|
178
|
|
- <!--</el-radio>-->
|
179
|
|
- <!--<el-radio v-model="check" label="12" style="margin:10px 0;"-->
|
180
|
|
- <!--v-if="items.med_type == 12">{{'门诊挂号'}}-->
|
181
|
|
- <!--</el-radio>-->
|
182
|
|
- <!--<el-radio v-model="check" label="13" style="margin:10px 0;"-->
|
183
|
|
- <!--v-if="items.med_type == 13">{{'急诊'}}-->
|
184
|
|
- <!--</el-radio>-->
|
185
|
|
- <!--<el-radio v-model="check" label="14" style="margin:10px 0;"-->
|
186
|
|
- <!--v-if="items.med_type == 14">{{'门诊特殊病'}}-->
|
187
|
|
- <!--</el-radio>-->
|
188
|
|
- <!--<el-radio v-model="check" label="15" style="margin:10px 0;"-->
|
189
|
|
- <!--v-if="items.med_type == 15">{{'门诊统筹'}}-->
|
190
|
|
- <!--</el-radio>-->
|
191
|
|
- <!--<el-radio v-model="check" label="16" style="margin:10px 0;"-->
|
192
|
|
- <!--v-if="items.med_type == 16">{{'门诊慢性病'}}-->
|
193
|
|
- <!--</el-radio>-->
|
194
|
|
- <!--<el-radio v-model="check" label="21" style="margin:10px 0;"-->
|
195
|
|
- <!--v-if="items.med_type == 21">{{'普通住院'}}-->
|
196
|
|
- <!--</el-radio>-->
|
197
|
156
|
|
198
|
157
|
|
199
|
158
|
<el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
|
|
@@ -208,52 +167,54 @@
|
208
|
167
|
</el-tab-pane>
|
209
|
168
|
|
210
|
169
|
<div style="margin-bottom:10px;float: right">
|
211
|
|
- <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138">
|
|
170
|
+ <el-button
|
|
171
|
+ v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) "
|
|
172
|
+
|
|
173
|
+ size="small"
|
|
174
|
+ @click="sz_open(8,items.med_type,items.prescriptions[0].order)"
|
|
175
|
+ type="primary"
|
|
176
|
+ >预结算
|
|
177
|
+ </el-button>
|
|
178
|
+
|
|
179
|
+ <el-button
|
|
180
|
+ v-if="order.order_status == 1"
|
|
181
|
+ size="small"
|
|
182
|
+ @click="sz_open(7,items.med_type,items.prescriptions[0].order,items.prescriptions)"
|
|
183
|
+ type="primary"
|
|
184
|
+ >撤销明细
|
|
185
|
+ </el-button>
|
|
186
|
+
|
|
187
|
+ <el-button
|
|
188
|
+ v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) || items.prescriptions[0].order.order_status == 1"
|
|
189
|
+ size="small"
|
|
190
|
+ @click="sz_open(3,items.med_type,items.prescriptions[0].order,items.prescriptions)"
|
|
191
|
+ type="primary">收费
|
|
192
|
+ </el-button>
|
212
|
193
|
|
213
|
|
- <el-button
|
214
|
|
- v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) "
|
215
|
194
|
|
216
|
|
- size="small"
|
217
|
|
- @click="sz_open(8,items.med_type,items.prescriptions[0].order)"
|
218
|
|
- type="primary"
|
219
|
|
- >预结算
|
220
|
|
- </el-button>
|
221
|
|
-
|
222
|
|
- <el-button
|
223
|
|
- v-if="order.order_status == 1"
|
224
|
|
- size="small"
|
225
|
|
- @click="sz_open(7,items.med_type,items.prescriptions[0].order)"
|
226
|
|
- type="primary"
|
227
|
|
- >撤销明细
|
228
|
|
- </el-button>
|
|
195
|
+ <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138">
|
229
|
196
|
|
230
|
|
- <el-button
|
231
|
|
- v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) || items.prescriptions[0].order.order_status == 1"
|
232
|
|
- size="small"
|
233
|
|
- @click="sz_open(3,items.med_type,items.prescriptions[0].order,items.prescriptions)"
|
234
|
|
- type="primary">收费
|
235
|
|
- </el-button>
|
236
|
197
|
|
237
|
198
|
|
238
|
199
|
</div>
|
239
|
200
|
<div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
|
240
|
201
|
|
241
|
|
- <el-button
|
242
|
|
- v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) "
|
|
202
|
+ <!--<el-button-->
|
|
203
|
+ <!--v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) "-->
|
243
|
204
|
|
244
|
|
- size="small"
|
245
|
|
- @click="open(8,items.med_type,items.prescriptions[0].order)"
|
246
|
|
- type="primary"
|
247
|
|
- >预结算
|
248
|
|
- </el-button>
|
|
205
|
+ <!--size="small"-->
|
|
206
|
+ <!--@click="open(8,items.med_type,items.prescriptions[0].order)"-->
|
|
207
|
+ <!--type="primary"-->
|
|
208
|
+ <!-->预结算-->
|
|
209
|
+ <!--</el-button>-->
|
249
|
210
|
|
250
|
211
|
|
251
|
|
- <el-button v-loading="loadingtwo"
|
252
|
|
- v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) || items.prescriptions[0].order.order_status == 1 || items.prescriptions[0].order.order_status == 3"
|
253
|
|
- size="small"
|
254
|
|
- @click="open(4,items.med_type,items.prescriptions[0].order,items.prescriptions)"
|
255
|
|
- type="primary">收费
|
256
|
|
- </el-button>
|
|
212
|
+ <!--<el-button v-loading="loadingtwo"-->
|
|
213
|
+ <!--v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) || items.prescriptions[0].order.order_status == 1 || items.prescriptions[0].order.order_status == 3"-->
|
|
214
|
+ <!--size="small"-->
|
|
215
|
+ <!--@click="open(4,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
|
|
216
|
+ <!--type="primary">收费-->
|
|
217
|
+ <!--</el-button>-->
|
257
|
218
|
|
258
|
219
|
|
259
|
220
|
<!--<el-button-->
|
|
@@ -437,19 +398,19 @@
|
437
|
398
|
<div style="margin-bottom:10px;float: right">
|
438
|
399
|
<div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138">
|
439
|
400
|
|
440
|
|
- <el-button
|
441
|
|
- v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "
|
|
401
|
+ <!--<el-button-->
|
|
402
|
+ <!--v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "-->
|
442
|
403
|
|
443
|
|
- size="small"
|
444
|
|
- @click="sz_open(8,items.med_type,items.curMonthPrescriptions.order)"
|
445
|
|
- type="primary"
|
446
|
|
- >预结算
|
447
|
|
- </el-button>
|
|
404
|
+ <!--size="small"-->
|
|
405
|
+ <!--@click="sz_open(8,items.med_type,items.curMonthPrescriptions.order)"-->
|
|
406
|
+ <!--type="primary"-->
|
|
407
|
+ <!-->预结算-->
|
|
408
|
+ <!--</el-button>-->
|
448
|
409
|
|
449
|
410
|
<el-button
|
450
|
411
|
v-if="order.order_status == 1"
|
451
|
412
|
size="small"
|
452
|
|
- @click="sz_open(7,items.med_type,items.curMonthPrescriptions.order)"
|
|
413
|
+ @click="sz_open(7,items.med_type,items.curMonthPrescriptions.order, items.month_prescriptions)"
|
453
|
414
|
type="primary"
|
454
|
415
|
>撤销明细
|
455
|
416
|
</el-button>
|
|
@@ -465,13 +426,13 @@
|
465
|
426
|
</div>
|
466
|
427
|
<div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
|
467
|
428
|
|
468
|
|
- <el-button
|
469
|
|
- v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "
|
470
|
|
- size="small"
|
471
|
|
- @click="open(8,items.med_type,items.curMonthPrescriptions.order)"
|
472
|
|
- type="primary"
|
473
|
|
- >预结算
|
474
|
|
- </el-button>
|
|
429
|
+ <!--<el-button-->
|
|
430
|
+ <!--v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "-->
|
|
431
|
+ <!--size="small"-->
|
|
432
|
+ <!--@click="open(8,items.med_type,items.curMonthPrescriptions.order)"-->
|
|
433
|
+ <!--type="primary"-->
|
|
434
|
+ <!-->预结算-->
|
|
435
|
+ <!--</el-button>-->
|
475
|
436
|
|
476
|
437
|
|
477
|
438
|
<el-button v-loading="loadingtwo"
|
|
@@ -916,7 +877,7 @@
|
916
|
877
|
|
917
|
878
|
}
|
918
|
879
|
|
919
|
|
- if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
|
|
880
|
+ if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 0) {
|
920
|
881
|
var that = this
|
921
|
882
|
axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
|
922
|
883
|
params: form
|
|
@@ -2483,7 +2444,6 @@
|
2483
|
2444
|
}
|
2484
|
2445
|
|
2485
|
2446
|
} else if (index == 8) {
|
2486
|
|
-
|
2487
|
2447
|
if (this.$store.getters.xt_user.org_id != 10028 || this.$store.getters.xt_user.org_id != 9504 || this.$store.getters.xt_user.org_id != 10138) {
|
2488
|
2448
|
if (this.form.diagnosis.length || this.form.diagnosis == 0) {
|
2489
|
2449
|
that.$message.error('诊断不能为空,请选择诊断内容')
|
|
@@ -2497,7 +2457,6 @@
|
2497
|
2457
|
}
|
2498
|
2458
|
|
2499
|
2459
|
}
|
2500
|
|
-
|
2501
|
2460
|
var that = this
|
2502
|
2461
|
let form = {}
|
2503
|
2462
|
form['id'] = this.patientInfo.id
|
|
@@ -2517,8 +2476,7 @@
|
2517
|
2476
|
form['end_time'] = this.other_end_time
|
2518
|
2477
|
form['settle_accounts_type'] = 2
|
2519
|
2478
|
}
|
2520
|
|
-
|
2521
|
|
- if (that.$store.getters.xt_user.org_id == 12) {
|
|
2479
|
+ if (that.$store.getters.xt_user.org_id == 3877) {
|
2522
|
2480
|
|
2523
|
2481
|
this.$confirm('是否进行预结算', '预结算', {
|
2524
|
2482
|
confirmButtonText: '确 定',
|
|
@@ -2538,7 +2496,7 @@
|
2538
|
2496
|
}).catch(() => {
|
2539
|
2497
|
|
2540
|
2498
|
})
|
2541
|
|
- } else {
|
|
2499
|
+ } else if(this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
|
2542
|
2500
|
this.$confirm('是否进行预结算', '预结算', {
|
2543
|
2501
|
confirmButtonText: '确 定',
|
2544
|
2502
|
cancelButtonText: '取 消',
|
|
@@ -3757,39 +3715,90 @@
|
3757
|
3715
|
|
3758
|
3716
|
}, getPName(med_type, index) {
|
3759
|
3717
|
var med_type = parseInt(med_type)
|
3760
|
|
- switch (med_type) {
|
3761
|
|
- case 11:
|
3762
|
|
- return '普通门诊' + '处方' + index
|
3763
|
3718
|
|
3764
|
|
- break
|
3765
|
|
- case 12:
|
3766
|
|
- return '门诊挂号' + '处方' + index
|
|
3719
|
+ if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
|
|
3720
|
+ switch (med_type) {
|
|
3721
|
+ case 11:
|
|
3722
|
+ return '普通门诊' + '处方' + index
|
3767
|
3723
|
|
3768
|
|
- break
|
3769
|
|
- case 13:
|
3770
|
|
- return '急诊' + '处方' + index
|
|
3724
|
+ break
|
|
3725
|
+ case 12:
|
|
3726
|
+ return '家庭通道' + '处方' + index
|
3771
|
3727
|
|
3772
|
|
- break
|
|
3728
|
+ break
|
|
3729
|
+ case 13:
|
|
3730
|
+ return '门诊大病' + '处方' + index
|
3773
|
3731
|
|
3774
|
|
- case 14:
|
3775
|
|
- return '门诊特殊病' + '处方' + index
|
3776
|
|
- break
|
|
3732
|
+ break
|
3777
|
3733
|
|
3778
|
|
- case 15:
|
3779
|
|
- return '门诊统筹' + '处方' + index
|
|
3734
|
+ case 14:
|
|
3735
|
+ return '重疾特药' + '处方' + index
|
|
3736
|
+ break
|
3780
|
3737
|
|
3781
|
|
- break
|
3782
|
|
- case 16:
|
3783
|
|
- return '门诊慢性病' + '处方' + index
|
|
3738
|
+ case 15:
|
|
3739
|
+ return '门诊慢病' + '处方' + index
|
3784
|
3740
|
|
3785
|
|
- break
|
3786
|
|
- case 21:
|
3787
|
|
- return '普通住院' + '处方' + index
|
|
3741
|
+ break
|
|
3742
|
+ case 16:
|
|
3743
|
+ return '门诊特检' + '处方' + index
|
3788
|
3744
|
|
3789
|
|
- break
|
|
3745
|
+ break
|
|
3746
|
+ case 17:
|
|
3747
|
+ return '健康体检' + '处方' + index
|
|
3748
|
+
|
|
3749
|
+ break
|
|
3750
|
+ case 18:
|
|
3751
|
+ return '预防接种' + '处方' + index
|
|
3752
|
+
|
|
3753
|
+ break
|
|
3754
|
+ case 19:
|
|
3755
|
+ return '门诊输血' + '处方' + index
|
|
3756
|
+
|
|
3757
|
+ break
|
|
3758
|
+ case 91:
|
|
3759
|
+ return '新冠肺炎门诊' + '处方' + index
|
|
3760
|
+ break
|
|
3761
|
+ }
|
|
3762
|
+
|
|
3763
|
+
|
|
3764
|
+ }else{
|
|
3765
|
+
|
|
3766
|
+ switch (med_type) {
|
|
3767
|
+ case 11:
|
|
3768
|
+ return '普通门诊' + '处方' + index
|
|
3769
|
+
|
|
3770
|
+ break
|
|
3771
|
+ case 12:
|
|
3772
|
+ return '门诊挂号' + '处方' + index
|
|
3773
|
+
|
|
3774
|
+ break
|
|
3775
|
+ case 13:
|
|
3776
|
+ return '急诊' + '处方' + index
|
|
3777
|
+
|
|
3778
|
+ break
|
|
3779
|
+
|
|
3780
|
+ case 14:
|
|
3781
|
+ return '门诊特殊病' + '处方' + index
|
|
3782
|
+ break
|
|
3783
|
+
|
|
3784
|
+ case 15:
|
|
3785
|
+ return '门诊统筹' + '处方' + index
|
|
3786
|
+
|
|
3787
|
+ break
|
|
3788
|
+ case 16:
|
|
3789
|
+ return '门诊慢性病' + '处方' + index
|
|
3790
|
+
|
|
3791
|
+ break
|
|
3792
|
+ case 21:
|
|
3793
|
+ return '普通住院' + '处方' + index
|
|
3794
|
+
|
|
3795
|
+ break
|
|
3796
|
+
|
|
3797
|
+ }
|
3790
|
3798
|
|
3791
|
3799
|
}
|
3792
|
3800
|
|
|
3801
|
+
|
3793
|
3802
|
}, unique_four(array) {
|
3794
|
3803
|
|
3795
|
3804
|
// res用来存储结果
|
|
@@ -4063,7 +4072,7 @@
|
4063
|
4072
|
}
|
4064
|
4073
|
})
|
4065
|
4074
|
},
|
4066
|
|
- sz_open(index, med_type, order_id) {
|
|
4075
|
+ sz_open(index, med_type, order,prescriptions) {
|
4067
|
4076
|
switch (index) {
|
4068
|
4077
|
case 1:
|
4069
|
4078
|
this.$refs.register9504.show()
|
|
@@ -4087,6 +4096,10 @@
|
4087
|
4096
|
'admin_user_id': this.$store.getters.xt_user.user.id,
|
4088
|
4097
|
'his_patient_id': this.hisPatientInfo.id
|
4089
|
4098
|
}
|
|
4099
|
+
|
|
4100
|
+ params['p_type'] = med_type
|
|
4101
|
+ params['diagnosis'] = this.form.diagnosis
|
|
4102
|
+
|
4090
|
4103
|
axios.get('http://127.0.0.1:9532/sz/api/upload/get', {
|
4091
|
4104
|
params: params,
|
4092
|
4105
|
headers: {
|
|
@@ -4113,11 +4126,19 @@
|
4113
|
4126
|
})
|
4114
|
4127
|
break
|
4115
|
4128
|
case 3:
|
|
4129
|
+ this.currentOrder = order
|
|
4130
|
+ this.current_med_type = med_type
|
|
4131
|
+
|
4116
|
4132
|
if (this.activeName == 'first') {
|
4117
|
|
- this.$refs.charge.show(this.getTotal())
|
|
4133
|
+
|
|
4134
|
+ this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
|
|
4135
|
+
|
4118
|
4136
|
} else {
|
4119
|
|
- this.$refs.charge.show(this.getTotalTwo())
|
|
4137
|
+ this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
|
|
4138
|
+
|
4120
|
4139
|
}
|
|
4140
|
+
|
|
4141
|
+
|
4121
|
4142
|
break
|
4122
|
4143
|
case 4:
|
4123
|
4144
|
break
|
|
@@ -4233,6 +4254,11 @@
|
4233
|
4254
|
form['record_time'] = this.record_date
|
4234
|
4255
|
form['admin_user_id'] = this.$store.getters.xt_user.user.id
|
4235
|
4256
|
form['org_id'] = this.$store.getters.xt_user.org_id
|
|
4257
|
+
|
|
4258
|
+ form['p_type'] = med_type
|
|
4259
|
+ form['diagnosis'] = this.form.diagnosis
|
|
4260
|
+ form['sick_type'] = this.form.sick_type
|
|
4261
|
+
|
4236
|
4262
|
if (this.activeName == 'first') {
|
4237
|
4263
|
form['settle_accounts_type'] = 1
|
4238
|
4264
|
} else {
|