|
@@ -282,8 +282,8 @@ export default {
|
|
|
let item = JSON.parse(JSON.stringify(this.ruleForm));
|
|
|
let rnum = parseInt(item.return_num),
|
|
|
wnum = parseInt(item.wsm_num),
|
|
|
- anum = parseInt(item.send_num);
|
|
|
- rnum=parseInt(item.reissue_num)
|
|
|
+ anum = parseInt(item.send_num),
|
|
|
+ renum = parseInt(item.reissue_num);
|
|
|
|
|
|
if (rnum + wnum !== anum) {
|
|
|
this.$message.warning(
|
|
@@ -292,6 +292,11 @@ export default {
|
|
|
this.loading = false;
|
|
|
return;
|
|
|
}
|
|
|
+ if (renum > rnum) {
|
|
|
+ this.$message.warning("异常补发数量不能大于异常退货数量!");
|
|
|
+ this.loading = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
delete item["send_num"];
|
|
|
const res = await asyncRequest.orderinreturn(item);
|