Commit 3136b961 authored by XieZhiXiong's avatar XieZhiXiong

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

parent b0d0b27b
......@@ -27,7 +27,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import { FORM_FILTER_PATH } from '@/formSchema/const';
import NiceForm from '@/components/NiceForm';
import { getMarketingCouponPlatformTypeList, getMarketingCouponPlatformWaitAuditPage, GetMarketingCouponWaitAuditPageResponseDetail, postMarketingCouponPlatformWaitAuditDelete, postMarketingCouponPlatformWaitAuditSubmitBatch } from '@/services/MarketingV2Api';
import { getMarketingCouponPlatformTypeList, getMarketingCouponPlatformWaitAuditPage, GetMarketingCouponPlatformWaitAuditPageResponseDetail, postMarketingCouponPlatformWaitAuditDelete, postMarketingCouponPlatformWaitAuditSubmitBatch } from '@/services/MarketingV2Api';
import useSpliceArray from '@/hooks/useSpliceArray';
import { querySchema } from './schema';
import commonColumn from '../common/columns/coupon';
......@@ -96,7 +96,7 @@ const PlatformCouponUnsubmitted: React.FC = () => {
});
};
const defaultColumns: ColumnType<GetMarketingCouponWaitAuditPageResponseDetail>[] = commonColumn().concat([
const defaultColumns: ColumnType<GetMarketingCouponPlatformWaitAuditPageResponseDetail>[] = commonColumn().concat([
{
title: '操作',
dataIndex: 'option',
......@@ -138,6 +138,9 @@ const PlatformCouponUnsubmitted: React.FC = () => {
setSelectedRowKeys(keys);
},
selectedRowKeys: selectedRowKeys,
getCheckboxProps: (record: GetMarketingCouponPlatformWaitAuditPageResponseDetail) => ({
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