Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
3dd83028
Commit
3dd83028
authored
Jul 02, 2021
by
王苓芝
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'afterSale' into 'master'
After sale See merge request
!9
parents
9b7e504d
1f95e398
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
index.jsx
src/pages/afterSale/appeal/index.jsx
+4
-2
staticdata.js
src/pages/afterSale/appeal/staticdata.js
+8
-8
index.jsx
src/pages/orderManage/pendingDeliveryOrder/index.jsx
+3
-4
No files found.
src/pages/afterSale/appeal/index.jsx
View file @
3dd83028
...
@@ -16,6 +16,7 @@ const Appeal = () => {
...
@@ -16,6 +16,7 @@ const Appeal = () => {
const
[
selectedRow
,
getRow
]
=
useState
({});
const
[
selectedRow
,
getRow
]
=
useState
({});
const
[
imgData
,
getImgData
]
=
useState
([]);
const
[
imgData
,
getImgData
]
=
useState
([]);
const
[
imgTitle
,
changeImgTitle
]
=
useState
(
''
);
const
[
imgTitle
,
changeImgTitle
]
=
useState
(
''
);
const
table
=
useRef
();
const
table
=
useRef
();
const
openDetail
=
async
row
=>
{
const
openDetail
=
async
row
=>
{
const
detailData
=
await
getDetail
({
appealNo
:
row
.
appealNo
});
const
detailData
=
await
getDetail
({
appealNo
:
row
.
appealNo
});
...
@@ -33,7 +34,8 @@ const Appeal = () => {
...
@@ -33,7 +34,8 @@ const Appeal = () => {
table
.
current
.
reload
();
table
.
current
.
reload
();
}
}
};
};
const
openImgModal
=
imgList
=>
{
const
openImgModal
=
imgStr
=>
{
const
imgList
=
imgStr
?
imgStr
.
split
(
'
,
'
)
:
[];
if
(
!
imgList
.
length
)
{
if
(
!
imgList
.
length
)
{
notification
.
error
({
notification
.
error
({
message
:
'
啊哦~没有数据!
'
,
message
:
'
啊哦~没有数据!
'
,
...
@@ -73,7 +75,7 @@ const Appeal = () => {
...
@@ -73,7 +75,7 @@ const Appeal = () => {
}
}
}
}
columns=
{
columns
(
res
)
}
columns=
{
columns
(
res
)
}
request=
{
params
=>
query
({
...
params
})
}
request=
{
params
=>
query
({
...
params
})
}
rowKey=
{
r
=>
r
.
order
No
}
rowKey=
{
r
=>
r
.
appeal
No
}
expandIconColumnIndex=
{
10
}
expandIconColumnIndex=
{
10
}
actionRef=
{
table
}
actionRef=
{
table
}
bordered
bordered
...
...
src/pages/afterSale/appeal/staticdata.js
View file @
3dd83028
...
@@ -94,10 +94,10 @@ export function columns(res) {
...
@@ -94,10 +94,10 @@ export function columns(res) {
dataIndex
:
'
proofs
'
,
dataIndex
:
'
proofs
'
,
key
:
'
proofs
'
,
key
:
'
proofs
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
render
:
proofs
=>
{
render
:
(
_
,
row
)
=>
(
const
list
=
proofs
&&
proofs
!==
'
-
'
?
proofs
.
split
(
'
,
'
)
:
[];
//
const list = proofs && proofs !== '-' ? proofs.split(',') : [];
return
<
a
onClick
=
{()
=>
openImgModal
(
list
)}
>
查看凭证
<
/a>
;
<
a
onClick
=
{()
=>
openImgModal
(
row
.
proofs
)}
>
查看凭证
<
/a
>
}
,
)
,
},
},
{
{
title
:
'
申诉单创建时间
'
,
title
:
'
申诉单创建时间
'
,
...
@@ -126,10 +126,10 @@ export function columns(res) {
...
@@ -126,10 +126,10 @@ export function columns(res) {
dataIndex
:
'
supplement
'
,
dataIndex
:
'
supplement
'
,
key
:
'
supplement
'
,
key
:
'
supplement
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
render
:
supplement
=>
{
render
:
(
_
,
row
)
=>
(
const
list
=
supplement
&&
supplement
!==
'
-
'
?
supplement
.
split
(
'
,
'
)
:
[];
//
const list = supplement && supplement !== '-' ? supplement.split(',') : [];
return
<
a
onClick
=
{()
=>
openImgModal
(
list
)}
>
查看补充资料
<
/a>
;
<
a
onClick
=
{()
=>
openImgModal
(
row
.
supplement
)}
>
查看补充资料
<
/a
>
}
,
)
,
},
},
{
{
title
:
'
协商结果
'
,
title
:
'
协商结果
'
,
...
...
src/pages/orderManage/pendingDeliveryOrder/index.jsx
View file @
3dd83028
...
@@ -194,8 +194,8 @@ const TableList = props => {
...
@@ -194,8 +194,8 @@ const TableList = props => {
},
},
{
{
title
:
'
订单开始时间
'
,
title
:
'
订单开始时间
'
,
dataIndex
:
'
begin
Time
'
,
dataIndex
:
'
start
Time
'
,
key
:
'
begin
Time
'
,
key
:
'
start
Time
'
,
valueType
:
'
date
'
,
valueType
:
'
date
'
,
hideInTable
:
true
,
hideInTable
:
true
,
},
},
...
@@ -263,7 +263,6 @@ const TableList = props => {
...
@@ -263,7 +263,6 @@ const TableList = props => {
const
transformedParam
=
{
const
transformedParam
=
{
...
params
,
...
params
,
logisticsStatus
:
props
.
type
||
1
,
logisticsStatus
:
props
.
type
||
1
,
startTime
:
params
.
beginTime
,
pageNo
:
params
.
current
,
pageNo
:
params
.
current
,
pageSize
:
params
.
pageSize
||
20
,
pageSize
:
params
.
pageSize
||
20
,
};
};
...
@@ -299,7 +298,7 @@ const TableList = props => {
...
@@ -299,7 +298,7 @@ const TableList = props => {
onClick=
{
()
=>
{
onClick=
{
()
=>
{
if
(
ref
.
current
)
{
if
(
ref
.
current
)
{
const
obj
=
{
...
ref
.
current
.
getFieldsValue
(),
logisticsStatus
:
props
.
type
||
1
};
const
obj
=
{
...
ref
.
current
.
getFieldsValue
(),
logisticsStatus
:
props
.
type
||
1
};
obj
.
beginTime
=
obj
.
beginTime
&&
moment
(
obj
.
begin
Time
).
format
(
'
YYYY-MM-DD
'
);
obj
.
startTime
=
obj
.
startTime
&&
moment
(
obj
.
start
Time
).
format
(
'
YYYY-MM-DD
'
);
obj
.
endTime
=
obj
.
endTime
&&
moment
(
obj
.
endTime
).
format
(
'
YYYY-MM-DD
'
);
obj
.
endTime
=
obj
.
endTime
&&
moment
(
obj
.
endTime
).
format
(
'
YYYY-MM-DD
'
);
downOrder
(
obj
);
downOrder
(
obj
);
}
}
...
...
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