1) 增加优惠券table

This commit is contained in:
zhangds 2022-09-01 15:03:46 +08:00
parent 502979a41d
commit 123435487c
1 changed files with 71 additions and 0 deletions

View File

@ -211,6 +211,8 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
setQuantity();
}, [form_rule_data.reduce, form_rule_data.restrict]);
const table_el = useRef(null);
useImperativeHandle(ref, () => ({
submit: submit,
}));
@ -438,6 +440,75 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
</Form>
</Card>
<Card style={{ margin: "10px auto" }} title={state.setup3_title}>
<FormItem labelname="商品范围" prop="rank" id="rank">
<div className="goods-boxs">
<Select
options={state.rankoptions}
multiple
value={state.rank}
placeholder="选择一项"
width={405}
onChange={(e) => {
onRankChange(e);
}}
/>
<Button
type="primary"
style={{ marginLeft: "20px" }}
loading={state.newGoodsBtnLoading}
onClick={() => {
addProduct("addProduct");
}}
>
新建商品
</Button>
<Button
type="primary"
style={{ marginLeft: "20px" }}
loading={state.newGoldLoading}
onClick={() => {
addProduct("addKnockGold");
}}
disabled={
!JSON.parse(sessionStorage.getItem("isEarlyWarningMan"))
}
>
新建立减金
</Button>
</div>
</FormItem>
<Grid
spliteColor={"#fff"}
tableData={state.tableData}
Column={tableColumn}
countbarVisible={false}
maxheight={state.tableHeight}
isSwitch={false}
page={state.page}
ref={table_el}
dataCount={state.dataCount}
pageChange={(e) => onPageChange(e)}
emptyText={
state.lodgingTable
? "抱歉,暂无相关数据记录"
: "查询 请输入【分销商】或【计划名称】或【key】进行查询"
}
countChange={(e) => onCountChange(e)}
checkChange={(data) => selectionFun(data)}
ComponentHandler={(com, rowData) => {
if (com == "dates") {
return (
<span>
{rowData.begin_time} {rowData.end_time}
</span>
);
}
}}
/>
</Card>
<div className="step-btn-group">
<Button type="primary" onClick={() => submit()}>
提交审核