XMLWAN 2 lat temu
rodzic
commit
f826e425f1

+ 2 - 2
src/xt_pages/stock/stockInOrderAdd.vue Wyświetl plik

@@ -765,8 +765,8 @@
765 765
                 this.warehousing_info_id  = info.id
766 766
                 for(let i=0;i<list.length;i++){
767 767
                   for(let j=0;j<dealerList.length;j++){
768
-                     if(list[i].dealer == dealerList[i].id){
769
-                        list[i].dealer = dealerList[i].dealer_name
768
+                     if(list[i].dealer == dealerList[j].id){
769
+                        list[i].dealer = dealerList[j].dealer_name
770 770
                      }
771 771
                   }
772 772
                   for(let s=0;s<manufacturerList.length;s++){

+ 2 - 2
src/xt_pages/stock/stockInOrderEdit.vue Wyświetl plik

@@ -760,8 +760,8 @@ export default {
760 760
               var dealerList = response.data.data.dealerList
761 761
               for(let i=0;i<list.length;i++){
762 762
                 for(let j=0;j<dealerList.length;j++){
763
-                 if(list[i].dealer == dealerList[i].id){
764
-                    list[i].dealer = dealerList[i].dealer_name
763
+                 if(list[i].dealer == dealerList[j].id){
764
+                    list[i].dealer = dealerList[j].dealer_name
765 765
                   }
766 766
                 }
767 767
                 for(let s=0;s<manufacturerList.length;s++){