Commit 39595dd3 authored by Bill's avatar Bill

Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-paltform into dev

parents 9478fe25 b68c1dd9
...@@ -192,6 +192,14 @@ export enum FILTER_TYPE { ...@@ -192,6 +192,14 @@ export enum FILTER_TYPE {
*/ */
creditSortLowToHigh = 'creditSortLowToHigh', creditSortLowToHigh = 'creditSortLowToHigh',
/** /**
* 店铺信用从高到低
*/
shopCreditSortHighToLow = 'shopCreditSortHighToLow',
/**
* 店铺信用从低到高
*/
shopCreditSortLowToHigh = 'shopCreditSortLowToHigh',
/**
* 时间排序 * 时间排序
*/ */
dateSort = 'dateSort', dateSort = 'dateSort',
......
...@@ -40,7 +40,7 @@ const ActiveStores: React.FC<ActiveStoresPropsType> = (props) => { ...@@ -40,7 +40,7 @@ const ActiveStores: React.FC<ActiveStoresPropsType> = (props) => {
<div className={styles.active_stores_list}> <div className={styles.active_stores_list}>
{ {
shopList && shopList.map((item, index) => ( shopList && shopList.map((item, index) => (
<div className={styles.active_stores_list_item}> <div className={styles.active_stores_list_item} key={item.memberShopId}>
<div className={styles.active_stores_rank}>0{index+1}</div> <div className={styles.active_stores_rank}>0{index+1}</div>
<div className={styles.active_stores_logo}> <div className={styles.active_stores_logo}>
<ImageBox width={36} height={36} imgUrl={item.memberLogo} /> <ImageBox width={36} height={36} imgUrl={item.memberLogo} />
......
...@@ -417,7 +417,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => { ...@@ -417,7 +417,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
for (const item of orderList) { for (const item of orderList) {
for (const orderItem of item.orderList) { for (const orderItem of item.orderList) {
if (item.checkedList.includes(orderItem.id)) { if (item.checkedList.includes(orderItem.id)) {
count += orderItem.count count += Number(orderItem.count)
} }
} }
......
...@@ -28,7 +28,6 @@ const ShopList: React.FC<ShopListPropsType> = (props) => { ...@@ -28,7 +28,6 @@ const ShopList: React.FC<ShopListPropsType> = (props) => {
const [loading, setLoading] = useState<boolean>(true) const [loading, setLoading] = useState<boolean>(true)
const [shopList, setShopList] = useState<GetTemplateWebMemberShopWebMemberShopListResponseDetail[]>([]) const [shopList, setShopList] = useState<GetTemplateWebMemberShopWebMemberShopListResponseDetail[]>([])
const [totalCount, setTotalCount] = useState<number>(0) const [totalCount, setTotalCount] = useState<number>(0)
//FILTER_TYPE.activeStores,
const filterConfig = [FILTER_TYPE.category, FILTER_TYPE.useArea, FILTER_TYPE.activeStores, FILTER_TYPE.newJoin] const filterConfig = [FILTER_TYPE.category, FILTER_TYPE.useArea, FILTER_TYPE.activeStores, FILTER_TYPE.newJoin]
useEffect(() => { useEffect(() => {
...@@ -37,6 +36,7 @@ const ShopList: React.FC<ShopListPropsType> = (props) => { ...@@ -37,6 +36,7 @@ const ShopList: React.FC<ShopListPropsType> = (props) => {
}, [filterParam, search]) }, [filterParam, search])
useEffect(() => { useEffect(() => {
console.log(JSON.stringify(filterList), "filterList")
if (!isEmpty(filterList) || filterUpdate) { if (!isEmpty(filterList) || filterUpdate) {
handleFilterChange(filterList) handleFilterChange(filterList)
} }
...@@ -96,33 +96,33 @@ const ShopList: React.FC<ShopListPropsType> = (props) => { ...@@ -96,33 +96,33 @@ const ShopList: React.FC<ShopListPropsType> = (props) => {
/** /**
* 判断当前筛选项是否含有信用排序的筛选 * 判断当前筛选项是否含有信用排序的筛选
*/ */
if (filterList.some(item => item.type === FILTER_TYPE.creditSortHighToLow)) { if (filterList.some(item => item.type === FILTER_TYPE.shopCreditSortHighToLow)) {
onFilter({ onFilter({
key: null, key: null,
title: '信用从高到低', title: '信用从高到低',
type: FILTER_TYPE.creditSortHighToLow, type: FILTER_TYPE.shopCreditSortHighToLow,
}) })
onFilter({ onFilter({
key: 'creditSortLowToHigh', key: 'shopCreditSortLowToHigh',
title: '信用从低到高', title: '信用从低到高',
type: FILTER_TYPE.creditSortLowToHigh, type: FILTER_TYPE.shopCreditSortLowToHigh,
}) })
} else if (filterList.some(item => item.type === FILTER_TYPE.creditSortLowToHigh)) { } else if (filterList.some(item => item.type === FILTER_TYPE.shopCreditSortLowToHigh)) {
onFilter({ onFilter({
key: null, key: null,
title: '信用从低到高', title: '信用从低到高',
type: FILTER_TYPE.creditSortLowToHigh, type: FILTER_TYPE.shopCreditSortLowToHigh,
}) })
onFilter({ onFilter({
key: 'creditSortHighToLow', key: 'shopCreditSortHighToLow',
title: '信用从高到低', title: '信用从高到低',
type: FILTER_TYPE.creditSortHighToLow, type: FILTER_TYPE.shopCreditSortHighToLow,
}) })
} else { } else {
onFilter({ onFilter({
key: 'creditSortHighToLow', key: 'shopCreditSortHighToLow',
title: '信用从高到低', title: '信用从高到低',
type: FILTER_TYPE.creditSortHighToLow, type: FILTER_TYPE.shopCreditSortHighToLow,
}) })
} }
break break
...@@ -155,8 +155,8 @@ const ShopList: React.FC<ShopListPropsType> = (props) => { ...@@ -155,8 +155,8 @@ const ShopList: React.FC<ShopListPropsType> = (props) => {
<div className={styles.tool_bar_filter_item} onClick={() => handleSort(FILTER_TYPE.creditSort)}> <div className={styles.tool_bar_filter_item} onClick={() => handleSort(FILTER_TYPE.creditSort)}>
<span>信用</span> <span>信用</span>
<div className={styles.price_filter_box}> <div className={styles.price_filter_box}>
<CaretUpOutlined className={cx(styles.icon, filterList.some(item => item.type === FILTER_TYPE.creditSortLowToHigh) ? styles.active : '')} /> <CaretUpOutlined className={cx(styles.icon, filterList.some(item => item.type === FILTER_TYPE.shopCreditSortLowToHigh) ? styles.active : '')} />
<CaretDownOutlined className={cx(styles.icon, filterList.some(item => item.type === FILTER_TYPE.creditSortHighToLow) ? styles.active : '')} /> <CaretDownOutlined className={cx(styles.icon, filterList.some(item => item.type === FILTER_TYPE.shopCreditSortHighToLow) ? styles.active : '')} />
</div> </div>
</div> </div>
</div> </div>
......
/*
* @Author: XieZhiXiong
* @Date: 2020-12-30 14:49:11
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-30 14:56:41
* @Description:
*/
import { ISchema } from '@formily/antd'; import { ISchema } from '@formily/antd';
import { UPLOAD_TYPE } from '@/constants'; import { UPLOAD_TYPE } from '@/constants';
...@@ -62,21 +69,7 @@ export const repaymentModalSchema: ISchema = { ...@@ -62,21 +69,7 @@ export const repaymentModalSchema: ISchema = {
tradeChannel: { tradeChannel: {
type: 'string', type: 'string',
title: '选择支付渠道', title: '选择支付渠道',
enum: [ enum: [],
{
label: '微信',
value: 1,
},
{
label: '支付宝',
value: 2,
},
{
label: '银联',
value: 3,
},
],
default: 1,
'x-component-props': { 'x-component-props': {
placeholder: '请选择', placeholder: '请选择',
}, },
......
...@@ -205,6 +205,12 @@ class FilterStore { ...@@ -205,6 +205,12 @@ class FilterStore {
case FILTER_TYPE.creditSortHighToLow: case FILTER_TYPE.creditSortHighToLow:
tempFilterParam.sortCredit = 2 tempFilterParam.sortCredit = 2
break break
case FILTER_TYPE.shopCreditSortLowToHigh:
tempFilterParam.sortCreditPoint = 'ASC'
break
case FILTER_TYPE.shopCreditSortHighToLow:
tempFilterParam.sortCreditPoint = 'DESC'
break
case FILTER_TYPE.dateSortLowToHigh: case FILTER_TYPE.dateSortLowToHigh:
tempFilterParam.sortTime = 1 tempFilterParam.sortTime = 1
break break
......
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