|
@@ -638,10 +638,12 @@
|
638
|
638
|
title="提示"
|
639
|
639
|
:visible.sync="dialogVisible"
|
640
|
640
|
width="30%"
|
641
|
|
- >
|
|
641
|
+ >
|
642
|
642
|
<span>是否修改医疗类型</span>
|
643
|
643
|
|
644
|
|
- <el-select style="width:50%;" v-model="temp_med_type" placeholder="医疗类型" v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" @change="changevalue" >
|
|
644
|
+ <el-select style="width:50%;" v-model="temp_med_type" placeholder="医疗类型"
|
|
645
|
+ v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)"
|
|
646
|
+ @change="changevalue">
|
645
|
647
|
<el-option
|
646
|
648
|
v-for="(item,index) in medical_care"
|
647
|
649
|
:key="index"
|
|
@@ -649,7 +651,7 @@
|
649
|
651
|
:value="item.value">
|
650
|
652
|
</el-option>
|
651
|
653
|
</el-select>
|
652
|
|
- <el-select style="width:50%;" v-model="temp_med_type" placeholder="医疗类型" v-else @change="changevalue" >
|
|
654
|
+ <el-select style="width:50%;" v-model="temp_med_type" placeholder="医疗类型" v-else @change="changevalue">
|
653
|
655
|
<el-option
|
654
|
656
|
v-for="(item,index) in register"
|
655
|
657
|
:key="index"
|
|
@@ -713,6 +715,7 @@
|
713
|
715
|
import additionalCharges from './components/additionalCharges'
|
714
|
716
|
import { getPatientInformation, getPatientList } from '@/api/project/project'
|
715
|
717
|
import {
|
|
718
|
+ changeMedType,
|
716
|
719
|
getChargeHisPatientInfo,
|
717
|
720
|
getChargeHisPatientList,
|
718
|
721
|
getDayOrMonthHisPrescription,
|
|
@@ -720,11 +723,10 @@
|
720
|
723
|
getSchedulePatientList,
|
721
|
724
|
preSettle,
|
722
|
725
|
Refund,
|
|
726
|
+ refunddetail,
|
723
|
727
|
refundNumber,
|
724
|
728
|
register,
|
725
|
|
- upload,
|
726
|
|
- changeMedType,
|
727
|
|
- refunddetail
|
|
729
|
+ upload
|
728
|
730
|
} from '@/api/his/his'
|
729
|
731
|
import RegisterDialog from './components/registerDialog'
|
730
|
732
|
import treatPrint from './treatPrint'
|
|
@@ -756,8 +758,8 @@
|
756
|
758
|
},
|
757
|
759
|
data() {
|
758
|
760
|
return {
|
759
|
|
- temp_med_type:"",
|
760
|
|
- dialogVisible:false,
|
|
761
|
+ temp_med_type: '',
|
|
762
|
+ dialogVisible: false,
|
761
|
763
|
form: {
|
762
|
764
|
p_type: '',
|
763
|
765
|
sick_type: '',
|
|
@@ -780,8 +782,8 @@
|
780
|
782
|
{ value: 18, label: '预防接种' },
|
781
|
783
|
{ value: 19, label: '门诊输血' },
|
782
|
784
|
{ value: 91, label: '新冠肺炎门诊' },
|
783
|
|
- {value: 1111, label: "精一"},
|
784
|
|
- {value: 1112, label: "精二"},
|
|
785
|
+ { value: 1111, label: '精一' },
|
|
786
|
+ { value: 1112, label: '精二' }
|
785
|
787
|
],
|
786
|
788
|
|
787
|
789
|
medical_care_two: [
|
|
@@ -795,8 +797,8 @@
|
795
|
797
|
{ value: '18', label: '预防接种' },
|
796
|
798
|
{ value: '19', label: '门诊输血' },
|
797
|
799
|
{ value: '91', label: '新冠肺炎门诊' },
|
798
|
|
- {value: '1111', label: "精一"},
|
799
|
|
- {value: '1112', label: "精二"},
|
|
800
|
+ { value: '1111', label: '精一' },
|
|
801
|
+ { value: '1112', label: '精二' }
|
800
|
802
|
],
|
801
|
803
|
|
802
|
804
|
register: [
|
|
@@ -897,9 +899,9 @@
|
897
|
899
|
department: [],
|
898
|
900
|
all_patient: [],
|
899
|
901
|
|
900
|
|
- temp_prescriptions:null,
|
|
902
|
+ temp_prescriptions: null,
|
901
|
903
|
|
902
|
|
- temp_ids:"",
|
|
904
|
+ temp_ids: ''
|
903
|
905
|
|
904
|
906
|
}
|
905
|
907
|
},
|
|
@@ -922,11 +924,11 @@
|
922
|
924
|
this.getPatientList()
|
923
|
925
|
},
|
924
|
926
|
methods: {
|
925
|
|
- openDialog(item){
|
|
927
|
+ openDialog(item) {
|
926
|
928
|
this.dialogVisible = true
|
927
|
929
|
this.temp_prescriptions = item
|
928
|
930
|
},
|
929
|
|
- comfirmChangeMedType(){
|
|
931
|
+ comfirmChangeMedType() {
|
930
|
932
|
let params = {
|
931
|
933
|
id: this.temp_prescriptions.id,
|
932
|
934
|
med_type: this.temp_med_type.toString()
|
|
@@ -936,13 +938,11 @@
|
936
|
938
|
this.changeRadioAndPatient(1)
|
937
|
939
|
this.dialogVisible = false
|
938
|
940
|
|
939
|
|
-
|
940
|
941
|
} else {
|
941
|
942
|
this.$message.error(response.data.msg)
|
942
|
943
|
}
|
943
|
944
|
})
|
944
|
945
|
|
945
|
|
-
|
946
|
946
|
},
|
947
|
947
|
changevalue(val) {
|
948
|
948
|
this.$forceUpdate()
|
|
@@ -1032,7 +1032,7 @@
|
1032
|
1032
|
form['org_id'] = this.$store.getters.xt_user.org_id
|
1033
|
1033
|
|
1034
|
1034
|
form['p_type'] = this.current_med_type
|
1035
|
|
- form['diagnosis'] = this.form.diagnosis.join(",")
|
|
1035
|
+ form['diagnosis'] = this.form.diagnosis.join(',')
|
1036
|
1036
|
form['sick_type'] = this.form.sick_type
|
1037
|
1037
|
form['ids'] = this.temp_ids
|
1038
|
1038
|
if (this.activeName == 'first') {
|
|
@@ -2719,7 +2719,7 @@
|
2719
|
2719
|
|
2720
|
2720
|
} else if (index == 8) {
|
2721
|
2721
|
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) {
|
2722
|
|
- if (this.form.diagnosis.length == 0) {
|
|
2722
|
+ if (this.form.diagnosis.length == 0) {
|
2723
|
2723
|
that.$message.error('诊断不能为空,请选择诊断内容')
|
2724
|
2724
|
return
|
2725
|
2725
|
}
|
|
@@ -2738,7 +2738,7 @@
|
2738
|
2738
|
form['record_time'] = this.record_date
|
2739
|
2739
|
|
2740
|
2740
|
form['p_type'] = med_type
|
2741
|
|
- form['diagnosis'] = this.form.diagnosis.join(",")
|
|
2741
|
+ form['diagnosis'] = this.form.diagnosis.join(',')
|
2742
|
2742
|
form['sick_type'] = this.form.sick_type
|
2743
|
2743
|
|
2744
|
2744
|
form['admin_user_id'] = this.$store.getters.xt_user.user.id
|
|
@@ -4265,19 +4265,17 @@
|
4265
|
4265
|
if (this.info.id > 0) {
|
4266
|
4266
|
this.form.p_type = response.data.data.info.register_type
|
4267
|
4267
|
this.form.sick_type = response.data.data.info.sick_type
|
4268
|
|
- if(response.data.data.info.diagnosis.length == 0){
|
|
4268
|
+ if (response.data.data.info.diagnosis.length == 0) {
|
4269
|
4269
|
|
4270
|
4270
|
this.form.diagnosis = []
|
4271
|
4271
|
|
4272
|
|
- }else{
|
|
4272
|
+ } else {
|
4273
|
4273
|
|
4274
|
|
- for(let i = 0; i < response.data.data.info.diagnosis.split(",").length; i++){
|
4275
|
|
- this.form.diagnosis.push(parseInt(response.data.data.info.diagnosis.split(",")[i]))
|
|
4274
|
+ for (let i = 0; i < response.data.data.info.diagnosis.split(",").length; i++) {
|
|
4275
|
+ this.form.diagnosis.push(parseInt(response.data.data.info.diagnosis.split(',')[i]))
|
4276
|
4276
|
|
4277
|
4277
|
}
|
4278
|
4278
|
|
4279
|
|
-
|
4280
|
|
-
|
4281
|
4279
|
}
|
4282
|
4280
|
this.sick_history = this.info.sick_history
|
4283
|
4281
|
if (this.info.register_type == 0) {
|
|
@@ -4290,12 +4288,12 @@
|
4290
|
4288
|
} else {
|
4291
|
4289
|
this.form.p_type = 14
|
4292
|
4290
|
this.form.sick_type = this.sick[0].id
|
4293
|
|
- if(response.data.data.last_info.diagnoses.length == 0){
|
4294
|
|
- this.form.diagnosis=[]
|
|
4291
|
+ if (response.data.data.last_info.diagnoses.length == 0) {
|
|
4292
|
+ this.form.diagnosis = []
|
4295
|
4293
|
|
4296
|
|
- }else{
|
4297
|
|
- for(let i = 0; i < response.data.data.last_info.diagnosis.split(",").length; i++){
|
4298
|
|
- this.form.diagnosis.push(parseInt(response.data.data.last_info.diagnosis.split(",")[i]))
|
|
4294
|
+ } else {
|
|
4295
|
+ for (let i = 0; i < response.data.data.last_info.diagnosis.split(",").length; i++) {
|
|
4296
|
+ this.form.diagnosis.push(parseInt(response.data.data.last_info.diagnosis.split(',')[i]))
|
4299
|
4297
|
}
|
4300
|
4298
|
}
|
4301
|
4299
|
|
|
@@ -4506,7 +4504,7 @@
|
4506
|
4504
|
}
|
4507
|
4505
|
|
4508
|
4506
|
params['p_type'] = med_type
|
4509
|
|
- params['diagnosis'] = this.form.diagnosis.join(",")
|
|
4507
|
+ params['diagnosis'] = this.form.diagnosis.join(',')
|
4510
|
4508
|
|
4511
|
4509
|
axios.get('http://127.0.0.1:9532/sz/api/upload/get', {
|
4512
|
4510
|
params: params,
|
|
@@ -4537,11 +4535,11 @@
|
4537
|
4535
|
this.currentOrder = order
|
4538
|
4536
|
this.current_med_type = med_type
|
4539
|
4537
|
|
4540
|
|
- var ids = []
|
4541
|
|
- for(let i = 0;i < prescriptions.length; i++){
|
4542
|
|
- ids.push(prescriptions[i].id)
|
|
4538
|
+ var ids = []
|
|
4539
|
+ for (let i = 0; i < prescriptions.length; i++) {
|
|
4540
|
+ ids.push(prescriptions[i].id)
|
4543
|
4541
|
}
|
4544
|
|
- var ids_str = ids.join(",")
|
|
4542
|
+ var ids_str = ids.join(',')
|
4545
|
4543
|
this.temp_ids = ids_str
|
4546
|
4544
|
|
4547
|
4545
|
if (this.activeName == 'first') {
|
|
@@ -4650,42 +4648,42 @@
|
4650
|
4648
|
})
|
4651
|
4649
|
break
|
4652
|
4650
|
case 7:
|
4653
|
|
- if (this.hisPatientInfo.balance_accounts_type != 2) {
|
4654
|
|
- var that = this
|
4655
|
|
- axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
|
4656
|
|
- params: {
|
4657
|
|
- order_id: this.order.id,
|
4658
|
|
- record_time: this.record_date,
|
4659
|
|
- admin_user_id: this.$store.getters.xt_user.user.id,
|
4660
|
|
- patient_id: this.patientInfo.id
|
|
4651
|
+ if (this.hisPatientInfo.balance_accounts_type != 2) {
|
|
4652
|
+ var that = this
|
|
4653
|
+ axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
|
|
4654
|
+ params: {
|
|
4655
|
+ order_id: this.order.id,
|
|
4656
|
+ record_time: this.record_date,
|
|
4657
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
4658
|
+ patient_id: this.patientInfo.id
|
4661
|
4659
|
|
4662
|
|
- }
|
4663
|
|
- })
|
4664
|
|
- .then(function(response) {
|
4665
|
|
- if (response.data.state == 0) {
|
4666
|
|
- that.$message.error(response.data.msg)
|
4667
|
|
- return false
|
4668
|
|
- } else {
|
4669
|
|
- if (response.data.data.failed_code == -10) {
|
|
4660
|
+ }
|
|
4661
|
+ })
|
|
4662
|
+ .then(function(response) {
|
|
4663
|
+ if (response.data.state == 0) {
|
|
4664
|
+ that.$message.error(response.data.msg)
|
|
4665
|
+ return false
|
|
4666
|
+ } else {
|
|
4667
|
+ if (response.data.data.failed_code == -10) {
|
4670
|
4668
|
|
4671
|
|
- that.$confirm(response.data.data.msg, '医保错误信息', {
|
4672
|
|
- confirmButtonText: '确 定',
|
4673
|
|
- type: 'warning'
|
4674
|
|
- }).then(() => {
|
|
4669
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
4670
|
+ confirmButtonText: '确 定',
|
|
4671
|
+ type: 'warning'
|
|
4672
|
+ }).then(() => {
|
4675
|
4673
|
|
4676
|
|
- }).catch(() => {
|
4677
|
|
- })
|
|
4674
|
+ }).catch(() => {
|
|
4675
|
+ })
|
4678
|
4676
|
|
4679
|
|
- } else {
|
4680
|
|
- that.$message({ message: '明细撤销成功', type: 'success' })
|
4681
|
|
- that.changeRadioAndPatient(1)
|
|
4677
|
+ } else {
|
|
4678
|
+ that.$message({ message: '明细撤销成功', type: 'success' })
|
|
4679
|
+ that.changeRadioAndPatient(1)
|
|
4680
|
+ }
|
4682
|
4681
|
}
|
4683
|
|
- }
|
4684
|
|
- })
|
4685
|
|
- .catch(function(error) {
|
4686
|
|
- })
|
4687
|
|
- }else{
|
4688
|
|
- let params = {
|
|
4682
|
+ })
|
|
4683
|
+ .catch(function(error) {
|
|
4684
|
+ })
|
|
4685
|
+ } else {
|
|
4686
|
+ let params = {
|
4689
|
4687
|
order_id: this.order.id,
|
4690
|
4688
|
record_time: this.record_date,
|
4691
|
4689
|
admin_user_id: this.$store.getters.xt_user.user.id,
|
|
@@ -4693,25 +4691,25 @@
|
4693
|
4691
|
}
|
4694
|
4692
|
|
4695
|
4693
|
refunddetail(params).then(response => {
|
4696
|
|
- if (response.data.state == 0) {
|
4697
|
|
- this.$message.error(response.data.msg)
|
4698
|
|
- this.loadingtwo = false
|
4699
|
|
- return false
|
4700
|
|
- } else {
|
4701
|
|
- this.changeRadioAndPatient(1)
|
4702
|
|
- this.$message({ message: '撤销明细成功', type: 'success' })
|
4703
|
|
- }
|
4704
|
|
- })
|
|
4694
|
+ if (response.data.state == 0) {
|
|
4695
|
+ this.$message.error(response.data.msg)
|
|
4696
|
+ this.loadingtwo = false
|
|
4697
|
+ return false
|
|
4698
|
+ } else {
|
|
4699
|
+ this.changeRadioAndPatient(1)
|
|
4700
|
+ this.$message({ message: '撤销明细成功', type: 'success' })
|
|
4701
|
+ }
|
|
4702
|
+ })
|
4705
|
4703
|
|
4706
|
|
- }
|
|
4704
|
+ }
|
4707
|
4705
|
|
4708
|
4706
|
break
|
4709
|
4707
|
case 8:
|
4710
|
4708
|
var ids = []
|
4711
|
|
- for(let i = 0;i < prescriptions.length; i++){
|
4712
|
|
- ids.push(prescriptions[i].id)
|
|
4709
|
+ for (let i = 0; i < prescriptions.length; i++) {
|
|
4710
|
+ ids.push(prescriptions[i].id)
|
4713
|
4711
|
}
|
4714
|
|
- var ids_str = ids.join(",")
|
|
4712
|
+ var ids_str = ids.join(',')
|
4715
|
4713
|
|
4716
|
4714
|
if (this.hisPatientInfo.balance_accounts_type == 2) {
|
4717
|
4715
|
|
|
@@ -4728,7 +4726,7 @@
|
4728
|
4726
|
form['org_id'] = this.$store.getters.xt_user.org_id
|
4729
|
4727
|
form['ids'] = ids_str
|
4730
|
4728
|
form['p_type'] = med_type
|
4731
|
|
- form['diagnosis'] = this.form.diagnosis.join(",")
|
|
4729
|
+ form['diagnosis'] = this.form.diagnosis.join(',')
|
4732
|
4730
|
form['sick_type'] = this.form.sick_type
|
4733
|
4731
|
|
4734
|
4732
|
if (this.activeName == 'first') {
|
|
@@ -4754,7 +4752,6 @@
|
4754
|
4752
|
|
4755
|
4753
|
} else {
|
4756
|
4754
|
|
4757
|
|
-
|
4758
|
4755
|
var that = this
|
4759
|
4756
|
let form = {}
|
4760
|
4757
|
form['id'] = this.patientInfo.id
|
|
@@ -4764,7 +4761,7 @@
|
4764
|
4761
|
form['org_id'] = this.$store.getters.xt_user.org_id
|
4765
|
4762
|
|
4766
|
4763
|
form['p_type'] = med_type
|
4767
|
|
- form['diagnosis'] = this.form.diagnosis.join(",")
|
|
4764
|
+ form['diagnosis'] = this.form.diagnosis.join(',')
|
4768
|
4765
|
form['sick_type'] = this.form.sick_type
|
4769
|
4766
|
|
4770
|
4767
|
if (this.activeName == 'first') {
|