fix: 修复商品范围列表table一样

This commit is contained in:
zhangds 2022-09-30 14:44:01 +08:00
parent 99cc27f69e
commit b36bd95504
1 changed files with 41 additions and 46 deletions

View File

@ -16,89 +16,84 @@ import "./style.less";
const tableColumn = [ const tableColumn = [
{ {
title: "商品编号", title: "商品编号",
name: "id", name: "product_id",
prop: "id", prop: "product_id",
className: "name",
type: "normal", type: "normal",
width: "auto", width: "auto",
}, },
{ {
title: "商品名称", title: "商品名称",
name: "product_name",
prop: "product_name", prop: "product_name",
name: "product_name",
width: "200px",
type: "normal", type: "normal",
width: "auto",
}, },
{ {
title: "官方价", title: "立减金平台批次号",
width: "200px",
prop: "channel_activity_id",
name: "channel_activity_id",
type: "normal",
},
{
title: "上游平台",
width: "auto",
prop: "upstream",
name: "upstream",
type: "normal",
},
{
title: "商品权重",
width: "auto",
prop: "weight",
name: "weight",
type: "normal",
},
{
title: "有效时间段",
width: "500px",
prop: "effectDate",
name: "effectDate",
type: "normal",
},
{
title: "官方价格",
name: "official_price", name: "official_price",
prop: "official_price", prop: "official_price",
type: "normal", type: "normal",
width: "auto", width: "auto",
}, },
{ {
title: "合同单价", title: "合同价",
name: "contract_price", name: "contract_price",
type: "normal",
prop: "contract_price", prop: "contract_price",
type: "normal",
width: "auto",
},
{
title: "库存数量",
name: "quantity",
prop: "quantity",
type: "normal",
width: "auto",
},
{
title: "批次号",
name: "channel_activity_id",
prop: "channel_activity_id",
type: "normal",
width: "auto",
},
{
title: "总预算",
name: "all_budget",
prop: "all_budget",
type: "normal",
width: "auto",
},
{
title: "有效时间段",
name: "effectDate",
prop: "effectDate",
type: "normal",
width: "auto", width: "auto",
}, },
{ {
title: "创建时间", title: "创建时间",
name: "create_time", name: "create_time",
prop: "create_time",
type: "normal", type: "normal",
width: "auto", prop: "create_time",
width: "250px",
}, },
{ {
title: "类型", title: "类型",
name: "product_type_text", name: "product_type_text",
type: "normal",
prop: "product_type_text", prop: "product_type_text",
type: "normal",
width: "auto",
},
{
title: "上游平台",
name: "upstream",
prop: "upstream",
type: "normal",
width: "auto", width: "auto",
}, },
{ {
title: "操作", title: "操作",
name: "opearo",
prop: "opearo", prop: "opearo",
name: "opearo",
type: "slot", type: "slot",
width: "200px", width: "200px",
}, },
]; ];
const UseCouponCommodity = () => { const UseCouponCommodity = () => {
const [state, setState] = useSetState({ const [state, setState] = useSetState({
tabList: [{ title: "商品范围列表", index: 0 }], tabList: [{ title: "商品范围列表", index: 0 }],