|
@@ -10,7 +10,7 @@
|
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>
|
|
@@ -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++) {
|
|
@@ -264,18 +265,16 @@ export default {
|
264
|
265
|
let newIds = ids.split(',').sort(function(a,b){
|
265
|
266
|
return a-b;
|
266
|
267
|
})
|
267
|
|
-
|
268
|
|
- let diagnoses = this.diagnoses.sort(this.compare('id'))
|
269
|
268
|
var name = ""
|
270
|
269
|
let nameArr = []
|
271
|
|
- for(let i=0;i<diagnoses.length;i++){
|
|
270
|
+ for(let i=0;i<this.diagnoses.length;i++){
|
272
|
271
|
// if(id == this.diagnoses[i].id){
|
273
|
272
|
// name = this.diagnoses[i].class_name
|
274
|
273
|
// }
|
275
|
274
|
|
276
|
|
- if(newIds.indexOf(diagnoses[i].id.toString()) > -1){
|
|
275
|
+ if(newIds.indexOf(this.diagnoses[i].id.toString()) > -1){
|
277
|
276
|
// name += diagnoses[i].class_name + ' '
|
278
|
|
- nameArr.push(diagnoses[i].class_name)
|
|
277
|
+ nameArr.push(this.diagnoses[i].class_name)
|
279
|
278
|
}
|
280
|
279
|
}
|
281
|
280
|
let newNameArr = []
|
|
@@ -396,9 +395,10 @@ export default {
|
396
|
395
|
|
397
|
396
|
},
|
398
|
397
|
created(){
|
|
398
|
+ this.getPrescriptionPrint()
|
399
|
399
|
this.getAllDoctorList()
|
400
|
400
|
this.getInitData()
|
401
|
|
- this.getPrescriptionPrint()
|
|
401
|
+
|
402
|
402
|
this.getHisPatientDetail()
|
403
|
403
|
var xtuser = this.$store.getters.xt_user;
|
404
|
404
|
this.orgname = xtuser.org.org_name;
|
|
@@ -406,6 +406,7 @@ export default {
|
406
|
406
|
},
|
407
|
407
|
watch:{
|
408
|
408
|
ids:function(val){
|
|
409
|
+ console.log('val1111111111111111111111111111',val)
|
409
|
410
|
this.ids = val
|
410
|
411
|
this.getPrescriptionPrint()
|
411
|
412
|
}
|