Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
39595dd3
Commit
39595dd3
authored
Dec 31, 2020
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-paltform into dev
parents
9478fe25
b68c1dd9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
32 deletions
+39
-32
index.ts
src/constants/index.ts
+8
-0
index.tsx
...xMall/components/Filter/components/ActiveStores/index.tsx
+3
-3
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+1
-1
index.tsx
src/pages/lxMall/shopList/index.tsx
+13
-13
index.ts
...quotaMenage/detail/components/RefundModal/schema/index.ts
+8
-15
index.ts
src/store/filter/index.ts
+6
-0
No files found.
src/constants/index.ts
View file @
39595dd3
...
@@ -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'
,
...
...
src/pages/lxMall/components/Filter/components/ActiveStores/index.tsx
View file @
39595dd3
/*
/*
* 活跃店铺
* 活跃店铺
* @Author: ghua
* @Author: ghua
* @Date: 2020-08-20 16:23:39
* @Date: 2020-08-20 16:23:39
* @Last Modified by: ghua
* @Last Modified by: ghua
* @Last Modified time: 2020-11-04 10:23:59
* @Last Modified time: 2020-11-04 10:23:59
*/
*/
...
@@ -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
}
/>
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
39595dd3
...
@@ -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
)
}
}
}
}
...
...
src/pages/lxMall/shopList/index.tsx
View file @
39595dd3
...
@@ -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
.
c
reditSortHighToLow
))
{
if
(
filterList
.
some
(
item
=>
item
.
type
===
FILTER_TYPE
.
shopC
reditSortHighToLow
))
{
onFilter
({
onFilter
({
key
:
null
,
key
:
null
,
title
:
'信用从高到低'
,
title
:
'信用从高到低'
,
type
:
FILTER_TYPE
.
c
reditSortHighToLow
,
type
:
FILTER_TYPE
.
shopC
reditSortHighToLow
,
})
})
onFilter
({
onFilter
({
key
:
'
c
reditSortLowToHigh'
,
key
:
'
shopC
reditSortLowToHigh'
,
title
:
'信用从低到高'
,
title
:
'信用从低到高'
,
type
:
FILTER_TYPE
.
c
reditSortLowToHigh
,
type
:
FILTER_TYPE
.
shopC
reditSortLowToHigh
,
})
})
}
else
if
(
filterList
.
some
(
item
=>
item
.
type
===
FILTER_TYPE
.
c
reditSortLowToHigh
))
{
}
else
if
(
filterList
.
some
(
item
=>
item
.
type
===
FILTER_TYPE
.
shopC
reditSortLowToHigh
))
{
onFilter
({
onFilter
({
key
:
null
,
key
:
null
,
title
:
'信用从低到高'
,
title
:
'信用从低到高'
,
type
:
FILTER_TYPE
.
c
reditSortLowToHigh
,
type
:
FILTER_TYPE
.
shopC
reditSortLowToHigh
,
})
})
onFilter
({
onFilter
({
key
:
'
c
reditSortHighToLow'
,
key
:
'
shopC
reditSortHighToLow'
,
title
:
'信用从高到低'
,
title
:
'信用从高到低'
,
type
:
FILTER_TYPE
.
c
reditSortHighToLow
,
type
:
FILTER_TYPE
.
shopC
reditSortHighToLow
,
})
})
}
else
{
}
else
{
onFilter
({
onFilter
({
key
:
'
c
reditSortHighToLow'
,
key
:
'
shopC
reditSortHighToLow'
,
title
:
'信用从高到低'
,
title
:
'信用从高到低'
,
type
:
FILTER_TYPE
.
c
reditSortHighToLow
,
type
:
FILTER_TYPE
.
shopC
reditSortHighToLow
,
})
})
}
}
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
.
c
reditSortLowToHigh
)
?
styles
.
active
:
''
)
}
/>
<
CaretUpOutlined
className=
{
cx
(
styles
.
icon
,
filterList
.
some
(
item
=>
item
.
type
===
FILTER_TYPE
.
shopC
reditSortLowToHigh
)
?
styles
.
active
:
''
)
}
/>
<
CaretDownOutlined
className=
{
cx
(
styles
.
icon
,
filterList
.
some
(
item
=>
item
.
type
===
FILTER_TYPE
.
c
reditSortHighToLow
)
?
styles
.
active
:
''
)
}
/>
<
CaretDownOutlined
className=
{
cx
(
styles
.
icon
,
filterList
.
some
(
item
=>
item
.
type
===
FILTER_TYPE
.
shopC
reditSortHighToLow
)
?
styles
.
active
:
''
)
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/pages/payandSettle/creditApplication/quotaMenage/detail/components/RefundModal/schema/index.ts
View file @
39595dd3
/*
* @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
:
'请选择'
,
},
},
...
...
src/store/filter/index.ts
View file @
39595dd3
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment