@@ -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)