|
@@ -200,7 +200,7 @@
|
200
|
200
|
</template>
|
201
|
201
|
</div>
|
202
|
202
|
</div>
|
203
|
|
- <additionalCharges ref='additionalCharges' :paitent_id="paitent_id"></additionalCharges>
|
|
203
|
+ <additionalCharges ref='additionalCharges' :hisPatientInfo="hisPatientInfo" :patientInfo="patientInfo"></additionalCharges>
|
204
|
204
|
<select-template ref='selectTemplate'></select-template>
|
205
|
205
|
<save-template ref='saveTemplate'></save-template>
|
206
|
206
|
</div>
|
|
@@ -221,7 +221,7 @@
|
221
|
221
|
props: {
|
222
|
222
|
patientInfo: Object,
|
223
|
223
|
hisPatientInfo: Object,
|
224
|
|
- prescriptions: Array,
|
|
224
|
+ prescriptions: Array
|
225
|
225
|
},
|
226
|
226
|
components: {
|
227
|
227
|
selectTemplate,
|
|
@@ -309,15 +309,15 @@
|
309
|
309
|
this.curPrescriptions = this.prescriptions[i]
|
310
|
310
|
|
311
|
311
|
//用来区分处方属于项目还是药品
|
312
|
|
- if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.projects.length == 0){
|
|
312
|
+ if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
|
313
|
313
|
this.customTabIndex = 1
|
314
|
314
|
}
|
315
|
|
- if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.projects.length > 0){
|
|
315
|
+ if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0){
|
316
|
316
|
|
317
|
317
|
this.customTabIndex = 2
|
318
|
318
|
}
|
319
|
319
|
|
320
|
|
- if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.projects.length == 0){
|
|
320
|
+ if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0){
|
321
|
321
|
this.customTabIndex = this.rightTab
|
322
|
322
|
}
|
323
|
323
|
|
|
@@ -357,8 +357,9 @@
|
357
|
357
|
this.prescriptions.push({
|
358
|
358
|
name: newTabName,
|
359
|
359
|
advices: [],
|
360
|
|
- projects: []
|
361
|
|
-
|
|
360
|
+ project:[],
|
|
361
|
+ projects:[]
|
|
362
|
+
|
362
|
363
|
})
|
363
|
364
|
this.editableTabsValue = newTabName
|
364
|
365
|
this.curPrescriptions = this.prescriptions[this.prescriptions.length-1]
|
|
@@ -403,15 +404,15 @@
|
403
|
404
|
|
404
|
405
|
|
405
|
406
|
//用来区分处方属于项目还是药品
|
406
|
|
- if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.projects.length == 0){
|
|
407
|
+ if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
|
407
|
408
|
|
408
|
409
|
this.customTabIndex = 1
|
409
|
410
|
}
|
410
|
|
- if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.projects.length > 0){
|
|
411
|
+ if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0){
|
411
|
412
|
|
412
|
413
|
this.customTabIndex = 2
|
413
|
414
|
}
|
414
|
|
- if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.projects.length == 0){
|
|
415
|
+ if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0){
|
415
|
416
|
// this.customTabIndex = this.rightTab
|
416
|
417
|
this.customTabIndex = index
|
417
|
418
|
}
|
|
@@ -511,12 +512,8 @@
|
511
|
512
|
this.getlist()
|
512
|
513
|
//获取所以项目组套
|
513
|
514
|
this.getAllProjectTeam()
|
514
|
|
- },
|
515
|
|
- watch:{
|
516
|
|
- hisPatientInfo:function(val){
|
517
|
|
- console.log("333333333",this.hisPatientInfo)
|
518
|
|
- deep:true
|
519
|
|
- }
|
|
515
|
+
|
|
516
|
+
|
520
|
517
|
}
|
521
|
518
|
}
|
522
|
519
|
</script>
|