|
@@ -11,7 +11,7 @@
|
11
|
11
|
>打印</el-button
|
12
|
12
|
>
|
13
|
13
|
</template> -->
|
14
|
|
-
|
|
14
|
+
|
15
|
15
|
<div class='dialysisPage' style="padding-top:40px;">
|
16
|
16
|
<printOne :printData="printData" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
|
17
|
17
|
</div>
|
|
@@ -32,7 +32,6 @@ export default {
|
32
|
32
|
printOne,
|
33
|
33
|
},
|
34
|
34
|
props:{
|
35
|
|
- paramsObj:Object,
|
36
|
35
|
printData:Array
|
37
|
36
|
},
|
38
|
37
|
data() {
|
|
@@ -67,104 +66,26 @@ export default {
|
67
|
66
|
scanStyles: false
|
68
|
67
|
});
|
69
|
68
|
},500)
|
70
|
|
-
|
|
69
|
+
|
71
|
70
|
},
|
72
|
71
|
getAllDoctorList(){
|
73
|
72
|
getAllDoctorList().then(response=>{
|
74
|
73
|
if(response.data.state == 1){
|
75
|
74
|
var doctor = response.data.data.doctor
|
76
|
|
-
|
|
75
|
+
|
77
|
76
|
this.doctorList = doctor
|
78
|
77
|
}
|
79
|
|
- })
|
|
78
|
+ })
|
80
|
79
|
},
|
81
|
|
- getAllHisPatientList(){
|
82
|
|
- const params = {
|
83
|
|
- record_date:this.record_date
|
84
|
|
- }
|
85
|
|
- getAllHisPatientList(params).then(response=>{
|
86
|
|
- if(response.data.state == 1){
|
87
|
|
- this.patientTableData = response.data.data.list
|
88
|
|
- this.patientTableDataTwo = response.data.data.list
|
89
|
|
-
|
90
|
|
- console.log('222', this.patientTableData)
|
91
|
|
- let cal_one = 0
|
92
|
|
- let cal_two = 0
|
93
|
|
- for (let i = 0; i < response.data.data.list.length; i++) {
|
94
|
|
- if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
|
95
|
|
- cal_one = cal_one + 1
|
96
|
|
- }
|
97
|
|
- if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
|
98
|
|
- cal_two = cal_two + 1
|
99
|
|
- }
|
100
|
|
- }
|
101
|
|
- // this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
102
|
|
- // console.log(this.patientTableData[0])
|
103
|
|
- // this.choosePatient(this.patientTableData[0])
|
104
|
|
- this.cal_one = cal_one
|
105
|
|
- this.cal_two = cal_two
|
106
|
|
- }
|
107
|
|
- })
|
108
|
|
- },
|
109
|
|
-
|
110
|
|
- changePatient(row){
|
111
|
|
- console.log("row",row)
|
112
|
|
- this.patient_id = row.patient_id
|
113
|
|
- this.record_date = this.record_date
|
114
|
|
- this.prescription_id = this.prescription_id
|
115
|
|
- // var params = {
|
116
|
|
- // patient_id:row.patient_id,
|
117
|
|
- // record_date:this.record_date,
|
118
|
|
- // prescription_id:this.prescription_id,
|
119
|
|
- // }
|
120
|
|
- // getPrescriptionPrint(params).then(response=>{
|
121
|
|
- // if(response.data.state == 1){
|
122
|
|
- // var advicePrint = response.data.data.advicePrint
|
123
|
|
- // console.log("adviceprint",advicePrint)
|
124
|
|
- // this.advicePrint = advicePrint
|
125
|
|
- // // var hisPatient = response.data.data.hisPatient
|
126
|
|
- // // console.log("hispatient",hisPatient)
|
127
|
|
- // // this.hisPatient = hisPatient
|
128
|
|
- // var patient = response.data.data.patient
|
129
|
|
- // console.log("patient",patient)
|
130
|
|
- // this.patient = patient
|
131
|
|
- // var doctorPorject = response.data.data.doctorPorject
|
132
|
|
- // console.log("doctorporject",doctorPorject)
|
133
|
|
- // }
|
134
|
|
- // })
|
135
|
|
- },
|
136
|
80
|
searchAction(){
|
137
|
81
|
|
138
|
82
|
}
|
139
|
|
-
|
|
83
|
+
|
140
|
84
|
},
|
141
|
85
|
|
142
|
86
|
created() {
|
143
|
87
|
this.org_id = this.$store.getters.xt_user.org_id
|
144
|
|
- this.getAllDoctorList()
|
145
|
|
- var record_date = this.paramsObj.record
|
146
|
|
- this.record_date = record_date
|
147
|
|
- console.log("record_date",record_date)
|
148
|
|
- this.prescription_id = this.paramsObj.prescription_id
|
149
|
|
- this.patient_id = this.paramsObj.patient_id
|
150
|
|
- this.ids = this.paramsObj.ids
|
151
|
|
- this.getAllHisPatientList(record_date)
|
152
|
88
|
},
|
153
|
|
- watch:{
|
154
|
|
- paramsObj:{//深度监听,可监听到对象、数组的变化
|
155
|
|
- handler(val, oldVal){
|
156
|
|
- this.paramsObj = val
|
157
|
|
- this.patient_id = this.paramsObj.patient_id
|
158
|
|
- var record_date = this.paramsObj.record
|
159
|
|
- this.record_date = record_date
|
160
|
|
- var prescription_id = this.paramsObj.prescription_id
|
161
|
|
- this.prescription_id = prescription_id
|
162
|
|
- this.ids = this.paramsObj.ids
|
163
|
|
-
|
164
|
|
- },
|
165
|
|
- deep:true
|
166
|
|
- }
|
167
|
|
- }
|
168
|
89
|
|
169
|
90
|
};
|
170
|
91
|
</script>
|
|
@@ -333,7 +254,7 @@ export default {
|
333
|
254
|
.dialysisPage::-webkit-scrollbar {
|
334
|
255
|
height: 15px;
|
335
|
256
|
}
|
336
|
|
-
|
|
257
|
+
|
337
|
258
|
.el-date-editor{
|
338
|
259
|
.el-input__inner{
|
339
|
260
|
padding-right:0px;
|