|
|
@@ -34,7 +34,7 @@ const LoadingCard = () => { |
|
|
|
|
|
|
|
/** |
|
|
|
* 销售毛利分析 |
|
|
|
* @returns |
|
|
|
* @returns |
|
|
|
*/ |
|
|
|
export default function Index() { |
|
|
|
|
|
|
@@ -67,16 +67,16 @@ export default function Index() { |
|
|
|
//查询 |
|
|
|
const onQueryReportSalescost = async () => { |
|
|
|
const jsonData = { |
|
|
|
"storeId": storeIdArray, |
|
|
|
"goodsId": goodsIdArray, |
|
|
|
"goodsTypeId": goodsTypeArray, |
|
|
|
"storeId": storeIdArray[0], |
|
|
|
"goodsId": goodsIdArray[0], |
|
|
|
"goodsTypeId": goodsTypeArray[0], |
|
|
|
"begintime": timeRange[0], |
|
|
|
"endtime": timeRange[1], |
|
|
|
current, |
|
|
|
pageSize |
|
|
|
} |
|
|
|
setShowLoading(true); |
|
|
|
const response = await costSalesAPI.getReportSalesmargin({}); |
|
|
|
const response = await costSalesAPI.getReportSalesmargin(jsonData); |
|
|
|
setShowLoading(false); |
|
|
|
if (response.statusCode === 200) { |
|
|
|
setCostSalesData(response.data.data); |
|
|
|