瀏覽代碼

小bug修改

asd26269546 2 年之前
父節點
當前提交
9fb7cbdd8d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)