Browse Source

🐞 fix(修改数据):

修改数据
tags/小炒逻辑变更前
txb 2 years ago
parent
commit
4ce6e72131
3 changed files with 13 additions and 13 deletions
  1. +5
    -5
      src/pages/order/cost-of-sales/index.jsx
  2. +3
    -3
      src/pages/order/gross-profit-store-sales/index.jsx
  3. +5
    -5
      src/pages/order/sales-gross-profit/index.jsx

+ 5
- 5
src/pages/order/cost-of-sales/index.jsx View File

@@ -49,7 +49,7 @@ const LoadingCard = () => {


/** /**
* 销售成本分析 * 销售成本分析
* @returns
* @returns
*/ */
export default function Index() { export default function Index() {


@@ -82,16 +82,16 @@ export default function Index() {
//查询 //查询
const onQueryReportSalescost = async () => { const onQueryReportSalescost = async () => {
const jsonData = { const jsonData = {
"storeId": storeIdArray,
"goodsId": goodsIdArray,
"goodsTypeId": goodsTypeArray,
"storeId": storeIdArray[0],
"goodsId": goodsIdArray[0],
"goodsTypeId": goodsTypeArray[0],
"begintime": timeRange[0], "begintime": timeRange[0],
"endtime": timeRange[1], "endtime": timeRange[1],
current, current,
pageSize pageSize
} }
setShowLoading(true); setShowLoading(true);
const response = await costSalesAPI.getReportSalescost({});
const response = await costSalesAPI.getReportSalescost(jsonData);
setShowLoading(false); setShowLoading(false);
if (response.statusCode === 200) { if (response.statusCode === 200) {
setCostSalesData(response.data.data); setCostSalesData(response.data.data);


+ 3
- 3
src/pages/order/gross-profit-store-sales/index.jsx View File

@@ -29,7 +29,7 @@ const LoadingCard = () => {


/** /**
* 门店销售毛利分析 * 门店销售毛利分析
* @returns
* @returns
*/ */
export default function Index() { export default function Index() {


@@ -56,14 +56,14 @@ export default function Index() {
//查询 //查询
const onQueryReportSalescost = async () => { const onQueryReportSalescost = async () => {
const jsonData = { const jsonData = {
"storeId": storeIdArray,
"storeId": storeIdArray[0],
"begintime": timeRange[0], "begintime": timeRange[0],
"endtime": timeRange[1], "endtime": timeRange[1],
current, current,
pageSize pageSize
} }
setShowLoading(true); setShowLoading(true);
const response = await costSalesAPI.getReportOrgsalesmargin({});
const response = await costSalesAPI.getReportOrgsalesmargin(jsonData);
setShowLoading(false); setShowLoading(false);
if (response.statusCode === 200) { if (response.statusCode === 200) {
setCostSalesData(response.data.data); setCostSalesData(response.data.data);


+ 5
- 5
src/pages/order/sales-gross-profit/index.jsx View File

@@ -34,7 +34,7 @@ const LoadingCard = () => {


/** /**
* 销售毛利分析 * 销售毛利分析
* @returns
* @returns
*/ */
export default function Index() { export default function Index() {


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


Loading…
Cancel
Save