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
250c34de
Commit
250c34de
authored
May 14, 2021
by
王苓芝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口联调
parent
c6d90926
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
22 deletions
+60
-22
index.jsx
src/pages/afterSale/appeal/index.jsx
+13
-5
services.js
src/pages/afterSale/appeal/services.js
+22
-5
staticdata.js
src/pages/afterSale/appeal/staticdata.js
+19
-6
detail.jsx
src/pages/afterSale/components/detail.jsx
+5
-5
imgModal.jsx
src/pages/afterSale/components/imgModal.jsx
+1
-0
upload.jsx
src/pages/components/upload.jsx
+0
-1
No files found.
src/pages/afterSale/appeal/index.jsx
View file @
250c34de
...
...
@@ -6,7 +6,7 @@ import Detail from '../components/detail';
import
ImgModal
from
'
../components/imgModal
'
;
import
styles
from
'
./styles.less
'
;
import
{
columns
}
from
'
./staticdata
'
;
import
{
query
,
getDetail
}
from
'
./services
'
;
import
{
query
,
getDetail
,
audit
}
from
'
./services
'
;
const
Appeal
=
()
=>
{
// const protable = useRef();
...
...
@@ -17,8 +17,17 @@ const Appeal = () => {
const
[
imgData
,
getImgData
]
=
useState
([]);
const
[
imgTitle
,
changeImgTitle
]
=
useState
(
''
);
const
a
udit
=
async
row
=>
{
const
handleA
udit
=
async
row
=>
{
console
.
log
(
'
selected-row
'
,
row
);
const
data
=
await
audit
({
appealNo
:
row
.
appealNo
,
appealResult
:
row
.
appealResult
,
refuseReason
:
row
.
refuseReason
,
receiverName
:
row
.
merchantName
,
receiverPhone
:
row
.
merchantPhone
,
receiveAddress
:
row
.
merchantAddress
,
});
console
.
log
(
'
data-audiit
'
,
data
);
};
const
openDetail
=
async
row
=>
{
const
detailData
=
await
getDetail
({
appealNo
:
row
.
appealNo
});
...
...
@@ -40,7 +49,7 @@ const Appeal = () => {
changeImgModal
(
false
);
};
const
res
=
{
a
udit
,
handleA
udit
,
openDetail
,
openImgModal
,
};
...
...
@@ -54,9 +63,8 @@ const Appeal = () => {
}
}
columns=
{
columns
(
res
)
}
request=
{
params
=>
query
({
...
params
})
}
rowKey=
"appealNo"
rowKey=
{
r
=>
r
.
orderNo
}
expandIconColumnIndex=
{
10
}
key=
"appealNo"
bordered
className=
{
styles
.
table
}
toolBarRender=
{
false
}
...
...
src/pages/afterSale/appeal/services.js
View file @
250c34de
import
{
stringify
}
from
'
querystring
'
;
import
_
from
'
lodash
'
;
import
request
from
'
@/utils/request
'
;
//
import config from '../../../../config/env.config';
import
config
from
'
../../../../config/env.config
'
;
export
async
function
query
(
params
)
{
export
async
function
query
(
param
)
{
const
params
=
{
...
param
,
pageNo
:
param
.
current
,
};
const
data
=
await
request
.
post
(
'
/api/kdsp/op/appeal/list
'
,
{
prefix
:
'
http://yapi.quantgroups.com/mock/351
'
,
// prefix: 'http://yapi.quantgroups.com/mock/351',
prefix
:
config
.
kdspApi
,
data
:
stringify
(
_
.
omitBy
(
params
,
v
=>
!
v
)),
headers
:
{
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
...
...
@@ -19,8 +24,20 @@ export async function query(params) {
export
async
function
getDetail
(
params
)
{
const
{
data
}
=
await
request
.
post
(
'
/api/kdsp/op/appeal/info
'
,
{
data
:
stringify
(
_
.
omitBy
(
params
,
v
=>
!
v
)),
// prefix: config.kdspApi,
prefix
:
'
http://yapi.quantgroups.com/mock/351
'
,
prefix
:
config
.
kdspApi
,
// prefix: 'http://yapi.quantgroups.com/mock/351',
headers
:
{
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
},
});
return
data
;
}
export
async
function
audit
(
params
)
{
const
{
data
}
=
await
request
.
post
(
'
/api/kdsp/op/appeal/audit
'
,
{
data
:
stringify
(
params
),
prefix
:
config
.
kdspApi
,
// prefix: 'http://yapi.quantgroups.com/mock/351',
headers
:
{
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
},
...
...
src/pages/afterSale/appeal/staticdata.js
View file @
250c34de
import
{
Button
}
from
'
antd
'
;
import
{
Button
,
Tag
}
from
'
antd
'
;
import
React
from
'
react
'
;
export
const
refuseReasonEnum
=
{
0
:
{
text
:
'
待操作
'
},
1
:
{
text
:
'
已确认
'
},
2
:
{
text
:
'
已拒绝
'
},
};
export
function
columns
(
res
)
{
console
.
log
(
'
res
'
,
res
);
const
{
audit
,
openDetail
,
openImgModal
}
=
res
;
const
{
handleAudit
,
openDetail
,
openImgModal
}
=
res
;
return
[
{
title
:
'
售后申诉单ID
'
,
...
...
@@ -19,15 +24,21 @@ export function columns(res) {
},
{
title
:
'
订单ID
'
,
width
:
12
0
,
width
:
20
0
,
dataIndex
:
'
orderNo
'
,
key
:
'
orderNo
'
,
render
:
(
orderNo
,
row
)
=>
(
<
Tag
color
=
{
row
.
timeout
?
'
red
'
:
'
green
'
}
key
=
{
orderNo
}
>
{
orderNo
}
<
/Tag
>
),
},
{
title
:
'
介入单开始时间
'
,
width
:
120
,
dataIndex
:
'
startDate
'
,
key
:
'
startDate
'
,
valueType
:
'
date
'
,
hideInTable
:
true
,
},
{
...
...
@@ -35,6 +46,7 @@ export function columns(res) {
width
:
120
,
dataIndex
:
'
endDate
'
,
key
:
'
endDate
'
,
valueType
:
'
date
'
,
hideInTable
:
true
,
},
{
...
...
@@ -121,6 +133,7 @@ export function columns(res) {
dataIndex
:
'
appealResult
'
,
key
:
'
appealResult
'
,
hideInSearch
:
true
,
valueEnum
:
refuseReasonEnum
,
},
{
title
:
'
售后申诉拒绝原因
'
,
...
...
@@ -136,10 +149,10 @@ export function columns(res) {
valueType
:
'
option
'
,
key
:
'
option
'
,
render
:
(
_
,
row
)
=>
[
<
Button
type
=
"
primary
"
key
=
"
1
"
onClick
=
{()
=>
a
udit
(
row
)}
>
<
Button
disabled
=
{
!
row
.
showAudit
}
type
=
"
primary
"
onClick
=
{()
=>
handleA
udit
(
row
)}
>
审核
<
/Button>
,
<
Button
type
=
"
primary
"
key
=
"
2
"
onClick
=
{()
=>
openDetail
(
row
)}
>
<
Button
disabled
=
{
!
row
.
showDetail
}
type
=
"
primary
"
onClick
=
{()
=>
openDetail
(
row
)}
>
查看详情
<
/Button>
,
],
...
...
src/pages/afterSale/components/detail.jsx
View file @
250c34de
...
...
@@ -53,7 +53,7 @@ const AppealDetail = props => {
<
Col
span=
{
3
}
>
售后凭证:
</
Col
>
{
data
.
proofs
&&
data
.
proofs
.
split
(
'
,
'
).
map
(
item
=>
(
<
Col
key=
{
item
}
>
<
Col
key=
{
item
}
span=
{
8
}
>
<
img
key=
{
item
}
width=
"100%"
src=
{
item
}
alt=
""
/>
</
Col
>
))
}
...
...
@@ -65,11 +65,11 @@ const AppealDetail = props => {
</
Col
>
</
Row
>
<
Row
type=
"flex"
justify=
"start"
align=
"middle"
gutter=
{
[
10
,
20
]
}
>
<
Col
span=
{
5
}
>
补充资料:
</
Col
>
<
Col
span=
{
3
}
>
补充资料:
</
Col
>
{
data
.
supplement
&&
data
.
supplement
.
split
(
'
,
'
).
map
(
item
=>
(
<
Col
key=
{
item
}
>
<
img
src=
{
item
}
key=
{
item
}
alt=
""
/>
<
Col
key=
{
item
}
span=
{
8
}
>
<
img
width=
"100%"
src=
{
item
}
key=
{
item
}
alt=
""
/>
</
Col
>
))
}
</
Row
>
...
...
@@ -91,7 +91,7 @@ const AppealDetail = props => {
</
Row
>
</
div
>
)
:
(
'
暂无
物流
信息
'
'
暂无
详情
信息
'
)
}
</
Modal
>
);
...
...
src/pages/afterSale/components/imgModal.jsx
View file @
250c34de
...
...
@@ -43,6 +43,7 @@ class imgModal extends Component {
footer=
{
null
}
onCancel=
{
()
=>
this
.
setState
({
imgModal
:
false
})
}
width=
"800px"
style=
{
{
textAlign
:
'
center
'
}
}
>
<
img
width=
"700px"
src=
{
this
.
state
.
selectImg
}
alt=
""
></
img
>
</
Modal
>
...
...
src/pages/components/upload.jsx
View file @
250c34de
...
...
@@ -86,7 +86,6 @@ class PicturesWall extends React.Component {
render
()
{
const
{
previewVisible
,
previewImage
,
fileList
}
=
this
.
state
;
console
.
log
(
'
fileList---render
'
,
fileList
);
const
uploadButton
=
(
<
div
>
<
Icon
type=
"plus"
/>
...
...
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