shish 4 жил өмнө
parent
commit
c9809fbfa9

+ 2 - 2
ghsApp/src/mixins/globalMixins.js

@@ -218,7 +218,7 @@ export default {
 
 
       let currentList = this.getSelectInfo[this.pageType] || [];
       let currentList = this.getSelectInfo[this.pageType] || [];
 
 
-      let index = this.allProduct.findIndex(ele => ele.id == productIdCode)
+      let index = this.allProduct.findIndex(ele => Number(ele.id) == Number(productIdCode))
       if(index == -1){
       if(index == -1){
         this.$util.noStockRemind()
         this.$util.noStockRemind()
         this.$msg('没有找到花材')
         this.$msg('没有找到花材')
@@ -227,7 +227,7 @@ export default {
       
       
       let storeIndex = -1
       let storeIndex = -1
       if(!this.$util.isEmpty(currentList)){
       if(!this.$util.isEmpty(currentList)){
-        storeIndex = currentList.findIndex(ele=> ele.id == currentProduct.id)
+        storeIndex = currentList.findIndex(ele=> Number(ele.id) == Number(currentProduct.id))
       }
       }
       let currentItem = {}
       let currentItem = {}
       if(storeIndex == -1){
       if(storeIndex == -1){