Commit 00007b11 authored by FE-安焕焕's avatar FE-安焕焕 👣

修改售后查询条件和展示字段问题

parent 3f465a9a
...@@ -75,6 +75,12 @@ export default () => { ...@@ -75,6 +75,12 @@ export default () => {
return <div>未申诉</div>; return <div>未申诉</div>;
}, },
}, },
{
title: '售后状态',
dataIndex: 'serviceStatus',
hideInSearch: true,
width: 100,
},
{ {
title: '操作', title: '操作',
hideInSearch: true, hideInSearch: true,
......
import React from 'react'; import React from 'react';
import { Modal, Form, Input, TreeSelect, notification } from 'antd'; import { Modal, Form, Input, Cascader, notification } from 'antd';
import { shopAudit } from '../services'; import { shopAudit } from '../services';
const FormItem = Form.Item; const FormItem = Form.Item;
...@@ -18,36 +18,32 @@ const AuditModal = props => { ...@@ -18,36 +18,32 @@ const AuditModal = props => {
}; };
const treeData = [ const treeData = [
{ {
title: '同意', label: '同意',
value: '1', value: 1,
}, },
{ {
title: '不同意', label: '不同意',
value: '2', value: 2,
children: [ children: [
{ {
title: '商品与出售商品不符', label: '商品与出售商品不符',
value: '2-1', value: 1,
}, },
{ {
title: '影响二次销售', label: '影响二次销售',
value: '2-2', value: 2,
}, },
], ],
}, },
]; ];
const handleOk = () => { const handleOk = () => {
// 掉接口
// 成功后掉取消接口
validateFields(async (error, fieldsValue) => { validateFields(async (error, fieldsValue) => {
if (!error) { if (!error) {
let { auditResult } = fieldsValue; const { auditResult } = fieldsValue;
const refuseCode = auditResult.split('-')?.[1] || '';
auditResult = auditResult.split('-')?.[0];
const data = await shopAudit({ const data = await shopAudit({
...fieldsValue, ...fieldsValue,
refuseCode, refuseCode: auditResult?.[1],
auditResult, auditResult: auditResult?.[0],
serviceNo: formData?.serviceNo, serviceNo: formData?.serviceNo,
}); });
if (data.code === '0000') { if (data.code === '0000') {
...@@ -62,9 +58,8 @@ const AuditModal = props => { ...@@ -62,9 +58,8 @@ const AuditModal = props => {
labelCol: { span: 6 }, labelCol: { span: 6 },
wrapperCol: { span: 16 }, wrapperCol: { span: 16 },
}; };
const isAgree = () => getFieldValue('auditResult') === '1'; const isAgree = () => getFieldValue('auditResult')?.[0] === 1;
const isRefuse = () => getFieldValue('auditResult') && getFieldValue('auditResult') !== '1'; const isRefuse = () => getFieldValue('auditResult') && getFieldValue('auditResult')[0] !== 1;
return ( return (
<Modal <Modal
title="售后操作确认" title="售后操作确认"
...@@ -75,10 +70,12 @@ const AuditModal = props => { ...@@ -75,10 +70,12 @@ const AuditModal = props => {
<Form {...layout} name="formData"> <Form {...layout} name="formData">
<FormItem label="审核结果"> <FormItem label="审核结果">
{getFieldDecorator('auditResult')( {getFieldDecorator('auditResult')(
<TreeSelect <Cascader
allowClear
showSearch
style={{ width: '315px' }} style={{ width: '315px' }}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }} dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
treeData={treeData} options={treeData}
placeholder="请选择" placeholder="请选择"
/>, />,
)} )}
......
...@@ -6,6 +6,12 @@ export const appealType = { ...@@ -6,6 +6,12 @@ export const appealType = {
0: '未申诉', 0: '未申诉',
}; };
export const columnSticData = [ export const columnSticData = [
{
title: '订单ID',
dataIndex: 'orderNo',
hideInTable: true,
width: 200,
},
{ {
title: '订单ID', title: '订单ID',
dataIndex: 'orderNo', dataIndex: 'orderNo',
...@@ -22,9 +28,33 @@ export const columnSticData = [ ...@@ -22,9 +28,33 @@ export const columnSticData = [
{ {
title: '售后单ID', title: '售后单ID',
dataIndex: 'serviceNo', dataIndex: 'serviceNo',
hideInSearch: true,
width: 200, width: 200,
}, },
{
title: '售后状态',
dataIndex: 'dealStatus',
hideInTable: true,
valueEnum: {
0: '待审核',
10: '三方审核中',
11: '三方审核通过',
12: '三方审核拒绝',
13: '客服审核通过',
14: '商户审核中',
15: '商户审核通过',
16: '商户审核拒绝',
20: '审核拒绝',
21: '申诉中',
30: '待填写退货物流信息',
40: '待退货入库',
50: '退货拒收',
60: '待退款',
61: '退货处理中',
70: '售后成功',
99: '用户取消',
},
width: 100,
},
{ {
title: '收货人姓名', title: '收货人姓名',
dataIndex: 'receiverName', dataIndex: 'receiverName',
...@@ -41,6 +71,22 @@ export const columnSticData = [ ...@@ -41,6 +71,22 @@ export const columnSticData = [
width: 200, width: 200,
hideInSearch: true, hideInSearch: true,
}, },
{
title: '订单开始时间',
width: 120,
dataIndex: 'startDate',
key: 'startDate',
valueType: 'date',
hideInTable: true,
},
{
title: '订单结束时间',
width: 120,
dataIndex: 'endDate',
key: 'endDate',
valueType: 'date',
hideInTable: true,
},
{ {
title: '售后类型', title: '售后类型',
dataIndex: 'serviceType', dataIndex: 'serviceType',
...@@ -94,6 +140,12 @@ export const columnSticData = [ ...@@ -94,6 +140,12 @@ export const columnSticData = [
]; ];
export const columnPassAudit = [ export const columnPassAudit = [
...columnSticData, ...columnSticData,
{
title: '商品渠道',
dataIndex: 'skuSourceName',
hideInSearch: true,
width: 200,
},
{ {
title: '商家退货地址', title: '商家退货地址',
dataIndex: 'merchantAddress', dataIndex: 'merchantAddress',
......
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