陈少旭 6 月之前
父節點
當前提交
fcacbf1ea3
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1 1
      src/xt_pages/stock/drugs/drugStockInOrderAdd.vue
  2. 1 3
      src/xt_pages/stock/stockInOrderAdd.vue

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue 查看文件

916
             }
916
             }
917
           }
917
           }
918
 
918
 
919
-          if(this.$store.getters.xt_user.org_id == 0 || this.$store.getters.xt_user.org_id == 10138 || this.this.$store.getters.xt_user.org_id == 10278 || this.$store.getters.xt_user.org_id == 10610 ||  this.$store.getters.xt_user.org_id == 10537 ) {
919
+          if( this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10278 || this.$store.getters.xt_user.org_id == 10610 ||  this.$store.getters.xt_user.org_id == 10537 ) {
920
             for (let i = 0; i < array.length; i++) {
920
             for (let i = 0; i < array.length; i++) {
921
               if (array[i].drug_code.length == 0) {
921
               if (array[i].drug_code.length == 0) {
922
                 this.$message.error(array[i].drug_name + " 药品溯源码不能为空");
922
                 this.$message.error(array[i].drug_name + " 药品溯源码不能为空");

+ 1 - 3
src/xt_pages/stock/stockInOrderAdd.vue 查看文件

787
               array[i].packing_price = array[i].packing_price.toString()
787
               array[i].packing_price = array[i].packing_price.toString()
788
             }
788
             }
789
 
789
 
790
-            if(this.$store.getters.xt_user.org_id == 0 || this.this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10278 || this.$store.getters.xt_user.org_id == 10610 ||  this.$store.getters.xt_user.org_id == 10537 ) {
790
+            if( this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10278 || this.$store.getters.xt_user.org_id == 10610 ||  this.$store.getters.xt_user.org_id == 10537 ) {
791
               for (let i = 0; i < array.length; i++) {
791
               for (let i = 0; i < array.length; i++) {
792
                 if (array[i].good_code.length == 0) {
792
                 if (array[i].good_code.length == 0) {
793
                   this.$message.error(array[i].good_name  + " 溯源码不能为空");
793
                   this.$message.error(array[i].good_name  + " 溯源码不能为空");
795
                   return;
795
                   return;
796
                 }
796
                 }
797
 
797
 
798
-
799
                 var aaa =  array[i].good_code.split(",")
798
                 var aaa =  array[i].good_code.split(",")
800
                 if(new Set(aaa).size !== aaa.length){
799
                 if(new Set(aaa).size !== aaa.length){
801
                   this.$message.error( array[i].good_name + " 溯源码不能重复");
800
                   this.$message.error( array[i].good_name + " 溯源码不能重复");
802
                   this.loading = false;
801
                   this.loading = false;
803
                   return;
802
                   return;
804
-
805
                 }
803
                 }
806
               }
804
               }
807
             }
805
             }