Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
linweijiong
jinfa-admin
Commits
539a8cb2
Commit
539a8cb2
authored
Dec 24, 2020
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-system into dev
parents
bd2ab9ff
886063cf
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
110 additions
and
43 deletions
+110
-43
returnManageRoute.ts
config/routes/returnManageRoute.ts
+3
-3
env.js
env.js
+0
-0
CustomCategorySearch.tsx
src/components/NiceForm/components/CustomCategorySearch.tsx
+54
-0
CustomInputSearch.tsx
src/components/NiceForm/components/CustomInputSearch.tsx
+0
-6
Search.tsx
src/components/NiceForm/components/Search.tsx
+1
-0
index.tsx
src/components/NiceForm/index.tsx
+3
-1
NormalTable.tsx
src/components/PolymericTable/NormalTable.tsx
+1
-2
index.tsx
src/pages/commodity/effect/index.tsx
+6
-1
index.tsx
src/pages/commodity/productWillCheck/index.tsx
+8
-3
index.tsx
src/pages/commodity/products/index.tsx
+8
-3
index.tsx
src/pages/commodity/schema/index.tsx
+10
-16
index.tsx
src/pages/member/components/EquityInfo/index.tsx
+14
-6
index.tsx
src/pages/rfq/list/index.tsx
+0
-0
index.tsx
src/pages/systemManage/platformArg/index.tsx
+2
-2
No files found.
config/routes/returnManageRoute.ts
View file @
539a8cb2
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-12-18 10:42:26
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-
18 15:38:02
* @LastEditTime: 2020-12-
23 14:50:54
* @Description: 退货查询相关路由
*/
const
returnManageRoute
=
{
...
...
@@ -10,13 +10,13 @@ const returnManageRoute = {
name
:
'returnManage'
,
icon
:
'SmileOutlined'
,
routes
:
[
//
换货申请单查询
//
退货申请单查询
{
path
:
'/returnManage/query'
,
name
:
'query'
,
component
:
'@/pages/returnManage/query/index'
,
},
//
换货申请单详情
//
退货申请单详情
{
path
:
'/returnManage/query/detail'
,
name
:
'queryDetail'
,
...
...
env.js
View file @
539a8cb2
src/components/NiceForm/components/CustomCategorySearch.tsx
0 → 100644
View file @
539a8cb2
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Input
,
Space
,
Select
,
Button
,
Cascader
}
from
'antd'
;
import
{
useFieldState
,
FormPath
,
FormEffectHooks
,
useFormEffects
}
from
'@formily/antd'
;
/**
* 筛选项 搜索和远程数据结合的 Cascader
* 属性Data数据暂存至schema的props下的dataOption
*/
const
CustomCategorySearch
=
props
=>
{
const
justifyAlign
=
props
.
props
[
'x-component-props'
].
align
||
'flex-end'
const
option
=
props
.
props
[
'x-component-props'
].
dataoption
const
[
dataOption
,
setDataOption
]
=
useState
<
any
>
([])
const
[
value
,
setValue
]
=
useState
<
any
>
([])
useEffect
(()
=>
{
setDataOption
(
option
)
},
[
option
])
useFormEffects
(()
=>
{
FormEffectHooks
.
onFormReset$
().
subscribe
(()
=>
{
setValue
([])
})
})
const
onChange
=
(
value
,
selectedOptions
)
=>
{
props
.
mutators
.
change
(
value
[
value
.
length
-
1
])
setValue
(
value
)
}
const
displayRender
=
(
label
)
=>
{
return
label
[
label
.
length
-
1
];
}
return
(
<
Space
size=
{
20
}
style=
{
{
justifyContent
:
justifyAlign
,
width
:
'100%'
}
}
>
<
Cascader
options=
{
dataOption
}
onChange=
{
onChange
}
value=
{
value
}
displayRender=
{
displayRender
}
{
...
props
.
props
['
x
-
component
-
props
']}
/>
</
Space
>
);
};
CustomCategorySearch
.
defaultProps
=
{};
CustomCategorySearch
.
isFieldComponent
=
true
;
export
default
CustomCategorySearch
;
src/components/NiceForm/components/CustomInputSearch.tsx
View file @
539a8cb2
...
...
@@ -13,12 +13,6 @@ import { PublicApi } from '@/services/api';
const
{
Option
}
=
Select
// export interface SearchProps {
// value: string;
// mutators: any;
// props: any;
// }
const
CustomInputSearch
=
props
=>
{
const
{
form
}
=
props
const
justifyAlign
=
props
.
props
[
'x-component-props'
].
align
||
'flex-end'
...
...
src/components/NiceForm/components/Search.tsx
View file @
539a8cb2
...
...
@@ -56,6 +56,7 @@ const Search = props => {
<
Button
onClick=
{
()
=>
{
props
.
form
.
reset
();
sessionStorage
.
setItem
(
'tableRest'
,
'true'
)
props
.
form
.
submit
();
}
}
>
...
...
src/components/NiceForm/index.tsx
View file @
539a8cb2
...
...
@@ -8,7 +8,8 @@ import CustomStatus from './components/CustomStatus';
import
CustomAddArray
from
'./components/CustomAddArray'
;
import
CustomSlider
from
'./components/CustomSlider'
;
import
Search
from
'./components/Search'
;
import
CustomInputSearch
from
'./components/CustomInputSearch'
import
CustomInputSearch
from
'./components/CustomInputSearch'
;
import
CustomCategorySearch
from
'./components/CustomCategorySearch'
;
import
Submit
from
'./components/Submit'
;
import
Text
from
'./components/Text'
;
import
CardCheckBox
from
'./components/CardCheckBox'
;
...
...
@@ -77,6 +78,7 @@ export const componentExport = {
CustomRadio
,
Search
,
CustomInputSearch
,
CustomCategorySearch
,
Submit
,
Text
,
CardCheckBox
,
...
...
src/components/PolymericTable/NormalTable.tsx
View file @
539a8cb2
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-08-20 16:15:59
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-
09-10 14:07:35
* @LastEditTime: 2020-
12-21 13:57:49
* @Description: 简单封装了分页事件的 Table
*/
import
React
from
'react'
;
...
...
@@ -54,7 +54,6 @@ export default class NormalTable extends React.PureComponent<StandardTableProps>
showSizeChanger
:
true
,
showQuickJumper
:
true
,
onChange
:
this
.
handlePaginationChange
,
onShowSizeChange
:
this
.
handlePaginationChange
,
size
:
'small'
,
showTotal
:
()
=>
`共
${
pagination
.
total
||
0
}
条`
,
...
pagination
,
...
...
src/pages/commodity/effect/index.tsx
View file @
539a8cb2
...
...
@@ -21,7 +21,12 @@ export const searchBrandOptionEffect = (context: any, fieldName: string) => {
export
const
searchCustomerCategoryOptionEffect
=
(
context
:
any
,
fieldName
:
string
)
=>
{
context
.
getFieldState
(
fieldName
,
state
=>
{
PublicApi
.
getProductSelectGetSelectCategory
({
name
:
state
.
props
[
'x-component-props'
].
searchValue
}).
then
(
res
=>
{
// PublicApi.getProductSelectGetSelectCategory({ name: state.props['x-component-props'].searchValue }).then(res => {
// context.setFieldState(fieldName, state => {
// state.props['x-component-props'].dataoption = res.data
// })
// })
PublicApi
.
getProductPlatformGetCategoryTree
().
then
(
res
=>
{
context
.
setFieldState
(
fieldName
,
state
=>
{
state
.
props
[
'x-component-props'
].
dataoption
=
res
.
data
})
...
...
src/pages/commodity/productWillCheck/index.tsx
View file @
539a8cb2
...
...
@@ -43,11 +43,16 @@ const Products: React.FC<{}> = () => {
key
:
'memberName'
,
},
{
title
:
'品类'
,
title
:
'
会员
品类'
,
dataIndex
:
[
'customerCategory'
,
'name'
],
key
:
'customerCategory.name'
,
},
{
title
:
'平台品类'
,
dataIndex
:
[
'customerCategory'
,
'category'
,
'name'
],
key
:
'customerCategory.category.name'
,
},
{
title
:
'品牌'
,
dataIndex
:
[
'brand'
,
'name'
],
key
:
'brand.name'
,
...
...
@@ -164,8 +169,8 @@ const Products: React.FC<{}> = () => {
FormEffectHooks
.
onFieldChange$
(
'brandId'
).
subscribe
(
state
=>
{
searchBrandOptionEffect
(
actions
,
'brandId'
)
})
FormEffectHooks
.
onFieldChange$
(
'c
ustomerC
ategoryId'
).
subscribe
(
state
=>
{
searchCustomerCategoryOptionEffect
(
actions
,
'c
ustomerC
ategoryId'
)
FormEffectHooks
.
onFieldChange$
(
'categoryId'
).
subscribe
(
state
=>
{
searchCustomerCategoryOptionEffect
(
actions
,
'categoryId'
)
})
}
}
schema=
{
productWillSchema
}
...
...
src/pages/commodity/products/index.tsx
View file @
539a8cb2
...
...
@@ -42,11 +42,16 @@ const Products: React.FC<{}> = () => {
key
:
'memberName'
,
},
{
title
:
'品类'
,
title
:
'
会员
品类'
,
dataIndex
:
[
'customerCategory'
,
'name'
],
key
:
'customerCategory.name'
,
},
{
title
:
'平台品类'
,
dataIndex
:
[
'customerCategory'
,
'category'
,
'name'
],
key
:
'customerCategory.category.name'
,
},
{
title
:
'品牌'
,
dataIndex
:
[
'brand'
,
'name'
],
key
:
'brand.name'
,
...
...
@@ -152,8 +157,8 @@ const Products: React.FC<{}> = () => {
FormEffectHooks
.
onFieldChange$
(
'brandId'
).
subscribe
(
state
=>
{
searchBrandOptionEffect
(
actions
,
'brandId'
)
})
FormEffectHooks
.
onFieldChange$
(
'c
ustomerC
ategoryId'
).
subscribe
(
state
=>
{
searchCustomerCategoryOptionEffect
(
actions
,
'c
ustomerC
ategoryId'
)
FormEffectHooks
.
onFieldChange$
(
'categoryId'
).
subscribe
(
state
=>
{
searchCustomerCategoryOptionEffect
(
actions
,
'categoryId'
)
})
}
}
schema=
{
productSchema
}
...
...
src/pages/commodity/schema/index.tsx
View file @
539a8cb2
...
...
@@ -58,19 +58,16 @@ export const productSchema: ISchema = {
dataoption
:
[],
},
},
c
ustomerC
ategoryId
:
{
categoryId
:
{
type
:
'string'
,
'x-component'
:
'Custom
Input
Search'
,
'x-component'
:
'Custom
Category
Search'
,
'x-component-props'
:
{
placeholder
:
'
商品
品类'
,
placeholder
:
'
平台
品类'
,
showSearch
:
true
,
showArrow
:
true
,
defaultActiveFirstOption
:
false
,
filterOption
:
false
,
notFoundContent
:
null
,
style
:
{
width
:
'174px'
},
searchValue
:
null
,
dataoption
:
[]
dataoption
:
[]
,
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
},
},
},
status
:
{
...
...
@@ -223,19 +220,16 @@ export const productWillSchema: ISchema = {
dataoption
:
[],
},
},
c
ustomerC
ategoryId
:
{
categoryId
:
{
type
:
'string'
,
'x-component'
:
'Custom
Input
Search'
,
'x-component'
:
'Custom
Category
Search'
,
'x-component-props'
:
{
placeholder
:
'
商品
品类'
,
placeholder
:
'
平台
品类'
,
showSearch
:
true
,
showArrow
:
true
,
defaultActiveFirstOption
:
false
,
filterOption
:
false
,
notFoundContent
:
null
,
style
:
{
width
:
'174px'
},
searchValue
:
null
,
dataoption
:
[]
dataoption
:
[]
,
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
},
},
},
'NO_NAME_FIELD_$2'
:
{
...
...
src/pages/member/components/EquityInfo/index.tsx
View file @
539a8cb2
...
...
@@ -74,13 +74,13 @@ const EquityInfo: React.FC<EquityInfoProps> = ({
const
[
receivedPage
,
setReceivedPage
]
=
useState
(
1
);
const
[
receivedSize
,
setReceivedSize
]
=
useState
(
PAGE_SIZE
);
const
[
receivedTotal
,
setReceivedTotal
]
=
useState
(
0
);
const
[
receivedList
,
setReceivedList
]
=
useState
([]);
const
[
receivedList
,
setReceivedList
]
=
useState
<
ReceivedData
[]
>
([]);
const
[
receivedListLoading
,
setReceivedListLoading
]
=
useState
(
false
);
const
[
usagePage
,
setUsagePage
]
=
useState
(
1
);
const
[
usageSize
,
setUsageSize
]
=
useState
(
PAGE_SIZE
);
const
[
usageTotal
,
setUsageTotal
]
=
useState
(
0
);
const
[
usageList
,
setUsageList
]
=
useState
([]);
const
[
usageList
,
setUsageList
]
=
useState
<
UsageData
[]
>
([]);
const
[
usageListLoading
,
setUsageListLoading
]
=
useState
(
false
);
const
receivedColumns
:
EditableColumns
[]
=
[
...
...
@@ -146,7 +146,7 @@ const EquityInfo: React.FC<EquityInfoProps> = ({
},
];
const
getReceivedList
=
(
)
=>
{
const
getReceivedList
=
(
params
?)
=>
{
if
(
fetchReceivedList
)
{
if
(
receivedListLoading
)
{
return
;
...
...
@@ -155,6 +155,7 @@ const EquityInfo: React.FC<EquityInfoProps> = ({
fetchReceivedList
({
current
:
receivedPage
,
pageSize
:
receivedSize
,
...
params
,
}).
then
(
res
=>
{
const
{
data
=
[],
totalCount
=
0
}
=
(
res
||
{});
setReceivedList
(
data
);
...
...
@@ -165,7 +166,7 @@ const EquityInfo: React.FC<EquityInfoProps> = ({
}
};
const
getUsageList
=
(
)
=>
{
const
getUsageList
=
(
params
?)
=>
{
if
(
fetchUsageList
)
{
if
(
usageListLoading
)
{
return
;
...
...
@@ -174,6 +175,7 @@ const EquityInfo: React.FC<EquityInfoProps> = ({
fetchUsageList
({
current
:
usagePage
,
pageSize
:
usageSize
,
...
params
,
}).
then
(
res
=>
{
const
{
data
=
[],
totalCount
=
0
}
=
(
res
||
{});
setUsageList
(
data
);
...
...
@@ -206,13 +208,19 @@ const EquityInfo: React.FC<EquityInfoProps> = ({
const
handleReceivedPaginationChange
=
(
page
:
number
,
size
:
number
)
=>
{
setReceivedPage
(
page
);
setReceivedSize
(
size
);
getReceivedList
();
getReceivedList
({
current
:
page
,
pageSize
:
size
,
});
};
const
handleUsagePaginationChange
=
(
page
:
number
,
size
:
number
)
=>
{
setUsagePage
(
page
);
setUsageSize
(
size
);
getReceivedList
();
getUsageList
({
current
:
page
,
pageSize
:
size
,
});
};
return
(
...
...
src/pages/rfq/list/index.tsx
View file @
539a8cb2
src/pages/systemManage/platformArg/index.tsx
View file @
539a8cb2
...
...
@@ -31,8 +31,8 @@ const SensitiveWords: React.FC<{}> = () => {
dataIndex
:
'state'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
StatusSwitch
fieldNames=
"stat
us
"
handleConfirm=
{
()
=>
handleChangeStatus
(
record
.
id
,
record
.
stat
us
)
}
fieldNames=
"stat
e
"
handleConfirm=
{
()
=>
handleChangeStatus
(
record
.
id
,
record
.
stat
e
)
}
record=
{
record
}
expectTrueValue=
{
1
}
/>
...
...
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