Commit a079c560 authored by 武广's avatar 武广

fix: 修改提示语

parent a0ac8049
...@@ -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 (
......
...@@ -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>
); );
}; };
......
...@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment