XMLWAN 3 years ago
parent
commit
8d559e13f2
1 changed files with 693 additions and 0 deletions
  1. 693 0
      src/xt_pages/dialysis/signPrint.vue

+ 693 - 0
src/xt_pages/dialysis/signPrint.vue View File

@@ -0,0 +1,693 @@
1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;" v-show="show">
12
+            <div id="dialysisTable">
13
+                <div v-for="(item, index) in list" :key="index">
14
+                    <ul>
15
+                        <li>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</li>  
16
+                        <li>姓名:{{item.patient.name}}</li>  
17
+                        <li>医嘱内容:{{getAdvice(item.doctor_advice)}}</li>  
18
+                        <li>给药途径:
19
+                            {{item.doctor_advice[0].execution_frequency}}
20
+                        </li>  
21
+                        <li>执行频率:{{item.doctor_advice[0].delivery_way}}</li>  
22
+                        <li>打印时间:{{time}}</li>   
23
+                    </ul>  
24
+                </div>
25
+            </div>
26
+        </div>
27
+
28
+          <div class="app-container" style="background-color: white;" v-show="showOne">
29
+            <div id="dialysisTable">
30
+                <div class="order_title_panl">
31
+                    <span class="main_title">透析医嘱</span>
32
+                </div>
33
+                <p style="width: 960px;text-align: right;margin: 0 auto 10px;">日期:{{ time }}</p>
34
+                <div v-for="(item, index) in list" :key="index">
35
+                    <ul>
36
+                        <li>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</li>  
37
+                        <li>姓名:{{item.patient.name}}</li>  
38
+                        <li>医嘱内容:{{getAdvice(item.doctor_advice)}}</li>  
39
+                        <li>给药途径:
40
+                            {{item.doctor_advice[0].execution_frequency}}
41
+                        </li>  
42
+                        <li>执行频率:{{item.doctor_advice[0].delivery_way}}</li>  
43
+                        <li>打印时间:{{time}}</li>   
44
+                    </ul>  
45
+                  
46
+                </div>
47
+            </div>
48
+        </div>
49
+    </div>
50
+</template>
51
+
52
+<script>
53
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
54
+import { getSchedualDoctors } from '@/api/advice'
55
+import { parseTime } from '@/utils'
56
+import print from 'print-js'
57
+const moment = require('moment')
58
+export default {
59
+    components:{
60
+        BreadCrumb
61
+    },
62
+    data(){
63
+        return{
64
+            crumbs: [
65
+                { path: false, name: '耗材药品' },
66
+                { path: false, name: '打印' }
67
+            ],
68
+            tableData:[],
69
+            start_time:"",
70
+            end_time:"",
71
+            print_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
72
+
73
+            zone_selected: 0,
74
+            scheduleMap:[],
75
+            time:'',
76
+            show:true,
77
+            showOne:false,
78
+            delivery_way:"",
79
+            list:[]
80
+        }
81
+    },
82
+    methods:{
83
+        printAction: function() {
84
+            const style = '@media print { .dialysisTable{width:960px;margin: 0 auto;text-align: center;border-collapse: collapse;}.order_title_panl {text-align: center;.main_title {font-size: 18px;line-height: 40px;font-weight: 500;}}.dialysisTable tr{padding: 10px 0;}.dialysisTable th {color: #000;padding: 0;margin: 0;height: 30px;}.dialysisTable tr td {padding: 12px 0;}.subadvice_content {text-align: left;padding-left: 25px !important;padding-right: 5px !important;}.advice_content {text-align: left;padding-left: 5px !important;padding-right: 5px !important;padding: 15px 5px !important;} }'
85
+
86
+            printJS({
87
+            printable: 'dialysisTable',
88
+            type: 'html',
89
+            documentTitle: '  ',
90
+            style: style,
91
+            scanStyles: false
92
+            })
93
+        },
94
+        requestSchedualDoctors (time) {
95
+            let newTime =  moment(time).format('YYYY-MM-DD')
96
+            getSchedualDoctors({
97
+            date: newTime,
98
+            patient_type: 0,
99
+            advice_type: 2,
100
+            delivery_way:this.delivery_way,
101
+            }).then(rs => {
102
+                var resp = rs.data
103
+                if (resp.state == 1) {
104
+                this.admin_user = resp.data.adminUser
105
+                var config = resp.data.config
106
+                if(config.is_open == 0 || config.is_open == 2){
107
+                
108
+                   var schedulesArr = resp.data.scheduals
109
+                   let schedules = []
110
+                   var ids = this.$store.getters.temp_params.advice_ids
111
+                   console.log('ids',ids)
112
+                   schedulesArr.map(item => {
113
+                   if(ids.indexOf(item.patient_id) > -1){
114
+                        schedules.push(item)
115
+                    }
116
+                    
117
+                })
118
+               
119
+                for (let i = 0; i < schedules.length; i++) {
120
+                    schedules[i].dialysis_no = schedules[i].patient.dialysis_no
121
+                }
122
+           
123
+
124
+                var arr = []
125
+                for (let j = 0; j < schedules.length; j++) {
126
+                    arr.push(schedules[j].dialysis_no)
127
+                }
128
+                arr.sort(function (a, b) {
129
+                    return a - b
130
+                })
131
+               
132
+
133
+                var arrTwo = []
134
+                for (let i = 0; i < arr.length; i++) {
135
+                    for (let j = 0; j < schedules.length; j++) {
136
+                    if (arr[i] == schedules[j].dialysis_no) {
137
+                        arrTwo.push(schedules[j])
138
+                    }
139
+                    }
140
+                }
141
+
142
+                arrTwo.map((item, index) => {
143
+                  
144
+                    item.doctor_advice.sort(this.compare('start_time'))
145
+                })
146
+                
147
+
148
+                const res = new Map()
149
+                let a = arrTwo.filter(
150
+                    a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
151
+                )
152
+
153
+               
154
+
155
+                schedules = a
156
+                var zoneMap = {}
157
+                var scheduleMap = {}
158
+                for (let index = 0; index < schedules.length; index++) {
159
+                    const schedule = schedules[index]
160
+                    if (schedule.doctor_advice.length == 0) {
161
+                    continue
162
+                    }
163
+                    if (scheduleMap[schedule.device_number.zone.name] == null) {
164
+                    scheduleMap[schedule.device_number.zone.name] = []
165
+                    }
166
+                    scheduleMap[schedule.device_number.zone.name].push(schedule)
167
+                    if (zoneMap[schedule.device_number.zone.name] == null) {
168
+                    zoneMap[schedule.device_number.zone.name] =schedule.device_number.zone}
169
+                }
170
+
171
+                var zones = []
172
+                zones.push({ value: 0, text: '全部分区' })
173
+                for (var zoneName in zoneMap) {
174
+                    zones.push({ value: zoneMap[zoneName].id, text: zoneName })
175
+                }
176
+
177
+                zones = zones.sort(function (a, b) {
178
+                    return a.value > b.value
179
+                })
180
+                this.zones = zones
181
+                for (var key in scheduleMap) {
182
+                    let mapArr = scheduleMap[key]
183
+                    for (let i = 0; i < mapArr.length; i++) {
184
+                    mapArr[i]['new_advice'] = []
185
+                    }
186
+                }
187
+
188
+                for (var key in scheduleMap) {
189
+                    let mapArr = scheduleMap[key]
190
+                    for (let i = 0; i < mapArr.length; i++) {
191
+                    var maps = mapArr[i]
192
+                    var resp_advices = maps.doctor_advice
193
+                    if (resp_advices.length > 0) {
194
+                        var newGroupObject = function () {
195
+                        return Object.assign(
196
+                            {},
197
+                            {
198
+                            group_no: 0,
199
+                            advices: []
200
+                            }
201
+                        )
202
+                        }
203
+                        var initGroupBlock = function (group, advice) {
204
+                        group.group_no = advice.groupno
205
+                        }
206
+
207
+                        var advice_groups = []
208
+                        var group = newGroupObject()
209
+                        for (let index = 0; index < resp_advices.length; index++) {
210
+                        const advice = resp_advices[index]
211
+                        if (advice.groupno == 0) {
212
+                            // 老版本的医嘱
213
+                            if (advice.parent_id > 0) {
214
+                            if (advice_groups.length > 0) {
215
+                                var parent_group = advice_groups[advice_groups.length - 1]
216
+                                if (parent_group.advices.length > 0) {
217
+                                if (parent_group.advices[0].id == advice.parent_id) {
218
+                                    parent_group.advices.push(advice)
219
+                                }
220
+                                }
221
+                            }
222
+                            continue
223
+                            } else {
224
+                            if (group.group_no > 0) {
225
+                                advice_groups.push(group)
226
+                                group = newGroupObject()
227
+                            }
228
+
229
+                            initGroupBlock(group, advice)
230
+                            group.advices.push(advice)
231
+                            advice_groups.push(group)
232
+                            group = newGroupObject()
233
+                            continue
234
+                            }
235
+                        } else {
236
+                            if (group.group_no > 0 && group.group_no != advice.groupno) {
237
+                            advice_groups.push(group)
238
+                            group = newGroupObject()
239
+                            }
240
+                            if (group.group_no == 0) {
241
+                            initGroupBlock(group, advice)
242
+                            }
243
+                            if (group.group_no == advice.groupno) {
244
+                            group.advices.push(advice)
245
+                            }
246
+                        }
247
+                        }
248
+                        if (group.group_no > 0) {
249
+                        // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
250
+                        advice_groups.push(group)
251
+                        }
252
+                        advice_groups = advice_groups
253
+                    } else {
254
+                        advice_groups = []
255
+                    }
256
+                    maps.new_advice = advice_groups
257
+                    }
258
+                 }
259
+                console.log("scheduleMap999999999999",schedules)
260
+                  this.list = schedules
261
+                }
262
+               
263
+                 if(config.is_open == 1){
264
+                   var schedulesArr = resp.data.hisAdvices
265
+                   let schedules = []
266
+                   var ids = this.$store.getters.temp_params.advice_ids
267
+                   console.log('ids',ids)
268
+                   schedulesArr.map(item => {
269
+                    if(ids.indexOf(item.patient_id) > -1){
270
+                        schedules.push(item)
271
+                    }
272
+                    
273
+                })
274
+               
275
+                for (let i = 0; i < schedules.length; i++) {
276
+                    schedules[i].dialysis_no = schedules[i].patient.dialysis_no
277
+                }
278
+           
279
+
280
+                var arr = []
281
+                for (let j = 0; j < schedules.length; j++) {
282
+                    arr.push(schedules[j].dialysis_no)
283
+                }
284
+                arr.sort(function (a, b) {
285
+                    return a - b
286
+                })
287
+               
288
+
289
+                var arrTwo = []
290
+                for (let i = 0; i < arr.length; i++) {
291
+                    for (let j = 0; j < schedules.length; j++) {
292
+                    if (arr[i] == schedules[j].dialysis_no) {
293
+                        arrTwo.push(schedules[j])
294
+                    }
295
+                    }
296
+                }
297
+
298
+                arrTwo.map((item, index) => {
299
+                  
300
+                    item.doctor_advice.sort(this.compare('start_time'))
301
+                })
302
+                
303
+
304
+                const res = new Map()
305
+                let a = arrTwo.filter(
306
+                    a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
307
+                )
308
+
309
+               
310
+
311
+                schedules = a
312
+                var zoneMap = {}
313
+                var scheduleMap = {}
314
+                for (let index = 0; index < schedules.length; index++) {
315
+                    const schedule = schedules[index]
316
+                    if (schedule.doctor_advice.length == 0) {
317
+                    continue
318
+                    }
319
+                    if (scheduleMap[schedule.device_number.zone.name] == null) {
320
+                    scheduleMap[schedule.device_number.zone.name] = []
321
+                    }
322
+                    scheduleMap[schedule.device_number.zone.name].push(schedule)
323
+                    if (zoneMap[schedule.device_number.zone.name] == null) {
324
+                    zoneMap[schedule.device_number.zone.name] =
325
+                        schedule.device_number.zone
326
+                    }
327
+                }
328
+             
329
+                var zones = []
330
+                zones.push({ value: 0, text: '全部分区' })
331
+                for (var zoneName in zoneMap) {
332
+                    zones.push({ value: zoneMap[zoneName].id, text: zoneName })
333
+                }
334
+
335
+                zones = zones.sort(function (a, b) {
336
+                    return a.value > b.value
337
+                })
338
+                this.zones = zones
339
+                for (var key in scheduleMap) {
340
+                    let mapArr = scheduleMap[key]
341
+                    for (let i = 0; i < mapArr.length; i++) {
342
+                    mapArr[i]['new_advice'] = []
343
+                    }
344
+                }
345
+
346
+                for (var key in scheduleMap) {
347
+                    let mapArr = scheduleMap[key]
348
+                    for (let i = 0; i < mapArr.length; i++) {
349
+                    var maps = mapArr[i]
350
+                    var resp_advices = maps.doctor_advice
351
+                    if (resp_advices.length > 0) {
352
+                        var newGroupObject = function () {
353
+                        return Object.assign(
354
+                            {},
355
+                            {
356
+                            group_no: 0,
357
+                            advices: []
358
+                            }
359
+                        )
360
+                        }
361
+                        var initGroupBlock = function (group, advice) {
362
+                        group.group_no = advice.groupno
363
+                        }
364
+
365
+                        var advice_groups = []
366
+                        var group = newGroupObject()
367
+                        for (let index = 0; index < resp_advices.length; index++) {
368
+                        const advice = resp_advices[index]
369
+                        if (advice.groupno == 0) {
370
+                            // 老版本的医嘱
371
+                            if (advice.parent_id > 0) {
372
+                            if (advice_groups.length > 0) {
373
+                                var parent_group = advice_groups[advice_groups.length - 1]
374
+                                if (parent_group.advices.length > 0) {
375
+                                if (parent_group.advices[0].id == advice.parent_id) {
376
+                                    parent_group.advices.push(advice)
377
+                                }
378
+                                }
379
+                            }
380
+                            continue
381
+                            } else {
382
+                            if (group.group_no > 0) {
383
+                                advice_groups.push(group)
384
+                                group = newGroupObject()
385
+                            }
386
+
387
+                            initGroupBlock(group, advice)
388
+                            group.advices.push(advice)
389
+                            advice_groups.push(group)
390
+                            group = newGroupObject()
391
+                            continue
392
+                            }
393
+                        } else {
394
+                            if (group.group_no > 0 && group.group_no != advice.groupno) {
395
+                            advice_groups.push(group)
396
+                            group = newGroupObject()
397
+                            }
398
+                            if (group.group_no == 0) {
399
+                            initGroupBlock(group, advice)
400
+                            }
401
+                            if (group.group_no == advice.groupno) {
402
+                            group.advices.push(advice)
403
+                            }
404
+                        }
405
+                        }
406
+                        if (group.group_no > 0) {
407
+                        // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
408
+                        advice_groups.push(group)
409
+                        }
410
+                        advice_groups = advice_groups
411
+                    } else {
412
+                        advice_groups = []
413
+                    }
414
+                    maps.new_advice = advice_groups
415
+                    }
416
+                 }
417
+                
418
+                     this.list = schedules
419
+                     this.scheduleMap = scheduleMap  
420
+                 }
421
+
422
+                
423
+                }
424
+            })
425
+        },
426
+        compare (property) {
427
+            return function (a, b) {
428
+                var value1 = a[property]
429
+                var value2 = b[property]
430
+                return value1 - value2
431
+            }
432
+        },
433
+        parseTime: function (time, layout) {
434
+            if (time == 0) {
435
+                return ''
436
+            }
437
+            return parseTime(time, layout)
438
+        },
439
+        getName (val) {
440
+            for (let i = 0; i < this.admin_user.length; i++) {
441
+                if (this.admin_user[i].id == val) {
442
+                    return this.admin_user[i].name
443
+                }
444
+            }
445
+        },
446
+        getAdvice: function(doctor_advice) {
447
+          if (doctor_advice.length > 0) {
448
+            let name = "";
449
+            for (let i = 0; i < doctor_advice.length; i++) {
450
+            let prescribing_number = "";
451
+            let single_dose = "";
452
+            let drug_spec = "";
453
+
454
+            if (doctor_advice[i].prescribing_number > 0) {
455
+                prescribing_number =
456
+                doctor_advice[i].prescribing_number +
457
+                doctor_advice[i].prescribing_number_unit;
458
+            }
459
+            if (doctor_advice[i].single_dose > 0) {
460
+                single_dose =
461
+                " 单次用量 " +
462
+                doctor_advice[i].single_dose +
463
+                doctor_advice[i].single_dose_unit;
464
+            }
465
+
466
+            if (doctor_advice[i].drug_spec > 0) {
467
+                drug_spec =
468
+                doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit;
469
+            }
470
+
471
+            name =
472
+                name +
473
+                doctor_advice[i].advice_name +
474
+                " " +
475
+                drug_spec +
476
+                " " +
477
+                prescribing_number +
478
+                " " +
479
+                single_dose +
480
+                " " +
481
+                doctor_advice[i].delivery_way +
482
+                " " +
483
+                doctor_advice[i].execution_frequency +
484
+                " " +
485
+                doctor_advice[i].remark +
486
+                "\n";
487
+
488
+            // if (doctor_advice[i].child.length > 0) {
489
+            //     for (let a = 0; a < doctor_advice[i].child.length; a++) {
490
+            //     if (doctor_advice[i].child[a].prescribing_number > 0) {
491
+            //         doctor_advice[i].child[a]["presc"] =
492
+            //         doctor_advice[i].child[a].prescribing_number +
493
+            //         doctor_advice[i].child[a].prescribing_number_unit;
494
+            //     } else {
495
+            //         doctor_advice[i].child[a]["presc"] = "";
496
+            //     }
497
+
498
+            //     if (doctor_advice[i].child[a].single_dose > 0) {
499
+            //         doctor_advice[i].child[a]["single"] =
500
+            //         " " +
501
+            //         " 单次用量 " +
502
+            //         " " +
503
+            //         doctor_advice[i].child[a].single_dose +
504
+            //         doctor_advice[i].child[a].single_dose_unit;
505
+            //     } else {
506
+            //         doctor_advice[i].child[a]["single"] = "";
507
+            //     }
508
+
509
+            //     name =
510
+            //         name +
511
+            //         "▲" +
512
+            //         doctor_advice[i].child[a].advice_name +
513
+            //         "" +
514
+            //         doctor_advice[i].child[a].advice_desc +
515
+            //         doctor_advice[i].child[a].drug_spec_unit +
516
+            //         doctor_advice[i].child[a].presc +
517
+            //         doctor_advice[i].child[a].single +
518
+            //         "\n";
519
+            //     }
520
+            // }
521
+        }
522
+        return name;
523
+      }else{
524
+        return ""
525
+      }
526
+    },
527
+    },
528
+    computed: {
529
+    filtedScheduals: function () {
530
+        var scheduleMap = new Object()
531
+        if (this.zone_selected == 0) {
532
+            for (const key in this.scheduleMap) {
533
+            scheduleMap[key] = this.scheduleMap[key]
534
+            }
535
+        } else {
536
+            var zone_name = this.zones[this.zone_selected].text
537
+            scheduleMap[zone_name] = this.scheduleMap[zone_name]
538
+        }
539
+
540
+        if (this.schedule_type_selected != 0) {
541
+            var _scheduleMap = {}
542
+            for (const key in scheduleMap) {
543
+            var origin_schedules = scheduleMap[key]
544
+            var schedules = []
545
+            for (let index = 0; index < origin_schedules.length; index++) {
546
+                const schedule = origin_schedules[index]
547
+                if (schedule.schedule_type == this.schedule_type_selected) {
548
+                schedules.push(schedule)
549
+                }
550
+            }
551
+            if (schedules.length > 0) {
552
+                _scheduleMap[key] = schedules
553
+            }
554
+            }
555
+
556
+            scheduleMap = _scheduleMap
557
+        }
558
+        for (var key in scheduleMap) {
559
+            let mapArr = scheduleMap[key]
560
+            for (let i = 0; i < mapArr.length; i++) {
561
+            mapArr[i]['new_advice'] = []
562
+            }
563
+        }
564
+
565
+        for (var key in scheduleMap) {
566
+            let mapArr = scheduleMap[key]
567
+            for (let i = 0; i < mapArr.length; i++) {
568
+            var maps = mapArr[i]
569
+            var resp_advices = maps.doctor_advice
570
+            if (resp_advices.length > 0) {
571
+                var newGroupObject = function () {
572
+                return Object.assign(
573
+                    {},
574
+                    {
575
+                    group_no: 0,
576
+                    advices: []
577
+                    }
578
+                )
579
+                }
580
+                var initGroupBlock = function (group, advice) {
581
+                group.group_no = advice.groupno
582
+                }
583
+
584
+                var advice_groups = []
585
+                var group = newGroupObject()
586
+                for (let index = 0; index < resp_advices.length; index++) {
587
+                const advice = resp_advices[index]
588
+                if (advice.groupno == 0) {
589
+                    // 老版本的医嘱
590
+                    if (advice.parent_id > 0) {
591
+                    if (advice_groups.length > 0) {
592
+                        var parent_group = advice_groups[advice_groups.length - 1]
593
+                        if (parent_group.advices.length > 0) {
594
+                        if (parent_group.advices[0].id == advice.parent_id) {
595
+                            parent_group.advices.push(advice)
596
+                        }
597
+                        }
598
+                    }
599
+                    continue
600
+                    } else {
601
+                    if (group.group_no > 0) {
602
+                        advice_groups.push(group)
603
+                        group = newGroupObject()
604
+                    }
605
+
606
+                    initGroupBlock(group, advice)
607
+                    group.advices.push(advice)
608
+                    advice_groups.push(group)
609
+                    group = newGroupObject()
610
+                    continue
611
+                    }
612
+                } else {
613
+                    if (group.group_no > 0 && group.group_no != advice.groupno) {
614
+                    advice_groups.push(group)
615
+                    group = newGroupObject()
616
+                    }
617
+                    if (group.group_no == 0) {
618
+                    initGroupBlock(group, advice)
619
+                    }
620
+                    if (group.group_no == advice.groupno) {
621
+                    group.advices.push(advice)
622
+                    }
623
+                }
624
+                }
625
+                if (group.group_no > 0) {
626
+                // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
627
+                advice_groups.push(group)
628
+                }
629
+                advice_groups = advice_groups
630
+            } else {
631
+                advice_groups = []
632
+            }
633
+            maps.new_advice = advice_groups
634
+            }
635
+        }
636
+        console.log("222222",scheduleMap)
637
+        return scheduleMap
638
+        },
639
+    
640
+    },
641
+    created(){
642
+      var time = this.$route.query.time
643
+      var delivery_way = this.$route.query.delivery_way
644
+      console.log("delivery_Way",delivery_way)
645
+      this.delivery_way = delivery_way
646
+      this.time = moment(time).format('YYYY-MM-DD')
647
+      console.log(11,this.$route.query)
648
+      this.requestSchedualDoctors(time)
649
+    }
650
+}
651
+</script>
652
+
653
+
654
+<style rel="stylesheet/scss" lang="scss" scoped>
655
+.dialysisTable{
656
+    width:960px;
657
+    margin: 0 auto;
658
+    text-align: center;
659
+    border-collapse: collapse;
660
+}
661
+.order_title_panl {
662
+    text-align: center;
663
+
664
+    .main_title {
665
+      font-size: 18px;
666
+      line-height: 40px;
667
+      font-weight: 500;
668
+    }
669
+}
670
+.dialysisTable tr{
671
+    padding: 10px 0;
672
+}
673
+.dialysisTable th {
674
+    color: #000;
675
+    padding: 0;
676
+    margin: 0;
677
+    height: 30px;
678
+}
679
+.dialysisTable tr td {
680
+    padding: 12px 0;
681
+}
682
+.subadvice_content {
683
+    text-align: left;
684
+    padding-left: 25px !important;
685
+    padding-right: 5px !important;
686
+}
687
+.advice_content {
688
+    text-align: left;
689
+    padding-left: 5px !important;
690
+    padding-right: 5px !important;
691
+    padding: 15px 5px !important;
692
+}
693
+</style>