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

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

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