陈少旭 2 weeks ago
parent
commit
b17f50bad4
2 changed files with 6 additions and 8 deletions
  1. 4 4
      src/xt_pages/Pharmacy/drugCode.vue
  2. 2 4
      src/xt_pages/drugSourceCode/drugQuery.vue

+ 4 - 4
src/xt_pages/Pharmacy/drugCode.vue View File

@@ -500,16 +500,16 @@ export default {
500 500
             });
501 501
           return false
502 502
         } else {
503
-          this.isloading = true
503
+          that.isloading = true
504 504
 
505 505
           //有打开则调用接口
506 506
           axios.get('http://127.0.0.1:9532/api/changedrug/five', {params: params}).then(function (response) {
507 507
             if (response.data.state == 0) {
508
-              this.isloading = false
508
+              that.isloading = false
509 509
               that.$message.error(response.data.data.msg);
510 510
               return false
511 511
             } else {
512
-              this.isloading = false
512
+              that.isloading = false
513 513
               if (response.data.data.failed_code == -10) {
514 514
                 that.$confirm(response.data.data.msg, '医保错误信息', {
515 515
                   confirmButtonText: '确 定',
@@ -523,7 +523,7 @@ export default {
523 523
               }
524 524
             }
525 525
           }).catch(function (error) {
526
-            this.isloading = false
526
+            that.isloading = false
527 527
           })
528 528
         }
529 529
       }).catch(function (error) {

+ 2 - 4
src/xt_pages/drugSourceCode/drugQuery.vue View File

@@ -639,9 +639,8 @@ export default {
639 639
           return false
640 640
         } else {
641 641
 
642
-          this.tableData = []
642
+          that.tableData = []
643 643
           if(that.stock_type == 1){
644
-
645 644
             axios.get('http://127.0.0.1:9532/api/3508',{params:params}).then(function(response) {
646 645
               if (response.data.state == 0) {
647 646
                 that.$message.error(response.data.data.msg);
@@ -654,6 +653,7 @@ export default {
654 653
                   }).then(() => {
655 654
 
656 655
                   }).catch(() => {
656
+
657 657
                   })
658 658
                 }else{
659 659
                   that.tableData = that.tableData.concat(response.data.data.info)
@@ -806,8 +806,6 @@ export default {
806 806
           .catch(() => {});
807 807
       })
808 808
 
809
-
810
-
811 809
     },
812 810
     change(){
813 811