瀏覽代碼

修改bug

chenrui 2 年之前
父節點
當前提交
cecc82daa2
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/views/numsGoodsShelves/recallManagement/detailModal.vue

+ 6 - 0
src/views/numsGoodsShelves/recallManagement/detailModal.vue

@@ -181,8 +181,14 @@ export default {
     },
     // 生成销售退货单
     setReturnBill () {
+      const flag = this.detailList.some(con => !con.confirmQty && con.confirmQty != 0)
+      if (flag) {
+        this.$message.warning('实退数量不正确!')
+        return
+      }
       this.spinning = true
       this.btnLoading = true
+
       generateSaleReturnBill({ recallBillSn: this.itemData.recallBillSn }).then(res => {
         if (res.status == 200) {
           this.$message.success(res.message)