|
@@ -6,7 +6,7 @@
|
6
|
6
|
:close-on-press-escape="isClose"
|
7
|
7
|
>
|
8
|
8
|
<el-button type="primary" @click="print" class="print_style"
|
9
|
|
- >打印23</el-button
|
|
9
|
+ >打印</el-button
|
10
|
10
|
>
|
11
|
11
|
<div id="dialysis-print-box-1" class="dialysis-print-box-1">
|
12
|
12
|
<div class="list_title" style="border-bottom:none;">
|
|
@@ -25,7 +25,8 @@
|
25
|
25
|
<span>性别:{{ patients.gender==1 ?'男':'女'}}</span>
|
26
|
26
|
<span>年龄:{{patients.age}}</span>
|
27
|
27
|
<span>住院科室:肾内科</span>
|
28
|
|
- <span>入院诊断:{{patients.diagnose}}</span>
|
|
28
|
+ <!-- <span>入院诊断:{{patients.diagnose}}</span> -->
|
|
29
|
+ <span>入院诊断:{{ getdiagnosis(diagnosis) }}</span>
|
29
|
30
|
</div>
|
30
|
31
|
<div>
|
31
|
32
|
<table class="table" border="1"
|
|
@@ -102,7 +103,9 @@ export default {
|
102
|
103
|
Doctor:'',
|
103
|
104
|
patients:{},
|
104
|
105
|
doctors:[],
|
105
|
|
- Price_zong:0
|
|
106
|
+ Price_zong:0,
|
|
107
|
+ diagnosearr:[],
|
|
108
|
+ diagnosis:'',
|
106
|
109
|
};
|
107
|
110
|
},
|
108
|
111
|
props: {
|
|
@@ -137,7 +140,7 @@ export default {
|
137
|
140
|
}
|
138
|
141
|
}
|
139
|
142
|
},
|
140
|
|
- show: function (val,data,state,times,base,patients,doctors) {
|
|
143
|
+ show: function (val,data,state,times,base,patients,doctors,arr,diagnosis) {
|
141
|
144
|
this.times = times
|
142
|
145
|
this.visibility = true;
|
143
|
146
|
console.log("val",val)
|
|
@@ -148,6 +151,8 @@ export default {
|
148
|
151
|
this.baseList = base
|
149
|
152
|
this.patients = patients
|
150
|
153
|
this.doctors = doctors
|
|
154
|
+ this.diagnosearr = arr
|
|
155
|
+ this.diagnosis = diagnosis
|
151
|
156
|
if (state == 1){
|
152
|
157
|
this.state = "待发药"
|
153
|
158
|
}
|
|
@@ -160,7 +165,25 @@ export default {
|
160
|
165
|
}
|
161
|
166
|
}
|
162
|
167
|
},
|
163
|
|
-
|
|
168
|
+ getdiagnosis(val){
|
|
169
|
+ const diagnosis = val.split(',')
|
|
170
|
+ console.log('diagnosis',diagnosis)
|
|
171
|
+ const diagn = []
|
|
172
|
+ // const dia_id =[]
|
|
173
|
+ const arr = this.diagnosearr
|
|
174
|
+ if(diagnosis.length>0 && arr.length>0){
|
|
175
|
+ for(let i in arr){
|
|
176
|
+ for(let j in diagnosis){
|
|
177
|
+ if(arr[i].id ==diagnosis[j]){
|
|
178
|
+ diagn.push(arr[i].class_name)
|
|
179
|
+ }
|
|
180
|
+ }
|
|
181
|
+ var arr2 = diagn.join()
|
|
182
|
+ console.log('arr2',arr2);
|
|
183
|
+ }
|
|
184
|
+ }
|
|
185
|
+ return arr2
|
|
186
|
+ },
|
164
|
187
|
comfirm: function (formName) {
|
165
|
188
|
this.goodInfo = [];
|
166
|
189
|
this.goodInfoTableData = [];
|
|
@@ -301,8 +324,8 @@ export default {
|
301
|
324
|
.table tr td{
|
302
|
325
|
border:1px solid black;
|
303
|
326
|
padding: 5px 0;
|
304
|
|
-// border-left: none;
|
305
|
|
-// border-right: none;
|
|
327
|
+ border-left: none;
|
|
328
|
+ border-right: none;
|
306
|
329
|
}
|
307
|
330
|
</style>
|
308
|
331
|
|