|
@@ -46,7 +46,7 @@
|
46
|
46
|
</el-button>
|
47
|
47
|
</div>
|
48
|
48
|
<div>
|
49
|
|
- <el-table :data="patientTableData" :height="tableHeight" border style="width: 100%;"
|
|
49
|
+ <el-table :data="patientTableData" :height="tableHeight" border style="width: 100%;"
|
50
|
50
|
:row-style="{ color: '#303133' }"
|
51
|
51
|
|
52
|
52
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
@@ -61,20 +61,20 @@
|
61
|
61
|
</el-table-column>
|
62
|
62
|
</el-table>
|
63
|
63
|
|
64
|
|
-<!-- <el-table v-else :data="monthChargePatientTableData" :height="tableHeight" border style="width: 100%;"-->
|
65
|
|
-<!-- :row-style="{ color: '#303133' }"-->
|
66
|
|
-
|
67
|
|
-<!-- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
|
68
|
|
-<!-- highlight-current-row ref="tab"-->
|
69
|
|
-<!-- @current-change="handleCurrentChange">-->
|
70
|
|
-<!-- <el-table-column align="center" prop="name" label="姓名" wdith='89'>-->
|
71
|
|
-<!-- <template slot-scope="scope">{{ scope.row.name }}</template>-->
|
72
|
|
-<!-- </el-table-column>-->
|
73
|
|
-<!-- <el-table-column align="center" prop="name" label="就诊号" width="110">-->
|
74
|
|
-<!-- <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}-->
|
75
|
|
-<!-- </template>-->
|
76
|
|
-<!-- </el-table-column>-->
|
77
|
|
-<!-- </el-table>-->
|
|
64
|
+ <!-- <el-table v-else :data="monthChargePatientTableData" :height="tableHeight" border style="width: 100%;"-->
|
|
65
|
+ <!-- :row-style="{ color: '#303133' }"-->
|
|
66
|
+
|
|
67
|
+ <!-- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
|
|
68
|
+ <!-- highlight-current-row ref="tab"-->
|
|
69
|
+ <!-- @current-change="handleCurrentChange">-->
|
|
70
|
+ <!-- <el-table-column align="center" prop="name" label="姓名" wdith='89'>-->
|
|
71
|
+ <!-- <template slot-scope="scope">{{ scope.row.name }}</template>-->
|
|
72
|
+ <!-- </el-table-column>-->
|
|
73
|
+ <!-- <el-table-column align="center" prop="name" label="就诊号" width="110">-->
|
|
74
|
+ <!-- <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}-->
|
|
75
|
+ <!-- </template>-->
|
|
76
|
+ <!-- </el-table-column>-->
|
|
77
|
+ <!-- </el-table>-->
|
78
|
78
|
|
79
|
79
|
</div>
|
80
|
80
|
</div>
|
|
@@ -85,6 +85,22 @@
|
85
|
85
|
|
86
|
86
|
|
87
|
87
|
<div>
|
|
88
|
+<!-- <el-button size="small"-->
|
|
89
|
+<!-- @click="openZb(1)"-->
|
|
90
|
+<!-- type="primary">登记-->
|
|
91
|
+<!-- </el-button>-->
|
|
92
|
+
|
|
93
|
+<!-- <el-button size="small"-->
|
|
94
|
+<!-- @click="openZb(2)"-->
|
|
95
|
+<!-- type="primary">记账-->
|
|
96
|
+<!-- </el-button>-->
|
|
97
|
+
|
|
98
|
+<!-- <el-button size="small"-->
|
|
99
|
+<!-- @click="openZb(3)"-->
|
|
100
|
+<!-- type="primary">撤销记账-->
|
|
101
|
+<!-- </el-button>-->
|
|
102
|
+
|
|
103
|
+
|
88
|
104
|
<el-button v-loading="loadingone" size="small"
|
89
|
105
|
@click="open(6)"
|
90
|
106
|
type="primary">挂号
|
|
@@ -381,10 +397,10 @@
|
381
|
397
|
</el-button>
|
382
|
398
|
|
383
|
399
|
<el-button
|
384
|
|
- v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) || items.curMonthPrescriptions.order.order_status == 1 || items.curMonthPrescriptions.order.order_status == 3"
|
385
|
|
- size="small"
|
386
|
|
- @click="open(4,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
|
387
|
|
- type="primary">收费
|
|
400
|
+ v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) || items.curMonthPrescriptions.order.order_status == 1 || items.curMonthPrescriptions.order.order_status == 3"
|
|
401
|
+ size="small"
|
|
402
|
+ @click="open(4,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
|
|
403
|
+ type="primary">收费
|
388
|
404
|
</el-button>
|
389
|
405
|
</div>
|
390
|
406
|
</div>
|
|
@@ -575,32 +591,32 @@
|
575
|
591
|
type="primary"
|
576
|
592
|
>修改医疗类型
|
577
|
593
|
</el-button>
|
578
|
|
-<!-- <div style="margin-bottom:10px;float: right">-->
|
579
|
|
-<!-- <div>-->
|
580
|
|
-<!-- <el-button-->
|
581
|
|
-<!-- v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0)"-->
|
582
|
|
-<!-- size="small"-->
|
583
|
|
-<!-- @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
|
584
|
|
-<!-- type="primary"-->
|
585
|
|
-<!-- >预结算-->
|
586
|
|
-<!-- </el-button>-->
|
587
|
|
-<!-- <el-button-->
|
588
|
|
-<!-- v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2"-->
|
589
|
|
-<!-- size="small"-->
|
590
|
|
-<!-- @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
|
591
|
|
-<!-- type="primary"-->
|
592
|
|
-<!-- >撤销明细-->
|
593
|
|
-<!-- </el-button>-->
|
594
|
|
-
|
595
|
|
-
|
596
|
|
-<!-- <el-button v-loading="loadingtwo"-->
|
597
|
|
-<!-- v-if="(hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 || items.curPrescriptions.order.order_status == 3"-->
|
598
|
|
-<!-- size="small"-->
|
599
|
|
-<!-- @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"-->
|
600
|
|
-<!-- type="primary">收费-->
|
601
|
|
-<!-- </el-button>-->
|
602
|
|
-<!-- </div>-->
|
603
|
|
-<!-- </div>-->
|
|
594
|
+ <!-- <div style="margin-bottom:10px;float: right">-->
|
|
595
|
+ <!-- <div>-->
|
|
596
|
+ <!-- <el-button-->
|
|
597
|
+ <!-- v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0)"-->
|
|
598
|
+ <!-- size="small"-->
|
|
599
|
+ <!-- @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
|
|
600
|
+ <!-- type="primary"-->
|
|
601
|
+ <!-- >预结算-->
|
|
602
|
+ <!-- </el-button>-->
|
|
603
|
+ <!-- <el-button-->
|
|
604
|
+ <!-- v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2"-->
|
|
605
|
+ <!-- size="small"-->
|
|
606
|
+ <!-- @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
|
|
607
|
+ <!-- type="primary"-->
|
|
608
|
+ <!-- >撤销明细-->
|
|
609
|
+ <!-- </el-button>-->
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+ <!-- <el-button v-loading="loadingtwo"-->
|
|
613
|
+ <!-- v-if="(hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 || items.curPrescriptions.order.order_status == 3"-->
|
|
614
|
+ <!-- size="small"-->
|
|
615
|
+ <!-- @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"-->
|
|
616
|
+ <!-- type="primary">收费-->
|
|
617
|
+ <!-- </el-button>-->
|
|
618
|
+ <!-- </div>-->
|
|
619
|
+ <!-- </div>-->
|
604
|
620
|
</el-tab-pane>
|
605
|
621
|
|
606
|
622
|
|
|
@@ -746,7 +762,8 @@
|
746
|
762
|
width="30%"
|
747
|
763
|
>
|
748
|
764
|
<span>是否修改医疗类型</span>
|
749
|
|
- <el-select v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217" style="width:50%;" v-model="temp_med_type"
|
|
765
|
+ <el-select v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217"
|
|
766
|
+ style="width:50%;" v-model="temp_med_type"
|
750
|
767
|
placeholder="医疗类型" @change="changevalue">
|
751
|
768
|
<el-option
|
752
|
769
|
v-for="(item,index) in registerThree"
|
|
@@ -756,7 +773,8 @@
|
756
|
773
|
</el-option>
|
757
|
774
|
</el-select>
|
758
|
775
|
|
759
|
|
- <el-select v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217" style="width:50%;" v-model="temp_med_type"
|
|
776
|
+ <el-select v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217"
|
|
777
|
+ style="width:50%;" v-model="temp_med_type"
|
760
|
778
|
placeholder="医疗类型" @change="changevalue">
|
761
|
779
|
<el-option
|
762
|
780
|
v-for="(item,index) in register"
|
|
@@ -855,8 +873,7 @@ import {
|
855
|
873
|
Refund,
|
856
|
874
|
refundNumber,
|
857
|
875
|
register,
|
858
|
|
- upload,
|
859
|
|
-
|
|
876
|
+ upload
|
860
|
877
|
} from '@/api/his/his'
|
861
|
878
|
import RegisterDialog from './components/registerDialog'
|
862
|
879
|
import treatPrint from './treatPrint'
|
|
@@ -890,9 +907,9 @@ export default {
|
890
|
907
|
},
|
891
|
908
|
data() {
|
892
|
909
|
return {
|
893
|
|
- monthChargePatientTableData:[],
|
894
|
|
- invoiceVisible:false,
|
895
|
|
- invoiceParams:null,
|
|
910
|
+ monthChargePatientTableData: [],
|
|
911
|
+ invoiceVisible: false,
|
|
912
|
+ invoiceParams: null,
|
896
|
913
|
temp_med_type: '',
|
897
|
914
|
dialogVisible: false,
|
898
|
915
|
pwdFormVisible: false,
|
|
@@ -957,7 +974,6 @@ export default {
|
957
|
974
|
{ value: '1402', label: '门诊特殊病(1402)' },
|
958
|
975
|
{ value: '0', label: '自费' }
|
959
|
976
|
|
960
|
|
-
|
961
|
977
|
],
|
962
|
978
|
register_two: [
|
963
|
979
|
{ value: '11', label: '普通门诊' },
|
|
@@ -986,7 +1002,7 @@ export default {
|
986
|
1002
|
|
987
|
1003
|
other_start_time_two: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
|
988
|
1004
|
other_end_time_two: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
|
989
|
|
- adminUserOptions:[],
|
|
1005
|
+ adminUserOptions: [],
|
990
|
1006
|
curMonthPrescriptions: null,
|
991
|
1007
|
newCurMonthPrescriptions: null,
|
992
|
1008
|
big_month_prescriptions: [],
|
|
@@ -1310,8 +1326,6 @@ export default {
|
1310
|
1326
|
}
|
1311
|
1327
|
})
|
1312
|
1328
|
|
1313
|
|
-
|
1314
|
|
-
|
1315
|
1329
|
},
|
1316
|
1330
|
changeEndTime(val) {
|
1317
|
1331
|
const params = {
|
|
@@ -2673,6 +2687,151 @@ export default {
|
2673
|
2687
|
if (tab == 'more') {
|
2674
|
2688
|
return false
|
2675
|
2689
|
}
|
|
2690
|
+ }, openZb(index) {
|
|
2691
|
+ switch (index) {
|
|
2692
|
+ case 1:
|
|
2693
|
+ if(this.patientInfo.id == 0){
|
|
2694
|
+ this.$message.error("请需要选择挂号的患者")
|
|
2695
|
+ return
|
|
2696
|
+ }
|
|
2697
|
+ if(this.big_prescriptions.length == 0){
|
|
2698
|
+ this.$message.error("处方不能为空")
|
|
2699
|
+ return
|
|
2700
|
+ }
|
|
2701
|
+ if(this.form.diagnosis.length == 0){
|
|
2702
|
+ this.$message.error("诊断不能为空")
|
|
2703
|
+ return
|
|
2704
|
+ }
|
|
2705
|
+ var that = this
|
|
2706
|
+ let obj = {
|
|
2707
|
+ patient_id: this.patientInfo.id,
|
|
2708
|
+ diagnosis_time: this.form.diagnosis_time,
|
|
2709
|
+ record_date: this.record_date,
|
|
2710
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
2711
|
+ org_id: this.$store.getters.xt_user.org_id
|
|
2712
|
+
|
|
2713
|
+ }
|
|
2714
|
+ axios.get(process.env.BASE_API +'/coordinate/register', {
|
|
2715
|
+ params: obj
|
|
2716
|
+ })
|
|
2717
|
+ .then(function(response) {
|
|
2718
|
+ if (response.data.state == 0) {
|
|
2719
|
+ that.$message.error(response.data.msg)
|
|
2720
|
+ that.loadingtwo = false
|
|
2721
|
+ return false
|
|
2722
|
+ } else {
|
|
2723
|
+ if (response.data.data.failed_code == -10) {
|
|
2724
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
2725
|
+ confirmButtonText: '确 定',
|
|
2726
|
+ type: 'warning'
|
|
2727
|
+ }).then(() => {
|
|
2728
|
+
|
|
2729
|
+ }).catch(() => {
|
|
2730
|
+ })
|
|
2731
|
+
|
|
2732
|
+ } else {
|
|
2733
|
+ that.radio = 1
|
|
2734
|
+ that.changeRadioAndPatient(1)
|
|
2735
|
+ that.$message({ message: '挂号成功', type: 'success', duration: 5000 })
|
|
2736
|
+ }
|
|
2737
|
+
|
|
2738
|
+ }
|
|
2739
|
+ })
|
|
2740
|
+ .catch(function(error) {
|
|
2741
|
+
|
|
2742
|
+ })
|
|
2743
|
+
|
|
2744
|
+ break
|
|
2745
|
+ case 2:
|
|
2746
|
+ var that = this
|
|
2747
|
+ var obj2 = {
|
|
2748
|
+ id: this.patientInfo.id,
|
|
2749
|
+ record_time: this.record_date,
|
|
2750
|
+ his_patient_id: this.hisPatientInfo.id,
|
|
2751
|
+ org_id: this.$store.getters.xt_user.org_id,
|
|
2752
|
+ p_type:14,
|
|
2753
|
+
|
|
2754
|
+ }
|
|
2755
|
+ obj2['diagnosis'] = this.form.diagnosis.join(',')
|
|
2756
|
+ obj2['sick_type'] = this.form.sick_type
|
|
2757
|
+ if (this.activeName == 'first') {
|
|
2758
|
+ obj2['settle_accounts_type'] = 1
|
|
2759
|
+ } else if (this.activeName == 'second') {
|
|
2760
|
+ obj2['start_time'] = this.other_start_time
|
|
2761
|
+ obj2['end_time'] = this.other_end_time
|
|
2762
|
+ obj2['settle_accounts_type'] = 2
|
|
2763
|
+ }
|
|
2764
|
+ axios.get(process.env.BASE_API + '/coordinate/opKeepAccounts', {
|
|
2765
|
+ params: obj2
|
|
2766
|
+ })
|
|
2767
|
+ .then(function(response) {
|
|
2768
|
+ if (response.data.state == 0) {
|
|
2769
|
+ that.$message.error(response.data.msg)
|
|
2770
|
+ that.loadingtwo = false
|
|
2771
|
+ return false
|
|
2772
|
+ } else {
|
|
2773
|
+ if (response.data.data.failed_code == -10) {
|
|
2774
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
2775
|
+ confirmButtonText: '确 定',
|
|
2776
|
+ type: 'warning'
|
|
2777
|
+ }).then(() => {
|
|
2778
|
+
|
|
2779
|
+ }).catch(() => {
|
|
2780
|
+ })
|
|
2781
|
+
|
|
2782
|
+ } else {
|
|
2783
|
+ that.radio = 1
|
|
2784
|
+ that.changeRadioAndPatient(1)
|
|
2785
|
+ that.$message({ message: '记账成功', type: 'success', duration: 5000 })
|
|
2786
|
+ }
|
|
2787
|
+
|
|
2788
|
+ }
|
|
2789
|
+ })
|
|
2790
|
+ .catch(function(error) {
|
|
2791
|
+
|
|
2792
|
+ })
|
|
2793
|
+
|
|
2794
|
+ break
|
|
2795
|
+ case 3:
|
|
2796
|
+ var that = this
|
|
2797
|
+ let obj3 = {
|
|
2798
|
+ order_id:this.order.id,
|
|
2799
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
2800
|
+ org_id: this.$store.getters.xt_user.org_id
|
|
2801
|
+ }
|
|
2802
|
+ axios.get(process.env.BASE_API + '/coordinate/opCancelKeepAccounts', {
|
|
2803
|
+ params: obj3
|
|
2804
|
+ })
|
|
2805
|
+ .then(function(response) {
|
|
2806
|
+ if (response.data.state == 0) {
|
|
2807
|
+ that.$message.error(response.data.msg)
|
|
2808
|
+ that.loadingtwo = false
|
|
2809
|
+ return false
|
|
2810
|
+ } else {
|
|
2811
|
+ if (response.data.data.failed_code == -10) {
|
|
2812
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
2813
|
+ confirmButtonText: '确 定',
|
|
2814
|
+ type: 'warning'
|
|
2815
|
+ }).then(() => {
|
|
2816
|
+
|
|
2817
|
+ }).catch(() => {
|
|
2818
|
+ })
|
|
2819
|
+
|
|
2820
|
+ } else {
|
|
2821
|
+ that.radio = 1
|
|
2822
|
+ that.changeRadioAndPatient(1)
|
|
2823
|
+ that.$message({ message: '撤销记账成功', type: 'success', duration: 5000 })
|
|
2824
|
+ }
|
|
2825
|
+
|
|
2826
|
+ }
|
|
2827
|
+ })
|
|
2828
|
+ .catch(function(error) {
|
|
2829
|
+
|
|
2830
|
+ })
|
|
2831
|
+
|
|
2832
|
+ break
|
|
2833
|
+
|
|
2834
|
+ }
|
2676
|
2835
|
},
|
2677
|
2836
|
open(index, med_type, order, prescriptions) {
|
2678
|
2837
|
this.other_prescriptions = prescriptions
|
|
@@ -2937,7 +3096,6 @@ export default {
|
2937
|
3096
|
// this.$refs.print.getInfo(this.order.id)
|
2938
|
3097
|
} else if (index == 10) {
|
2939
|
3098
|
|
2940
|
|
-
|
2941
|
3099
|
if (this.hisPatientInfo.balance_accounts_type == 2) {
|
2942
|
3100
|
this.$confirm('是否退号', '退号', {
|
2943
|
3101
|
confirmButtonText: '确 定',
|
|
@@ -2960,8 +3118,8 @@ export default {
|
2960
|
3118
|
}).catch(() => {
|
2961
|
3119
|
})
|
2962
|
3120
|
} else {
|
2963
|
|
- if(this.$store.getters.xt_user.org_id == 10215 && this.order.id > 0){
|
2964
|
|
- this.$message.error("该就诊号尚未撤销明细或者退费无法进行退号操作")
|
|
3121
|
+ if (this.$store.getters.xt_user.org_id == 10215 && this.order.id > 0) {
|
|
3122
|
+ this.$message.error('该就诊号尚未撤销明细或者退费无法进行退号操作')
|
2965
|
3123
|
return
|
2966
|
3124
|
}
|
2967
|
3125
|
var that = this
|
|
@@ -3058,7 +3216,7 @@ export default {
|
3058
|
3216
|
.catch(function(error) {
|
3059
|
3217
|
})
|
3060
|
3218
|
|
3061
|
|
- } else if(index == 30){
|
|
3219
|
+ } else if (index == 30) {
|
3062
|
3220
|
|
3063
|
3221
|
let paramsObj = {
|
3064
|
3222
|
order_id: this.order.id,
|
|
@@ -3572,11 +3730,11 @@ export default {
|
3572
|
3730
|
num = num.substring(0)
|
3573
|
3731
|
}
|
3574
|
3732
|
return parseFloat(num).toFixed(decimal)
|
3575
|
|
- },getMonthChargePatientList(){
|
|
3733
|
+ }, getMonthChargePatientList() {
|
3576
|
3734
|
let params = {
|
3577
|
3735
|
'record_date': this.record_date,
|
3578
|
|
- 'start_time':this.other_start_time,
|
3579
|
|
- 'end_time':this.other_end_time,
|
|
3736
|
+ 'start_time': this.other_start_time,
|
|
3737
|
+ 'end_time': this.other_end_time
|
3580
|
3738
|
}
|
3581
|
3739
|
getChargeHisPatientList(params).then(response => {
|
3582
|
3740
|
if (response.data.state == 0) {
|
|
@@ -3593,7 +3751,7 @@ export default {
|
3593
|
3751
|
getPatientList() {
|
3594
|
3752
|
let params = {
|
3595
|
3753
|
'record_date': this.record_date,
|
3596
|
|
- 'type': this.radio,
|
|
3754
|
+ 'type': this.radio
|
3597
|
3755
|
}
|
3598
|
3756
|
getChargeHisPatientList(params).then(response => {
|
3599
|
3757
|
if (response.data.state == 0) {
|
|
@@ -4198,7 +4356,7 @@ export default {
|
4198
|
4356
|
} else {
|
4199
|
4357
|
this.form.p_type = 14
|
4200
|
4358
|
this.form.sick_type = this.sick[0].id
|
4201
|
|
- if (response.data.data.last_info.diagnoses.length == 0) {
|
|
4359
|
+ if (response.data.data.last_info.id == 0) {
|
4202
|
4360
|
this.form.diagnosis = []
|
4203
|
4361
|
} else {
|
4204
|
4362
|
for (let i = 0; i < response.data.data.last_info.diagnosis.split(',').length; i++) {
|