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