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
a079c560
Commit
a079c560
authored
Aug 24, 2022
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改提示语
parent
a0ac8049
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
41 deletions
+17
-41
index.jsx
src/pages/AfterSaleManage/Pending/index.jsx
+0
-41
auditModal.jsx
src/pages/AfterSaleManage/components/auditModal.jsx
+8
-0
styles.less
src/pages/AfterSaleManage/styles.less
+9
-0
No files found.
src/pages/AfterSaleManage/Pending/index.jsx
View file @
a079c560
...
@@ -25,8 +25,6 @@ export default () => {
...
@@ -25,8 +25,6 @@ export default () => {
const
[
auditInfo
,
setAuditInfo
]
=
useState
({});
const
[
auditInfo
,
setAuditInfo
]
=
useState
({});
const
[
appealDetailModal
,
setAppealDetailModal
]
=
useState
(
false
);
const
[
appealDetailModal
,
setAppealDetailModal
]
=
useState
(
false
);
const
[
selectedRow
,
setSelectedRow
]
=
useState
({});
const
[
selectedRow
,
setSelectedRow
]
=
useState
({});
const
[
timeString
,
setTimeString
]
=
useState
({});
const
[
time
,
setTime
]
=
useState
({});
const
[
afterVisible
,
setAfterVisible
]
=
useState
(
false
);
const
[
afterVisible
,
setAfterVisible
]
=
useState
(
false
);
const
[
afterList
,
setAfterList
]
=
useState
([]);
const
[
afterList
,
setAfterList
]
=
useState
([]);
const
viewDetail
=
async
({
serviceNo
})
=>
{
const
viewDetail
=
async
({
serviceNo
})
=>
{
...
@@ -88,39 +86,6 @@ export default () => {
...
@@ -88,39 +86,6 @@ export default () => {
},
},
});
});
};
};
// const renderContent = (record, index, action) => {
// if (!time[record.serviceNo]) {
// const serviceTime = moment(record.approvalEndTime).valueOf();
// const nowTime = moment(record.nowTime).valueOf();
// let timeNumber = (serviceTime - nowTime) / 1000;
// time[record.serviceNo] = setInterval(() => {
// if (timeNumber > 0) {
// timeNumber -= 1;
// // eslint-disable-next-line radix
// const hours = parseInt(timeNumber / 3600)
// .toString()
// .padStart(2, '0');
// // eslint-disable-next-line radix
// const minutes = parseInt((timeNumber / 60) % 60)
// .toString()
// .padStart(2, '0');
// // eslint-disable-next-line radix
// const seconds = parseInt(timeNumber % 60)
// .toString()
// .padStart(2, '0');
// const str = `${hours}时${minutes}分${seconds}秒`;
// timeString[record.serviceNo] = str;
// const strings = _.cloneDeep(timeString);
// setTimeString(strings);
// } else {
// clearInterval(time[record.serviceNo]);
// timeString[record.serviceNo] = '0时0分0秒';
// const strings = _.cloneDeep(timeString);
// setTimeString(strings);
// }
// }, 1000);
// }
// };
const
columns
=
[
const
columns
=
[
{
{
title
:
'
审核倒计时
'
,
title
:
'
审核倒计时
'
,
...
@@ -128,12 +93,6 @@ export default () => {
...
@@ -128,12 +93,6 @@ export default () => {
key
:
'
serviceTime
'
,
key
:
'
serviceTime
'
,
hideInSearch
:
true
,
hideInSearch
:
true
,
width
:
150
,
width
:
150
,
// render: (val, record, index, action) => [
// <span style={{ color: 'red' }}>
// {renderContent(record, index, action)}
// {timeString[record.serviceNo]}
// </span>,
// ],
render
:
(
val
,
record
)
=>
{
render
:
(
val
,
record
)
=>
{
const
serviceTime
=
moment
(
record
.
approvalEndTime
).
valueOf
();
const
serviceTime
=
moment
(
record
.
approvalEndTime
).
valueOf
();
return
(
return
(
...
...
src/pages/AfterSaleManage/components/auditModal.jsx
View file @
a079c560
...
@@ -3,6 +3,7 @@ import { Form } from '@ant-design/compatible';
...
@@ -3,6 +3,7 @@ import { Form } from '@ant-design/compatible';
import
'
@ant-design/compatible/assets/index.css
'
;
import
'
@ant-design/compatible/assets/index.css
'
;
import
{
Modal
,
Input
,
Cascader
,
notification
,
InputNumber
}
from
'
antd
'
;
import
{
Modal
,
Input
,
Cascader
,
notification
,
InputNumber
}
from
'
antd
'
;
import
{
shopAudit
}
from
'
../services
'
;
import
{
shopAudit
}
from
'
../services
'
;
import
styles
from
'
../styles.less
'
;
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
const
{
TextArea
}
=
Input
;
const
{
TextArea
}
=
Input
;
...
@@ -13,6 +14,7 @@ const AuditModal = props => {
...
@@ -13,6 +14,7 @@ const AuditModal = props => {
form
:
{
getFieldDecorator
,
getFieldValue
,
validateFields
,
resetFields
},
form
:
{
getFieldDecorator
,
getFieldValue
,
validateFields
,
resetFields
},
formData
=
{},
formData
=
{},
}
=
props
;
}
=
props
;
const
handleCancel
=
isSuccess
=>
{
const
handleCancel
=
isSuccess
=>
{
resetFields
();
resetFields
();
onCancel
(
isSuccess
);
onCancel
(
isSuccess
);
...
@@ -195,6 +197,12 @@ const AuditModal = props => {
...
@@ -195,6 +197,12 @@ 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/styles.less
View file @
a079c560
...
@@ -21,3 +21,12 @@
...
@@ -21,3 +21,12 @@
display: inherit;
display: inherit;
margin: 20px auto;
margin: 20px auto;
}
}
.redTip {
color: #ff4d4f;
font-size: 14px;
}
.redTipBold {
color: #ff1616;
font-weight: bold;
}
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