|
@@ -10,14 +10,14 @@
|
10
|
10
|
<span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>
|
11
|
11
|
</div>
|
12
|
12
|
<div style="display:flex;">
|
13
|
|
- <div style="width:33%;display:flex;">费别:<span class="under_line">{{ faber && faber.transBody ? getName(faber.transBody.outputlist1) : '' }}</span></div>
|
|
13
|
+ <div style="width:33%;display:flex;">费别:<span class="under_line"><span v-if="faber && faber.transBody">{{ faber && faber.transBody ? getName(faber.transBody.outputlist1) : '' }}</span></span></div>
|
14
|
14
|
<div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber && faber.transBody ? faber.transBody.aac999 : '' }}</span></div>
|
15
|
15
|
<div style="width:33%;display:flex;">处方编号:<span class="under_line">{{ item.prescription_number.substring(item.prescription_number.length-6) }}</span></div>
|
16
|
16
|
</div>
|
17
|
17
|
|
18
|
18
|
|
19
|
19
|
<div class="infoTitle">
|
20
|
|
- <div>姓名:{{item.patient.name?item.patient.name:""}}</div>
|
|
20
|
+ <div>姓名:{{item.patient.name? item.patient.name.indexOf("(") > -1 ? item.patient.name.substring(0,item.patient.name.indexOf("(")) : item.patient.name :""}}</div>
|
21
|
21
|
<div>性别:
|
22
|
22
|
<span v-if="item.patient.gender == 1">男</span>
|
23
|
23
|
<span v-if="item.patient.gender == 2">女</span>
|
|
@@ -25,9 +25,9 @@
|
25
|
25
|
<div>年龄:{{item.patient.age?item.patient.age:""}}岁</div>
|
26
|
26
|
</div>
|
27
|
27
|
<div class="infoMain">
|
28
|
|
- <div style="margin-bottom: 10px;display:flex;">门诊号码:<span class="under_line">{{hisPatient.number?hisPatient.number:""}}</span></div>
|
29
|
|
- <div style="margin-bottom: 10px;display:flex;">科别:<span class="under_line">{{item.info?getDepart(item.info.departments):''}}</span></div>
|
30
|
|
- <div style="margin-bottom: 10px;display:flex;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
|
|
28
|
+ <div style="margin-bottom: 10px;display:flex;">门诊号码:<span class="under_line" v-if="hisPatient.number">{{hisPatient.number?hisPatient.number:""}}</span></div>
|
|
29
|
+ <div style="margin-bottom: 10px;display:flex;">科别:<span class="under_line" v-if="item.info">{{item.info?getDepart(item.info.departments):''}}</span></div>
|
|
30
|
+ <div style="margin-bottom: 10px;display:flex;">临床诊断:{{ item.info.diagnosis ? getDiagnosis(item.info.diagnosis) : ''}}</div>
|
31
|
31
|
<div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
|
32
|
32
|
<!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
|
33
|
33
|
<div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
|
|
@@ -162,6 +162,7 @@ export default {
|
162
|
162
|
var advicePrint = response.data.data.advicePrint
|
163
|
163
|
console.log("adviceprint9999",advicePrint)
|
164
|
164
|
this.advicePrint = advicePrint
|
|
165
|
+ this.getPage()
|
165
|
166
|
this.prescriptions = advicePrint
|
166
|
167
|
console.log("处方222222",this.prescriptions)
|
167
|
168
|
var hisPatient = response.data.data.hisPatient
|
|
@@ -170,7 +171,7 @@ export default {
|
170
|
171
|
var projectlist = response.data.data.projectlist
|
171
|
172
|
console.log("所有项目列表",projectlist)
|
172
|
173
|
this.projectList = projectlist
|
173
|
|
- this.getPage()
|
|
174
|
+
|
174
|
175
|
let outputlist1Name = response.data.data.his.patient_info ? JSON.parse(response.data.data.his.patient_info) : {};
|
175
|
176
|
this.faber = outputlist1Name
|
176
|
177
|
|
|
@@ -194,7 +195,7 @@ export default {
|
194
|
195
|
getInitData().then(response=>{
|
195
|
196
|
if(response.data.state == 1){
|
196
|
197
|
this.department = response.data.data.department
|
197
|
|
- this.diagnoses = response.data.data.diagnose
|
|
198
|
+ this.diagnoses = response.data.data.diagnose.sort(this.compare('id'))
|
198
|
199
|
console.log("争端",this.diagnoses)
|
199
|
200
|
}
|
200
|
201
|
})
|
|
@@ -209,7 +210,7 @@ export default {
|
209
|
210
|
return name
|
210
|
211
|
},
|
211
|
212
|
getTotalOne(id) {
|
212
|
|
-
|
|
213
|
+ console.log('id',id)
|
213
|
214
|
var total = 0
|
214
|
215
|
var addtotal = 0
|
215
|
216
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
|
@@ -261,18 +262,38 @@ export default {
|
261
|
262
|
},
|
262
|
263
|
|
263
|
264
|
getDiagnosis(ids){
|
264
|
|
- let id = ids.split(',')
|
|
265
|
+ let newIds = ids.split(',').sort(function(a,b){
|
|
266
|
+ return a-b;
|
|
267
|
+ })
|
265
|
268
|
var name = ""
|
|
269
|
+ let nameArr = []
|
266
|
270
|
for(let i=0;i<this.diagnoses.length;i++){
|
267
|
271
|
// if(id == this.diagnoses[i].id){
|
268
|
272
|
// name = this.diagnoses[i].class_name
|
269
|
273
|
// }
|
270
|
|
- if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
|
271
|
|
- name += this.diagnoses[i].class_name + ' '
|
|
274
|
+
|
|
275
|
+ if(newIds.indexOf(this.diagnoses[i].id.toString()) > -1){
|
|
276
|
+ // name += diagnoses[i].class_name + ' '
|
|
277
|
+ nameArr.push(this.diagnoses[i].class_name)
|
272
|
278
|
}
|
273
|
279
|
}
|
274
|
|
- return name
|
|
280
|
+ let newNameArr = []
|
|
281
|
+ nameArr.map((item,index) => {
|
|
282
|
+ if(item == '尿毒症'){
|
|
283
|
+ newNameArr.push(item)
|
|
284
|
+ nameArr.splice(index,1,'')
|
|
285
|
+ }
|
|
286
|
+ })
|
|
287
|
+ newNameArr.push(...nameArr)
|
|
288
|
+ return newNameArr.join(' ')
|
275
|
289
|
},
|
|
290
|
+ compare(property) {
|
|
291
|
+ return function(a,b){
|
|
292
|
+ var value1 = a[property];
|
|
293
|
+ var value2 = b[property];
|
|
294
|
+ return value1 - value2;//升序排序
|
|
295
|
+ }
|
|
296
|
+ },
|
276
|
297
|
getPage(){
|
277
|
298
|
this.page = 1
|
278
|
299
|
this.pageArr = []
|
|
@@ -374,9 +395,10 @@ export default {
|
374
|
395
|
|
375
|
396
|
},
|
376
|
397
|
created(){
|
|
398
|
+ this.getPrescriptionPrint()
|
377
|
399
|
this.getAllDoctorList()
|
378
|
400
|
this.getInitData()
|
379
|
|
- this.getPrescriptionPrint()
|
|
401
|
+
|
380
|
402
|
this.getHisPatientDetail()
|
381
|
403
|
var xtuser = this.$store.getters.xt_user;
|
382
|
404
|
this.orgname = xtuser.org.org_name;
|
|
@@ -384,6 +406,7 @@ export default {
|
384
|
406
|
},
|
385
|
407
|
watch:{
|
386
|
408
|
ids:function(val){
|
|
409
|
+ console.log('val1111111111111111111111111111',val)
|
387
|
410
|
this.ids = val
|
388
|
411
|
this.getPrescriptionPrint()
|
389
|
412
|
}
|