Commit 63fda8bf authored by 武广's avatar 武广

fix: 修改可售日期自段

parent 6dc8ec9b
...@@ -101,13 +101,17 @@ export const takeawayGoodsColumn = options => { ...@@ -101,13 +101,17 @@ export const takeawayGoodsColumn = options => {
}, },
{ {
title: '可售日期', title: '可售日期',
dataIndex: 'saleTimeType', dataIndex: 'saleDateList',
width: 120, width: 120,
align: 'center', align: 'center',
hideInSearch: true, hideInSearch: true,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
<span>{_}</span> {_ && _.length && (
<div>
{_.length === 7 ? '不限制' : <span>{_.map(item => item.name).join('/')}</span>}
</div>
)}
<span <span
onClick={() => { onClick={() => {
setRecordID(record.id); setRecordID(record.id);
...@@ -464,11 +468,19 @@ export const virtualGoodsColumn = options => { ...@@ -464,11 +468,19 @@ export const virtualGoodsColumn = options => {
}, },
{ {
title: '可售日期', title: '可售日期',
dataIndex: 'saleTimeType', dataIndex: 'saleDateList',
width: 120, width: 120,
align: 'center', align: 'center',
hideInSearch: true, hideInSearch: true,
render: (_, record) => <span>{_}</span>, render: (_, record) => (
<Space>
{_ && _.length && (
<div>
{_.length === 7 ? '不限制' : <span>{_.map(item => item.name).join('/')}</span>}
</div>
)}
</Space>
),
}, },
{ {
title: '可售餐段', title: '可售餐段',
......
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