陈少旭 4 months ago
parent
commit
fcacbf1ea3

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue View File

@@ -916,7 +916,7 @@ export default {
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 920
             for (let i = 0; i < array.length; i++) {
921 921
               if (array[i].drug_code.length == 0) {
922 922
                 this.$message.error(array[i].drug_name + " 药品溯源码不能为空");

+ 1 - 3
src/xt_pages/stock/stockInOrderAdd.vue View File

@@ -787,7 +787,7 @@
787 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 791
               for (let i = 0; i < array.length; i++) {
792 792
                 if (array[i].good_code.length == 0) {
793 793
                   this.$message.error(array[i].good_name  + " 溯源码不能为空");
@@ -795,13 +795,11 @@
795 795
                   return;
796 796
                 }
797 797
 
798
-
799 798
                 var aaa =  array[i].good_code.split(",")
800 799
                 if(new Set(aaa).size !== aaa.length){
801 800
                   this.$message.error( array[i].good_name + " 溯源码不能重复");
802 801
                   this.loading = false;
803 802
                   return;
804
-
805 803
                 }
806 804
               }
807 805
             }