Commit 58a1e8b3 authored by 前端-许佳敏's avatar 前端-许佳敏
parents 25dce168 b882ce1f
...@@ -64,7 +64,9 @@ const ADVERTISE_WEB_COLUMN_TYPE = { ...@@ -64,7 +64,9 @@ const ADVERTISE_WEB_COLUMN_TYPE = {
const ADVERTISE_APP_COLUMN_TYPE = { const ADVERTISE_APP_COLUMN_TYPE = {
"4": '找店铺广告图', "4": '找店铺广告图',
"5": "人气店铺广告图" "5": "人气店铺广告图",
"6": "商品询价广告",
"7": "未开通电子签章推广页广告"
} }
// 内容管理 - 公告栏目 // 内容管理 - 公告栏目
......
...@@ -8,7 +8,18 @@ interface IProps { ...@@ -8,7 +8,18 @@ interface IProps {
const LineChart: React.FC<IProps> = (props) => { const LineChart: React.FC<IProps> = (props) => {
return ( return (
<Chart height={360} autoFit data={props.data}> <Chart
height={360}
autoFit
data={props.data}
scale={
{
count: {
tickInterval: 1,
}
}
}
>
<Legend position="top-left" /> <Legend position="top-left" />
{/* <Axis name="dateTime" /> {/* <Axis name="dateTime" />
<Axis name="count"/> */} <Axis name="count"/> */}
......
...@@ -57,7 +57,7 @@ const OrderStatistics: React.FC<Iprops> = (props) => { ...@@ -57,7 +57,7 @@ const OrderStatistics: React.FC<Iprops> = (props) => {
<Card <Card
headStyle={{borderBottom:'none'}} headStyle={{borderBottom:'none'}}
style={{height: '100%'}} style={{height: '100%'}}
title="会员统计" title="订单统计"
bordered={false} bordered={false}
extra={ extra={
<Radio.Group value={timeRadio} buttonStyle="solid" size="small" onChange={handleChangeTime}> <Radio.Group value={timeRadio} buttonStyle="solid" size="small" onChange={handleChangeTime}>
......
...@@ -83,7 +83,7 @@ const Settlement: React.FC = () => { ...@@ -83,7 +83,7 @@ const Settlement: React.FC = () => {
<img src={feeIcon3} alt=""/> <img src={feeIcon3} alt=""/>
<div className={styles.lineDescText}> <div className={styles.lineDescText}>
<p className={styles.lineDescTitle}>{settlements.tobeValifyCashout?.count}</p> <p className={styles.lineDescTitle}>{settlements.tobeValifyCashout?.count}</p>
<p className={styles.lineDescTip}>待提现申请</p> <p className={styles.lineDescTip}>审核提现申请</p>
</div> </div>
</div> </div>
<Link to={settlements.tobeValifyCashout?.link}>查看&nbsp;<RightOutlined /></Link> <Link to={settlements.tobeValifyCashout?.link}>查看&nbsp;<RightOutlined /></Link>
......
...@@ -40,7 +40,9 @@ const StatisticsColumn = (props) => { ...@@ -40,7 +40,9 @@ const StatisticsColumn = (props) => {
<p className={styles.lineDescTip}>{data.addProduct?.name}</p> <p className={styles.lineDescTip}>{data.addProduct?.name}</p>
</div> </div>
</div> </div>
<Link to={data.addProduct?.link}>查看&nbsp;<RightOutlined /></Link> {
data.addProduct?.link && <Link to={data.addProduct?.link}>查看&nbsp;<RightOutlined /></Link>
}
</div> </div>
</Col> </Col>
<Col xxl={12} xl={12} lg={24} md={12} sm={24} xs={24} className={styles.commodityTotalDesc} > <Col xxl={12} xl={12} lg={24} md={12} sm={24} xs={24} className={styles.commodityTotalDesc} >
...@@ -52,7 +54,9 @@ const StatisticsColumn = (props) => { ...@@ -52,7 +54,9 @@ const StatisticsColumn = (props) => {
<p className={styles.lineDescTip}>{data.toBeProductValify?.name}</p> <p className={styles.lineDescTip}>{data.toBeProductValify?.name}</p>
</div> </div>
</div> </div>
<Link to={data.toBeProductValify?.link}>查看&nbsp;<RightOutlined /></Link> {
data.toBeProductValify?.link && <Link to={data.toBeProductValify?.link}>查看&nbsp;<RightOutlined /></Link>
}
</div> </div>
</Col> </Col>
</Row> </Row>
...@@ -88,7 +92,9 @@ const StatisticsColumn = (props) => { ...@@ -88,7 +92,9 @@ const StatisticsColumn = (props) => {
<p className={styles.lineDescTip}>{data.addBrand?.name}</p> <p className={styles.lineDescTip}>{data.addBrand?.name}</p>
</div> </div>
</div> </div>
<Link to={data.addBrand?.link}>查看&nbsp;<RightOutlined /></Link> {
data.addBrand?.link && <Link to={data.addBrand?.link}>查看&nbsp;<RightOutlined /></Link>
}
</div> </div>
</Col> </Col>
<Col xxl={12} xl={12} lg={24} md={12} sm={24} xs={24} className={styles.commodityTotalDesc}> <Col xxl={12} xl={12} lg={24} md={12} sm={24} xs={24} className={styles.commodityTotalDesc}>
...@@ -100,7 +106,9 @@ const StatisticsColumn = (props) => { ...@@ -100,7 +106,9 @@ const StatisticsColumn = (props) => {
<p className={styles.lineDescTip}>{data.toBeBrandValify?.name}</p> <p className={styles.lineDescTip}>{data.toBeBrandValify?.name}</p>
</div> </div>
</div> </div>
<Link to={data.toBeBrandValify?.link}>查看&nbsp;<RightOutlined /></Link> {
data.toBeBrandValify?.link && <Link to={data.toBeBrandValify?.link}>查看&nbsp;<RightOutlined /></Link>
}
</div> </div>
</Col> </Col>
</Row> </Row>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description: 应付账款结算 * @Description: 应付账款结算
*/ */
import React, { useRef } from 'react'; import React, { useRef, useEffect, useState } from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout' import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { Card, Button, Modal, DatePicker, Tag, Space } from 'antd'; import { Card, Button, Modal, DatePicker, Tag, Space } from 'antd';
import NiceForm from '@/components/NiceForm'; import NiceForm from '@/components/NiceForm';
...@@ -37,6 +37,7 @@ const { RangePicker } = DatePicker; ...@@ -37,6 +37,7 @@ const { RangePicker } = DatePicker;
const formActions = createFormActions(); const formActions = createFormActions();
const PLATFORM_PAYER = 4; const PLATFORM_PAYER = 4;
const SettlementList = () => { const SettlementList = () => {
const [hasBrokerage, setHasBrokerage] = useState(true);
const ref = useRef<any>({}) const ref = useRef<any>({})
const fetchListData = async (params) => { const fetchListData = async (params) => {
// /settle/accounts/platform/settlement/pagePayableSettlement // /settle/accounts/platform/settlement/pagePayableSettlement
...@@ -105,6 +106,15 @@ const SettlementList = () => { ...@@ -105,6 +106,15 @@ const SettlementList = () => {
} }
] ]
useEffect(() => {
PublicApi.getSettleAccountsPlatformSettlementIsExistsBrokerage()
.then(({data, code}) => {
if(code === 1000 && !data) {
setHasBrokerage(false)
}
})
}, [])
/** /**
* *
* @param params 手动结算 * @param params 手动结算
...@@ -141,6 +151,7 @@ const SettlementList = () => { ...@@ -141,6 +151,7 @@ const SettlementList = () => {
const endTime = values.endTime ? values.endTime.format(format) + " 23:59:59" : ""; const endTime = values.endTime ? values.endTime.format(format) + " 23:59:59" : "";
ref.current.reload({...values, startTime, endTime}); ref.current.reload({...values, startTime, endTime});
} }
const frozenColumn = hasBrokerage ? columns : columns.filter((item: any) => item.dataIndex !== 'brokerage')
return ( return (
<PageHeaderWrapper> <PageHeaderWrapper>
<Card> <Card>
...@@ -148,7 +159,7 @@ const SettlementList = () => { ...@@ -148,7 +159,7 @@ const SettlementList = () => {
tableProps={{ tableProps={{
rowKey: 'id', rowKey: 'id',
}} }}
columns={columns} columns={frozenColumn}
currentRef={ref} currentRef={ref}
fetchTableData={(params: any) => fetchListData(params)} fetchTableData={(params: any) => fetchListData(params)}
controlRender={ controlRender={
......
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