Commit 2389e6ce authored by 张子雨's avatar 张子雨

feat: 2.1开发

parent ca5f30a8
......@@ -3,7 +3,7 @@ import { notification, Button, Popconfirm } from 'antd';
import ProTable from '@ant-design/pro-table';
import moment from 'moment';
import _ from 'lodash';
import { searchList, auditInfoApi, orderDetail } from '../services';
import { searchList, auditInfoApi, orderDetail, logisticsIntercept } from '../services';
import { columnSticData, appealType } from '../data';
import AuditModal from '../components/auditModal';
import DetailTable from '../components/detailTable';
......@@ -91,10 +91,13 @@ export default () => {
}, 1000);
}
};
const logistics = info => {
console.log(info);
// eslint-disable-next-line no-unused-expressions
table.current?.reload?.();
const logistics = async info => {
const [data] = await logisticsIntercept({ serviceNo: info.serviceNo });
if (data) {
notification.success({ message: '操作成功' });
// eslint-disable-next-line no-unused-expressions
table.current?.reload?.();
}
};
const recordDetail = () => {
setRecordVisible(true);
......
......@@ -56,11 +56,11 @@ export const columnSticData = [
},
{
title: '售后类型',
dataIndex: 'dealStatus1',
dataIndex: 'serviceType',
hideInTable: true,
valueEnum: {
0: '仅退款',
10: '退货退款',
1: '仅退款',
2: '退货退款',
},
},
{
......
......@@ -82,3 +82,11 @@ export async function trackInfo(params) {
}
return {};
}
// 商户操作物流拦截
export async function logisticsIntercept(params) {
return request.get('/api/kdsp/op/afs/shop/logisticsIntercept', {
params,
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