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
67c8baa4
Commit
67c8baa4
authored
Aug 26, 2022
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改提示语
parent
a079c560
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
28 deletions
+72
-28
index.jsx
src/pages/AfterSaleManage/Pending/index.jsx
+10
-1
auditModal.jsx
src/pages/AfterSaleManage/components/auditModal.jsx
+50
-17
data.js
src/pages/AfterSaleManage/data.js
+12
-10
No files found.
src/pages/AfterSaleManage/Pending/index.jsx
View file @
67c8baa4
...
@@ -11,6 +11,7 @@ import ProofsModal from '../components/proofsModal';
...
@@ -11,6 +11,7 @@ import ProofsModal from '../components/proofsModal';
import
{
getDetail
}
from
'
../../afterSale/appeal/services
'
;
import
{
getDetail
}
from
'
../../afterSale/appeal/services
'
;
import
AppealDetail
from
'
../../afterSale/components/detail
'
;
import
AppealDetail
from
'
../../afterSale/components/detail
'
;
import
AfterLog
from
'
../components/AfterLog
'
;
import
AfterLog
from
'
../components/AfterLog
'
;
import
styles
from
'
../styles.less
'
;
const
{
Countdown
}
=
Statistic
;
const
{
Countdown
}
=
Statistic
;
...
@@ -71,7 +72,15 @@ export default () => {
...
@@ -71,7 +72,15 @@ export default () => {
};
};
const
openLogistics
=
r
=>
{
const
openLogistics
=
r
=>
{
confirm
({
confirm
({
content
:
'
请在48小时内完成物流包裹拦截,确认是否需要进行物流拦截?
'
,
title
:
'
温馨提示
'
,
okText
:
'
确认拦截
'
,
cancelText
:
'
取消拦截
'
,
content
:
(
<
div
>
请48小时内自行联系物流公司进行物流拦截,系统监测拦截成功后
<
span
className=
{
styles
.
redTipBold
}
>
自动同意
</
span
>
退款
</
div
>
),
async
onOk
()
{
async
onOk
()
{
const
data
=
await
logisticsIntercept
({
serviceNo
:
r
.
serviceNo
});
const
data
=
await
logisticsIntercept
({
serviceNo
:
r
.
serviceNo
});
if
(
data
.
businessCode
===
'
0000
'
)
{
if
(
data
.
businessCode
===
'
0000
'
)
{
...
...
src/pages/AfterSaleManage/components/auditModal.jsx
View file @
67c8baa4
...
@@ -7,6 +7,7 @@ import styles from '../styles.less';
...
@@ -7,6 +7,7 @@ import styles from '../styles.less';
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
const
{
TextArea
}
=
Input
;
const
{
TextArea
}
=
Input
;
const
{
confirm
}
=
Modal
;
const
AuditModal
=
props
=>
{
const
AuditModal
=
props
=>
{
const
{
const
{
visible
,
visible
,
...
@@ -59,9 +60,7 @@ const AuditModal = props => {
...
@@ -59,9 +60,7 @@ const AuditModal = props => {
],
],
},
},
];
];
const
handleOk
=
()
=>
{
const
submitCheckResult
=
async
fieldsValue
=>
{
validateFields
(
async
(
error
,
fieldsValue
)
=>
{
if
(
!
error
)
{
const
{
auditResult
}
=
fieldsValue
;
const
{
auditResult
}
=
fieldsValue
;
const
data
=
await
shopAudit
({
const
data
=
await
shopAudit
({
...
fieldsValue
,
...
fieldsValue
,
...
@@ -73,6 +72,32 @@ const AuditModal = props => {
...
@@ -73,6 +72,32 @@ const AuditModal = props => {
notification
.
success
({
message
:
'
审核成功
'
});
notification
.
success
({
message
:
'
审核成功
'
});
handleCancel
(
true
);
handleCancel
(
true
);
}
}
};
const
handleOk
=
()
=>
{
validateFields
((
error
,
fieldsValue
)
=>
{
if
(
!
error
)
{
const
{
auditResult
}
=
fieldsValue
;
// 如果为仅退款 并且 审核同意 弹出二次确认提示
if
(
+
formData
.
serviceType
===
1
&&
auditResult
?.[
0
]
===
1
)
{
confirm
({
title
:
'
温馨提示
'
,
content
:
(
<
div
>
当前类型为【
<
span
className=
{
styles
.
redTipBold
}
>
仅退款
</
span
>
】,请核查该订单物流状态,如有在途物流,务必自行拦截后点击确认;
</
div
>
),
okText
:
'
确认退款
'
,
onOk
()
{
submitCheckResult
(
fieldsValue
);
},
onCancel
()
{
handleCancel
(
true
);
},
});
}
else
{
submitCheckResult
(
fieldsValue
);
}
}
}
});
});
};
};
...
@@ -91,9 +116,23 @@ const AuditModal = props => {
...
@@ -91,9 +116,23 @@ const AuditModal = props => {
onOk=
{
()
=>
handleOk
()
}
onOk=
{
()
=>
handleOk
()
}
onCancel=
{
()
=>
handleCancel
()
}
onCancel=
{
()
=>
handleCancel
()
}
>
>
{
+
formData
.
serviceType
===
1
&&
(
<
div
className=
{
styles
.
redTip
}
>
温馨提示:当前售后类型为用户未收到产品,申请
<
span
className=
{
styles
.
redTipBold
}
>
仅退款
</
span
>
,请务必检查此单物流状态后审核。
</
div
>
)
}
<
Form
{
...
layout
}
name=
"formData"
>
<
Form
{
...
layout
}
name=
"formData"
>
<
FormItem
label=
"审核结果"
>
<
FormItem
label=
"审核结果"
>
{
getFieldDecorator
(
'
auditResult
'
)(
{
getFieldDecorator
(
'
auditResult
'
,
{
rules
:
[
{
required
:
true
,
message
:
'
请选择审核结果!
'
,
},
],
})(
<
Cascader
<
Cascader
allowClear
allowClear
showSearch
showSearch
...
@@ -197,12 +236,6 @@ const AuditModal = props => {
...
@@ -197,12 +236,6 @@ const AuditModal = props => {
</
FormItem
>
</
FormItem
>
)
}
)
}
</
Form
>
</
Form
>
{
+
formData
.
serviceType
===
1
&&
(
<
div
className=
{
styles
.
redTip
}
>
温馨提示:当前售后类型:
<
span
className=
{
styles
.
redTipBold
}
>
仅退款
</
span
>
,为了避免非必要的损失请谨慎操作
</
div
>
)
}
</
Modal
>
</
Modal
>
);
);
};
};
...
...
src/pages/AfterSaleManage/data.js
View file @
67c8baa4
...
@@ -6,6 +6,18 @@ export const appealType = {
...
@@ -6,6 +6,18 @@ export const appealType = {
0
:
'
未申诉
'
,
0
:
'
未申诉
'
,
};
};
export
const
columnSticData
=
[
export
const
columnSticData
=
[
{
title
:
'
售后类型
'
,
dataIndex
:
'
serviceType
'
,
hideInSearch
:
true
,
width
:
120
,
render
:
serviceType
=>
{
if
(
+
serviceType
===
1
)
{
return
<
span
style
=
{{
color
:
'
#ff1616
'
}}
>
仅退款
<
/span>
;
}
return
<
span
>
退货退款
<
/span>
;
},
},
{
{
title
:
'
订单ID
'
,
title
:
'
订单ID
'
,
dataIndex
:
'
orderNo
'
,
dataIndex
:
'
orderNo
'
,
...
@@ -97,16 +109,6 @@ export const columnSticData = [
...
@@ -97,16 +109,6 @@ export const columnSticData = [
valueType
:
'
date
'
,
valueType
:
'
date
'
,
hideInTable
:
true
,
hideInTable
:
true
,
},
},
{
title
:
'
售后类型
'
,
dataIndex
:
'
serviceType
'
,
hideInSearch
:
true
,
width
:
120
,
valueEnum
:
{
1
:
'
仅退款
'
,
2
:
'
退货退款
'
,
},
},
{
{
title
:
'
售后原因
'
,
title
:
'
售后原因
'
,
dataIndex
:
'
serviceReason
'
,
dataIndex
:
'
serviceReason
'
,
...
...
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