Browse Source

小bug修改

asd26269546 2 năm trước cách đây
mục cha
commit
9fb7cbdd8d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/my-modal-form/my-modal-material.vue

+ 1 - 1
src/components/my-modal-form/my-modal-material.vue

@@ -379,7 +379,7 @@ export default {
 
         this.data.forEach(item => {
           if (item.name.split('-')[0] === findObj.name) {
-            let canApplyNum = (findObj.canTakeQty - (quantity * item.width / 100)) / (item.width / 100)
+            let canApplyNum = (findObj.canTakeQty - (quantity * item.width / 100)) / (item.width / 100) - (item.width * item.userStockQty / 100)
             console.log('计算可领用数量')
             console.log(canApplyNum)
             this.$set(item, 'oldCanTakeQty', item.canTakeQty)