|
@@ -1022,7 +1022,7 @@ import RegisterDialog9504 from './components/registerDialog9504'
|
1022
|
1022
|
import cryptoJs from 'crypto-js'
|
1023
|
1023
|
import NewStatementPrintThree from './newStatementPrintThree.vue'
|
1024
|
1024
|
import CallUnAssociationPrescription from './components/callUnAssociationPrescription.vue'
|
1025
|
|
-import { associationprescription, checkHISPatient } from '../../api/his/his_tools'
|
|
1025
|
+// import { associationprescription, checkHISPatient } from '../../api/his/his_tools'
|
1026
|
1026
|
|
1027
|
1027
|
const moment = require('moment')
|
1028
|
1028
|
export default {
|
|
@@ -2079,6 +2079,7 @@ export default {
|
2079
|
2079
|
})
|
2080
|
2080
|
|
2081
|
2081
|
},
|
|
2082
|
+ // 1号
|
2082
|
2083
|
getDayPatientList() {
|
2083
|
2084
|
|
2084
|
2085
|
let params = {
|
|
@@ -2303,6 +2304,7 @@ export default {
|
2303
|
2304
|
})
|
2304
|
2305
|
|
2305
|
2306
|
},
|
|
2307
|
+ // 2号
|
2306
|
2308
|
getMonthPatientList() {
|
2307
|
2309
|
let params = {
|
2308
|
2310
|
'record_date': this.record_date,
|
|
@@ -2748,15 +2750,18 @@ export default {
|
2748
|
2750
|
}
|
2749
|
2751
|
|
2750
|
2752
|
},
|
|
2753
|
+ // 搜索
|
2751
|
2754
|
searchAction() {
|
|
2755
|
+ const all_patient =this.all_patient
|
2752
|
2756
|
if (this.search_input.length == 0) {
|
2753
|
2757
|
this.patientTableData = this.all_patient
|
2754
|
|
-
|
2755
|
2758
|
} else {
|
2756
|
|
-
|
|
2759
|
+ console.log('6666666',all_patient);
|
2757
|
2760
|
let arr = []
|
2758
|
|
- for (let i = 0; i < this.all_patient.length; i++) {
|
2759
|
|
- if (this.all_patient[i].name.indexOf(this.search_input) != -1 || this.all_patient[i].number.indexOf(this.search_input) != -1) {
|
|
2761
|
+ for (let i = 0; i < all_patient.length; i++) {
|
|
2762
|
+ if (all_patient[i].name.indexOf(this.search_input) != -1 ||
|
|
2763
|
+ all_patient[i].number.indexOf(this.search_input) != -1 ||
|
|
2764
|
+ all_patient[i].first_letter.indexOf(this.search_input) != -1) {
|
2760
|
2765
|
arr = arr.concat(this.all_patient[i])
|
2761
|
2766
|
}
|
2762
|
2767
|
}
|
|
@@ -3942,6 +3947,7 @@ export default {
|
3942
|
3947
|
this.radioStatus = id
|
3943
|
3948
|
this.getPatientList()
|
3944
|
3949
|
},
|
|
3950
|
+ // 3号
|
3945
|
3951
|
changeRadioAndPatient(id) {
|
3946
|
3952
|
this.radio = id
|
3947
|
3953
|
let params = {
|
|
@@ -3949,7 +3955,6 @@ export default {
|
3949
|
3955
|
'sch_type':this.sch_type,
|
3950
|
3956
|
|
3951
|
3957
|
}
|
3952
|
|
-
|
3953
|
3958
|
getChargeHisPatientList(params).then(response => {
|
3954
|
3959
|
if (response.data.state == 0) {
|
3955
|
3960
|
this.$message.error(response.data.msg)
|
|
@@ -3962,6 +3967,7 @@ export default {
|
3962
|
3967
|
let one_count = 0
|
3963
|
3968
|
let two_count = 0
|
3964
|
3969
|
let three_count = 0
|
|
3970
|
+ console.log('111111111',response.data.data);
|
3965
|
3971
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
3966
|
3972
|
if (response.data.data.list[i].his_patient.length == 0) { //没挂号
|
3967
|
3973
|
if (response.data.data.list[i].prescription.length > 0) {
|
|
@@ -4196,9 +4202,12 @@ export default {
|
4196
|
4202
|
}
|
4197
|
4203
|
}
|
4198
|
4204
|
})
|
4199
|
|
- },changeSchtype(){
|
|
4205
|
+ },
|
|
4206
|
+ changeSchtype(){
|
4200
|
4207
|
this.getPatientList()
|
4201
|
|
- },changeScheduleType(val){
|
|
4208
|
+ },
|
|
4209
|
+ // 4号
|
|
4210
|
+ changeScheduleType(val){
|
4202
|
4211
|
this.sch_type = val
|
4203
|
4212
|
let params = {
|
4204
|
4213
|
'record_date': this.record_date,
|
|
@@ -4426,8 +4435,6 @@ export default {
|
4426
|
4435
|
}
|
4427
|
4436
|
})
|
4428
|
4437
|
|
4429
|
|
-
|
4430
|
|
-
|
4431
|
4438
|
let params2 = {
|
4432
|
4439
|
'record_date': this.record_date,
|
4433
|
4440
|
'type': 1,
|
|
@@ -4656,6 +4663,7 @@ export default {
|
4656
|
4663
|
|
4657
|
4664
|
|
4658
|
4665
|
},
|
|
4666
|
+ // 单击单选框患者数据源
|
4659
|
4667
|
changeRadio(id) {
|
4660
|
4668
|
if(this.activeName == 'first') {
|
4661
|
4669
|
let temp_id = id
|
|
@@ -4676,6 +4684,7 @@ export default {
|
4676
|
4684
|
let one_count = 0
|
4677
|
4685
|
let two_count = 0
|
4678
|
4686
|
let three_count = 0
|
|
4687
|
+ console.log('11111111111111111',response.data.data);
|
4679
|
4688
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
4680
|
4689
|
if (response.data.data.list[i].his_patient.length == 0) { //没挂号
|
4681
|
4690
|
if (response.data.data.list[i].prescription.length > 0) {
|
|
@@ -4686,7 +4695,8 @@ export default {
|
4686
|
4695
|
order_status: 0,
|
4687
|
4696
|
order_number: '',
|
4688
|
4697
|
his_patient_id: 0,
|
4689
|
|
- prescription: response.data.data.list[i].prescription
|
|
4698
|
+ prescription: response.data.data.list[i].prescription,
|
|
4699
|
+ first_letter:response.data.data.list[i].first_letter
|
4690
|
4700
|
}
|
4691
|
4701
|
|
4692
|
4702
|
this.all_table_data.push(obj)
|
|
@@ -4704,7 +4714,8 @@ export default {
|
4704
|
4714
|
his_patient_id: response.data.data.list[i].his_patient[0].id,
|
4705
|
4715
|
order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
|
4706
|
4716
|
order_id: response.data.data.list[i].his_patient[0].orders[b].id,
|
4707
|
|
- prescription: response.data.data.list[i].prescription
|
|
4717
|
+ prescription: response.data.data.list[i].prescription,
|
|
4718
|
+ first_letter:response.data.data.list[i].first_letter
|
4708
|
4719
|
|
4709
|
4720
|
}
|
4710
|
4721
|
this.all_table_data.push(obj)
|
|
@@ -4719,8 +4730,8 @@ export default {
|
4719
|
4730
|
his_patient_id: response.data.data.list[i].his_patient[0].id,
|
4720
|
4731
|
order_number: '',
|
4721
|
4732
|
order_id: 0,
|
4722
|
|
- prescription: response.data.data.list[i].prescription
|
4723
|
|
-
|
|
4733
|
+ prescription: response.data.data.list[i].prescription,
|
|
4734
|
+ first_letter:response.data.data.list[i].first_letter
|
4724
|
4735
|
}
|
4725
|
4736
|
this.all_table_data.push(obj)
|
4726
|
4737
|
|
|
@@ -4738,7 +4749,8 @@ export default {
|
4738
|
4749
|
his_patient_id: response.data.data.list[i].his_patient[b].id,
|
4739
|
4750
|
order_number: '',
|
4740
|
4751
|
order_id: 0,
|
4741
|
|
- prescription: response.data.data.list[i].prescription
|
|
4752
|
+ prescription: response.data.data.list[i].prescription,
|
|
4753
|
+ first_letter:response.data.data.list[i].first_letter
|
4742
|
4754
|
}
|
4743
|
4755
|
this.all_table_data.push(obj)
|
4744
|
4756
|
} else {
|
|
@@ -4752,8 +4764,8 @@ export default {
|
4752
|
4764
|
his_patient_id: response.data.data.list[i].his_patient[b].id,
|
4753
|
4765
|
order_number: response.data.data.list[i].his_patient[b].orders[c].number,
|
4754
|
4766
|
order_id: response.data.data.list[i].his_patient[b].orders[c].id,
|
4755
|
|
- prescription: response.data.data.list[i].prescription
|
4756
|
|
-
|
|
4767
|
+ prescription: response.data.data.list[i].prescription,
|
|
4768
|
+ first_letter:response.data.data.list[i].first_letter
|
4757
|
4769
|
}
|
4758
|
4770
|
this.all_table_data.push(obj)
|
4759
|
4771
|
}
|
|
@@ -4814,7 +4826,7 @@ export default {
|
4814
|
4826
|
this.all_table_data = this.unique_four(this.all_table_data)
|
4815
|
4827
|
}
|
4816
|
4828
|
|
4817
|
|
- console.log(this.all_table_data)
|
|
4829
|
+ console.log('yyyyy',this.all_table_data)
|
4818
|
4830
|
|
4819
|
4831
|
switch (this.radio) {
|
4820
|
4832
|
case 1:
|
|
@@ -4897,7 +4909,8 @@ export default {
|
4897
|
4909
|
num = num.substring(0)
|
4898
|
4910
|
}
|
4899
|
4911
|
return parseFloat(num).toFixed(decimal)
|
4900
|
|
- }, getMonthChargePatientList() {
|
|
4912
|
+ },
|
|
4913
|
+ getMonthChargePatientList() {
|
4901
|
4914
|
let params = {
|
4902
|
4915
|
'record_date': this.record_date,
|
4903
|
4916
|
'start_time': this.other_start_time,
|
|
@@ -4914,7 +4927,7 @@ export default {
|
4914
|
4927
|
})
|
4915
|
4928
|
|
4916
|
4929
|
},
|
4917
|
|
- //患者列表
|
|
4930
|
+ //未收费患者列表
|
4918
|
4931
|
getPatientList() {
|
4919
|
4932
|
let params = {
|
4920
|
4933
|
'record_date': this.record_date,
|
|
@@ -4933,6 +4946,7 @@ export default {
|
4933
|
4946
|
let one_count = 0
|
4934
|
4947
|
let two_count = 0
|
4935
|
4948
|
let three_count = 0
|
|
4949
|
+ console.log('vvvvvvvvvvvvv',response.data.data);
|
4936
|
4950
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
4937
|
4951
|
if (response.data.data.list[i].his_patient.length == 0) { //没挂号
|
4938
|
4952
|
if (response.data.data.list[i].prescription.length > 0) {
|
|
@@ -4944,7 +4958,8 @@ export default {
|
4944
|
4958
|
order_number: '',
|
4945
|
4959
|
his_patient_id: 0,
|
4946
|
4960
|
prescription: response.data.data.list[i].prescription,
|
4947
|
|
- schedle: response.data.data.list[i].schedule
|
|
4961
|
+ schedle: response.data.data.list[i].schedule,
|
|
4962
|
+ first_letter:response.data.data.list[i].first_letter
|
4948
|
4963
|
|
4949
|
4964
|
}
|
4950
|
4965
|
|
|
@@ -4964,8 +4979,8 @@ export default {
|
4964
|
4979
|
order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
|
4965
|
4980
|
order_id: response.data.data.list[i].his_patient[0].orders[b].id,
|
4966
|
4981
|
prescription: response.data.data.list[i].prescription,
|
4967
|
|
- schedle: response.data.data.list[i].schedule
|
4968
|
|
-
|
|
4982
|
+ schedle: response.data.data.list[i].schedule,
|
|
4983
|
+ first_letter:response.data.data.list[i].first_letter
|
4969
|
4984
|
|
4970
|
4985
|
}
|
4971
|
4986
|
this.all_table_data.push(obj)
|
|
@@ -4981,8 +4996,8 @@ export default {
|
4981
|
4996
|
order_number: '',
|
4982
|
4997
|
order_id: 0,
|
4983
|
4998
|
prescription: response.data.data.list[i].prescription,
|
4984
|
|
- schedle: response.data.data.list[i].schedule
|
4985
|
|
-
|
|
4999
|
+ schedle: response.data.data.list[i].schedule,
|
|
5000
|
+ first_letter:response.data.data.list[i].first_letter
|
4986
|
5001
|
|
4987
|
5002
|
}
|
4988
|
5003
|
this.all_table_data.push(obj)
|
|
@@ -5002,7 +5017,8 @@ export default {
|
5002
|
5017
|
order_number: '',
|
5003
|
5018
|
order_id: 0,
|
5004
|
5019
|
prescription: response.data.data.list[i].prescription,
|
5005
|
|
- schedle: response.data.data.list[i].schedule
|
|
5020
|
+ schedle: response.data.data.list[i].schedule,
|
|
5021
|
+ first_letter:response.data.data.list[i].first_letter
|
5006
|
5022
|
}
|
5007
|
5023
|
this.all_table_data.push(obj)
|
5008
|
5024
|
} else {
|
|
@@ -5017,8 +5033,8 @@ export default {
|
5017
|
5033
|
order_number: response.data.data.list[i].his_patient[b].orders[c].number,
|
5018
|
5034
|
order_id: response.data.data.list[i].his_patient[b].orders[c].id,
|
5019
|
5035
|
prescription: response.data.data.list[i].prescription,
|
5020
|
|
- schedle: response.data.data.list[i].schedule
|
5021
|
|
-
|
|
5036
|
+ schedle: response.data.data.list[i].schedule,
|
|
5037
|
+ first_letter:response.data.data.list[i].first_letter
|
5022
|
5038
|
|
5023
|
5039
|
}
|
5024
|
5040
|
this.all_table_data.push(obj)
|
|
@@ -5089,7 +5105,7 @@ export default {
|
5089
|
5105
|
this.all_table_data = this.unique_four(this.all_table_data)
|
5090
|
5106
|
}
|
5091
|
5107
|
|
5092
|
|
-
|
|
5108
|
+ console.log('zzzzzz',this.all_table_data);
|
5093
|
5109
|
switch (this.radio) {
|
5094
|
5110
|
case 1:
|
5095
|
5111
|
this.patientTableData = []
|
|
@@ -5142,6 +5158,7 @@ export default {
|
5142
|
5158
|
}
|
5143
|
5159
|
})
|
5144
|
5160
|
},
|
|
5161
|
+ // 5号
|
5145
|
5162
|
getMonthHISPatientList() {
|
5146
|
5163
|
let params = {
|
5147
|
5164
|
'record_date': this.record_date,
|
|
@@ -5712,12 +5729,6 @@ export default {
|
5712
|
5729
|
}
|
5713
|
5730
|
}
|
5714
|
5731
|
}
|
5715
|
|
-
|
5716
|
|
-
|
5717
|
|
-
|
5718
|
|
-
|
5719
|
|
-
|
5720
|
|
-
|
5721
|
5732
|
this.sick_history = this.info.sick_history
|
5722
|
5733
|
if (this.info.register_type == 0) {
|
5723
|
5734
|
this.form.p_type = ''
|
|
@@ -5852,8 +5863,7 @@ export default {
|
5852
|
5863
|
// tempAddition.push(obj)
|
5853
|
5864
|
// }
|
5854
|
5865
|
const index = i + 1
|
5855
|
|
- console.log('~~~~~~~~')
|
5856
|
|
- console.log(prescription.order)
|
|
5866
|
+ console.log('~~~~~~~~',prescription.order)
|
5857
|
5867
|
prescription.order.order_status = prescription.order.order_status.toString()
|
5858
|
5868
|
prescription.order.order_status = parseInt(prescription.order.order_status)
|
5859
|
5869
|
|