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

feat: 2.1开发

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