Commit 67c8baa4 authored by 武广's avatar 武广

fix: 修改提示语

parent a079c560
...@@ -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') {
......
...@@ -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>
); );
}; };
......
...@@ -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',
......
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