|
|
@@ -351,7 +351,13 @@ export default {
|
|
351
|
351
|
default() {
|
|
352
|
352
|
return {}
|
|
353
|
353
|
}
|
|
354
|
|
- }
|
|
|
354
|
+ },
|
|
|
355
|
+ patientDatas: {
|
|
|
356
|
+ type: Object,
|
|
|
357
|
+ default() {
|
|
|
358
|
+ return {}
|
|
|
359
|
+ }
|
|
|
360
|
+ },
|
|
355
|
361
|
},
|
|
356
|
362
|
|
|
357
|
363
|
data() {
|
|
|
@@ -484,6 +490,14 @@ export default {
|
|
484
|
490
|
}
|
|
485
|
491
|
},
|
|
486
|
492
|
watch: {
|
|
|
493
|
+ "patientDatas":function() {
|
|
|
494
|
+ console.log(this.patientDatas,'patientDatapatientDatapatientDat888888888888')
|
|
|
495
|
+ this.zsyh = this.patientDatas.zsyh
|
|
|
496
|
+ this.ruleForm.F_Customer = this.patientDatas.hzxm
|
|
|
497
|
+ this.ruleForm.F_FullName = this.patientDatas.hzxm
|
|
|
498
|
+ this.ruleForm.F_IDNumber = this.patientDatas.zjhm
|
|
|
499
|
+ this.ruleForm.F_CusAddress = this.patientDatas.jtdz
|
|
|
500
|
+ },
|
|
487
|
501
|
'orderTypeData.F_Type2': function() {
|
|
488
|
502
|
this.ruleForm.clbm = ''
|
|
489
|
503
|
this.deptidArr1 = []
|
|
|
@@ -533,7 +547,6 @@ export default {
|
|
533
|
547
|
// this.callinNum = '15638114211'
|
|
534
|
548
|
if (this.callinNum) {
|
|
535
|
549
|
this.ruleForm.F_Phon = this.callinNum
|
|
536
|
|
- console.log(this.callinNum, 'callinNumcallinNumcallinNum')
|
|
537
|
550
|
this.getOldMsg() // 老患者信息
|
|
538
|
551
|
}
|
|
539
|
552
|
this.cid = this.callid
|
|
|
@@ -544,7 +557,6 @@ export default {
|
|
544
|
557
|
this.OrderDetail()
|
|
545
|
558
|
}
|
|
546
|
559
|
if (this.iswomanage) {
|
|
547
|
|
- // this.ruleForm.F_ComplaintSource = ''
|
|
548
|
560
|
this.ruleForm.F_AppointmentTime = ''
|
|
549
|
561
|
}
|
|
550
|
562
|
this.gettsSelect()
|
|
|
@@ -582,29 +594,10 @@ export default {
|
|
582
|
594
|
this.ruleForm.F_IDNumber = decrypt(this.ruleForm.F_IDNumberShow)
|
|
583
|
595
|
this.ruleForm.F_CusAddress = decrypt(this.ruleForm.F_CusAddressShow)
|
|
584
|
596
|
this.clickbefore = 1
|
|
585
|
|
- // const params = {
|
|
586
|
|
- // id: this.customerid
|
|
587
|
|
- // }
|
|
588
|
|
- // const res = await GetCompleteCustomer(params)
|
|
589
|
|
- // if (res && res.data) {
|
|
590
|
|
- // this.ruleForm.F_IDNumber = res.data.F_IdCardShow
|
|
591
|
|
- // this.ruleForm.F_CusAddress = res.data.F_AddressShow
|
|
592
|
|
- // this.clickbefore = 1
|
|
593
|
|
- // }
|
|
594
|
597
|
} else if (this.zsyh) {
|
|
595
|
598
|
this.ruleForm.F_IDNumber = decrypt(window.localStorage.getItem('huancardShow'))
|
|
596
|
599
|
this.ruleForm.F_CusAddress = decrypt(window.localStorage.getItem('huanaddressShow'))
|
|
597
|
600
|
this.clickbefore = 1
|
|
598
|
|
- // const params = {
|
|
599
|
|
- // zsyh: window.localStorage.getItem("zsyh")
|
|
600
|
|
- // }
|
|
601
|
|
- // const res = await GetPatientModel(params)
|
|
602
|
|
- // if (res && res.rows && res.rows.length > 0) {
|
|
603
|
|
- // const data = res.rows[0]
|
|
604
|
|
- // this.ruleForm.F_IDNumber = data.zjhmShow
|
|
605
|
|
- // this.ruleForm.F_CusAddress = data.jtdzShow
|
|
606
|
|
- // this.clickbefore = 1
|
|
607
|
|
- // }
|
|
608
|
601
|
}
|
|
609
|
602
|
},
|
|
610
|
603
|
getOldMsg() {
|
|
|
@@ -646,14 +639,12 @@ export default {
|
|
646
|
639
|
const this_ = this
|
|
647
|
640
|
this_.ruleForm.F_FullName = window.localStorage.getItem('huanxm') || ''
|
|
648
|
641
|
}, 1000)
|
|
649
|
|
- // this.ruleForm.F_FullName = window.localStorage.getItem('huanxm')
|
|
650
|
642
|
}
|
|
651
|
643
|
if (!this.ruleForm.F_IDNumber) {
|
|
652
|
644
|
setTimeout(() => {
|
|
653
|
645
|
const this_ = this
|
|
654
|
646
|
this_.ruleForm.F_IDNumber = window.localStorage.getItem('huancard') || ''
|
|
655
|
647
|
}, 1000)
|
|
656
|
|
- // this.ruleForm.F_IDNumber = window.localStorage.getItem('huancard')
|
|
657
|
648
|
}
|
|
658
|
649
|
if (!this.ruleForm.F_CusAddress) {
|
|
659
|
650
|
setTimeout(() => {
|
|
|
@@ -661,7 +652,6 @@ export default {
|
|
661
|
652
|
this_.ruleForm.F_CusAddress =
|
|
662
|
653
|
window.localStorage.getItem('huanaddress') || ''
|
|
663
|
654
|
}, 1000)
|
|
664
|
|
- // this.ruleForm.F_CusAddress = window.localStorage.getItem('huanaddress')
|
|
665
|
655
|
}
|
|
666
|
656
|
})
|
|
667
|
657
|
},
|