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
6d04aff7
Commit
6d04aff7
authored
May 13, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调
parent
6da903ef
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
17 deletions
+75
-17
menu.js
src/models/menu.js
+13
-1
index.jsx
src/pages/AfterSaleManage/PassAudit/index.jsx
+6
-3
index.jsx
src/pages/AfterSaleManage/Pending/index.jsx
+4
-1
auditModal.jsx
src/pages/AfterSaleManage/components/auditModal.jsx
+1
-1
data.js
src/pages/AfterSaleManage/data.js
+28
-2
services.js
src/pages/AfterSaleManage/services.js
+23
-9
No files found.
src/models/menu.js
View file @
6d04aff7
...
@@ -46,7 +46,19 @@ const MenuModel = {
...
@@ -46,7 +46,19 @@ const MenuModel = {
});
});
return
value
;
return
value
;
};
};
const
menuData
=
initializationData
(
payload
);
let
menuData
=
initializationData
(
payload
);
menuData
=
menuData
.
concat
([
{
path
:
'
auditPending
'
,
icon
:
'
smile
'
,
name
:
'
售后未审核
'
,
},
{
path
:
'
passAudit
'
,
icon
:
'
smile
'
,
name
:
'
售后已审核
'
,
},
]);
return
{
...
state
,
menuData
};
return
{
...
state
,
menuData
};
},
},
},
},
...
...
src/pages/AfterSaleManage/PassAudit/index.jsx
View file @
6d04aff7
...
@@ -92,6 +92,7 @@ export default () => {
...
@@ -92,6 +92,7 @@ export default () => {
title
:
'
售后凭证
'
,
title
:
'
售后凭证
'
,
dataIndex
:
'
proofs
'
,
dataIndex
:
'
proofs
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
120
,
order
:
4
,
order
:
4
,
render
:
proofs
=>
<
a
onClick=
{
()
=>
viewProofs
(
proofs
)
}
>
查看凭证
</
a
>,
render
:
proofs
=>
<
a
onClick=
{
()
=>
viewProofs
(
proofs
)
}
>
查看凭证
</
a
>,
},
},
...
@@ -99,6 +100,7 @@ export default () => {
...
@@ -99,6 +100,7 @@ export default () => {
title
:
'
售后申诉
'
,
title
:
'
售后申诉
'
,
dataIndex
:
'
appealFlag
'
,
dataIndex
:
'
appealFlag
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
120
,
render
:
(
appealFlag
,
r
)
=>
{
render
:
(
appealFlag
,
r
)
=>
{
if
(
appealFlag
)
{
if
(
appealFlag
)
{
return
<
a
onClick=
{
()
=>
viewAppeal
(
r
)
}
>
申诉
</
a
>;
return
<
a
onClick=
{
()
=>
viewAppeal
(
r
)
}
>
申诉
</
a
>;
...
@@ -110,6 +112,7 @@ export default () => {
...
@@ -110,6 +112,7 @@ export default () => {
title
:
'
操作
'
,
title
:
'
操作
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
450
,
width
:
450
,
fixed
:
'
right
'
,
render
:
(
_
,
r
)
=>
[
render
:
(
_
,
r
)
=>
[
<
Popconfirm
<
Popconfirm
title=
"确定允许退款?"
title=
"确定允许退款?"
...
@@ -128,7 +131,7 @@ export default () => {
...
@@ -128,7 +131,7 @@ export default () => {
</
Button
>
</
Button
>
</
Popconfirm
>,
</
Popconfirm
>,
<
Button
<
Button
key=
"link"
key=
"link
2
"
onClick=
{
()
=>
reject
(
r
)
}
onClick=
{
()
=>
reject
(
r
)
}
type=
"primary"
type=
"primary"
className=
"mr10"
className=
"mr10"
...
@@ -136,11 +139,11 @@ export default () => {
...
@@ -136,11 +139,11 @@ export default () => {
>
>
驳回
驳回
</
Button
>,
</
Button
>,
<
Button
key=
"link"
onClick=
{
()
=>
viewDetail
(
r
)
}
type=
"primary"
className=
"mr10"
>
<
Button
key=
"link
3
"
onClick=
{
()
=>
viewDetail
(
r
)
}
type=
"primary"
className=
"mr10"
>
订单详情
订单详情
</
Button
>,
</
Button
>,
<
Button
<
Button
key=
"link"
key=
"link
4
"
onClick=
{
()
=>
handleCom
(
r
)
}
onClick=
{
()
=>
handleCom
(
r
)
}
type=
"primary"
type=
"primary"
className=
"mr10"
className=
"mr10"
...
...
src/pages/AfterSaleManage/Pending/index.jsx
View file @
6d04aff7
...
@@ -60,6 +60,7 @@ export default () => {
...
@@ -60,6 +60,7 @@ export default () => {
dataIndex
:
'
proofs
'
,
dataIndex
:
'
proofs
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
order
:
4
,
order
:
4
,
width
:
100
,
render
:
proofs
=>
<
a
onClick=
{
()
=>
viewProofs
(
proofs
)
}
>
查看凭证
</
a
>,
render
:
proofs
=>
<
a
onClick=
{
()
=>
viewProofs
(
proofs
)
}
>
查看凭证
</
a
>,
},
},
{
{
...
@@ -67,6 +68,7 @@ export default () => {
...
@@ -67,6 +68,7 @@ export default () => {
dataIndex
:
'
appealFlag
'
,
dataIndex
:
'
appealFlag
'
,
valueEnum
:
appealType
,
valueEnum
:
appealType
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
120
,
render
:
(
appealFlag
,
r
)
=>
{
render
:
(
appealFlag
,
r
)
=>
{
if
(
appealFlag
)
{
if
(
appealFlag
)
{
return
<
a
onClick=
{
()
=>
viewAppeal
(
r
)
}
>
已申诉
</
a
>;
return
<
a
onClick=
{
()
=>
viewAppeal
(
r
)
}
>
已申诉
</
a
>;
...
@@ -77,7 +79,8 @@ export default () => {
...
@@ -77,7 +79,8 @@ export default () => {
{
{
title
:
'
操作
'
,
title
:
'
操作
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
200
,
width
:
250
,
fixed
:
'
right
'
,
render
:
(
_
,
r
)
=>
[
render
:
(
_
,
r
)
=>
[
<
Button
key=
"link1"
onClick=
{
()
=>
openAudit
(
r
)
}
className=
"mr10"
type=
"primary"
>
<
Button
key=
"link1"
onClick=
{
()
=>
openAudit
(
r
)
}
className=
"mr10"
type=
"primary"
>
审核
审核
...
...
src/pages/AfterSaleManage/components/auditModal.jsx
View file @
6d04aff7
...
@@ -73,7 +73,7 @@ const AuditModal = props => {
...
@@ -73,7 +73,7 @@ const AuditModal = props => {
onCancel=
{
()
=>
handleCancel
()
}
onCancel=
{
()
=>
handleCancel
()
}
>
>
<
Form
{
...
layout
}
name=
"formData"
>
<
Form
{
...
layout
}
name=
"formData"
>
<
FormItem
label=
"
"
style=
{
{
marginLeft
:
'
120px
'
}
}
>
<
FormItem
label=
"
审核结果"
>
{
getFieldDecorator
(
'
auditResult
'
)(
{
getFieldDecorator
(
'
auditResult
'
)(
<
TreeSelect
<
TreeSelect
style=
{
{
width
:
'
315px
'
}
}
style=
{
{
width
:
'
315px
'
}
}
...
...
src/pages/AfterSaleManage/data.js
View file @
6d04aff7
import
{
Tag
}
from
'
antd
'
;
import
React
from
'
react
'
;
export
const
appealType
=
{
export
const
appealType
=
{
1
:
'
已申诉
'
,
1
:
'
已申诉
'
,
0
:
'
未申诉
'
,
0
:
'
未申诉
'
,
...
@@ -7,29 +10,42 @@ export const columnSticData = [
...
@@ -7,29 +10,42 @@ export const columnSticData = [
title
:
'
订单ID
'
,
title
:
'
订单ID
'
,
dataIndex
:
'
orderNo
'
,
dataIndex
:
'
orderNo
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
300
,
// eslint-disable-next-line no-confusing-arrow
render
:
(
orderNo
,
r
)
=>
r
.
timeout
||
r
.
reminderFlag
?
(
<
Tag
color
=
{
r
.
timeout
?
'
red
'
:
'
green
'
}
>
{
orderNo
}
<
/Tag
>
)
:
(
orderNo
),
},
},
{
{
title
:
'
售后单ID
'
,
title
:
'
售后单ID
'
,
dataIndex
:
'
serviceNo
'
,
dataIndex
:
'
serviceNo
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
200
,
},
},
{
{
title
:
'
收货人姓名
'
,
title
:
'
收货人姓名
'
,
dataIndex
:
'
receiverName
'
,
dataIndex
:
'
receiverName
'
,
width
:
200
,
},
},
{
{
title
:
'
收货人手机号
'
,
title
:
'
收货人手机号
'
,
dataIndex
:
'
receiverPhone
'
,
dataIndex
:
'
receiverPhone
'
,
width
:
200
,
},
},
{
{
title
:
'
收货人地址
'
,
title
:
'
收货人地址
'
,
dataIndex
:
'
receiveAddress
'
,
dataIndex
:
'
receiveAddress
'
,
width
:
200
,
hideInSearch
:
true
,
hideInSearch
:
true
,
},
},
{
{
title
:
'
售后类型
'
,
title
:
'
售后类型
'
,
dataIndex
:
'
serviceType
'
,
dataIndex
:
'
serviceType
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
120
,
valueEnum
:
{
valueEnum
:
{
1
:
'
退款不退货
'
,
1
:
'
退款不退货
'
,
2
:
'
退货退款
'
,
2
:
'
退货退款
'
,
...
@@ -39,35 +55,41 @@ export const columnSticData = [
...
@@ -39,35 +55,41 @@ export const columnSticData = [
title
:
'
售后原因
'
,
title
:
'
售后原因
'
,
dataIndex
:
'
serviceReason
'
,
dataIndex
:
'
serviceReason
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
200
,
},
},
{
{
title
:
'
售后发生时间
'
,
title
:
'
售后发生时间
'
,
dataIndex
:
'
serviceTime
'
,
dataIndex
:
'
serviceTime
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
200
,
},
},
{
{
title
:
'
超时时间
'
,
title
:
'
超时时间
'
,
dataIndex
:
'
overTime
'
,
dataIndex
:
'
overTime
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
200
,
},
},
{
{
title
:
'
是否催办
'
,
title
:
'
是否催办
'
,
dataIndex
:
'
reminderFlag
'
,
dataIndex
:
'
reminderFlag
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
120
,
valueEnum
:
{
valueEnum
:
{
1
:
'
是
'
,
true
:
'
是
'
,
2
:
'
否
'
,
false
:
'
否
'
,
},
},
},
},
{
{
title
:
'
是否同意售后
'
,
title
:
'
是否同意售后
'
,
dataIndex
:
'
isAgree
'
,
dataIndex
:
'
isAgree
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
120
,
},
},
{
{
title
:
'
拒绝原因
'
,
title
:
'
拒绝原因
'
,
dataIndex
:
'
refuseReason
'
,
dataIndex
:
'
refuseReason
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
200
,
},
},
];
];
export
const
columnPassAudit
=
[
export
const
columnPassAudit
=
[
...
@@ -76,20 +98,24 @@ export const columnPassAudit = [
...
@@ -76,20 +98,24 @@ export const columnPassAudit = [
title
:
'
商家退货地址
'
,
title
:
'
商家退货地址
'
,
dataIndex
:
'
merchantAddress
'
,
dataIndex
:
'
merchantAddress
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
200
,
},
},
{
{
title
:
'
退回物流
'
,
title
:
'
退回物流
'
,
dataIndex
:
'
expressCompanyName
'
,
dataIndex
:
'
expressCompanyName
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
150
,
},
},
{
{
title
:
'
退回物流单号
'
,
title
:
'
退回物流单号
'
,
dataIndex
:
'
deliveryNo
'
,
dataIndex
:
'
deliveryNo
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
200
,
},
},
{
{
title
:
'
售后状态
'
,
title
:
'
售后状态
'
,
dataIndex
:
'
serviceStatus
'
,
dataIndex
:
'
serviceStatus
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
120
,
},
},
];
];
src/pages/AfterSaleManage/services.js
View file @
6d04aff7
import
request
from
'
@/utils/request
'
;
import
request
from
'
@/utils/request
'
;
import
config
from
'
../../../config/env.config
'
;
import
config
from
'
../../../config/env.config
'
;
import
{
stringify
}
from
'
qs
'
;
import
_
from
'
lodash
'
;
let
{
kdspApi
}
=
config
;
const
{
kdspApi
}
=
config
;
kdspApi
=
'
http://yapi.quantgroups.com/mock/351
'
;
// 分页查询所有数据
// 分页查询所有数据
export
async
function
searchList
(
params
,
queryStatus
)
{
export
async
function
searchList
(
params
,
queryStatus
)
{
const
param
=
{
const
param
=
{
...
params
,
...
params
,
pageNo
:
params
.
current
,
pageNo
:
params
.
current
,
pageSize
:
params
.
pageSize
||
20
,
queryStatus
,
queryStatus
,
};
};
const
data
=
await
request
.
post
(
'
/api/kdsp/op/afs/shop/list
'
,
{
const
data
=
await
request
.
post
(
'
/api/kdsp/op/afs/shop/list
'
,
{
data
:
param
,
prefix
:
kdspApi
,
prefix
:
kdspApi
,
data
:
stringify
(
_
.
omitBy
(
param
,
v
=>
!
v
)),
headers
:
{
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
},
});
});
if
(
data
.
data
)
{
if
(
data
.
data
)
{
return
{
return
{
...
@@ -30,22 +35,28 @@ export async function searchList(params, queryStatus) {
...
@@ -30,22 +35,28 @@ export async function searchList(params, queryStatus) {
// 售后单详情
// 售后单详情
export
async
function
jdInfo
(
params
)
{
export
async
function
jdInfo
(
params
)
{
const
data
=
await
request
.
get
(
'
/api/kdsp/op/afs/jd-info
'
,
{
const
data
=
await
request
.
get
(
'
/api/kdsp/op/afs/jd-info
'
,
{
params
,
prefix
:
kdspApi
,
prefix
:
kdspApi
,
params
:
stringify
(
params
),
headers
:
{
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
},
});
});
return
data
.
data
||
{};
return
data
.
data
||
{};
}
}
// 售后审核
// 售后审核
export
async
function
shopAudit
(
params
)
{
export
async
function
shopAudit
(
params
)
{
return
request
.
post
(
'
/api/kdsp/op/afs/shop/audit
'
,
{
return
request
.
post
(
'
/api/kdsp/op/afs/shop/audit
'
,
{
params
,
data
:
stringify
(
params
),
headers
:
{
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
},
prefix
:
kdspApi
,
prefix
:
kdspApi
,
});
});
}
}
// 查询审核信息
// 查询审核信息
export
async
function
auditInfoApi
(
serviceNo
)
{
export
async
function
auditInfoApi
(
params
)
{
return
request
.
get
(
'
/api/kdsp/op/afs/back-info
'
,
{
return
request
.
get
(
'
/api/kdsp/op/afs/back-info
'
,
{
params
:
{
serviceNo
}
,
params
,
prefix
:
kdspApi
,
prefix
:
kdspApi
,
});
});
}
}
...
@@ -53,13 +64,16 @@ export async function auditInfoApi(serviceNo) {
...
@@ -53,13 +64,16 @@ export async function auditInfoApi(serviceNo) {
// 审核核检
// 审核核检
export
async
function
shopCheck
(
params
)
{
export
async
function
shopCheck
(
params
)
{
return
request
.
post
(
'
/api/kdsp/op/afs/shop/check
'
,
{
return
request
.
post
(
'
/api/kdsp/op/afs/shop/check
'
,
{
params
,
params
:
stringify
(
_
.
omitBy
(
params
,
v
=>
!
v
)),
headers
:
{
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
},
prefix
:
kdspApi
,
prefix
:
kdspApi
,
});
});
}
}
// 查询物流信息
// 查询物流信息
export
async
function
trackInfo
(
params
)
{
export
async
function
trackInfo
(
params
)
{
const
data
=
await
request
.
get
(
'
/api/kdsp/logistics/kd100/track-list
'
,
{
const
data
=
await
request
.
get
(
'
/api/kdsp/
op/
logistics/kd100/track-list
'
,
{
params
,
params
,
prefix
:
kdspApi
,
prefix
:
kdspApi
,
});
});
...
...
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