Browse Source

提交

tags/小炒逻辑变更前
gwbvipvip 2 years ago
parent
commit
fd0c28518a
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      src/pages/crm/coupon/coupon-Batch/components/sendCoupon.jsx
  2. +1
    -1
      src/pages/crm/coupon/coupon-Batch/index.jsx

+ 5
- 0
src/pages/crm/coupon/coupon-Batch/components/sendCoupon.jsx View File

@@ -200,6 +200,10 @@ const sendCoupon = (props) => {
message.error('请选择会员');
return;
}
if(targetKeys.length>props.lastNum){
message.error('优惠券数量不够');
return;
}
message.loading('正在发送...', key);
try {
await SendCouponByUser({
@@ -268,6 +272,7 @@ const sendCoupon = (props) => {
<Transfer
oneWay={oneWay}
showSearch
showSelectAll
onSearch={onSearch}
dataSource={mockData}
titles={['未选择', '已选中']}


+ 1
- 1
src/pages/crm/coupon/coupon-Batch/index.jsx View File

@@ -112,7 +112,7 @@ const CouponBatch = () => {
}}
onClick={() => {
sendCouponVisible(true);
setCurrentRow({ couponRangeId: record.id, couponId: record.couponId });
setCurrentRow({ couponRangeId: record.id, couponId: record.couponId,lastNum:record.lastNum });
}}
>
发放


Loading…
Cancel
Save