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
8559676c
Commit
8559676c
authored
May 14, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改联调问题
parent
dd4c5daa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
27 deletions
+36
-27
index.jsx
src/pages/AfterSaleManage/PassAudit/index.jsx
+17
-15
index.jsx
src/pages/AfterSaleManage/Pending/index.jsx
+14
-8
detailTable.jsx
src/pages/AfterSaleManage/components/detailTable.jsx
+2
-1
services.js
src/pages/AfterSaleManage/services.js
+3
-3
No files found.
src/pages/AfterSaleManage/PassAudit/index.jsx
View file @
8559676c
...
@@ -2,14 +2,14 @@ import React, { useState, useRef } from 'react';
...
@@ -2,14 +2,14 @@ import React, { useState, useRef } from 'react';
import
{
Button
,
notification
,
Popconfirm
}
from
'
antd
'
;
import
{
Button
,
notification
,
Popconfirm
}
from
'
antd
'
;
import
ProTable
from
'
@ant-design/pro-table
'
;
import
ProTable
from
'
@ant-design/pro-table
'
;
import
{
PageHeaderWrapper
}
from
'
@ant-design/pro-layout
'
;
import
{
PageHeaderWrapper
}
from
'
@ant-design/pro-layout
'
;
import
{
searchList
,
shopCheck
,
jdInfo
,
trackInfo
}
from
'
../services
'
;
import
{
searchList
,
shopCheck
,
orderDetail
,
trackInfo
}
from
'
../services
'
;
import
{
getDetail
}
from
'
../../afterSale/appeal/services
'
;
import
{
getDetail
}
from
'
../../afterSale/appeal/services
'
;
import
{
columnPassAudit
}
from
'
../data
'
;
import
{
columnPassAudit
}
from
'
../data
'
;
import
RejectModal
from
'
../components/rejectModal
'
;
import
RejectModal
from
'
../components/rejectModal
'
;
import
DetailTable
from
'
../components/detailTable
'
;
import
DetailTable
from
'
../components/detailTable
'
;
import
ProofsModal
from
'
../components/proofsModal
'
;
import
ProofsModal
from
'
../components/proofsModal
'
;
import
LogisticsCom
from
'
../../orderManage/pendingDeliveryOrder/components/LogisticsCom
'
;
import
LogisticsCom
from
'
../../orderManage/pendingDeliveryOrder/components/LogisticsCom
'
;
import
Detail
from
'
../../afterSale/components/detail
'
;
import
Appeal
Detail
from
'
../../afterSale/components/detail
'
;
export
default
()
=>
{
export
default
()
=>
{
const
table
=
useRef
();
const
table
=
useRef
();
...
@@ -21,11 +21,11 @@ export default () => {
...
@@ -21,11 +21,11 @@ export default () => {
const
[
serviceNoInfo
,
setServiceNoInfo
]
=
useState
({});
const
[
serviceNoInfo
,
setServiceNoInfo
]
=
useState
({});
const
[
LogisticsComList
,
setLogisticsComList
]
=
useState
({});
const
[
LogisticsComList
,
setLogisticsComList
]
=
useState
({});
const
[
LogisticsComModalVisible
,
handleComModalVisible
]
=
useState
(
false
);
const
[
LogisticsComModalVisible
,
handleComModalVisible
]
=
useState
(
false
);
const
[
detailModal
,
set
DetailModal
]
=
useState
(
false
);
const
[
appealDetailModal
,
setAppeal
DetailModal
]
=
useState
(
false
);
const
[
selectedRow
,
setSelectedRow
]
=
useState
({});
const
[
selectedRow
,
setSelectedRow
]
=
useState
({});
const
viewDetail
=
async
({
service
No
})
=>
{
const
viewDetail
=
async
({
order
No
})
=>
{
const
data
=
await
jdInfo
({
service
No
});
const
data
=
await
orderDetail
({
order
No
});
setDetailInfo
(
data
?.
skuQuantity
||
[]);
setDetailInfo
(
data
||
[]);
setDetailVisible
(
true
);
setDetailVisible
(
true
);
};
};
const
closeModal
=
isReload
=>
{
const
closeModal
=
isReload
=>
{
...
@@ -37,6 +37,7 @@ export default () => {
...
@@ -37,6 +37,7 @@ export default () => {
setDetailVisible
(
false
);
setDetailVisible
(
false
);
setProofsVisible
(
false
);
setProofsVisible
(
false
);
handleComModalVisible
(
false
);
handleComModalVisible
(
false
);
setAppealDetailModal
(
false
);
};
};
const
reject
=
async
({
serviceNo
})
=>
{
const
reject
=
async
({
serviceNo
})
=>
{
setServiceNoInfo
(
serviceNo
);
setServiceNoInfo
(
serviceNo
);
...
@@ -80,7 +81,7 @@ export default () => {
...
@@ -80,7 +81,7 @@ export default () => {
};
};
const
viewAppeal
=
async
r
=>
{
const
viewAppeal
=
async
r
=>
{
const
detailData
=
await
getDetail
({
appealNo
:
r
.
appealNo
});
const
detailData
=
await
getDetail
({
appealNo
:
r
.
appealNo
});
setDetailModal
(
true
);
set
Appeal
DetailModal
(
true
);
setSelectedRow
(
detailData
);
setSelectedRow
(
detailData
);
};
};
const
columns
=
[
const
columns
=
[
...
@@ -109,6 +110,7 @@ export default () => {
...
@@ -109,6 +110,7 @@ export default () => {
title
:
'
操作
'
,
title
:
'
操作
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
450
,
width
:
450
,
dataIndex
:
'
action
'
,
fixed
:
'
right
'
,
fixed
:
'
right
'
,
render
:
(
_
,
r
)
=>
[
render
:
(
_
,
r
)
=>
[
<
Popconfirm
<
Popconfirm
...
@@ -116,14 +118,10 @@ export default () => {
...
@@ -116,14 +118,10 @@ export default () => {
onConfirm=
{
()
=>
refund
(
r
)
}
onConfirm=
{
()
=>
refund
(
r
)
}
okText=
"确认"
okText=
"确认"
cancelText=
"取消"
cancelText=
"取消"
disabled=
{
!
r
.
showRefund
||
!
r
.
showRefunded
}
key=
"pop"
disabled=
{
!
r
.
showRefund
}
>
>
<
Button
<
Button
key=
"link1"
className=
"mr10"
type=
"primary"
disabled=
{
!
r
.
showRefund
}
>
key=
"link1"
className=
"mr10"
type=
"primary"
disabled=
{
!
r
.
showRefund
||
!
r
.
showRefunded
}
>
{
r
.
showRefunded
?
'
已退款
'
:
'
允许退款
'
}
{
r
.
showRefunded
?
'
已退款
'
:
'
允许退款
'
}
</
Button
>
</
Button
>
</
Popconfirm
>,
</
Popconfirm
>,
...
@@ -183,7 +181,11 @@ export default () => {
...
@@ -183,7 +181,11 @@ export default () => {
value=
{
LogisticsComList
}
value=
{
LogisticsComList
}
key=
{
LogisticsComList
.
key
}
key=
{
LogisticsComList
.
key
}
/>
/>
<
Detail
data=
{
selectedRow
}
modalVisible=
{
detailModal
}
onCancel=
{
closeModal
}
></
Detail
>
<
AppealDetail
data=
{
selectedRow
}
modalVisible=
{
appealDetailModal
}
onCancel=
{
closeModal
}
></
AppealDetail
>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
);
);
};
};
src/pages/AfterSaleManage/Pending/index.jsx
View file @
8559676c
...
@@ -2,13 +2,13 @@ import React, { useState, useRef } from 'react';
...
@@ -2,13 +2,13 @@ import React, { useState, useRef } from 'react';
import
{
notification
,
Button
}
from
'
antd
'
;
import
{
notification
,
Button
}
from
'
antd
'
;
import
ProTable
from
'
@ant-design/pro-table
'
;
import
ProTable
from
'
@ant-design/pro-table
'
;
import
{
PageHeaderWrapper
}
from
'
@ant-design/pro-layout
'
;
import
{
PageHeaderWrapper
}
from
'
@ant-design/pro-layout
'
;
import
{
searchList
,
auditInfoApi
,
jdInfo
}
from
'
../services
'
;
import
{
searchList
,
auditInfoApi
,
orderDetail
}
from
'
../services
'
;
import
{
columnSticData
,
appealType
}
from
'
../data
'
;
import
{
columnSticData
,
appealType
}
from
'
../data
'
;
import
AuditModal
from
'
../components/auditModal
'
;
import
AuditModal
from
'
../components/auditModal
'
;
import
DetailTable
from
'
../components/detailTable
'
;
import
DetailTable
from
'
../components/detailTable
'
;
import
ProofsModal
from
'
../components/proofsModal
'
;
import
ProofsModal
from
'
../components/proofsModal
'
;
import
{
getDetail
}
from
'
../../afterSale/appeal/services
'
;
import
{
getDetail
}
from
'
../../afterSale/appeal/services
'
;
import
Detail
from
'
../../afterSale/components/detail
'
;
import
Appeal
Detail
from
'
../../afterSale/components/detail
'
;
export
default
()
=>
{
export
default
()
=>
{
const
table
=
useRef
();
const
table
=
useRef
();
...
@@ -18,12 +18,12 @@ export default () => {
...
@@ -18,12 +18,12 @@ export default () => {
const
[
proofsVisible
,
setProofsVisible
]
=
useState
(
false
);
const
[
proofsVisible
,
setProofsVisible
]
=
useState
(
false
);
const
[
proofsData
,
setProofsData
]
=
useState
([]);
const
[
proofsData
,
setProofsData
]
=
useState
([]);
const
[
auditInfo
,
setAuditInfo
]
=
useState
({});
const
[
auditInfo
,
setAuditInfo
]
=
useState
({});
const
[
detailModal
,
set
DetailModal
]
=
useState
(
false
);
const
[
appealDetailModal
,
setAppeal
DetailModal
]
=
useState
(
false
);
const
[
selectedRow
,
setSelectedRow
]
=
useState
({});
const
[
selectedRow
,
setSelectedRow
]
=
useState
({});
const
viewDetail
=
async
({
service
No
})
=>
{
const
viewDetail
=
async
({
order
No
})
=>
{
const
data
=
await
jdInfo
({
service
No
});
const
data
=
await
orderDetail
({
order
No
});
setDetailInfo
(
data
?.
skuQuantity
||
[]);
setDetailInfo
(
data
||
[]);
setDetailVisible
(
true
);
setDetailVisible
(
true
);
};
};
const
closeModal
=
isReload
=>
{
const
closeModal
=
isReload
=>
{
...
@@ -34,6 +34,7 @@ export default () => {
...
@@ -34,6 +34,7 @@ export default () => {
setVisible
(
false
);
setVisible
(
false
);
setDetailVisible
(
false
);
setDetailVisible
(
false
);
setProofsVisible
(
false
);
setProofsVisible
(
false
);
setAppealDetailModal
(
false
);
};
};
const
openAudit
=
async
({
serviceNo
})
=>
{
const
openAudit
=
async
({
serviceNo
})
=>
{
const
data
=
await
auditInfoApi
({
serviceNo
});
const
data
=
await
auditInfoApi
({
serviceNo
});
...
@@ -50,7 +51,7 @@ export default () => {
...
@@ -50,7 +51,7 @@ export default () => {
};
};
const
viewAppeal
=
async
r
=>
{
const
viewAppeal
=
async
r
=>
{
const
detailData
=
await
getDetail
({
appealNo
:
r
.
appealNo
});
const
detailData
=
await
getDetail
({
appealNo
:
r
.
appealNo
});
setDetailModal
(
true
);
set
Appeal
DetailModal
(
true
);
setSelectedRow
(
detailData
);
setSelectedRow
(
detailData
);
};
};
const
columns
=
[
const
columns
=
[
...
@@ -78,6 +79,7 @@ export default () => {
...
@@ -78,6 +79,7 @@ export default () => {
{
{
title
:
'
操作
'
,
title
:
'
操作
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
dataIndex
:
'
action
'
,
width
:
250
,
width
:
250
,
fixed
:
'
right
'
,
fixed
:
'
right
'
,
render
:
(
_
,
r
)
=>
[
render
:
(
_
,
r
)
=>
[
...
@@ -115,7 +117,11 @@ export default () => {
...
@@ -115,7 +117,11 @@ export default () => {
<
AuditModal
visible=
{
visible
}
onCancel=
{
closeModal
}
formData=
{
auditInfo
}
/>
<
AuditModal
visible=
{
visible
}
onCancel=
{
closeModal
}
formData=
{
auditInfo
}
/>
<
DetailTable
visible=
{
detailVisible
}
onCancel=
{
closeModal
}
dataSource=
{
detailInfo
}
/>
<
DetailTable
visible=
{
detailVisible
}
onCancel=
{
closeModal
}
dataSource=
{
detailInfo
}
/>
<
ProofsModal
visible=
{
proofsVisible
}
onCancel=
{
closeModal
}
data=
{
proofsData
}
/>
<
ProofsModal
visible=
{
proofsVisible
}
onCancel=
{
closeModal
}
data=
{
proofsData
}
/>
<
Detail
data=
{
selectedRow
}
modalVisible=
{
detailModal
}
onCancel=
{
closeModal
}
></
Detail
>
<
AppealDetail
data=
{
selectedRow
}
modalVisible=
{
appealDetailModal
}
onCancel=
{
closeModal
}
></
AppealDetail
>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
);
);
};
};
src/pages/AfterSaleManage/components/detailTable.jsx
View file @
8559676c
...
@@ -9,6 +9,7 @@ export default props => {
...
@@ -9,6 +9,7 @@ export default props => {
const
columns
=
[
const
columns
=
[
{
{
title
:
'
商品名称
'
,
title
:
'
商品名称
'
,
width
:
400
,
dataIndex
:
'
skuName
'
,
dataIndex
:
'
skuName
'
,
},
},
{
{
...
@@ -21,7 +22,7 @@ export default props => {
...
@@ -21,7 +22,7 @@ export default props => {
},
},
];
];
return
(
return
(
<
Modal
title=
"售后操作确认"
visible=
{
visible
}
onCancel=
{
handleCancel
}
footer=
{
null
}
>
<
Modal
title=
"售后操作确认"
visible=
{
visible
}
onCancel=
{
handleCancel
}
footer=
{
null
}
width=
{
800
}
>
<
Table
dataSource=
{
dataSource
}
columns=
{
columns
}
key=
"skuName"
pagination=
{
false
}
/>
<
Table
dataSource=
{
dataSource
}
columns=
{
columns
}
key=
"skuName"
pagination=
{
false
}
/>
</
Modal
>
</
Modal
>
);
);
...
...
src/pages/AfterSaleManage/services.js
View file @
8559676c
...
@@ -33,15 +33,15 @@ export async function searchList(params, queryStatus) {
...
@@ -33,15 +33,15 @@ export async function searchList(params, queryStatus) {
}
}
// 售后单详情
// 售后单详情
export
async
function
jdInfo
(
params
)
{
export
async
function
orderDetail
(
params
)
{
const
data
=
await
request
.
get
(
'
/api/kdsp/op/
afs/jd-info
'
,
{
const
data
=
await
request
.
get
(
'
/api/kdsp/op/
order/skus
'
,
{
prefix
:
kdspApi
,
prefix
:
kdspApi
,
params
,
params
,
headers
:
{
headers
:
{
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
},
},
});
});
return
data
.
data
||
{}
;
return
data
.
data
||
[]
;
}
}
// 售后审核
// 售后审核
export
async
function
shopAudit
(
params
)
{
export
async
function
shopAudit
(
params
)
{
...
...
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