|
@@ -106,9 +106,11 @@
|
106
|
106
|
<el-table-column prop="zip" label="症状及处理" width="300">
|
107
|
107
|
<template slot-scope="scope">
|
108
|
108
|
<div v-if="scope.$index == 1">
|
109
|
|
- <div v-for="item in doctor" :key="item">
|
110
|
|
- <p>{{ item }}</p>
|
111
|
|
- <el-button size="mini" type="primary" v-clipboard:copy="item" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
|
|
109
|
+ <div v-for="item in monitor_records" :key="item">
|
|
110
|
+ <div v-if='item.symptom || item.dispose || item.result'>
|
|
111
|
+ <p>{{ item.symptom }} {{ item.dispose }} {{ item.result }}</p>
|
|
112
|
+ <el-button size="mini" type="primary" v-clipboard:copy="item" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
|
|
113
|
+ </div>
|
112
|
114
|
</div>
|
113
|
115
|
</div>
|
114
|
116
|
</template>
|
|
@@ -331,33 +333,33 @@ export default {
|
331
|
333
|
console.log(22222222222222222,this.monitor_records)
|
332
|
334
|
}
|
333
|
335
|
|
334
|
|
- if(this.prescription.mode_id){
|
335
|
|
- this.modeId = this.getMode(this.prescription.mode_id)
|
336
|
|
- }
|
337
|
|
- if(this.doctor_advices.length > 0){
|
338
|
|
- let str = ''
|
339
|
|
- let arr = []
|
340
|
|
- this.advices = this.doctor_advices
|
341
|
|
- this.advices.map(item => {
|
342
|
|
- str = item.advice_name + (item.advice_desc ? ('(' + item.advice_desc + item.drug_spec_unit + ')') : '' ) + ' ' + item.prescribing_number + item.prescribing_number_unit + ' ' +
|
343
|
|
- item.single_dose + item.single_dose_unit + ' ' + item.delivery_way + item.execution_frequency + item.remark
|
344
|
|
- arr.push(str)
|
345
|
|
- })
|
346
|
|
- this.doctor = arr
|
|
336
|
+ // if(this.prescription.mode_id){
|
|
337
|
+ // this.modeId = this.getMode(this.prescription.mode_id)
|
|
338
|
+ // }
|
|
339
|
+ // if(this.doctor_advices.length > 0){
|
|
340
|
+ // let str = ''
|
|
341
|
+ // let arr = []
|
|
342
|
+ // this.advices = this.doctor_advices
|
|
343
|
+ // this.advices.map(item => {
|
|
344
|
+ // str = item.advice_name + (item.advice_desc ? ('(' + item.advice_desc + item.drug_spec_unit + ')') : '' ) + ' ' + item.prescribing_number + item.prescribing_number_unit + ' ' +
|
|
345
|
+ // item.single_dose + item.single_dose_unit + ' ' + item.delivery_way + item.execution_frequency + item.remark
|
|
346
|
+ // arr.push(str)
|
|
347
|
+ // })
|
|
348
|
+ // this.doctor = arr
|
347
|
349
|
|
348
|
|
- // this.textarea = ''
|
349
|
|
- // arr.map(item => {
|
350
|
|
- // this.textarea += item + "\n"
|
351
|
|
- // })
|
352
|
|
- }else if(this.doctor_advices.length == 0){
|
353
|
|
- this.textarea = ''
|
354
|
|
- this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
|
355
|
|
- '2.结束' + this.modeId + '治疗' + '\n' +
|
356
|
|
- '3.患者离开血透室'
|
357
|
|
- let str = this.textarea
|
358
|
|
- this.doctor = []
|
359
|
|
- this.doctor.push(this.textarea)
|
360
|
|
- }
|
|
350
|
+ // // this.textarea = ''
|
|
351
|
+ // // arr.map(item => {
|
|
352
|
+ // // this.textarea += item + "\n"
|
|
353
|
+ // // })
|
|
354
|
+ // }else if(this.doctor_advices.length == 0){
|
|
355
|
+ // this.textarea = ''
|
|
356
|
+ // this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
|
|
357
|
+ // '2.结束' + this.modeId + '治疗' + '\n' +
|
|
358
|
+ // '3.患者离开血透室'
|
|
359
|
+ // let str = this.textarea
|
|
360
|
+ // this.doctor = []
|
|
361
|
+ // this.doctor.push(this.textarea)
|
|
362
|
+ // }
|
361
|
363
|
},
|
362
|
364
|
methods:{
|
363
|
365
|
chooseDay(day) {
|
|
@@ -435,6 +437,7 @@ export default {
|
435
|
437
|
watch:{
|
436
|
438
|
monitor_records:{
|
437
|
439
|
handler:function(val) {
|
|
440
|
+ console.log(333333333333,this.monitor_records)
|
438
|
441
|
if(this.monitor_records.length > 5){
|
439
|
442
|
this.monitor_records = this.monitor_records
|
440
|
443
|
}else{
|
|
@@ -442,7 +445,7 @@ export default {
|
442
|
445
|
for(let i =0; i<num;i++){
|
443
|
446
|
this.monitor_records.push({id:1})
|
444
|
447
|
}
|
445
|
|
- console.log(333333333333,this.monitor_records)
|
|
448
|
+
|
446
|
449
|
}
|
447
|
450
|
}
|
448
|
451
|
},
|
|
@@ -450,63 +453,63 @@ export default {
|
450
|
453
|
handler:function(val) {
|
451
|
454
|
}
|
452
|
455
|
},
|
453
|
|
- doctor_advices:{
|
454
|
|
- handler:function(val) {
|
455
|
|
- if(this.doctor_advices.length > 0){
|
456
|
|
- let str = ''
|
457
|
|
- let arr = []
|
458
|
|
- this.advices = this.doctor_advices
|
459
|
|
- this.advices.map(item => {
|
460
|
|
- str = item.advice_name + (item.advice_desc ? ('(' + item.advice_desc + item.drug_spec_unit + ')') : '' ) + ' ' + item.prescribing_number + item.prescribing_number_unit + ' ' +
|
461
|
|
- item.single_dose + item.single_dose_unit + ' ' + item.delivery_way + item.execution_frequency + item.remark
|
462
|
|
- arr.push(str)
|
463
|
|
- })
|
464
|
|
- this.doctor = arr
|
465
|
|
- // this.textarea = ''
|
466
|
|
- // arr.map(item => {
|
467
|
|
- // this.textarea += item + "\n"
|
468
|
|
- // })
|
469
|
|
- }else if(this.doctor_advices.length == 0){
|
470
|
|
- this.textarea = ''
|
471
|
|
- this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
|
472
|
|
- '2.结束' + this.modeId + '治疗' + '\n' +
|
473
|
|
- '3.患者离开血透室'
|
474
|
|
- let str = this.textarea
|
475
|
|
- this.doctor = []
|
476
|
|
- this.doctor.push(this.textarea)
|
477
|
|
- }
|
478
|
|
- }
|
479
|
|
- },
|
480
|
|
- prescription:{
|
481
|
|
- handler:function(val) {
|
482
|
|
- if(this.prescription.mode_id){
|
483
|
|
- this.modeId = this.getMode(this.prescription.mode_id)
|
484
|
|
- }
|
485
|
|
- if(this.doctor_advices.length > 0){
|
486
|
|
- let str = ''
|
487
|
|
- let arr = []
|
488
|
|
- this.advices = this.doctor_advices
|
489
|
|
- this.advices.map(item => {
|
490
|
|
- str = item.advice_name + (item.advice_desc ? ('(' + item.advice_desc + item.drug_spec_unit + ')') : '' ) + ' ' + item.prescribing_number + item.prescribing_number_unit + ' ' +
|
491
|
|
- item.single_dose + item.single_dose_unit + ' ' + item.delivery_way + item.execution_frequency + item.remark
|
492
|
|
- arr.push(str)
|
493
|
|
- })
|
494
|
|
- this.doctor = arr
|
495
|
|
- // this.textarea = ''
|
496
|
|
- // arr.map(item => {
|
497
|
|
- // this.textarea += item + "\n"
|
498
|
|
- // })
|
499
|
|
- }else if(this.doctor_advices.length == 0){
|
500
|
|
- this.textarea = ''
|
501
|
|
- this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
|
502
|
|
- '2.结束' + this.modeId + '治疗' + '\n' +
|
503
|
|
- '3.患者离开血透室'
|
504
|
|
- let str = this.textarea
|
505
|
|
- this.doctor = []
|
506
|
|
- this.doctor.push(this.textarea)
|
507
|
|
- }
|
508
|
|
- }
|
509
|
|
- },
|
|
456
|
+ // doctor_advices:{
|
|
457
|
+ // handler:function(val) {
|
|
458
|
+ // if(this.doctor_advices.length > 0){
|
|
459
|
+ // let str = ''
|
|
460
|
+ // let arr = []
|
|
461
|
+ // this.advices = this.doctor_advices
|
|
462
|
+ // this.advices.map(item => {
|
|
463
|
+ // str = item.advice_name + (item.advice_desc ? ('(' + item.advice_desc + item.drug_spec_unit + ')') : '' ) + ' ' + item.prescribing_number + item.prescribing_number_unit + ' ' +
|
|
464
|
+ // item.single_dose + item.single_dose_unit + ' ' + item.delivery_way + item.execution_frequency + item.remark
|
|
465
|
+ // arr.push(str)
|
|
466
|
+ // })
|
|
467
|
+ // this.doctor = arr
|
|
468
|
+ // // this.textarea = ''
|
|
469
|
+ // // arr.map(item => {
|
|
470
|
+ // // this.textarea += item + "\n"
|
|
471
|
+ // // })
|
|
472
|
+ // }else if(this.doctor_advices.length == 0){
|
|
473
|
+ // this.textarea = ''
|
|
474
|
+ // this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
|
|
475
|
+ // '2.结束' + this.modeId + '治疗' + '\n' +
|
|
476
|
+ // '3.患者离开血透室'
|
|
477
|
+ // let str = this.textarea
|
|
478
|
+ // this.doctor = []
|
|
479
|
+ // this.doctor.push(this.textarea)
|
|
480
|
+ // }
|
|
481
|
+ // }
|
|
482
|
+ // },
|
|
483
|
+ // prescription:{
|
|
484
|
+ // handler:function(val) {
|
|
485
|
+ // if(this.prescription.mode_id){
|
|
486
|
+ // this.modeId = this.getMode(this.prescription.mode_id)
|
|
487
|
+ // }
|
|
488
|
+ // if(this.doctor_advices.length > 0){
|
|
489
|
+ // let str = ''
|
|
490
|
+ // let arr = []
|
|
491
|
+ // this.advices = this.doctor_advices
|
|
492
|
+ // this.advices.map(item => {
|
|
493
|
+ // str = item.advice_name + (item.advice_desc ? ('(' + item.advice_desc + item.drug_spec_unit + ')') : '' ) + ' ' + item.prescribing_number + item.prescribing_number_unit + ' ' +
|
|
494
|
+ // item.single_dose + item.single_dose_unit + ' ' + item.delivery_way + item.execution_frequency + item.remark
|
|
495
|
+ // arr.push(str)
|
|
496
|
+ // })
|
|
497
|
+ // this.doctor = arr
|
|
498
|
+ // // this.textarea = ''
|
|
499
|
+ // // arr.map(item => {
|
|
500
|
+ // // this.textarea += item + "\n"
|
|
501
|
+ // // })
|
|
502
|
+ // }else if(this.doctor_advices.length == 0){
|
|
503
|
+ // this.textarea = ''
|
|
504
|
+ // this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
|
|
505
|
+ // '2.结束' + this.modeId + '治疗' + '\n' +
|
|
506
|
+ // '3.患者离开血透室'
|
|
507
|
+ // let str = this.textarea
|
|
508
|
+ // this.doctor = []
|
|
509
|
+ // this.doctor.push(this.textarea)
|
|
510
|
+ // }
|
|
511
|
+ // }
|
|
512
|
+ // },
|
510
|
513
|
deep:true,
|
511
|
514
|
}
|
512
|
515
|
}
|