Commit 870a14a2 authored by 郝聪敏's avatar 郝聪敏

feature: 订单下的每个商品必须设置物流信息

parent 40cfcb13
......@@ -41,7 +41,12 @@ const LogisticsForm = props => {
orderSkuIds = [...orderSkuIds, ...data.selectedGoods];
});
if (orderSkuIds.length !== Array.from(new Set(orderSkuIds)).length) {
notification.open({ message: '商品选择重复!' });
notification.open({ message: '商品选择重复!' });
return;
}
if (skuList.length !== orderSkuIds.length) {
notification.open({ message: '该订单下的所有商品必须设置物流信息!' });
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment