Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 8 months ago
parent
commit
6816738d13

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -3061,7 +3061,7 @@ mu
3061 3061
         }
3062 3062
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
3063 3063
         // console.log('this.schedual', schedual.mode_id)
3064
-        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 0 || schedual.mode_id == 37 || schedual.mode_id == 36 || schedual.mode_id == 35 || schedual.mode_id == 34) {
3064
+        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 0 || schedual.mode_id == 37 || schedual.mode_id == 36 || schedual.mode_id == 35 || schedual.mode_id == 34|| schedual.mode_id == 41) {
3065 3065
           this.zhiShow = true
3066 3066
           this.huShow = true
3067 3067
           this.totalShow = true

+ 6 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -2197,7 +2197,7 @@
2197 2197
 
2198 2198
 
2199 2199
                       <tr
2200
-                      v-if="org_id == 0 || org_id ==10206"
2200
+                      v-if="org_id == 0 || org_id ==10206 || org_id== 10489"
2201 2201
                       v-for="(advice, advice_index) in projectsOne"
2202 2202
                       :key="advice_index"
2203 2203
                     >
@@ -2412,7 +2412,7 @@
2412 2412
                         </span>
2413 2413
                         </td>
2414 2414
                       </tr>
2415
-                      <!-- </template> -->
2415
+                     
2416 2416
 
2417 2417
 
2418 2418
                       <tr
@@ -5639,7 +5639,7 @@ export default {
5639 5639
 
5640 5640
         console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",this.doctor_advices)
5641 5641
 
5642
-        if(this.org_id ==10206 || this.org_id ==10489 || this.org_id ==10644 || this.org_id ==10633){
5642
+        if(this.org_id ==10206 || this.org_id ==10489 || this.org_id ==10644 || this.org_id ==10633 || this.org_id == 0){
5643 5643
           let projectsOne = [];
5644 5644
           response.data.data.projects.map((item) => {
5645 5645
               projectsOne.push(item);
@@ -5702,15 +5702,16 @@ export default {
5702 5702
 
5703 5703
 
5704 5704
 
5705
-        if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206 && this.org_id!=10478){
5705
+        if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206 && this.org_id!=10478 && this.org_id!=0 && this.org_id!=10489){
5706 5706
             if(this.projects!=null && this.projects.length >0){
5707 5707
              for(let i=0;i<this.projects.length;i++){
5708 5708
               if(this.projects[i].type== 2){
5709 5709
 
5710 5710
                 this.projects[i].project_team_name = ""
5711 5711
                 this.projects[i].project_team_id = 0
5712
-                console.log("this.projects[i].project.team",this.projects[i].project.team)
5712
+               
5713 5713
                 if(this.projects[i].team!= "undefined" && this.projects[i].team.id >0){
5714
+                  console.log("this.projects[i].project.team", this.projects[i].team)
5714 5715
                   this.projects[i].project_team = this.projects[i].team.project_team
5715 5716
                   this.projects[i].project_team_id = this.projects[i].team.id
5716 5717
                   this.projects[i].start_time = this.projects[i].start_time

+ 119 - 9
src/xt_pages/fapiao/newSettleDetail.vue View File

@@ -200,6 +200,7 @@ import {
200 200
 
201 201
 import { getDialysisRecordInitData } from '@/api/dialysis_record'
202 202
 import { number } from 'echarts/lib/export'
203
+import QRCode from 'qrcodejs2'
203 204
 
204 205
 const moment = require('moment')
205 206
 export default {
@@ -284,18 +285,30 @@ export default {
284 285
         "id":id,
285 286
         "admin_user_id":this.$store.getters.xt_user.user.id,
286 287
       }
287
-      OpenRedFapiao(params).then((response) => {
288
+      var that = this;
289
+      axios.get('http://127.0.0.1:9532/api/fapiao/red',{params:params}).then(function(response) {
288 290
         if (response.data.state == 0) {
289
-          this.$message.error(response.data.msg)
291
+          that.$message.error(response.data.data.msg);
290 292
           return false
291 293
         } else {
292
-          this.$message.success(response.data.msg)
293
-          this.getHisOrderList()
294
+          if(response.data.data.failed_code == -10){
295
+            that.$confirm(response.data.data.msg, '错误信息', {
296
+              confirmButtonText: '确 定',
297
+              type: 'warning'
298
+            }).then(() => {
299
+
300
+            }).catch(() => {
301
+            })
302
+          }else{
303
+            that.$message.success(response.data.msg)
304
+            that.getHisOrderList()
305
+          }
306
+
294 307
         }
308
+      }).catch(function(error) {
295 309
       })
296 310
     },
297 311
     blue(){
298
-      console.log(this.selecting_schs)
299 312
       var order_ids = ""
300 313
       for(let i = 0; i < this.selecting_schs.length;i++){
301 314
         if(order_ids.length == 0){
@@ -308,14 +321,27 @@ export default {
308 321
         "order_ids":order_ids,
309 322
         "admin_user_id":this.$store.getters.xt_user.user.id,
310 323
       }
311
-      OpenBlueFapiao(params).then((response) => {
324
+      var that = this;
325
+      axios.get('http://127.0.0.1:9532/api/fapiao/blue',{params:params}).then(function(response) {
312 326
         if (response.data.state == 0) {
313
-          this.$message.error(response.data.msg)
327
+          that.$message.error(response.data.data.msg);
314 328
           return false
315 329
         } else {
316
-          this.$message.success(response.data.msg)
317
-          this.getHisOrderList()
330
+          if(response.data.data.failed_code == -10){
331
+            that.$confirm(response.data.data.msg, '错误信息', {
332
+              confirmButtonText: '确 定',
333
+              type: 'warning'
334
+            }).then(() => {
335
+
336
+            }).catch(() => {
337
+            })
338
+          }else{
339
+            that.$message.success(response.data.data.msg)
340
+            that.getHisOrderList()
341
+          }
342
+
318 343
         }
344
+      }).catch(function(error) {
319 345
       })
320 346
     },
321 347
     getData(patient_id){
@@ -325,6 +351,90 @@ export default {
325 351
     },
326 352
     auth(){
327 353
 
354
+      var that = this;
355
+      let params = {
356
+        "admin_user_id":this.$store.getters.xt_user.user.id,
357
+      }
358
+      axios.get('http://127.0.0.1:9532/api/fapiao/qrcode/get',{params:params}).then(function(response) {
359
+        if (response.data.state == 0) {
360
+          that.$message.error(response.data.data.msg);
361
+          return false
362
+        } else {
363
+          if(response.data.data.failed_code == -10){
364
+            that.$confirm(response.data.data.msg, '错误信息', {
365
+              confirmButtonText: '确 定',
366
+              type: 'warning'
367
+            }).then(() => {
368
+
369
+            }).catch(() => {
370
+            })
371
+          }else{
372
+            if(response.data.data.cus_status == 1){
373
+              this.$nextTick(() =>{
374
+                var qrcode = new QRCode(that.$refs.qrCodeUrl, {
375
+                  text: response.data.data.qr_code, // 需要转换为二维码的内容
376
+                  width: 120,
377
+                  height: 120,
378
+                  colorDark: '#000000',
379
+                  colorLight: '#ffffff',
380
+                  correctLevel: QRCode.CorrectLevel.H
381
+                })
382
+              })
383
+              this.qr_dialogVisible =true
384
+            }else if(response.data.data.cus_status == -1){
385
+              // this.$message.error(response.data.msg)/*  */
386
+              that
387
+                .$confirm(response.data.data.msg, '信息', {
388
+                  confirmButtonText: '确 定',
389
+                  type: 'warning'
390
+                })
391
+                .then(() => {
392
+                })
393
+                .catch(() => {
394
+                })
395
+            }else if(response.data.data.cus_status == 2){
396
+              // this.$message.error(response.data.data.msg)
397
+              that
398
+                .$confirm(response.data.data.msg, '信息', {
399
+                  confirmButtonText: '确 定',
400
+                  type: 'warning'
401
+                })
402
+                .then(() => {
403
+                })
404
+                .catch(() => {
405
+                })
406
+
407
+            }else if(response.data.data.cus_status == -3){
408
+              // this.$message.error(response.data.data.msg)
409
+              that
410
+                .$confirm(response.data.data.msg, '信息', {
411
+                  confirmButtonText: '确 定',
412
+                  type: 'warning'
413
+                })
414
+                .then(() => {
415
+                })
416
+                .catch(() => {
417
+                })
418
+
419
+            }else if(response.data.data.cus_status == -4){
420
+              // this.$message.error(response.data.data.msg)
421
+              that
422
+                .$confirm(response.data.data.msg, '信息', {
423
+                  confirmButtonText: '确 定',
424
+                  type: 'warning'
425
+                })
426
+                .then(() => {
427
+                })
428
+                .catch(() => {
429
+                })
430
+            }
431
+
432
+          }
433
+
434
+        }
435
+      }).catch(function(error) {
436
+      })
437
+
328 438
     },
329 439
     query(){
330 440
 

+ 259 - 86
src/xt_pages/fapiao/settleDetail.vue View File

@@ -343,45 +343,95 @@ export default {
343 343
 
344 344
   methods: {
345 345
     loginSJ(){
346
+      // let params = {
347
+      //   "code":this.formLabelAlign.verify,
348
+      // }
349
+      // SMSLogin(params).then((response) => {
350
+      //   if (response.data.state == 0) {
351
+      //     this.login_dialogVisible = false
352
+      //     this.$message.error(response.data.msg)
353
+      //     return false
354
+      //   } else {
355
+      //     this.login_dialogVisible = false
356
+      //     // this.$message.success(response.data.msg)
357
+      //     // this.$message.success(response.data.data.msg)
358
+      //     this
359
+      //       .$confirm(response.data.data.msg, '信息', {
360
+      //         confirmButtonText: '确 定',
361
+      //         type: 'warning'
362
+      //       })
363
+      //       .then(() => {
364
+      //       })
365
+      //       .catch(() => {
366
+      //       })
367
+      //
368
+      //   }
369
+      // })
370
+
371
+      var that = this;
346 372
       let params = {
347 373
         "code":this.formLabelAlign.verify,
348 374
       }
349
-      SMSLogin(params).then((response) => {
375
+      axios.get('http://127.0.0.1:9532/api/fapiao/sms/login',{params:params}).then(function(response) {
350 376
         if (response.data.state == 0) {
351
-          this.login_dialogVisible = false
352
-          this.$message.error(response.data.msg)
377
+          that.$message.error(response.data.data.msg);
353 378
           return false
354 379
         } else {
355
-          this.login_dialogVisible = false
356
-          // this.$message.success(response.data.msg)
357
-          // this.$message.success(response.data.data.msg)
358
-          this
359
-            .$confirm(response.data.data.msg, '信息', {
380
+          if(response.data.data.failed_code == -10){
381
+            that.$confirm(response.data.data.msg, '错误信息', {
360 382
               confirmButtonText: '确 定',
361 383
               type: 'warning'
384
+            }).then(() => {
385
+
386
+            }).catch(() => {
362 387
             })
363
-            .then(() => {
364
-            })
365
-            .catch(() => {
366
-            })
388
+          }else{
389
+            that.login_dialogVisible = false
390
+            // this.$message.success(response.data.msg)
391
+            // this.$message.success(response.data.data.msg)
392
+            that
393
+              .$confirm(response.data.data.msg, '信息', {
394
+                confirmButtonText: '确 定',
395
+                type: 'warning'
396
+              })
397
+              .then(() => {
398
+              })
399
+              .catch(() => {
400
+              })
401
+          }
367 402
 
368 403
         }
404
+      }).catch(function(error) {
369 405
       })
406
+
370 407
     },
371 408
     login(){
372 409
       this.login_dialogVisible = true
373 410
     },
374 411
     verify_click(){
412
+      var that = this;
375 413
       let params = {
376 414
         "admin_user_id":this.$store.getters.xt_user.user.id,
377 415
       }
378
-      GetSMSCode(params).then((response) => {
416
+      axios.get('http://127.0.0.1:9532/api/fapiao/sms/code',{params:params}).then(function(response) {
379 417
         if (response.data.state == 0) {
380
-          this.$message.error(response.data.msg)
418
+          that.$message.error(response.data.data.msg);
381 419
           return false
382 420
         } else {
383
-          this.$message.success(response.data.data.msg)
421
+          if(response.data.data.failed_code == -10){
422
+            that.$confirm(response.data.data.msg, '错误信息', {
423
+              confirmButtonText: '确 定',
424
+              type: 'warning'
425
+            }).then(() => {
426
+
427
+            }).catch(() => {
428
+            })
429
+          }else{
430
+            that.$message.success(response.data.data.msg)
431
+          }
432
+
384 433
         }
434
+      }).catch(function(error) {
385 435
       })
386 436
       this.countdown = 60
387 437
       this.time = setInterval(() => {
@@ -393,81 +443,163 @@ export default {
393 443
       }, 1000)
394 444
     },
395 445
     auth(){
446
+
447
+      // let params = {
448
+      // }
449
+      // GetQRCode(params).then((response) => {
450
+      //   if (response.data.state == 0) {
451
+      //     this.$message.error(response.data.msg)
452
+      //     return false
453
+      //   } else {
454
+      //     if(response.data.data.cus_status == 1){
455
+      //       this.$nextTick(() =>{
456
+      //         var qrcode = new QRCode(this.$refs.qrCodeUrl, {
457
+      //           text: response.data.data.qr_code, // 需要转换为二维码的内容
458
+      //           width: 120,
459
+      //           height: 120,
460
+      //           colorDark: '#000000',
461
+      //           colorLight: '#ffffff',
462
+      //           correctLevel: QRCode.CorrectLevel.H
463
+      //         })
464
+      //       })
465
+      //       this.qr_dialogVisible =true
466
+      //     }else if(response.data.data.cus_status == -1){
467
+      //       // this.$message.error(response.data.msg)/*  */
468
+      //       this
469
+      //         .$confirm(response.data.data.msg, '信息', {
470
+      //           confirmButtonText: '确 定',
471
+      //           type: 'warning'
472
+      //         })
473
+      //         .then(() => {
474
+      //         })
475
+      //         .catch(() => {
476
+      //         })
477
+      //     }else if(response.data.data.cus_status == 2){
478
+      //       // this.$message.error(response.data.data.msg)
479
+      //       this
480
+      //         .$confirm(response.data.data.msg, '信息', {
481
+      //           confirmButtonText: '确 定',
482
+      //           type: 'warning'
483
+      //         })
484
+      //         .then(() => {
485
+      //         })
486
+      //         .catch(() => {
487
+      //         })
488
+      //
489
+      //     }else if(response.data.data.cus_status == -3){
490
+      //       // this.$message.error(response.data.data.msg)
491
+      //       this
492
+      //         .$confirm(response.data.data.msg, '信息', {
493
+      //           confirmButtonText: '确 定',
494
+      //           type: 'warning'
495
+      //         })
496
+      //         .then(() => {
497
+      //         })
498
+      //         .catch(() => {
499
+      //         })
500
+      //
501
+      //     }else if(response.data.data.cus_status == -4){
502
+      //       // this.$message.error(response.data.data.msg)
503
+      //       this
504
+      //         .$confirm(response.data.data.msg, '信息', {
505
+      //           confirmButtonText: '确 定',
506
+      //           type: 'warning'
507
+      //         })
508
+      //         .then(() => {
509
+      //         })
510
+      //         .catch(() => {
511
+      //         })
512
+      //
513
+      //     }
514
+      //     // this.$message.success(response.data.msg)
515
+      //   }
516
+      // })
517
+
518
+
519
+      var that = this;
396 520
       let params = {
521
+        "admin_user_id":this.$store.getters.xt_user.user.id,
397 522
       }
398
-      GetQRCode(params).then((response) => {
523
+      axios.get('http://127.0.0.1:9532/api/fapiao/qrcode/get',{params:params}).then(function(response) {
399 524
         if (response.data.state == 0) {
400
-          this.$message.error(response.data.msg)
525
+          that.$message.error(response.data.data.msg);
401 526
           return false
402 527
         } else {
403
-          if(response.data.data.cus_status == 1){
404
-            this.$nextTick(() =>{
405
-              var qrcode = new QRCode(this.$refs.qrCodeUrl, {
406
-                text: response.data.data.qr_code, // 需要转换为二维码的内容
407
-                width: 120,
408
-                height: 120,
409
-                colorDark: '#000000',
410
-                colorLight: '#ffffff',
411
-                correctLevel: QRCode.CorrectLevel.H
412
-              })
413
-            })
414
-            this.qr_dialogVisible =true
415
-          }else if(response.data.data.cus_status == -1){
416
-            // this.$message.error(response.data.msg)/*  */
417
-            this
418
-              .$confirm(response.data.data.msg, '信息', {
419
-                confirmButtonText: '确 定',
420
-                type: 'warning'
421
-              })
422
-              .then(() => {
423
-              })
424
-              .catch(() => {
425
-              })
426
-          }else if(response.data.data.cus_status == 2){
427
-            // this.$message.error(response.data.data.msg)
428
-            this
429
-              .$confirm(response.data.data.msg, '信息', {
430
-                confirmButtonText: '确 定',
431
-                type: 'warning'
432
-              })
433
-              .then(() => {
434
-              })
435
-              .catch(() => {
436
-              })
437
-
438
-          }else if(response.data.data.cus_status == -3){
439
-            // this.$message.error(response.data.data.msg)
440
-            this
441
-              .$confirm(response.data.data.msg, '信息', {
442
-                confirmButtonText: '确 定',
443
-                type: 'warning'
444
-              })
445
-              .then(() => {
446
-              })
447
-              .catch(() => {
448
-              })
528
+          if(response.data.data.failed_code == -10){
529
+            that.$confirm(response.data.data.msg, '错误信息', {
530
+              confirmButtonText: '确 定',
531
+              type: 'warning'
532
+            }).then(() => {
449 533
 
450
-          }else if(response.data.data.cus_status == -4){
451
-            // this.$message.error(response.data.data.msg)
452
-            this
453
-              .$confirm(response.data.data.msg, '信息', {
454
-                confirmButtonText: '确 定',
455
-                type: 'warning'
456
-              })
457
-              .then(() => {
458
-              })
459
-              .catch(() => {
534
+            }).catch(() => {
535
+            })
536
+          }else{
537
+            if(response.data.data.cus_status == 1){
538
+              this.$nextTick(() =>{
539
+                var qrcode = new QRCode(that.$refs.qrCodeUrl, {
540
+                  text: response.data.data.qr_code, // 需要转换为二维码的内容
541
+                  width: 120,
542
+                  height: 120,
543
+                  colorDark: '#000000',
544
+                  colorLight: '#ffffff',
545
+                  correctLevel: QRCode.CorrectLevel.H
546
+                })
460 547
               })
548
+              this.qr_dialogVisible =true
549
+            }else if(response.data.data.cus_status == -1){
550
+              // this.$message.error(response.data.msg)/*  */
551
+              that
552
+                .$confirm(response.data.data.msg, '信息', {
553
+                  confirmButtonText: '确 定',
554
+                  type: 'warning'
555
+                })
556
+                .then(() => {
557
+                })
558
+                .catch(() => {
559
+                })
560
+            }else if(response.data.data.cus_status == 2){
561
+              // this.$message.error(response.data.data.msg)
562
+              that
563
+                .$confirm(response.data.data.msg, '信息', {
564
+                  confirmButtonText: '确 定',
565
+                  type: 'warning'
566
+                })
567
+                .then(() => {
568
+                })
569
+                .catch(() => {
570
+                })
571
+
572
+            }else if(response.data.data.cus_status == -3){
573
+              // this.$message.error(response.data.data.msg)
574
+              that
575
+                .$confirm(response.data.data.msg, '信息', {
576
+                  confirmButtonText: '确 定',
577
+                  type: 'warning'
578
+                })
579
+                .then(() => {
580
+                })
581
+                .catch(() => {
582
+                })
583
+
584
+            }else if(response.data.data.cus_status == -4){
585
+              // this.$message.error(response.data.data.msg)
586
+              that
587
+                .$confirm(response.data.data.msg, '信息', {
588
+                  confirmButtonText: '确 定',
589
+                  type: 'warning'
590
+                })
591
+                .then(() => {
592
+                })
593
+                .catch(() => {
594
+                })
595
+            }
461 596
 
462 597
           }
463
-          // this.$message.success(response.data.msg)
598
+
464 599
         }
600
+      }).catch(function(error) {
465 601
       })
466 602
 
467
-
468
-
469
-
470
-
471 603
     },
472 604
     query(){
473 605
       this.getHisOrderList()
@@ -481,34 +613,75 @@ export default {
481 613
         "order_ids":ids,
482 614
         "admin_user_id":this.$store.getters.xt_user.user.id,
483 615
       }
484
-      OpenBlueFapiao(params).then((response) => {
616
+
617
+      var that = this;
618
+      axios.get('http://127.0.0.1:9532/api/fapiao/blue',{params:params}).then(function(response) {
485 619
         if (response.data.state == 0) {
486
-          this.$message.error(response.data.msg)
620
+          that.$message.error(response.data.data.msg);
487 621
           return false
488 622
         } else {
489
-          this.$message.success(response.data.msg)
490
-          this.getHisOrderList()
623
+          if(response.data.data.failed_code == -10){
624
+            that.$confirm(response.data.data.msg, '错误信息', {
625
+              confirmButtonText: '确 定',
626
+              type: 'warning'
627
+            }).then(() => {
628
+
629
+            }).catch(() => {
630
+            })
631
+          }else{
632
+            that.$message.success(response.data.data.msg)
633
+            that.getHisOrderList()
634
+          }
635
+
491 636
         }
637
+      }).catch(function(error) {
492 638
       })
639
+      // OpenBlueFapiao(params).then((response) => {
640
+      //   if (response.data.state == 0) {
641
+      //     this.$message.error(response.data.msg)
642
+      //     return false
643
+      //   } else {
644
+      //     this.$message.success(response.data.msg)
645
+      //     this.getHisOrderList()
646
+      //   }
647
+      // })
648
+
649
+
493 650
     }, yulan(row){
494 651
 
495 652
 
496 653
 
497 654
     },hongchong(row){
498 655
       var  id = row.result.id
656
+
499 657
       let params = {
500 658
         "id":id,
501 659
         "admin_user_id":this.$store.getters.xt_user.user.id,
502 660
       }
503
-      OpenRedFapiao(params).then((response) => {
661
+
662
+      var that = this;
663
+      axios.get('http://127.0.0.1:9532/api/fapiao/red',{params:params}).then(function(response) {
504 664
         if (response.data.state == 0) {
505
-          this.$message.error(response.data.msg)
665
+          that.$message.error(response.data.data.msg);
506 666
           return false
507 667
         } else {
508
-          this.$message.success(response.data.msg)
509
-          this.getHisOrderList()
668
+          if(response.data.data.failed_code == -10){
669
+            that.$confirm(response.data.data.msg, '错误信息', {
670
+              confirmButtonText: '确 定',
671
+              type: 'warning'
672
+            }).then(() => {
673
+
674
+            }).catch(() => {
675
+            })
676
+          }else{
677
+            that.$message.success(response.data.msg)
678
+            that.getHisOrderList()
679
+          }
680
+
510 681
         }
682
+      }).catch(function(error) {
511 683
       })
684
+
512 685
     },
513 686
     getAllstaff(){
514 687
       adminMainView()

+ 30 - 27
src/xt_pages/org/orginfo.vue View File

@@ -411,6 +411,36 @@ import Neditor from '@/components/Neditor'
411 411
                     this.form.illness = res.data.orginfo.illness;
412 412
                     this.form.illness_list = [];
413 413
                     this.form.org_gallery = res.data.orginfo.org_gallery;
414
+                    
415
+                    this.orgtypes = [];
416
+                    this.orgtypesMap ={},
417
+                    this.childtypes = [];
418
+                    var orgtypes = res.data.orgtypes;
419
+                    for (const index in orgtypes) {
420
+                        if(orgtypes[index].pid>0) {
421
+                            if(!(orgtypes[index].pid in this.orgtypesMap)) {
422
+                                this.orgtypesMap[orgtypes[index].pid] = [];
423
+                            }
424
+                            this.orgtypesMap[orgtypes[index].pid].push(orgtypes[index]);
425
+                            if(orgtypes[index].id == this.form.org_type) {
426
+                                this.form.child_type = orgtypes[index].id;
427
+                                this.form.parent_type = orgtypes[index].pid;
428
+                            }
429
+                        }else {
430
+                            this.orgtypes.push(orgtypes[index]);
431
+                            if(orgtypes[index].id == this.form.org_type) {
432
+                                this.form.parent_type = orgtypes[index].id;
433
+                            }
434
+                        }
435
+                    }
436
+                    if (this.form.parent_type in this.orgtypesMap) {
437
+                        this.childtypes = this.orgtypesMap[this.form.parent_type];
438
+                    }else {
439
+                        this.childtypes = [];
440
+                    }
441
+                    console.log("机构",this.orgtypesMap)
442
+                    this.illnessOptions = res.data.illness?res.data.illness:[];
443
+                    console.log("疾病类型",this.illnessOptions)
414 444
                     this.fileList = [];
415 445
                     var gallery =  res.data.orginfo.org_gallery
416 446
                     console.log("haaaaaaaaaaaaaaaaaa",gallery)
@@ -466,33 +496,6 @@ import Neditor from '@/components/Neditor'
466 496
                     this.citys = res.data.citys?res.data.citys:[];
467 497
                     this.districts = res.data.districts?res.data.districts:[];
468 498
 
469
-                    this.orgtypes = [];
470
-                    this.orgtypesMap ={},
471
-                    this.childtypes = [];
472
-                    var orgtypes = res.data.orgtypes;
473
-                    for (const index in orgtypes) {
474
-                        if(orgtypes[index].pid>0) {
475
-                            if(!(orgtypes[index].pid in this.orgtypesMap)) {
476
-                                this.orgtypesMap[orgtypes[index].pid] = [];
477
-                            }
478
-                            this.orgtypesMap[orgtypes[index].pid].push(orgtypes[index]);
479
-                            if(orgtypes[index].id == this.form.org_type) {
480
-                                this.form.child_type = orgtypes[index].id;
481
-                                this.form.parent_type = orgtypes[index].pid;
482
-                            }
483
-                        }else {
484
-                            this.orgtypes.push(orgtypes[index]);
485
-                            if(orgtypes[index].id == this.form.org_type) {
486
-                                this.form.parent_type = orgtypes[index].id;
487
-                            }
488
-                        }
489
-                    }
490
-                    if (this.form.parent_type in this.orgtypesMap) {
491
-                        this.childtypes = this.orgtypesMap[this.form.parent_type];
492
-                    }else {
493
-                        this.childtypes = [];
494
-                    }
495
-                    this.illnessOptions = res.data.illness?res.data.illness:[];
496 499
                    
497 500
                 } else {
498 501
                     this.formloading = false;

+ 13 - 13
src/xt_permission.js View File

@@ -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))