|
@@ -35,6 +35,7 @@
|
35
|
35
|
</el-radio-group>
|
36
|
36
|
</div>
|
37
|
37
|
|
|
38
|
+
|
38
|
39
|
<div class="mainCell" v-if="this.org_id == 10191">
|
39
|
40
|
<el-radio-group v-model="sch_type" @change="changeScheduleType">
|
40
|
41
|
<el-radio :label="1">上午</el-radio>
|
|
@@ -215,13 +216,23 @@
|
215
|
216
|
type="primary"
|
216
|
217
|
>修改医疗类型
|
217
|
218
|
</el-button>
|
|
219
|
+
|
|
220
|
+ <el-select style="margin-right:5px;width:300px;"
|
|
221
|
+ v-model="item.diagnoses" multiple placeholder="诊断">
|
|
222
|
+ <el-option
|
|
223
|
+ v-for="(item,index) in diagnoses"
|
|
224
|
+ :key="index"
|
|
225
|
+ :label="item.class_name"
|
|
226
|
+ :value="item.id">
|
|
227
|
+ </el-option>
|
|
228
|
+ </el-select>
|
|
229
|
+
|
218
|
230
|
<div style="margin-bottom:10px;float: right">
|
219
|
231
|
<div>
|
220
|
|
-
|
221
|
232
|
<el-button
|
222
|
233
|
v-if="(hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 && org_id != 10340)"
|
223
|
234
|
size="small"
|
224
|
|
- @click="open(50,items.med_type,items.prescriptions[0].order,items.prescriptions)"
|
|
235
|
+ @click="open(50,items.med_type,items.prescriptions[0].order,items.prescriptions,item.diagnoses)"
|
225
|
236
|
type="primary"
|
226
|
237
|
>读电子凭证
|
227
|
238
|
</el-button>
|
|
@@ -230,7 +241,7 @@
|
230
|
241
|
<el-button
|
231
|
242
|
v-if="(hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 && org_id != 10340)"
|
232
|
243
|
size="small"
|
233
|
|
- @click="open(55,items.med_type,items.prescriptions[0].order,items.prescriptions)"
|
|
244
|
+ @click="open(55,items.med_type,items.prescriptions[0].order,items.prescriptions,item.diagnoses)"
|
234
|
245
|
type="primary"
|
235
|
246
|
>人脸识别
|
236
|
247
|
</el-button>
|
|
@@ -245,21 +256,21 @@
|
245
|
256
|
<el-button
|
246
|
257
|
v-if="(hisPatientInfo.id_card_type != 3 && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0 && org_id != 10340)"
|
247
|
258
|
size="small"
|
248
|
|
- @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"
|
|
259
|
+ @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions,item.diagnoses)"
|
249
|
260
|
type="primary"
|
250
|
261
|
>预结算
|
251
|
262
|
</el-button>
|
252
|
263
|
<el-button
|
253
|
264
|
v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2 && org_id != 10340"
|
254
|
265
|
size="small"
|
255
|
|
- @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)"
|
|
266
|
+ @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions,item.diagnoses)"
|
256
|
267
|
type="primary"
|
257
|
268
|
>撤销明细
|
258
|
269
|
</el-button>
|
259
|
270
|
<el-button v-loading="loadingtwo"
|
260
|
271
|
v-if="((hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 || items.curPrescriptions.order.order_status == 3) && org_id != 10340"
|
261
|
272
|
size="small"
|
262
|
|
- @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"
|
|
273
|
+ @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions,item.diagnoses)"
|
263
|
274
|
type="primary">收费
|
264
|
275
|
</el-button>
|
265
|
276
|
</div>
|
|
@@ -344,7 +355,7 @@
|
344
|
355
|
<el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
|
345
|
356
|
|
346
|
357
|
<el-form-item label="大病类别:" prop="sick_type" >
|
347
|
|
- <el-select style="margin-right:5px;width:100px;"
|
|
358
|
+ <el-select style="margin-right:5px;width:200px;"
|
348
|
359
|
v-model="form.sick_type" placeholder="">
|
349
|
360
|
<el-option
|
350
|
361
|
v-for="(item,index) in sick"
|
|
@@ -356,7 +367,7 @@
|
356
|
367
|
</el-select>
|
357
|
368
|
</el-form-item>
|
358
|
369
|
|
359
|
|
- <el-form-item label="诊断:" prop="diagnosis" >
|
|
370
|
+ <el-form-item label="诊断:" prop="diagnosis" v-if="org_id != 10721 && org_id != 0">
|
360
|
371
|
<el-select style="margin-right:5px;width:100px;"
|
361
|
372
|
v-model="form.diagnosis" multiple placeholder="">
|
362
|
373
|
<el-option
|
|
@@ -489,14 +500,14 @@
|
489
|
500
|
<el-button
|
490
|
501
|
v-if="(hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0)"
|
491
|
502
|
size="small"
|
492
|
|
- @click="open(8,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
|
|
503
|
+ @click="open(8,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions,items.diagnoses)"
|
493
|
504
|
type="primary"
|
494
|
505
|
>预结算
|
495
|
506
|
</el-button>
|
496
|
507
|
<el-button
|
497
|
508
|
v-if="items.curMonthPrescriptions.order.order_status == 1"
|
498
|
509
|
size="small"
|
499
|
|
- @click="open(11,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
|
|
510
|
+ @click="open(11,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions,items.diagnoses)"
|
500
|
511
|
type="primary"
|
501
|
512
|
>撤销明细
|
502
|
513
|
</el-button>
|
|
@@ -577,7 +588,7 @@
|
577
|
588
|
|
578
|
589
|
|
579
|
590
|
<el-form-item label="大病类别:" prop="sick_type" >
|
580
|
|
- <el-select style="margin-right:5px;width:100px;"
|
|
591
|
+ <el-select style="margin-right:5px;width:200px;"
|
581
|
592
|
v-model="form.sick_type" placeholder="">
|
582
|
593
|
<el-option
|
583
|
594
|
v-for="(item,index) in sick"
|
|
@@ -588,7 +599,7 @@
|
588
|
599
|
</el-select>
|
589
|
600
|
</el-form-item>
|
590
|
601
|
|
591
|
|
- <el-form-item label="诊断:" prop="diagnosis" >
|
|
602
|
+ <el-form-item label="诊断:" prop="diagnosis" v-if="org_id != 10721 && org_id != 0">
|
592
|
603
|
<el-select style="margin-right:5px;width:100px;"
|
593
|
604
|
v-model="form.diagnosis" multiple placeholder="">
|
594
|
605
|
<el-option
|
|
@@ -810,7 +821,7 @@
|
810
|
821
|
<el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
|
811
|
822
|
|
812
|
823
|
<el-form-item label="大病类别:" prop="sick_type" >
|
813
|
|
- <el-select style="margin-right:5px;width:100px;"
|
|
824
|
+ <el-select style="margin-right:5px;width:200px;"
|
814
|
825
|
v-model="form.sick_type" placeholder="">
|
815
|
826
|
<el-option
|
816
|
827
|
v-for="(item,index) in sick"
|
|
@@ -821,7 +832,7 @@
|
821
|
832
|
</el-select>
|
822
|
833
|
</el-form-item>
|
823
|
834
|
|
824
|
|
- <el-form-item label="诊断:" prop="diagnosis" >
|
|
835
|
+ <el-form-item label="诊断:" prop="diagnosis" v-if="org_id != 10721 && org_id != 0">
|
825
|
836
|
<el-select style="margin-right:5px;width:100px;"
|
826
|
837
|
v-model="form.diagnosis" multiple placeholder="">
|
827
|
838
|
<el-option
|
|
@@ -922,7 +933,7 @@
|
922
|
933
|
</el-option>
|
923
|
934
|
</el-select>
|
924
|
935
|
|
925
|
|
- <el-select v-if="this.$store.getters.xt_user.org_id != 10721 &&this.$store.getters.xt_user.org_id != 10726 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 0"
|
|
936
|
+ <el-select v-if="this.$store.getters.xt_user.org_id != 10721 &&this.$store.getters.xt_user.org_id != 10726 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217"
|
926
|
937
|
style="width:50%;" v-model="temp_med_type"
|
927
|
938
|
placeholder="医疗类型" @change="changevalue">
|
928
|
939
|
<el-option
|
|
@@ -2787,6 +2798,12 @@ export default {
|
2787
|
2798
|
prescription.order.order_status = prescription.order.order_status.toString()
|
2788
|
2799
|
prescription.order.order_status = parseInt(prescription.order.order_status)
|
2789
|
2800
|
|
|
2801
|
+
|
|
2802
|
+
|
|
2803
|
+ let diass = []
|
|
2804
|
+ for(let i = 0; i < prescription.diagnose.split(",").length;i++){
|
|
2805
|
+ diass.push(parseInt(prescription.diagnose.split(",")[i]))
|
|
2806
|
+ }
|
2790
|
2807
|
const obj = {
|
2791
|
2808
|
id: prescription.id,
|
2792
|
2809
|
name: this.getPName(prescription.med_type, index),
|
|
@@ -2796,7 +2813,8 @@ export default {
|
2796
|
2813
|
order_status: prescription.order_status,
|
2797
|
2814
|
type: prescription.type,
|
2798
|
2815
|
med_type: prescription.med_type,
|
2799
|
|
- order: prescription.order
|
|
2816
|
+ order: prescription.order,
|
|
2817
|
+ diagnoses:diass,
|
2800
|
2818
|
}
|
2801
|
2819
|
// inner_prescription.push(obj)
|
2802
|
2820
|
big_prescriptions[c].prescriptions.push(obj)
|
|
@@ -3375,7 +3393,7 @@ export default {
|
3375
|
3393
|
break
|
3376
|
3394
|
}
|
3377
|
3395
|
},
|
3378
|
|
- open(index, med_type, order, prescriptions) {
|
|
3396
|
+ open(index, med_type, order, prescriptions,diagnosis) {
|
3379
|
3397
|
|
3380
|
3398
|
this.other_prescriptions = prescriptions
|
3381
|
3399
|
|
|
@@ -3521,18 +3539,83 @@ export default {
|
3521
|
3539
|
if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10088 || this.$store.getters.xt_user.org_id == 10278) {
|
3522
|
3540
|
this.$refs.register9504.show()
|
3523
|
3541
|
} else {
|
3524
|
|
- this.$refs.register.show(this.doctors, this.department)
|
3525
|
|
- }
|
3526
|
3542
|
|
|
3543
|
+ if(this.$store.getters.xt_user.org_id == 10721000){
|
|
3544
|
+ var that= this
|
|
3545
|
+ axios.get('http://127.0.0.1:9532/test/net',{}).then(function(response) {
|
|
3546
|
+ if (response.data.state == 0) {
|
|
3547
|
+ // that.$message.error(response.data.data.msg);
|
|
3548
|
+ that.$confirm("请检查医保程序是否有打开", "提示", {
|
|
3549
|
+ confirmButtonText: "确 定",
|
|
3550
|
+ cancelButtonText: "取 消",
|
|
3551
|
+ type: "warning",
|
|
3552
|
+ }).then(() => {
|
|
3553
|
+ var that = this
|
|
3554
|
+ let params={
|
|
3555
|
+ id_card_no: this.patientInfo.id_card_no,
|
|
3556
|
+ admin_user_id:this.$store.getters.xt_user.user.id,
|
|
3557
|
+ }
|
|
3558
|
+ axios.get('http://127.0.0.1:9532/zh/api/patient/info', {
|
|
3559
|
+ params: params,
|
|
3560
|
+ headers: {
|
|
3561
|
+ 'Permission': 5
|
|
3562
|
+ }
|
|
3563
|
+ })
|
|
3564
|
+ .then(function(response) {
|
|
3565
|
+ if (response.data.state == 0) {
|
|
3566
|
+ that.$message.error(response.data.msg)
|
|
3567
|
+ that.loadingone = false
|
|
3568
|
+ return false
|
|
3569
|
+ } else {
|
|
3570
|
+ that.loadingone = false
|
|
3571
|
+ if (response.data.data.failed_code == -10) {
|
|
3572
|
+ // that.$message.error(response.data.data.msg)
|
|
3573
|
+ this.$refs.register.showTwo(this.doctors, this.department,"")
|
|
3574
|
+ } else {
|
|
3575
|
+ this.$refs.register.showTwo(this.doctors, this.department,response.data.data.info)
|
|
3576
|
+ }
|
|
3577
|
+ }
|
|
3578
|
+ })
|
|
3579
|
+ .catch(function(error) {
|
|
3580
|
+ })
|
|
3581
|
+ })
|
|
3582
|
+ .catch(() => {});
|
|
3583
|
+ return false
|
|
3584
|
+ } else {
|
|
3585
|
+
|
|
3586
|
+ }
|
|
3587
|
+ }).catch(function(error) {
|
|
3588
|
+ that.$confirm("数据异常,请检查医保程序是否有打开", "提示", {
|
|
3589
|
+ confirmButtonText: "确 定",
|
|
3590
|
+ cancelButtonText: "取 消",
|
|
3591
|
+ type: "warning",
|
|
3592
|
+ }).then(() => {
|
|
3593
|
+ })
|
|
3594
|
+ .catch(() => {});
|
|
3595
|
+ })
|
|
3596
|
+
|
|
3597
|
+ }else{
|
|
3598
|
+ this.$refs.register.show(this.doctors, this.department)
|
|
3599
|
+ }
|
|
3600
|
+ }
|
3527
|
3601
|
} else if (index == 8) {
|
|
3602
|
+ console.log(diagnosis)
|
|
3603
|
+
|
3528
|
3604
|
var that = this
|
3529
|
|
- if (this.form.diagnosis.length == 0) {
|
3530
|
|
- that.$message.error('诊断不能为空,请选择诊断内容')
|
3531
|
|
- return
|
|
3605
|
+ if(this.org_id == 10721 || this.org_id == 0){
|
|
3606
|
+ if (diagnosis.length == 0) {
|
|
3607
|
+ that.$message.error('当前操作的处方诊断不能为空,请选择诊断内容')
|
|
3608
|
+ return
|
|
3609
|
+ }
|
|
3610
|
+ }else{
|
|
3611
|
+ if (this.form.diagnosis.length == 0) {
|
|
3612
|
+ that.$message.error('诊断不能为空,请选择诊断内容')
|
|
3613
|
+ return
|
|
3614
|
+ }
|
3532
|
3615
|
}
|
3533
|
3616
|
|
3534
|
|
- if (this.form.sick_type.length || this.form.sick_type == 0) {
|
3535
|
3617
|
|
|
3618
|
+ if (this.form.sick_type.length || this.form.sick_type == 0) {
|
3536
|
3619
|
that.$message.error('疾病类型不能为空,请选择疾病类型')
|
3537
|
3620
|
return
|
3538
|
3621
|
}
|
|
@@ -3565,7 +3648,12 @@ export default {
|
3565
|
3648
|
var new_time = time_arr[0] + " " + hh+":"+mf+":"+ss
|
3566
|
3649
|
form['begin_time'] = new_time
|
3567
|
3650
|
form['p_type'] = med_type
|
3568
|
|
- form['diagnosis'] = this.form.diagnosis.join(',')
|
|
3651
|
+
|
|
3652
|
+ if(this.org_id == 10721 || this.org_id == 0){
|
|
3653
|
+ form['diagnosis'] = diagnosis.join(',')
|
|
3654
|
+ }else{
|
|
3655
|
+ form['diagnosis'] = this.form.diagnosis.join(',')
|
|
3656
|
+ }
|
3569
|
3657
|
form['sick_type'] = this.form.sick_type
|
3570
|
3658
|
form['admin_user_id'] = this.$store.getters.xt_user.user.id
|
3571
|
3659
|
form['org_id'] = this.$store.getters.xt_user.org_id
|
|
@@ -3799,7 +3887,7 @@ export default {
|
3799
|
3887
|
}).catch(() => {
|
3800
|
3888
|
})
|
3801
|
3889
|
} else {
|
3802
|
|
- if (this.$store.getters.xt_user.org_id == 10215 && this.order.id > 0) {
|
|
3890
|
+ if (this.order.id > 0) {
|
3803
|
3891
|
this.$message.error('该就诊号尚未撤销明细或者退费无法进行退号操作')
|
3804
|
3892
|
return
|
3805
|
3893
|
}
|
|
@@ -6057,6 +6145,10 @@ export default {
|
6057
|
6145
|
prescription.order.order_status = prescription.order.order_status.toString()
|
6058
|
6146
|
prescription.order.order_status = parseInt(prescription.order.order_status)
|
6059
|
6147
|
|
|
6148
|
+ let diass = []
|
|
6149
|
+ for(let i = 0; i < prescription.diagnose.split(",").length;i++){
|
|
6150
|
+ diass.push(parseInt(prescription.diagnose.split(",")[i]))
|
|
6151
|
+ }
|
6060
|
6152
|
const obj = {
|
6061
|
6153
|
id: prescription.id,
|
6062
|
6154
|
name: this.getPName(prescription.med_type, index),
|
|
@@ -6066,7 +6158,8 @@ export default {
|
6066
|
6158
|
order_status: prescription.order_status,
|
6067
|
6159
|
type: prescription.type,
|
6068
|
6160
|
med_type: prescription.med_type,
|
6069
|
|
- order: prescription.order
|
|
6161
|
+ order: prescription.order,
|
|
6162
|
+ diagnoses:diass,
|
6070
|
6163
|
}
|
6071
|
6164
|
// inner_prescription.push(obj)
|
6072
|
6165
|
big_prescriptions[c].prescriptions.push(obj)
|