|
|
@@ -499,6 +499,18 @@ export default {
|
|
|
if (productList.length === 0) {
|
|
|
return this.$message.error('至少选择一个退货产品');
|
|
|
}
|
|
|
+ let productListData = [];
|
|
|
+ productList.forEach((item) => {
|
|
|
+ if (!item.totalCount) {
|
|
|
+ productListData.push(item.productName);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ console.log(productListData);
|
|
|
+ if (productListData.length) {
|
|
|
+ return this.$message.error(
|
|
|
+ productListData.toString() + ' 退货数量不能为空!'
|
|
|
+ );
|
|
|
+ }
|
|
|
let commitData = Object.assign({}, this.form, {
|
|
|
totalAmount: Number(this.totalAmount),
|
|
|
productList
|