|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
|
|
|
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){
|
|
|
this.$util.noStockRemind()
|
|
|
this.$msg('没有找到花材')
|
|
|
@@ -227,7 +227,7 @@ export default {
|
|
|
|
|
|
let storeIndex = -1
|
|
|
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 = {}
|
|
|
if(storeIndex == -1){
|