|
@@ -3279,8 +3279,8 @@
|
3279
|
3279
|
for (let c = 0; c < big_prescriptions.length; c++) {
|
3280
|
3280
|
const inner_prescription = []
|
3281
|
3281
|
for (let i = 0; i < response.data.data.prescription.length; i++) {
|
3282
|
|
- var prescription = response.data.data.prescription[i]
|
3283
|
|
-
|
|
3282
|
+ var prescription = JSON.parse(JSON.stringify(response.data.data.prescription))[i]
|
|
3283
|
+ console.log('prescription',prescription)
|
3284
|
3284
|
if (big_prescriptions[c].med_type == prescription.med_type) {
|
3285
|
3285
|
const tempAdvice = []
|
3286
|
3286
|
const tempProject = []
|
|
@@ -3356,18 +3356,18 @@
|
3356
|
3356
|
order_status: prescription.order_status,
|
3357
|
3357
|
type: prescription.type,
|
3358
|
3358
|
med_type: prescription.med_type,
|
3359
|
|
- order: prescription.order
|
|
3359
|
+ order: JSON.parse(JSON.stringify(prescription.order))
|
3360
|
3360
|
}
|
3361
|
3361
|
// inner_prescription.push(obj)
|
3362
|
3362
|
big_prescriptions[c].prescriptions.push(obj)
|
3363
|
|
-
|
|
3363
|
+ console.log('obj',obj)
|
3364
|
3364
|
this.prescriptions.push(obj)
|
3365
|
3365
|
}
|
3366
|
3366
|
}
|
3367
|
3367
|
}
|
3368
|
|
-
|
3369
|
|
- this.big_prescriptions = big_prescriptions
|
3370
|
|
-
|
|
3368
|
+ console.log('000000002222222',big_prescriptions)
|
|
3369
|
+ this.big_prescriptions = JSON.parse(JSON.stringify(big_prescriptions))
|
|
3370
|
+ console.log('00000000',this.big_prescriptions)
|
3371
|
3371
|
for (let i = 0; i < this.big_prescriptions.length; i++) {
|
3372
|
3372
|
if (this.big_prescriptions[i].med_type == '11') {
|
3373
|
3373
|
this.big_prescriptions[i]['is_true'] = 1
|
|
@@ -3382,7 +3382,7 @@
|
3382
|
3382
|
prescriptions: []
|
3383
|
3383
|
}
|
3384
|
3384
|
const arr = []
|
3385
|
|
- arr.push(this.big_prescriptions[i].prescriptions[b])
|
|
3385
|
+ arr.push(JSON.parse(JSON.stringify(this.big_prescriptions))[i].prescriptions[b])
|
3386
|
3386
|
obj.prescriptions = arr
|
3387
|
3387
|
this.big_prescriptions.push(obj)
|
3388
|
3388
|
}
|
|
@@ -3396,23 +3396,24 @@
|
3396
|
3396
|
this.big_prescriptions.splice(i, 1)
|
3397
|
3397
|
}
|
3398
|
3398
|
}
|
3399
|
|
- // console.log(this.big_prescriptions)
|
|
3399
|
+ console.log(22222,this.big_prescriptions)
|
|
3400
|
+ console.log(333333,this.big_prescriptions[0].prescriptions[0].order.order_status)
|
3400
|
3401
|
|
3401
|
3402
|
for (let i = 0; i < this.big_prescriptions.length; i++) {
|
3402
|
3403
|
if (this.big_prescriptions[i].prescriptions.length > 0) {
|
3403
|
|
- this.big_prescriptions[i]['curPrescriptions'] = this.big_prescriptions[i].prescriptions[0]
|
|
3404
|
+ this.big_prescriptions[i]['curPrescriptions'] = JSON.parse(JSON.stringify(this.big_prescriptions[i].prescriptions[0]))
|
3404
|
3405
|
} else {
|
3405
|
3406
|
this.big_prescriptions[i]['curPrescriptions'] = {}
|
3406
|
3407
|
}
|
3407
|
|
- this.big_prescriptions[i]['total'] = this.getTotalThree(this.big_prescriptions[i])
|
|
3408
|
+ this.big_prescriptions[i]['total'] = this.getTotalThree(JSON.parse(JSON.stringify(this.big_prescriptions[i])))
|
3408
|
3409
|
}
|
3409
|
3410
|
|
3410
|
3411
|
if (this.big_prescriptions.length > 0) {
|
3411
|
3412
|
this.editableTabsValue = this.getPName(this.big_prescriptions[0].med_type, 1)
|
3412
|
3413
|
}
|
3413
|
3414
|
|
3414
|
|
- console.log(this.big_prescriptions)
|
3415
|
|
- console.log(this.big_prescriptions[0].curPrescriptions.order_status)
|
|
3415
|
+ console.log(333,this.big_prescriptions)
|
|
3416
|
+ console.log(444,this.big_prescriptions[0].curPrescriptions.order.order_status)
|
3416
|
3417
|
|
3417
|
3418
|
//
|
3418
|
3419
|
// if (this.prescriptions.length > 0) {
|