Commit b8b19332 authored by XieZhiXiong's avatar XieZhiXiong

chore: 非待提交审核状态的优惠券不可以批量选择

parent bd7eec67
......@@ -6,7 +6,7 @@
* @Description: 待提交审核商家优惠劵
*/
import React, { useState, useRef } from 'react';
import { history } from 'umi';
import { history, useIntl } from 'umi';
import {
Card,
Space,
......@@ -31,8 +31,6 @@ import { getMarketingCouponTypeList, getMarketingCouponWaitAuditPage, GetMarketi
import useSpliceArray from '@/hooks/useSpliceArray';
import { querySchema } from './schema';
import commonColumn from '../common/columns/coupon';
import { useIntl } from 'umi'
const { confirm } = Modal;
......@@ -144,6 +142,9 @@ const MerchantCouponUnsubmitted: React.FC = () => {
setSelectedRowKeys(keys);
},
selectedRowKeys: selectedRowKeys,
getCheckboxProps: (record: GetMarketingCouponWaitAuditPageResponseDetail) => ({
disabled: record.status !== 1, // 状态不等于待提交审核的禁用
}),
};
// 初始化高级筛选选项
......
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