Преглед изворни кода

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

see999 пре 3 година
родитељ
комит
f53f9400b0
35 измењених фајлова са 2462 додато и 1404 уклоњено
  1. 12 0
      src/api/his/his.js
  2. 5 6
      src/api/project/project.js
  3. 2 1
      src/lang/zh.js
  4. 11 0
      src/router/modules/outpatientRecord.js
  5. 252 230
      src/xt_pages/data/components/consumables.vue
  6. 166 144
      src/xt_pages/data/components/drugs.vue
  7. 101 80
      src/xt_pages/data/components/project.vue
  8. 229 229
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  9. 1 1
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  10. 41 11
      src/xt_pages/hospitalStation/doctorDesk.vue
  11. 8 1
      src/xt_pages/hospitalStation/index.vue
  12. 8 1
      src/xt_pages/hospitalStation/newStatementPrint.vue
  13. 8 1
      src/xt_pages/hospitalStation/newStatementPrintTwo.vue
  14. 309 34
      src/xt_pages/hospitalStation/outpatientChargesManagement.vue
  15. 188 0
      src/xt_pages/hospitalStation/pastInquiries.vue
  16. 15 0
      src/xt_pages/hospitalStation/statementPrint.vue
  17. 21 7
      src/xt_pages/hospitalStation/statementTemplate/printOne.vue
  18. 24 11
      src/xt_pages/hospitalStation/summary.vue
  19. 7 1
      src/xt_pages/hospitalStation/treatTemplate/printOne.vue
  20. 93 83
      src/xt_pages/outpatientCharges/listPrint.vue
  21. 61 51
      src/xt_pages/outpatientCharges/newStatementPrint.vue
  22. 41 34
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue
  23. 268 26
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  24. 57 53
      src/xt_pages/outpatientCharges/settlementPrint.vue
  25. 60 50
      src/xt_pages/outpatientCharges/statementPrint.vue
  26. 29 15
      src/xt_pages/outpatientCharges/statementTemplate/printOne.vue
  27. 58 49
      src/xt_pages/outpatientCharges/summary.vue
  28. 102 95
      src/xt_pages/outpatientCharges/treatTemplate/printOne.vue
  29. 3 3
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  30. 35 3
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  31. 71 50
      src/xt_pages/outpatientRecord/outpatientRecord.vue
  32. 32 4
      src/xt_pages/outpatientRegistration/index.vue
  33. 79 65
      src/xt_pages/outpatientRegistration/registrationHistory.vue
  34. 29 29
      src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue
  35. 36 36
      src/xt_pages/stock/stockOutOrderDetailPrint.vue

+ 12 - 0
src/api/his/his.js Прегледај датотеку

@@ -410,6 +410,18 @@ export function GetHisHospitalChargePatientInfo (params) {
410 410
 
411 411
 
412 412
 
413
+export function getHisHospitalPrescriptionList (params) {
414
+  return request({
415
+    url: '/api/hospitalprescription/list',
416
+    method: 'get',
417
+    params:params,
418
+  })
419
+}
420
+
421
+
422
+
423
+
424
+
413 425
 
414 426
 
415 427
 

+ 5 - 6
src/api/project/project.js Прегледај датотеку

@@ -437,7 +437,7 @@ export function getTodaySchedulePatient(params){
437 437
 }
438 438
 
439 439
 export function getHisPatientDetail(params){
440
-  console.log("params99999",params)
440
+  console.log("params99999",params);
441 441
   return request({
442 442
     url:"/api/hispatient/gethispatientdetail",
443 443
     method:"Get",
@@ -454,12 +454,11 @@ export function getAllDePartmentList(params){
454 454
   })
455 455
 }
456 456
 
457
-export function getPrescriptionList(id,params){
457
+export function getPrescriptionList(id,p_type){
458 458
 
459 459
   return request({
460
-    url:"/api/hispatient/getprescription?patient_id="+id,
460
+    url:"/api/hispatient/getprescription?patient_id="+id+"&p_type="+p_type,
461 461
     method:"Get",
462
-    params:params
463 462
   })
464 463
 }
465 464
 
@@ -527,7 +526,7 @@ export function getUnRegisterHisPatientList (params) {
527 526
 
528 527
 
529 528
 export function postProjectInformation(params){
530
-  
529
+
531 530
   return request({
532 531
     url:"/api/postprojectinformation",
533 532
     method:"post",
@@ -541,4 +540,4 @@ export function getInvoice(params){
541 540
     method:"get",
542 541
     params:params
543 542
   })
544
-}
543
+}

+ 2 - 1
src/lang/zh.js Прегледај датотеку

@@ -244,7 +244,8 @@ export default {
244 244
     objectTableDisinfect:'物表消毒',
245 245
 
246 246
 
247
-    hospitalStation:"住院工作站"
247
+    hospitalStation:"住院工作站",
248
+    pastInquiries:"既往查询",
248 249
 
249 250
   },
250 251
   navbar: {

+ 11 - 0
src/router/modules/outpatientRecord.js Прегледај датотеку

@@ -29,6 +29,11 @@ export default {
29 29
       component: () => import('@/xt_pages/hospitalStation/doctorDesk'),
30 30
       name: 'outpatientDoctorStationDoctorDesk',
31 31
       meta: { title: 'outpatientDoctorStationDoctorDesk', noCache: true }
32
+    }, {
33
+      path: '/outpatientRecord/pastInquiries',
34
+      component: () => import('@/xt_pages/hospitalStation/pastInquiries'),
35
+      name: 'pastInquiries',
36
+      meta: { title: 'pastInquiries', noCache: true }
32 37
     },
33 38
     {
34 39
       path: '/outpatientRecord/outpatientChargesManagement',
@@ -36,6 +41,12 @@ export default {
36 41
       name: 'hospitalChargesManagement',
37 42
       meta: { title: 'hospitalChargesManagement', noCache: true }
38 43
     },
44
+    {
45
+      path: '/outpatientRecord/summary',
46
+      component: () => import('@/xt_pages/hospitalStation/summary'),
47
+      name: 'summary',
48
+      meta: { title: 'summary', noCache: true }
49
+    },
39 50
 
40 51
 
41 52
   ]

+ 252 - 230
src/xt_pages/data/components/consumables.vue Прегледај датотеку

@@ -4,7 +4,7 @@
4 4
       <div class="cell clearfix" style="margin-bottom:0;">
5 5
         <el-input style="width: 180px;margin-right:10px;" @keyup.enter.native='searchAction' v-model="keywords"
6 6
                   class="filter-item"/>
7
-        <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search" 
7
+        <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"
8 8
                    @click="searchAction">搜索
9 9
         </el-button>
10 10
         <label class="title"><span class="name">是否启用</span> : </label>
@@ -60,9 +60,9 @@
60 60
       <div>
61 61
         <el-button type="primary" @click="openForm()">新增</el-button>
62 62
       </div>
63
-     
63
+
64 64
     </div>
65
-    
65
+
66 66
      <div style="display:flex; align-items:center;margin-bottom:10px;">
67 67
         <el-button type="primary" size="mini" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028">批量备案</el-button>
68 68
         <el-button type="primary" size="mini" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord">批量备案</el-button>
@@ -330,7 +330,7 @@
330 330
               production_type:""
331 331
             },
332 332
             isVisibility: false,
333
-       
333
+
334 334
           }
335 335
         },
336 336
         selectDrug:[],
@@ -358,19 +358,26 @@
358 358
     },
359 359
     methods: {
360 360
       putOnUnRecord(id){
361
-        var that = this
361
+        var that = this;
362 362
         let params = {
363 363
           ids:id.toString(),
364 364
           record_type: 2,
365 365
           admin_user_id:this.$store.getters.xt_user.user.id
366
-        }
366
+        };
367 367
         axios.get('http://127.0.0.1:9532/api/uncheckcode/get',{params:params}).then(function(response) {
368 368
           if (response.data.state == 0) {
369
-            that.$message.error(response.data.data.msg)
369
+            that.$message.error(response.data.data.msg);
370 370
             return false
371 371
           } else {
372 372
             if(response.data.data.failed_code == -10){
373
-              that.$message.error(response.data.data.msg)
373
+              // that.$message.error(response.data.data.msg)
374
+              that.$confirm(response.data.data.msg, '医保错误信息', {
375
+                confirmButtonText: '确 定',
376
+                type: 'warning'
377
+              }).then(() => {
378
+
379
+              }).catch(() => {
380
+              })
374 381
             }else{
375 382
               // for (let i = 0; i < that.tableData.length; i++) {
376 383
               //   if (that.tableData[i].id == that.currentObject.id) {
@@ -384,24 +391,32 @@
384 391
         })
385 392
       },
386 393
       putOnRecord(id){
387
-        var that = this
394
+        var that = this;
388 395
 
389 396
         let params = {
390 397
           ids:id.toString(),
391 398
           record_type: 2,
392 399
           admin_user_id:this.$store.getters.xt_user.user.id
393
-        }
400
+        };
394 401
 
395 402
         axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
396 403
           if (response.data.state == 0) {
397
-            that.$message.error(response.data.data.msg)
404
+            that.$message.error(response.data.data.msg);
398 405
             return false
399 406
           } else {
400 407
             if(response.data.data.failed_code == -10){
401
-              that.$message.error(response.data.data.msg)
408
+              // that.$message.error(response.data.data.msg)
409
+              that.$confirm(response.data.data.msg, '医保错误信息', {
410
+                confirmButtonText: '确 定',
411
+                type: 'warning'
412
+              }).then(() => {
413
+
414
+              }).catch(() => {
415
+              })
402 416
             }else{
403 417
 
404 418
 
419
+
405 420
             }
406 421
 
407 422
 
@@ -411,7 +426,7 @@
411 426
         })
412 427
       },
413 428
       GDYBBatchPutOnRecord(){
414
-        var that = this
429
+        var that = this;
415 430
         var ids = [];
416 431
         var idMap = {};
417 432
         for (const index in this.selectDrug) {
@@ -422,14 +437,21 @@
422 437
           ids:ids.join(','),
423 438
           record_type: 2,
424 439
           admin_user_id:this.$store.getters.xt_user.user.id
425
-        }
440
+        };
426 441
         axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
427 442
           if (response.data.state == 0) {
428
-            that.$message.error(response.data.data.msg)
443
+            that.$message.error(response.data.data.msg);
429 444
             return false
430 445
           } else {
431 446
             if(response.data.data.failed_code == -10){
432
-              that.$message.error(response.data.data.msg)
447
+              // that.$message.error(response.data.data.msg)
448
+              that.$confirm(response.data.data.msg, '医保错误信息', {
449
+                confirmButtonText: '确 定',
450
+                type: 'warning'
451
+              }).then(() => {
452
+
453
+              }).catch(() => {
454
+              })
433 455
             }else{
434 456
 
435 457
 
@@ -463,9 +485,9 @@
463 485
       },
464 486
       getGoodKind(id){
465 487
         // var data = this.getDictionaryDataConfig('system','good_kind')
466
-        var data = this.goodKindList
467
-       
468
-        var name = ""
488
+        var data = this.goodKindList;
489
+
490
+        var name = "";
469 491
         for(let i = 0; i < data.length; i++){
470 492
           if(id == data[i].value){
471 493
             name = data[i].name
@@ -482,18 +504,18 @@
482 504
         this.getList()
483 505
       },
484 506
       handleGoodInfoEdit: function(index, row) {
485
-        this.getAllDealer()
486
-        this.getAllManufacturer()
487
-        this.getAllGoodType()
488
-        this.goodInfo.editGoodId = row.id
489
-        this.goodInfo.editGoodIndex = index
507
+        this.getAllDealer();
508
+        this.getAllManufacturer();
509
+        this.getAllGoodType();
510
+        this.goodInfo.editGoodId = row.id;
511
+        this.goodInfo.editGoodIndex = index;
490 512
 
491 513
         let params = {
492 514
           id: row.id
493
-        }
515
+        };
494 516
         GetGoodInfo(params).then(response => {
495 517
           if (response.data.state == 0) {
496
-            this.$message.error(response.data.msg)
518
+            this.$message.error(response.data.msg);
497 519
             return false
498 520
           } else {
499 521
 
@@ -519,33 +541,33 @@
519 541
             }
520 542
 
521 543
             this.goodInfo.goodInfoDialog.formValue.specification_name =
522
-              response.data.data.goodInfo.specification_name
544
+              response.data.data.goodInfo.specification_name;
523 545
             this.goodInfo.goodInfoDialog.formValue.buy_price =
524
-              response.data.data.goodInfo.buy_price
546
+              response.data.data.goodInfo.buy_price;
525 547
             this.goodInfo.goodInfoDialog.formValue.sell_price =
526
-              response.data.data.goodInfo.sell_price
548
+              response.data.data.goodInfo.sell_price;
527 549
             this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count =
528
-              response.data.data.goodInfo.expiry_date_warn_day_count
550
+              response.data.data.goodInfo.expiry_date_warn_day_count;
529 551
             this.goodInfo.goodInfoDialog.formValue.stock_warn_count =
530
-              response.data.data.goodInfo.stock_warn_count
531
-            this.goodInfo.goodInfoDialog.formValue.is_reuse = response.data.data.goodInfo.is_reuse.toString()
552
+              response.data.data.goodInfo.stock_warn_count;
553
+            this.goodInfo.goodInfoDialog.formValue.is_reuse = response.data.data.goodInfo.is_reuse.toString();
532 554
             this.goodInfo.goodInfoDialog.formValue.remark =
533
-              response.data.data.goodInfo.remark
534
-            this.goodInfo.goodInfoDialog.isCreated = 2
535
-            this.goodInfo.good_code = response.data.data.goodInfo.good_code
555
+              response.data.data.goodInfo.remark;
556
+            this.goodInfo.goodInfoDialog.isCreated = 2;
557
+            this.goodInfo.good_code = response.data.data.goodInfo.good_code;
536 558
             this.goodInfo.goodInfoDialog.formValue.good_type_id =
537
-              response.data.data.goodInfo.good_type_id
559
+              response.data.data.goodInfo.good_type_id;
538 560
 
539 561
 
540 562
             this.goodInfo.goodInfoDialog.formValue.good_name =
541
-              response.data.data.goodInfo.good_name
563
+              response.data.data.goodInfo.good_name;
542 564
 
543 565
 
544 566
             this.goodInfo.goodInfoDialog.formValue.pinyin =
545
-              response.data.data.goodInfo.pinyin
567
+              response.data.data.goodInfo.pinyin;
546 568
 
547 569
             this.goodInfo.goodInfoDialog.formValue.wubi =
548
-              response.data.data.goodInfo.wubi
570
+              response.data.data.goodInfo.wubi;
549 571
 
550 572
 
551 573
 
@@ -565,11 +587,11 @@
565 587
 
566 588
 
567 589
             this.goodInfo.goodInfoDialog.formValue.retail_price =
568
-              response.data.data.goodInfo.retail_price
590
+              response.data.data.goodInfo.retail_price;
569 591
 
570 592
 
571 593
             this.goodInfo.goodInfoDialog.formValue.medical_insurance_number =
572
-              response.data.data.goodInfo.medical_insurance_number
594
+              response.data.data.goodInfo.medical_insurance_number;
573 595
 
574 596
 
575 597
             if (response.data.data.goodInfo.is_special_diseases <= 0) {
@@ -667,11 +689,11 @@
667 689
                 response.data.data.goodInfo.is_doctor_use.toString()
668 690
             }
669 691
 
670
-            this.goodInfo.goodInfoDialog.formValue.agent =response.data.data.goodInfo.agent
692
+            this.goodInfo.goodInfoDialog.formValue.agent =response.data.data.goodInfo.agent;
671 693
 
672
-            this.goodInfo.goodInfoDialog.formValue.good_number = response.data.data.goodInfo.good_number
694
+            this.goodInfo.goodInfoDialog.formValue.good_number = response.data.data.goodInfo.good_number;
673 695
 
674
-            this.goodInfo.goodInfoDialog.formValue.social_security_directory_code = response.data.data.goodInfo.social_security_directory_code
696
+            this.goodInfo.goodInfoDialog.formValue.social_security_directory_code = response.data.data.goodInfo.social_security_directory_code;
675 697
 
676 698
             if(response.data.data.production_type<=0){
677 699
                this.goodInfo.goodInfoDialog.production_type = ''
@@ -698,14 +720,14 @@
698 720
           .then(() => {
699 721
             let params = {
700 722
               id: row.id
701
-            }
723
+            };
702 724
 
703 725
             deleteGoodInfo(params).then(response => {
704 726
               if (response.data.state == 0) {
705
-                this.$message.error(response.data.msg)
727
+                this.$message.error(response.data.msg);
706 728
                 return false
707 729
               } else {
708
-                this.goodInfo.goodInfoData.splice(index, 1)
730
+                this.goodInfo.goodInfoData.splice(index, 1);
709 731
                 this.$message.success('删除成功')
710 732
               }
711 733
             })
@@ -714,7 +736,7 @@
714 736
           })
715 737
       },
716 738
       getList() {
717
-        this.goodInfo.loading = true
739
+        this.goodInfo.loading = true;
718 740
         let params = {
719 741
           page: this.page,
720 742
           limit: this.limit,
@@ -724,17 +746,17 @@
724 746
           is_charge: this.is_charge,
725 747
           is_mark:this.is_record,
726 748
           manufacturer:this.manufacturer,
727
-        }
728
-      
749
+        };
750
+
729 751
         getGoodInfoList(params).then(response => {
730 752
           if (response.data.state == 0) {
731
-            this.goodInfo.loading = false
732
-            this.$message.error(response.data.msg)
753
+            this.goodInfo.loading = false;
754
+            this.$message.error(response.data.msg);
733 755
             return false
734 756
           } else {
735
-            this.goodInfo.loading = false
736
-            this.total = response.data.data.total
737
-            this.goodInfo.goodInfoData = []
757
+            this.goodInfo.loading = false;
758
+            this.total = response.data.data.total;
759
+            this.goodInfo.goodInfoData = [];
738 760
             for (let i = 0; i < response.data.data.list.length; i++) {
739 761
               this.goodInfo.goodInfoData.push(response.data.data.list[i])
740 762
             }
@@ -746,20 +768,20 @@
746 768
         row.index = rowIndex
747 769
       },
748 770
       onRowClick(row, event, column) {
749
-        this.goodInfo.goodInfoData = []
750
-        this.goodType.tableCurrentIndex = row.index
751
-        this.goodInfo.goodInfoDialog.formValue.good_id = row.id
771
+        this.goodInfo.goodInfoData = [];
772
+        this.goodType.tableCurrentIndex = row.index;
773
+        this.goodInfo.goodInfoDialog.formValue.good_id = row.id;
752 774
         let params = {
753 775
           id: row.id
754
-        }
755
-        this.goodInfo.loading = true
776
+        };
777
+        this.goodInfo.loading = true;
756 778
         GetGoodInfoByGoodId(params).then(response => {
757 779
           if (response.data.state == 0) {
758
-            this.goodInfo.loading = false
759
-            this.$message.error(response.data.msg)
780
+            this.goodInfo.loading = false;
781
+            this.$message.error(response.data.msg);
760 782
             return false
761 783
           } else {
762
-            this.goodInfo.loading = false
784
+            this.goodInfo.loading = false;
763 785
             this.getList()
764 786
 
765 787
             // for (let i = 0; i < response.data.data.list.length; i++) {
@@ -769,24 +791,24 @@
769 791
         })
770 792
       },
771 793
       goodInfoDialogComfirm: function(val) {
772
-       
794
+
773 795
         if (val.isCreated == 2) {
774 796
           //修改
775
-          val['id'] = this.goodInfo.editGoodId
776
-          val['good_code'] = this.goodInfo.good_code
777
-        
778
-          
797
+          val['id'] = this.goodInfo.editGoodId;
798
+          val['good_code'] = this.goodInfo.good_code;
799
+
800
+
801
+
779 802
 
780 803
 
781
-          
782 804
           modifyGoodInfo(val).then(response => {
783 805
             if (response.data.state == 0) {
784 806
               // this.$message.error(response.data.msg)
785
-              this.$message.error("同一耗材类型同一规格名称不能重复录入!")
807
+              this.$message.error("同一耗材类型同一规格名称不能重复录入!");
786 808
               return false
787 809
             } else {
788
-              this.$refs.addConsumable.hide()
789
-              this.getList()
810
+              this.$refs.addConsumable.hide();
811
+              this.getList();
790 812
               // this.goodInfo.goodInfoData[
791 813
               //   this.goodInfo.editGoodIndex
792 814
               //   ].specification_name =
@@ -810,20 +832,20 @@
810 832
             }
811 833
           })
812 834
         } else if (val.isCreated == 1) {
813
-         
814
-          
835
+
836
+
815 837
           if(val.is_reuse == ""){
816 838
              val.is_reuse = 0
817 839
           }else{
818 840
             val.is_reuse = parseInt(val.is_reuse)
819 841
           }
820
-          
842
+
821 843
           if(val.stock_warn_count == ""){
822 844
              val.stock_warn_count = 0
823 845
           }else{
824 846
             val.stock_warn_count = parseInt(val.stock_warn_count)
825 847
           }
826
-         
848
+
827 849
           //新增
828 850
           createGoodInfo(val).then(response => {
829 851
             if (response.data.state == 0) {
@@ -831,8 +853,8 @@
831 853
               // return false
832 854
               this.$message.error("同一耗材类型同一规格名称不能重复录入!")
833 855
             } else {
834
-              this.$refs.addConsumable.hide()
835
-              this.getList()
856
+              this.$refs.addConsumable.hide();
857
+              this.getList();
836 858
               // this.goodInfo.goodInfoData.unshift(response.data.data.goodInfo)
837 859
               this.$message.success('新增成功')
838 860
             }
@@ -843,12 +865,12 @@
843 865
         this.$refs.addConsumable.hide()
844 866
       },
845 867
       showInfoDialog: function() {
846
-        this.getAllDealer()
847
-        this.getAllManufacturer()
848
-        this.goodInfo.goodInfoDialog.formValue.goodType = []
868
+        this.getAllDealer();
869
+        this.getAllManufacturer();
870
+        this.goodInfo.goodInfoDialog.formValue.goodType = [];
849 871
         GetAllGoodType().then(response => {
850 872
           if (response.data.state == 0) {
851
-            this.$message.error(response.data.msg)
873
+            this.$message.error(response.data.msg);
852 874
             return false
853 875
           } else {
854 876
             for (let i = 0; i < response.data.data.goodType.length; i++) {
@@ -860,93 +882,93 @@
860 882
               )
861 883
             }
862 884
             if (this.goodInfo.goodInfoDialog.formValue.goodType.length <= 0) {
863
-              this.$message.error('请先新增商品类型')
864
-              return
885
+              this.$message.error('请先新增商品类型');
886
+
865 887
             } else {
866
-              this.goodInfo.goodInfoDialog.isVisibility = true
888
+              this.goodInfo.goodInfoDialog.isVisibility = true;
867 889
               this.goodInfo.goodInfoDialog.isCreated = 1
868 890
             }
869 891
           }
870
-        })
892
+        });
871 893
         this.$refs.addConsumable.show()
872 894
 
873 895
       },
874 896
       getAllDealer: function() {
875
-        this.goodInfo.goodInfoDialog.formValue.dealers = []
897
+        this.goodInfo.goodInfoDialog.formValue.dealers = [];
876 898
         GetAllDeals().then(response => {
877 899
           if (response.data.state == 0) {
878
-            this.$message.error(response.data.msg)
900
+            this.$message.error(response.data.msg);
879 901
             return false
880 902
           } else {
881 903
             for (let i = 0; i < response.data.data.dealer.length; i++) {
882 904
               this.goodInfo.goodInfoDialog.formValue.dealers.push(
883 905
                 response.data.data.dealer[i]
884
-              )
906
+              );
885 907
               this.dealers.push(response.data.data.dealer[i])
886 908
             }
887 909
           }
888 910
         })
889 911
       },
890 912
       getAllManufacturer: function() {
891
-        this.goodInfo.goodInfoDialog.formValue.manufacturers = []
913
+        this.goodInfo.goodInfoDialog.formValue.manufacturers = [];
892 914
         GetAllManufacturer().then(response => {
893 915
           if (response.data.state == 0) {
894
-            this.$message.error(response.data.msg)
916
+            this.$message.error(response.data.msg);
895 917
             return false
896 918
           } else {
897
-            var obj = {id:0,manufacturer_name:"全部"}
898
-            this.manufacturers.push(obj)
919
+            var obj = {id:0,manufacturer_name:"全部"};
920
+            this.manufacturers.push(obj);
899 921
             for (let i = 0; i < response.data.data.manufacturer.length; i++) {
900 922
               this.goodInfo.goodInfoDialog.formValue.manufacturers.push(
901 923
                 response.data.data.manufacturer[i]
902
-              )
924
+              );
903 925
               this.manufacturers.push(response.data.data.manufacturer[i])
904 926
             }
905
-           
927
+
906 928
           }
907 929
         })
908 930
       },
909 931
       getAllGoodType: function() {
910
-        this.goodInfo.goodInfoDialog.formValue.goodType = []
932
+        this.goodInfo.goodInfoDialog.formValue.goodType = [];
911 933
         GetAllGoodType().then(response => {
912 934
           if (response.data.state == 0) {
913
-            this.$message.error(response.data.msg)
935
+            this.$message.error(response.data.msg);
914 936
             return false
915 937
           } else {
916 938
             for (let i = 0; i < response.data.data.goodType.length; i++) {
917 939
               if (response.data.data.goodType[i].type == 1) {
918 940
                 response.data.data.goodType[i].type_name = response.data.data.goodType[i].type_name + '(系统设定)'
919 941
               }
920
-              this.goodInfo.goodInfoDialog.formValue.goodType.push(response.data.data.goodType[i])
921
-              this.goodType.push(response.data.data.goodType[i]) 
942
+              this.goodInfo.goodInfoDialog.formValue.goodType.push(response.data.data.goodType[i]);
943
+              this.goodType.push(response.data.data.goodType[i])
922 944
             }
923 945
           }
924 946
         })
925 947
       },
926 948
       handleSizeChange(val) {
927
-        this.limit = val
949
+        this.limit = val;
928 950
         this.getList()
929 951
       },
930 952
       handleCurrentChange(val) {
931
-        this.page = val
953
+        this.page = val;
932 954
         this.getList()
933 955
       },
934 956
       searchAction() {
935
-        this.is_use = ""
936
-        this.is_charge = ""
937
-        this.good_kind = ""
957
+        this.is_use = "";
958
+        this.is_charge = "";
959
+        this.good_kind = "";
938 960
         this.getList()
939 961
       },clickSelfPayment(id){
940 962
       this.$refs.selfPayment.show(id,2)
941 963
       },
942 964
       openForm() {
943 965
 
944
-        this.getAllDealer()
945
-        this.getAllManufacturer()
946
-        this.goodInfo.goodInfoDialog.formValue.goodType = []
966
+        this.getAllDealer();
967
+        this.getAllManufacturer();
968
+        this.goodInfo.goodInfoDialog.formValue.goodType = [];
947 969
         GetAllGoodType().then(response => {
948 970
           if (response.data.state == 0) {
949
-            this.$message.error(response.data.msg)
971
+            this.$message.error(response.data.msg);
950 972
             return false
951 973
           } else {
952 974
             for (let i = 0; i < response.data.data.goodType.length; i++) {
@@ -958,46 +980,46 @@
958 980
               )
959 981
             }
960 982
             if (this.goodInfo.goodInfoDialog.formValue.goodType.length <= 0) {
961
-              this.$message.error('请先新增商品类型')
962
-              return
983
+              this.$message.error('请先新增商品类型');
984
+
963 985
             } else {
964
-              this.goodInfo.goodInfoDialog.isVisibility = true
986
+              this.goodInfo.goodInfoDialog.isVisibility = true;
965 987
               this.goodInfo.goodInfoDialog.isCreated = 1
966 988
             }
967 989
           }
968
-        })
969
-        this.goodInfo.goodInfoDialog.formValue.good_id = ''
970
-        this.goodInfo.goodInfoDialog.formValue.specification_name = ''
971
-        this.goodInfo.goodInfoDialog.formValue.buy_price = ''
972
-        this.goodInfo.goodInfoDialog.formValue.sell_price = ''
973
-        this.goodInfo.goodInfoDialog.formValue.remark = ''
974
-        this.goodInfo.goodInfoDialog.formValue.manufacturer = ''
975
-        this.goodInfo.goodInfoDialog.formValue.good_type_id = ''
976
-        this.goodInfo.goodInfoDialog.formValue.dealer = ''
977
-        this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count = ''
978
-        this.goodInfo.goodInfoDialog.formValue.stock_warn_count = ''
979
-        this.goodInfo.goodInfoDialog.formValue.is_reuse = '2'
980
-        this.goodInfo.goodInfoDialog.formValue.good_name = ''
981
-        this.goodInfo.goodInfoDialog.formValue.pinyin = ''
982
-        this.goodInfo.goodInfoDialog.formValue.wubi = ''
983
-        this.goodInfo.goodInfoDialog.formValue.good_kind = ''
984
-        this.goodInfo.goodInfoDialog.formValue.medical_insurance_level = ''
985
-        this.goodInfo.goodInfoDialog.formValue.retail_price = ''
986
-        this.goodInfo.goodInfoDialog.formValue.medical_insurance_number = ''
987
-        this.goodInfo.goodInfoDialog.formValue.is_special_diseases = ''
988
-        this.goodInfo.goodInfoDialog.formValue.is_record = ''
989
-        this.goodInfo.goodInfoDialog.formValue.statistics_category = ''
990
-        this.goodInfo.goodInfoDialog.formValue.good_status = ''
991
-        this.goodInfo.goodInfoDialog.formValue.default_count = ''
992
-        this.goodInfo.goodInfoDialog.formValue.sign = ''
993
-        this.goodInfo.goodInfoDialog.formValue.is_default = ''
994
-        this.goodInfo.goodInfoDialog.formValue.is_charge_use = ''
995
-        this.goodInfo.goodInfoDialog.formValue.is_charge_predict = ''
996
-        this.goodInfo.goodInfoDialog.formValue.is_statistics_work = ''
997
-        this.goodInfo.goodInfoDialog.formValue.sort = ''
998
-        this.goodInfo.goodInfoDialog.formValue.is_doctor_use = ''
999
-        this.goodInfo.goodInfoDialog.formValue.agent = ''
1000
-        this.goodInfo.goodInfoDialog.formValue.good_number = ''
990
+        });
991
+        this.goodInfo.goodInfoDialog.formValue.good_id = '';
992
+        this.goodInfo.goodInfoDialog.formValue.specification_name = '';
993
+        this.goodInfo.goodInfoDialog.formValue.buy_price = '';
994
+        this.goodInfo.goodInfoDialog.formValue.sell_price = '';
995
+        this.goodInfo.goodInfoDialog.formValue.remark = '';
996
+        this.goodInfo.goodInfoDialog.formValue.manufacturer = '';
997
+        this.goodInfo.goodInfoDialog.formValue.good_type_id = '';
998
+        this.goodInfo.goodInfoDialog.formValue.dealer = '';
999
+        this.goodInfo.goodInfoDialog.formValue.expiry_date_warn_day_count = '';
1000
+        this.goodInfo.goodInfoDialog.formValue.stock_warn_count = '';
1001
+        this.goodInfo.goodInfoDialog.formValue.is_reuse = '2';
1002
+        this.goodInfo.goodInfoDialog.formValue.good_name = '';
1003
+        this.goodInfo.goodInfoDialog.formValue.pinyin = '';
1004
+        this.goodInfo.goodInfoDialog.formValue.wubi = '';
1005
+        this.goodInfo.goodInfoDialog.formValue.good_kind = '';
1006
+        this.goodInfo.goodInfoDialog.formValue.medical_insurance_level = '';
1007
+        this.goodInfo.goodInfoDialog.formValue.retail_price = '';
1008
+        this.goodInfo.goodInfoDialog.formValue.medical_insurance_number = '';
1009
+        this.goodInfo.goodInfoDialog.formValue.is_special_diseases = '';
1010
+        this.goodInfo.goodInfoDialog.formValue.is_record = '';
1011
+        this.goodInfo.goodInfoDialog.formValue.statistics_category = '';
1012
+        this.goodInfo.goodInfoDialog.formValue.good_status = '';
1013
+        this.goodInfo.goodInfoDialog.formValue.default_count = '';
1014
+        this.goodInfo.goodInfoDialog.formValue.sign = '';
1015
+        this.goodInfo.goodInfoDialog.formValue.is_default = '';
1016
+        this.goodInfo.goodInfoDialog.formValue.is_charge_use = '';
1017
+        this.goodInfo.goodInfoDialog.formValue.is_charge_predict = '';
1018
+        this.goodInfo.goodInfoDialog.formValue.is_statistics_work = '';
1019
+        this.goodInfo.goodInfoDialog.formValue.sort = '';
1020
+        this.goodInfo.goodInfoDialog.formValue.is_doctor_use = '';
1021
+        this.goodInfo.goodInfoDialog.formValue.agent = '';
1022
+        this.goodInfo.goodInfoDialog.formValue.good_number = '';
1001 1023
 
1002 1024
         this.$refs.addConsumable.show(0)
1003 1025
       },
@@ -1038,26 +1060,26 @@
1038 1060
               ids.push(this.selectDrug[index].id);
1039 1061
               idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
1040 1062
             }
1041
-          
1042
-            var idss = ids.join(',')
1063
+
1064
+            var idss = ids.join(',');
1043 1065
             let params = {
1044 1066
               ids:idss,
1045 1067
               admin_user_id:this.$store.getters.xt_user.user.id
1046
-            }
1047
-          
1068
+            };
1048 1069
 
1049
-            var that = this
1070
+
1071
+            var that = this;
1050 1072
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
1051 1073
             if (response.data.state == 0) {
1052
-                  that.$message.error(response.data.data.msg)
1074
+                  that.$message.error(response.data.data.msg);
1053 1075
                   return false
1054 1076
                 } else {
1055 1077
                  if(response.data.data.msg == ""){
1056
-                  that.$message.success("备案成功!")
1078
+                  that.$message.success("备案成功!");
1057 1079
                   that.getList()
1058 1080
                }
1059 1081
                if(response.data.data.msg!=""){
1060
-                  that.$message.error(response.data.data.msg)
1082
+                  that.$message.error(response.data.data.msg);
1061 1083
                   that.getList()
1062 1084
                 }
1063 1085
                 }
@@ -1067,24 +1089,24 @@
1067 1089
      },
1068 1090
       toReturn(id,isMark){
1069 1091
 
1070
-         var that = this
1092
+         var that = this;
1071 1093
          let params = {
1072 1094
              'id':id,
1073 1095
              'type_id':3,
1074 1096
              'is_mark':isMark,
1075 1097
              'admin_user_id':this.$store.getters.xt_user.user.id,
1076
-          }
1098
+          };
1077 1099
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
1078 1100
           if (response.data.state == 0) {
1079
-               that.$message.error(response.data.data.msg)
1101
+               that.$message.error(response.data.data.msg);
1080 1102
                return false
1081 1103
             } else {
1082 1104
               if(response.data.data.msg == ""){
1083
-                  that.$message.success("备案成功!")
1105
+                  that.$message.success("备案成功!");
1084 1106
                   that.getList()
1085 1107
                }
1086 1108
                if(response.data.data.msg!=""){
1087
-                  that.$message.error(response.data.data.msg)
1109
+                  that.$message.error(response.data.data.msg);
1088 1110
                   that.getList()
1089 1111
                }
1090 1112
              }
@@ -1098,37 +1120,37 @@
1098 1120
          this.getList()
1099 1121
       },
1100 1122
       handleSuccess({ results, header }) {
1101
-       
1123
+
1102 1124
         if (header != undefined && header.length > 0) {
1103
-            
1104
-          var isHasMedicalInsuranceLevel = header.includes('*医保等级')
1105
-         
1106
-          var isHasGoodUnit = header.includes('*单位')
1107
-        
1108
-          var isHasStockWarnCount = header.includes('*库存警戒')
1109
-       
1110
-          var isHasManuFacturer =  header.includes('*生产厂商')
1111
-         
1112
-          var isHasGoodName = header.includes('*耗材名称')
1113
-        
1114
-          var isHasGoodKand = header.includes('*耗材种类')
1115
-          
1116
-          var isHasSpecificationName = header.includes('*规格型号')
1117
-        
1118
-          var isHasBuyPrice = header.includes('*零价')
1119
-                
1125
+
1126
+          var isHasMedicalInsuranceLevel = header.includes('*医保等级');
1127
+
1128
+          var isHasGoodUnit = header.includes('*单位');
1129
+
1130
+          var isHasStockWarnCount = header.includes('*库存警戒');
1131
+
1132
+          var isHasManuFacturer =  header.includes('*生产厂商');
1133
+
1134
+          var isHasGoodName = header.includes('*耗材名称');
1135
+
1136
+          var isHasGoodKand = header.includes('*耗材种类');
1137
+
1138
+          var isHasSpecificationName = header.includes('*规格型号');
1139
+
1140
+          var isHasBuyPrice = header.includes('*零价');
1141
+
1120 1142
           if (!(isHasMedicalInsuranceLevel && isHasGoodUnit && isHasStockWarnCount && isHasManuFacturer  && isHasGoodName && isHasGoodKand && isHasSpecificationName &&  isHasBuyPrice)) {
1121
-            this.dialogVisible = true
1143
+            this.dialogVisible = true;
1122 1144
             return
1123 1145
           }
1124 1146
         }else {
1125
-          this.dialogVisible = true
1147
+          this.dialogVisible = true;
1126 1148
           return
1127 1149
         }
1128
-       
1129
-       var tableData = []
1150
+
1151
+       var tableData = [];
1130 1152
        for(let i=1;i<results.length;i++){
1131
-         let obj = {"good_kind_id":0,"good_type_id":0,"medical_insurance_id":0,"dealer_id":0,"statistic_id":0,"manufacturer_id":0,"unit_id":0}
1153
+         let obj = {"good_kind_id":0,"good_type_id":0,"medical_insurance_id":0,"dealer_id":0,"statistic_id":0,"manufacturer_id":0,"unit_id":0};
1132 1154
          for (var key in results[i]) {
1133 1155
 
1134 1156
            if (results[i]['*耗材名称'] === undefined) {
@@ -1138,7 +1160,7 @@
1138 1160
                obj['good_name'] = results[i][key].replace(/\s/g,"")
1139 1161
               }
1140 1162
            }
1141
-           
1163
+
1142 1164
            if (results[i]['*耗材种类'] === undefined) {
1143 1165
                 obj['good_kind'] = ''
1144 1166
               } else {
@@ -1250,7 +1272,7 @@
1250 1272
                obj['is_special_diseases'] = results[i][key].replace(/\s/g,"")
1251 1273
               }
1252 1274
            }
1253
-          
1275
+
1254 1276
            if (results[i]['是否备案'] === undefined) {
1255 1277
                 obj['is_record'] = ''
1256 1278
               } else {
@@ -1266,7 +1288,7 @@
1266 1288
                obj['statistics_category'] = results[i][key].replace(/\s/g,"")
1267 1289
               }
1268 1290
            }
1269
-          
1291
+
1270 1292
           if (results[i]['状态'] === undefined) {
1271 1293
                 obj['good_status'] = ''
1272 1294
               } else {
@@ -1274,7 +1296,7 @@
1274 1296
                obj['good_status'] = results[i][key].replace(/\s/g,"")
1275 1297
               }
1276 1298
            }
1277
-           
1299
+
1278 1300
 
1279 1301
           if (results[i]['社保目录编码'] === undefined) {
1280 1302
                 obj['social_security_directory_code'] = ''
@@ -1310,12 +1332,12 @@
1310 1332
 
1311 1333
 
1312 1334
          }
1313
-         tableData.push(obj)
1314
-        var goodUnit =  this.$store.getters.good_unit
1315
-       
1335
+         tableData.push(obj);
1336
+        var goodUnit =  this.$store.getters.good_unit;
1337
+
1338
+
1339
+        for(let i=0;i<tableData.length;i++){
1316 1340
 
1317
-        for(let i=0;i<tableData.length;i++){ 
1318
-      
1319 1341
          for(let c=0;c<goodUnit.length;c++){
1320 1342
             if(tableData[i].good_unit == goodUnit[c].name){
1321 1343
                tableData[i].unit_id = goodUnit[c].id
@@ -1324,9 +1346,9 @@
1324 1346
 
1325 1347
         }
1326 1348
        }
1327
-       
1349
+
1328 1350
        for(let i=0;i<tableData.length;i++){
1329
-          tableData[i].stock_warn_count = parseInt(tableData[i].stock_warn_count)
1351
+          tableData[i].stock_warn_count = parseInt(tableData[i].stock_warn_count);
1330 1352
 
1331 1353
           if(tableData[i].is_special_diseases == "是"){
1332 1354
               tableData[i].is_special_diseases = 1
@@ -1342,7 +1364,7 @@
1342 1364
              tableData[i].is_record = 2
1343 1365
           }
1344 1366
 
1345
-         
1367
+
1346 1368
 
1347 1369
           if(tableData[i].special_medical == "是"){
1348 1370
              tableData[i].special_medical = "1"
@@ -1351,9 +1373,9 @@
1351 1373
              tableData[i].special_medical = "2"
1352 1374
           }
1353 1375
        }
1354
-        
1376
+
1355 1377
        for(let i=0;i<tableData.length;i++){
1356
-         
1378
+
1357 1379
           if(tableData[i].is_special_diseases == ""){
1358 1380
              tableData[i].is_special_diseases = 0
1359 1381
           }else{
@@ -1365,21 +1387,21 @@
1365 1387
           }else{
1366 1388
             tableData[i].is_record = parseInt(tableData[i].is_record)
1367 1389
           }
1368
-         
1369
-        
1390
+
1391
+
1370 1392
        }
1371
-       
1393
+
1372 1394
        let params = {
1373
-          'goods':tableData 
1374
-        }
1375
-     
1376
-       
1377
-       
1395
+          'goods':tableData
1396
+        };
1397
+
1398
+
1399
+
1378 1400
         postGoodInformation(params).then(response=>{
1379 1401
            if(response.data.state == 1){
1380
-             var msg =  response.data.data.msg
1381
-             this.$message.success("导入成功!")
1382
-             this.getList()
1402
+             var msg =  response.data.data.msg;
1403
+             this.$message.success("导入成功!");
1404
+             this.getList();
1383 1405
              this.getInitializtion()
1384 1406
            }else{
1385 1407
              this.$message.error("导入失败,请下载日志查看")
@@ -1387,9 +1409,9 @@
1387 1409
         })
1388 1410
       },
1389 1411
       generateTxt: function(log) {
1390
-        var content = ''
1391
-        var errlog = log.err_logs
1392
-        content = this.getContent(log)
1412
+        var content = '';
1413
+        var errlog = log.err_logs;
1414
+        content = this.getContent(log);
1393 1415
         for (let i = 0; i < errlog.length; i++) {
1394 1416
           if (content.length == 0) {
1395 1417
             content = errlog[i].err_msg
@@ -1398,13 +1420,13 @@
1398 1420
           }
1399 1421
         }
1400 1422
 
1401
-        var url = new Blob(['\ufeff' + content], { type: 'text/txt,charset=UTF-8' })
1423
+        var url = new Blob(['\ufeff' + content], { type: 'text/txt,charset=UTF-8' });
1402 1424
         if (typeof url === 'object' && url instanceof Blob) {
1403 1425
           url = URL.createObjectURL(url) // 创建blob地址
1404 1426
         }
1405
-        const aLink = document.createElement('a')
1406
-        aLink.href = url
1407
-        aLink.download = this.timestampToTime(log.export_time) + '患者导入日志' + '.txt'
1427
+        const aLink = document.createElement('a');
1428
+        aLink.href = url;
1429
+        aLink.download = this.timestampToTime(log.export_time) + '患者导入日志' + '.txt';
1408 1430
         aLink.click()
1409 1431
 
1410 1432
       },
@@ -1412,23 +1434,23 @@
1412 1434
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
1413 1435
       },
1414 1436
       timestampToTime(timestamp) {
1415
-        var date = new Date(timestamp * 1000)//时间戳为10位需*1000,时间戳为13位的话不需乘1000
1416
-        var Y = date.getFullYear() + '年'
1417
-        var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '月'
1418
-        var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + '日 '
1419
-        var h = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + '时'
1420
-        var m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + '分'
1421
-        var s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds()) + '秒'
1437
+        var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
1438
+        var Y = date.getFullYear() + '年';
1439
+        var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '月';
1440
+        var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + '日 ';
1441
+        var h = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + '时';
1442
+        var m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + '分';
1443
+        var s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds()) + '秒';
1422 1444
         return Y + M + D + h + m + s
1423 1445
       },
1424 1446
        generateLog() {
1425 1447
         let params = {
1426 1448
           'log_type': 5
1427
-        }
1449
+        };
1428 1450
         generateLog(params).then(
1429 1451
           response => {
1430 1452
             if (response.data.state === 1) {
1431
-              this.logs = response.data.data.logs
1453
+              this.logs = response.data.data.logs;
1432 1454
               this.exportLogVisible = true
1433 1455
             } else {
1434 1456
               this.$message.error(response.data.msg)
@@ -1440,22 +1462,22 @@
1440 1462
       getInitializtion(){
1441 1463
        getInitializtion().then(response=>{
1442 1464
          if(response.data.state == 1){
1443
-           var goodKindList = response.data.data.goodKindList
1444
-          
1465
+           var goodKindList = response.data.data.goodKindList;
1466
+
1445 1467
            this.goodKindList = goodKindList
1446
-         
1468
+
1447 1469
 
1448 1470
          }
1449 1471
        })
1450 1472
       }
1451 1473
 
1452
-    }, 
1474
+    },
1453 1475
     created() {
1454
-      this.getList()
1455
-      this.getAllDealer()
1456
-      this.getAllManufacturer()
1457
-      this.getAllGoodType()
1458
-      this.goodInfo.goodInfoDialog.formValue.goodUnit = this.$store.getters.good_unit
1476
+      this.getList();
1477
+      this.getAllDealer();
1478
+      this.getAllManufacturer();
1479
+      this.getAllGoodType();
1480
+      this.goodInfo.goodInfoDialog.formValue.goodUnit = this.$store.getters.good_unit;
1459 1481
       this.getInitializtion()
1460 1482
     }
1461 1483
   }

+ 166 - 144
src/xt_pages/data/components/drugs.vue Прегледај датотеку

@@ -59,7 +59,7 @@
59 59
         <!-- <el-button type="primary" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
60 60
         <el-button type="primary" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord()">批量备案</el-button> -->
61 61
       </div>
62
-      
62
+
63 63
     </div>
64 64
     <div style="display:flex; align-items:center;margin-bottom:10px;">
65 65
         <el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
@@ -199,7 +199,7 @@
199 199
       :total="total"
200 200
     >
201 201
     </el-pagination>
202
-   
202
+
203 203
 
204 204
     <el-dialog
205 205
       title="提示"
@@ -410,7 +410,7 @@
410 410
     },
411 411
     methods: {
412 412
       GDYBBatchPutOnRecord(){
413
-        var that = this
413
+        var that = this;
414 414
         var ids = [];
415 415
         var idMap = {};
416 416
         for (const index in this.selectDrug) {
@@ -421,14 +421,21 @@
421 421
           ids:ids.join(','),
422 422
           record_type: 1,
423 423
           admin_user_id:this.$store.getters.xt_user.user.id
424
-        }
424
+        };
425 425
         axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
426 426
           if (response.data.state == 0) {
427
-            that.$message.error(response.data.data.msg)
427
+            that.$message.error(response.data.data.msg);
428 428
             return false
429 429
           } else {
430 430
             if(response.data.data.failed_code == -10){
431
-              that.$message.error(response.data.data.msg)
431
+              // that.$message.error(response.data.data.msg)
432
+              that.$confirm(response.data.data.msg, '医保错误信息', {
433
+                confirmButtonText: '确 定',
434
+                type: 'warning'
435
+              }).then(() => {
436
+
437
+              }).catch(() => {
438
+              })
432 439
             }else{
433 440
 
434 441
 
@@ -439,11 +446,11 @@
439 446
 
440 447
       },
441 448
       handleSizeChange(val) {
442
-        this.limit = val
449
+        this.limit = val;
443 450
         this.getList()
444 451
       },
445 452
       handleCurrentChange(val) {
446
-        this.page = val
453
+        this.page = val;
447 454
         this.getList()
448 455
       },
449 456
       changeInject(val) {
@@ -471,7 +478,7 @@
471 478
         return ''
472 479
       },
473 480
       getDealer(id){
474
-        var name = ""
481
+        var name = "";
475 482
         for(let i=0;i<this.dealer.length;i++){
476 483
           if(this.dealer[i].id == id){
477 484
              name = this.dealer[i].dealer_name
@@ -480,11 +487,11 @@
480 487
         return name
481 488
       },
482 489
       goodInfoDialogComfirm: function(val) {
483
-        
490
+
484 491
         //修改自备药
485
-        var untit = ""
486
-        var untis = getDataConfig('hemodialysis','units')
487
-        
492
+        var untit = "";
493
+        var untis = getDataConfig('hemodialysis','units');
494
+
488 495
         for(let i=0;i<untis.length;i++){
489 496
            if(val.min_unit == untis[i].id){
490 497
               untit = untis[i].name
@@ -492,28 +499,28 @@
492 499
         }
493 500
         if (val.id > 0) {
494 501
           //修改
495
-          val['id'] = this.current_id
502
+          val['id'] = this.current_id;
496 503
           editBaseDrugLib(val,untit).then(response => {
497 504
             if (response.data.state == 0) {
498
-              this.$message.error(response.data.msg)
505
+              this.$message.error(response.data.msg);
499 506
               return false
500 507
             } else {
501
-              this.$refs.addDrugs.hide()
502
-              this.getList()
508
+              this.$refs.addDrugs.hide();
509
+              this.getList();
503 510
               this.$message.success('修改成功')
504 511
             }
505 512
           })
506 513
         } else if (val.id == 0) {
507 514
           //新增
508
-         
515
+
509 516
 
510 517
           createBaseDrugLib(val).then(response => {
511 518
             if (response.data.state == 0) {
512
-              this.$message.error(response.data.msg)
519
+              this.$message.error(response.data.msg);
513 520
               return false
514 521
             } else {
515
-              this.$refs.addDrugs.hide()
516
-              this.getList()
522
+              this.$refs.addDrugs.hide();
523
+              this.getList();
517 524
               this.$message.success('新增成功')
518 525
             }
519 526
           })
@@ -523,14 +530,14 @@
523 530
         this.$refs.addDrugs.hide()
524 531
       },
525 532
       getAllManufacturer: function() {
526
-        this.manufacturers = []
533
+        this.manufacturers = [];
527 534
         GetAllManufacturer().then(response => {
528 535
           if (response.data.state == 0) {
529
-            this.$message.error(response.data.msg)
536
+            this.$message.error(response.data.msg);
530 537
             return false
531 538
           } else {
532
-              var obj = {id:0,manufacturer_name:"全部"}
533
-              this.manufacturers.push(obj)
539
+              var obj = {id:0,manufacturer_name:"全部"};
540
+              this.manufacturers.push(obj);
534 541
 
535 542
             for (let i = 0; i < response.data.data.manufacturer.length; i++) {
536 543
               this.manufacturers.push(response.data.data.manufacturer[i])
@@ -549,18 +556,18 @@
549 556
         // this.$refs.maintain.show();
550 557
       },
551 558
       openForm(id) {
552
-        this.current_id = id
553
-        this.getAllManufacturer()
559
+        this.current_id = id;
560
+        this.getAllManufacturer();
554 561
         if (id > 0) {
555 562
           let params = {
556 563
             id: this.current_id
557
-          }
564
+          };
558 565
           getBaseDrugLib(params).then(response => {
559 566
             if (response.data.state == 0) {
560
-              this.$message.error(response.data.msg)
567
+              this.$message.error(response.data.msg);
561 568
               return false
562 569
             } else {
563
-           
570
+
564 571
               for (let key in response.data.data.drug) {
565 572
                 this.formValue[key] = response.data.data.drug[key]
566 573
               }
@@ -635,7 +642,7 @@
635 642
                 this.formValue.prescription_mark = this.formValue.prescription_mark.toString()
636 643
               }
637 644
 
638
-              this.formValue.record_date = this.getTime(this.formValue.record_date)
645
+              this.formValue.record_date = this.getTime(this.formValue.record_date);
639 646
 
640 647
               if(this.formValue.drug_category == 0){
641 648
                   this.formValue.drug_category = ""
@@ -673,7 +680,7 @@
673 680
               if(this.formValue.hosp_appr_flag == 0){
674 681
                 this.formValue.hosp_appr_flag = ""
675 682
               }
676
-              
683
+
677 684
               this.$refs.addDrugs.show(id, this.formValue)
678 685
 
679 686
             }
@@ -687,7 +694,7 @@
687 694
       },
688 695
 
689 696
        deleteDurg(id,index){
690
-      
697
+
691 698
             this.$confirm('确认删除吗?', '删除', {
692 699
             confirmButtonText: '确 定',
693 700
             cancelButtonText: '取 消',
@@ -695,10 +702,10 @@
695 702
          }).then(() => {
696 703
               const params = {
697 704
                 id:id,
698
-              }
705
+              };
699 706
             deleteDurg(params).then(response => {
700 707
               if (response.data.state == 1) {
701
-                  var msg = response.data.data.msg
708
+                  var msg = response.data.data.msg;
702 709
                   this.list.splice(index, 1);
703 710
                   this.$message.success("删除成功")
704 711
               } else {
@@ -719,15 +726,15 @@
719 726
           is_inject: this.is_inject,
720 727
           manufacturer:this.manufacturer,
721 728
           is_record:this.is_record
722
-        }
729
+        };
723 730
         getBaseDrugLibList(params).then(response => {
724 731
           if (response.data.state == 0) {
725
-            this.$message.error(response.data.msg)
732
+            this.$message.error(response.data.msg);
726 733
             return false
727 734
           } else {
728
-            this.total = response.data.data.total
729
-            this.list = []
730
-           
735
+            this.total = response.data.data.total;
736
+            this.list = [];
737
+
731 738
             for (let i = 0; i < response.data.data.list.length; i++) {
732 739
               this.list.push(response.data.data.list[i])
733 740
             }
@@ -738,19 +745,27 @@
738 745
         return getDataConfig(module, filed_name)
739 746
       },
740 747
       putOnUnRecord(id){
741
-        var that = this
748
+        var that = this;
742 749
         let params = {
743 750
           ids:id.toString(),
744 751
           record_type: 1,
745 752
           admin_user_id:this.$store.getters.xt_user.user.id
746
-        }
753
+        };
747 754
         axios.get('http://127.0.0.1:9532/api/uncheckcode/get',{params:params}).then(function(response) {
748 755
           if (response.data.state == 0) {
749
-            that.$message.error(response.data.data.msg)
756
+            that.$message.error(response.data.data.msg);
750 757
             return false
751 758
           } else {
752 759
             if(response.data.data.failed_code == -10){
753
-              that.$message.error(response.data.data.msg)
760
+              // that.$message.error(response.data.data.msg)
761
+              that.$confirm(response.data.data.msg, '医保错误信息', {
762
+                confirmButtonText: '确 定',
763
+                type: 'warning'
764
+              }).then(() => {
765
+
766
+              }).catch(() => {
767
+              })
768
+
754 769
             }else{
755 770
               // for (let i = 0; i < that.tableData.length; i++) {
756 771
               //   if (that.tableData[i].id == that.currentObject.id) {
@@ -764,21 +779,28 @@
764 779
         })
765 780
       },
766 781
       putOnRecord(id){
767
-        var that = this
782
+        var that = this;
768 783
 
769 784
         let params = {
770 785
           ids:id.toString(),
771 786
           record_type: 1,
772 787
           admin_user_id:this.$store.getters.xt_user.user.id
773
-        }
788
+        };
774 789
 
775 790
         axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
776 791
           if (response.data.state == 0) {
777
-            that.$message.error(response.data.data.msg)
792
+            that.$message.error(response.data.data.msg);
778 793
             return false
779 794
           } else {
780 795
             if(response.data.data.failed_code == -10){
781
-              that.$message.error(response.data.data.msg)
796
+              // that.$message.error(response.data.data.msg)
797
+              that.$confirm(response.data.data.msg, '医保错误信息', {
798
+                confirmButtonText: '确 定',
799
+                type: 'warning'
800
+              }).then(() => {
801
+
802
+              }).catch(() => {
803
+              })
782 804
             }else{
783 805
 
784 806
 
@@ -804,25 +826,25 @@
804 826
       //   })
805 827
       // },
806 828
       toReturn(id,isMark){
807
-     
808
-         var that = this
829
+
830
+         var that = this;
809 831
          let params = {
810 832
              'id':id,
811 833
              'type_id':1,
812 834
              'is_mark':isMark,
813 835
              'admin_user_id':this.$store.getters.xt_user.user.id
814
-          }
836
+          };
815 837
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
816 838
           if (response.data.state == 0) {
817
-               that.$message.error(response.data.data.msg)
839
+               that.$message.error(response.data.data.msg);
818 840
                return false
819 841
             } else {
820 842
               if(response.data.data.msg == ""){
821
-                  that.$message.success("备案成功!")
843
+                  that.$message.success("备案成功!");
822 844
                   that.getList()
823 845
                }
824 846
                if(response.data.data.msg!=""){
825
-                  that.$message.error(response.data.data.msg)
847
+                  that.$message.error(response.data.data.msg);
826 848
                   that.getList()
827 849
                }
828 850
 
@@ -878,25 +900,25 @@
878 900
           idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
879 901
         }
880 902
 
881
-        var idss = ids.join(',')
903
+        var idss = ids.join(',');
882 904
         let params = {
883 905
           ids:idss,
884 906
           admin_user_id:this.$store.getters.xt_user.user.id
885
-        }
907
+        };
886 908
 
887
-        var that = this
909
+        var that = this;
888 910
         axios.get('http://127.0.0.1:9532/sz/api/drug/get',{ params: params }).then(function(response) {
889 911
          if (response.data.state == 0) {
890 912
 
891
-               that.$message.error(response.data.data.msg)
913
+               that.$message.error(response.data.data.msg);
892 914
                return false
893 915
             } else {
894 916
                if(response.data.data.msg == ""){
895
-                  that.$message.success("备案成功!")
917
+                  that.$message.success("备案成功!");
896 918
                   that.getList()
897 919
                }
898 920
                if(response.data.data.msg!=""){
899
-                  that.$message.error(response.data.data.msg)
921
+                  that.$message.error(response.data.data.msg);
900 922
                    that.getList()
901 923
                }
902 924
              }
@@ -906,51 +928,51 @@
906 928
      },
907 929
 
908 930
       handleSuccessTwo({ results, header }) {
909
-     
931
+
910 932
         if (header != undefined && header.length > 0) {
911
-            
912
-          var isHasDrugName = header.includes('*药品名称')
913
-         
914
-          var isHasDrugSpec = header.includes('*药品规格')
915
-        
916
-          var isHasDrugType =  header.includes('*药品类型')
917
-        
918
-          var isHasDrugStockLimit =  header.includes('*库存警戒')
919
-         
920
-          var isHasDrugOriginPlace= header.includes('*产地')
921
-         
922
-          var isHasDrugDosageForm = header.includes('*药品剂型')
923
-        
924
-          var isHasMaxUnit= header.includes('*最大单位')
925
-
926
-          var isHasMinUnit= header.includes('*最小单位')
927
-
928
-          var isHasUnitMatrixing= header.includes("*单位换算")
929
-        
930
-          var isHasRetailPrice = header.includes('*单零售价')
931
-        
932
-          var isHasLastPrice = header.includes('*上次进价')
933
-
934
-          var isHasDrugClassifye = header.includes('*药物分类')
935
-
936
-         var isHasManufacturer = header.includes('*生产厂商')
937
-
938
-         var isHasDrugDose = header.includes('*剂量')
939
-           
940
-         var isDrugDoseUnit = header.includes('*剂量单位')
941
-     
933
+
934
+          var isHasDrugName = header.includes('*药品名称');
935
+
936
+          var isHasDrugSpec = header.includes('*药品规格');
937
+
938
+          var isHasDrugType =  header.includes('*药品类型');
939
+
940
+          var isHasDrugStockLimit =  header.includes('*库存警戒');
941
+
942
+          var isHasDrugOriginPlace= header.includes('*产地');
943
+
944
+          var isHasDrugDosageForm = header.includes('*药品剂型');
945
+
946
+          var isHasMaxUnit= header.includes('*最大单位');
947
+
948
+          var isHasMinUnit= header.includes('*最小单位');
949
+
950
+          var isHasUnitMatrixing= header.includes("*单位换算");
951
+
952
+          var isHasRetailPrice = header.includes('*单零售价');
953
+
954
+          var isHasLastPrice = header.includes('*上次进价');
955
+
956
+          var isHasDrugClassifye = header.includes('*药物分类');
957
+
958
+         var isHasManufacturer = header.includes('*生产厂商');
959
+
960
+         var isHasDrugDose = header.includes('*剂量');
961
+
962
+         var isDrugDoseUnit = header.includes('*剂量单位');
963
+
942 964
           if (!(isHasDrugName  && isHasDrugSpec && isHasDrugType && isHasDrugStockLimit && isHasDrugOriginPlace && isHasDrugDosageForm && isHasMaxUnit &&  isHasMinUnit && isHasUnitMatrixing &&  isHasRetailPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer && isHasDrugDose && isDrugDoseUnit)) {
943
-            this.dialogVisible = true
965
+            this.dialogVisible = true;
944 966
             return
945 967
           }
946 968
         }else {
947
-          this.dialogVisible = true
969
+          this.dialogVisible = true;
948 970
           return
949 971
         }
950
-       
951
-       var tableData = []
972
+
973
+       var tableData = [];
952 974
        for(let i=1;i<results.length;i++){
953
-         let obj = {"drug_type_id":0,"drug_dosage_form_id":0,"medical_insurance_level_id":0,"drug_classify_id":0,"manufacturer_id":0,"dealer_id":0,"statistics_category_id":0,"drug_control_id":0,"pharmacology_category_id":0,"drug_category_id":0}
975
+         let obj = {"drug_type_id":0,"drug_dosage_form_id":0,"medical_insurance_level_id":0,"drug_classify_id":0,"manufacturer_id":0,"dealer_id":0,"statistics_category_id":0,"drug_control_id":0,"pharmacology_category_id":0,"drug_category_id":0};
954 976
          for (var key in results[i]) {
955 977
 
956 978
            if (results[i]['*药品名称'] === undefined) {
@@ -985,7 +1007,7 @@
985 1007
                obj['drug_type'] = results[i][key].replace(/\s/g,"")
986 1008
               }
987 1009
            }
988
-           
1010
+
989 1011
 
990 1012
            if (results[i]['*库存警戒'] === undefined) {
991 1013
                 obj['drug_stock_limit'] = ''
@@ -1052,7 +1074,7 @@
1052 1074
                obj['retail_price'] = results[i][key].replace(/\s/g,"")
1053 1075
               }
1054 1076
            }
1055
-           
1077
+
1056 1078
 
1057 1079
          if (results[i]['*上次进价'] === undefined) {
1058 1080
                 obj['last_price'] = ''
@@ -1103,7 +1125,7 @@
1103 1125
               }
1104 1126
            }
1105 1127
 
1106
-          
1128
+
1107 1129
 
1108 1130
             if (results[i]['别名拼音'] === undefined) {
1109 1131
                 obj['drug_alias_pinyin'] = ''
@@ -1232,7 +1254,7 @@
1232 1254
                 obj['social_security_directory_code'] = results[i][key].replace(/\s/g,"")
1233 1255
               }
1234 1256
            }
1235
-           
1257
+
1236 1258
 
1237 1259
             if (results[i]['备案日期'] === undefined) {
1238 1260
                 obj['record_date'] = ''
@@ -1292,11 +1314,11 @@
1292 1314
 
1293 1315
 
1294 1316
          }
1295
-         var newArr = []
1296
-         tableData.push(obj)
1297
-       
1298
-        for(let i=0;i<tableData.length;i++){ 
1299
-          
1317
+         var newArr = [];
1318
+         tableData.push(obj);
1319
+
1320
+        for(let i=0;i<tableData.length;i++){
1321
+
1300 1322
          if(tableData[i].is_special_diseases == ""){
1301 1323
             tableData[i].is_special_diseases = 0
1302 1324
          }
@@ -1308,8 +1330,8 @@
1308 1330
             tableData[i].is_special_diseases = 2
1309 1331
          }
1310 1332
 
1311
-      
1312
-          
1333
+
1334
+
1313 1335
           if(tableData[i].is_record == ""){
1314 1336
              tableData[i].is_record = 0
1315 1337
           }
@@ -1319,7 +1341,7 @@
1319 1341
           if(tableData[i].is_record == "否"){
1320 1342
             tableData[i].is_record = 2
1321 1343
           }
1322
-         
1344
+
1323 1345
           if(tableData[i].prescription_mark == ""){
1324 1346
               tableData[i].prescription_mark = 0
1325 1347
           }
@@ -1327,13 +1349,13 @@
1327 1349
              tableData[i].prescription_mark =1
1328 1350
           }
1329 1351
           if(tableData[i].prescription_mark == "否"){
1330
-            tableData[i].prescription_mark =2 
1352
+            tableData[i].prescription_mark =2
1331 1353
           }
1332 1354
 
1333 1355
           if(tableData[i].hosp_appr_flag == ""){
1334 1356
              tableData[i].hosp_appr_flag = 0
1335
-          } 
1336
-          
1357
+          }
1358
+
1337 1359
           if(tableData[i].hosp_appr_flag == "无需审批"){
1338 1360
               tableData[i].hosp_appr_flag = 1
1339 1361
           }
@@ -1346,29 +1368,29 @@
1346 1368
           if(tableData[i].lmt_used_flag == ""){
1347 1369
              tableData[i].lmt_used_flag = 0
1348 1370
           }
1349
-          
1371
+
1350 1372
           if(tableData[i].lmt_used_flag == "否"){
1351 1373
               tableData[i].lmt_used_flag = 0
1352 1374
           }
1353 1375
 
1354
-            
1376
+
1355 1377
           if(tableData[i].lmt_used_flag == "是"){
1356 1378
               tableData[i].lmt_used_flag = 1
1357 1379
           }
1358
-      
1380
+
1359 1381
         }
1360 1382
        }
1361
-     
1383
+
1362 1384
        let params = {
1363
-          'drugs':tableData 
1364
-        }
1365
-   
1385
+          'drugs':tableData
1386
+        };
1387
+
1366 1388
         postDrugInformation(params).then(response=>{
1367 1389
            if(response.data.state == 1){
1368
-             var msg =  response.data.data.msg
1369
-             this.getList()
1370
-             this.getAllManufacturer()
1371
-             this.GetAllConfig()
1390
+             var msg =  response.data.data.msg;
1391
+             this.getList();
1392
+             this.getAllManufacturer();
1393
+             this.GetAllConfig();
1372 1394
              this.$message.success("导入成功!")
1373 1395
 
1374 1396
            }else{
@@ -1377,9 +1399,9 @@
1377 1399
         })
1378 1400
       },
1379 1401
       generateTxt: function(log) {
1380
-        var content = ''
1381
-        var errlog = log.err_logs
1382
-        content = this.getContent(log)
1402
+        var content = '';
1403
+        var errlog = log.err_logs;
1404
+        content = this.getContent(log);
1383 1405
         for (let i = 0; i < errlog.length; i++) {
1384 1406
           if (content.length == 0) {
1385 1407
             content = errlog[i].err_msg
@@ -1388,13 +1410,13 @@
1388 1410
           }
1389 1411
         }
1390 1412
 
1391
-        var url = new Blob(['\ufeff' + content], { type: 'text/txt,charset=UTF-8' })
1413
+        var url = new Blob(['\ufeff' + content], { type: 'text/txt,charset=UTF-8' });
1392 1414
         if (typeof url === 'object' && url instanceof Blob) {
1393 1415
           url = URL.createObjectURL(url) // 创建blob地址
1394 1416
         }
1395
-        const aLink = document.createElement('a')
1396
-        aLink.href = url
1397
-        aLink.download = this.timestampToTime(log.export_time) + '患者导入日志' + '.txt'
1417
+        const aLink = document.createElement('a');
1418
+        aLink.href = url;
1419
+        aLink.download = this.timestampToTime(log.export_time) + '患者导入日志' + '.txt';
1398 1420
         aLink.click()
1399 1421
 
1400 1422
       },
@@ -1402,23 +1424,23 @@
1402 1424
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
1403 1425
       },
1404 1426
       timestampToTime(timestamp) {
1405
-        var date = new Date(timestamp * 1000)//时间戳为10位需*1000,时间戳为13位的话不需乘1000
1406
-        var Y = date.getFullYear() + '年'
1407
-        var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '月'
1408
-        var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + '日 '
1409
-        var h = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + '时'
1410
-        var m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + '分'
1411
-        var s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds()) + '秒'
1427
+        var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
1428
+        var Y = date.getFullYear() + '年';
1429
+        var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '月';
1430
+        var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + '日 ';
1431
+        var h = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + '时';
1432
+        var m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + '分';
1433
+        var s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds()) + '秒';
1412 1434
         return Y + M + D + h + m + s
1413 1435
       },
1414 1436
        generateLog() {
1415 1437
         let params = {
1416 1438
           'log_type': 4
1417
-        }
1439
+        };
1418 1440
         generateLog(params).then(
1419 1441
           response => {
1420 1442
             if (response.data.state === 1) {
1421
-              this.logs = response.data.data.logs
1443
+              this.logs = response.data.data.logs;
1422 1444
               this.exportLogVisible = true
1423 1445
             } else {
1424 1446
               this.$message.error(response.data.msg)
@@ -1429,14 +1451,14 @@
1429 1451
       getDictionaryDataConfig(module,filed_name){
1430 1452
         return getDictionaryDataConfig(module,filed_name)
1431 1453
       },
1432
-     
1454
+
1433 1455
     },
1434 1456
     created() {
1435
-     
1436
-      this.getList()
1437
-      this.getAllManufacturer()
1457
+
1458
+      this.getList();
1459
+      this.getAllManufacturer();
1438 1460
       this.GetAllConfig()
1439
-      
1461
+
1440 1462
     }
1441 1463
   }
1442 1464
 </script>

+ 101 - 80
src/xt_pages/data/components/project.vue Прегледај датотеку

@@ -239,19 +239,26 @@ export default {
239 239
     },
240 240
     methods:{
241 241
       putOnUnRecord(id){
242
-        var that = this
242
+        var that = this;
243 243
         let params = {
244 244
           ids:id.toString(),
245 245
           record_type: 3,
246 246
           admin_user_id:this.$store.getters.xt_user.user.id
247
-        }
247
+        };
248 248
         axios.get('http://127.0.0.1:9532/api/uncheckcode/get',{params:params}).then(function(response) {
249 249
           if (response.data.state == 0) {
250
-            that.$message.error(response.data.data.msg)
250
+            that.$message.error(response.data.data.msg);
251 251
             return false
252 252
           } else {
253 253
             if(response.data.data.failed_code == -10){
254
-              that.$message.error(response.data.data.msg)
254
+              // that.$message.error(response.data.data.msg)
255
+              that.$confirm(response.data.data.msg, '医保错误信息', {
256
+                confirmButtonText: '确 定',
257
+                type: 'warning'
258
+              }).then(() => {
259
+
260
+              }).catch(() => {
261
+              })
255 262
             }else{
256 263
               // for (let i = 0; i < that.tableData.length; i++) {
257 264
               //   if (that.tableData[i].id == that.currentObject.id) {
@@ -265,21 +272,28 @@ export default {
265 272
         })
266 273
       },
267 274
       putOnRecord(id){
268
-        var that = this
275
+        var that = this;
269 276
 
270 277
         let params = {
271 278
           ids:id.toString(),
272 279
           record_type: 3,
273 280
           admin_user_id:this.$store.getters.xt_user.user.id
274
-        }
281
+        };
275 282
 
276 283
         axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
277 284
           if (response.data.state == 0) {
278
-            that.$message.error(response.data.data.msg)
285
+            that.$message.error(response.data.data.msg);
279 286
             return false
280 287
           } else {
281 288
             if(response.data.data.failed_code == -10){
282
-              that.$message.error(response.data.data.msg)
289
+              // that.$message.error(response.data.data.msg)
290
+              that.$confirm(response.data.data.msg, '医保错误信息', {
291
+                confirmButtonText: '确 定',
292
+                type: 'warning'
293
+              }).then(() => {
294
+
295
+              }).catch(() => {
296
+              })
283 297
             }else{
284 298
 
285 299
 
@@ -292,7 +306,7 @@ export default {
292 306
         })
293 307
       },
294 308
       GDYBBatchPutOnRecord(){
295
-        var that = this
309
+        var that = this;
296 310
         var ids = [];
297 311
         var idMap = {};
298 312
         for (const index in this.selectDrug) {
@@ -303,14 +317,21 @@ export default {
303 317
           ids:ids.join(','),
304 318
           record_type: 3,
305 319
           admin_user_id:this.$store.getters.xt_user.user.id
306
-        }
320
+        };
307 321
         axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
308 322
           if (response.data.state == 0) {
309
-            that.$message.error(response.data.data.msg)
323
+            that.$message.error(response.data.data.msg);
310 324
             return false
311 325
           } else {
312 326
             if(response.data.data.failed_code == -10){
313
-              that.$message.error(response.data.data.msg)
327
+              // that.$message.error(response.data.data.msg)
328
+              that.$confirm(response.data.data.msg, '医保错误信息', {
329
+                confirmButtonText: '确 定',
330
+                type: 'warning'
331
+              }).then(() => {
332
+
333
+              }).catch(() => {
334
+              })
314 335
             }else{
315 336
 
316 337
 
@@ -324,11 +345,11 @@ export default {
324 345
          this.getlist()
325 346
         },
326 347
         handleSizeChange(val) {
327
-            this.limit = val
348
+            this.limit = val;
328 349
             this.getlist()
329 350
         },
330 351
         handleCurrentChange(val) {
331
-            this.page = val
352
+            this.page = val;
332 353
             this.getlist()
333 354
         },
334 355
         searchAction(){
@@ -346,8 +367,8 @@ export default {
346 367
            this.$refs.editProject.show(id)
347 368
         },
348 369
         getCostClassify(id){
349
-          var costClassify = getDictionaryDataConfig('system','cost_classify')
350
-          var name = ""
370
+          var costClassify = getDictionaryDataConfig('system','cost_classify');
371
+          var name = "";
351 372
           for(let i=0;i<costClassify.length;i++){
352 373
              if(id == costClassify[i].id){
353 374
                name = costClassify[i].name
@@ -356,8 +377,8 @@ export default {
356 377
           return name
357 378
         },
358 379
         getExecutiveSection(id){
359
-          var executiveSection =  this.departMentList
360
-          var name = ""
380
+          var executiveSection =  this.departMentList;
381
+          var name = "";
361 382
           for(let i=0;i<executiveSection.length;i++){
362 383
             if(id == executiveSection[i].id){
363 384
                name = executiveSection[i].name
@@ -374,15 +395,15 @@ export default {
374 395
                limit:this.limit,
375 396
                page:this.page,
376 397
                is_mark:this.is_mark,
377
-            }
398
+            };
378 399
 
379 400
           getProjectList(params).then(response=>{
380 401
              if(response.data.state == 1){
381
-               var projecList = response.data.data.projecList
382
-              
383
-               this.tableData = projecList
384
-               var total = response.data.data.total
385
-            
402
+               var projecList = response.data.data.projecList;
403
+
404
+               this.tableData = projecList;
405
+               var total = response.data.data.total;
406
+
386 407
                this.total = total
387 408
              }
388 409
           })
@@ -395,8 +416,8 @@ export default {
395 416
            }).then(() => {
396 417
             deleteHisProject(id).then(response => {
397 418
                if (response.data.state == 1) {
398
-                 var msg = response.data.data.msg
399
-                 this.$message.success("删除成功")
419
+                 var msg = response.data.data.msg;
420
+                 this.$message.success("删除成功");
400 421
                 this.tableData.splice(index, 1);
401 422
                 }
402 423
              });
@@ -408,13 +429,13 @@ export default {
408 429
         },
409 430
 
410 431
         toRecord(){
411
-         var that = this
432
+         var that = this;
412 433
          axios.get('http://127.0.0.1:9532/sz/api/treatment/get').then(function(response) {
413 434
           if (response.data.state == 0) {
414
-               that.$message.error(response.data.msg)
435
+               that.$message.error(response.data.msg);
415 436
                return false
416 437
             } else {
417
-              that.$message({ message: '备案成功', type: 'success' })
438
+              that.$message({ message: '备案成功', type: 'success' });
418 439
               that.getlist()
419 440
              }
420 441
            }).catch(function(error) {
@@ -422,27 +443,27 @@ export default {
422 443
       },
423 444
 
424 445
      toReturn(id,isMark){
425
-      
426
-         var that = this
446
+
447
+         var that = this;
427 448
          let params = {
428 449
              'id':id,
429 450
              'type_id':2,
430 451
              'is_mark':isMark,
431 452
              'admin_user_id':this.$store.getters.xt_user.user.id,
432
-          }
433
-      
453
+          };
454
+
434 455
 
435 456
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
436 457
           if (response.data.state == 0) {
437
-               that.$message.error(response.data.data.msg)
458
+               that.$message.error(response.data.data.msg);
438 459
                return false
439 460
             } else {
440 461
               if(response.data.data.msg == ""){
441
-                  that.$message.success("备案成功!")
462
+                  that.$message.success("备案成功!");
442 463
                   that.getlist()
443 464
                }
444 465
                if(response.data.data.msg!=""){
445
-                  that.$message.error(response.data.data.msg)
466
+                  that.$message.error(response.data.data.msg);
446 467
                   that.getlist()
447 468
                }
448 469
              }
@@ -478,24 +499,24 @@ export default {
478 499
           idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
479 500
         }
480 501
 
481
-        var idss = ids.join(',')
502
+        var idss = ids.join(',');
482 503
         let params = {
483 504
           ids:idss,
484 505
           admin_user_id:this.$store.getters.xt_user.user.id
485
-        }
486
-      
487
-        var that = this
506
+        };
507
+
508
+        var that = this;
488 509
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
489 510
          if (response.data.state == 0) {
490
-               that.$message.error(response.data.data.msg)
511
+               that.$message.error(response.data.data.msg);
491 512
                return false
492 513
             } else {
493 514
               if(response.data.data.msg == ""){
494
-                  that.$message.success("备案成功!")
515
+                  that.$message.success("备案成功!");
495 516
                   that.getlist()
496 517
                }
497 518
                if(response.data.data.msg!=""){
498
-                  that.$message.error(response.data.data.msg)
519
+                  that.$message.error(response.data.data.msg);
499 520
                   that.getlist()
500 521
                }
501 522
              }
@@ -508,11 +529,11 @@ export default {
508 529
         var params = {
509 530
             limit:this.limit,
510 531
             page:this.page,
511
-        }
532
+        };
512 533
         getDePartmentList(params).then(response=>{
513 534
             if(response.data.state == 1){
514
-            var department =   response.data.data.departMentList
515
-           
535
+            var department =   response.data.data.departMentList;
536
+
516 537
             this.departMentList = department
517 538
             }
518 539
         })
@@ -521,30 +542,30 @@ export default {
521 542
 
522 543
         if (header != undefined && header.length > 0) {
523 544
 
524
-          var isHasProjectName = header.includes('*项目名称')
545
+          var isHasProjectName = header.includes('*项目名称');
525 546
 
526
-          var isHasProjectPrice = header.includes('*零价')
547
+          var isHasProjectPrice = header.includes('*零价');
527 548
 
528
-          var isHasProjectUnit = header.includes('*单位')
549
+          var isHasProjectUnit = header.includes('*单位');
529 550
 
530
-          var isHasProjectCostClassify = header.includes('*费用类别')
551
+          var isHasProjectCostClassify = header.includes('*费用类别');
531 552
 
532
-          var isHasProjectExecutiveSection = header.includes('*执行科室')
553
+          var isHasProjectExecutiveSection = header.includes('*执行科室');
533 554
 
534
-          var isHasProjectMedicalCoverage = header.includes('*医保等级')
555
+          var isHasProjectMedicalCoverage = header.includes('*医保等级');
535 556
 
536 557
           if (!(isHasProjectName && isHasProjectPrice && isHasProjectUnit && isHasProjectCostClassify && isHasProjectExecutiveSection && isHasProjectMedicalCoverage )) {
537
-            this.dialogVisible = true
558
+            this.dialogVisible = true;
538 559
             return
539 560
           }
540 561
         }else {
541
-          this.dialogVisible = true
562
+          this.dialogVisible = true;
542 563
           return
543 564
         }
544 565
 
545
-       var tableData = []
566
+       var tableData = [];
546 567
        for(let i=1;i<results.length;i++){
547
-         let obj = {"cost_classify_id":0,"medical_insurance_level_id":0,"executive_section_id":0,"tube_color_id":0,"statistical_classification_id":0,"category":0,"specail_project":0,"medical_status":0}
568
+         let obj = {"cost_classify_id":0,"medical_insurance_level_id":0,"executive_section_id":0,"tube_color_id":0,"statistical_classification_id":0,"category":0,"specail_project":0,"medical_status":0};
548 569
          for (var key in results[i]) {
549 570
            if (results[i]['*项目名称'] === undefined) {
550 571
                 obj['project_name'] = ''
@@ -738,8 +759,8 @@ export default {
738 759
               }
739 760
           }
740 761
          }
741
-         tableData.push(obj)
742
-         
762
+         tableData.push(obj);
763
+
743 764
 
744 765
         for(let i=0;i<tableData.length;i++){
745 766
 
@@ -805,13 +826,13 @@ export default {
805 826
        }
806 827
        let params = {
807 828
           'projects':tableData
808
-        }
809
-       console.log("params222",params)
829
+        };
830
+       console.log("params222",params);
810 831
 
811 832
         postProjectInformation(params).then(response=>{
812 833
            if(response.data.state == 1){
813
-             var msg =  response.data.data.msg
814
-             this.$message.success("导入成功!")
834
+             var msg =  response.data.data.msg;
835
+             this.$message.success("导入成功!");
815 836
              this.getlist()
816 837
            }else{
817 838
              this.$message.error("导入失败")
@@ -819,9 +840,9 @@ export default {
819 840
         })
820 841
       },
821 842
       generateTxt: function(log) {
822
-        var content = ''
823
-        var errlog = log.err_logs
824
-        content = this.getContent(log)
843
+        var content = '';
844
+        var errlog = log.err_logs;
845
+        content = this.getContent(log);
825 846
         for (let i = 0; i < errlog.length; i++) {
826 847
           if (content.length == 0) {
827 848
             content = errlog[i].err_msg
@@ -830,38 +851,38 @@ export default {
830 851
           }
831 852
         }
832 853
 
833
-        var url = new Blob(['\ufeff' + content], { type: 'text/txt,charset=UTF-8' })
854
+        var url = new Blob(['\ufeff' + content], { type: 'text/txt,charset=UTF-8' });
834 855
         if (typeof url === 'object' && url instanceof Blob) {
835 856
           url = URL.createObjectURL(url) // 创建blob地址
836 857
         }
837
-        const aLink = document.createElement('a')
838
-        aLink.href = url
839
-        aLink.download = this.timestampToTime(log.export_time) + '患者导入日志' + '.txt'
858
+        const aLink = document.createElement('a');
859
+        aLink.href = url;
860
+        aLink.download = this.timestampToTime(log.export_time) + '患者导入日志' + '.txt';
840 861
         aLink.click()
841 862
 
842 863
       },
843 864
       getContent(log) {
844
-       
865
+
845 866
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
846 867
       },
847 868
       timestampToTime(timestamp) {
848
-        var date = new Date(timestamp * 1000)//时间戳为10位需*1000,时间戳为13位的话不需乘1000
849
-        var Y = date.getFullYear() + '年'
850
-        var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '月'
851
-        var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + '日 '
852
-        var h = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + '时'
853
-        var m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + '分'
854
-        var s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds()) + '秒'
869
+        var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
870
+        var Y = date.getFullYear() + '年';
871
+        var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '月';
872
+        var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + '日 ';
873
+        var h = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + '时';
874
+        var m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + '分';
875
+        var s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds()) + '秒';
855 876
         return Y + M + D + h + m + s
856 877
       },
857 878
        generateLog() {
858 879
         let params = {
859 880
           'log_type': 6
860
-        }
881
+        };
861 882
         generateLog(params).then(
862 883
           response => {
863 884
             if (response.data.state === 1) {
864
-              this.logs = response.data.data.logs
885
+              this.logs = response.data.data.logs;
865 886
               this.exportLogVisible = true
866 887
             } else {
867 888
               this.$message.error(response.data.msg)
@@ -874,7 +895,7 @@ export default {
874 895
       },
875 896
     },
876 897
     created(){
877
-      this.getlist()
898
+      this.getlist();
878 899
       this.getDartmentList()
879 900
 
880 901
     }

+ 229 - 229
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Прегледај датотеку

@@ -372,7 +372,7 @@
372 372
           </el-table-column>
373 373
 
374 374
 
375
-          
375
+
376 376
 
377 377
           <el-table-column
378 378
             prop="heparin"
@@ -387,12 +387,12 @@
387 387
           <el-table-column
388 388
             prop="heparin"
389 389
             align="center"
390
-            label="抗凝剂" 
390
+            label="抗凝剂"
391 391
             width="140"
392 392
             v-if="isShow('抗凝剂')"
393 393
           >
394 394
             <template slot-scope="scope">
395
-             <span v-if="scope.row.monitor_anticoagulant == 1">无肝素</span> 
395
+             <span v-if="scope.row.monitor_anticoagulant == 1">无肝素</span>
396 396
              <span v-if="scope.row.monitor_anticoagulant == 2">普通肝素</span>
397 397
              <span v-if="scope.row.monitor_anticoagulant == 3">低分子肝素</span>
398 398
              <span v-if="scope.row.monitor_anticoagulant == 4">阿加曲班</span>
@@ -402,7 +402,7 @@
402 402
              <span v-if="scope.row.monitor_anticoagulant == 8">依诺肝素</span>
403 403
              <span v-if="scope.row.monitor_anticoagulant == 9">达肝素</span>
404 404
              <span v-if="scope.row.monitor_anticoagulant_value!=''">({{ scope.row.monitor_anticoagulant_value ? scope.row.monitor_anticoagulant_value : ""  }})</span>
405
-             
405
+
406 406
             </template>
407 407
           </el-table-column>
408 408
 
@@ -453,7 +453,7 @@
453 453
             v-if="isShow('病情变化')"
454 454
           >
455 455
           </el-table-column>
456
-          
456
+
457 457
           <el-table-column
458 458
             prop="dispose"
459 459
             align="center"
@@ -684,7 +684,7 @@
684 684
                 </div>
685 685
             </el-form-item>
686 686
           </el-col>
687
-        
687
+
688 688
          <el-col :span="8" v-if="isShow('血压监测部位')">
689 689
             <el-form-item label="血压监测部位:">
690 690
               <div style="display:flex;">
@@ -706,8 +706,8 @@
706 706
             </el-form-item>
707 707
          </el-col>
708 708
 
709
-        
710
-      
709
+
710
+
711 711
           <!-- </el-row>
712 712
 
713 713
           <el-row :gutter="20"> -->
@@ -894,7 +894,7 @@ export default {
894 894
         dispose: '', // 处理
895 895
         result: '', // 结果,
896 896
         blood_oxygen_saturation: '',
897
-        urr:'', 
897
+        urr:'',
898 898
         blood_sugar:'',//血糖
899 899
         monitor_anticoagulant:'',
900 900
         monitor_anticoagulant_value:"",
@@ -929,21 +929,21 @@ export default {
929 929
     }
930 930
   },
931 931
   created() {
932
-    this.template_id = this.$store.getters.xt_user.template_info.template_id
933
-    this.org_id = this.$store.getters.xt_user.template_info.org_id
934
-    var date = this.$route.query.date
935
-    var patient_id = this.$route.query.patient_id
936
-    this.patient_id = patient_id
937
-    this.schedule_date = date
938
-    this.form.monitoring_date = date
932
+    this.template_id = this.$store.getters.xt_user.template_info.template_id;
933
+    this.org_id = this.$store.getters.xt_user.template_info.org_id;
934
+    var date = this.$route.query.date;
935
+    var patient_id = this.$route.query.patient_id;
936
+    this.patient_id = patient_id;
937
+    this.schedule_date = date;
938
+    this.form.monitoring_date = date;
939 939
     // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
940 940
     // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
941
-    this.form.operate_time = new Date().getTime()
942
-    var symptoms = getDataConfig('hemodialysis', 'symptoms')
943
-    console.log("sysmptoms3333333333",symptoms)
944
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
945
-    console.log("抗凝剂",this.anticoagulantsConfit)
946
-    this.bloodPressureMmonitoringSite = getDataConfig('hemodialysis','blood_pressure_monitoring_site')
941
+    this.form.operate_time = new Date().getTime();
942
+    var symptoms = getDataConfig('hemodialysis', 'symptoms');
943
+    console.log("sysmptoms3333333333",symptoms);
944
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
945
+    //console.log("抗凝剂",this.anticoagulantsConfit)
946
+    this.bloodPressureMmonitoringSite = getDataConfig('hemodialysis','blood_pressure_monitoring_site');
947 947
     this.complicationList = getDataConfig('hemodialysis','complication')
948 948
 
949 949
   },
@@ -1029,7 +1029,7 @@ export default {
1029 1029
     },
1030 1030
 
1031 1031
     isShow(name) {
1032
-      var filedList = store.getters.xt_user.fileds
1032
+      var filedList = store.getters.xt_user.fileds;
1033 1033
       for (let i = 0; i < filedList.length; i++) {
1034 1034
         if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
1035 1035
           return true
@@ -1041,7 +1041,7 @@ export default {
1041 1041
       this.cancelEditAction()
1042 1042
     },
1043 1043
     show() {
1044
-      this.getPermission()
1044
+      this.getPermission();
1045 1045
       this.visible = true
1046 1046
     },
1047 1047
     hide() {
@@ -1052,67 +1052,67 @@ export default {
1052 1052
     },
1053 1053
 
1054 1054
     newRecordAction: function() {
1055
-      this.setEditMonitor(null)
1056
-      this.$refs.table.setCurrentRow(null)
1057
-      this.edit = true
1058
-      this.isAdd = true
1055
+      this.setEditMonitor(null);
1056
+      this.$refs.table.setCurrentRow(null);
1057
+      this.edit = true;
1058
+      this.isAdd = true;
1059 1059
       this.getLastRecordTody()
1060 1060
     },
1061 1061
     getLastRecordTody() {
1062 1062
       const params = {
1063 1063
         patient_id: this.patient_id
1064
-      }
1064
+      };
1065 1065
 
1066 1066
       getTodayMonitor(params).then(rs => {
1067
-        console.log("机构ID",this.org_id)
1068
-        
1069
-        var resp = rs.data.data
1070
-       
1071
-        this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date())
1072
-        this.form.temperature = '' // this.last_monitor_record.pulse_frequency;
1073
-
1074
-        this.form.pulse_frequency = '' // this.last_monitor_record.pulse_frequency;
1075
-        this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : ''
1076
-        this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
1077
-        this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
1078
-        this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
1067
+        console.log("机构ID",this.org_id);
1068
+
1069
+        var resp = rs.data.data;
1070
+
1071
+        this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date());
1072
+        this.form.temperature = ''; // this.last_monitor_record.pulse_frequency;
1073
+
1074
+        this.form.pulse_frequency = ''; // this.last_monitor_record.pulse_frequency;
1075
+        this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : '';
1076
+        this.form.systolic_bp = ''; // this.last_monitor_record.systolic_blood_pressure;
1077
+        this.form.diastolic_bp = ''; // this.last_monitor_record.diastolic_blood_pressure;
1078
+        this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : '';
1079 1079
         // 静脉压
1080 1080
         if(this.org_id == 10060){
1081 1081
           this.form.venous_pressure = resp.monitor.venous_pressure
1082 1082
         }else{
1083 1083
           this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
1084 1084
         }
1085
-        
1086
-        this.form.venous_pressure_type = resp.monitor.venous_pressure_type ? resp.monitor.venous_pressure_type : 1
1087
-        this.form.arterial_pressure = resp.monitor.arterial_pressure ? resp.monitor.arterial_pressure : '' // this.last_monitor_record.arterial_pressure;
1088
-        this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type ? resp.monitor.arterial_pressure_type : 1
1085
+
1086
+        this.form.venous_pressure_type = resp.monitor.venous_pressure_type ? resp.monitor.venous_pressure_type : 1;
1087
+        this.form.arterial_pressure = resp.monitor.arterial_pressure ? resp.monitor.arterial_pressure : ''; // this.last_monitor_record.arterial_pressure;
1088
+        this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type ? resp.monitor.arterial_pressure_type : 1;
1089 1089
         if(this.org_id == 10060){
1090 1090
           this.form.transmembrane_pressure = resp.monitor.transmembrane_pressure;
1091 1091
         }else{
1092 1092
           this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
1093 1093
         }
1094
-        this.form.transmembrane_pressure_type = resp.monitor.transmembrane_pressure_type ? resp.monitor.transmembrane_pressure_type : 1
1095
-        this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : ''
1096
-        this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
1097
-        this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
1098
-        this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : ''
1099
-        this.form.temperature =  resp.monitor.temperature ? resp.monitor.temperature : ''
1100
-        this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : ''
1101
-        this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : ''
1102
-        this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : ''
1103
-        this.form.displacement_quantity =  resp.monitor.displacement_quantity ? resp.monitor.displacement_quantity : '' // this.last_monitor_record.displacement_quantity;
1104
-        this.form.conductivity =   ''
1105
-        this.form.displacement_flow_quantity = resp.monitor.displacement_flow_quantity ? resp.monitor.displacement_flow_quantity : ''
1106
-        this.form.ktv =  resp.monitor.ktv ? resp.monitor.ktv : '' // this.last_monitor_record.ktv;
1107
-        this.form.symptom =  resp.monitor.symptom ? resp.monitor.symptom : '' // this.last_monitor_record.symptom;
1108
-        this.form.dispose =  resp.monitor.dispose ? resp.monitor.dispose : '' // this.last_monitor_record.dispose;
1109
-        this.form.result =  resp.monitor.result ? resp.monitor.result : '' // this.last_monitor_record.result;
1110
-        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : ''
1111
-        this.form.urr = resp.monitor.urr?resp.monitor.urr:''
1112
-        this.form.blood_sugar = resp.monitor.blood_sugar?resp.monitor.blood_sugar:''
1113
-        this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:''
1114
-        this.form.conductivity = resp.monitor.conductivity?resp.monitor.conductivity:''
1115
-        this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant?resp.monitor.monitor_anticoagulant:""
1094
+        this.form.transmembrane_pressure_type = resp.monitor.transmembrane_pressure_type ? resp.monitor.transmembrane_pressure_type : 1;
1095
+        this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : '';
1096
+        this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : '';
1097
+        this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : '';
1098
+        this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : '';
1099
+        this.form.temperature =  resp.monitor.temperature ? resp.monitor.temperature : '';
1100
+        this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : '';
1101
+        this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : '';
1102
+        this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : '';
1103
+        this.form.displacement_quantity =  resp.monitor.displacement_quantity ? resp.monitor.displacement_quantity : ''; // this.last_monitor_record.displacement_quantity;
1104
+        this.form.conductivity =   '';
1105
+        this.form.displacement_flow_quantity = resp.monitor.displacement_flow_quantity ? resp.monitor.displacement_flow_quantity : '';
1106
+        this.form.ktv =  resp.monitor.ktv ? resp.monitor.ktv : ''; // this.last_monitor_record.ktv;
1107
+        this.form.symptom =  resp.monitor.symptom ? resp.monitor.symptom : ''; // this.last_monitor_record.symptom;
1108
+        this.form.dispose =  resp.monitor.dispose ? resp.monitor.dispose : ''; // this.last_monitor_record.dispose;
1109
+        this.form.result =  resp.monitor.result ? resp.monitor.result : ''; // this.last_monitor_record.result;
1110
+        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : '';
1111
+        this.form.urr = resp.monitor.urr?resp.monitor.urr:'';
1112
+        this.form.blood_sugar = resp.monitor.blood_sugar?resp.monitor.blood_sugar:'';
1113
+        this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:'';
1114
+        this.form.conductivity = resp.monitor.conductivity?resp.monitor.conductivity:'';
1115
+        this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant?resp.monitor.monitor_anticoagulant:"";
1116 1116
         this.form.monitor_anticoagulant_value = resp.monitor.monitor_anticoagulant_value?resp.monitor.monitor_anticoagulant_value:""
1117 1117
 
1118 1118
       })
@@ -1120,18 +1120,18 @@ export default {
1120 1120
 
1121 1121
     modifyRecordAction: function() {
1122 1122
       if (this.table_current_row == null) {
1123
-        this.$message.error('请选择一条监测记录')
1123
+        this.$message.error('请选择一条监测记录');
1124 1124
         return
1125 1125
       }
1126
-      this.creator = this.table_current_row.creator
1127
-      this.setEditMonitor(this.table_current_row)
1128
-      this.$refs.table.setCurrentRow(null)
1129
-      this.edit = true
1126
+      this.creator = this.table_current_row.creator;
1127
+      this.setEditMonitor(this.table_current_row);
1128
+      this.$refs.table.setCurrentRow(null);
1129
+      this.edit = true;
1130 1130
       this.isAdd = false
1131 1131
     },
1132 1132
     cancelEditAction: function() {
1133
-      this.setEditMonitor(null)
1134
-      this.$refs.table.setCurrentRow(null)
1133
+      this.setEditMonitor(null);
1134
+      this.$refs.table.setCurrentRow(null);
1135 1135
       this.edit = false
1136 1136
     },
1137 1137
     tableCurrentRowChange: function(currentRow) {
@@ -1141,142 +1141,142 @@ export default {
1141 1141
     },
1142 1142
     setEditMonitor: function(monitor) {
1143 1143
       if (monitor == null || monitor == undefined) {
1144
-        this.form.id = 0
1144
+        this.form.id = 0;
1145 1145
         // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
1146 1146
         // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
1147
-        this.form.operate_time = new Date().getTime()
1148
-        this.form.systolic_bp = ''
1149
-        this.form.diastolic_bp = ''
1150
-        this.form.pulse_frequency = ''
1151
-        this.form.breathing_rated = ''
1152
-        this.form.blood_flow_volume = ''
1153
-        this.form.temperature = ''
1154
-        this.form.venous_pressure = ''
1155
-        this.form.venous_pressure_type = 1
1156
-        this.form.transmembrane_pressure = ''
1157
-        this.form.transmembrane_pressure_type = 1
1158
-        this.form.ultrafiltration_volume = ''
1159
-        this.form.ultrafiltration_rate = ''
1160
-        this.form.arterial_pressure = ''
1161
-        this.form.arterial_pressure_type = 1
1162
-        this.form.sodium_concentration = ''
1163
-        this.form.dialysate_temperature = ''
1164
-        this.form.replacement_rate = ''
1165
-        this.form.displacement_quantity = ''
1166
-        this.form.conductivity = ''
1167
-        this.form.displacement_flow_quantity = ''
1168
-        this.form.heparin = ''
1169
-        this.form.dialysate_flow = ''
1170
-        this.form.ktv = ''
1171
-        this.form.symptom = ''
1172
-        this.form.dispose = ''
1173
-        this.form.result = ''
1174
-        this.symptom_selecteds = []
1175
-        this.dispose_selecteds = []
1176
-        this.result_selecteds = []
1177
-        this.form.urr = ''
1178
-        this.form.blood_sugar = ''
1179
-        this.form.monitor_anticoagulant = ''
1147
+        this.form.operate_time = new Date().getTime();
1148
+        this.form.systolic_bp = '';
1149
+        this.form.diastolic_bp = '';
1150
+        this.form.pulse_frequency = '';
1151
+        this.form.breathing_rated = '';
1152
+        this.form.blood_flow_volume = '';
1153
+        this.form.temperature = '';
1154
+        this.form.venous_pressure = '';
1155
+        this.form.venous_pressure_type = 1;
1156
+        this.form.transmembrane_pressure = '';
1157
+        this.form.transmembrane_pressure_type = 1;
1158
+        this.form.ultrafiltration_volume = '';
1159
+        this.form.ultrafiltration_rate = '';
1160
+        this.form.arterial_pressure = '';
1161
+        this.form.arterial_pressure_type = 1;
1162
+        this.form.sodium_concentration = '';
1163
+        this.form.dialysate_temperature = '';
1164
+        this.form.replacement_rate = '';
1165
+        this.form.displacement_quantity = '';
1166
+        this.form.conductivity = '';
1167
+        this.form.displacement_flow_quantity = '';
1168
+        this.form.heparin = '';
1169
+        this.form.dialysate_flow = '';
1170
+        this.form.ktv = '';
1171
+        this.form.symptom = '';
1172
+        this.form.dispose = '';
1173
+        this.form.result = '';
1174
+        this.symptom_selecteds = [];
1175
+        this.dispose_selecteds = [];
1176
+        this.result_selecteds = [];
1177
+        this.form.urr = '';
1178
+        this.form.blood_sugar = '';
1179
+        this.form.monitor_anticoagulant = '';
1180 1180
         this.form.monitor_anticoagulant_value = ''
1181 1181
       } else {
1182 1182
         (this.form.id = monitor.id),
1183 1183
         // this.form.operate_date = monitor.operate_date
1184 1184
         // this.form.monitoring_time = monitor.monitoring_time
1185
-        (this.form.operate_time = monitor.operate_time * 1000)
1186
-        this.form.systolic_bp = monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : ''
1187
-        this.form.temperature = monitor.temperature ? monitor.temperature : ''
1188
-        this.form.diastolic_bp = monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : ''
1189
-        this.form.pulse_frequency = monitor.pulse_frequency ? monitor.pulse_frequency : ''
1190
-        this.form.breathing_rated = monitor.breathing_rate ? monitor.breathing_rate : ''
1191
-        this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : ''
1192
-        this.form.venous_pressure = monitor.venous_pressure ? monitor.venous_pressure : ''
1193
-        this.form.venous_pressure_type = monitor.venous_pressure_type ? monitor.venous_pressure_type : ''
1194
-        this.form.transmembrane_pressure = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : ''
1195
-        this.form.transmembrane_pressure_type = monitor.transmembrane_pressure_type ? monitor.transmembrane_pressure_type : ''
1196
-        this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : ''
1197
-        this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : ''
1198
-        this.form.arterial_pressure = monitor.arterial_pressure ? monitor.arterial_pressure : ''
1199
-        this.form.arterial_pressure_type = monitor.arterial_pressure_type ? monitor.arterial_pressure_type : ''
1200
-        this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : ''
1201
-        this.form.dialysate_temperature = monitor.dialysate_temperature ? monitor.dialysate_temperature : ''
1202
-        this.form.replacement_rate = monitor.replacement_rate ? monitor.replacement_rate : ''
1203
-        this.form.displacement_quantity = monitor.displacement_quantity ? monitor.displacement_quantity : ''
1204
-        this.form.conductivity = monitor.conductivity ? monitor.conductivity : ''
1205
-        this.form.displacement_flow_quantity = monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : ''
1206
-        this.form.heparin = monitor.heparin ? monitor.heparin : ''
1207
-        this.form.dialysate_flow = monitor.dialysate_flow ? monitor.dialysate_flow : ''
1208
-
1209
-        this.form.ktv = monitor.ktv ? monitor.ktv : ''
1210
-        this.form.symptom = monitor.symptom
1211
-        this.form.dispose = monitor.dispose
1212
-        this.form.result = monitor.result
1213
-        this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation
1214
-        this.form.urr = monitor.urr?monitor.urr:''
1215
-        this.form.blood_sugar = monitor.blood_sugar?monitor.blood_sugar:''
1216
-        this.form.monitor_anticoagulant = monitor.monitor_anticoagulant?monitor.monitor_anticoagulant:''
1217
-        this.form.monitor_anticoagulant_value = monitor.monitor_anticoagulant_value?monitor.monitor_anticoagulant_value:""
1185
+        (this.form.operate_time = monitor.operate_time * 1000);
1186
+        this.form.systolic_bp = monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : '';
1187
+        this.form.temperature = monitor.temperature ? monitor.temperature : '';
1188
+        this.form.diastolic_bp = monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : '';
1189
+        this.form.pulse_frequency = monitor.pulse_frequency ? monitor.pulse_frequency : '';
1190
+        this.form.breathing_rated = monitor.breathing_rate ? monitor.breathing_rate : '';
1191
+        this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : '';
1192
+        this.form.venous_pressure = monitor.venous_pressure ? monitor.venous_pressure : '';
1193
+        this.form.venous_pressure_type = monitor.venous_pressure_type ? monitor.venous_pressure_type : '';
1194
+        this.form.transmembrane_pressure = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : '';
1195
+        this.form.transmembrane_pressure_type = monitor.transmembrane_pressure_type ? monitor.transmembrane_pressure_type : '';
1196
+        this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '';
1197
+        this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '';
1198
+        this.form.arterial_pressure = monitor.arterial_pressure ? monitor.arterial_pressure : '';
1199
+        this.form.arterial_pressure_type = monitor.arterial_pressure_type ? monitor.arterial_pressure_type : '';
1200
+        this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : '';
1201
+        this.form.dialysate_temperature = monitor.dialysate_temperature ? monitor.dialysate_temperature : '';
1202
+        this.form.replacement_rate = monitor.replacement_rate ? monitor.replacement_rate : '';
1203
+        this.form.displacement_quantity = monitor.displacement_quantity ? monitor.displacement_quantity : '';
1204
+        this.form.conductivity = monitor.conductivity ? monitor.conductivity : '';
1205
+        this.form.displacement_flow_quantity = monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : '';
1206
+        this.form.heparin = monitor.heparin ? monitor.heparin : '';
1207
+        this.form.dialysate_flow = monitor.dialysate_flow ? monitor.dialysate_flow : '';
1208
+
1209
+        this.form.ktv = monitor.ktv ? monitor.ktv : '';
1210
+        this.form.symptom = monitor.symptom;
1211
+        this.form.dispose = monitor.dispose;
1212
+        this.form.result = monitor.result;
1213
+        this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation;
1214
+        this.form.urr = monitor.urr?monitor.urr:'';
1215
+        this.form.blood_sugar = monitor.blood_sugar?monitor.blood_sugar:'';
1216
+        this.form.monitor_anticoagulant = monitor.monitor_anticoagulant?monitor.monitor_anticoagulant:'';
1217
+        this.form.monitor_anticoagulant_value = monitor.monitor_anticoagulant_value?monitor.monitor_anticoagulant_value:"";
1218 1218
         // 设置三个下拉框的值,直接调用事件偷懒
1219
-        this.symptomTextareaBlur()
1220
-        this.disposeTextareaBlur()
1219
+        this.symptomTextareaBlur();
1220
+        this.disposeTextareaBlur();
1221 1221
         this.resultTextareaBlur()
1222 1222
       }
1223 1223
     },
1224 1224
 
1225 1225
     submitAction: function() {
1226
-      
1226
+
1227 1227
       // TODO loading
1228
-      var is_new = this.form.id
1229
-      this.form.operate_time = parseInt(this.form.operate_time / 1000)
1230
-      this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp)
1231
-      this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp)
1232
-      this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature)
1233
-      this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency)
1234
-      this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
1235
-      this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
1236
-      this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
1237
-      this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type)
1238
-      this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
1239
-      this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type)
1240
-      this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1241
-      this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1242
-      this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
1243
-      this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type)
1244
-      this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1245
-      this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1246
-      this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
1247
-      this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity)
1248
-      this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity)
1249
-      this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity)
1250
-      this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin)
1251
-      this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow)
1252
-      this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
1253
-      this.form.monitoring_date = parseInt(this.form.monitoring_date)
1254
-      this.form.urr = this.form.urr
1255
-      this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar)
1256
-      this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant)
1257
-      this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value
1258
-      this.form.blood_pressure_monitoring_site = parseInt(this.form.blood_pressure_monitoring_site)
1259
-      this.form.complication = parseInt(this.form.complication)
1260
-      let mode = '1'
1228
+      var is_new = this.form.id;
1229
+      this.form.operate_time = parseInt(this.form.operate_time / 1000);
1230
+      this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp);
1231
+      this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp);
1232
+      this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature);
1233
+      this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency);
1234
+      this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated);
1235
+      this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume);
1236
+      this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure);
1237
+      this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type);
1238
+      this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure);
1239
+      this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type);
1240
+      this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume);
1241
+      this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate);
1242
+      this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure);
1243
+      this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type);
1244
+      this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration);
1245
+      this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature);
1246
+      this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate);
1247
+      this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity);
1248
+      this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity);
1249
+      this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity);
1250
+      this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin);
1251
+      this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow);
1252
+      this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1253
+      this.form.monitoring_date = parseInt(this.form.monitoring_date);
1254
+      this.form.urr = this.form.urr;
1255
+      this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar);
1256
+      this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant);
1257
+      this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value;
1258
+      this.form.blood_pressure_monitoring_site = parseInt(this.form.blood_pressure_monitoring_site);
1259
+      this.form.complication = parseInt(this.form.complication);
1260
+      let mode = '1';
1261 1261
       if (this.form.id > 0) {
1262
-        mode = '2'
1262
+        mode = '2';
1263 1263
         if (this.creator > 0 && this.creator != this.$store.getters.xt_user.user.id) {
1264 1264
           mode = '3'
1265 1265
         }
1266 1266
       }
1267 1267
       editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
1268
-        
1268
+
1269 1269
         rs => {
1270
-          var resp = rs.data
1270
+          var resp = rs.data;
1271 1271
           if (resp.state == 1) {
1272
-            var monitor = resp.data.monitor
1272
+            var monitor = resp.data.monitor;
1273 1273
             if (this.isAdd) {
1274
-              this.monitors.unshift(monitor)
1275
-              this.monitors.sort((a, b) => b.operate_time - a.operate_time)
1274
+              this.monitors.unshift(monitor);
1275
+              this.monitors.sort((a, b) => b.operate_time - a.operate_time);
1276 1276
               this.monitors.reverse()
1277 1277
             } else {
1278 1278
               for (let index = 0; index < this.monitors.length; index++) {
1279
-                const m = this.monitors[index]
1279
+                const m = this.monitors[index];
1280 1280
                 if (m.id == monitor.id) {
1281 1281
                   for (const key in monitor) {
1282 1282
                     m[key] = monitor[key]
@@ -1287,36 +1287,36 @@ export default {
1287 1287
             }
1288 1288
             this.reset()
1289 1289
           } else {
1290
-            this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp)
1291
-            this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp)
1292
-            this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature)
1293
-            this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency)
1294
-            this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
1295
-            this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
1296
-            this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
1297
-            this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type)
1298
-            this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
1299
-            this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type)
1300
-            this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1301
-            this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1302
-            this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
1303
-            this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type)
1304
-            this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1305
-            this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1306
-            this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
1307
-            this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity)
1308
-            this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity)
1309
-            this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity)
1310
-            this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin)
1311
-            this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow)
1312
-
1313
-            this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
1314
-            this.form.urr = this.form.urr
1315
-            this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar)
1316
-            this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant)
1317
-            this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value
1318
-            this.form.blood_pressure_monitoring_site = this.form.blood_pressure_monitoring_site
1319
-            this.form.complication = this.form.complication
1290
+            this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp);
1291
+            this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp);
1292
+            this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature);
1293
+            this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency);
1294
+            this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated);
1295
+            this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume);
1296
+            this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure);
1297
+            this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type);
1298
+            this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure);
1299
+            this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type);
1300
+            this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume);
1301
+            this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate);
1302
+            this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure);
1303
+            this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type);
1304
+            this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration);
1305
+            this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature);
1306
+            this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate);
1307
+            this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity);
1308
+            this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity);
1309
+            this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity);
1310
+            this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin);
1311
+            this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow);
1312
+
1313
+            this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1314
+            this.form.urr = this.form.urr;
1315
+            this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar);
1316
+            this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant);
1317
+            this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value;
1318
+            this.form.blood_pressure_monitoring_site = this.form.blood_pressure_monitoring_site;
1319
+            this.form.complication = this.form.complication;
1320 1320
             this.$message.error(resp.msg)
1321 1321
           }
1322 1322
         }
@@ -1370,7 +1370,7 @@ export default {
1370 1370
     },
1371 1371
     deleteRecordAction: function() {
1372 1372
       if (this.table_current_row == null) {
1373
-        this.$message.error('请选择一条监测记录')
1373
+        this.$message.error('请选择一条监测记录');
1374 1374
         return
1375 1375
       }
1376 1376
 
@@ -1380,7 +1380,7 @@ export default {
1380 1380
         type: 'warning'
1381 1381
       })
1382 1382
         .then(() => {
1383
-          let mode = '4'
1383
+          let mode = '4';
1384 1384
           if (
1385 1385
             this.table_current_row.creator > 0 &&
1386 1386
             this.table_current_row.creator !=
@@ -1393,14 +1393,14 @@ export default {
1393 1393
             patient_id: this.patient_id,
1394 1394
             record_id: this.table_current_row.id,
1395 1395
             mode: mode
1396
-          }
1396
+          };
1397 1397
 
1398 1398
           postDelMonitorInfo(params).then(response => {
1399 1399
             if (response.data.state == 0) {
1400
-              this.$message.error(response.data.msg)
1400
+              this.$message.error(response.data.msg);
1401 1401
               return false
1402 1402
             } else {
1403
-              const record_id = response.data.data.record_id
1403
+              const record_id = response.data.data.record_id;
1404 1404
               for (let i = 0; i < this.monitors.length; i++) {
1405 1405
                 if (this.monitors[i].id == record_id) {
1406 1406
                   this.monitors.splice(i, 1)
@@ -1425,23 +1425,23 @@ export default {
1425 1425
           }
1426 1426
         })
1427 1427
         .then(res => {
1428
-          console.log(res)
1428
+          console.log(res);
1429 1429
           if (res.data.state == 0) {
1430 1430
             this.hasPermission = false
1431 1431
           } else if (res.data.state == 1) {
1432
-            this.is_has_create = res.data.data.is_has_create
1433
-            this.is_has_exce = res.data.data.is_has_exce
1434
-            this.is_has_check = res.data.data.is_has_check
1435
-            this.is_has_modify = res.data.data.is_has_modify
1436
-            this.is_has_modify_other = res.data.data.is_has_modify_other
1437
-            this.is_has_modify_exce = res.data.data.is_has_modify_exce
1438
-            this.is_has_del = res.data.data.is_has_del
1432
+            this.is_has_create = res.data.data.is_has_create;
1433
+            this.is_has_exce = res.data.data.is_has_exce;
1434
+            this.is_has_check = res.data.data.is_has_check;
1435
+            this.is_has_modify = res.data.data.is_has_modify;
1436
+            this.is_has_modify_other = res.data.data.is_has_modify_other;
1437
+            this.is_has_modify_exce = res.data.data.is_has_modify_exce;
1438
+            this.is_has_del = res.data.data.is_has_del;
1439 1439
             this.is_has_del_other = res.data.data.is_has_del_other
1440 1440
           }
1441 1441
         })
1442 1442
     },
1443 1443
     getBloodPressure(id){
1444
-       var name = ""
1444
+       var name = "";
1445 1445
        for(let i=0;i<this.bloodPressureMmonitoringSite.length;i++){
1446 1446
          if(id == this.bloodPressureMmonitoringSite[i].id){
1447 1447
             name = this.bloodPressureMmonitoringSite[i].name
@@ -1450,7 +1450,7 @@ export default {
1450 1450
        return name
1451 1451
     },
1452 1452
     getComplication(id){
1453
-      var name = ""
1453
+      var name = "";
1454 1454
       for(let i=0;i<this.complicationList.length;i++){
1455 1455
          if(id == this.complicationList[i].id){
1456 1456
             name = this.complicationList[i].name

+ 1 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue Прегледај датотеку

@@ -1941,7 +1941,7 @@
1941 1941
             isLoading = true;
1942 1942
             createHisPrescription(data, params).then(response => {
1943 1943
               if (response.data.state == 1) {
1944
-                this.$emit('change');
1944
+                this.$emit('change',this.patientInfo.id);
1945 1945
                 this.$message.success('保存成功')
1946 1946
               }
1947 1947
             })

+ 41 - 11
src/xt_pages/hospitalStation/doctorDesk.vue Прегледај датотеку

@@ -197,7 +197,7 @@
197 197
         radio: 1,
198 198
         record_date: '',
199 199
         crumbs: [
200
-          {path: false, name: '门诊医生站'},
200
+          {path: false, name: '住院工作站'},
201 201
           {path: false, name: '医生工作台'}
202 202
         ],
203 203
         titleType: '电子处方',
@@ -232,9 +232,40 @@
232 232
       }
233 233
     },
234 234
     methods: {
235
-      changeOther(){
235
+      changeOther(patient_id){
236 236
         this.radio = 2;
237
-        this.change()
237
+
238
+        let params = {
239
+          'record_date': this.record_date,
240
+          'type': this.radio
241
+        };
242
+        this.patientTableData = [];
243
+
244
+        getHospitalPatientList(params).then(response => {
245
+          if (response.data.state == 0) {
246
+            this.$message.error(response.data.msg);
247
+            return false
248
+          } else {
249
+            this.patientTableData = response.data.data.list;
250
+            this.patientTableDataTwo = response.data.data.list;
251
+            this.cal_one = response.data.data.total_one;
252
+            this.cal_two = response.data.data.total_two;
253
+            this.admin_info = response.data.data.info;
254
+            if (this.patientTableData.length > 0) {
255
+              for(let i = 0; i < this.patientTableData.length; i++){
256
+                if (this.patientTableData[i].id == patient_id){
257
+                  this.$refs.tab.setCurrentRow(this.patientTableData[i]);
258
+                  this.oldCurrentRow = this.patientTableData[i];
259
+                  this.getPatientInfo(this.patientTableData[i])
260
+                }
261
+              }
262
+            }
263
+            this.prescriptionList = response.data.data.list.prescription
264
+            // this.patientid = this.patientTableData[0].patient_id
265
+
266
+          }
267
+        })
268
+
238 269
 
239 270
       },
240 271
       setData(val) {
@@ -293,7 +324,8 @@
293 324
       //   })
294 325
       //
295 326
       // },
296
-      change(patient_id) {
327
+
328
+      change() {
297 329
         let params = {
298 330
           'record_date': this.record_date,
299 331
           'type': this.radio
@@ -311,14 +343,12 @@
311 343
             this.cal_two = response.data.data.total_two;
312 344
             this.admin_info = response.data.data.info;
313 345
 
314
-
315
-
316
-
317 346
             if (this.patientTableData.length > 0) {
318
-              this.$refs.tab.setCurrentRow(this.patientTableData[0]);
319
-              this.oldCurrentRow = this.patientTableData[0];
320 347
 
321
-              this.getPatientInfo(this.patientTableData[0])
348
+                this.$refs.tab.setCurrentRow(this.patientTableData[0]);
349
+                this.oldCurrentRow = this.patientTableData[0];
350
+                this.getPatientInfo(this.patientTableData[0])
351
+
322 352
             }
323 353
 
324 354
             this.prescriptionList = response.data.data.list.prescription
@@ -1904,7 +1934,7 @@
1904 1934
       },
1905 1935
 
1906 1936
       getPrescriptionList(id) {
1907
-        getPrescriptionList(id).then(response => {
1937
+        getPrescriptionList(id,1).then(response => {
1908 1938
           if (response.data.state == 1) {
1909 1939
             this.centerDialogVisible = true;
1910 1940
             var list = response.data.data.list;

+ 8 - 1
src/xt_pages/hospitalStation/index.vue Прегледај датотеку

@@ -544,7 +544,14 @@
544 544
                 } else {
545 545
                   that.loadingone = false;
546 546
                   if (response.data.data.failed_code == -10) {
547
-                    that.$message.error(response.data.data.msg)
547
+                    // that.$message.error(response.data.data.msg)
548
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
549
+                      confirmButtonText: '确 定',
550
+                      type: 'warning'
551
+                    }).then(() => {
552
+
553
+                    }).catch(() => {
554
+                    })
548 555
                   } else {
549 556
                     that.$message({message: '登记成功', type: 'success'});
550 557
                     that.form.name = '';

+ 8 - 1
src/xt_pages/hospitalStation/newStatementPrint.vue Прегледај датотеку

@@ -175,7 +175,14 @@
175 175
                 that.charge_admin = response.data.data.charge_admin;
176 176
 
177 177
 
178
-                console.log(that.info);
178
+                that.info['p_admin'] =  that.p_admin;
179
+                that.info['charge_admin'] =  that.charge_admin;
180
+
181
+                that.info['date'] =  response.data.data.date;
182
+                that.info['number'] =  response.data.data.number;
183
+                that.info['order_infos'] =  response.data.data.order_infos;
184
+                that.info['diagnosis'] =  response.data.data.diagnosis;
185
+
179 186
 
180 187
                 that.info['bed_cost_total'] = response.data.data.bedCostTotal;
181 188
                 that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;

+ 8 - 1
src/xt_pages/hospitalStation/newStatementPrintTwo.vue Прегледај датотеку

@@ -97,7 +97,14 @@
97 97
                 return false
98 98
               } else {
99 99
                 if (response.data.data.failed_code == -10) {
100
-                  that.$message.error(response.data.data.msg)
100
+                  // that.$message.error(response.data.data.msg)
101
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
102
+                    confirmButtonText: '确 定',
103
+                    type: 'warning'
104
+                  }).then(() => {
105
+
106
+                  }).catch(() => {
107
+                  })
101 108
 
102 109
                 } else {
103 110
 

+ 309 - 34
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Прегледај датотеку

@@ -426,8 +426,8 @@
426 426
         curMonthPrescriptions: null,
427 427
         month_total: 0,
428 428
         crumbs: [
429
-          { path: false, name: '门诊收费' },
430
-          { path: false, name: '门诊收费管理' }
429
+          { path: false, name: '住院工作站' },
430
+          { path: false, name: '住院收费管理' }
431 431
         ],
432 432
         current_index: 0,
433 433
         cal_one: '',
@@ -594,10 +594,17 @@
594 594
               } else {
595 595
                 if (response.data.data.failed_code == -10) {
596 596
 
597
-                  that.$message.error(response.data.data.msg)
597
+                  // that.$message.error(response.data.data.msg)
598
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
599
+                    confirmButtonText: '确 定',
600
+                    type: 'warning'
601
+                  }).then(() => {
602
+
603
+                  }).catch(() => {
604
+                  })
598 605
 
599 606
                 } else {
600
-                  that.changeRadio(2);
607
+                  that.changeRadioAndPatient(2);
601 608
                   that.radio = 2;
602 609
                   that.$refs.charge.hide();
603 610
                   that.state = '已收费';
@@ -630,10 +637,17 @@
630 637
               } else {
631 638
                 if (response.data.data.failed_code == -10) {
632 639
 
633
-                  that.$message.error(response.data.data.msg)
640
+                  // that.$message.error(response.data.data.msg)
641
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
642
+                    confirmButtonText: '确 定',
643
+                    type: 'warning'
644
+                  }).then(() => {
645
+
646
+                  }).catch(() => {
647
+                  })
634 648
 
635 649
                 } else {
636
-                  that.changeRadio(2);
650
+                  that.changeRadioAndPatient(2);
637 651
                   that.radio = 2;
638 652
                   that.$refs.charge.hide();
639 653
                   that.loadingtwo = false;
@@ -658,7 +672,7 @@
658 672
               return false
659 673
             } else {
660 674
               this.$refs.charge.hide();
661
-              this.changeRadio(2);
675
+              this.changeRadioAndPatient(2);
662 676
               this.radio = 2;
663 677
 
664 678
               this.loadingtwo = false;
@@ -697,7 +711,14 @@
697 711
                 return false
698 712
               } else {
699 713
                 if (response.data.data.failed_code == -10) {
700
-                  that.$message.error(response.data.data.msg);
714
+                  // that.$message.error(response.data.data.msg);
715
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
716
+                    confirmButtonText: '确 定',
717
+                    type: 'warning'
718
+                  }).then(() => {
719
+
720
+                  }).catch(() => {
721
+                  })
701 722
 
702 723
                 } else {
703 724
                   that.$refs.register9504.hide();
@@ -782,7 +803,14 @@
782 803
                 return false
783 804
               } else {
784 805
                 if (response.data.data.failed_code == -10) {
785
-                  that.$message.error(response.data.data.msg);
806
+                  // that.$message.error(response.data.data.msg);
807
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
808
+                    confirmButtonText: '确 定',
809
+                    type: 'warning'
810
+                  }).then(() => {
811
+
812
+                  }).catch(() => {
813
+                  })
786 814
 
787 815
                 } else {
788 816
                   that.$refs.register.hide();
@@ -855,7 +883,14 @@
855 883
                 return false
856 884
               } else {
857 885
                 if (response.data.data.failed_code == -10) {
858
-                  that.$message.error(response.data.data.msg);
886
+                  // that.$message.error(response.data.data.msg);
887
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
888
+                    confirmButtonText: '确 定',
889
+                    type: 'warning'
890
+                  }).then(() => {
891
+
892
+                  }).catch(() => {
893
+                  })
859 894
 
860 895
                 } else {
861 896
                   that.$refs.register.hide();
@@ -1417,10 +1452,17 @@
1417 1452
                   return false
1418 1453
                 } else {
1419 1454
                   if (response.data.data.failed_code == -10) {
1420
-                    that.$message.error(response.data.data.msg)
1455
+                    // that.$message.error(response.data.data.msg)
1456
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
1457
+                      confirmButtonText: '确 定',
1458
+                      type: 'warning'
1459
+                    }).then(() => {
1460
+
1461
+                    }).catch(() => {
1462
+                    })
1421 1463
                   } else {
1422 1464
                     that.$message.success("出院成功");
1423
-                    that.changeRadio(1);
1465
+                    that.changeRadioAndPatient(1);
1424 1466
                   }
1425 1467
 
1426 1468
                 }
@@ -1513,9 +1555,16 @@
1513 1555
                     return false
1514 1556
                   } else {
1515 1557
                     if (response.data.data.failed_code == -10) {
1516
-                      that.$message.error(response.data.data.msg)
1558
+                      // that.$message.error(response.data.data.msg)
1559
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
1560
+                        confirmButtonText: '确 定',
1561
+                        type: 'warning'
1562
+                      }).then(() => {
1563
+
1564
+                      }).catch(() => {
1565
+                      })
1517 1566
                     } else {
1518
-                      that.changeRadio(1);
1567
+                      that.changeRadioAndPatient(1);
1519 1568
                       that.$message({ message: '退费成功', type: 'success', duration: 5000 });
1520 1569
                       that.loadingtwo = false
1521 1570
                     }
@@ -1551,7 +1600,7 @@
1551 1600
                   return false
1552 1601
                 } else {
1553 1602
                   this.radio = 1;
1554
-                  this.changeRadio(1);
1603
+                  this.changeRadioAndPatient(1);
1555 1604
                   this.$message({ message: '退费成功', type: 'success' });
1556 1605
                   this.loadingtwo = false
1557 1606
 
@@ -1599,9 +1648,16 @@
1599 1648
                   return false
1600 1649
                 } else {
1601 1650
                   if (response.data.data.failed_code == -10) {
1602
-                    that.$message.error(response.data.data.msg)
1651
+                    // that.$message.error(response.data.data.msg)
1652
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
1653
+                      confirmButtonText: '确 定',
1654
+                      type: 'warning'
1655
+                    }).then(() => {
1656
+
1657
+                    }).catch(() => {
1658
+                    })
1603 1659
                   } else {
1604
-                    that.changeRadio(1);
1660
+                    that.changeRadioAndPatient(1);
1605 1661
 
1606 1662
                     that.$message({ message: '撤销出院成功', type: 'success', duration: 5000 })
1607 1663
                   }
@@ -1642,9 +1698,16 @@
1642 1698
                   return false
1643 1699
                 } else {
1644 1700
                   if (response.data.data.failed_code == -10) {
1645
-                    that.$message.error(response.data.data.msg)
1701
+                    // that.$message.error(response.data.data.msg)
1702
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
1703
+                      confirmButtonText: '确 定',
1704
+                      type: 'warning'
1705
+                    }).then(() => {
1706
+
1707
+                    }).catch(() => {
1708
+                    })
1646 1709
                   } else {
1647
-                    that.changeRadio(1);
1710
+                    that.changeRadioAndPatient(1);
1648 1711
 
1649 1712
                     that.$message({ message: '撤销入院成功', type: 'success', duration: 5000 })
1650 1713
                   }
@@ -1682,10 +1745,17 @@
1682 1745
                   return false
1683 1746
                 } else {
1684 1747
                   if (response.data.data.failed_code == -10) {
1685
-                    that.$message.error(response.data.data.msg)
1748
+                    // that.$message.error(response.data.data.msg)
1749
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
1750
+                      confirmButtonText: '确 定',
1751
+                      type: 'warning'
1752
+                    }).then(() => {
1753
+
1754
+                    }).catch(() => {
1755
+                    })
1686 1756
                   } else {
1687 1757
                     that.radio = 1;
1688
-                    that.changeRadio(1);
1758
+                    that.changeRadioAndPatient(1);
1689 1759
                     that.$message({ message: '退号成功', type: 'success', duration: 5000 })
1690 1760
                   }
1691 1761
 
@@ -1977,10 +2047,17 @@
1977 2047
                 return false
1978 2048
               } else {
1979 2049
                 if (response.data.data.failed_code == -10) {
1980
-                  that.$message.error(response.data.data.msg)
2050
+                  // that.$message.error(response.data.data.msg)
2051
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
2052
+                    confirmButtonText: '确 定',
2053
+                    type: 'warning'
2054
+                  }).then(() => {
2055
+
2056
+                  }).catch(() => {
2057
+                  })
1981 2058
                 } else {
1982 2059
                   that.$message.success("上传明细成功");
1983
-                  that.changeRadio(1);
2060
+                  that.changeRadioAndPatient(1);
1984 2061
                 }
1985 2062
 
1986 2063
               }
@@ -2009,11 +2086,18 @@
2009 2086
                   return false
2010 2087
                 } else {
2011 2088
                   if (response.data.data.failed_code == -10) {
2012
-                    that.$message.error(response.data.data.msg)
2089
+                    // that.$message.error(response.data.data.msg)
2090
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
2091
+                      confirmButtonText: '确 定',
2092
+                      type: 'warning'
2093
+                    }).then(() => {
2094
+
2095
+                    }).catch(() => {
2096
+                    })
2013 2097
                   } else {
2014 2098
                     that.$message.success("撤销明细成功");
2015 2099
 
2016
-                    that.changeRadio(1);
2100
+                    that.changeRadioAndPatient(1);
2017 2101
                   }
2018 2102
 
2019 2103
                 }
@@ -2030,7 +2114,162 @@
2030 2114
         console.log(id);
2031 2115
         this.radioStatus = id;
2032 2116
         this.getPatientList()
2117
+      },      changeRadioAndPatient(id) {
2118
+        // console.log(id)
2119
+        // this.radioStatus = id
2120
+        // this.getPatientList()
2121
+        let temp_id = id;
2122
+
2123
+        let params = {
2124
+          'record_date': this.record_date
2125
+        };
2126
+        GetHisHospitalChargePatientList(params).then(response => {
2127
+          if (response.data.state == 0) {
2128
+            this.$message.error(response.data.msg);
2129
+            return false
2130
+          } else {
2131
+            this.patientTableData = [];
2132
+            this.hisPatientDatas = [];
2133
+            this.all_table_data = [];
2134
+            let one_count = 0;
2135
+            let two_count = 0;
2136
+            let three_count = 0;
2137
+
2138
+            if (this.activeName == 'first') { //日结
2139
+
2140
+              for (let i = 0; i < response.data.data.list.length; i++) {
2141
+                this.all_table_data.push(response.data.data.list[i]);
2142
+                if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
2143
+                  one_count = one_count + 1
2144
+                }
2145
+
2146
+                if (response.data.data.list[i].his_patient.order.order_status == 2) {
2147
+                  two_count = two_count + 1
2148
+                }
2149
+
2150
+                // if (response.data.data.list[i].order.order_status == 3) {
2151
+                //   three_count = three_count + 1
2152
+                // }
2153
+              }
2154
+
2155
+            } else { //月结
2156
+
2157
+              for (let i = 0; i < response.data.data.list_two.length; i++) {
2158
+                this.hisPatientDatas.push(response.data.data.list_two[i]);
2159
+                if (response.data.data.list_two[i].his_patient.order.order_status == 0 || response.data.data.list_two[i].his_patient.order.order_status == 1) {
2160
+                  one_count = one_count + 1
2161
+                }
2162
+
2163
+                if (response.data.data.list_two[i].his_patient.order.order_status == 2) {
2164
+                  two_count = two_count + 1
2165
+                }
2166
+
2167
+                if (response.data.data.list_two[i].his_patient.order.order_status == 3) {
2168
+                  three_count = three_count + 1
2169
+                }
2170
+              }
2171
+
2172
+            }
2173
+
2174
+            this.cal_one = one_count;
2175
+            this.cal_two = two_count;
2176
+            this.cal_three = three_count;
2177
+
2178
+            switch (temp_id) {
2179
+
2180
+              case 1:
2181
+                this.patientTableData = [];
2182
+                if (this.activeName == 'first') {
2183
+
2184
+                  for (let i = 0; i < this.all_table_data.length; i++) {
2185
+                    if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
2186
+                      this.patientTableData.push(this.all_table_data[i])
2187
+                    }
2188
+
2189
+                  }
2190
+
2191
+                } else {
2192
+                  for (let i = 0; i < this.hisPatientDatas.length; i++) {
2193
+                    if (this.hisPatientDatas[i].his_patient.order.order_status == 0 || this.hisPatientDatas[i].his_patient.order.order_status == 1) {
2194
+                      this.patientTableData.push(this.hisPatientDatas[i])
2195
+                    }
2196
+
2197
+                  }
2198
+
2199
+                }
2200
+
2201
+                break;
2202
+              case 2:
2203
+                this.patientTableData = [];
2204
+                if (this.activeName == 'first') {
2205
+
2206
+                  for (let i = 0; i < this.all_table_data.length; i++) {
2207
+                    if (this.all_table_data[i].his_patient.order.order_status == 2) {
2208
+                      this.patientTableData.push(this.all_table_data[i])
2209
+                    }
2210
+
2211
+                  }
2212
+                } else {
2213
+                  for (let i = 0; i < this.hisPatientDatas.length; i++) {
2214
+                    if (this.hisPatientDatas[i].his_patient.order.order_status == 2) {
2215
+                      this.patientTableData.push(this.hisPatientDatas[i])
2216
+                    }
2217
+                  }
2218
+
2219
+                }
2220
+                break;
2221
+              case 3:
2222
+                this.patientTableData = [];
2223
+
2224
+                if (this.activeName == 'first') {
2225
+
2226
+                  for (let i = 0; i < this.all_table_data.length; i++) {
2227
+
2228
+                    if (this.all_table_data[i].his_patient.order.order_status == 3) {
2229
+                      this.patientTableData.push(this.all_table_data[i])
2230
+                    }
2231
+
2232
+                  }
2233
+                } else {
2234
+
2235
+                  for (let i = 0; i < this.hisPatientDatas.length; i++) {
2236
+
2237
+                    if (this.hisPatientDatas[i].his_patient.order.order_status == 3) {
2238
+                      this.patientTableData.push(this.hisPatientDatas[i])
2239
+                    }
2240
+
2241
+                  }
2242
+
2243
+                }
2244
+                break;
2245
+              case 4:
2246
+                this.patientTableData = [];
2247
+                if (this.activeName == 'first') {
2248
+
2249
+                  this.patientTableData = this.all_table_data
2250
+                } else {
2251
+
2252
+                  this.patientTableData = this.hisPatientDatas
2253
+                }
2254
+                break
2255
+
2256
+            }
2257
+
2258
+
2259
+            for(let i = 0; i < this.patientTableData.length; i++){
2260
+              if(this.patientInfo.id == this.patientTableData[i].id){
2261
+                this.current_index = i;
2262
+                this.$refs.tab.setCurrentRow(this.patientTableData[i]);
2263
+                this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].his_patient.order.number,this.patientTableData[i].his_patient.id)
2264
+
2265
+              }
2266
+            }
2267
+
2268
+          }
2269
+        })
2270
+
2033 2271
       },
2272
+
2034 2273
       changeRadio(id) {
2035 2274
         // console.log(id)
2036 2275
         // this.radioStatus = id
@@ -2179,7 +2418,8 @@
2179 2418
           }
2180 2419
         })
2181 2420
 
2182
-      }, formatDecimal(num, decimal) {
2421
+      },
2422
+      formatDecimal(num, decimal) {
2183 2423
         num = num.toString();
2184 2424
         let index = num.indexOf('.');
2185 2425
         if (index !== -1) {
@@ -2656,10 +2896,17 @@
2656 2896
                 } else {
2657 2897
 
2658 2898
                   if (response.data.data.failed_code == -10) {
2659
-                    that.$message.error(response.data.data.msg)
2899
+                    // that.$message.error(response.data.data.msg)
2900
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
2901
+                      confirmButtonText: '确 定',
2902
+                      type: 'warning'
2903
+                    }).then(() => {
2904
+
2905
+                    }).catch(() => {
2906
+                    })
2660 2907
 
2661 2908
                   } else {
2662
-                    that.changeRadio(1);
2909
+                    that.changeRadioAndPatient(1);
2663 2910
                     that.$message({ message: '预结算成功', type: 'success' })
2664 2911
                   }
2665 2912
 
@@ -2698,10 +2945,17 @@
2698 2945
                     return false
2699 2946
                   } else {
2700 2947
                     if (response.data.data.failed_code == -10) {
2701
-                      that.$message.error(response.data.data.msg)
2948
+                      // that.$message.error(response.data.data.msg)
2949
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
2950
+                        confirmButtonText: '确 定',
2951
+                        type: 'warning'
2952
+                      }).then(() => {
2953
+
2954
+                      }).catch(() => {
2955
+                      })
2702 2956
 
2703 2957
                     } else {
2704
-                      that.changeRadio(1);
2958
+                      that.changeRadioAndPatient(1);
2705 2959
                       that.$message({ message: '退费成功', type: 'success' })
2706 2960
                     }
2707 2961
                   }
@@ -2727,7 +2981,14 @@
2727 2981
                   return false
2728 2982
                 } else {
2729 2983
                   if (response.data.data.failed_code == -10) {
2730
-                    that.$message.error(response.data.data.msg)
2984
+                    // that.$message.error(response.data.data.msg)
2985
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
2986
+                      confirmButtonText: '确 定',
2987
+                      type: 'warning'
2988
+                    }).then(() => {
2989
+
2990
+                    }).catch(() => {
2991
+                    })
2731 2992
                   } else {
2732 2993
                     that.$message({ message: '查询成功', type: 'success' })
2733 2994
                   }
@@ -2754,7 +3015,14 @@
2754 3015
                 } else {
2755 3016
                   if (response.data.data.failed_code == -10) {
2756 3017
 
2757
-                    that.$message.error(response.data.data.msg)
3018
+                    // that.$message.error(response.data.data.msg)
3019
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
3020
+                      confirmButtonText: '确 定',
3021
+                      type: 'warning'
3022
+                    }).then(() => {
3023
+
3024
+                    }).catch(() => {
3025
+                    })
2758 3026
 
2759 3027
                   } else {
2760 3028
 
@@ -2801,10 +3069,17 @@
2801 3069
                     return false
2802 3070
                   } else {
2803 3071
                     if (response.data.data.failed_code == -10) {
2804
-                      that.$message.error(response.data.data.msg)
3072
+                      // that.$message.error(response.data.data.msg)
3073
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
3074
+                        confirmButtonText: '确 定',
3075
+                        type: 'warning'
3076
+                      }).then(() => {
3077
+
3078
+                      }).catch(() => {
3079
+                      })
2805 3080
 
2806 3081
                     } else {
2807
-                      that.changeRadio(1);
3082
+                      that.changeRadioAndPatient(1);
2808 3083
                       that.$message({ message: '退号成功', type: 'success' })
2809 3084
                     }
2810 3085
                   }

+ 188 - 0
src/xt_pages/hospitalStation/pastInquiries.vue Прегледај датотеку

@@ -0,0 +1,188 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <div class="cell clearfix">
8
+        <el-input size="small" style="width:150px;" v-model="keywords"
9
+                  class="filter-item"/>
10
+        <el-button size="small" style="margin:0 10px;" class="filter-item" type="primary" @click="searchAction">搜索
11
+        </el-button>
12
+        <el-date-picker v-model="record_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange"
13
+                        :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date"
14
+                        format="yyyy-MM-dd"
15
+                        value-format="yyyy-MM-dd"
16
+                        placeholder="选择日期时间" align="right"></el-date-picker>
17
+      </div>
18
+      <el-table :data="tableData" border ref="table" style="width: 100%;" :row-style="{ color: '#303133' }"
19
+                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
20
+        <el-table-column align="center" label="序号" width="60" type="index"></el-table-column>
21
+        <el-table-column align="center" prop="name" label="姓名" width="100">
22
+          <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template>
23
+        </el-table-column>
24
+        <el-table-column align="center" prop="name" label="处方日期" width="200">
25
+          <template slot-scope="scope"> {{scope.row.ctime?getTimes(scope.row.ctime):''}}</template>
26
+
27
+        </el-table-column>
28
+        <!--<el-table-column align="center" prop="name" label="患者类型">-->
29
+          <!--<template slot-scope="scope">{{}}</template>-->
30
+        <!--</el-table-column>-->
31
+        <el-table-column align="center" prop="name" label="处方号">
32
+          <template slot-scope="scope">{{scope.row.prescription_number?scope.row.prescription_number:''}}</template>
33
+        </el-table-column>
34
+        <el-table-column align="center" prop="name" label="开立医生">
35
+          <template slot-scope="scope">{{scope.row.doctor?scope.row.doctor:''}}</template>
36
+        </el-table-column>
37
+        <el-table-column align="center" prop="name" label="诊断">
38
+          <template slot-scope="scope">{{getDiagnosis(scope.row.diagnosis)}}</template>
39
+        </el-table-column>
40
+        <el-table-column align="center" prop="name" label="状态" width="100">
41
+          <template slot-scope="scope">
42
+            <div v-if="  scope.row.id > 0">已就诊</div>
43
+            <div v-else>未就诊</div>
44
+          </template>
45
+        </el-table-column>
46
+        <el-table-column align="center" prop="name" label="操作" width="100">
47
+          <template slot-scope="scope">
48
+            <el-button size="mini" type="primary" @click="handerShowDetail(scope.row)">详情</el-button>
49
+          </template>
50
+        </el-table-column>
51
+      </el-table>
52
+      <el-pagination
53
+        @size-change="handleSizeChange"
54
+        @current-change="handleCurrentChange"
55
+        :page-sizes="[10, 50, 100]"
56
+        :page-size="10"
57
+        background
58
+        style="margin-top:20px;float: right"
59
+        layout="total, sizes, prev, pager, next, jumper"
60
+        :total="total"
61
+
62
+      >
63
+      </el-pagination>
64
+      <inquiries-detail ref="inquiriesDetail"></inquiries-detail>
65
+    </div>
66
+  </div>
67
+</template>
68
+
69
+<script>
70
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
71
+  import inquiriesDetail from './components/inquiriesDetail'
72
+  import { getHisHospitalPrescriptionList } from '@/api/his/his'
73
+  import { uParseTime } from '@/utils/tools'
74
+  import { getInitData} from '@/api/his/his'
75
+  export default {
76
+    components: {
77
+      BreadCrumb,
78
+      inquiriesDetail
79
+    },
80
+    data() {
81
+      return {
82
+        keywords:"",
83
+        total:0,
84
+        record_date:"",
85
+        page:1,
86
+        limit:10,
87
+        crumbs: [
88
+          { path: false, name: '住院工作站' },
89
+          { path: false, name: '既往查询' }
90
+        ],
91
+        tableData: [],
92
+        diagnoses:[]
93
+      }
94
+    },
95
+    methods: {
96
+      searchAction(){
97
+        this.page = 1;
98
+        this.limit = 10;
99
+        this.getHisPrescriptionList()
100
+
101
+      },
102
+      handleScheduleDateChange(){
103
+        this.page = 1;
104
+        this.limit = 10;
105
+        this.getHisPrescriptionList()
106
+
107
+      },
108
+      handleCurrentChange(page) {
109
+        this.page = page;
110
+        this.getHisPrescriptionList()
111
+
112
+      },
113
+
114
+      handleSizeChange(limit) {
115
+        this.limit = limit;
116
+        this.getHisPrescriptionList()
117
+
118
+
119
+      },
120
+      getTimes(time) {
121
+        return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
122
+      },
123
+      handerShowDetail(row) {
124
+        if(row.id == 0){
125
+          this.$message.error("未就诊");
126
+          return
127
+        }
128
+        this.$refs.inquiriesDetail.show(row.id)
129
+      }, getHisPrescriptionList() {
130
+        let params = {
131
+          record_date:this.record_date,
132
+          page: this.page,
133
+          limit: this.limit,
134
+          keywords: this.keywords,
135
+        };
136
+        getHisHospitalPrescriptionList(params).then(response => {
137
+          if (response.data.state == 0) {
138
+            this.$message.error(response.data.msg);
139
+            return false
140
+          } else {
141
+            this.tableData = response.data.data.order;
142
+            this.total = response.data.data.total;
143
+            this.$nextTick(() => {
144
+              this.$refs.table.doLayout(); //解决表格错位
145
+            });
146
+          }
147
+        })
148
+
149
+      },
150
+       getInitData() {
151
+        getInitData().then(response => {
152
+          if (response.data.state == 0) {
153
+            this.$message.error(response.data.msg);
154
+            return false
155
+          } else {
156
+            this.diagnoses = response.data.data.diagnose;
157
+            console.log("诊断列表",this.diagnoses)
158
+          }
159
+        })
160
+      },
161
+      getDiagnosis(id){
162
+        var name = "";
163
+        for(let i=0;i<this.diagnoses.length;i++){
164
+           if(id == this.diagnoses[i].id){
165
+              name = this.diagnoses[i].class_name
166
+           }
167
+        }
168
+        return name
169
+      }
170
+    }, created() {
171
+      var nowDate = new Date();
172
+      var nowYear = nowDate.getFullYear();
173
+      var nowMonth = nowDate.getMonth() + 1;
174
+      var nowDay = nowDate.getDate();
175
+      this.record_date =
176
+        nowYear +
177
+        '-' +
178
+        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
179
+        '-' +
180
+        (nowDay < 10 ? '0' + nowDay : nowDay);
181
+
182
+
183
+      this.getHisPrescriptionList();
184
+      this.getInitData()
185
+
186
+    }
187
+  }
188
+</script>

+ 15 - 0
src/xt_pages/hospitalStation/statementPrint.vue Прегледај датотеку

@@ -176,6 +176,21 @@ export default {
176 176
               that.info = response.data.data.info;
177 177
               console.log(that.info);
178 178
 
179
+              that.p_admin = response.data.data.printor_admin;
180
+              that.charge_admin = response.data.data.charge_admin;
181
+              that.order_infos = response.data.data;
182
+
183
+
184
+
185
+              that.info['p_admin'] =  that.p_admin;
186
+              that.info['charge_admin'] =  that.charge_admin;
187
+
188
+              that.info['date'] =  response.data.data.date;
189
+              that.info['number'] =  response.data.data.number;
190
+              that.info['order_infos'] =  response.data.data.order_infos;
191
+              that.info['diagnosis'] =  response.data.data.diagnosis;
192
+
193
+
179 194
               that.info['bed_cost_total'] = response.data.data.bedCostTotal;
180 195
               that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
181 196
               that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;

+ 21 - 7
src/xt_pages/hospitalStation/statementTemplate/printOne.vue Прегледај датотеку

@@ -83,17 +83,18 @@
83 83
       </tr>
84 84
       <tr>
85 85
         <td>住院号</td>
86
-        <td></td>
86
+        <td>{{info.number}}</td>
87 87
         <td>科别</td>
88 88
         <td width="100"></td>
89 89
         <td>床号</td>
90 90
         <td></td>
91 91
         <td>入院日期</td>
92
-        <td></td>
92
+        <td>{{info.begndate}}</td>
93 93
         <td>出院日期</td>
94
-        <td width="100"></td>
94
+        <td width="100">{{info.enddate}}</td>
95 95
         <td>住院天数</td>
96
-        <td></td>
96
+        <td>{{getDay(info.begndate,info.enddate)}}</td>
97
+
97 98
       </tr>
98 99
       <tr>
99 100
         <td>险种</td>
@@ -278,11 +279,11 @@
278 279
       </tr>
279 280
       <tr>
280 281
         <td>收款人:</td>
281
-        <td colspan="2">{{charge_admin.user_name}}</td>
282
+        <td colspan="2">{{info.charge_admin.user_name}}</td>
282 283
         <td>审核人:</td>
283
-        <td colspan="2"></td>
284
+        <td colspan="2">{{info.p_admin.user_name}}</td>
284 285
         <td>制单人:</td>
285
-        <td colspan="2">{{p_admin.user_name}}</td>
286
+        <td colspan="2">{{info.p_admin.user_name}}</td>
286 287
         <td>打印日期</td>
287 288
         <td colspan="2">{{getNowTime()}}</td>
288 289
       </tr>
@@ -321,6 +322,19 @@
321 322
         }
322 323
       }
323 324
     },methods:{
325
+      getDay(dateString1,dateString2){
326
+          var  startDate = Date.parse(dateString1);
327
+          var  endDate = Date.parse(dateString2);
328
+          if (startDate>endDate){
329
+            return 0;
330
+          }
331
+          if (startDate==endDate){
332
+            return 1;
333
+          }
334
+          var days=(endDate - startDate)/(1*24*60*60*1000);
335
+          return  days;
336
+
337
+        },
324 338
       getNowTime: function () {
325 339
         let dateTime;
326 340
         let yy = new Date().getFullYear();

+ 24 - 11
src/xt_pages/hospitalStation/summary.vue Прегледај датотеку

@@ -66,7 +66,7 @@
66 66
         >
67 67
         </el-table-column>
68 68
         <el-table-column align="center" prop="name" label="就诊号">
69
-          <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
69
+          <template slot-scope="scope">{{ scope.row.mdtrt_id }}</template>
70 70
         </el-table-column>
71 71
         <el-table-column align="center" prop="name" label="患者名字">
72 72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>
@@ -104,7 +104,7 @@
104 104
               结算单
105 105
             </el-button>
106 106
             <el-button size="mini" type="primary" @click="toRefund(scope.row)"
107
-                       v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106  || $store.getters.xt_user.org_id== 9990)">
107
+                       v-if="(scope.row.order_status == 2 || $store.getters.xt_user.org_id== 9990)">
108 108
               退费
109 109
             </el-button>
110 110
             <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
@@ -250,7 +250,14 @@
250 250
             } else {
251 251
 
252 252
               if (response.data.data.failed_code == -10) {
253
-                that.$message.error(response.data.data.msg)
253
+                // that.$message.error(response.data.data.msg)
254
+                that.$confirm(response.data.data.msg, '医保错误信息', {
255
+                  confirmButtonText: '确 定',
256
+                  type: 'warning'
257
+                }).then(() => {
258
+
259
+                }).catch(() => {
260
+                })
254 261
 
255 262
               } else {
256 263
                 that.$message.success("上传成功");
@@ -287,11 +294,9 @@
287 294
           }).then(() => {
288 295
             let params = {
289 296
               'order_id': row.id,
290
-              'patient_id': row.patient_id,
291
-              'record_time': that.getTimes(row.settle_accounts_date),
292
-              'admin_user_id': that.$store.getters.xt_user.user.id,
297
+              'admin_user_id': this.$store.getters.xt_user.user.id,
293 298
             };
294
-            axios.get('http://127.0.0.1:9532/api/refund/post', {
299
+            axios.get('http://127.0.0.1:9532/zh/api/refund', {
295 300
               params: params
296 301
             })
297 302
               .then(function (response) {
@@ -300,7 +305,14 @@
300 305
                   return false
301 306
                 } else {
302 307
                   if (response.data.data.failed_code == -10) {
303
-                    that.$message.error(response.data.data.msg)
308
+                    // that.$message.error(response.data.data.msg)
309
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
310
+                      confirmButtonText: '确 定',
311
+                      type: 'warning'
312
+                    }).then(() => {
313
+
314
+                    }).catch(() => {
315
+                    })
304 316
                   } else {
305 317
                     that.$message({message: '退费成功', type: 'success', duration: 5000});
306 318
                     that.getHisOrderList()
@@ -363,7 +375,8 @@
363 375
       export_detail() {
364 376
         let params = {
365 377
           start_time: this.start_time,
366
-          end_time: this.end_time
378
+          end_time: this.end_time,
379
+          p_type: 1,
367 380
         };
368 381
         getExportConsumeDetailList(params).then(response => {
369 382
           if (response.data.state == 0) {
@@ -520,7 +533,8 @@
520 533
           keywords: this.keywords,
521 534
           start_time: this.start_time,
522 535
           end_time: this.end_time,
523
-          type: this.admin_user_id
536
+          type: this.admin_user_id,
537
+          p_type: 1,
524 538
         };
525 539
         getHisOrderList(params).then(response => {
526 540
           if (response.data.state == 0) {
@@ -550,7 +564,6 @@
550 564
         }
551 565
       },
552 566
       invoicePrint(obj){
553
-        console.log(obj);
554 567
         let paramsObj = {
555 568
           order_id: obj.id,
556 569
           patient_id: obj.patient_id,

+ 7 - 1
src/xt_pages/hospitalStation/treatTemplate/printOne.vue Прегледај датотеку

@@ -364,7 +364,13 @@
364 364
               return false
365 365
             } else {
366 366
               if (response.data.data.failed_code == -10) {
367
-                that.$message.error(response.data.data.msg)
367
+                that.$confirm(response.data.data.msg, '医保错误信息', {
368
+                  confirmButtonText: '确 定',
369
+                  type: 'warning'
370
+                }).then(() => {
371
+
372
+                }).catch(() => {
373
+                })
368 374
               } else {
369 375
                 that.result = response.data.data.result;
370 376
 

+ 93 - 83
src/xt_pages/outpatientCharges/listPrint.vue Прегледај датотеку

@@ -51,12 +51,12 @@
51 51
       }
52 52
     },
53 53
     created() {
54
-      this.getInfo(this.paramsObj.id)
55
-      this.org_id = this.$store.getters.xt_user.org_id
54
+      this.getInfo(this.paramsObj.id);
55
+      this.org_id = this.$store.getters.xt_user.org_id;
56 56
       if(this.org_id == 10106){
57 57
         this.getInfo10106(this.paramsObj.id)
58 58
       }
59
-      
59
+
60 60
     },
61 61
 
62 62
     methods: {
@@ -66,41 +66,41 @@
66 66
       getInfo(order_id) {
67 67
         let params = {
68 68
           id: order_id
69
-        }
69
+        };
70 70
         getHisOrderDetail(params).then(response => {
71 71
           if (response.data.state == 0) {
72
-            this.$message.error(response.data.msg)
72
+            this.$message.error(response.data.msg);
73 73
             return false
74 74
           } else {
75
-            this.order = response.data.data.order
76
-            this.patient = response.data.data.patient
77
-            console.log(this.patient)
78
-            this.admin = response.data.data.admin_info
75
+            this.order = response.data.data.order;
76
+            this.patient = response.data.data.patient;
77
+            console.log(this.patient);
78
+            this.admin = response.data.data.admin_info;
79 79
 
80 80
 
81 81
             for (let i = 0; i < response.data.data.order_info.length; i++) {
82
-              var infos = response.data.data.order_info[i]
82
+              var infos = response.data.data.order_info[i];
83 83
               let obj = {
84 84
                 med_chrgitm_type: this.getType(infos.med_chrgitm_type),
85 85
                 price: infos.pric,
86 86
                 count: infos.cnt
87
-              }
87
+              };
88 88
               if (infos.advice && infos.advice.id == 0 && infos.project && infos.project.id > 0) {
89
-                obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
90
-                obj['name'] = infos.project.project.project_name
91
-                obj['spec'] = 1
89
+                obj['p_time'] = this.getTimes(infos.project.prescription.ctime);
90
+                obj['name'] = infos.project.project.project_name;
91
+                obj['spec'] = 1;
92 92
                 obj['unit'] = infos.project.project.unit
93 93
 
94 94
               }
95 95
 
96 96
               if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
97
-                obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
98
-                obj['name'] = infos.advice.advice_name
99
-                obj['spec'] = infos.advice.drug.drug_spec
97
+                obj['p_time'] = this.getTimes(infos.advice.prescription.ctime);
98
+                obj['name'] = infos.advice.advice_name;
99
+                obj['spec'] = infos.advice.drug.drug_spec;
100 100
                 obj['unit'] = infos.advice.drug.max_unit
101 101
 
102 102
               }
103
-              this.list.push(obj)
103
+              this.list.push(obj);
104 104
               this.list.sort(function(a, b) {
105 105
                 return b.p_time < a.p_time ? 1 : -1
106 106
               })
@@ -112,57 +112,57 @@
112 112
       getType(med_chrgitm_type) {
113 113
         switch (med_chrgitm_type) {
114 114
           case '01':
115
-            return '床位费'
116
-            break
115
+            return '床位费';
116
+            break;
117 117
           case '02':
118
-            return '诊察费'
118
+            return '诊察费';
119 119
 
120
-            break
120
+            break;
121 121
           case '03':
122
-            return '检查费'
122
+            return '检查费';
123 123
 
124
-            break
124
+            break;
125 125
           case '04':
126
-            return '化验费'
127
-            break
126
+            return '化验费';
127
+            break;
128 128
           case '05':
129
-            return '治疗费'
129
+            return '治疗费';
130 130
 
131
-            break
131
+            break;
132 132
           case '06':
133
-            return '手术费'
133
+            return '手术费';
134 134
 
135
-            break
135
+            break;
136 136
           case '07':
137
-            return '护理费'
137
+            return '护理费';
138 138
 
139
-            break
139
+            break;
140 140
           case '08':
141
-            return '材料费'
141
+            return '材料费';
142 142
 
143
-            break
143
+            break;
144 144
           case '09':
145
-            return '西药费'
145
+            return '西药费';
146 146
 
147
-            break
147
+            break;
148 148
           case '10':
149
-            return '中药饮片费'
149
+            return '中药饮片费';
150 150
 
151
-            break
151
+            break;
152 152
           case '11':
153
-            return '中成药费'
153
+            return '中成药费';
154 154
 
155
-            break
155
+            break;
156 156
           case '12':
157
-            return '一般诊疗费'
157
+            return '一般诊疗费';
158 158
 
159
-            break
159
+            break;
160 160
           case '13':
161
-            return '挂号费'
161
+            return '挂号费';
162 162
 
163
-            break
163
+            break;
164 164
           case '14':
165
-            return '其他费'
165
+            return '其他费';
166 166
 
167 167
             break
168 168
 
@@ -172,7 +172,7 @@
172 172
       printThisPage() {
173 173
         if(this.org_id != 10106){
174 174
           const style =
175
-          '@media print {.listTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
175
+          '@media print {.listTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}';
176 176
           printJS({
177 177
             printable: 'list-print',
178 178
             type: 'html',
@@ -189,7 +189,7 @@
189 189
             scanStyles: false
190 190
           });
191 191
         }
192
-        
192
+
193 193
 
194 194
         // if (this.org_template_info.template_id == 1) {
195 195
         //   printJS({
@@ -203,7 +203,7 @@
203 203
       getInfo10106(order_id) {
204 204
         if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
205 205
 
206
-          var that = this
206
+          var that = this;
207 207
 
208 208
           axios.get('http://127.0.0.1:9532/api/settle/query', {
209 209
             params: {
@@ -213,57 +213,67 @@
213 213
           })
214 214
             .then(function (response) {
215 215
               if (response.data.state == 0) {
216
-                this.$message.error(response.data.msg)
216
+                this.$message.error(response.data.msg);
217 217
                 return false
218 218
               } else {
219
-                console.log("logloglog")
219
+                console.log("logloglog");
220
+
221
+                console.log(response.data.data.info);
222
+                that.info = response.data.data.info;
223
+                that.p_admin = response.data.data.printor_admin;
224
+                that.charge_admin = response.data.data.charge_admin;
225
+                that.order_infos = response.data.data;
226
+
227
+
228
+
229
+                that.info['p_admin'] =  that.p_admin;
230
+                that.info['charge_admin'] =  that.charge_admin;
220 231
 
221
-                console.log(response.data.data.info)
222
-                that.info = response.data.data.info
223
-                that.p_admin = response.data.data.printor_admin
224
-                that.charge_admin = response.data.data.charge_admin
225
-                that.order_infos = response.data.data
232
+                that.info['date'] =  response.data.data.date;
233
+                that.info['number'] =  response.data.data.number;
234
+                that.info['order_infos'] =  response.data.data.order_infos;
235
+                that.info['diagnosis'] =  response.data.data.diagnosis;
226 236
 
227 237
 
228
-                console.log(that.info)
238
+                console.log(that.info);
229 239
 
230
-                that.info['bed_cost_total'] = response.data.data.bedCostTotal
231
-                that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
232
-                that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
240
+                that.info['bed_cost_total'] = response.data.data.bedCostTotal;
241
+                that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
242
+                that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
233 243
 
234
-                that.info['operation_cost_total'] = response.data.data.operationCostTotal
235
-                that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
236
-                that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
244
+                that.info['operation_cost_total'] = response.data.data.operationCostTotal;
245
+                that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal;
246
+                that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal;
237 247
 
238
-                that.info['other_cost_total'] = response.data.data.otherCostTotal
239
-                that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
240
-                that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
248
+                that.info['other_cost_total'] = response.data.data.otherCostTotal;
249
+                that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal;
250
+                that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal;
241 251
 
242
-                that.info['material_cost_total'] = response.data.data.materialCostTotal
243
-                that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
244
-                that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
252
+                that.info['material_cost_total'] = response.data.data.materialCostTotal;
253
+                that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal;
254
+                that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal;
245 255
 
246
-                that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
247
-                that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
248
-                that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
256
+                that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal;
257
+                that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal;
258
+                that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal;
249 259
 
250
-                that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
251
-                that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
252
-                that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
260
+                that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal;
261
+                that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal;
262
+                that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
253 263
 
254 264
 
255
-                that.info['check_cost_total'] = response.data.data.checkCostTotal
256
-                that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
257
-                that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
265
+                that.info['check_cost_total'] = response.data.data.checkCostTotal;
266
+                that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal;
267
+                that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal;
258 268
 
259 269
 
260
-                that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
261
-                that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
262
-                that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
270
+                that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal;
271
+                that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal;
272
+                that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal;
263 273
 
264
-                that.info['treat_cost_total'] = response.data.data.treatCostTotal
265
-                that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
266
-                that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
274
+                that.info['treat_cost_total'] = response.data.data.treatCostTotal;
275
+                that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
276
+                that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
267 277
                 console.log(this.info)
268 278
               }
269 279
             })

+ 61 - 51
src/xt_pages/outpatientCharges/newStatementPrint.vue Прегледај датотеку

@@ -90,7 +90,7 @@
90 90
             scanStyles: false
91 91
           });
92 92
         }
93
-        
93
+
94 94
 
95 95
         // if (this.org_template_info.template_id == 1) {
96 96
         //   printJS({
@@ -104,7 +104,7 @@
104 104
       getAllDoctorList(){
105 105
         getAllDoctorList().then(response=>{
106 106
           if(response.data.state == 1){
107
-            var doctor =  response.data.data.doctor
107
+            var doctor =  response.data.data.doctor;
108 108
 
109 109
             this.doctorList = doctor
110 110
           }
@@ -113,15 +113,15 @@
113 113
       getAllHisPatientList(){
114 114
         const params = {
115 115
           record_date:this.record_date
116
-        }
116
+        };
117 117
         getAllHisPatientList(params).then(response=>{
118 118
           if(response.data.state == 1){
119
-            this.patientTableData = response.data.data.list
120
-            this.patientTableDataTwo = response.data.data.list
119
+            this.patientTableData = response.data.data.list;
120
+            this.patientTableDataTwo = response.data.data.list;
121 121
 
122
-            console.log('222', this.patientTableData)
123
-            let cal_one = 0
124
-            let cal_two = 0
122
+            console.log('222', this.patientTableData);
123
+            let cal_one = 0;
124
+            let cal_two = 0;
125 125
             for (let i = 0; i < response.data.data.list.length; i++) {
126 126
               if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
127 127
                 cal_one = cal_one + 1
@@ -133,16 +133,16 @@
133 133
             // this.$refs.tab.setCurrentRow(this.patientTableData[0])
134 134
             // console.log(this.patientTableData[0])
135 135
             // this.choosePatient(this.patientTableData[0])
136
-            this.cal_one = cal_one
136
+            this.cal_one = cal_one;
137 137
             this.cal_two = cal_two
138 138
           }
139 139
         })
140 140
       },
141 141
 
142 142
       changePatient(row){
143
-        console.log("row",row)
144
-        this.patient_id = row.patient_id
145
-        this.record_date = this.record_date
143
+        console.log("row",row);
144
+        this.patient_id = row.patient_id;
145
+        this.record_date = this.record_date;
146 146
         this.prescription_id = this.prescription_id
147 147
         //   var params = {
148 148
         //     patient_id:row.patient_id,
@@ -171,7 +171,7 @@
171 171
       getInfo(order_id) {
172 172
         if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
173 173
 
174
-          var that = this
174
+          var that = this;
175 175
 
176 176
           axios.get('http://127.0.0.1:9532/api/settle/query', {
177 177
             params: {
@@ -181,57 +181,67 @@
181 181
           })
182 182
             .then(function (response) {
183 183
               if (response.data.state == 0) {
184
-                this.$message.error(response.data.msg)
184
+                this.$message.error(response.data.msg);
185 185
                 return false
186 186
               } else {
187
-                console.log("logloglog")
187
+                console.log("logloglog");
188
+
189
+                console.log(response.data.data.info);
190
+                that.info = response.data.data.info;
191
+                that.p_admin = response.data.data.printor_admin;
192
+                that.charge_admin = response.data.data.charge_admin;
193
+                that.order_infos = response.data.data;
194
+
188 195
 
189
-                console.log(response.data.data.info)
190
-                that.info = response.data.data.info
191
-                that.p_admin = response.data.data.printor_admin
192
-                that.charge_admin = response.data.data.charge_admin
193
-                that.order_infos = response.data.data
194 196
 
197
+                that.info['p_admin'] =  that.p_admin;
198
+                that.info['charge_admin'] =  that.charge_admin;
195 199
 
196
-                console.log(that.info)
200
+                that.info['date'] =  response.data.data.date;
201
+                that.info['number'] =  response.data.data.number;
202
+                that.info['order_infos'] =  response.data.data.order_infos;
203
+                that.info['diagnosis'] =  response.data.data.diagnosis;
197 204
 
198
-                that.info['bed_cost_total'] = response.data.data.bedCostTotal
199
-                that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
200
-                that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
201 205
 
202
-                that.info['operation_cost_total'] = response.data.data.operationCostTotal
203
-                that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
204
-                that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
206
+                console.log(that.info);
205 207
 
206
-                that.info['other_cost_total'] = response.data.data.otherCostTotal
207
-                that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
208
-                that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
208
+                that.info['bed_cost_total'] = response.data.data.bedCostTotal;
209
+                that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
210
+                that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
209 211
 
210
-                that.info['material_cost_total'] = response.data.data.materialCostTotal
211
-                that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
212
-                that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
212
+                that.info['operation_cost_total'] = response.data.data.operationCostTotal;
213
+                that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal;
214
+                that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal;
213 215
 
214
-                that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
215
-                that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
216
-                that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
216
+                that.info['other_cost_total'] = response.data.data.otherCostTotal;
217
+                that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal;
218
+                that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal;
217 219
 
218
-                that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
219
-                that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
220
-                that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
220
+                that.info['material_cost_total'] = response.data.data.materialCostTotal;
221
+                that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal;
222
+                that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal;
221 223
 
224
+                that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal;
225
+                that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal;
226
+                that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal;
222 227
 
223
-                that.info['check_cost_total'] = response.data.data.checkCostTotal
224
-                that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
225
-                that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
228
+                that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal;
229
+                that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal;
230
+                that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
226 231
 
227 232
 
228
-                that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
229
-                that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
230
-                that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
233
+                that.info['check_cost_total'] = response.data.data.checkCostTotal;
234
+                that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal;
235
+                that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal;
231 236
 
232
-                that.info['treat_cost_total'] = response.data.data.treatCostTotal
233
-                that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
234
-                that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
237
+
238
+                that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal;
239
+                that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal;
240
+                that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal;
241
+
242
+                that.info['treat_cost_total'] = response.data.data.treatCostTotal;
243
+                that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
244
+                that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
235 245
                 console.log(this.info)
236 246
               }
237 247
             })
@@ -244,14 +254,14 @@
244 254
     },
245 255
 
246 256
     created() {
247
-      this.org_id = this.$store.getters.xt_user.org_id
257
+      this.org_id = this.$store.getters.xt_user.org_id;
248 258
       this.getInfo(this.paramsObj.order_id)
249
-      
259
+
250 260
     },
251 261
     watch:{
252 262
       paramsObj:{//深度监听,可监听到对象、数组的变化
253 263
         handler(val, oldVal){
254
-          this.paramsObj = val
264
+          this.paramsObj = val;
255 265
           this.getInfo(this.paramsObj.order_id)
256 266
 
257 267
         },

+ 41 - 34
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Прегледај датотеку

@@ -87,66 +87,73 @@
87 87
       },
88 88
       getInfo(obj) {
89 89
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
90
-          var that = this
90
+          var that = this;
91 91
           axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
92 92
             params: obj
93 93
           })
94 94
             .then(function (response) {
95 95
               if (response.data.state == 0) {
96
-                this.$message.error(response.data.msg)
96
+                this.$message.error(response.data.msg);
97 97
                 return false
98 98
               } else {
99 99
                 if (response.data.data.failed_code == -10) {
100
-                  that.$message.error(response.data.data.msg)
100
+                  // that.$message.error(response.data.data.msg)
101
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
102
+                    confirmButtonText: '确 定',
103
+                    type: 'warning'
104
+                  }).then(() => {
105
+
106
+                  }).catch(() => {
107
+                  })
101 108
 
102 109
                 } else {
103 110
 
104
-                  console.log("~~~~")
105
-                  that.info = response.data.data.result
106
-                  console.log(that.info)
111
+                  console.log("~~~~");
112
+                  that.info = response.data.data.result;
113
+                  console.log(that.info);
107 114
 
108
-                  that.info['org_code'] = response.data.data.org_code
109
-                  that.info['patient_name'] = response.data.data.patient_name
110
-                  that.info['doctor_code'] = response.data.data.doctor_code
111
-                  that.info['doctor_name'] = response.data.data.doctor_name
115
+                  that.info['org_code'] = response.data.data.org_code;
116
+                  that.info['patient_name'] = response.data.data.patient_name;
117
+                  that.info['doctor_code'] = response.data.data.doctor_code;
118
+                  that.info['doctor_name'] = response.data.data.doctor_name;
112 119
                   if(response.data.data.health_card_no_two.length == 0){
113 120
                     that.info['health_card_no'] = response.data.data.health_card_no
114 121
                   }else{
115 122
                     that.info['health_card_no'] = response.data.data.health_card_no_two
116 123
                   }
117 124
 
118
-                  that.info['order_number'] = response.data.data.order_number
125
+                  that.info['order_number'] = response.data.data.order_number;
119 126
 
120
-                  that.info['department'] =  response.data.data.department
121
-                  that.info['yiliao_leibie'] =  response.data.data.yiliao_leibie
127
+                  that.info['department'] =  response.data.data.department;
128
+                  that.info['yiliao_leibie'] =  response.data.data.yiliao_leibie;
122 129
 
123
-                  that.info['before_money'] =  response.data.data.before_money
124
-                  that.info['after_money'] =   response.data.data.after_money
130
+                  that.info['before_money'] =  response.data.data.before_money;
131
+                  that.info['after_money'] =   response.data.data.after_money;
125 132
 
126
-                  that.info['org_name'] = that.$store.getters.xt_user.org.org_name
127
-                  console.log("~~~~" + that.info)
133
+                  that.info['org_name'] = that.$store.getters.xt_user.org.org_name;
134
+                  console.log("~~~~" + that.info);
128 135
 
129
-                  var name_arr = []
130
-                  var spec_arr = []
131
-                  var count_arr = []
132
-                  var price_arr = []
133
-                  var total_arr = []
136
+                  var name_arr = [];
137
+                  var spec_arr = [];
138
+                  var count_arr = [];
139
+                  var price_arr = [];
140
+                  var total_arr = [];
134 141
                   for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
135
-                    name_arr.push(that.info.transBody.outputlist1[i].ake006)
136
-                    spec_arr.push(that.info.transBody.outputlist1[i].aka074)
137
-                    count_arr.push(that.info.transBody.outputlist1[i].akc226)
138
-                    price_arr.push(that.info.transBody.outputlist1[i].akc225)
142
+                    name_arr.push(that.info.transBody.outputlist1[i].ake006);
143
+                    spec_arr.push(that.info.transBody.outputlist1[i].aka074);
144
+                    count_arr.push(that.info.transBody.outputlist1[i].akc226);
145
+                    price_arr.push(that.info.transBody.outputlist1[i].akc225);
139 146
                     total_arr.push(that.info.transBody.outputlist1[i].akc264)
140 147
                   }
141 148
 
142
-                  console.log("~~~" + that.info)
149
+                  console.log("~~~" + that.info);
143 150
 
144
-                  that.info['name_arr'] = name_arr
145
-                  that.info['spec_arr'] = spec_arr
146
-                  that.info['count_arr'] = count_arr
147
-                  that.info['price_arr'] = price_arr
148
-                  that.info['total_arr'] = total_arr
149
-                  that.info['record_date'] = obj.record_time
151
+                  that.info['name_arr'] = name_arr;
152
+                  that.info['spec_arr'] = spec_arr;
153
+                  that.info['count_arr'] = count_arr;
154
+                  that.info['price_arr'] = price_arr;
155
+                  that.info['total_arr'] = total_arr;
156
+                  that.info['record_date'] = obj.record_time;
150 157
 
151 158
                   console.log("~~" + that.info)
152 159
 
@@ -167,7 +174,7 @@
167 174
     watch:{
168 175
       paramsObj:{//深度监听,可监听到对象、数组的变化
169 176
         handler(val, oldVal){
170
-          this.paramsObj = val
177
+          this.paramsObj = val;
171 178
           this.getInfo(this.paramsObj)
172 179
 
173 180
         },

+ 268 - 26
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Прегледај датотеку

@@ -628,10 +628,17 @@
628 628
               } else {
629 629
                 if (response.data.data.failed_code == -10) {
630 630
 
631
-                  that.$message.error(response.data.data.msg)
631
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
632
+                    confirmButtonText: '确 定',
633
+                    type: 'warning'
634
+                  }).then(() => {
635
+
636
+                  }).catch(() => {
637
+                  })
638
+
632 639
 
633 640
                 } else {
634
-                  that.changeRadio(2);
641
+                  that.changeRadioAndPatient(2);
635 642
                   that.radio = 2;
636 643
                   that.$refs.charge.hide();
637 644
                   that.state = '已收费';
@@ -663,13 +670,18 @@
663 670
                 return false
664 671
               } else {
665 672
                 if (response.data.data.failed_code == -10) {
673
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
674
+                    confirmButtonText: '确 定',
675
+                    type: 'warning'
676
+                  }).then(() => {
677
+
678
+                  }).catch(() => {
679
+                  })
666 680
 
667
-                  that.$message.error(response.data.data.msg)
668 681
 
669 682
                 } else {
670
-                  that.changeRadio(2);
683
+                  that.changeRadioAndPatient(2);
671 684
                   that.radio = 2;
672
-
673 685
                   that.$refs.charge.hide();
674 686
                   that.loadingtwo = false;
675 687
                   that.state = '已收费';
@@ -678,6 +690,8 @@
678 690
                   that.cal_one = this.cal_one - 1;
679 691
                   that.cal_two = this.cal_two + 1;
680 692
                   that.patientTableData.splice(this.current_index, 1)
693
+
694
+
681 695
                 }
682 696
               }
683 697
             })
@@ -693,7 +707,7 @@
693 707
               return false
694 708
             } else {
695 709
               this.$refs.charge.hide();
696
-              this.changeRadio(2);
710
+              this.changeRadioAndPatient(2);
697 711
               this.radio = 2;
698 712
 
699 713
               this.loadingtwo = false;
@@ -732,7 +746,14 @@
732 746
                 return false
733 747
               } else {
734 748
                 if (response.data.data.failed_code == -10) {
735
-                  that.$message.error(response.data.data.msg);
749
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
750
+                    confirmButtonText: '确 定',
751
+                    type: 'warning'
752
+                  }).then(() => {
753
+
754
+                  }).catch(() => {
755
+                  })
756
+
736 757
 
737 758
                 } else {
738 759
                   that.$refs.register9504.hide();
@@ -817,7 +838,14 @@
817 838
                 return false
818 839
               } else {
819 840
                 if (response.data.data.failed_code == -10) {
820
-                  that.$message.error(response.data.data.msg);
841
+                  // that.$message.error(response.data.data.msg);
842
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
843
+                    confirmButtonText: '确 定',
844
+                    type: 'warning'
845
+                  }).then(() => {
846
+
847
+                  }).catch(() => {
848
+                  })
821 849
 
822 850
                 } else {
823 851
                   that.$refs.register.hide();
@@ -890,7 +918,14 @@
890 918
                 return false
891 919
               } else {
892 920
                 if (response.data.data.failed_code == -10) {
893
-                  that.$message.error(response.data.data.msg);
921
+                  // that.$message.error(response.data.data.msg);
922
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
923
+                    confirmButtonText: '确 定',
924
+                    type: 'warning'
925
+                  }).then(() => {
926
+
927
+                  }).catch(() => {
928
+                  })
894 929
 
895 930
                 } else {
896 931
                   that.$refs.register.hide();
@@ -1527,9 +1562,17 @@
1527 1562
                     return false
1528 1563
                   } else {
1529 1564
                     if (response.data.data.failed_code == -10) {
1530
-                      that.$message.error(response.data.data.msg)
1565
+                      // that.$message.error(response.data.data.msg)
1566
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
1567
+                        confirmButtonText: '确 定',
1568
+                        type: 'warning'
1569
+                      }).then(() => {
1570
+
1571
+                      }).catch(() => {
1572
+                      })
1573
+
1531 1574
                     } else {
1532
-                      that.changeRadio(1);
1575
+                      that.changeRadioAndPatient(1);
1533 1576
                       that.$message({ message: '退费成功', type: 'success', duration: 5000 });
1534 1577
                       that.loadingtwo = false
1535 1578
                     }
@@ -1565,7 +1608,7 @@
1565 1608
                   return false
1566 1609
                 } else {
1567 1610
                   this.radio = 1;
1568
-                  this.changeRadio(1);
1611
+                  this.changeRadioAndPatient(1);
1569 1612
                   this.$message({ message: '退费成功', type: 'success' });
1570 1613
                   this.loadingtwo = false
1571 1614
 
@@ -1670,10 +1713,18 @@
1670 1713
                   return false
1671 1714
                 } else {
1672 1715
                   if (response.data.data.failed_code == -10) {
1673
-                    that.$message.error(response.data.data.msg)
1716
+                    // that.$message.error(response.data.data.msg)
1717
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
1718
+                      confirmButtonText: '确 定',
1719
+                      type: 'warning'
1720
+                    }).then(() => {
1721
+
1722
+                    }).catch(() => {
1723
+                    })
1724
+
1674 1725
                   } else {
1675 1726
                     that.radio = 1;
1676
-                    that.changeRadio(1);
1727
+                    that.changeRadioAndPatient(1);
1677 1728
                     that.$message({ message: '退号成功', type: 'success', duration: 5000 })
1678 1729
                   }
1679 1730
 
@@ -1945,7 +1996,160 @@
1945 1996
         console.log(id);
1946 1997
         this.radioStatus = id;
1947 1998
         this.getPatientList()
1999
+      },      changeRadioAndPatient(id) {
2000
+        // console.log(id)
2001
+        // this.radioStatus = id
2002
+        // this.getPatientList()
2003
+        let temp_id = id;
2004
+
2005
+        let params = {
2006
+          'record_date': this.record_date
2007
+        };
2008
+        getChargeHisPatientList(params).then(response => {
2009
+          if (response.data.state == 0) {
2010
+            this.$message.error(response.data.msg);
2011
+            return false
2012
+          } else {
2013
+            this.patientTableData = [];
2014
+            this.hisPatientDatas = [];
2015
+            this.all_table_data = [];
2016
+            let one_count = 0;
2017
+            let two_count = 0;
2018
+            let three_count = 0;
2019
+
2020
+            if (this.activeName == 'first') { //日结
2021
+
2022
+              for (let i = 0; i < response.data.data.list.length; i++) {
2023
+                this.all_table_data.push(response.data.data.list[i]);
2024
+                if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
2025
+                  one_count = one_count + 1
2026
+                }
2027
+
2028
+                if (response.data.data.list[i].order.order_status == 2) {
2029
+                  two_count = two_count + 1
2030
+                }
2031
+
2032
+                // if (response.data.data.list[i].order.order_status == 3) {
2033
+                //   three_count = three_count + 1
2034
+                // }
2035
+              }
2036
+
2037
+            } else { //月结
2038
+
2039
+              for (let i = 0; i < response.data.data.list_two.length; i++) {
2040
+                this.hisPatientDatas.push(response.data.data.list_two[i]);
2041
+                if (response.data.data.list_two[i].order.order_status == 0 || response.data.data.list_two[i].order.order_status == 1) {
2042
+                  one_count = one_count + 1
2043
+                }
2044
+
2045
+                if (response.data.data.list_two[i].order.order_status == 2) {
2046
+                  two_count = two_count + 1
2047
+                }
2048
+
2049
+                if (response.data.data.list_two[i].order.order_status == 3) {
2050
+                  three_count = three_count + 1
2051
+                }
2052
+              }
2053
+
2054
+            }
2055
+
2056
+            this.cal_one = one_count;
2057
+            this.cal_two = two_count;
2058
+            this.cal_three = three_count;
2059
+
2060
+            switch (temp_id) {
2061
+
2062
+              case 1:
2063
+                this.patientTableData = [];
2064
+                if (this.activeName == 'first') {
2065
+
2066
+                  for (let i = 0; i < this.all_table_data.length; i++) {
2067
+                    if ((this.all_table_data[i].order && this.all_table_data[i].order.order_status == 0) || (this.all_table_data[i].order && this.all_table_data[i].order.order_status == 1)) {
2068
+                      this.patientTableData.push(this.all_table_data[i])
2069
+                    }
2070
+
2071
+                  }
2072
+
2073
+                } else {
2074
+                  for (let i = 0; i < this.hisPatientDatas.length; i++) {
2075
+                    if (this.hisPatientDatas[i].order.order_status == 0 || this.hisPatientDatas[i].order.order_status == 1) {
2076
+                      this.patientTableData.push(this.hisPatientDatas[i])
2077
+                    }
2078
+
2079
+                  }
2080
+
2081
+                }
2082
+
2083
+                break;
2084
+              case 2:
2085
+                this.patientTableData = [];
2086
+                if (this.activeName == 'first') {
2087
+
2088
+                  for (let i = 0; i < this.all_table_data.length; i++) {
2089
+                    if (this.all_table_data[i].order.order_status == 2) {
2090
+                      this.patientTableData.push(this.all_table_data[i])
2091
+                    }
2092
+
2093
+                  }
2094
+                } else {
2095
+                  for (let i = 0; i < this.hisPatientDatas.length; i++) {
2096
+                    if (this.hisPatientDatas[i].order.order_status == 2) {
2097
+                      this.patientTableData.push(this.hisPatientDatas[i])
2098
+                    }
2099
+                  }
2100
+
2101
+                }
2102
+                break;
2103
+              case 3:
2104
+                this.patientTableData = [];
2105
+
2106
+                if (this.activeName == 'first') {
2107
+
2108
+                  for (let i = 0; i < this.all_table_data.length; i++) {
2109
+
2110
+                    if (this.all_table_data[i].order.order_status == 3) {
2111
+                      this.patientTableData.push(this.all_table_data[i])
2112
+                    }
2113
+
2114
+                  }
2115
+                } else {
2116
+
2117
+                  for (let i = 0; i < this.hisPatientDatas.length; i++) {
2118
+
2119
+                    if (this.hisPatientDatas[i].order.order_status == 3) {
2120
+                      this.patientTableData.push(this.hisPatientDatas[i])
2121
+                    }
2122
+
2123
+                  }
2124
+
2125
+                }
2126
+                break;
2127
+              case 4:
2128
+                this.patientTableData = [];
2129
+                if (this.activeName == 'first') {
2130
+
2131
+                  this.patientTableData = this.all_table_data
2132
+                } else {
2133
+
2134
+                  this.patientTableData = this.hisPatientDatas
2135
+                }
2136
+                break
2137
+
2138
+            }
2139
+
2140
+            this.current_index = 0;
2141
+
2142
+            for (let i = 0; i < this.patientTableData.length; i++){
2143
+              if(this.patientInfo.id == this.patientTableData[i].id)
2144
+              this.$refs.tab.setCurrentRow(this.patientTableData[i]);
2145
+              this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number)
2146
+            }
2147
+
2148
+          }
2149
+        })
2150
+
1948 2151
       },
2152
+
1949 2153
       changeRadio(id) {
1950 2154
         // console.log(id)
1951 2155
         // this.radioStatus = id
@@ -2014,7 +2218,7 @@
2014 2218
                 if (this.activeName == 'first') {
2015 2219
 
2016 2220
                   for (let i = 0; i < this.all_table_data.length; i++) {
2017
-                    if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
2221
+                    if ((this.all_table_data[i].order && this.all_table_data[i].order.order_status == 0) || (this.all_table_data[i].order && this.all_table_data[i].order.order_status == 1)) {
2018 2222
                       this.patientTableData.push(this.all_table_data[i])
2019 2223
                     }
2020 2224
 
@@ -2088,13 +2292,17 @@
2088 2292
             }
2089 2293
 
2090 2294
             this.current_index = 0;
2091
-            this.$refs.tab.setCurrentRow(this.patientTableData[0]);
2092
-            this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order.number)
2295
+
2296
+            for (let i = 0; i < this.patientTableData.length; i++){
2297
+                this.$refs.tab.setCurrentRow(this.patientTableData[0]);
2298
+                this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order.number)
2299
+            }
2093 2300
 
2094 2301
           }
2095 2302
         })
2096 2303
 
2097
-      }, formatDecimal(num, decimal) {
2304
+      },
2305
+      formatDecimal(num, decimal) {
2098 2306
         num = num.toString();
2099 2307
         let index = num.indexOf('.');
2100 2308
         if (index !== -1) {
@@ -2571,10 +2779,17 @@
2571 2779
                 } else {
2572 2780
 
2573 2781
                   if (response.data.data.failed_code == -10) {
2574
-                    that.$message.error(response.data.data.msg)
2782
+
2783
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
2784
+                      confirmButtonText: '确 定',
2785
+                      type: 'warning'
2786
+                    }).then(() => {
2787
+
2788
+                    }).catch(() => {
2789
+                    })
2575 2790
 
2576 2791
                   } else {
2577
-                    that.changeRadio(1);
2792
+                    that.changeRadioAndPatient(1);
2578 2793
                     that.$message({ message: '预结算成功', type: 'success' })
2579 2794
                   }
2580 2795
 
@@ -2613,10 +2828,16 @@
2613 2828
                     return false
2614 2829
                   } else {
2615 2830
                     if (response.data.data.failed_code == -10) {
2616
-                      that.$message.error(response.data.data.msg)
2831
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
2832
+                        confirmButtonText: '确 定',
2833
+                        type: 'warning'
2834
+                      }).then(() => {
2835
+
2836
+                      }).catch(() => {
2837
+                      })
2617 2838
 
2618 2839
                     } else {
2619
-                      that.changeRadio(1);
2840
+                      that.changeRadioAndPatient(1);
2620 2841
                       that.$message({ message: '退费成功', type: 'success' })
2621 2842
                     }
2622 2843
                   }
@@ -2642,7 +2863,14 @@
2642 2863
                   return false
2643 2864
                 } else {
2644 2865
                   if (response.data.data.failed_code == -10) {
2645
-                    that.$message.error(response.data.data.msg)
2866
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
2867
+                      confirmButtonText: '确 定',
2868
+                      type: 'warning'
2869
+                    }).then(() => {
2870
+
2871
+                    }).catch(() => {
2872
+                    })
2873
+
2646 2874
                   } else {
2647 2875
                     that.$message({ message: '查询成功', type: 'success' })
2648 2876
                   }
@@ -2669,7 +2897,14 @@
2669 2897
                 } else {
2670 2898
                   if (response.data.data.failed_code == -10) {
2671 2899
 
2672
-                    that.$message.error(response.data.data.msg)
2900
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
2901
+                      confirmButtonText: '确 定',
2902
+                      type: 'warning'
2903
+                    }).then(() => {
2904
+
2905
+                    }).catch(() => {
2906
+                    })
2907
+
2673 2908
 
2674 2909
                   } else {
2675 2910
 
@@ -2716,10 +2951,17 @@
2716 2951
                     return false
2717 2952
                   } else {
2718 2953
                     if (response.data.data.failed_code == -10) {
2719
-                      that.$message.error(response.data.data.msg)
2954
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
2955
+                        confirmButtonText: '确 定',
2956
+                        type: 'warning'
2957
+                      }).then(() => {
2958
+
2959
+                      }).catch(() => {
2960
+                      })
2961
+
2720 2962
 
2721 2963
                     } else {
2722
-                      that.changeRadio(1);
2964
+                      that.changeRadioAndPatient(1);
2723 2965
                       that.$message({ message: '退号成功', type: 'success' })
2724 2966
                     }
2725 2967
                   }

+ 57 - 53
src/xt_pages/outpatientCharges/settlementPrint.vue Прегледај датотеку

@@ -77,7 +77,7 @@ export default {
77 77
 
78 78
       const style =
79 79
         '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
80
-        const style1 = "@media print{#prescription-print{font-size:14px;}.title{text-align: center;font-size: 22px;font-weight: bold;}.row{display: flex;justify-content: space-between;}.under_line{border-bottom: 1px solid #999;width: 95%;text-align: center;margin-left: 2px;display: inline-block;}.inline_block{display: inline-block;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 14px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; /* 解决边框冲突 */border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid;text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}}"
80
+        const style1 = "@media print{#prescription-print{font-size:14px;}.title{text-align: center;font-size: 22px;font-weight: bold;}.row{display: flex;justify-content: space-between;}.under_line{border-bottom: 1px solid #999;width: 95%;text-align: center;margin-left: 2px;display: inline-block;}.inline_block{display: inline-block;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 14px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; /* 解决边框冲突 */border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid;text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}}";
81 81
         printJS({
82 82
             printable: "prescription-print",
83 83
             type: "html",
@@ -97,7 +97,7 @@ export default {
97 97
     getAllDoctorList(){
98 98
       getAllDoctorList().then(response=>{
99 99
         if(response.data.state == 1){
100
-               var doctor =  response.data.data.doctor
100
+               var doctor =  response.data.data.doctor;
101 101
 
102 102
                this.doctorList = doctor
103 103
              }
@@ -106,15 +106,15 @@ export default {
106 106
     getAllHisPatientList(){
107 107
          const params = {
108 108
            record_date:this.record_date
109
-         }
109
+         };
110 110
       getAllHisPatientList(params).then(response=>{
111 111
          if(response.data.state == 1){
112
-            this.patientTableData = response.data.data.list
113
-            this.patientTableDataTwo = response.data.data.list
112
+            this.patientTableData = response.data.data.list;
113
+            this.patientTableDataTwo = response.data.data.list;
114 114
 
115
-            console.log('222', this.patientTableData)
116
-            let cal_one = 0
117
-            let cal_two = 0
115
+            console.log('222', this.patientTableData);
116
+            let cal_one = 0;
117
+            let cal_two = 0;
118 118
             for (let i = 0; i < response.data.data.list.length; i++) {
119 119
               if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
120 120
                 cal_one = cal_one + 1
@@ -126,16 +126,16 @@ export default {
126 126
             // this.$refs.tab.setCurrentRow(this.patientTableData[0])
127 127
             // console.log(this.patientTableData[0])
128 128
             // this.choosePatient(this.patientTableData[0])
129
-            this.cal_one = cal_one
129
+            this.cal_one = cal_one;
130 130
             this.cal_two = cal_two
131 131
          }
132 132
       })
133 133
     },
134 134
 
135 135
     changePatient(row){
136
-      console.log("row",row)
137
-      this.patient_id = row.patient_id
138
-      this.record_date = this.record_date
136
+      console.log("row",row);
137
+      this.patient_id = row.patient_id;
138
+      this.record_date = this.record_date;
139 139
       this.prescription_id = this.prescription_id
140 140
       //   var params = {
141 141
       //     patient_id:row.patient_id,
@@ -164,7 +164,7 @@ export default {
164 164
     getInfo(order_id) {
165 165
       if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9990 || this.$store.getters.xt_user.org_id == 0) {
166 166
 
167
-        var that = this
167
+        var that = this;
168 168
 
169 169
         axios.get('http://127.0.0.1:9532/api/settle/query', {
170 170
           params: {
@@ -175,57 +175,61 @@ export default {
175 175
         })
176 176
           .then(function (response) {
177 177
             if (response.data.state == 0) {
178
-              this.$message.error(response.data.msg)
178
+              this.$message.error(response.data.msg);
179 179
               return false
180 180
             } else {
181
-              console.log("logloglog")
181
+              console.log("logloglog");
182
+
183
+              console.log(response.data.data.info);
184
+              that.info = response.data.data.info;
185
+              that.p_admin = response.data.data.printor_admin;
186
+              that.charge_admin = response.data.data.charge_admin;
187
+              console.log(that.info);
188
+
182 189
 
183
-              console.log(response.data.data.info)
184
-              that.info = response.data.data.info
185
-              that.p_admin = response.data.data.printor_admin
186
-              that.charge_admin = response.data.data.charge_admin
187
-              console.log(that.info)
190
+              // that.info['bed_cost_total'] = response.data.data.bedCostTotal
188 191
 
189
-              that.info['bed_cost_total'] = response.data.data.bedCostTotal
190
-              that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
191
-              that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
192 192
 
193
-              that.info['operation_cost_total'] = response.data.data.operationCostTotal
194
-              that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
195
-              that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
193
+              that.info['bed_cost_total'] = response.data.data.bedCostTotal;
194
+              that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
195
+              that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
196 196
 
197
-              that.info['other_cost_total'] = response.data.data.otherCostTotal
198
-              that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
199
-              that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
197
+              that.info['operation_cost_total'] = response.data.data.operationCostTotal;
198
+              that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal;
199
+              that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal;
200 200
 
201
-              that.info['material_cost_total'] = response.data.data.materialCostTotal
202
-              that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
203
-              that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
201
+              that.info['other_cost_total'] = response.data.data.otherCostTotal;
202
+              that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal;
203
+              that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal;
204 204
 
205
-              that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
206
-              that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
207
-              that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
205
+              that.info['material_cost_total'] = response.data.data.materialCostTotal;
206
+              that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal;
207
+              that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal;
208 208
 
209
-              that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
210
-              that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
211
-              that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
209
+              that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal;
210
+              that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal;
211
+              that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal;
212 212
 
213
+              that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal;
214
+              that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal;
215
+              that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
213 216
 
214
-              that.info['check_cost_total'] = response.data.data.checkCostTotal
215
-              that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
216
-              that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
217 217
 
218
+              that.info['check_cost_total'] = response.data.data.checkCostTotal;
219
+              that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal;
220
+              that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal;
218 221
 
219
-              that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
220
-              that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
221
-              that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
222 222
 
223
-              that.info['treat_cost_total'] = response.data.data.treatCostTotal
224
-              that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
225
-              that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
226
-              that.info['date'] =  response.data.data.date
227
-              that.info['number'] =  response.data.data.number
228
-              that.info['order_infos'] =  response.data.data.order_infos
223
+              that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal;
224
+              that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal;
225
+              that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal;
226
+
227
+              that.info['treat_cost_total'] = response.data.data.treatCostTotal;
228
+              that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
229
+              that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
230
+              that.info['date'] =  response.data.data.date;
231
+              that.info['number'] =  response.data.data.number;
232
+              that.info['order_infos'] =  response.data.data.order_infos;
229 233
               that.info['diagnosis'] =  response.data.data.diagnosis
230 234
 
231 235
             }
@@ -237,13 +241,13 @@ export default {
237 241
     }
238 242
   },
239 243
   created() {
240
-    this.getInfo(this.paramsObj.order_id)
244
+    this.getInfo(this.paramsObj.order_id);
241 245
     this.org_id = this.$store.getters.xt_user.org_id
242 246
   },
243 247
   watch:{
244 248
     paramsObj:{//深度监听,可监听到对象、数组的变化
245 249
       handler(val, oldVal){
246
-        this.paramsObj = val
250
+        this.paramsObj = val;
247 251
         this.getInfo(this.paramsObj.order_id)
248 252
 
249 253
       },
@@ -299,7 +303,7 @@ export default {
299 303
 }
300 304
 .actionBar{
301 305
     display: flex;
302
-    justify-content: space-between; 
306
+    justify-content: space-between;
303 307
     line-height: 24px;
304 308
     padding:0 10px;
305 309
 }

+ 60 - 50
src/xt_pages/outpatientCharges/statementPrint.vue Прегледај датотеку

@@ -89,7 +89,7 @@ export default {
89 89
     getAllDoctorList(){
90 90
       getAllDoctorList().then(response=>{
91 91
         if(response.data.state == 1){
92
-               var doctor =  response.data.data.doctor
92
+               var doctor =  response.data.data.doctor;
93 93
 
94 94
                this.doctorList = doctor
95 95
              }
@@ -98,15 +98,15 @@ export default {
98 98
     getAllHisPatientList(){
99 99
          const params = {
100 100
            record_date:this.record_date
101
-         }
101
+         };
102 102
       getAllHisPatientList(params).then(response=>{
103 103
          if(response.data.state == 1){
104
-            this.patientTableData = response.data.data.list
105
-            this.patientTableDataTwo = response.data.data.list
104
+            this.patientTableData = response.data.data.list;
105
+            this.patientTableDataTwo = response.data.data.list;
106 106
 
107
-            console.log('222', this.patientTableData)
108
-            let cal_one = 0
109
-            let cal_two = 0
107
+            console.log('222', this.patientTableData);
108
+            let cal_one = 0;
109
+            let cal_two = 0;
110 110
             for (let i = 0; i < response.data.data.list.length; i++) {
111 111
               if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
112 112
                 cal_one = cal_one + 1
@@ -118,16 +118,16 @@ export default {
118 118
             // this.$refs.tab.setCurrentRow(this.patientTableData[0])
119 119
             // console.log(this.patientTableData[0])
120 120
             // this.choosePatient(this.patientTableData[0])
121
-            this.cal_one = cal_one
121
+            this.cal_one = cal_one;
122 122
             this.cal_two = cal_two
123 123
          }
124 124
       })
125 125
     },
126 126
 
127 127
     changePatient(row){
128
-      console.log("row",row)
129
-      this.patient_id = row.patient_id
130
-      this.record_date = this.record_date
128
+      console.log("row",row);
129
+      this.patient_id = row.patient_id;
130
+      this.record_date = this.record_date;
131 131
       this.prescription_id = this.prescription_id
132 132
       //   var params = {
133 133
       //     patient_id:row.patient_id,
@@ -156,7 +156,7 @@ export default {
156 156
     getInfo(order_id) {
157 157
       if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9990) {
158 158
 
159
-        var that = this
159
+        var that = this;
160 160
 
161 161
         axios.get('http://127.0.0.1:9532/api/settle/query', {
162 162
           params: {
@@ -167,55 +167,65 @@ export default {
167 167
         })
168 168
           .then(function (response) {
169 169
             if (response.data.state == 0) {
170
-              this.$message.error(response.data.msg)
170
+              this.$message.error(response.data.msg);
171 171
               return false
172 172
             } else {
173
-              console.log("logloglog")
173
+              console.log("logloglog");
174
+
175
+              console.log(response.data.data.info);
176
+              that.info = response.data.data.info;
177
+              console.log(that.info);
178
+
179
+
180
+              that.info['p_admin'] =  that.p_admin;
181
+              that.info['charge_admin'] =  that.charge_admin;
182
+
183
+              that.info['date'] =  response.data.data.date;
184
+              that.info['number'] =  response.data.data.number;
185
+              that.info['order_infos'] =  response.data.data.order_infos;
186
+              that.info['diagnosis'] =  response.data.data.diagnosis;
174 187
 
175
-              console.log(response.data.data.info)
176
-              that.info = response.data.data.info
177
-              console.log(that.info)
178 188
 
179
-              that.info['bed_cost_total'] = response.data.data.bedCostTotal
180
-              that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
181
-              that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
189
+              that.info['bed_cost_total'] = response.data.data.bedCostTotal;
190
+              that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
191
+              that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
182 192
 
183
-              that.info['operation_cost_total'] = response.data.data.operationCostTotal
184
-              that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
185
-              that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
193
+              that.info['operation_cost_total'] = response.data.data.operationCostTotal;
194
+              that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal;
195
+              that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal;
186 196
 
187
-              that.info['other_cost_total'] = response.data.data.otherCostTotal
188
-              that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
189
-              that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
197
+              that.info['other_cost_total'] = response.data.data.otherCostTotal;
198
+              that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal;
199
+              that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal;
190 200
 
191
-              that.info['material_cost_total'] = response.data.data.materialCostTotal
192
-              that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
193
-              that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
201
+              that.info['material_cost_total'] = response.data.data.materialCostTotal;
202
+              that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal;
203
+              that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal;
194 204
 
195
-              that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
196
-              that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
197
-              that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
205
+              that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal;
206
+              that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal;
207
+              that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal;
198 208
 
199
-              that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
200
-              that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
201
-              that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
209
+              that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal;
210
+              that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal;
211
+              that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
202 212
 
203 213
 
204
-              that.info['check_cost_total'] = response.data.data.checkCostTotal
205
-              that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
206
-              that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
214
+              that.info['check_cost_total'] = response.data.data.checkCostTotal;
215
+              that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal;
216
+              that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal;
207 217
 
208 218
 
209
-              that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
210
-              that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
211
-              that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
219
+              that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal;
220
+              that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal;
221
+              that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal;
212 222
 
213
-              that.info['treat_cost_total'] = response.data.data.treatCostTotal
214
-              that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
215
-              that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
216
-              that.info['date'] =  response.data.data.date
217
-              that.info['number'] =  response.data.data.number
218
-              that.info['order_infos'] =  response.data.data.order_infos
223
+              that.info['treat_cost_total'] = response.data.data.treatCostTotal;
224
+              that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
225
+              that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
226
+              that.info['date'] =  response.data.data.date;
227
+              that.info['number'] =  response.data.data.number;
228
+              that.info['order_infos'] =  response.data.data.order_infos;
219 229
               that.info['diagnosis'] =  response.data.data.diagnosis
220 230
 
221 231
             }
@@ -229,14 +239,14 @@ export default {
229 239
   },
230 240
 
231 241
   created() {
232
-    this.getInfo(this.paramsObj.order_id)
233
-    this.org_id = this.$store.getters.xt_user.org_id
242
+    this.getInfo(this.paramsObj.order_id);
243
+    this.org_id = this.$store.getters.xt_user.org_id;
234 244
     console.log("this.org_id",this.org_id)
235 245
   },
236 246
   watch:{
237 247
     paramsObj:{//深度监听,可监听到对象、数组的变化
238 248
       handler(val, oldVal){
239
-        this.paramsObj = val
249
+        this.paramsObj = val;
240 250
         this.getInfo(this.paramsObj.order_id)
241 251
 
242 252
       },

+ 29 - 15
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue Прегледај датотеку

@@ -83,17 +83,18 @@
83 83
       </tr>
84 84
       <tr>
85 85
         <td>住院号</td>
86
-        <td></td>
86
+        <td>{{info.number}}</td>
87 87
         <td>科别</td>
88 88
         <td width="100"></td>
89 89
         <td>床号</td>
90 90
         <td></td>
91 91
         <td>入院日期</td>
92
-        <td></td>
92
+        <td>{{info.begndate}}</td>
93 93
         <td>出院日期</td>
94
-        <td width="100"></td>
94
+        <td width="100">{{info.enddate}}</td>
95 95
         <td>住院天数</td>
96
-        <td></td>
96
+        <td>{{getDay(info.begndate,info.enddate)}}</td>
97
+
97 98
       </tr>
98 99
       <tr>
99 100
         <td>险种</td>
@@ -278,11 +279,11 @@
278 279
       </tr>
279 280
       <tr>
280 281
         <td>收款人:</td>
281
-        <td colspan="2">{{charge_admin ? charge_admin.user_name : ''}}</td>
282
+        <td colspan="2">{{info.charge_admin.user_name}}</td>
282 283
         <td>审核人:</td>
283
-        <td colspan="2"></td>
284
+        <td colspan="2">{{info.p_admin.user_name}}</td>
284 285
         <td>制单人:</td>
285
-        <td colspan="2">{{p_admin ? p_admin.user_name : ''}}</td>
286
+        <td colspan="2">{{info.p_admin.user_name}}</td>
286 287
         <td>打印日期</td>
287 288
         <td colspan="2">{{getNowTime()}}</td>
288 289
       </tr>
@@ -321,19 +322,32 @@
321 322
         }
322 323
       }
323 324
     },methods:{
325
+      getDay(dateString1,dateString2){
326
+          var  startDate = Date.parse(dateString1);
327
+          var  endDate = Date.parse(dateString2);
328
+          if (startDate>endDate){
329
+            return 0;
330
+          }
331
+          if (startDate==endDate){
332
+            return 1;
333
+          }
334
+          var days=(endDate - startDate)/(1*24*60*60*1000);
335
+          return  days;
336
+
337
+        },
324 338
       getNowTime: function () {
325
-        let dateTime
326
-        let yy = new Date().getFullYear()
327
-        let mm = new Date().getMonth() + 1
328
-        let dd = new Date().getDate()
329
-        let hh = new Date().getHours()
339
+        let dateTime;
340
+        let yy = new Date().getFullYear();
341
+        let mm = new Date().getMonth() + 1;
342
+        let dd = new Date().getDate();
343
+        let hh = new Date().getHours();
330 344
         let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
331 345
           :
332
-          new Date().getMinutes()
346
+          new Date().getMinutes();
333 347
         let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
334 348
           :
335
-          new Date().getSeconds()
336
-        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
349
+          new Date().getSeconds();
350
+        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
337 351
         return dateTime
338 352
       },
339 353
 

+ 58 - 49
src/xt_pages/outpatientCharges/summary.vue Прегледај датотеку

@@ -104,7 +104,7 @@
104 104
                             结算单
105 105
                         </el-button>
106 106
                         <el-button size="mini" type="primary" v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106" @click="settlementPrint(scope.row)">结算单</el-button>
107
-                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
107
+                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
108 108
                             退费
109 109
                         </el-button>
110 110
                         <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
@@ -248,7 +248,7 @@
248 248
 
249 249
       },toRefund(row){
250 250
         if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
251
-          var that = this
251
+          var that = this;
252 252
           this.$confirm('是否退费', '退费', {
253 253
             confirmButtonText: '确 定',
254 254
             cancelButtonText: '取 消',
@@ -259,19 +259,26 @@
259 259
               'patient_id': row.patient_id,
260 260
               'record_time': that.getTimes(row.settle_accounts_date),
261 261
               'admin_user_id': that.$store.getters.xt_user.user.id,
262
-            }
262
+            };
263 263
             axios.get('http://127.0.0.1:9532/api/refund/post', {
264 264
               params: params
265 265
             })
266 266
               .then(function(response) {
267 267
                 if (response.data.state == 0) {
268
-                  that.$message.error(response.data.msg)
268
+                  that.$message.error(response.data.msg);
269 269
                   return false
270 270
                 } else {
271 271
                   if (response.data.data.failed_code == -10) {
272
-                    that.$message.error(response.data.data.msg)
272
+                    // that.$message.error(response.data.data.msg)
273
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
274
+                      confirmButtonText: '确 定',
275
+                      type: 'warning'
276
+                    }).then(() => {
277
+
278
+                    }).catch(() => {
279
+                    })
273 280
                   } else {
274
-                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
281
+                    that.$message({ message: '退费成功', type: 'success', duration: 5000 });
275 282
                     that.getHisOrderList()
276 283
 
277 284
                   }
@@ -293,13 +300,13 @@
293 300
               'patient_id': this.patientInfo.id,
294 301
               'record_time': this.record_date
295 302
 
296
-            }
303
+            };
297 304
             Refund(params).then(response => {
298 305
               if (response.data.state == 0) {
299
-                this.$message.error(response.data.msg)
306
+                this.$message.error(response.data.msg);
300 307
                 return false
301 308
               } else {
302
-                this.$message({ message: '退费成功', type: 'success' })
309
+                this.$message({ message: '退费成功', type: 'success' });
303 310
                 this.getHisOrderList()
304 311
               }
305 312
             })
@@ -309,51 +316,52 @@
309 316
       },
310 317
       toPrint(row) {
311 318
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
312
-          this.statementVisible9504 = true
319
+          this.statementVisible9504 = true;
313 320
           let obj = {
314 321
             order_id: row.id,
315 322
             patient_id: row.patient_id,
316 323
             record_time: this.getTimes(row.settle_accounts_date),
317 324
             admin_user_id: this.$store.getters.xt_user.user.id
318
-          }
325
+          };
319 326
           this.orderObj9504 = obj
320 327
         } else {
321
-          this.statementVisible = true
328
+          this.statementVisible = true;
322 329
           let obj = {
323 330
             order_id: row.id
324
-          }
331
+          };
325 332
           this.orderObj = obj
326 333
         }
327 334
 
328 335
       },
329 336
       settlementPrint(row){
330
-        this.settlementVisible = true
337
+        this.settlementVisible = true;
331 338
         let obj = {
332 339
           order_id: row.id
333
-        }
340
+        };
334 341
         this.settlementObj = obj
335 342
       },
336 343
       export_detail() {
337 344
         let params = {
338 345
           start_time: this.start_time,
339
-          end_time: this.end_time
340
-        }
346
+          end_time: this.end_time,
347
+          p_type: 2,
348
+        };
341 349
         getExportConsumeDetailList(params).then(response => {
342 350
           if (response.data.state == 0) {
343
-            this.$message.error(response.data.msg)
351
+            this.$message.error(response.data.msg);
344 352
             return false
345 353
           } else {
346 354
 
347
-            let list = []
355
+            let list = [];
348 356
             for (let i = 0; i < response.data.data.order.length; i++) {
349
-              let order = response.data.data.order[i]
350
-              let number = ''
351
-              let name = ''
352
-              let department = ''
353
-              let doctor_name = ''
354
-              let balance_accounts = ''
357
+              let order = response.data.data.order[i];
358
+              let number = '';
359
+              let name = '';
360
+              let department = '';
361
+              let doctor_name = '';
362
+              let balance_accounts = '';
355 363
 
356
-              let order_status = ''
364
+              let order_status = '';
357 365
 
358 366
               if (order.his_patient != null && order.his_patient.number.length > 0) {
359 367
                 number = order.his_patient.number
@@ -414,13 +422,13 @@
414 422
                 '收费日期': '',
415 423
                 '收费状态': order_status,
416 424
                 '退费日期': ''
417
-              }
425
+              };
418 426
               list.push(obj)
419 427
             }
420 428
             import('@/vendor/Export2Excel').then(excel => {
421
-              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
422
-              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
423
-              const data = this.formatJson(filterVal, list)
429
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
430
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
431
+              const data = this.formatJson(filterVal, list);
424 432
               excel.export_json_to_excel({
425 433
                 header: tHeader,
426 434
                 data,
@@ -435,30 +443,30 @@
435 443
         return jsonData.map(v => filterVal.map(j => v[j]))
436 444
       },
437 445
       changeDoctor() {
438
-        this.page = 1
439
-        this.keywords = ''
446
+        this.page = 1;
447
+        this.keywords = '';
440 448
         this.getHisOrderList()
441 449
       },
442 450
       handleSizeChange(limit) {
443
-        this.limit = limit
451
+        this.limit = limit;
444 452
         this.getHisOrderList()
445 453
 
446 454
       }, handleCurrentChange(page) {
447
-        this.page = page
455
+        this.page = page;
448 456
         this.getHisOrderList()
449 457
 
450 458
       },
451 459
       handleStartTimeChange() {
452
-        this.page = 1
453
-        this.keywords = ''
460
+        this.page = 1;
461
+        this.keywords = '';
454 462
         this.getHisOrderList()
455 463
       }, handleEndTimeChange() {
456
-        this.page = 1
457
-        this.keywords = ''
464
+        this.page = 1;
465
+        this.keywords = '';
458 466
         this.getHisOrderList()
459 467
       },
460 468
       searchAction() {
461
-        this.page = 1
469
+        this.page = 1;
462 470
         this.getHisOrderList()
463 471
 
464 472
       },
@@ -479,14 +487,15 @@
479 487
           keywords: this.keywords,
480 488
           start_time: this.start_time,
481 489
           end_time: this.end_time,
482
-          type: this.admin_user_id
483
-        }
490
+          type: this.admin_user_id,
491
+          p_type: 2,
492
+        };
484 493
         getHisOrderList(params).then(response => {
485 494
           if (response.data.state == 0) {
486
-            this.$message.error(response.data.msg)
495
+            this.$message.error(response.data.msg);
487 496
             return false
488 497
           } else {
489
-            this.tableData = response.data.data.order
498
+            this.tableData = response.data.data.order;
490 499
             this.total = response.data.data.total
491 500
           }
492 501
         })
@@ -494,7 +503,7 @@
494 503
       }, getDoctorList() {
495 504
         getDoctorList().then(response => {
496 505
           if (response.data.state == 0) {
497
-            this.$message.error(response.data.msg)
506
+            this.$message.error(response.data.msg);
498 507
             return false
499 508
           } else {
500 509
             this.doctors = response.data.data.doctors
@@ -509,7 +518,7 @@
509 518
         }
510 519
       },
511 520
       invoicePrint(obj){
512
-        console.log(obj)
521
+        console.log(obj);
513 522
         let paramsObj = {
514 523
           order_id: obj.id,
515 524
           patient_id: obj.patient_id,
@@ -517,15 +526,15 @@
517 526
           age:obj.age,
518 527
           gend:obj.gend,
519 528
           setl_time:obj.setl_time
520
-        }
521
-        this.invoiceParams = paramsObj
529
+        };
530
+        this.invoiceParams = paramsObj;
522 531
         this.invoiceVisible = true
523 532
       }
524 533
     }, created() {
525 534
 
526 535
 
527
-      this.fetchAllAdminUsers()
528
-      this.getDoctorList()
536
+      this.fetchAllAdminUsers();
537
+      this.getDoctorList();
529 538
       this.getHisOrderList()
530 539
 
531 540
 

+ 102 - 95
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue Прегледај датотеку

@@ -215,106 +215,106 @@
215 215
       getItemName(number) {
216 216
         switch (number) {
217 217
           case '01':
218
-            return '床位费'
219
-            break
218
+            return '床位费';
219
+            break;
220 220
           case '02':
221
-            return '西药费'
221
+            return '西药费';
222 222
 
223
-            break
223
+            break;
224 224
           case '03':
225
-            return '中药费'
225
+            return '中药费';
226 226
 
227
-            break
227
+            break;
228 228
           case '04':
229
-            return '中成药费'
229
+            return '中成药费';
230 230
 
231
-            break
231
+            break;
232 232
           case '05':
233
-            return '中草药费'
233
+            return '中草药费';
234 234
 
235
-            break
235
+            break;
236 236
           case '06':
237
-            return '检查费'
237
+            return '检查费';
238 238
 
239
-            break
239
+            break;
240 240
           case '07':
241
-            return '治疗费'
241
+            return '治疗费';
242 242
 
243
-            break
243
+            break;
244 244
           case '08':
245
-            return '放射费'
245
+            return '放射费';
246 246
 
247
-            break
247
+            break;
248 248
           case '09':
249
-            return '手术费'
249
+            return '手术费';
250 250
 
251
-            break
251
+            break;
252 252
           case '10':
253
-            return '化验费'
253
+            return '化验费';
254 254
 
255
-            break
255
+            break;
256 256
           case '11':
257
-            return '输血费'
257
+            return '输血费';
258 258
 
259
-            break
259
+            break;
260 260
           case '12':
261
-            return '输氧费'
261
+            return '输氧费';
262 262
 
263
-            break
263
+            break;
264 264
           case '13':
265
-            return '其它费'
265
+            return '其它费';
266 266
 
267
-            break
267
+            break;
268 268
           case '14':
269
-            return '麻醉费'
269
+            return '麻醉费';
270 270
 
271
-            break
271
+            break;
272 272
           case '15':
273
-            return '材料费'
273
+            return '材料费';
274 274
 
275
-            break
275
+            break;
276 276
           case '16':
277
-            return '特殊检查费'
277
+            return '特殊检查费';
278 278
 
279
-            break
279
+            break;
280 280
           case '17':
281
-            return '特殊治疗费'
281
+            return '特殊治疗费';
282 282
 
283
-            break
283
+            break;
284 284
           case '18':
285
-            return '诊疗费(诊查费)'
285
+            return '诊疗费(诊查费)';
286 286
 
287
-            break
287
+            break;
288 288
           case '19':
289
-            return '护理费'
289
+            return '护理费';
290 290
 
291
-            break
291
+            break;
292 292
           case '20':
293
-            return '诊金'
293
+            return '诊金';
294 294
 
295
-            break
295
+            break;
296 296
           case '21':
297
-            return '检查费(CT)'
297
+            return '检查费(CT)';
298 298
 
299
-            break
299
+            break;
300 300
           case '22':
301
-            return '检查费(MRT)'
301
+            return '检查费(MRT)';
302 302
 
303
-            break
303
+            break;
304 304
           case '23':
305
-            return '检查费(其他)'
305
+            return '检查费(其他)';
306 306
 
307
-            break
307
+            break;
308 308
           case '24':
309
-            return '特需服务费'
309
+            return '特需服务费';
310 310
 
311
-            break
311
+            break;
312 312
           case '25':
313
-            return '杂费'
313
+            return '杂费';
314 314
 
315
-            break
315
+            break;
316 316
           case '26':
317
-            return '挂号费'
317
+            return '挂号费';
318 318
             break
319 319
 
320 320
         }
@@ -325,20 +325,20 @@
325 325
           record_date: record_date,
326 326
           patient_id: patient_id,
327 327
           prescription_id: prescription_id
328
-        }
329
-        console.log('params', params)
328
+        };
329
+        console.log('params', params);
330 330
         getChargePrint(params).then(response => {
331 331
           if (response.data.state == 1) {
332
-            var list = response.data.data.list
333
-            console.log('list9999999999', list)
334
-            this.list = list
335
-            var prescription = response.data.data.prescription
336
-            console.log('prescription', prescription)
337
-            this.prescription = prescription
338
-            var patient = response.data.data.patient
339
-            console.log('patient', patient)
340
-            this.patient = patient
341
-            var histpatient = response.data.data.hisPatient
332
+            var list = response.data.data.list;
333
+            console.log('list9999999999', list);
334
+            this.list = list;
335
+            var prescription = response.data.data.prescription;
336
+            console.log('prescription', prescription);
337
+            this.prescription = prescription;
338
+            var patient = response.data.data.patient;
339
+            console.log('patient', patient);
340
+            this.patient = patient;
341
+            var histpatient = response.data.data.hisPatient;
342 342
             console.log('hispatient', histpatient)
343 343
           }
344 344
         })
@@ -347,41 +347,48 @@
347 347
     created() {
348 348
 
349 349
       if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
350
-        this.orgname = xtuser.org.org_name
350
+        this.orgname = xtuser.org.org_name;
351 351
         var form = {
352 352
           'order_id': this.paramsObj.order_id,
353 353
           'patient_id': this.paramsObj.patient_id,
354 354
           'record_time': this.paramsObj.record_date,
355 355
           'admin_user_id': this.$store.getters.xt_user.user.id
356
-        }
357
-        var that = this
356
+        };
357
+        var that = this;
358 358
         axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
359 359
           params: form
360 360
         })
361 361
           .then(function(response) {
362 362
             if (response.data.state == 0) {
363
-              that.$message.error(response.data.msg)
363
+              that.$message.error(response.data.msg);
364 364
               return false
365 365
             } else {
366 366
               if (response.data.data.failed_code == -10) {
367
-                that.$message.error(response.data.data.msg)
367
+                // that.$message.error(response.data.data.msg)
368
+                that.$confirm(response.data.data.msg, '医保错误信息', {
369
+                  confirmButtonText: '确 定',
370
+                  type: 'warning'
371
+                }).then(() => {
372
+
373
+                }).catch(() => {
374
+                })
368 375
               } else {
369
-                that.result = response.data.data.result
370
-
371
-                that.org_code = response.data.data.org_code
372
-                that.patient_name = response.data.data.patient_name
373
-                that.doctor_code = response.data.data.doctor_code
374
-                that.doctor_name = response.data.data.doctor_name
375
-                that.name_arr = []
376
-                that.spec_arr = []
377
-                that.count_arr = []
378
-                that.price_arr = []
379
-                that.total_arr = []
376
+                that.result = response.data.data.result;
377
+
378
+                that.org_code = response.data.data.org_code;
379
+                that.patient_name = response.data.data.patient_name;
380
+                that.doctor_code = response.data.data.doctor_code;
381
+                that.doctor_name = response.data.data.doctor_name;
382
+                that.name_arr = [];
383
+                that.spec_arr = [];
384
+                that.count_arr = [];
385
+                that.price_arr = [];
386
+                that.total_arr = [];
380 387
                 for (let i = 0; i < that.result.transBody.outputlist1.length; i++) {
381
-                  that.name_arr.push(that.result.transBody.outputlist1[i].ake006)
382
-                  that.spec_arr.push(that.result.transBody.outputlist1[i].aka074)
383
-                  that.count_arr.push(that.result.transBody.outputlist1[i].akc226)
384
-                  that.price_arr.push(that.result.transBody.outputlist1[i].akc225)
388
+                  that.name_arr.push(that.result.transBody.outputlist1[i].ake006);
389
+                  that.spec_arr.push(that.result.transBody.outputlist1[i].aka074);
390
+                  that.count_arr.push(that.result.transBody.outputlist1[i].akc226);
391
+                  that.price_arr.push(that.result.transBody.outputlist1[i].akc225);
385 392
                   that.total_arr.push(that.result.transBody.outputlist1[i].akc264)
386 393
                 }
387 394
 
@@ -394,13 +401,13 @@
394 401
           })
395 402
 
396 403
       } else {
397
-        var record_date = this.paramsObj.record_date
398
-        console.log('record_date', record_date)
399
-        var patient_id = this.paramsObj.patient_id
400
-        console.log('patient_id', patient_id)
401
-        var prescription_id = this.paramsObj.prescription_id
402
-        this.getChargePrint(record_date, patient_id, prescription_id)
403
-        var xtuser = this.$store.getters.xt_user
404
+        var record_date = this.paramsObj.record_date;
405
+        console.log('record_date', record_date);
406
+        var patient_id = this.paramsObj.patient_id;
407
+        console.log('patient_id', patient_id);
408
+        var prescription_id = this.paramsObj.prescription_id;
409
+        this.getChargePrint(record_date, patient_id, prescription_id);
410
+        var xtuser = this.$store.getters.xt_user;
404 411
         this.orgname = xtuser.org.org_name
405 412
 
406 413
       }
@@ -409,11 +416,11 @@
409 416
     watch: {
410 417
       paramsObj: {//深度监听,可监听到对象、数组的变化
411 418
         handler(val, oldVal) {
412
-          this.paramsObj = val
413
-          this.patient_id = this.paramsObj.patient_id
414
-          var record_date = this.paramsObj.record
415
-          this.record_date = record_date
416
-          var prescription_id = this.paramsObj.prescription_id
419
+          this.paramsObj = val;
420
+          this.patient_id = this.paramsObj.patient_id;
421
+          var record_date = this.paramsObj.record;
422
+          this.record_date = record_date;
423
+          var prescription_id = this.paramsObj.prescription_id;
417 424
           this.prescription_id = prescription_id
418 425
 
419 426
         },

+ 3 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Прегледај датотеку

@@ -482,7 +482,7 @@
482 482
         ],
483 483
         isLastOrNextVisible: false,
484 484
         multipleTableHeight: '',
485
-        register_type: '',
485
+        register_type: 1,
486 486
         value: '0',
487 487
         search_project_keyword: '',
488 488
         form: {
@@ -515,7 +515,7 @@
515 515
         departmentOptions: [],
516 516
         departmentValue: '',
517 517
         total: 0,
518
-        state1: '',
518
+        state1: 1,
519 519
         request_record_date: '',
520 520
         state2: '',
521 521
         customTabIndex: 1,
@@ -550,7 +550,7 @@
550 550
         department: [],
551 551
         sick: [],
552 552
         diagnoses: [],
553
-        diagnose: '',
553
+        diagnose: 1,
554 554
         curTotal: 0,
555 555
         prescription_id: 0,
556 556
         tempDrugs: [],

+ 35 - 3
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Прегледај датотеку

@@ -232,9 +232,41 @@
232 232
       }
233 233
     },
234 234
     methods: {
235
-      changeOther(){
235
+      changeOther(patient_id){
236 236
         this.radio = 2;
237
-        this.change()
237
+        let params = {
238
+          'record_date': this.record_date,
239
+          'type': this.radio
240
+        };
241
+        this.patientTableData = [];
242
+
243
+        getSchedulePatientList(params).then(response => {
244
+          if (response.data.state == 0) {
245
+            this.$message.error(response.data.msg);
246
+            return false
247
+          } else {
248
+            this.patientTableData = response.data.data.list;
249
+            this.patientTableDataTwo = response.data.data.list;
250
+            this.cal_one = response.data.data.total_one;
251
+            this.cal_two = response.data.data.total_two;
252
+            this.admin_info = response.data.data.info;
253
+
254
+
255
+            if (this.patientTableData.length > 0) {
256
+              for(let i = 0; i < this.patientTableData.length; i++){
257
+                if (this.patientTableData[i].id == patient_id){
258
+                  this.$refs.tab.setCurrentRow(this.patientTableData[i]);
259
+                  this.oldCurrentRow = this.patientTableData[i];
260
+                  this.getPatientInfo(this.patientTableData[i])
261
+                }
262
+              }
263
+
264
+            }
265
+
266
+            this.prescriptionList = response.data.data.list.prescription
267
+
268
+          }
269
+        })
238 270
 
239 271
       },
240 272
       setData(val) {
@@ -1906,7 +1938,7 @@
1906 1938
       },
1907 1939
 
1908 1940
       getPrescriptionList(id) {
1909
-        getPrescriptionList(id).then(response => {
1941
+        getPrescriptionList(id,2).then(response => {
1910 1942
           if (response.data.state == 1) {
1911 1943
             this.centerDialogVisible = true;
1912 1944
             var list = response.data.data.list;

+ 71 - 50
src/xt_pages/outpatientRecord/outpatientRecord.vue Прегледај датотеку

@@ -279,13 +279,13 @@
279 279
     },
280 280
     methods: {
281 281
       changeStatus(id){
282
-        this.keywords = ""
282
+        this.keywords = "";
283 283
         this.getList()
284 284
       },
285 285
       getName(value){
286
-        console.log(value)
286
+        console.log(value);
287 287
         for(let i = 0; i < this.insutype_arr.length; i++){
288
-          console.log(this.insutype_arr[i].value)
288
+          console.log(this.insutype_arr[i].value);
289 289
           if(this.insutype_arr[i].value == value){
290 290
             return this.insutype_arr[i].label
291 291
           }
@@ -296,28 +296,35 @@
296 296
         let params ={
297 297
           id_card_no:this.currentObject.id_card_no,
298 298
           admin_user_id:  this.$store.getters.xt_user.user.id,
299
-        }
300
-        var that = this
299
+        };
300
+        var that = this;
301 301
         axios.get('http://127.0.0.1:9532/api/patient/info', {
302 302
           params: params
303 303
         })
304 304
           .then(function(response) {
305 305
             if (response.data.state == 0) {
306
-              that.$message.error(response.data.msg)
306
+              that.$message.error(response.data.msg);
307 307
               return false
308 308
             } else {
309 309
 
310 310
               if(response.data.data.failed_code == -10){
311
-                that.$message.error(response.data.data.msg)
311
+                // that.$message.error(response.data.data.msg)
312
+                that.$confirm(response.data.data.msg, '医保错误信息', {
313
+                  confirmButtonText: '确 定',
314
+                  type: 'warning'
315
+                }).then(() => {
316
+
317
+                }).catch(() => {
318
+                })
312 319
               }else{
313
-                that.dialogFormVisible = true
314
-                that.insutypes = []
315
-                that.psn_no =  response.data.data.info.output.baseinfo.psn_no
320
+                that.dialogFormVisible = true;
321
+                that.insutypes = [];
322
+                that.psn_no =  response.data.data.info.output.baseinfo.psn_no;
316 323
                 for (let i =0; i < response.data.data.info.output.insuinfo.length; i++){
317 324
                   let obj = {
318 325
                     value:response.data.data.info.output.insuinfo[i].insutype,
319 326
                     label:""
320
-                  }
327
+                  };
321 328
                   for(let b = 0; b < that.insutype_arr.length; b++){
322 329
                     if(that.insutype_arr[b].value == response.data.data.info.output.insuinfo[i].insutype){
323 330
                       obj.label = that.insutype_arr[b].label
@@ -342,7 +349,7 @@
342 349
       },
343 350
       putOnRecord(type, row) {
344 351
         if (type == 1) {
345
-          this.currentObject = row
352
+          this.currentObject = row;
346 353
 
347 354
           this.getGdybPatientInfo()
348 355
 
@@ -356,21 +363,28 @@
356 363
               'id': row.record.id,
357 364
               'admin_user_id': this.$store.getters.xt_user.user.id
358 365
 
359
-            }
360
-            var that = this
366
+            };
367
+            var that = this;
361 368
             axios.get('http://127.0.0.1:9532/api/psn/ncds/unputonrecord', {
362 369
               params: params
363 370
             })
364 371
               .then(function(response) {
365 372
                 if (response.data.state == 0) {
366
-                  that.$message.error(response.data.msg)
373
+                  that.$message.error(response.data.msg);
367 374
                   return false
368 375
                 } else {
369 376
 
370 377
                   if(response.data.data.failed_code == -10){
371
-                    that.$message.error(response.data.data.msg)
378
+                    // that.$message.error(response.data.data.msg)
379
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
380
+                      confirmButtonText: '确 定',
381
+                      type: 'warning'
382
+                    }).then(() => {
383
+
384
+                    }).catch(() => {
385
+                    })
372 386
                   }else{
373
-                    row.record.is_cancel = 2
387
+                    row.record.is_cancel = 2;
374 388
                     that.$message({ message: '撤销成功', type: 'success' })
375 389
                   }
376 390
                 }
@@ -400,11 +414,11 @@
400 414
       getInitData() {
401 415
         getInitData().then(response => {
402 416
           if (response.data.state == 0) {
403
-            this.$message.error(response.data.msg)
417
+            this.$message.error(response.data.msg);
404 418
             return false
405 419
           } else {
406
-            this.doctorList = response.data.data.doctors
407
-            this.department = response.data.data.department
420
+            this.doctorList = response.data.data.doctors;
421
+            this.department = response.data.data.department;
408 422
             this.sick = response.data.data.sick
409 423
 
410 424
           }
@@ -416,22 +430,22 @@
416 430
       },
417 431
       confirm() {
418 432
         if(this.currentObject.record.doctor_id == '' || this.currentObject.record.doctor_id  == 0){
419
-          this.$message.error("请选择医生")
433
+          this.$message.error("请选择医生");
420 434
           return
421 435
         }
422 436
 
423 437
         if(this.currentObject.record.department_id == '' || this.currentObject.record.department_id  == 0){
424
-          this.$message.error("请选择科室")
438
+          this.$message.error("请选择科室");
425 439
           return
426 440
         }
427 441
 
428 442
         if(this.currentObject.record.sick_type == '' || this.currentObject.record.sick_type  == 0){
429
-          this.$message.error("请选择疾病类型")
443
+          this.$message.error("请选择疾病类型");
430 444
           return
431 445
         }
432 446
 
433 447
         if(this.currentObject.record.insutype_value == '' || this.currentObject.record.insutype_value  == 0){
434
-          this.$message.error("请选择险种")
448
+          this.$message.error("请选择险种");
435 449
           return
436 450
         }
437 451
 
@@ -444,32 +458,39 @@
444 458
           doctor_id: this.currentObject.record.doctor_id,
445 459
           department_id:this.currentObject.record.department_id,
446 460
           admin_user_id: this.$store.getters.xt_user.user.id
447
-        }
461
+        };
448 462
 
449
-        var that = this
463
+        var that = this;
450 464
         axios.get('http://127.0.0.1:9532/api/psn/ncds/putonrecord', {
451 465
           params: params
452 466
         })
453 467
           .then(function(response) {
454 468
             if (response.data.state == 0) {
455
-              that.$message.error(response.data.msg)
469
+              that.$message.error(response.data.msg);
456 470
               return false
457 471
             } else {
458 472
               if(response.data.data.failed_code == -10){
459
-                that.$message.error(response.data.data.msg)
473
+                // that.$message.error(response.data.data.msg)
474
+                that.$confirm(response.data.data.msg, '医保错误信息', {
475
+                  confirmButtonText: '确 定',
476
+                  type: 'warning'
477
+                }).then(() => {
478
+
479
+                }).catch(() => {
480
+                })
460 481
               }else{
461
-                that.$message.success("备案成功")
462
-                that.dialogFormVisible = false
482
+                that.$message.success("备案成功");
483
+                that.dialogFormVisible = false;
463 484
                 for (let i = 0; i < that.tableData.length; i++) {
464 485
                   if (that.tableData[i].id == that.currentObject.id) {
465
-                    that.tableData[i].record.is_cancel =response.data.data.result.is_cancel
466
-                    that.tableData[i].record.id = response.data.data.result.id
467
-                    that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn
468
-                    that.tableData[i].record.psn_no = response.data.data.result.psn_no
469
-                    that.tableData[i].record.doctor_id = response.data.data.result.doctor_id
470
-                    that.tableData[i].record.department_id = response.data.data.result.department_id
471
-                    that.tableData[i].record.ctime = response.data.data.result.ctime
472
-                    that.tableData[i].record.insutype = response.data.data.result.insutype
486
+                    that.tableData[i].record.is_cancel =response.data.data.result.is_cancel;
487
+                    that.tableData[i].record.id = response.data.data.result.id;
488
+                    that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn;
489
+                    that.tableData[i].record.psn_no = response.data.data.result.psn_no;
490
+                    that.tableData[i].record.doctor_id = response.data.data.result.doctor_id;
491
+                    that.tableData[i].record.department_id = response.data.data.result.department_id;
492
+                    that.tableData[i].record.ctime = response.data.data.result.ctime;
493
+                    that.tableData[i].record.insutype = response.data.data.result.insutype;
473 494
                     that.tableData[i].record.sick_type = response.data.data.result.sick_type
474 495
 
475 496
                   }
@@ -510,19 +531,19 @@
510 531
           'limit': this.limit,
511 532
           'keywords': this.keywords,
512 533
           'is_put_on_record':this.is_put_on_record
513
-        }
514
-        this.tableData = []
515
-        this.patientLoading = true
534
+        };
535
+        this.tableData = [];
536
+        this.patientLoading = true;
516 537
         getRecordList(params).then(response => {
517 538
           if (response.data.state == 0) {
518
-            this.patientLoading = false
539
+            this.patientLoading = false;
519 540
 
520
-            this.$message.error(response.data.msg)
541
+            this.$message.error(response.data.msg);
521 542
             return false
522 543
           } else {
523
-            this.patientLoading = false
524
-            this.tableData = response.data.data.list
525
-            this.total = response.data.data.total
544
+            this.patientLoading = false;
545
+            this.tableData = response.data.data.list;
546
+            this.total = response.data.data.total;
526 547
 
527 548
             for (let i = 0; i < this.tableData.length; i++) {
528 549
 
@@ -545,11 +566,11 @@
545 566
 
546 567
       },
547 568
       handleSizeChange(limit) {
548
-        this.limit = limit
569
+        this.limit = limit;
549 570
         this.getList()
550 571
       },
551 572
       handleCurrentChange(page) {
552
-        this.page = page
573
+        this.page = page;
553 574
         this.getList()
554 575
 
555 576
       }, searchAction() {
@@ -557,8 +578,8 @@
557 578
       }
558 579
     },
559 580
     created() {
560
-      this.getList()
561
-      this.getInitData()
581
+      this.getList();
582
+      this.getInitData();
562 583
       this.fetchAllAdminUsers()
563 584
 
564 585
     }

+ 32 - 4
src/xt_pages/outpatientRegistration/index.vue Прегледај датотеку

@@ -965,7 +965,14 @@
965 965
                     return false
966 966
                   } else {
967 967
                     if (response.data.data.failed_code == -10) {
968
-                      that.$message.error(response.data.data.msg)
968
+                      // that.$message.error(response.data.data.msg)
969
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
970
+                        confirmButtonText: '确 定',
971
+                        type: 'warning'
972
+                      }).then(() => {
973
+
974
+                      }).catch(() => {
975
+                      })
969 976
                     } else {
970 977
                       that.$message({ message: '挂号成功', type: 'success' });
971 978
                       that.form.settlementValue = '';
@@ -1019,7 +1026,14 @@
1019 1026
                     that.loadingone = false;
1020 1027
 
1021 1028
                     if (response.data.data.failed_code == -10) {
1022
-                      that.$message.error(response.data.data.msg);
1029
+                      // that.$message.error(response.data.data.msg);
1030
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
1031
+                        confirmButtonText: '确 定',
1032
+                        type: 'warning'
1033
+                      }).then(() => {
1034
+
1035
+                      }).catch(() => {
1036
+                      })
1023 1037
 
1024 1038
                     } else {
1025 1039
                       that.$message({ message: '挂号成功', type: 'success' });
@@ -1226,7 +1240,14 @@
1226 1240
                     that.loadingone = false;
1227 1241
 
1228 1242
                     if (response.data.data.failed_code == -10) {
1229
-                      that.$message.error(response.data.data.msg)
1243
+                      // that.$message.error(response.data.data.msg)
1244
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
1245
+                        confirmButtonText: '确 定',
1246
+                        type: 'warning'
1247
+                      }).then(() => {
1248
+
1249
+                      }).catch(() => {
1250
+                      })
1230 1251
                     } else {
1231 1252
                       that.$message({ message: '挂号成功', type: 'success' });
1232 1253
                       that.form.settlementValue = '';
@@ -1277,7 +1298,14 @@
1277 1298
                   } else {
1278 1299
                     that.loadingone = false;
1279 1300
                     if (response.data.data.failed_code == -10) {
1280
-                      that.$message.error(response.data.data.msg)
1301
+                      // that.$message.error(response.data.data.msg)
1302
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
1303
+                        confirmButtonText: '确 定',
1304
+                        type: 'warning'
1305
+                      }).then(() => {
1306
+
1307
+                      }).catch(() => {
1308
+                      })
1281 1309
                     } else {
1282 1310
                       that.$message({ message: '挂号成功', type: 'success' });
1283 1311
                       that.form.settlementValue = '';

+ 79 - 65
src/xt_pages/outpatientRegistration/registrationHistory.vue Прегледај датотеку

@@ -454,7 +454,7 @@
454 454
 </template>
455 455
 
456 456
 <script>
457
-  const moment = require('moment')
457
+  const moment = require('moment');
458 458
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
459 459
   import { changePatient, getHisPatient, getHisPatientHistory } from '@/api/project/project'
460 460
   import { uParseTime } from '@/utils/tools'
@@ -604,12 +604,12 @@
604 604
       // this.tableData = arr
605 605
       //获取所有挂号号的患者
606 606
 
607
-      this.creator = this.$store.getters.xt_user.user.user_name
608
-      var today = moment().startOf('day').format('YYYY-MM-DD')
609
-      var todayUnix = Date.parse(today) / 1000
610
-      this.startUnix = todayUnix - 28800
607
+      this.creator = this.$store.getters.xt_user.user.user_name;
608
+      var today = moment().startOf('day').format('YYYY-MM-DD');
609
+      var todayUnix = Date.parse(today) / 1000;
610
+      this.startUnix = todayUnix - 28800;
611 611
 
612
-      this.getlist()
612
+      this.getlist();
613 613
       this.getDictionaryDataConfig()
614 614
     },
615 615
     methods: {
@@ -634,22 +634,22 @@
634 634
       //     this.tableData = a
635 635
       // },
636 636
       changeStart(val) {
637
-        this.start_time = val
637
+        this.start_time = val;
638 638
         this.getlist()
639 639
       },
640 640
       changeEnd(val) {
641
-        this.end_time = val
641
+        this.end_time = val;
642 642
         this.getlist()
643 643
       },
644 644
       changeRegister(val) {
645 645
         this.getlist()
646 646
       },
647 647
       handleSizeChange(val) {
648
-        this.limit = val
648
+        this.limit = val;
649 649
         this.getlist()
650 650
       },
651 651
       handleCurrentChange(val) {
652
-        this.page = val
652
+        this.page = val;
653 653
         this.getlist()
654 654
       },
655 655
       getlist() {
@@ -660,29 +660,29 @@
660 660
           register_type: this.register_type,
661 661
           limit: this.limit,
662 662
           page: this.page
663
-        }
664
-        console.log('params', params)
663
+        };
664
+        console.log('params', params);
665 665
         getHisPatientHistory(params).then(response => {
666 666
           if (response.data.state == 1) {
667
-            var history = response.data.data.history
668
-
669
-            console.log('history', history)
670
-            this.tableData = history
671
-            var total = response.data.data.total
672
-            console.log('total', total)
673
-            this.total = total
674
-            var department = response.data.data.department
675
-            console.log('department', department)
676
-            this.departMent = department
677
-            var doctor = response.data.data.doctor
678
-            console.log('doctor', doctor)
667
+            var history = response.data.data.history;
668
+
669
+            console.log('history', history);
670
+            this.tableData = history;
671
+            var total = response.data.data.total;
672
+            console.log('total', total);
673
+            this.total = total;
674
+            var department = response.data.data.department;
675
+            console.log('department', department);
676
+            this.departMent = department;
677
+            var doctor = response.data.data.doctor;
678
+            console.log('doctor', doctor);
679 679
             this.doctorList = doctor
680 680
           }
681 681
         })
682 682
 
683 683
       },
684 684
       getDepartMent(id) {
685
-        var name = ''
685
+        var name = '';
686 686
         for (let i = 0; i < this.departMent.length; i++) {
687 687
           if (id == this.departMent[i].id) {
688 688
             name = this.departMent[i].name
@@ -691,7 +691,7 @@
691 691
         return name
692 692
       },
693 693
       getDoctor(id) {
694
-        var user_name = ''
694
+        var user_name = '';
695 695
         for (let i = 0; i < this.doctorList.length; i++) {
696 696
           if (id == this.doctorList[i].admin_user_id) {
697 697
             user_name = this.doctorList[i].user_name
@@ -700,7 +700,7 @@
700 700
         return user_name
701 701
       },
702 702
       getMedicalTreatment(id) {
703
-        var name = ''
703
+        var name = '';
704 704
         for (let i = 0; i < this.medicalCare.length; i++) {
705 705
           if (this.medicalCare[i].id == id) {
706 706
             name = this.medicalCare[i].name
@@ -714,7 +714,7 @@
714 714
         }
715 715
         return ''
716 716
       }, toReturnSZPatient(val) {
717
-        var that = this
717
+        var that = this;
718 718
         this.$confirm('是否退号', '退号', {
719 719
           confirmButtonText: '确 定',
720 720
           cancelButtonText: '取 消',
@@ -730,14 +730,21 @@
730 730
           })
731 731
             .then(function(response) {
732 732
               if (response.data.state == 0) {
733
-                that.$message.error(response.data.msg)
733
+                that.$message.error(response.data.msg);
734 734
                 return false
735 735
               } else {
736 736
                 if (response.data.data.failed_code == -10) {
737
-                  that.$message.error(response.data.data.msg)
737
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
738
+                    confirmButtonText: '确 定',
739
+                    type: 'warning'
740
+                  }).then(() => {
741
+
742
+                  }).catch(() => {
743
+                  })
744
+                  // that.$message.error(response.data.data.msg)
738 745
 
739 746
                 } else {
740
-                  that.getlist()
747
+                  that.getlist();
741 748
                   that.$message({ message: '退号成功', type: 'success' })
742 749
                 }
743 750
               }
@@ -748,7 +755,7 @@
748 755
         })
749 756
       },
750 757
       toReturnPatient(row) {
751
-        var that = this
758
+        var that = this;
752 759
         this.$confirm('确认退号吗?', '退号', {
753 760
           confirmButtonText: '确 定',
754 761
           cancelButtonText: '取 消',
@@ -760,19 +767,26 @@
760 767
             'patient_id': row.patient_id,
761 768
             'record_time': this.getTime(row.record_date, '{y}-{m}-{d}'),
762 769
             'admin_user_id': this.$store.getters.xt_user.user.id
763
-          }
770
+          };
764 771
           axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
765 772
             params: params
766 773
           })
767 774
             .then(function(response) {
768 775
               if (response.data.state == 0) {
769
-                that.$message.error(response.data.msg)
776
+                that.$message.error(response.data.msg);
770 777
                 return false
771 778
               } else {
772 779
                 if (response.data.data.failed_code == -10) {
773
-                  that.$message.error(response.data.data.msg)
780
+                  // that.$message.error(response.data.data.msg)
781
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
782
+                    confirmButtonText: '确 定',
783
+                    type: 'warning'
784
+                  }).then(() => {
785
+
786
+                  }).catch(() => {
787
+                  })
774 788
                 } else {
775
-                  that.$message({ message: '退号成功', type: 'success', duration: 5000 })
789
+                  that.$message({ message: '退号成功', type: 'success', duration: 5000 });
776 790
                   that.getlist()
777 791
                 }
778 792
               }
@@ -795,101 +809,101 @@
795 809
       },
796 810
 
797 811
       querySearchAsync(keyword, cb) {
798
-        let key = ''
812
+        let key = '';
799 813
         if (keyword != undefined) {
800 814
           key = keyword
801 815
         }
802
-        let searchArray = []
816
+        let searchArray = [];
803 817
 
804 818
         var params = {
805 819
           keyword: key
806
-        }
807
-        console.log('params', params)
820
+        };
821
+        console.log('params', params);
808 822
         getHisPatient(params).then(response => {
809 823
           if (response.data.state == 1) {
810
-            searchArray = response.data.data.patient
811
-            console.log('searcharrya', searchArray)
824
+            searchArray = response.data.data.patient;
825
+            console.log('searcharrya', searchArray);
812 826
             cb(searchArray)
813 827
           }
814
-        })
828
+        });
815 829
         return searchArray
816 830
       },
817 831
 
818 832
       handleSelect(val) {
819
-        this.search_input = val.name
833
+        this.search_input = val.name;
820 834
         this.getlist()
821 835
       },
822 836
       handleClose(done) {
823 837
         done()
824 838
       },
825 839
       open(obj) {
826
-        this.dialogVisible = true
827
-        this.form = obj
840
+        this.dialogVisible = true;
841
+        this.form = obj;
828 842
         console.log(obj)
829 843
       },
830 844
       getDictionaryDataConfig(type) {
831
-        let arr = getDictionaryDataConfig('system', 'social_type')
832
-        let str = ''
845
+        let arr = getDictionaryDataConfig('system', 'social_type');
846
+        let str = '';
833 847
         arr.map(item => {
834 848
           if (item.id == type) {
835 849
             str = item.name
836 850
           }
837
-        })
851
+        });
838 852
         return str
839 853
       },
840 854
       getCertificates(type) {
841
-        let arr = this.certificates
842
-        let str = ''
855
+        let arr = this.certificates;
856
+        let str = '';
843 857
         arr.map(item => {
844 858
           if (item.value == type) {
845 859
             str = item.label
846 860
           }
847
-        })
861
+        });
848 862
         return str
849 863
       },
850 864
       getSettlement(type) {
851
-        let arr = this.settlement
852
-        let str = ''
865
+        let arr = this.settlement;
866
+        let str = '';
853 867
         arr.map(item => {
854 868
           if (item.value == type) {
855 869
             str = item.label
856 870
           }
857
-        })
871
+        });
858 872
         return str
859 873
       },
860 874
       getMedicalCare(type) {
861
-        let arr = this.medicalCare
862
-        let str = ''
875
+        let arr = this.medicalCare;
876
+        let str = '';
863 877
         arr.map(item => {
864 878
           if (item.id == type) {
865 879
             str = item.name
866 880
           }
867
-        })
881
+        });
868 882
         return str
869 883
       },
870 884
       getRegister(type) {
871
-        let arr = this.newRegister
872
-        let str = ''
885
+        let arr = this.newRegister;
886
+        let str = '';
873 887
         arr.map(item => {
874 888
           if (item.value == type) {
875 889
             str = item.label
876 890
           }
877
-        })
891
+        });
878 892
         return str
879 893
       },
880 894
       getDepartMent(type) {
881
-        let arr = this.departMent
882
-        let str = ''
895
+        let arr = this.departMent;
896
+        let str = '';
883 897
         arr.map(item => {
884 898
           if (item.id == type) {
885 899
             str = item.name
886 900
           }
887
-        })
901
+        });
888 902
         return str
889 903
       },
890 904
 
891 905
       getBanlance(id) {
892
-        var label = ''
906
+        var label = '';
893 907
         for (let i = 0; i < this.settlement.length; i++) {
894 908
           if (id == this.settlement[i].value) {
895 909
             label = this.settlement[i].label

+ 29 - 29
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue Прегледај датотеку

@@ -10,7 +10,7 @@
10 10
         <div class="dialysis-print-order">
11 11
          <div class="order-yy-name">{{orgName}}</div>
12 12
           <div class="order-title">药品出库登记表</div>
13
-         
13
+
14 14
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
15 15
 
16 16
           <table class="print-table" border="1">
@@ -37,7 +37,7 @@
37 37
               <td style="line-height: 50px">
38 38
                 <span>{{getUnit(item.drug_id)}}</span>
39 39
               </td>
40
-            
40
+
41 41
               <td style="line-height: 50px">
42 42
                   {{item.count}}
43 43
               </td>
@@ -58,7 +58,7 @@
58 58
              </tr>
59 59
             </tbody>
60 60
           </table>
61
-        
61
+
62 62
 
63 63
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
64 64
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
@@ -133,7 +133,7 @@
133 133
     },
134 134
     methods: {
135 135
       getDateTwo(){
136
-        var ptime = Math.round(new Date().getTime() / 1000)
136
+        var ptime = Math.round(new Date().getTime() / 1000);
137 137
         return "打印日期:"+uParseTime(ptime, '{y}-{m}-{d}')
138 138
       },
139 139
       getTime(value, temp) {
@@ -146,9 +146,9 @@
146 146
         return ''
147 147
       },
148 148
       printThisPage() {
149
-        var ptime = Math.round(new Date().getTime() / 1000)
150
-        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
151
-        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
149
+        var ptime = Math.round(new Date().getTime() / 1000);
150
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
151
+        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
152 152
         printJS({
153 153
           printable: 'dialysis-print-box',
154 154
           type: 'html',
@@ -156,9 +156,9 @@
156 156
           scanStyles: false
157 157
         })
158 158
       },
159
-   
159
+
160 160
       getUnit(id){
161
-        var name = ""
161
+        var name = "";
162 162
         for(let i=0;i<this.goodUnit.length;i++){
163 163
           if(this.goodUnit[i].id == id){
164 164
             name = this.goodUnit[i].name
@@ -169,22 +169,22 @@
169 169
     GetOrderDetail: function(order_id) {
170 170
             const params = {
171 171
             'id': order_id
172
-            }
172
+            };
173 173
             getDrugWarehouseOutInfo(params).then(response => {
174 174
             if (response.data.state == 0) {
175 175
 
176
-                this.$message.error(response.data.msg)
176
+                this.$message.error(response.data.msg);
177 177
                 return false
178 178
             } else {
179 179
               for (let i = 0; i < response.data.data.list.length; i++) {
180 180
                 this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
181 181
                }
182
-               var total_price = 0
182
+               var total_price = 0;
183 183
                for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
184 184
                  total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
185 185
                }
186
-               this.allPrice = total_price
187
-               this.warehousingOutInfo.info = response.data.data.info
186
+               this.allPrice = total_price;
187
+               this.warehousingOutInfo.info = response.data.data.info;
188 188
                this.handleSpanTempArr()
189 189
             }
190 190
             })
@@ -197,14 +197,14 @@
197 197
           is_use: this.is_use,
198 198
           is_charge: this.is_charge,
199 199
           is_inject: this.is_inject
200
-        }
200
+        };
201 201
         getBaseDrugLibList(params).then(response => {
202 202
           if (response.data.state == 0) {
203
-            this.$message.error(response.data.msg)
203
+            this.$message.error(response.data.msg);
204 204
             return false
205 205
           } else {
206
-            this.total = response.data.data.total
207
-            this.list = []
206
+            this.total = response.data.data.total;
207
+            this.list = [];
208 208
             for (let i = 0; i < response.data.data.list.length; i++) {
209 209
               this.list.push(response.data.data.list[i])
210 210
             }
@@ -213,7 +213,7 @@
213 213
         })
214 214
       },
215 215
       getUnit(id){
216
-        var name = ""
216
+        var name = "";
217 217
         for(let i=0;i<this.list.length;i++){
218 218
           if(this.list[i].id == id){
219 219
             name = this.list[i].min_unit
@@ -222,46 +222,46 @@
222 222
         return name
223 223
       },
224 224
       handleSpanTempArr(){
225
-        this.tempArr = []
225
+        this.tempArr = [];
226 226
 
227 227
         for (let i = 0; i < this.warehousingOutInfo.warehousingOutData.length; i++) {
228 228
           if (i === 0) {
229
-            this.tempArr.push(1)
229
+            this.tempArr.push(1);
230 230
             this.pos = 0
231 231
           } else {
232 232
             // 判断当前元素与上一个元素是否相同
233 233
             if (this.warehousingOutInfo.warehousingOutData[i].drug_id === this.warehousingOutInfo.warehousingOutData[i - 1].drug_id) {
234
-              this.tempArr[this.pos] += 1
234
+              this.tempArr[this.pos] += 1;
235 235
               this.tempArr.push(0)
236 236
             } else {
237
-              this.tempArr.push(1)
237
+              this.tempArr.push(1);
238 238
               this.pos = i
239 239
             }
240 240
           }
241 241
         }
242 242
 
243
-        let sameRowArr = [], sIdx = 0
243
+        let sameRowArr = [], sIdx = 0;
244 244
         this.warehousingOutInfo.warehousingOutData.forEach((item, index) => {
245
-          item.index = index
245
+          item.index = index;
246 246
           if (index === 0) {
247 247
             sameRowArr.push([index])
248 248
           } else {
249 249
             if (item.drug_id === this.warehousingOutInfo.warehousingOutData[index - 1].drug_id) {
250 250
               sameRowArr[sIdx].push(index)
251 251
             } else {
252
-              sIdx = sIdx + 1
252
+              sIdx = sIdx + 1;
253 253
               sameRowArr.push([index])
254 254
             }
255 255
           }
256
-        })
256
+        });
257 257
         this.sameRowArr = sameRowArr
258 258
       },
259 259
     },
260 260
     created() {
261 261
       this.orgName = this.$store.getters.xt_user.org.org_name;
262
-      const order_id = this.$route.query.id
262
+      const order_id = this.$route.query.id;
263 263
       this.orgId = this.$store.getters.xt_user.org.id;
264
-      this.GetOrderDetail(order_id)
264
+      this.GetOrderDetail(order_id);
265 265
       this.getList()
266 266
     }
267 267
 

+ 36 - 36
src/xt_pages/stock/stockOutOrderDetailPrint.vue Прегледај датотеку

@@ -25,7 +25,7 @@
25 25
                                     <td width="80">耗材名称</td>
26 26
                                     <td width="80">规格型号</td>
27 27
                                     <td width="80">单位</td>
28
-                                    <td width="80">出货数量</td> 
28
+                                    <td width="80">出货数量</td>
29 29
                                     <td width="80">出库价格</td>
30 30
                                     <td width="80">总价</td>
31 31
                                     <td width="80">批号</td>
@@ -79,7 +79,7 @@
79 79
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
80 80
 import { GetAllConfig,getWarehouseOutInfo,GetOutStockTotalCount,getGoodInfoList } from "@/api/stock";
81 81
 import print from 'print-js'
82
-const moment = require('moment')
82
+const moment = require('moment');
83 83
 export default {
84 84
     components:{
85 85
         BreadCrumb
@@ -121,7 +121,7 @@ export default {
121 121
     },
122 122
     methods:{
123 123
       printAction: function() {
124
-          const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 10px 5px; white-space: pre-line;} .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
124
+          const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 10px 5px; white-space: pre-line;} .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }';
125 125
           printJS({
126 126
           printable: 'print_content',
127 127
           type: 'html',
@@ -134,12 +134,12 @@ export default {
134 134
         GetConfigInfo() {
135 135
             GetAllConfig().then(response => {
136 136
             if (response.data.state == 0) {
137
-                this.$message.error(response.data.msg)
137
+                this.$message.error(response.data.msg);
138 138
                 return false
139 139
             } else {
140
-                this.manufacturer = response.data.data.manufacturer
141
-                this.dealer = response.data.data.dealer
142
-                this.goodInfo = response.data.data.goodInfo
140
+                this.manufacturer = response.data.data.manufacturer;
141
+                this.dealer = response.data.data.dealer;
142
+                this.goodInfo = response.data.data.goodInfo;
143 143
                 this.goodType = response.data.data.goodType
144 144
             }
145 145
             })
@@ -147,27 +147,27 @@ export default {
147 147
        GetOrderDetail: function(order_id) {
148 148
         const params = {
149 149
           'id': order_id
150
-        }
150
+        };
151 151
         getWarehouseOutInfo(params).then(response => {
152 152
           if (response.data.state == 0) {
153 153
 
154
-            this.$message.error(response.data.msg)
154
+            this.$message.error(response.data.msg);
155 155
             return false
156 156
           } else {
157
-           
157
+
158 158
             for (let i = 0; i < response.data.data.list.length; i++) {
159 159
               this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
160 160
             }
161
-            this.warehousingOutInfo.info = response.data.data.info
162
-            console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData)
163
-            var total_price = 0
161
+            this.warehousingOutInfo.info = response.data.data.info;
162
+            console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData);
163
+            var total_price = 0;
164 164
             for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
165 165
               total_price += this.getOutStockCount(this.warehousingOutInfo.warehousingOutData[i].good_id)*this.warehousingOutInfo.warehousingOutData[i].price
166 166
             }
167
-           this.allPrice = total_price
167
+           this.allPrice = total_price;
168 168
 
169
-           var wareoutList =  response.data.data.wareoutList
170
-           console.log("出库数据",wareoutList)
169
+           var wareoutList =  response.data.data.wareoutList;
170
+           console.log("出库数据",wareoutList);
171 171
            this.wareoutList = wareoutList
172 172
           }
173 173
         })
@@ -176,18 +176,18 @@ export default {
176 176
        GetTotalCount(time){
177 177
           var params = {
178 178
            warehouse_out_time:time
179
-          }
179
+          };
180 180
         GetOutStockTotalCount(params).then(response=>{
181 181
            if(response.data.state == 1){
182
-              var stockCount = response.data.data.stockCount
183
-              console.log("stockCount",stockCount)
182
+              var stockCount = response.data.data.stockCount;
183
+              console.log("stockCount",stockCount);
184 184
               this.stockCount = stockCount
185 185
            }
186 186
         })
187 187
       },
188
-      
188
+
189 189
        getSpecificationName: function(id) {
190
-        let name = ''
190
+        let name = '';
191 191
         for (let i = 0; i < this.goodInfo.length; i++) {
192 192
           if (this.goodInfo[i].id == id) {
193 193
             name = this.goodInfo[i].specification_name
@@ -196,7 +196,7 @@ export default {
196 196
         return name
197 197
       },
198 198
        getTypeName: function(id) {
199
-        let name = ''
199
+        let name = '';
200 200
         for (let i = 0; i < this.goodType.length; i++) {
201 201
           if (this.goodType[i].id == id) {
202 202
             name = this.goodType[i].type_name
@@ -205,7 +205,7 @@ export default {
205 205
         return name
206 206
       },
207 207
        getTypeNameOne: function(id) {
208
-        let name = ''
208
+        let name = '';
209 209
         for (let i = 0; i < this.goodInfo.length; i++) {
210 210
           if (this.goodInfo[i].id == id) {
211 211
             name = this.goodInfo[i].good_name
@@ -214,7 +214,7 @@ export default {
214 214
         return name
215 215
       },
216 216
       getOutStockCount(id){
217
-         var count = 0 
217
+         var count = 0;
218 218
          for(let i=0;i<this.stockCount.length;i++){
219 219
             if(id == this.stockCount[i].good_id){
220 220
               count = this.stockCount[i].count
@@ -223,7 +223,7 @@ export default {
223 223
          return count
224 224
       },
225 225
        getList() {
226
-        this.goodInfo.loading = true
226
+        this.goodInfo.loading = true;
227 227
         let params = {
228 228
           page: this.page,
229 229
           limit: this.limit,
@@ -231,13 +231,13 @@ export default {
231 231
           is_use:this.is_use,
232 232
           good_kind:this.good_kind,
233 233
           is_charge: this.is_charge,
234
-        }
234
+        };
235 235
         getGoodInfoList(params).then(response => {
236 236
           if (response.data.state == 0) {
237
-            this.$message.error(response.data.msg)
237
+            this.$message.error(response.data.msg);
238 238
             return false
239 239
           } else {
240
-            this.list = []
240
+            this.list = [];
241 241
             for (let i = 0; i < response.data.data.list.length; i++) {
242 242
               this.list.push(response.data.data.list[i])
243 243
             }
@@ -246,7 +246,7 @@ export default {
246 246
         })
247 247
       },
248 248
       getUnit(id){
249
-        var name = ""
249
+        var name = "";
250 250
         for(let i=0;i<this.list.length;i++){
251 251
           if(id == this.list[i].id){
252 252
              name = this.list[i].good_unit
@@ -265,7 +265,7 @@ export default {
265 265
       },
266 266
 
267 267
       getWarehouseOutInfoCount(warehouse_out_id,good_id){
268
-        var count = 0 
268
+        var count = 0;
269 269
          for(let i=0;i<this.wareoutList.length;i++){
270 270
             if(warehouse_out_id == this.wareoutList[i].warehouse_out_id && good_id == this.wareoutList[i].good_id){
271 271
                 count = this.wareoutList[i].count
@@ -273,16 +273,16 @@ export default {
273 273
          }
274 274
         return count
275 275
       }
276
-      
276
+
277 277
     },
278 278
     created(){
279 279
       this.orgName = this.$store.getters.xt_user.org.org_name;
280 280
       this.orgId = this.$store.getters.xt_user.org.id;
281 281
       const order_id = this.$route.query.id;
282
-      const warehouse_out_time = this.$route.query.warehouse_out_time
283
-      this.GetConfigInfo()
284
-      this.GetOrderDetail(order_id)
285
-      this.GetTotalCount(warehouse_out_time)
282
+      const warehouse_out_time = this.$route.query.warehouse_out_time;
283
+      this.GetConfigInfo();
284
+      this.GetOrderDetail(order_id);
285
+      this.GetTotalCount(warehouse_out_time);
286 286
       this.getList()
287 287
     }
288 288
 }
@@ -311,7 +311,7 @@ export default {
311 311
       border: 1px solid;
312 312
       border-collapse: collapse;
313 313
       padding: 2px;
314
-      
314
+
315 315
 
316 316
       thead {
317 317
         tr {