Commit 6d04aff7 authored by FE-安焕焕's avatar FE-安焕焕 👣

联调

parent 6da903ef
...@@ -46,7 +46,19 @@ const MenuModel = { ...@@ -46,7 +46,19 @@ const MenuModel = {
}); });
return value; return value;
}; };
const menuData = initializationData(payload); let menuData = initializationData(payload);
menuData = menuData.concat([
{
path: 'auditPending',
icon: 'smile',
name: '售后未审核',
},
{
path: 'passAudit',
icon: 'smile',
name: '售后已审核',
},
]);
return { ...state, menuData }; return { ...state, menuData };
}, },
}, },
......
...@@ -92,6 +92,7 @@ export default () => { ...@@ -92,6 +92,7 @@ export default () => {
title: '售后凭证', title: '售后凭证',
dataIndex: 'proofs', dataIndex: 'proofs',
hideInSearch: true, hideInSearch: true,
width: 120,
order: 4, order: 4,
render: proofs => <a onClick={() => viewProofs(proofs)}>查看凭证</a>, render: proofs => <a onClick={() => viewProofs(proofs)}>查看凭证</a>,
}, },
...@@ -99,6 +100,7 @@ export default () => { ...@@ -99,6 +100,7 @@ export default () => {
title: '售后申诉', title: '售后申诉',
dataIndex: 'appealFlag', dataIndex: 'appealFlag',
hideInSearch: true, hideInSearch: true,
width: 120,
render: (appealFlag, r) => { render: (appealFlag, r) => {
if (appealFlag) { if (appealFlag) {
return <a onClick={() => viewAppeal(r)}>申诉</a>; return <a onClick={() => viewAppeal(r)}>申诉</a>;
...@@ -110,6 +112,7 @@ export default () => { ...@@ -110,6 +112,7 @@ export default () => {
title: '操作', title: '操作',
hideInSearch: true, hideInSearch: true,
width: 450, width: 450,
fixed: 'right',
render: (_, r) => [ render: (_, r) => [
<Popconfirm <Popconfirm
title="确定允许退款?" title="确定允许退款?"
...@@ -128,7 +131,7 @@ export default () => { ...@@ -128,7 +131,7 @@ export default () => {
</Button> </Button>
</Popconfirm>, </Popconfirm>,
<Button <Button
key="link" key="link2"
onClick={() => reject(r)} onClick={() => reject(r)}
type="primary" type="primary"
className="mr10" className="mr10"
...@@ -136,11 +139,11 @@ export default () => { ...@@ -136,11 +139,11 @@ export default () => {
> >
驳回 驳回
</Button>, </Button>,
<Button key="link" onClick={() => viewDetail(r)} type="primary" className="mr10"> <Button key="link3" onClick={() => viewDetail(r)} type="primary" className="mr10">
订单详情 订单详情
</Button>, </Button>,
<Button <Button
key="link" key="link4"
onClick={() => handleCom(r)} onClick={() => handleCom(r)}
type="primary" type="primary"
className="mr10" className="mr10"
......
...@@ -60,6 +60,7 @@ export default () => { ...@@ -60,6 +60,7 @@ export default () => {
dataIndex: 'proofs', dataIndex: 'proofs',
hideInSearch: true, hideInSearch: true,
order: 4, order: 4,
width: 100,
render: proofs => <a onClick={() => viewProofs(proofs)}>查看凭证</a>, render: proofs => <a onClick={() => viewProofs(proofs)}>查看凭证</a>,
}, },
{ {
...@@ -67,6 +68,7 @@ export default () => { ...@@ -67,6 +68,7 @@ export default () => {
dataIndex: 'appealFlag', dataIndex: 'appealFlag',
valueEnum: appealType, valueEnum: appealType,
hideInSearch: true, hideInSearch: true,
width: 120,
render: (appealFlag, r) => { render: (appealFlag, r) => {
if (appealFlag) { if (appealFlag) {
return <a onClick={() => viewAppeal(r)}>已申诉</a>; return <a onClick={() => viewAppeal(r)}>已申诉</a>;
...@@ -77,7 +79,8 @@ export default () => { ...@@ -77,7 +79,8 @@ export default () => {
{ {
title: '操作', title: '操作',
hideInSearch: true, hideInSearch: true,
width: 200, width: 250,
fixed: 'right',
render: (_, r) => [ render: (_, r) => [
<Button key="link1" onClick={() => openAudit(r)} className="mr10" type="primary"> <Button key="link1" onClick={() => openAudit(r)} className="mr10" type="primary">
审核 审核
......
...@@ -73,7 +73,7 @@ const AuditModal = props => { ...@@ -73,7 +73,7 @@ const AuditModal = props => {
onCancel={() => handleCancel()} onCancel={() => handleCancel()}
> >
<Form {...layout} name="formData"> <Form {...layout} name="formData">
<FormItem label="" style={{ marginLeft: '120px' }}> <FormItem label="审核结果">
{getFieldDecorator('auditResult')( {getFieldDecorator('auditResult')(
<TreeSelect <TreeSelect
style={{ width: '315px' }} style={{ width: '315px' }}
......
import { Tag } from 'antd';
import React from 'react';
export const appealType = { export const appealType = {
1: '已申诉', 1: '已申诉',
0: '未申诉', 0: '未申诉',
...@@ -7,29 +10,42 @@ export const columnSticData = [ ...@@ -7,29 +10,42 @@ export const columnSticData = [
title: '订单ID', title: '订单ID',
dataIndex: 'orderNo', dataIndex: 'orderNo',
hideInSearch: true, hideInSearch: true,
width: 300,
// eslint-disable-next-line no-confusing-arrow
render: (orderNo, r) =>
r.timeout || r.reminderFlag ? (
<Tag color={r.timeout ? 'red' : 'green'}>{orderNo}</Tag>
) : (
orderNo
),
}, },
{ {
title: '售后单ID', title: '售后单ID',
dataIndex: 'serviceNo', dataIndex: 'serviceNo',
hideInSearch: true, hideInSearch: true,
width: 200,
}, },
{ {
title: '收货人姓名', title: '收货人姓名',
dataIndex: 'receiverName', dataIndex: 'receiverName',
width: 200,
}, },
{ {
title: '收货人手机号', title: '收货人手机号',
dataIndex: 'receiverPhone', dataIndex: 'receiverPhone',
width: 200,
}, },
{ {
title: '收货人地址', title: '收货人地址',
dataIndex: 'receiveAddress', dataIndex: 'receiveAddress',
width: 200,
hideInSearch: true, hideInSearch: true,
}, },
{ {
title: '售后类型', title: '售后类型',
dataIndex: 'serviceType', dataIndex: 'serviceType',
hideInSearch: true, hideInSearch: true,
width: 120,
valueEnum: { valueEnum: {
1: '退款不退货', 1: '退款不退货',
2: '退货退款', 2: '退货退款',
...@@ -39,35 +55,41 @@ export const columnSticData = [ ...@@ -39,35 +55,41 @@ export const columnSticData = [
title: '售后原因', title: '售后原因',
dataIndex: 'serviceReason', dataIndex: 'serviceReason',
hideInSearch: true, hideInSearch: true,
width: 200,
}, },
{ {
title: '售后发生时间', title: '售后发生时间',
dataIndex: 'serviceTime', dataIndex: 'serviceTime',
hideInSearch: true, hideInSearch: true,
width: 200,
}, },
{ {
title: '超时时间', title: '超时时间',
dataIndex: 'overTime', dataIndex: 'overTime',
hideInSearch: true, hideInSearch: true,
width: 200,
}, },
{ {
title: '是否催办', title: '是否催办',
dataIndex: 'reminderFlag', dataIndex: 'reminderFlag',
hideInSearch: true, hideInSearch: true,
width: 120,
valueEnum: { valueEnum: {
1: '', true: '',
2: '', false: '',
}, },
}, },
{ {
title: '是否同意售后', title: '是否同意售后',
dataIndex: 'isAgree', dataIndex: 'isAgree',
hideInSearch: true, hideInSearch: true,
width: 120,
}, },
{ {
title: '拒绝原因', title: '拒绝原因',
dataIndex: 'refuseReason', dataIndex: 'refuseReason',
hideInSearch: true, hideInSearch: true,
width: 200,
}, },
]; ];
export const columnPassAudit = [ export const columnPassAudit = [
...@@ -76,20 +98,24 @@ export const columnPassAudit = [ ...@@ -76,20 +98,24 @@ export const columnPassAudit = [
title: '商家退货地址', title: '商家退货地址',
dataIndex: 'merchantAddress', dataIndex: 'merchantAddress',
hideInSearch: true, hideInSearch: true,
width: 200,
}, },
{ {
title: '退回物流', title: '退回物流',
dataIndex: 'expressCompanyName', dataIndex: 'expressCompanyName',
hideInSearch: true, hideInSearch: true,
width: 150,
}, },
{ {
title: '退回物流单号', title: '退回物流单号',
dataIndex: 'deliveryNo', dataIndex: 'deliveryNo',
hideInSearch: true, hideInSearch: true,
width: 200,
}, },
{ {
title: '售后状态', title: '售后状态',
dataIndex: 'serviceStatus', dataIndex: 'serviceStatus',
hideInSearch: true, hideInSearch: true,
width: 120,
}, },
]; ];
import request from '@/utils/request'; import request from '@/utils/request';
import config from '../../../config/env.config'; import config from '../../../config/env.config';
import { stringify } from 'qs';
import _ from 'lodash';
let { kdspApi } = config; const { kdspApi } = config;
kdspApi = 'http://yapi.quantgroups.com/mock/351';
// 分页查询所有数据 // 分页查询所有数据
export async function searchList(params, queryStatus) { export async function searchList(params, queryStatus) {
const param = { const param = {
...params, ...params,
pageNo: params.current, pageNo: params.current,
pageSize: params.pageSize || 20,
queryStatus, queryStatus,
}; };
const data = await request.post('/api/kdsp/op/afs/shop/list', { const data = await request.post('/api/kdsp/op/afs/shop/list', {
data: param,
prefix: kdspApi, prefix: kdspApi,
data: stringify(_.omitBy(param, v => !v)),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
}); });
if (data.data) { if (data.data) {
return { return {
...@@ -30,22 +35,28 @@ export async function searchList(params, queryStatus) { ...@@ -30,22 +35,28 @@ export async function searchList(params, queryStatus) {
// 售后单详情 // 售后单详情
export async function jdInfo(params) { export async function jdInfo(params) {
const data = await request.get('/api/kdsp/op/afs/jd-info', { const data = await request.get('/api/kdsp/op/afs/jd-info', {
params,
prefix: kdspApi, prefix: kdspApi,
params: stringify(params),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
}); });
return data.data || {}; return data.data || {};
} }
// 售后审核 // 售后审核
export async function shopAudit(params) { export async function shopAudit(params) {
return request.post('/api/kdsp/op/afs/shop/audit', { return request.post('/api/kdsp/op/afs/shop/audit', {
params, data: stringify(params),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
prefix: kdspApi, prefix: kdspApi,
}); });
} }
// 查询审核信息 // 查询审核信息
export async function auditInfoApi(serviceNo) { export async function auditInfoApi(params) {
return request.get('/api/kdsp/op/afs/back-info', { return request.get('/api/kdsp/op/afs/back-info', {
params: { serviceNo }, params,
prefix: kdspApi, prefix: kdspApi,
}); });
} }
...@@ -53,13 +64,16 @@ export async function auditInfoApi(serviceNo) { ...@@ -53,13 +64,16 @@ export async function auditInfoApi(serviceNo) {
// 审核核检 // 审核核检
export async function shopCheck(params) { export async function shopCheck(params) {
return request.post('/api/kdsp/op/afs/shop/check', { return request.post('/api/kdsp/op/afs/shop/check', {
params, params: stringify(_.omitBy(params, v => !v)),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
prefix: kdspApi, prefix: kdspApi,
}); });
} }
// 查询物流信息 // 查询物流信息
export async function trackInfo(params) { export async function trackInfo(params) {
const data = await request.get('/api/kdsp/logistics/kd100/track-list', { const data = await request.get('/api/kdsp/op/logistics/kd100/track-list', {
params, params,
prefix: kdspApi, prefix: kdspApi,
}); });
......
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