|
|
@@ -12,18 +12,48 @@ import {Table, TableTools} from '@components';
|
|
|
import {ColumnsType} from 'antd/es/table';
|
|
|
import {GSErrorListData} from '@models';
|
|
|
import {
|
|
|
- NORMAL_TABLE_WIDTH,
|
|
|
HUGE_TABLE_WIDTH,
|
|
|
- SMALL_TABLE_WIDTH,
|
|
|
MIDDLE_TABLE_WIDTH,
|
|
|
+ NORMAL_TABLE_WIDTH,
|
|
|
+ SMALL_TABLE_WIDTH,
|
|
|
} from '@utils';
|
|
|
|
|
|
const columns: ColumnsType<GSErrorListData> = [
|
|
|
- {title: '请求地址', dataIndex: 'url', width: NORMAL_TABLE_WIDTH},
|
|
|
+ {title: '单据ID', dataIndex: 'documentId', width: HUGE_TABLE_WIDTH},
|
|
|
+ {title: '单据号', dataIndex: 'documentCode', width: HUGE_TABLE_WIDTH},
|
|
|
+ {title: 'GS单据号', dataIndex: 'generateCode', width: HUGE_TABLE_WIDTH},
|
|
|
{title: '错误信息', dataIndex: 'errorInfo', width: HUGE_TABLE_WIDTH},
|
|
|
- {title: '请求内容', dataIndex: 'dataVal', width: HUGE_TABLE_WIDTH},
|
|
|
- {title: '请求类型', dataIndex: 'type', width: SMALL_TABLE_WIDTH},
|
|
|
- {title: '请求时间', dataIndex: 'scrq', width: MIDDLE_TABLE_WIDTH},
|
|
|
+ {title: '物料编号', dataIndex: 'materialCode', width: HUGE_TABLE_WIDTH},
|
|
|
+ {title: '数量', dataIndex: 'num', align: 'right', width: NORMAL_TABLE_WIDTH},
|
|
|
+ {title: 'GS分录号', dataIndex: 'entryNumberGs', width: HUGE_TABLE_WIDTH},
|
|
|
+ {title: '分录号', dataIndex: 'entryNumber', width: MIDDLE_TABLE_WIDTH},
|
|
|
+ {title: '日志时间', dataIndex: 'scrq', width: MIDDLE_TABLE_WIDTH},
|
|
|
+ {
|
|
|
+ title: '单据类型',
|
|
|
+ dataIndex: 'type',
|
|
|
+ width: NORMAL_TABLE_WIDTH,
|
|
|
+ render(_, {type}) {
|
|
|
+ switch (type) {
|
|
|
+ case '101': return '采购收货';
|
|
|
+ case '201': return '销售交货单';
|
|
|
+ case '207': return '生产领用';
|
|
|
+ case '109': return '其他收货';
|
|
|
+ case '209': return '其他发货';
|
|
|
+ case 'Z32': return '补领料发货';
|
|
|
+ case 'Z05': return '非生产领用';
|
|
|
+ case '104': return '生产收货';
|
|
|
+ case '345': return '移库单';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '状态',
|
|
|
+ dataIndex: 'transmissionType',
|
|
|
+ width: SMALL_TABLE_WIDTH,
|
|
|
+ render(_, {transmissionType}) {
|
|
|
+ return String(transmissionType) === '1' ? '失败' : '成功';
|
|
|
+ },
|
|
|
+ },
|
|
|
];
|
|
|
|
|
|
const TableList: FC = function() {
|