1) 增加优惠券新增列表

This commit is contained in:
zhangds 2022-08-29 10:10:48 +08:00
parent 86708c2688
commit 394890ae37
1 changed files with 98 additions and 22 deletions

View File

@ -26,6 +26,83 @@ const tableColumn = [
type: "normal",
width: "auto",
},
{
title: "商品名称",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "官方价",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "合同单价",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "库存数量",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "批次号",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "总预算",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "有效时间段",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "创建时间",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "类型",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "上游平台",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
{
title: "操作",
name: "key_code",
prop: "key_code",
type: "normal",
width: "auto",
},
];
const rules = {
@ -98,7 +175,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
labelWidth={"0px"}
maxLength={20}
height={"36px"}
countShow={false}
countShow={true}
width={"520px"}
alignment={"left"}
/>
@ -170,8 +247,8 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
countShow={false}
width={"130px"}
alignment={"left"}
unit="元"
/>
<span></span>
</div>
</Col>
</Row>
@ -193,6 +270,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
countShow={false}
width={"520px"}
alignment={"left"}
unit="个"
/>
</FormItem>
@ -212,30 +290,11 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
countShow={false}
width={"520px"}
alignment={"left"}
unit="元"
/>
</FormItem>
</Card>
<Card style={{ margin: "10px auto" }} title={state.setup3_title}>
<div className="query-box">
<Button type="primary" icon="plus" onClick={() => addCouponBtn()}>
新增优惠券
</Button>
<Ipt
onChange={(e) => setState({ key_word: e })}
value={state.key_word}
wordSearch={() => searchCallback()}
icon="search"
placeholder={"请输入批次号、名称、key批次名称、计划名称 进行搜索"}
countShow={false}
height={"36px"}
width={"260px"}
onClearItem={(e) =>
setState({ key_word: "", isQuery: !state.isQuery })
}
alignment={"left"}
/>
</div>
<FormItem labelname="商品范围" prop="rank" id="rank">
<div className="goods-boxs">
<Select
@ -271,6 +330,23 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
>
新建立减金
</Button>
<Ipt
onChange={(e) => setState({ key_word: e })}
value={state.key_word}
wordSearch={() => searchCallback()}
icon="search"
placeholder={
"请输入批次号、名称、key批次名称、计划名称 进行搜索"
}
countShow={false}
height={"36px"}
width={"260px"}
onClearItem={(e) =>
setState({ key_word: "", isQuery: !state.isQuery })
}
alignment={"left"}
/>
</div>
</FormItem>