瀏覽代碼

hah阿凡达

28169 1 月之前
父節點
當前提交
da38d72899

+ 227 - 129
src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue 查看文件

@@ -334,142 +334,224 @@
334 334
                 <td>执行者签名</td>
335 335
                 <td>核对者签名</td>
336 336
               </tr>
337
-              <template v-if="record.advices">
338
-                <tr v-for="(advice, advice_index) in record.advices" :key="advice_index">
339
-                  <td height="35px">
340
-                    <span v-if="advice[0].start_time">
341
-                      {{ getTime(advice[0].start_time, "{h}:{i}") }}
342
-                    </span>
343
-                  </td>
344
-
345
-                  <td height="26px" colspan="2" class="advice-name" style="padding-left: 7px">
346
-                    <div>
347
-                      <span v-if="advice[0].parent_id > 0">---></span>
348
-                      <span>{{ advice[0].advice_name }}</span>
349
-
350
-                      <span v-if="advice[0].prescribing_number">&nbsp;&nbsp; {{ advice[0].prescribing_number
351
-                        }}{{ advice[0].prescribing_number_unit }}</span>
352
-                      <span v-if="advice[0].single_dose != 0">
353
-
354
-                        <span
355
-                          v-if="advice[0].advice_name != '血液透析滤过' && advice[0].advice_name != '血液透析' && advice[0].advice_name != '电脑血糖监测'">
356
-                          {{ advice[0].single_dose }}{{ advice[0].single_dose_unit }}</span>
337
+              <template v-if="record.advices && org_id !=10751">
338
+               
339
+                  <tr v-for="(advice, advice_index) in record.advices" :key="advice_index">
340
+                    <td height="35px">
341
+                      <span v-if="advice[0].start_time">
342
+                        {{ getTime(advice[0].start_time, "{h}:{i}") }}
357 343
                       </span>
344
+                    </td>
345
+
346
+                    <td height="26px" colspan="2" class="advice-name" style="padding-left: 7px">
347
+                      <div>
348
+                        <span v-if="advice[0].parent_id > 0">---></span>
349
+                        <span>{{ advice[0].advice_name }}</span>
350
+
351
+                        <span v-if="advice[0].prescribing_number">&nbsp;&nbsp; {{ advice[0].prescribing_number
352
+                          }}{{ advice[0].prescribing_number_unit }}</span>
353
+                        <span v-if="advice[0].single_dose != 0">
354
+
355
+                          <span
356
+                            v-if="advice[0].advice_name != '血液透析滤过' && advice[0].advice_name != '血液透析' && advice[0].advice_name != '电脑血糖监测'">
357
+                            {{ advice[0].single_dose }}{{ advice[0].single_dose_unit }}</span>
358
+                        </span>
359
+
360
+                        <span v-if="advice[0].parent_id == 0">{{
361
+                          advice[0].delivery_way
362
+                        }}</span>
363
+                        <span v-if="advice[0].parent_id == 0">{{
364
+                          advice[0].execution_frequency
365
+                        }}</span>
366
+                        <!-- <span
367
+                          v-if="
368
+                            advice[0].parent_id == 0 &&
369
+                            advice[0].remark.length > 0
370
+                          "
371
+                          >({{ advice[0].remark }})</span
372
+                        > -->
373
+                      </div>
374
+                    </td>
375
+
376
+                    <td height="35px">
377
+                      <span v-if="setAdminUserES(advice[0], 'advice_doctor') == ''">
378
+                        {{
379
+                          getAdminUser(advice[0], "advice_doctor")
380
+                        }}
381
+                      </span>
382
+                      <img class="es-img" :src="setAdminUserES(advice[0], 'advice_doctor')
383
+                        " alt="" srcset="" v-else style="height: 40px" />
384
+                    </td>
358 385
 
359
-                      <span v-if="advice[0].parent_id == 0">{{
360
-                        advice[0].delivery_way
386
+                    <td height="35px">
387
+                      <span v-if="advice[0].execution_time">{{
388
+                        getTime(advice[0].execution_time, " {h}:{i}")
361 389
                       }}</span>
362
-                      <span v-if="advice[0].parent_id == 0">{{
363
-                        advice[0].execution_frequency
390
+                    </td>
391
+
392
+                    <td height="35px">
393
+                      <span v-if="
394
+                        setAdminUserES(
395
+                          advice[0],
396
+                          'execution_staff'
397
+                        ) == ''
398
+                      ">{{
399
+                        getAdminUser(advice[0], "execution_staff")
364 400
                       }}</span>
365
-                      <!-- <span
366
-                        v-if="
367
-                          advice[0].parent_id == 0 &&
368
-                          advice[0].remark.length > 0
369
-                        "
370
-                        >({{ advice[0].remark }})</span
371
-                      > -->
372
-                    </div>
373
-                  </td>
374
-
375
-                  <td height="35px">
376
-                    <span v-if="setAdminUserES(advice[0], 'advice_doctor') == ''">
377
-                      {{
378
-                        getAdminUser(advice[0], "advice_doctor")
379
-                      }}
380
-                    </span>
381
-                    <img class="es-img" :src="setAdminUserES(advice[0], 'advice_doctor')
382
-                      " alt="" srcset="" v-else style="height: 40px" />
383
-                  </td>
384
-
385
-                  <td height="35px">
386
-                    <span v-if="advice[0].execution_time">{{
387
-                      getTime(advice[0].execution_time, " {h}:{i}")
388
-                    }}</span>
389
-                  </td>
390
-
391
-                  <td height="35px">
392
-                    <span v-if="
393
-                      setAdminUserES(
394
-                        advice[0],
395
-                        'execution_staff'
396
-                      ) == ''
397
-                    ">{{
398
-                      getAdminUser(advice[0], "execution_staff")
399
-                    }}</span>
400
-                    <img class="es-img" :src="setAdminUserES(advice[0], 'execution_staff')
401
-                      " alt="" srcset="" v-else style="height: 40px" />
402
-                  </td>
403
-
404
-                  <td height="35px">
405
-                    <span v-if="
406
-                      setAdminUserES(
407
-                        advice[0],
408
-                        'checker'
409
-                      ) == ''
410
-                    ">{{
411
-                      getAdminUser(advice[0], "checker")
412
-                    }}</span>
413
-                    <img class="es-img" :src="setAdminUserES(advice[0], 'checker')
414
-                      " alt="" srcset="" v-else style="height: 40px" />
415
-                  </td>
416
-                </tr>
417
-                <tr v-for="(advice, advice_index) in record.his_advices" :key="advice_index">
418
-                  <td height="35px">
419
-                    <span v-if="advice.start_time">
420
-                      {{ getTime(advice.start_time, "{h}:{i}") }}
421
-                    </span>
422
-                  </td>
423
-
424
-                  <td height="35px" colspan="2" class="advice-name" style="padding-left: 7px">
425
-                    <div>
426
-                      <span v-if="advice.parent_id > 0">---></span>
427
-                      <span>{{ advice.advice_name }}</span>
428
-                      <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number
429
-                        }}{{ advice.prescribing_number_unit }}</span>
430
-                      <span v-if="advice.single_dose != 0">
431
-                        <span
432
-                          v-if="advice.advice_name != '血液透析滤过' && advice.advice_name != '血液透析' && advice.advice_name != '电脑血糖监测'">
433
-                          {{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
434
-                      </span>
435
-
436
-                      <span v-if="advice.parent_id == 0">{{
437
-                        advice.delivery_way
401
+                      <img class="es-img" :src="setAdminUserES(advice[0], 'execution_staff')
402
+                        " alt="" srcset="" v-else style="height: 40px" />
403
+                    </td>
404
+
405
+                    <td height="35px">
406
+                      <span v-if="
407
+                        setAdminUserES(
408
+                          advice[0],
409
+                          'checker'
410
+                        ) == ''
411
+                      ">{{
412
+                        getAdminUser(advice[0], "checker")
438 413
                       }}</span>
439
-                      <span v-if="advice.parent_id == 0">{{
440
-                        advice.execution_frequency
414
+                      <img class="es-img" :src="setAdminUserES(advice[0], 'checker')
415
+                        " alt="" srcset="" v-else style="height: 40px" />
416
+                    </td>
417
+                  </tr>
418
+                  <tr v-for="(advice, advice_index) in record.his_advices" :key="advice_index">
419
+                    <td height="35px">
420
+                      <span v-if="advice.start_time">
421
+                        {{ getTime(advice.start_time, "{h}:{i}") }}
422
+                      </span>
423
+                    </td>
424
+
425
+                    <td height="35px" colspan="2" class="advice-name" style="padding-left: 7px">
426
+                      <div>
427
+                        <span v-if="advice.parent_id > 0">---></span>
428
+                        <span>{{ advice.advice_name }}</span>
429
+                        <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number
430
+                          }}{{ advice.prescribing_number_unit }}</span>
431
+                        <span v-if="advice.single_dose != 0">
432
+                          <span
433
+                            v-if="advice.advice_name != '血液透析滤过' && advice.advice_name != '血液透析' && advice.advice_name != '电脑血糖监测'">
434
+                            {{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
435
+                        </span>
436
+
437
+                        <span v-if="advice.parent_id == 0">{{
438
+                          advice.delivery_way
439
+                        }}</span>
440
+                        <span v-if="advice.parent_id == 0">{{
441
+                          advice.execution_frequency
442
+                        }}</span>
443
+                      </div>
444
+                    </td>
445
+
446
+                    <td height="35px">
447
+                      <span v-if=" setAdminUserES(advice, 'advice_doctor') == ''">
448
+                        {{ getAdminUser(advice, "advice_doctor")}}
449
+                      </span>
450
+                      <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')
451
+                        " alt="" srcset="" v-else style="height: 30px" />
452
+                    </td>
453
+                    <td height="35px">
454
+                      <span v-if="advice.execution_time">{{
455
+                        getTime(advice.execution_time, " {h}:{i}")
441 456
                       }}</span>
442
-                    </div>
443
-                  </td>
444
-
445
-                  <td height="35px">
446
-                    <span v-if=" setAdminUserES(advice, 'advice_doctor') == ''">
447
-                      {{ getAdminUser(advice, "advice_doctor")}}
448
-                    </span>
449
-                    <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')
450
-                      " alt="" srcset="" v-else style="height: 30px" />
451
-                  </td>
452
-                  <td height="35px">
453
-                    <span v-if="advice.execution_time">{{
454
-                      getTime(advice.execution_time, " {h}:{i}")
455
-                    }}</span>
456
-                  </td>
457
-                  <td height="35px">
458
-                    <span v-if="setAdminUserES(advice,'execution_staff') == ''">
459
-                      {{getAdminUser(advice, "execution_staff")}}
460
-                    </span>
461
-                    <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')
462
-                      " alt="" srcset="" v-else style="height: 30px" />
463
-                  </td>
464
-                  <td height="35px">
465
-                    <span v-if="setAdminUserES(advice,'checker') == ''">
466
-                      {{getAdminUser(advice, "checker")}}
467
-                    </span>
468
-                    <img class="es-img" :src="setAdminUserES(advice, 'checker')
469
-                      " alt="" srcset="" v-else style="height: 30px" />
470
-                  </td>
471
-                </tr>
457
+                    </td>
458
+                    <td height="35px">
459
+                      <span v-if="setAdminUserES(advice,'execution_staff') == ''">
460
+                        {{getAdminUser(advice, "execution_staff")}}
461
+                      </span>
462
+                      <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')
463
+                        " alt="" srcset="" v-else style="height: 30px" />
464
+                    </td>
465
+                    <td height="35px">
466
+                      <span v-if="setAdminUserES(advice,'checker') == ''">
467
+                        {{getAdminUser(advice, "checker")}}
468
+                      </span>
469
+                      <img class="es-img" :src="setAdminUserES(advice, 'checker')
470
+                        " alt="" srcset="" v-else style="height: 30px" />
471
+                    </td>
472
+                  </tr>
473
+               
472 474
               </template>
475
+
476
+              <template v-if="record.new_advice_list && org_id ==10751">
477
+               
478
+               <tr v-for="(item, advice_index) in record.new_advice_list" :key="advice_index">
479
+                 <td height="35px">
480
+                   <span v-if="item.start_time">
481
+                     {{ getTime(item.start_time, "{h}:{i}") }}
482
+                   </span>
483
+                 </td>
484
+
485
+                 <td height="26px" colspan="2" class="advice-name" style="padding-left: 7px">
486
+                   <div>
487
+                     <span v-if="item.parent_id > 0">---></span>
488
+                     <span>{{ item.advice_name }}</span>
489
+
490
+                     <span v-if="item.prescribing_number">&nbsp;&nbsp; {{ item.prescribing_number
491
+                       }}{{ item.prescribing_number_unit }}</span>
492
+                     <span v-if=item.single_dose != 0">
493
+
494
+                       <span
495
+                         v-if="item.advice_name != '血液透析滤过' && item.advice_name != '血液透析' && item.advice_name != '电脑血糖监测'">
496
+                         {{ item.single_dose }}{{ item.single_dose_unit }}</span>
497
+                     </span>
498
+
499
+                     <span v-if="item.parent_id == 0">{{
500
+                       item.delivery_way
501
+                     }}</span>
502
+                     <span v-if="item.parent_id == 0">{{
503
+                      item.execution_frequency
504
+                     }}</span>
505
+                   
506
+                   </div>
507
+                 </td>
508
+
509
+                 <td height="35px">
510
+                   <span v-if="setAdminUserES(item, 'advice_doctor') == ''">
511
+                     {{
512
+                       getAdminUser(item, "advice_doctor")
513
+                     }}
514
+                   </span>
515
+                   <img class="es-img" :src="setAdminUserES(item, 'advice_doctor')
516
+                     " alt="" srcset="" v-else style="height: 40px" />
517
+                 </td>
518
+
519
+                 <td height="35px">
520
+                   <span v-if="item.execution_time">{{
521
+                     getTime(item.execution_time, " {h}:{i}")
522
+                   }}</span>
523
+                 </td>
524
+
525
+                 <td height="35px">
526
+                   <span v-if="
527
+                     setAdminUserES(
528
+                      item,
529
+                       'execution_staff'
530
+                     ) == ''
531
+                   ">{{
532
+                     getAdminUser(item, "execution_staff")
533
+                   }}</span>
534
+                   <img class="es-img" :src="setAdminUserES(item, 'execution_staff')
535
+                     " alt="" srcset="" v-else style="height: 40px" />
536
+                 </td>
537
+
538
+                 <td height="35px">
539
+                   <span v-if="
540
+                     setAdminUserES(
541
+                      item,
542
+                       'checker'
543
+                     ) == ''
544
+                   ">{{
545
+                     getAdminUser(item, "checker")
546
+                   }}</span>
547
+                   <img class="es-img" :src="setAdminUserES(item, 'checker')
548
+                     " alt="" srcset="" v-else style="height: 40px" />
549
+                 </td>
550
+               </tr>
551
+              
552
+           </template>
553
+
554
+             
473 555
             </table>
474 556
           </div>
475 557
           <div>
@@ -851,7 +933,20 @@ export default {
851 933
         var resp = rs.data;
852 934
         if (resp.state == 1) {
853 935
           this.records = this.records.concat(resp.data.schedules);
936
+          if(this.org_id ==0 || this.org_id == 10751){
937
+
938
+            if(this.records!=null && this.records.length>0){
939
+              
940
+              for(let i=0;i<this.records.length;i++){
941
+                this.records[i].new_advice_list = []
942
+                this.records[i].new_advice_list.push(...this.records[i].advices)
943
+                this.records[i].new_advice_list.push(...this.records[i].his_advices)
944
+                this.records[i].new_advice_list.sort((a, b) => a.start_time - b.start_time)
945
+              }
946
+            }
854 947
 
948
+          }
949
+          console.log("reoces=====================",this.records)
855 950
           var tempmonitorflag = true;
856 951
           for (let i = 0; i < this.records.length; i++) {
857 952
 
@@ -1028,6 +1123,9 @@ export default {
1028 1123
               // this.records[x].his_advices =advice
1029 1124
             }
1030 1125
           }
1126
+         
1127
+        
1128
+          console.log("record================",this.records)
1031 1129
           this.operators = resp.data.medical_staffs;
1032 1130
           if (this.operators.length > 0) {
1033 1131
             var operatorsLen = this.operators.length;

+ 7 - 0
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -2298,6 +2298,13 @@ export default {
2298 2298
         }
2299 2299
 
2300 2300
         this.loading = false
2301
+
2302
+        if(this.org_id == 0 || this.org_id == 10751){
2303
+          if(this.doctor_advices!=null && this.doctor_advices.length>0){
2304
+            this.doctor_advices.sort((a, b) => a.start_time - b.start_time)
2305
+          }
2306
+         
2307
+        }
2301 2308
       })
2302 2309
     },
2303 2310
     printOrder() {

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -1590,13 +1590,13 @@
1590 1590
                             <span v-if="org_id != 10644 && org_id != 0">{{ monitor.ultrafiltration_rate ?
1591 1591
                               monitor.ultrafiltration_rate : "" }}</span>
1592 1592
                             <span v-if="org_id == 10644">
1593
-                              <!-- <span v-if="monindex == 0">{{ monitor.ultrafiltration_volume ?
1593
+                              <span v-if="monindex == 0">{{ monitor.ultrafiltration_volume ?
1594 1594
                                 monitor.ultrafiltration_volume : "0" }}</span>
1595 1595
                               <span v-if="monindex == monitors.length - 1">{{ monitor.ultrafiltration_volume ?
1596 1596
                                 monitor.ultrafiltration_volume : "" }}</span>
1597 1597
                               <span v-if="(monindex != monitors.length - 1 && monindex != 0)">{{
1598
-                                monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</span> -->
1599
-                                {{ monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:"0" }}
1598
+                                monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</span>
1599
+                                <!-- {{ monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:"" }} -->
1600 1600
                             </span>
1601 1601
                           </td>
1602 1602
                           <td v-if="

+ 34 - 24
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue 查看文件

@@ -1030,11 +1030,18 @@ export default {
1030 1030
       }
1031 1031
     },
1032 1032
     getTime(value, temp) {
1033
+
1033 1034
       if (value == 0) {
1034 1035
         return ''
1035 1036
       }
1036 1037
       if (value != undefined) {
1037
-        return uParseTime(value, temp)
1038
+        // console.log("时间", uParseTime(value, temp))
1039
+        if(uParseTime(value, temp)!= "0:0"){
1040
+          return uParseTime(value, temp)
1041
+        }else{
1042
+          return ""
1043
+        }
1044
+       
1038 1045
       }
1039 1046
       return ''
1040 1047
     },
@@ -1189,12 +1196,12 @@ export default {
1189 1196
        
1190 1197
           
1191 1198
           if (tableAdvice.length === 0) {
1192
-            var obj = { advice_name: '', start_time: '' }
1193
-            var obj1 = { advice_name: '', start_time: '' }
1194
-            var obj2 = { advice_name: '', start_time: '' }
1195
-            var obj3 = { advice_name: '', start_time: '' }
1196
-            var obj4 = { advice_name: '', start_time: '' }
1197
-            var obj5 = { advice_name: '', start_time: '' }
1199
+            var obj = { advice_name: '', start_time: '2556115199000' }
1200
+            var obj1 = { advice_name: '', start_time: '2556115199000' }
1201
+            var obj2 = { advice_name: '', start_time: '2556115199000' }
1202
+            var obj3 = { advice_name: '', start_time: '2556115199000' }
1203
+            var obj4 = { advice_name: '', start_time: '2556115199000' }
1204
+            var obj5 = { advice_name: '', start_time: '2556115199000' }
1198 1205
             tableAdvice.push(obj)
1199 1206
             tableAdvice.push(obj1)
1200 1207
             tableAdvice.push(obj2)
@@ -1204,11 +1211,11 @@ export default {
1204 1211
             this.tableAdvice = tableAdvice
1205 1212
           }
1206 1213
           if (tableAdvice.length === 1) {
1207
-            var obj = { advice_name: '', start_time: '' }
1208
-            var obj1 = { advice_name: '', start_time: '' }
1209
-            var obj2 = { advice_name: '', start_time: '' }
1210
-            var obj3 = { advice_name: '', start_time: '' }
1211
-            var obj4 = { advice_name: '', start_time: '' }
1214
+            var obj = { advice_name: '', start_time: '2556115199000' }
1215
+            var obj1 = { advice_name: '', start_time: '2556115199000' }
1216
+            var obj2 = { advice_name: '', start_time: '2556115199000' }
1217
+            var obj3 = { advice_name: '', start_time: '2556115199000' }
1218
+            var obj4 = { advice_name: '', start_time: '2556115199000' }
1212 1219
             tableAdvice.push(obj)
1213 1220
             tableAdvice.push(obj1)
1214 1221
             tableAdvice.push(obj2)
@@ -1217,10 +1224,10 @@ export default {
1217 1224
             this.tableAdvice = tableAdvice
1218 1225
           }
1219 1226
           if (tableAdvice.length === 2) {
1220
-            var obj = { advice_name: '', start_time: '' }
1221
-            var obj1 = { advice_name: '', start_time: '' }
1222
-            var obj2 = { advice_name: '', start_time: '' }
1223
-            var obj3 = { advice_name: '', start_time: '' }
1227
+            var obj = { advice_name: '', start_time: '2556115199000' }
1228
+            var obj1 = { advice_name: '', start_time: '2556115199000' }
1229
+            var obj2 = { advice_name: '', start_time: '2556115199000' }
1230
+            var obj3 = { advice_name: '', start_time: '2556115199000' }
1224 1231
             tableAdvice.push(obj)
1225 1232
             tableAdvice.push(obj1)
1226 1233
             tableAdvice.push(obj2)
@@ -1229,11 +1236,11 @@ export default {
1229 1236
           }
1230 1237
           if (tableAdvice.length === 3) {
1231 1238
             // eslint-disable-next-line no-redeclare
1232
-            var obj = { advice_name: '', start_time: '' }
1239
+            var obj = { advice_name: '', start_time: '2556115199000' }
1233 1240
             // eslint-disable-next-line no-redeclare
1234
-            var obj1 = { advice_name: '', start_time: '' }
1241
+            var obj1 = { advice_name: '', start_time: '2556115199000' }
1235 1242
             // eslint-disable-next-line no-redeclare
1236
-            var obj2 = { advice_name: '', start_time: '' }
1243
+            var obj2 = { advice_name: '', start_time: '2556115199000' }
1237 1244
             // eslint-disable-next-line no-redeclare
1238 1245
             tableAdvice.push(obj)
1239 1246
             tableAdvice.push(obj1)
@@ -1243,9 +1250,9 @@ export default {
1243 1250
           }
1244 1251
           if (tableAdvice.length === 4) {
1245 1252
             // eslint-disable-next-line no-redeclare
1246
-            var obj = { advice_name: '', start_time: '' }
1253
+            var obj = { advice_name: '', start_time: '2556115199000' }
1247 1254
             // eslint-disable-next-line no-redeclare
1248
-            var obj1 = { advice_name: '', start_time: '' }
1255
+            var obj1 = { advice_name: '', start_time: '2556115199000' }
1249 1256
             // eslint-disable-next-line no-redeclare
1250 1257
 
1251 1258
             tableAdvice.push(obj)
@@ -1254,16 +1261,16 @@ export default {
1254 1261
           }
1255 1262
           if (tableAdvice.length === 5) {
1256 1263
             // eslint-disable-next-line no-redeclare
1257
-            var obj = { advice_name: '', start_time: '' }
1264
+            var obj = { advice_name: '', start_time: '2556115199000' }
1258 1265
             // eslint-disable-next-line no-redeclare
1259
-            var obj1 = { advice_name: '', start_time: '' }
1266
+            var obj1 = { advice_name: '', start_time: '2556115199000' }
1260 1267
             tableAdvice.push(obj)
1261 1268
             this.tableAdvice = tableAdvice
1262 1269
           }
1263 1270
 
1264 1271
           if (tableAdvice.length >= 6 && tableAdvice.length <= 8) {
1265 1272
             const length = 6 - tableAdvice.length
1266
-            var obj = { advice_name: '', start_time: '' }
1273
+            var obj = { advice_name: '', start_time: '2556115199000' }
1267 1274
             for (i = 0; i < length; i++) {
1268 1275
               console.log(1)
1269 1276
               tableAdvice.push(obj)
@@ -1273,6 +1280,9 @@ export default {
1273 1280
           }else{
1274 1281
             this.tableAdvice = tableAdvice
1275 1282
           }
1283
+
1284
+
1285
+          this.tableAdvice.sort((a, b) => a.start_time - b.start_time)
1276 1286
           this.afterdialysis = response.data.data.AssessmentAfterDislysis
1277 1287
           console.log('透后评估', this.afterdialysis)
1278 1288
           this.operators = response.data.data.operators

+ 13 - 13
src/xt_permission.js 查看文件

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
 //  // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))