|
@@ -378,6 +378,7 @@
|
378
|
378
|
</div>
|
379
|
379
|
|
380
|
380
|
</div>
|
|
381
|
+
|
381
|
382
|
<div class="printCell" style="display:flex;">
|
382
|
383
|
<span style="display: block;width: 45%;">
|
383
|
384
|
床号:{{ main_collection.number.number }}
|
|
@@ -639,6 +640,11 @@
|
639
|
640
|
血流量:{{ main_collection.prescription.blood_flow_volume }} ml/min
|
640
|
641
|
</span>
|
641
|
642
|
</div>
|
|
643
|
+ <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
|
|
644
|
+ <div style="">透析时长:
|
|
645
|
+ <span>{{main_collection.prescription.dialysis_duration_hour }}小时 <span v-if="main_collection.prescription.dialysis_duration_minute>0">{{main_collection.prescription.dialysis_duration_minute }}分</span></span>
|
|
646
|
+ </div>
|
|
647
|
+ </div>
|
642
|
648
|
</div>
|
643
|
649
|
</div>
|
644
|
650
|
</div>
|
|
@@ -1990,9 +1996,11 @@ export default {
|
1990
|
1996
|
// }
|
1991
|
1997
|
// tempAddition.push(obj)
|
1992
|
1998
|
// }
|
|
1999
|
+ console.log("test2")
|
|
2000
|
+
|
1993
|
2001
|
|
1994
|
2002
|
var preTime = nowTime
|
1995
|
|
- if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
|
|
2003
|
+ if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375 && this.$store.getters.xt_user.org.id != 0) {
|
1996
|
2004
|
if (prescription.pre_time == 0) {
|
1997
|
2005
|
if (this.schedule.schedule_type == 1) {
|
1998
|
2006
|
if (this.org_id == 10028) {
|
|
@@ -2016,9 +2024,27 @@ export default {
|
2016
|
2024
|
} else {
|
2017
|
2025
|
preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
|
2018
|
2026
|
}
|
|
2027
|
+
|
2019
|
2028
|
} else {
|
|
2029
|
+ console.log("test")
|
2020
|
2030
|
if (prescription.pre_time == 0) {
|
2021
|
|
- preTime = nowTime
|
|
2031
|
+ console.log("++=========")
|
|
2032
|
+ console.log(nowTime.split(" ")[0])
|
|
2033
|
+ console.log(this.record_date)
|
|
2034
|
+ console.log("++=========")
|
|
2035
|
+
|
|
2036
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
2037
|
+ // preTime = this.record_date
|
|
2038
|
+ if(this.schedule.schedule_type == 1){
|
|
2039
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
2040
|
+ }else if(this.schedule.schedule_type == 2){
|
|
2041
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
2042
|
+
|
|
2043
|
+ }else{
|
|
2044
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
2045
|
+ }
|
|
2046
|
+
|
|
2047
|
+ }
|
2022
|
2048
|
} else {
|
2023
|
2049
|
preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
|
2024
|
2050
|
}
|
|
@@ -2039,8 +2065,9 @@ export default {
|
2039
|
2065
|
}
|
2040
|
2066
|
this.prescriptions.push(obj)
|
2041
|
2067
|
}
|
2042
|
|
- } else {
|
2043
|
2068
|
|
|
2069
|
+ } else {
|
|
2070
|
+ console.log("----======0000000")
|
2044
|
2071
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
2045
|
2072
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
2046
|
2073
|
var prescription = response.data.data.sch_prescriptions[i]
|
|
@@ -2183,6 +2210,20 @@ export default {
|
2183
|
2210
|
preTime = this.record_date + ' ' + '17:00'
|
2184
|
2211
|
}
|
2185
|
2212
|
}
|
|
2213
|
+ console.log("++=========")
|
|
2214
|
+ console.log(nowTime.split(" ")[0])
|
|
2215
|
+ console.log(this.record_date)
|
|
2216
|
+ console.log("++=========")
|
|
2217
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
2218
|
+ if(this.schedule.schedule_type == 1){
|
|
2219
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
2220
|
+ }else if(this.schedule.schedule_type == 2){
|
|
2221
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
2222
|
+
|
|
2223
|
+ }else{
|
|
2224
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
2225
|
+ }
|
|
2226
|
+ }
|
2186
|
2227
|
|
2187
|
2228
|
let index = i + 1
|
2188
|
2229
|
let obj = {
|
|
@@ -2217,6 +2258,25 @@ export default {
|
2217
|
2258
|
}
|
2218
|
2259
|
|
2219
|
2260
|
} else {
|
|
2261
|
+ console.log("----======1111111")
|
|
2262
|
+ console.log(nowTime.split(" ")[0])
|
|
2263
|
+ console.log(this.record_date)
|
|
2264
|
+
|
|
2265
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
2266
|
+ // preTime = this.record_date
|
|
2267
|
+ if(this.schedule.schedule_type == 1){
|
|
2268
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
2269
|
+ }else if(this.schedule.schedule_type == 2){
|
|
2270
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
2271
|
+
|
|
2272
|
+ }else{
|
|
2273
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
2274
|
+ }
|
|
2275
|
+
|
|
2276
|
+ }else{
|
|
2277
|
+
|
|
2278
|
+ preTime = nowTime
|
|
2279
|
+ }
|
2220
|
2280
|
let obj = {
|
2221
|
2281
|
id: 0,
|
2222
|
2282
|
name: '处方' + 1,
|
|
@@ -2224,7 +2284,7 @@ export default {
|
2224
|
2284
|
project: [],
|
2225
|
2285
|
addition: [],
|
2226
|
2286
|
order_status: 0,
|
2227
|
|
- pre_time: nowTime,
|
|
2287
|
+ pre_time: preTime,
|
2228
|
2288
|
med_type: '',
|
2229
|
2289
|
is_medicine_status: false
|
2230
|
2290
|
}
|
|
@@ -2523,7 +2583,17 @@ export default {
|
2523
|
2583
|
}
|
2524
|
2584
|
} else {
|
2525
|
2585
|
if (prescription.pre_time == 0) {
|
2526
|
|
- preTime = nowTime
|
|
2586
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
2587
|
+ if(this.schedule.schedule_type == 1){
|
|
2588
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
2589
|
+ }else if(this.schedule.schedule_type == 2){
|
|
2590
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
2591
|
+
|
|
2592
|
+ }else{
|
|
2593
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
2594
|
+ }
|
|
2595
|
+ }
|
|
2596
|
+ // preTime = nowTime
|
2527
|
2597
|
} else {
|
2528
|
2598
|
preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
|
2529
|
2599
|
}
|
|
@@ -2692,6 +2762,16 @@ export default {
|
2692
|
2762
|
preTime = this.record_date + ' ' + '17:00'
|
2693
|
2763
|
}
|
2694
|
2764
|
}
|
|
2765
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
2766
|
+ if(this.schedule.schedule_type == 1){
|
|
2767
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
2768
|
+ }else if(this.schedule.schedule_type == 2){
|
|
2769
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
2770
|
+
|
|
2771
|
+ }else{
|
|
2772
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
2773
|
+ }
|
|
2774
|
+ }
|
2695
|
2775
|
|
2696
|
2776
|
let index = i + 1
|
2697
|
2777
|
let obj = {
|
|
@@ -2724,6 +2804,18 @@ export default {
|
2724
|
2804
|
}
|
2725
|
2805
|
|
2726
|
2806
|
} else {
|
|
2807
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
2808
|
+ if(this.schedule.schedule_type == 1){
|
|
2809
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
2810
|
+ }else if(this.schedule.schedule_type == 2){
|
|
2811
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
2812
|
+
|
|
2813
|
+ }else{
|
|
2814
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
2815
|
+ }
|
|
2816
|
+ }else{
|
|
2817
|
+ preTime = nowTime
|
|
2818
|
+ }
|
2727
|
2819
|
let obj = {
|
2728
|
2820
|
id: 0,
|
2729
|
2821
|
name: '处方' + 1,
|
|
@@ -2731,7 +2823,7 @@ export default {
|
2731
|
2823
|
project: [],
|
2732
|
2824
|
addition: [],
|
2733
|
2825
|
order_status: 0,
|
2734
|
|
- pre_time: nowTime,
|
|
2826
|
+ pre_time: preTime,
|
2735
|
2827
|
med_type: ''
|
2736
|
2828
|
|
2737
|
2829
|
}
|
|
@@ -3091,7 +3183,17 @@ export default {
|
3091
|
3183
|
var preTime = ''
|
3092
|
3184
|
|
3093
|
3185
|
if (prescription.pre_time == 0) {
|
3094
|
|
- preTime = nowTime
|
|
3186
|
+ // preTime = nowTime
|
|
3187
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
3188
|
+ if(this.schedule.schedule_type == 1){
|
|
3189
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
3190
|
+ }else if(this.schedule.schedule_type == 2){
|
|
3191
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
3192
|
+
|
|
3193
|
+ }else{
|
|
3194
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
3195
|
+ }
|
|
3196
|
+ }
|
3095
|
3197
|
} else {
|
3096
|
3198
|
preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
|
3097
|
3199
|
}
|
|
@@ -3232,6 +3334,16 @@ export default {
|
3232
|
3334
|
}
|
3233
|
3335
|
|
3234
|
3336
|
var preTime = nowTime
|
|
3337
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
3338
|
+ if(this.schedule.schedule_type == 1){
|
|
3339
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
3340
|
+ }else if(this.schedule.schedule_type == 2){
|
|
3341
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
3342
|
+
|
|
3343
|
+ }else{
|
|
3344
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
3345
|
+ }
|
|
3346
|
+ }
|
3235
|
3347
|
|
3236
|
3348
|
let index = i + 1
|
3237
|
3349
|
let obj = {
|
|
@@ -3262,6 +3374,19 @@ export default {
|
3262
|
3374
|
}
|
3263
|
3375
|
|
3264
|
3376
|
} else {
|
|
3377
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
3378
|
+ if(this.schedule.schedule_type == 1){
|
|
3379
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
3380
|
+ }else if(this.schedule.schedule_type == 2){
|
|
3381
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
3382
|
+
|
|
3383
|
+ }else{
|
|
3384
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
3385
|
+ }
|
|
3386
|
+ }else{
|
|
3387
|
+
|
|
3388
|
+ preTime = nowTime
|
|
3389
|
+ }
|
3265
|
3390
|
let obj = {
|
3266
|
3391
|
id: 0,
|
3267
|
3392
|
name: '处方' + 1,
|
|
@@ -3269,7 +3394,7 @@ export default {
|
3269
|
3394
|
project: [],
|
3270
|
3395
|
addition: [],
|
3271
|
3396
|
order_status: 0,
|
3272
|
|
- pre_time: nowTime,
|
|
3397
|
+ pre_time: preTime,
|
3273
|
3398
|
med_type: ''
|
3274
|
3399
|
|
3275
|
3400
|
}
|
|
@@ -3614,7 +3739,17 @@ export default {
|
3614
|
3739
|
var preTime = ''
|
3615
|
3740
|
|
3616
|
3741
|
if (prescription.pre_time == 0) {
|
3617
|
|
- preTime = nowTime
|
|
3742
|
+ // preTime = nowTime
|
|
3743
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
3744
|
+ if(this.schedule.schedule_type == 1){
|
|
3745
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
3746
|
+ }else if(this.schedule.schedule_type == 2){
|
|
3747
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
3748
|
+
|
|
3749
|
+ }else{
|
|
3750
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
3751
|
+ }
|
|
3752
|
+ }
|
3618
|
3753
|
} else {
|
3619
|
3754
|
preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
|
3620
|
3755
|
}
|
|
@@ -3754,6 +3889,16 @@ export default {
|
3754
|
3889
|
}
|
3755
|
3890
|
|
3756
|
3891
|
var preTime = nowTime
|
|
3892
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
3893
|
+ if(this.schedule.schedule_type == 1){
|
|
3894
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
3895
|
+ }else if(this.schedule.schedule_type == 2){
|
|
3896
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
3897
|
+
|
|
3898
|
+ }else{
|
|
3899
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
3900
|
+ }
|
|
3901
|
+ }
|
3757
|
3902
|
|
3758
|
3903
|
let index = i + 1
|
3759
|
3904
|
let obj = {
|
|
@@ -3785,6 +3930,19 @@ export default {
|
3785
|
3930
|
}
|
3786
|
3931
|
|
3787
|
3932
|
} else {
|
|
3933
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
3934
|
+ if(this.schedule.schedule_type == 1){
|
|
3935
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
3936
|
+ }else if(this.schedule.schedule_type == 2){
|
|
3937
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
3938
|
+
|
|
3939
|
+ }else{
|
|
3940
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
3941
|
+ }
|
|
3942
|
+ }else{
|
|
3943
|
+
|
|
3944
|
+ preTime = nowTime
|
|
3945
|
+ }
|
3788
|
3946
|
let obj = {
|
3789
|
3947
|
id: 0,
|
3790
|
3948
|
name: '处方' + 1,
|
|
@@ -3792,7 +3950,7 @@ export default {
|
3792
|
3950
|
project: [],
|
3793
|
3951
|
addition: [],
|
3794
|
3952
|
order_status: 0,
|
3795
|
|
- pre_time: nowTime,
|
|
3953
|
+ pre_time: preTime,
|
3796
|
3954
|
med_type: ''
|
3797
|
3955
|
|
3798
|
3956
|
}
|
|
@@ -4250,8 +4408,19 @@ export default {
|
4250
|
4408
|
preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
|
4251
|
4409
|
}
|
4252
|
4410
|
} else {
|
|
4411
|
+ console.log("0---00000000000")
|
4253
|
4412
|
if (prescription.pre_time == 0) {
|
4254
|
|
- preTime = nowTime
|
|
4413
|
+ // preTime = nowTime
|
|
4414
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
4415
|
+ if(this.schedule.schedule_type == 1){
|
|
4416
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
4417
|
+ }else if(this.schedule.schedule_type == 2){
|
|
4418
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
4419
|
+
|
|
4420
|
+ }else{
|
|
4421
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
4422
|
+ }
|
|
4423
|
+ }
|
4255
|
4424
|
} else {
|
4256
|
4425
|
preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
|
4257
|
4426
|
}
|
|
@@ -4416,6 +4585,16 @@ export default {
|
4416
|
4585
|
preTime = this.record_date + ' ' + '17:00'
|
4417
|
4586
|
}
|
4418
|
4587
|
}
|
|
4588
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
4589
|
+ if(this.schedule.schedule_type == 1){
|
|
4590
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
4591
|
+ }else if(this.schedule.schedule_type == 2){
|
|
4592
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
4593
|
+
|
|
4594
|
+ }else{
|
|
4595
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
4596
|
+ }
|
|
4597
|
+ }
|
4419
|
4598
|
|
4420
|
4599
|
let index = i + 1
|
4421
|
4600
|
let obj = {
|
|
@@ -4453,6 +4632,21 @@ export default {
|
4453
|
4632
|
}
|
4454
|
4633
|
|
4455
|
4634
|
} else {
|
|
4635
|
+
|
|
4636
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
4637
|
+ if(this.schedule.schedule_type == 1){
|
|
4638
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
4639
|
+ }else if(this.schedule.schedule_type == 2){
|
|
4640
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
4641
|
+
|
|
4642
|
+ }else{
|
|
4643
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
4644
|
+ }
|
|
4645
|
+ }else{
|
|
4646
|
+ preTime = nowTime
|
|
4647
|
+ }
|
|
4648
|
+
|
|
4649
|
+
|
4456
|
4650
|
let obj = {
|
4457
|
4651
|
id: 0,
|
4458
|
4652
|
name: '处方' + 1,
|
|
@@ -4460,7 +4654,7 @@ export default {
|
4460
|
4654
|
project: [],
|
4461
|
4655
|
addition: [],
|
4462
|
4656
|
order_status: 0,
|
4463
|
|
- pre_time: nowTime,
|
|
4657
|
+ pre_time: preTime,
|
4464
|
4658
|
med_type: ''
|
4465
|
4659
|
|
4466
|
4660
|
}
|
|
@@ -4472,122 +4666,6 @@ export default {
|
4472
|
4666
|
|
4473
|
4667
|
this.prescriptions.push(obj)
|
4474
|
4668
|
|
4475
|
|
- // if(response.data.data.count <= 1 ){
|
4476
|
|
- // if(response.data.data.last_prescriptions.length == 0){
|
4477
|
|
- // let obj = {
|
4478
|
|
- // id: 0,
|
4479
|
|
- // name: '处方' + 1,
|
4480
|
|
- // advices: [],
|
4481
|
|
- // project: [],
|
4482
|
|
- // addition: [],
|
4483
|
|
- // order_status: 0,
|
4484
|
|
- // pre_time: nowTime,
|
4485
|
|
- //
|
4486
|
|
- // };
|
4487
|
|
- // this.prescriptions.push(obj)
|
4488
|
|
- //
|
4489
|
|
- //
|
4490
|
|
- // }
|
4491
|
|
- // else {
|
4492
|
|
- // for (let i = 0; i < response.data.data.last_prescriptions.length; i++) {
|
4493
|
|
- // var prescription = response.data.data.last_prescriptions[i];
|
4494
|
|
- // let tempAdvice = [];
|
4495
|
|
- // let tempProject = [];
|
4496
|
|
- // let tempAddition = [];
|
4497
|
|
- //
|
4498
|
|
- // //药品
|
4499
|
|
- // for (let b = 0; b < prescription.advices.length; b++) {
|
4500
|
|
- // let obj = {
|
4501
|
|
- // advice_id:0,
|
4502
|
|
- // drug_name: prescription.advices[b].advice_name,
|
4503
|
|
- // single_dose: prescription.advices[b].single_dose,
|
4504
|
|
- // delivery_way: prescription.advices[b].delivery_way,
|
4505
|
|
- // execution_frequency: prescription.advices[b].execution_frequency,
|
4506
|
|
- // retail_price: prescription.advices[b].price.toString(),
|
4507
|
|
- // remark: prescription.advices[b].remark,
|
4508
|
|
- // day: prescription.advices[b].day,
|
4509
|
|
- // prescribing_number: prescription.advices[b].prescribing_number.toString(),
|
4510
|
|
- // single_dose_unit: prescription.advices[b].single_dose_unit,
|
4511
|
|
- // prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
|
4512
|
|
- // medical_insurance_number: prescription.advices[b].med_list_codg,
|
4513
|
|
- // id: prescription.advices[b].drug_id,
|
4514
|
|
- // drug:prescription.advices[b].drug
|
4515
|
|
- //
|
4516
|
|
- // };
|
4517
|
|
- // tempAdvice.push(obj)
|
4518
|
|
- // }
|
4519
|
|
- //
|
4520
|
|
- // //项目
|
4521
|
|
- // for (let b = 0; b < prescription.project.length; b++) {
|
4522
|
|
- // let obj = {
|
4523
|
|
- // id:0,
|
4524
|
|
- // project_id: prescription.project[b].project_id,
|
4525
|
|
- // project_name: prescription.project[b].project.project_name,
|
4526
|
|
- // statistical_classification: prescription.project[b].project.statistical_classification,
|
4527
|
|
- // single_dose: prescription.project[b].single_dose,
|
4528
|
|
- // delivery_way: prescription.project[b].delivery_way,
|
4529
|
|
- // execution_frequency: prescription.project[b].execution_frequency,
|
4530
|
|
- // number_days: prescription.project[b].day,
|
4531
|
|
- // total: prescription.project[b].count.toString(),
|
4532
|
|
- // price: prescription.project[b].price,
|
4533
|
|
- // remark: prescription.project[b].remark,
|
4534
|
|
- // medical_code: prescription.project[b].project.medical_code,
|
4535
|
|
- // unit: prescription.project[b].project.unit,
|
4536
|
|
- // type: prescription.project[b].type
|
4537
|
|
- // };
|
4538
|
|
- //
|
4539
|
|
- // if (prescription.project[b].type == 2) {
|
4540
|
|
- // obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
4541
|
|
- // obj['medical_code'] = prescription.project[b].project.medical_code
|
4542
|
|
- // obj['project_name'] = prescription.project[b].project.project_name
|
4543
|
|
- //
|
4544
|
|
- // } else if (prescription.project[b].type == 3) {
|
4545
|
|
- // obj['statistical_classification'] = ""
|
4546
|
|
- // obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
4547
|
|
- // obj['project_name'] = prescription.project[b].good_info.good_name
|
4548
|
|
- // }
|
4549
|
|
- // tempProject.push(obj)
|
4550
|
|
- // }
|
4551
|
|
- //
|
4552
|
|
- // //附加收费
|
4553
|
|
- // for (let b = 0; b < prescription.addition.length; b++) {
|
4554
|
|
- // let obj = {
|
4555
|
|
- // item_name: prescription.addition[b].item_name,
|
4556
|
|
- // price: prescription.addition[b].price,
|
4557
|
|
- // count: prescription.addition[b].count,
|
4558
|
|
- // item_id: prescription.addition[b].item_id,
|
4559
|
|
- // };
|
4560
|
|
- // tempAddition.push(obj)
|
4561
|
|
- // }
|
4562
|
|
- //
|
4563
|
|
- // var preTime = nowTime
|
4564
|
|
- //
|
4565
|
|
- // let index = i + 1;
|
4566
|
|
- // let obj = {
|
4567
|
|
- // id: 0,
|
4568
|
|
- // name: '处方' + index,
|
4569
|
|
- // advices: tempAdvice,
|
4570
|
|
- // project: tempProject,
|
4571
|
|
- // addition: tempAddition,
|
4572
|
|
- // order_status: 1,
|
4573
|
|
- // pre_time: preTime
|
4574
|
|
- // };
|
4575
|
|
- // this.prescriptions.push(obj)
|
4576
|
|
- // }
|
4577
|
|
- // }
|
4578
|
|
- // }else{
|
4579
|
|
- // let obj = {
|
4580
|
|
- // id: 0,
|
4581
|
|
- // name: '处方' + 1,
|
4582
|
|
- // advices: [],
|
4583
|
|
- // project: [],
|
4584
|
|
- // addition: [],
|
4585
|
|
- // order_status: 0,
|
4586
|
|
- // pre_time: nowTime,
|
4587
|
|
- //
|
4588
|
|
- // };
|
4589
|
|
- // this.prescriptions.push(obj)
|
4590
|
|
- // }
|
4591
|
4669
|
}
|
4592
|
4670
|
}
|
4593
|
4671
|
console.log("jin5")
|
|
@@ -4935,6 +5013,16 @@ export default {
|
4935
|
5013
|
} else {
|
4936
|
5014
|
if (prescription.pre_time == 0) {
|
4937
|
5015
|
preTime = nowTime
|
|
5016
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
5017
|
+ if(this.schedule.schedule_type == 1){
|
|
5018
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
5019
|
+ }else if(this.schedule.schedule_type == 2){
|
|
5020
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
5021
|
+
|
|
5022
|
+ }else{
|
|
5023
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
5024
|
+ }
|
|
5025
|
+ }
|
4938
|
5026
|
|
4939
|
5027
|
} else {
|
4940
|
5028
|
preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
|
|
@@ -5101,6 +5189,16 @@ export default {
|
5101
|
5189
|
preTime = this.record_date + ' ' + '17:00'
|
5102
|
5190
|
}
|
5103
|
5191
|
}
|
|
5192
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
5193
|
+ if(this.schedule.schedule_type == 1){
|
|
5194
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
5195
|
+ }else if(this.schedule.schedule_type == 2){
|
|
5196
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
5197
|
+
|
|
5198
|
+ }else{
|
|
5199
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
5200
|
+ }
|
|
5201
|
+ }
|
5104
|
5202
|
|
5105
|
5203
|
let index = i + 1
|
5106
|
5204
|
let obj = {
|
|
@@ -5138,6 +5236,21 @@ export default {
|
5138
|
5236
|
}
|
5139
|
5237
|
|
5140
|
5238
|
} else {
|
|
5239
|
+ if(nowTime.split(" ")[0] != this.record_date){
|
|
5240
|
+ if(this.schedule.schedule_type == 1){
|
|
5241
|
+ preTime = this.record_date + ' ' + '7:00'
|
|
5242
|
+ }else if(this.schedule.schedule_type == 2){
|
|
5243
|
+ preTime = this.record_date + ' ' + '11:00'
|
|
5244
|
+
|
|
5245
|
+ }else{
|
|
5246
|
+ preTime = this.record_date + ' ' + '17:00'
|
|
5247
|
+ }
|
|
5248
|
+ }else{
|
|
5249
|
+
|
|
5250
|
+ preTime = nowTime
|
|
5251
|
+ }
|
|
5252
|
+
|
|
5253
|
+
|
5141
|
5254
|
let obj = {
|
5142
|
5255
|
id: 0,
|
5143
|
5256
|
name: '处方' + 1,
|
|
@@ -5145,7 +5258,7 @@ export default {
|
5145
|
5258
|
project: [],
|
5146
|
5259
|
addition: [],
|
5147
|
5260
|
order_status: 0,
|
5148
|
|
- pre_time: nowTime,
|
|
5261
|
+ pre_time: preTime,
|
5149
|
5262
|
med_type: ''
|
5150
|
5263
|
|
5151
|
5264
|
}
|