Browse Source

bug修复,采购退货 编辑 可退数量为0则不可添加

chenrui 3 years ago
parent
commit
d614e19511
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/purchasingManagement/purchaseReturn/edit.vue

+ 7 - 1
src/views/purchasingManagement/purchaseReturn/edit.vue

@@ -77,7 +77,13 @@
               </template>
               <!-- 操作 -->
               <template slot="action" slot-scope="text, record">
-                <a-button size="small" type="primary" class="button-primary" @click="handleAdd(record)" id="purchaseReturnEdit-add-btn">添加</a-button>
+                <a-button
+                  size="small"
+                  type="primary"
+                  class="button-primary"
+                  :disabled="record.refundableQty==0"
+                  @click="handleAdd(record)"
+                  id="purchaseReturnEdit-add-btn">添加</a-button>
               </template>
             </s-table>
           </a-collapse-panel>