#
whycq
2024-05-30 0e78823dd6ee8de811246e687298b17b28cd80c7
pages/phyz/stationManage/pickAgain.vue
@@ -155,10 +155,21 @@
            // 判断添加的商品是否和已经添加的重复
            let dataList = this.dataList
            this.index = index
            if (this.dataList[index].stock > this.dataList[index].anfme) {
               this.maxCount = this.dataList[index].anfme
            let orderCount = this.dataList[index].stock
            let locCount = this.dataList[index].anfme
            let pickedAnfme = this.dataList[index].pickedAnfme
            // 预计最大要出库
            let ftCount = pickedAnfme + orderCount
            if (orderCount > locCount) {
               this.maxCount = locCount - pickedAnfme
            } else {
               this.maxCount = this.dataList[index].stock
               if (ftCount > locCount) {
                  this.maxCount = locCount -pickedAnfme
               } else {
                  this.maxCount = orderCount
               }
            }
            
            this.$refs.addItem.open()