|
|
@@ -31,7 +31,7 @@ export default function Index() { |
|
|
|
moment(moment(new Date(Date.now())).format('YYYY-MM-DD 23:59:59')), |
|
|
|
]); //日期选择器 |
|
|
|
//门店 |
|
|
|
const [storeIdArray, setStoreIdArray] = useState([]); |
|
|
|
const [storeIdArray, setStoreIdArray] = useState(""); |
|
|
|
const [storeSelect, setStoreSelect] = useState([]); |
|
|
|
//商品 |
|
|
|
const [goodsIdArray, setGoodsIdArray] = useState([]); |
|
|
@@ -45,6 +45,15 @@ export default function Index() { |
|
|
|
title: '门店名称', |
|
|
|
dataIndex: 'storeId', |
|
|
|
key: 'storeId', |
|
|
|
render: (text) => { |
|
|
|
const findGoods = storeSelect.find(item => item.id === text); |
|
|
|
if (findGoods) { |
|
|
|
return <span>{findGoods.name}</span> |
|
|
|
} else { |
|
|
|
return <span>暂无门店名称</span> |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '商品名称', |
|
|
@@ -61,7 +70,7 @@ export default function Index() { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '毛利率', |
|
|
|
title: '毛利率(%)', |
|
|
|
dataIndex: 'marginRatio', |
|
|
|
key: 'marginRatio', |
|
|
|
} |
|
|
|