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
b78783f7
Commit
b78783f7
authored
Jun 22, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改售后申诉单审核问题
parent
f5c9e729
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
25 deletions
+16
-25
auditModal.jsx
src/pages/AfterSaleManage/components/auditModal.jsx
+1
-1
index.jsx
src/pages/afterSale/appeal/index.jsx
+13
-20
services.js
src/pages/afterSale/appeal/services.js
+1
-1
staticdata.js
src/pages/afterSale/appeal/staticdata.js
+0
-2
audit.jsx
src/pages/afterSale/components/audit.jsx
+1
-1
No files found.
src/pages/AfterSaleManage/components/auditModal.jsx
View file @
b78783f7
...
...
@@ -50,7 +50,7 @@ const AuditModal = props => {
auditResult
:
auditResult
?.[
0
],
serviceNo
:
formData
?.
serviceNo
,
});
if
(
data
.
c
ode
===
'
0000
'
)
{
if
(
data
.
businessC
ode
===
'
0000
'
)
{
notification
.
success
({
message
:
'
审核成功
'
});
handleCancel
(
true
);
}
...
...
src/pages/afterSale/appeal/index.jsx
View file @
b78783f7
import
React
,
{
useState
}
from
'
react
'
;
import
React
,
{
useState
,
useRef
}
from
'
react
'
;
import
ProTable
from
'
@ant-design/pro-table
'
;
import
{
PageHeaderWrapper
}
from
'
@ant-design/pro-layout
'
;
// import { FormInstance } from 'antd/lib/form';
import
{
notification
}
from
'
antd
'
;
import
Detail
from
'
../components/detail
'
;
import
ImgModal
from
'
../components/imgModal
'
;
...
...
@@ -11,26 +10,13 @@ import { query, getDetail } from './services';
import
AuditModal
from
'
../components/audit
'
;
const
Appeal
=
()
=>
{
// const protable = useRef();
// const ref = useRef(FormInstance);
const
[
detailModal
,
changeDetailModal
]
=
useState
(
false
);
const
[
auditModal
,
changeAuditModal
]
=
useState
(
false
);
const
[
imgModal
,
changeImgModal
]
=
useState
(
false
);
const
[
selectedRow
,
getRow
]
=
useState
({});
const
[
imgData
,
getImgData
]
=
useState
([]);
const
[
imgTitle
,
changeImgTitle
]
=
useState
(
''
);
// const handleAudit = async 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
table
=
useRef
();
const
openDetail
=
async
row
=>
{
const
detailData
=
await
getDetail
({
appealNo
:
row
.
appealNo
});
changeDetailModal
(
true
);
...
...
@@ -42,6 +28,11 @@ const Appeal = () => {
getRow
(
detailData
);
changeAuditModal
(
true
);
};
const
reload
=
()
=>
{
if
(
table
&&
table
.
current
)
{
table
.
current
.
reload
();
}
};
const
openImgModal
=
imgList
=>
{
if
(
!
imgList
.
length
)
{
notification
.
error
({
...
...
@@ -49,24 +40,25 @@ const Appeal = () => {
});
return
;
}
// const list = ['https://www.baidu.com/img/flexible/logo/pc/result@2.png'];
getImgData
(
imgList
);
changeImgModal
(
true
);
changeImgTitle
(
'
查看图片
'
);
};
const
closeModal
=
params
=>
{
const
closeModal
=
(
params
,
isReload
)
=>
{
if
(
params
===
'
Detail
'
)
{
changeDetailModal
(
false
);
return
;
}
if
(
params
===
'
Audit
'
)
{
changeAuditModal
(
false
);
if
(
isReload
)
{
reload
();
}
return
;
}
changeImgModal
(
false
);
};
const
res
=
{
// handleAudit,
openAudit
,
openDetail
,
openImgModal
,
...
...
@@ -83,6 +75,7 @@ const Appeal = () => {
request=
{
params
=>
query
({
...
params
})
}
rowKey=
{
r
=>
r
.
orderNo
}
expandIconColumnIndex=
{
10
}
actionRef=
{
table
}
bordered
className=
{
styles
.
table
}
toolBarRender=
{
false
}
...
...
@@ -96,7 +89,7 @@ const Appeal = () => {
<
AuditModal
data=
{
selectedRow
}
modalVisible=
{
auditModal
}
onCancel=
{
()
=>
closeModal
(
'
Audit
'
)
}
onCancel=
{
isReload
=>
closeModal
(
'
Audit
'
,
isReload
)
}
></
AuditModal
>
<
ImgModal
imgData=
{
imgData
}
...
...
src/pages/afterSale/appeal/services.js
View file @
b78783f7
...
...
@@ -34,7 +34,7 @@ export async function getDetail(params) {
}
export
async
function
audit
(
params
)
{
const
{
data
}
=
await
request
.
post
(
'
/api/kdsp/op/appeal/audit
'
,
{
const
data
=
await
request
.
post
(
'
/api/kdsp/op/appeal/audit
'
,
{
data
:
stringify
(
params
),
prefix
:
config
.
kdspApi
,
// prefix: 'http://yapi.quantgroups.com/mock/351',
...
...
src/pages/afterSale/appeal/staticdata.js
View file @
b78783f7
...
...
@@ -91,7 +91,6 @@ export function columns(res) {
key
:
'
proofs
'
,
hideInSearch
:
true
,
render
:
proofs
=>
{
console
.
log
(
'
proofs
'
,
proofs
);
const
list
=
proofs
&&
proofs
!==
'
-
'
?
proofs
.
split
(
'
,
'
)
:
[];
return
<
a
onClick
=
{()
=>
openImgModal
(
list
)}
>
查看凭证
<
/a>
;
},
...
...
@@ -124,7 +123,6 @@ export function columns(res) {
key
:
'
supplement
'
,
hideInSearch
:
true
,
render
:
supplement
=>
{
console
.
log
(
'
supplement
'
,
supplement
);
const
list
=
supplement
&&
supplement
!==
'
-
'
?
supplement
.
split
(
'
,
'
)
:
[];
return
<
a
onClick
=
{()
=>
openImgModal
(
list
)}
>
查看补充资料
<
/a>
;
},
...
...
src/pages/afterSale/components/audit.jsx
View file @
b78783f7
...
...
@@ -26,7 +26,7 @@ const AuditModal = props => {
if
(
auditData
&&
auditData
.
code
===
'
0000
'
)
{
notification
.
success
({
message
:
'
审核成功
'
});
resetFields
();
onCancel
();
onCancel
(
true
);
}
}
});
...
...
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