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
shenshaokai
jinfa-platform
Commits
5ed3843d
Commit
5ed3843d
authored
Jan 22, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 完善样式
parent
4d3e7a61
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
42 deletions
+71
-42
global.less
src/global/styles/global.less
+0
-9
reset.less
src/global/styles/reset.less
+14
-0
index.tsx
.../afterService/components/OuterCirculationRecord/index.tsx
+2
-2
index.tsx
src/pages/afterService/components/ReturnDetailInfo/index.tsx
+5
-3
index.tsx
...nents/ReturnInfoDrawer/components/SteamerTicket/index.tsx
+45
-24
index.tsx
src/pages/afterService/components/ReturnInfoDrawer/index.tsx
+2
-1
index.less
src/pages/afterService/components/Stamp/index.less
+3
-3
No files found.
src/global/styles/global.less
View file @
5ed3843d
...
...
@@ -358,12 +358,3 @@ a {
}
}
}
.mega-layout-container-content {
overflow: hidden;
}
.ant-form-item-label > label {
font-size: 12px !important;
color: #909399 !important;
}
src/global/styles/reset.less
View file @
5ed3843d
...
...
@@ -217,3 +217,16 @@
}
}
.ant-descriptions-item-label {
color: #909399 !important;
}
.mega-layout-container-content {
overflow: hidden;
}
.ant-form-item-label > label {
font-size: 12px !important;
color: #909399 !important;
}
\ No newline at end of file
src/pages/afterService/components/OuterCirculationRecord/index.tsx
View file @
5ed3843d
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-09-29 15:04:46
* @LastEditors: XieZhiXiong
* @LastEditTime: 202
0-12-24 10:55:51
* @LastEditTime: 202
1-01-22 11:45:59
* @Description: 外部流转记录
*/
import
React
from
'react'
;
...
...
@@ -77,7 +77,7 @@ const OuterCirculationRecord: React.FC<OuterCirculationRecordProps> = ({
title=
"外部流转记录"
>
<
PolymericTable
rowKey=
"
operateTime
"
rowKey=
"
step
"
dataSource=
{
dataSource
}
columns=
{
columns
}
loading=
{
false
}
...
...
src/pages/afterService/components/ReturnDetailInfo/index.tsx
View file @
5ed3843d
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-
18 17:50:38
* @LastEditTime: 2021-01-
22 10:33:27
* @Description: 退款明细
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -44,7 +44,7 @@ interface ReturnDetailInfoProps {
/**
* 退款事件
*/
onRefund
?:
(
id
:
number
)
=>
Promise
<
any
>
;
onRefund
?:
(
value
:
{
[
key
:
string
]:
any
}
)
=>
Promise
<
any
>
;
/**
* 确认事件
*/
...
...
@@ -220,8 +220,10 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
title
:
'提示'
,
icon
:
<
ExclamationCircleOutlined
/>,
content
:
`是否确认退款?`
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
()
{
return
onRefund
(
id
);
return
onRefund
(
{
id
}
);
},
});
}
...
...
src/pages/afterService/components/ReturnInfoDrawer/components/SteamerTicket/index.tsx
View file @
5ed3843d
/*
* @Author: XieZhiXiong
* @Date: 2020-12-18 17:44:26
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-22 11:32:06
* @Description:
*/
import
React
from
'react'
;
import
{
SchemaForm
,
SchemaField
,
FormPath
}
from
'@formily/antd'
;
import
styled
from
'styled-components'
;
import
{
toArr
}
from
'@formily/shared'
;
import
{
ArrayList
}
from
'@formily/react-shared-components'
;
import
Stamp
from
'../../../Stamp'
;
const
SteamerWrap
=
styled
(
props
=>
<
div
{
...
props
}
/>)
`
.ant-form-item {
margin-bottom: 0;
}
.mega-layout-container-content {
&.grid {
grid-row-gap: 0 !important;
}
}
`
const
ArrayCustom
=
props
=>
{
const
{
value
,
schema
,
className
,
editable
,
path
,
mutators
}
=
props
;
const
{
...
...
@@ -17,30 +36,32 @@ const ArrayCustom = props => {
}
=
schema
.
getExtendsComponentProps
()
||
{};
return
(
<
ArrayList
value=
{
value
}
minItems=
{
schema
.
minItems
}
maxItems=
{
schema
.
maxItems
}
editable=
{
editable
}
components=
{
{}
}
renders=
{
{
renderAddition
,
renderRemove
,
renderMoveDown
,
renderMoveUp
,
renderEmpty
// 允许开发者覆盖默认
}
}
>
{
toArr
(
value
).
map
((
item
,
index
)
=>
{
return
(
<
div
{
...
componentProps
}
key=
{
index
}
>
<
Stamp
imprinted
>
<
SchemaField
path=
{
FormPath
.
parse
(
path
).
concat
(
index
)
}
/>
</
Stamp
>
</
div
>
)
})
}
</
ArrayList
>
<
SteamerWrap
>
<
ArrayList
value=
{
value
}
minItems=
{
schema
.
minItems
}
maxItems=
{
schema
.
maxItems
}
editable=
{
editable
}
components=
{
{}
}
renders=
{
{
renderAddition
,
renderRemove
,
renderMoveDown
,
renderMoveUp
,
renderEmpty
// 允许开发者覆盖默认
}
}
>
{
toArr
(
value
).
map
((
item
,
index
)
=>
{
return
(
<
div
{
...
componentProps
}
key=
{
index
}
>
<
Stamp
imprinted
>
<
SchemaField
path=
{
FormPath
.
parse
(
path
).
concat
(
index
)
}
/>
</
Stamp
>
</
div
>
)
})
}
</
ArrayList
>
</
SteamerWrap
>
)
}
...
...
src/pages/afterService/components/ReturnInfoDrawer/index.tsx
View file @
5ed3843d
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 17:36:45
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-
06 14:30:16
* @LastEditTime: 2021-01-
22 11:07:42
* @Description: 查看退货数量与退款金额 抽屉
*/
import
React
from
'react'
;
...
...
@@ -187,6 +187,7 @@ const ReturnInfoDrawer: React.FC<ReturnInfoDrawerProps> = ({
onSubmit=
{
handleSubmit
}
actions=
{
schemaAction
}
schema=
{
schema
}
colon
/>
</
Drawer
>
);
...
...
src/pages/afterService/components/Stamp/index.less
View file @
5ed3843d
.stamp {
padding:
25
px 20px;
margin: 10px;
background: #F
FFFFF
;
padding:
16
px 20px;
margin: 1
6px 1
0px;
background: #F
AFBFC
;
box-shadow: 0px 4px 6px 0px rgba(23, 43, 77, 0.08), 0px 0px 1px 0px rgba(23, 43, 77, 0.12);
border-radius: 4px;
border-left: 2px solid #606266;
...
...
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