|
@@ -1,7 +1,5 @@
|
1
|
1
|
<template>
|
2
|
|
- <div class="main-contain">
|
3
|
|
- <div class="position">
|
4
|
|
- <bread-crumb :crumbs="crumbs"></bread-crumb>
|
|
2
|
+ <div>
|
5
|
3
|
<template>
|
6
|
4
|
<el-button
|
7
|
5
|
:loading="loading"
|
|
@@ -12,29 +10,9 @@
|
12
|
10
|
>打印</el-button
|
13
|
11
|
>
|
14
|
12
|
</template>
|
15
|
|
- </div>
|
16
|
|
- <div class="app-container" style="min-height:0;">
|
17
|
|
- <el-container class="newContainer">
|
18
|
|
- <!-- <div style="width:270px;margin-right:20px;">
|
19
|
|
- <div class="cell clearfix" style="margin-bottom:10px;">
|
20
|
|
- <el-input size="small" v-model.trim="search_input" class="filter-item"/>
|
21
|
|
- <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
|
22
|
|
- </div>
|
23
|
|
- <el-table ref="tab" @current-change="changePatient" highlight-current-row :data="patientTableData"
|
24
|
|
- height="480" border style="width: 100%">
|
25
|
|
- <el-table-column prop="date" label="患者">
|
26
|
|
- <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template>
|
27
|
|
- </el-table-column>
|
28
|
|
- <el-table-column prop="name" label="就诊号">
|
29
|
|
- <template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}</template>
|
30
|
|
- </el-table-column>
|
31
|
|
- </el-table>
|
32
|
|
- </div> -->
|
33
|
13
|
|
34
|
|
- <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px;margin:0 auto;width:960px;">
|
35
|
|
- <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
|
36
|
|
- </div>
|
37
|
|
- </el-container>
|
|
14
|
+ <div class='dialysisPage'>
|
|
15
|
+ <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
|
38
|
16
|
</div>
|
39
|
17
|
</div>
|
40
|
18
|
</template>
|
|
@@ -57,6 +35,9 @@ export default {
|
57
|
35
|
BreadCrumb,
|
58
|
36
|
printOne
|
59
|
37
|
},
|
|
38
|
+ props:{
|
|
39
|
+ paramsObj:Object
|
|
40
|
+ },
|
60
|
41
|
data() {
|
61
|
42
|
return {
|
62
|
43
|
crumbs: [
|
|
@@ -72,7 +53,9 @@ export default {
|
72
|
53
|
search_input:"",
|
73
|
54
|
loading:false,
|
74
|
55
|
patient_id:"",
|
75
|
|
- prescription_id:""
|
|
56
|
+ prescription_id:"",
|
|
57
|
+ ids:'',
|
|
58
|
+ paramsObj:{}
|
76
|
59
|
};
|
77
|
60
|
},
|
78
|
61
|
methods:{
|
|
@@ -127,9 +110,9 @@ export default {
|
127
|
110
|
cal_two = cal_two + 1
|
128
|
111
|
}
|
129
|
112
|
}
|
130
|
|
- this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
131
|
|
- console.log(this.patientTableData[0])
|
132
|
|
- this.choosePatient(this.patientTableData[0])
|
|
113
|
+ // this.$refs.tab.setCurrentRow(this.patientTableData[0])
|
|
114
|
+ // console.log(this.patientTableData[0])
|
|
115
|
+ // this.choosePatient(this.patientTableData[0])
|
133
|
116
|
this.cal_one = cal_one
|
134
|
117
|
this.cal_two = cal_two
|
135
|
118
|
}
|
|
@@ -171,13 +154,35 @@ export default {
|
171
|
154
|
|
172
|
155
|
created() {
|
173
|
156
|
this.getAllDoctorList()
|
174
|
|
- var record_date = this.$route.query.record
|
|
157
|
+ var record_date = this.paramsObj.record
|
175
|
158
|
this.record_date = record_date
|
176
|
159
|
console.log("record_date",record_date)
|
177
|
|
- var prescription_id = this.$route.query.prescription_id
|
|
160
|
+ var prescription_id = this.paramsObj.prescription_id
|
178
|
161
|
this.prescription_id = prescription_id
|
|
162
|
+ this.patient_id = this.paramsObj.patient_id
|
|
163
|
+ this.ids = this.paramsObj.ids
|
|
164
|
+ // var record_date = this.$route.query.record
|
|
165
|
+ // this.record_date = record_date
|
|
166
|
+ // console.log("record_date",record_date)
|
|
167
|
+ // var prescription_id = this.$route.query.prescription_id
|
|
168
|
+ // this.prescription_id = prescription_id
|
179
|
169
|
this.getAllHisPatientList(record_date)
|
180
|
170
|
},
|
|
171
|
+ watch:{
|
|
172
|
+ paramsObj:{//深度监听,可监听到对象、数组的变化
|
|
173
|
+ handler(val, oldVal){
|
|
174
|
+ this.paramsObj = val
|
|
175
|
+ this.patient_id = this.paramsObj.patient_id
|
|
176
|
+ var record_date = this.paramsObj.record
|
|
177
|
+ this.record_date = record_date
|
|
178
|
+ console.log("record_date",record_date)
|
|
179
|
+ var prescription_id = this.paramsObj.prescription_id
|
|
180
|
+ this.prescription_id = prescription_id
|
|
181
|
+ this.ids = this.paramsObj.ids
|
|
182
|
+ },
|
|
183
|
+ deep:true
|
|
184
|
+ }
|
|
185
|
+ }
|
181
|
186
|
|
182
|
187
|
};
|
183
|
188
|
</script>
|