Browse Source

修改bug

chenrui 2 years ago
parent
commit
cecc82daa2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/views/numsGoodsShelves/recallManagement/detailModal.vue

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

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