|
@@ -18,16 +18,16 @@
|
18
|
18
|
<el-form-item label="证件号: " prop="name">
|
19
|
19
|
<el-input v-model="patientInfo.id_card_no" placeholder="" readonly></el-input>
|
20
|
20
|
</el-form-item>
|
|
21
|
+ <!--<el-form-item label="挂号类型: " prop="name">-->
|
|
22
|
+ <!--<el-input v-model="hisPatientInfo.register_type" placeholder="" readonly></el-input>-->
|
|
23
|
+ <!--</el-form-item>-->
|
21
|
24
|
<el-form-item label="挂号类型: " prop="name">
|
22
|
|
- <el-input v-model="hisPatientInfo.register_type" placeholder="" readonly></el-input>
|
23
|
|
- </el-form-item>
|
24
|
|
- <el-form-item label="挂号类型: " prop="name">
|
25
|
|
- <el-select style="margin-right:5px;" v-model="doctorValue" placeholder="">
|
|
25
|
+ <el-select style="margin-right:5px;" v-model="register_type" placeholder="">
|
26
|
26
|
<el-option
|
27
|
|
- v-for="(item,index) in doctors"
|
|
27
|
+ v-for="(item,index) in getDictionaryDataConfig('system','register_type')"
|
28
|
28
|
:key="index"
|
29
|
|
- :label="item.user_name"
|
30
|
|
- :value="item.id">
|
|
29
|
+ :label="item.name"
|
|
30
|
+ :value="item.name">
|
31
|
31
|
</el-option>
|
32
|
32
|
</el-select>
|
33
|
33
|
</el-form-item>
|
|
@@ -40,7 +40,7 @@
|
40
|
40
|
placeholder="请输入内容"
|
41
|
41
|
></el-autocomplete>
|
42
|
42
|
</el-form-item>
|
43
|
|
- <el-form-item label="特殊病史: " prop="name">
|
|
43
|
+ <el-form-item label="过敏史及特殊病史: " prop="name">
|
44
|
44
|
<el-autocomplete
|
45
|
45
|
style="width:100%;"
|
46
|
46
|
class="inline-input"
|
|
@@ -78,16 +78,16 @@
|
78
|
78
|
v-for="(item,index) in doctors"
|
79
|
79
|
:key="index"
|
80
|
80
|
:label="item.user_name"
|
81
|
|
- :value="item.id">
|
|
81
|
+ :value="item.user_name">
|
82
|
82
|
</el-option>
|
83
|
83
|
</el-select>
|
84
|
84
|
<span>科室:</span>
|
85
|
85
|
<el-select style="margin-right:5px;" v-model="departmentValue" placeholder="">
|
86
|
86
|
<el-option
|
87
|
|
- v-for="(item,index) in departMent"
|
|
87
|
+ v-for="(item,index) in getDictionaryDataConfig('system','department')"
|
88
|
88
|
:key="index"
|
89
|
89
|
:label="item.name"
|
90
|
|
- :value="item.id">
|
|
90
|
+ :value="item.name">
|
91
|
91
|
</el-option>
|
92
|
92
|
</el-select>
|
93
|
93
|
<span>总计:</span>
|
|
@@ -223,7 +223,8 @@
|
223
|
223
|
delHisPrescription,
|
224
|
224
|
getInitData,
|
225
|
225
|
getPatientInfo,
|
226
|
|
- getSchedulePatientList
|
|
226
|
+ getSchedulePatientList,
|
|
227
|
+
|
227
|
228
|
} from '@/api/his/his'
|
228
|
229
|
import { getDictionaryDataConfig } from '@/utils/data'
|
229
|
230
|
import prescriptionTable from './prescriptionTable'
|
|
@@ -238,6 +239,7 @@
|
238
|
239
|
hisPatientInfo: Object,
|
239
|
240
|
prescriptions: Array,
|
240
|
241
|
record_date: String,
|
|
242
|
+
|
241
|
243
|
other_sick: {
|
242
|
244
|
type: Array,
|
243
|
245
|
default: []
|
|
@@ -255,6 +257,7 @@
|
255
|
257
|
},
|
256
|
258
|
data() {
|
257
|
259
|
return {
|
|
260
|
+ register_type:"",
|
258
|
261
|
value: '',
|
259
|
262
|
form: {
|
260
|
263
|
name: ''
|
|
@@ -303,16 +306,16 @@
|
303
|
306
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
304
|
307
|
if (this.prescriptions[i].advices != null) {
|
305
|
308
|
for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
|
306
|
|
- total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
|
|
309
|
+ total = total + this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number
|
307
|
310
|
}
|
308
|
311
|
}
|
309
|
312
|
if (this.prescriptions[i].project != null) {
|
310
|
313
|
for (let b = 0; b < this.prescriptions[i].project.length; b++) {
|
311
|
|
- total = total + this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].count
|
|
314
|
+ total = total + this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total
|
312
|
315
|
}
|
313
|
316
|
}
|
314
|
317
|
}
|
315
|
|
- return total
|
|
318
|
+ return Math.floor(total * 100) / 100
|
316
|
319
|
},
|
317
|
320
|
createFilter(queryString) {
|
318
|
321
|
return (restaurant) => {
|
|
@@ -367,7 +370,7 @@
|
367
|
370
|
this.allDrugs = response.data.data.drugs
|
368
|
371
|
this.advices_template = response.data.data.advices_template
|
369
|
372
|
this.doctors = response.data.data.doctors
|
370
|
|
- this.departMent = response.data.data.department
|
|
373
|
+
|
371
|
374
|
|
372
|
375
|
}
|
373
|
376
|
})
|
|
@@ -378,35 +381,81 @@
|
378
|
381
|
console.log(this.prescriptions[i].name)
|
379
|
382
|
if (this.prescriptions[i].name == val.name) {
|
380
|
383
|
this.curPrescriptions = this.prescriptions[i]
|
|
384
|
+ this.teamList = []
|
|
385
|
+ this.curDrugs = []
|
|
386
|
+ this.$refs.multipleTable.clearSelection()
|
|
387
|
+ this.$refs.tables.clearSelection()
|
381
|
388
|
|
382
|
389
|
//用来区分处方属于项目还是药品
|
383
|
390
|
if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
|
384
|
391
|
this.customTabIndex = 1
|
385
|
392
|
this.curStatus = 1
|
|
393
|
+ this.rightTab = 1
|
|
394
|
+ this.showOne = true
|
|
395
|
+ this.showTwo = false
|
386
|
396
|
}
|
387
|
397
|
if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0) {
|
388
|
398
|
|
389
|
399
|
this.customTabIndex = 2
|
390
|
400
|
this.curStatus = 2
|
|
401
|
+ this.rightTab = 2
|
|
402
|
+
|
|
403
|
+ this.showTwo = true
|
|
404
|
+ this.showOne = false
|
391
|
405
|
}
|
392
|
406
|
|
393
|
407
|
if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
|
394
|
408
|
this.customTabIndex = this.rightTab
|
|
409
|
+ this.curStatus = 0
|
|
410
|
+
|
395
|
411
|
}
|
396
|
412
|
|
397
|
413
|
}
|
398
|
414
|
|
399
|
415
|
}
|
400
|
|
- }, clearData() {
|
401
|
|
-
|
|
416
|
+ },
|
|
417
|
+ clearData() {
|
|
418
|
+ console.log("111111")
|
402
|
419
|
this.curPrescriptions = []
|
|
420
|
+ this.curStatus = 0
|
|
421
|
+ this.curDrugs = []
|
|
422
|
+ this.preDrugs = []
|
|
423
|
+ this.teamList = []
|
|
424
|
+
|
|
425
|
+
|
403
|
426
|
},
|
404
|
|
- setData(data) {
|
|
427
|
+ setData(data,info) {
|
|
428
|
+ this.curStatus = 0
|
405
|
429
|
this.prescriptions = data
|
406
|
|
- console.log(this.$refs)
|
407
|
|
- this.$nextTick(() => {
|
408
|
|
- this.$refs.prescription_tables.setNewData(this.prescriptions[0])
|
409
|
|
- })
|
|
430
|
+ this.curPrescriptions = this.prescriptions[0]
|
|
431
|
+ if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0 ){
|
|
432
|
+ this.curStatus = 1
|
|
433
|
+ this.customTabIndex= 1
|
|
434
|
+ this.rightTab = 1
|
|
435
|
+ this.showOne = true
|
|
436
|
+ this.showTwo = false
|
|
437
|
+
|
|
438
|
+ }
|
|
439
|
+
|
|
440
|
+ if(this.curPrescriptions.project.length > 0 && this.curPrescriptions.advices.length == 0 ){
|
|
441
|
+ this.curStatus = 2
|
|
442
|
+ this.customTabIndex= 2
|
|
443
|
+ this.rightTab = 2
|
|
444
|
+ this.showOne = false
|
|
445
|
+ this.showTwo = true
|
|
446
|
+ }
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+ this.state1 = info.diagnosis
|
|
450
|
+ this.state2 = info.sick_history
|
|
451
|
+ this.doctorValue = info.doctor
|
|
452
|
+ this.departmentValue = info.departments
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+ // console.log(this.$refs)
|
|
456
|
+ // this.$nextTick(() => {
|
|
457
|
+ // this.$refs.prescription_tables.setNewData(this.prescriptions[0])
|
|
458
|
+ // })
|
410
|
459
|
},
|
411
|
460
|
moreState(tab, event) {
|
412
|
461
|
if (tab == 'more') {
|
|
@@ -414,13 +463,23 @@
|
414
|
463
|
}
|
415
|
464
|
},
|
416
|
465
|
open(index) {
|
|
466
|
+ if(this.doctorValue.length <= 0){
|
|
467
|
+ this.$message.error("医生不能为空")
|
|
468
|
+ return
|
|
469
|
+ }
|
|
470
|
+
|
|
471
|
+ if(this.departmentValue.length <= 0){
|
|
472
|
+ this.$message.error("科室不能为空")
|
|
473
|
+ return
|
|
474
|
+ }
|
|
475
|
+
|
417
|
476
|
if (index == 1) {
|
418
|
477
|
let params = {
|
419
|
478
|
patient_id: this.patientInfo.id,
|
420
|
479
|
diagnose: this.state1,
|
421
|
480
|
sick_history: this.state2,
|
422
|
481
|
doctor: this.doctorValue,
|
423
|
|
- department: this.departmentValue,
|
|
482
|
+ department: this.departmentValue,
|
424
|
483
|
record_date: this.record_date,
|
425
|
484
|
his_patient_id: this.hisPatientInfo.id
|
426
|
485
|
}
|
|
@@ -438,13 +497,18 @@
|
438
|
497
|
this.prescriptions[i].advices[b].retail_price = this.prescriptions[i].advices[b].retail_price.toString()
|
439
|
498
|
|
440
|
499
|
}
|
|
500
|
+
|
|
501
|
+ for (let b = 0; b < this.prescriptions[i].project.length; b++) {
|
|
502
|
+ this.prescriptions[i].project[b].price = parseFloat(this.prescriptions[i].project[b].price)
|
|
503
|
+
|
|
504
|
+ }
|
441
|
505
|
}
|
442
|
506
|
let data = {
|
443
|
507
|
'prescriptions': this.prescriptions
|
444
|
508
|
}
|
445
|
509
|
createHisPrescription(data, params).then(response => {
|
446
|
510
|
if (response.data.state == 1) {
|
447
|
|
- this.prescriptions = []
|
|
511
|
+ // this.prescriptions = []
|
448
|
512
|
this.$message.success('保存成功')
|
449
|
513
|
}
|
450
|
514
|
})
|
|
@@ -472,60 +536,121 @@
|
472
|
536
|
this.curStatus = 0
|
473
|
537
|
},
|
474
|
538
|
removeTab(targetName) {
|
475
|
|
- let id = 0
|
476
|
|
- for (let i = 0; i < this.prescriptions.length; i++) {
|
477
|
|
- if (this.prescriptions[i].name == targetName) {
|
478
|
|
- id = this.prescriptions[i].id
|
|
539
|
+ this.$confirm("处方删除后不可恢复,是否确认删除", "删除", {
|
|
540
|
+ confirmButtonText: "确 定",
|
|
541
|
+ cancelButtonText: "取 消",
|
|
542
|
+ type: "warning"
|
|
543
|
+ }).then(() => {
|
|
544
|
+ let id = 0
|
|
545
|
+ for (let i = 0; i < this.prescriptions.length; i++) {
|
|
546
|
+ if (this.prescriptions[i].name == targetName) {
|
|
547
|
+ id = this.prescriptions[i].id
|
|
548
|
+ }
|
479
|
549
|
}
|
480
|
|
- }
|
481
|
|
-
|
482
|
|
- if (id == 0) {
|
483
|
|
- let tabs = this.prescriptions
|
484
|
|
- let activeName = this.editableTabsValue
|
485
|
|
- if (activeName === targetName) {
|
486
|
|
- tabs.forEach((tab, index) => {
|
487
|
|
- if (tab.name === targetName) {
|
488
|
|
- let nextTab = tabs[index + 1] || tabs[index - 1]
|
489
|
|
- if (nextTab) {
|
490
|
|
- activeName = nextTab.name
|
491
|
550
|
|
|
551
|
+ if (id == 0) {
|
|
552
|
+ let tabs = this.prescriptions
|
|
553
|
+ let activeName = this.editableTabsValue
|
|
554
|
+ if (activeName === targetName) {
|
|
555
|
+ tabs.forEach((tab, index) => {
|
|
556
|
+ if (tab.name === targetName) {
|
|
557
|
+ let nextTab = tabs[index + 1] || tabs[index - 1]
|
|
558
|
+ if (nextTab) {
|
|
559
|
+ activeName = nextTab.name
|
|
560
|
+
|
|
561
|
+ }
|
|
562
|
+ }
|
|
563
|
+ })
|
|
564
|
+ }
|
|
565
|
+ this.editableTabsValue = activeName
|
|
566
|
+ this.prescriptions = tabs.filter(tab => tab.name !== targetName)
|
|
567
|
+
|
|
568
|
+ for (let i = 0; i < this.prescriptions.length; i++) {
|
|
569
|
+ if (activeName == this.prescriptions[i].name) {
|
|
570
|
+ this.curPrescriptions = this.prescriptions[i]
|
|
571
|
+ if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
|
|
572
|
+ this.curStatus = 1
|
|
573
|
+ }
|
|
574
|
+ if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0){
|
|
575
|
+ this.curStatus = 2
|
492
|
576
|
}
|
493
|
577
|
}
|
494
|
|
- })
|
|
578
|
+ }
|
|
579
|
+ if (this.prescriptions.length == 0) {
|
|
580
|
+ this.curPrescriptions = []
|
|
581
|
+ this.curStatus = 0
|
|
582
|
+ }
|
495
|
583
|
}
|
496
|
|
- this.editableTabsValue = activeName
|
497
|
|
- this.prescriptions = tabs.filter(tab => tab.name !== targetName)
|
498
|
|
-
|
499
|
|
- for (let i = 0; i < this.prescriptions.length; i++) {
|
500
|
|
- if (activeName == this.prescriptions[i].name) {
|
501
|
|
- this.curPrescriptions = this.prescriptions[i]
|
502
|
|
- if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
|
503
|
|
- this.curStatus = 1
|
504
|
|
- }
|
505
|
|
- if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0){
|
506
|
|
- this.curStatus = 2
|
507
|
|
- }
|
|
584
|
+ else {
|
|
585
|
+ let params = {
|
|
586
|
+ 'id': id
|
508
|
587
|
}
|
|
588
|
+ delHisPrescription(params).then(response => {
|
|
589
|
+ if (response.data.state == 1) {
|
|
590
|
+ this.$message.success('删除成功')
|
|
591
|
+ let tabs = this.prescriptions
|
|
592
|
+ let activeName = this.editableTabsValue
|
|
593
|
+ if (activeName === targetName) {
|
|
594
|
+ tabs.forEach((tab, index) => {
|
|
595
|
+ if (tab.name === targetName) {
|
|
596
|
+ let nextTab = tabs[index + 1] || tabs[index - 1]
|
|
597
|
+ if (nextTab) {
|
|
598
|
+ activeName = nextTab.name
|
|
599
|
+
|
|
600
|
+ }
|
|
601
|
+ }
|
|
602
|
+ })
|
|
603
|
+ }
|
|
604
|
+ this.editableTabsValue = activeName
|
|
605
|
+ this.prescriptions = tabs.filter(tab => tab.name !== targetName)
|
|
606
|
+
|
|
607
|
+ for (let i = 0; i < this.prescriptions.length; i++) {
|
|
608
|
+ if (activeName == this.prescriptions[i].name) {
|
|
609
|
+ this.curPrescriptions = this.prescriptions[i]
|
|
610
|
+ if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
|
|
611
|
+ this.curStatus = 1
|
|
612
|
+ }
|
|
613
|
+ if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0){
|
|
614
|
+ this.curStatus = 2
|
|
615
|
+ }
|
|
616
|
+ }
|
|
617
|
+ }
|
|
618
|
+ if (this.prescriptions.length == 0) {
|
|
619
|
+ this.curPrescriptions = []
|
|
620
|
+ this.curStatus = 0
|
|
621
|
+ }
|
|
622
|
+ } else {
|
|
623
|
+ this.$message.success(response.data.msg)
|
|
624
|
+ }
|
|
625
|
+ })
|
509
|
626
|
}
|
510
|
|
- if (this.prescriptions.length == 0) {
|
511
|
|
- this.curPrescriptions = []
|
512
|
|
- this.curStatus = 0
|
|
627
|
+
|
|
628
|
+ })
|
|
629
|
+ .catch(() => {});
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+ },
|
|
634
|
+ clickTab(index) {
|
|
635
|
+ if (index == 1){
|
|
636
|
+ if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0) {
|
|
637
|
+ this.$message.error("当前处方为项目,无法切换为药品,需要新开处方")
|
|
638
|
+ return
|
513
|
639
|
}
|
514
|
|
- } else {
|
515
|
|
- let params = {
|
516
|
|
- 'id': id
|
|
640
|
+ }else{
|
|
641
|
+ if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
|
|
642
|
+ this.$message.error("当前处方为药品,无法切换为项目,需要新开处方")
|
|
643
|
+ return
|
517
|
644
|
}
|
518
|
|
- delHisPrescription(params).then(response => {
|
519
|
|
- if (response.data.state == 1) {
|
520
|
|
- this.$message.success('删除成功')
|
521
|
|
- } else {
|
522
|
|
- this.$message.success(response.data.msg)
|
523
|
|
- }
|
524
|
|
- })
|
|
645
|
+
|
|
646
|
+
|
525
|
647
|
}
|
526
|
|
- },
|
527
|
|
- clickTab(index) {
|
|
648
|
+
|
528
|
649
|
if (index == 1) {
|
|
650
|
+
|
|
651
|
+ this.teamList = []
|
|
652
|
+ this.$refs.tables.clearSelection()
|
|
653
|
+
|
529
|
654
|
this.showOne = true
|
530
|
655
|
this.showTwo = false
|
531
|
656
|
this.$nextTick(() => {
|
|
@@ -534,6 +659,9 @@
|
534
|
659
|
this.customTabIndex = 1
|
535
|
660
|
}
|
536
|
661
|
if (index == 2) {
|
|
662
|
+ this.curDrugs = []
|
|
663
|
+ this.$refs.multipleTable.clearSelection()
|
|
664
|
+
|
537
|
665
|
this.showTwo = true
|
538
|
666
|
this.showOne = false
|
539
|
667
|
this.$nextTick(() => {
|
|
@@ -545,17 +673,22 @@
|
545
|
673
|
|
546
|
674
|
//用来区分处方属于项目还是药品
|
547
|
675
|
if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
|
548
|
|
-
|
549
|
676
|
this.customTabIndex = 1
|
|
677
|
+ this.curStatus =1
|
|
678
|
+
|
550
|
679
|
}
|
551
|
680
|
if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0) {
|
552
|
|
-
|
553
|
681
|
this.customTabIndex = 2
|
|
682
|
+ this.curStatus =2
|
554
|
683
|
}
|
555
|
684
|
if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
|
556
|
685
|
// this.customTabIndex = this.rightTab
|
557
|
686
|
this.customTabIndex = index
|
|
687
|
+ this.curStatus =0
|
|
688
|
+
|
558
|
689
|
}
|
|
690
|
+
|
|
691
|
+
|
559
|
692
|
}, changeAllGoodInfoTableData: function(selection) {
|
560
|
693
|
this.curDrugs = selection
|
561
|
694
|
}, addCharges() {
|
|
@@ -565,10 +698,6 @@
|
565
|
698
|
this.curDrugs = selection
|
566
|
699
|
},
|
567
|
700
|
comfirm() {
|
568
|
|
- console.log(this.curStatus)
|
569
|
|
- console.log(this.rightTab)
|
570
|
|
- console.log(this.curPrescriptions)
|
571
|
|
-
|
572
|
701
|
|
573
|
702
|
if (this.curStatus == 1 && this.rightTab == 2) {
|
574
|
703
|
this.$message.error('改处方是药品,无法添加项目')
|
|
@@ -584,15 +713,44 @@
|
584
|
713
|
return
|
585
|
714
|
}
|
586
|
715
|
|
|
716
|
+ for (let i = 0; i < this.teamList.length; i++){
|
|
717
|
+ for (let a = 0; a < this.curPrescriptions.project.length; a++){
|
|
718
|
+ if(this.teamList[i].id == this.curPrescriptions.project[a].project_id){
|
|
719
|
+ this.$message.error('改处方存在相同的项目,无法添加相同的项目')
|
|
720
|
+ return
|
|
721
|
+
|
|
722
|
+ }
|
|
723
|
+ }
|
|
724
|
+ }
|
|
725
|
+
|
|
726
|
+ console.log(this.curDrugs)
|
|
727
|
+ console.log(this.curPrescriptions.advices)
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+ for (let i = 0; i < this.curDrugs.length; i++){
|
|
731
|
+ for (let a = 0; a < this.curPrescriptions.advices.length; a++){
|
|
732
|
+ if(this.curDrugs[i].id == this.curPrescriptions.advices[i].id){
|
|
733
|
+ this.$message.error('改处方存在相同的药品,无法添加相同的药品')
|
|
734
|
+ return
|
|
735
|
+
|
|
736
|
+ }
|
|
737
|
+ }
|
|
738
|
+ }
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
587
|
743
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
588
|
744
|
if (this.prescriptions[i].name == this.editableTabsValue) {
|
589
|
745
|
var temp = this.deepClone(this.curDrugs)
|
590
|
746
|
var temp2 = this.deepClone(this.teamList)
|
591
|
747
|
|
|
748
|
+ console.log(temp2)
|
592
|
749
|
if (temp.length > 0) {
|
593
|
750
|
for (let b = 0; b < temp.length; b++) {
|
594
|
751
|
let obj = {
|
595
|
752
|
advice_id: 0,
|
|
753
|
+ id: temp[b].id,
|
596
|
754
|
drug_name: temp[b].drug_name,
|
597
|
755
|
single_dose: temp[b].single_dose,
|
598
|
756
|
delivery_way: temp[b].delivery_way,
|
|
@@ -602,7 +760,8 @@
|
602
|
760
|
prescribing_number: temp[b].prescribing_number,
|
603
|
761
|
single_dose_unit: temp[b].min_unit,
|
604
|
762
|
prescribing_number_unit: temp[b].min_unit,
|
605
|
|
- min_unit: temp[b].min_unit
|
|
763
|
+ min_unit: temp[b].min_unit,
|
|
764
|
+ medical_insurance_number:temp[b].medical_insurance_number,
|
606
|
765
|
|
607
|
766
|
}
|
608
|
767
|
this.prescriptions[i].advices.push(obj)
|
|
@@ -612,10 +771,26 @@
|
612
|
771
|
|
613
|
772
|
if (temp2.length > 0) {
|
614
|
773
|
for (let b = 0; b < temp2.length; b++) {
|
615
|
|
- this.prescriptions[i].project.push(temp2[b])
|
|
774
|
+ let obj = {
|
|
775
|
+ id: 0,
|
|
776
|
+ project_id: temp2[b].id,
|
|
777
|
+ project_name: temp2[b].project_name,
|
|
778
|
+ statistical_classification: temp2[b].statistical_classification,
|
|
779
|
+ single_dose: temp2[b].single_dose,
|
|
780
|
+ delivery_way: temp2[b].delivery_way,
|
|
781
|
+ execution_frequency: temp2[b].execution_frequency,
|
|
782
|
+ number_days: temp2[b].number_days,
|
|
783
|
+ total:temp2[b].total,
|
|
784
|
+ price:temp2[b].price,
|
|
785
|
+ remark:"",
|
|
786
|
+ medical_code:temp2[b].medical_code,
|
|
787
|
+ }
|
|
788
|
+ console.log(obj)
|
|
789
|
+ this.prescriptions[i].project.push(obj)
|
616
|
790
|
}
|
617
|
791
|
this.curStatus = 2
|
618
|
792
|
}
|
|
793
|
+
|
619
|
794
|
this.curPrescriptions = this.prescriptions[i]
|
620
|
795
|
this.$refs.multipleTable.clearSelection()
|
621
|
796
|
this.$refs.tables.clearSelection()
|