|
@@ -2576,7 +2576,6 @@ export default {
|
2576
|
2576
|
for(let j=0;j<this.prescriptions[i].advices.length;j++){
|
2577
|
2577
|
arr.push(this.prescriptions[i].advices[j])
|
2578
|
2578
|
}
|
2579
|
|
- console.log("arr99999999999999",arr)
|
2580
|
2579
|
if(arr.length > 0){
|
2581
|
2580
|
let objInfo = {};
|
2582
|
2581
|
arr.forEach((item, index) => {
|
|
@@ -2603,7 +2602,6 @@ export default {
|
2603
|
2602
|
}
|
2604
|
2603
|
}
|
2605
|
2604
|
}
|
2606
|
|
- console.log("河滨232332newArr",newArr)
|
2607
|
2605
|
if(newArr.length >0){
|
2608
|
2606
|
for(let i=0;i<newArr.length;i++){
|
2609
|
2607
|
for(let j=0;j<newArr[i].child.length;j++){
|
|
@@ -2619,7 +2617,6 @@ export default {
|
2619
|
2617
|
}
|
2620
|
2618
|
}
|
2621
|
2619
|
}
|
2622
|
|
- console.log("wodeshju",newArr)
|
2623
|
2620
|
for(let i=0;i<newArr.length;i++){
|
2624
|
2621
|
for(let j=0;j<newArr[i].child.length;j++){
|
2625
|
2622
|
newArr[i].out_count += newArr[i].child[j].prescribing_number_total
|
|
@@ -2643,7 +2640,6 @@ export default {
|
2643
|
2640
|
|
2644
|
2641
|
|
2645
|
2642
|
|
2646
|
|
- console.log("newArr",newArr )
|
2647
|
2643
|
}
|
2648
|
2644
|
}
|
2649
|
2645
|
|
|
@@ -2658,7 +2654,6 @@ export default {
|
2658
|
2654
|
arr_Two.push(this.prescriptions[i].advices[j])
|
2659
|
2655
|
}
|
2660
|
2656
|
}
|
2661
|
|
- console.log("编辑处方",arr_one)
|
2662
|
2657
|
if(arr_one.length > 0){
|
2663
|
2658
|
|
2664
|
2659
|
let objInfo = {};
|
|
@@ -2677,7 +2672,6 @@ export default {
|
2677
|
2672
|
}
|
2678
|
2673
|
});
|
2679
|
2674
|
let newArr = Object.values(objInfo);
|
2680
|
|
- console.log("newArr",newArr)
|
2681
|
2675
|
|
2682
|
2676
|
for(let i=0;i<arr_one.length;i++){
|
2683
|
2677
|
for(let j=0;j<newArr.length;j++){
|
|
@@ -2697,7 +2691,6 @@ export default {
|
2697
|
2691
|
}
|
2698
|
2692
|
}
|
2699
|
2693
|
}
|
2700
|
|
- console.log("new233223322323",newArr)
|
2701
|
2694
|
if(newArr.length > 0 && this.org_id != 10206 && this.org_id != 0){
|
2702
|
2695
|
for(let i=0;i<newArr.length;i++){
|
2703
|
2696
|
if(newArr[i].is_user!=1){
|
|
@@ -2822,7 +2815,6 @@ export default {
|
2822
|
2815
|
|
2823
|
2816
|
}
|
2824
|
2817
|
}
|
2825
|
|
- console.log("params23332232323232323------",data)
|
2826
|
2818
|
createHisPrescription(data, params).then(response => {
|
2827
|
2819
|
if (response.data.state == 1) {
|
2828
|
2820
|
this.$emit('change', this.patientInfo.id)
|
|
@@ -2932,7 +2924,6 @@ export default {
|
2932
|
2924
|
},
|
2933
|
2925
|
addTab(targetName) {
|
2934
|
2926
|
|
2935
|
|
- console.log("this.prescriptionsaaaaaa",this.prescriptions)
|
2936
|
2927
|
for(let i = 0; i < this.prescriptions.length; i++){
|
2937
|
2928
|
if (this.prescriptions[i].is_medicine_status) {
|
2938
|
2929
|
this.$message.error('处方中包含已发药处方,无法新增')
|
|
@@ -3023,7 +3014,6 @@ export default {
|
3023
|
3014
|
|
3024
|
3015
|
},
|
3025
|
3016
|
removeTab(targetName) {
|
3026
|
|
- console.log("1111111111111111")
|
3027
|
3017
|
if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 5 || this.curPrescriptions.is_medicine_status) {
|
3028
|
3018
|
this.$message.error('该处方已经结算或者记账或者已发药,无法删除')
|
3029
|
3019
|
return
|
|
@@ -3034,7 +3024,6 @@ export default {
|
3034
|
3024
|
type: 'warning'
|
3035
|
3025
|
}).then(() => {
|
3036
|
3026
|
let id = 0
|
3037
|
|
- console.log("this.prescriptions???",this.prescriptions)
|
3038
|
3027
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
3039
|
3028
|
if (this.prescriptions[i].name == targetName) {
|
3040
|
3029
|
id = this.prescriptions[i].id
|
|
@@ -3069,12 +3058,9 @@ export default {
|
3069
|
3058
|
}
|
3070
|
3059
|
}
|
3071
|
3060
|
}
|
3072
|
|
- console.log("oo233ooooosdada",this.prescriptions)
|
3073
|
3061
|
if (this.prescriptions.length == 0) {
|
3074
|
|
- console.log("this.curPrescrip的tions前",this.curPrescriptions)
|
3075
|
3062
|
this.curPrescriptions = []
|
3076
|
3063
|
this.curStatus = 0
|
3077
|
|
- console.log("this.curPrescrip的tions后",this.curPrescriptions)
|
3078
|
3064
|
}
|
3079
|
3065
|
this.$parent.getInitDataOne(this.prescriptions)
|
3080
|
3066
|
} else {
|
|
@@ -3086,8 +3072,6 @@ export default {
|
3086
|
3072
|
this.$message.success('删除成功!')
|
3087
|
3073
|
let tabs = this.prescriptions
|
3088
|
3074
|
let activeName = this.editableTabsValue
|
3089
|
|
- console.log("targetName",targetName)
|
3090
|
|
- console.log("activeName",activeName)
|
3091
|
3075
|
if (activeName === targetName) {
|
3092
|
3076
|
tabs.forEach((tab, index) => {
|
3093
|
3077
|
if (tab.name === targetName) {
|
|
@@ -3121,7 +3105,6 @@ export default {
|
3121
|
3105
|
|
3122
|
3106
|
this.$parent.getInitData()
|
3123
|
3107
|
this.$parent.getInitDataOne(this.prescriptions)
|
3124
|
|
- console.log("删除后的数据是",this.prescriptions)
|
3125
|
3108
|
} else {
|
3126
|
3109
|
this.$message.error(response.data.msg)
|
3127
|
3110
|
}
|
|
@@ -3209,7 +3192,6 @@ export default {
|
3209
|
3192
|
this.$refs.additionalCharges.show()
|
3210
|
3193
|
},
|
3211
|
3194
|
selectDrugs(selection, row) {
|
3212
|
|
- console.log("row233232233232",row)
|
3213
|
3195
|
// if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
|
3214
|
3196
|
// if (row.count <= 0) {
|
3215
|
3197
|
// if (selection) {
|
|
@@ -3401,7 +3383,6 @@ export default {
|
3401
|
3383
|
var temp2 = this.deepClone(this.teamList)
|
3402
|
3384
|
|
3403
|
3385
|
var temp3 = this.deepClone(templateDrugs)
|
3404
|
|
- console.log("我的23323232232323232323哈哈哈哈哈哈",temp)
|
3405
|
3386
|
if (temp3.length > 0) {
|
3406
|
3387
|
for (let b = 0; b < temp3.length; b++) {
|
3407
|
3388
|
let obj = {
|
|
@@ -3513,7 +3494,6 @@ export default {
|
3513
|
3494
|
if (obj.type == 3) {
|
3514
|
3495
|
obj.single_dose = 1
|
3515
|
3496
|
}
|
3516
|
|
- console.log('项目obj', temp2)
|
3517
|
3497
|
this.prescriptions[i].project.push(obj)
|
3518
|
3498
|
}
|
3519
|
3499
|
this.curStatus = 2
|
|
@@ -3534,7 +3514,6 @@ export default {
|
3534
|
3514
|
this.teamList = row
|
3535
|
3515
|
},
|
3536
|
3516
|
selectChange(selection, row) {
|
3537
|
|
- console.log('row', selection)
|
3538
|
3517
|
// if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
|
3539
|
3518
|
// if (row.stock_count <= 0) {
|
3540
|
3519
|
// if (row.type == 3) {
|
|
@@ -3608,7 +3587,6 @@ export default {
|
3608
|
3587
|
getHisProject().then(response => {
|
3609
|
3588
|
if (response.data.state == 1) {
|
3610
|
3589
|
var project = response.data.data.project
|
3611
|
|
- console.log("项目列表",project)
|
3612
|
3590
|
for (let i = 0; i < project.length; i++) {
|
3613
|
3591
|
let obj = {
|
3614
|
3592
|
id: project[i].id,
|
|
@@ -3632,7 +3610,6 @@ export default {
|
3632
|
3610
|
zuobiao_stock_num:0,
|
3633
|
3611
|
|
3634
|
3612
|
}
|
3635
|
|
- // console.log('hhhhh',obj);
|
3636
|
3613
|
this.tabProject.push(obj)
|
3637
|
3614
|
}
|
3638
|
3615
|
|
|
@@ -3681,10 +3658,7 @@ export default {
|
3681
|
3658
|
}
|
3682
|
3659
|
}
|
3683
|
3660
|
}
|
3684
|
|
- console.log("=========")
|
3685
|
|
- console.log(this.zuobiao_project)
|
3686
|
|
- console.log( this.tabProject)
|
3687
|
|
- console.log("=========")
|
|
3661
|
+
|
3688
|
3662
|
this.allProject = this.tabProject
|
3689
|
3663
|
// console.log('cccc',this.allProject);
|
3690
|
3664
|
}
|
|
@@ -3830,12 +3804,10 @@ export default {
|
3830
|
3804
|
if (this.dayorMonth == 'day') {
|
3831
|
3805
|
this.$emit('day')
|
3832
|
3806
|
} else if (this.dayorMonth == 'month') {
|
3833
|
|
- console.log('~~~~~~')
|
3834
|
3807
|
let form = {
|
3835
|
3808
|
id: this.patientInfo.id,
|
3836
|
3809
|
his_patient_id: this.hisPatientInfo.id
|
3837
|
3810
|
}
|
3838
|
|
- console.log(form)
|
3839
|
3811
|
this.$emit('month', form)
|
3840
|
3812
|
}
|
3841
|
3813
|
},
|