|
|
@@ -1,26 +1,37 @@
|
|
|
import {deleNotice} from '@apis';
|
|
|
import {useSupertube, useTableDeleteEvent} from '@hooks';
|
|
|
import {NoticeListData} from '@models';
|
|
|
-import {MIDDLE_TABLE_WIDTH, HUGE_TABLE_WIDTH, SMALL_TABLE_WIDTH, NORMAL_TABLE_WIDTH} from '@utils';
|
|
|
+import {
|
|
|
+ MIDDLE_TABLE_WIDTH,
|
|
|
+ HUGE_TABLE_WIDTH,
|
|
|
+ SMALL_TABLE_WIDTH,
|
|
|
+ NORMAL_TABLE_WIDTH,
|
|
|
+ LARGE_TABLE_WIDTH,
|
|
|
+} from '@utils';
|
|
|
import {Button} from 'antd';
|
|
|
import {ColumnsType} from 'antd/es/table';
|
|
|
|
|
|
const columns: ColumnsType<NoticeListData> = [
|
|
|
- {title: '报工单号', dataIndex: 'noticeId', key: 'noticeId', width: MIDDLE_TABLE_WIDTH},
|
|
|
- {title: '物料名称', dataIndex: 'materialName', key: 'materialName', width: HUGE_TABLE_WIDTH},
|
|
|
- {title: '物料编号', dataIndex: 'wllbCode', key: 'wllbCode', width: MIDDLE_TABLE_WIDTH},
|
|
|
- {title: '数量', dataIndex: 'num', key: 'num', width: SMALL_TABLE_WIDTH},
|
|
|
{
|
|
|
- title: '生产批次',
|
|
|
+ title: '生产单号',
|
|
|
dataIndex: 'productionCode',
|
|
|
- key: 'productionCode',
|
|
|
+
|
|
|
width: MIDDLE_TABLE_WIDTH,
|
|
|
},
|
|
|
- {title: '分录号', dataIndex: 'entryNumber', key: 'entryNumber', width: NORMAL_TABLE_WIDTH},
|
|
|
+ {title: '报工单ID', dataIndex: 'noticeId', width: MIDDLE_TABLE_WIDTH},
|
|
|
+ {title: '报工单编号', dataIndex: 'noticeCode', width: MIDDLE_TABLE_WIDTH},
|
|
|
+ {title: '物料名称', dataIndex: 'materialName', width: HUGE_TABLE_WIDTH},
|
|
|
+ {title: '物料编号', dataIndex: 'wllbCode', width: MIDDLE_TABLE_WIDTH},
|
|
|
+ {title: '数量', dataIndex: 'num', width: SMALL_TABLE_WIDTH, align: 'right'},
|
|
|
+ {title: '报工时间', dataIndex: 'noticeTime', width: NORMAL_TABLE_WIDTH},
|
|
|
+ {title: '分录号', dataIndex: 'entryNumber', width: NORMAL_TABLE_WIDTH},
|
|
|
+ {title: '所属公司', dataIndex: 'companyName', width: LARGE_TABLE_WIDTH},
|
|
|
+ {title: '移动类型', dataIndex: 'moveType', width: NORMAL_TABLE_WIDTH},
|
|
|
+ {title: '来源类型', dataIndex: 'sourceType', width: NORMAL_TABLE_WIDTH},
|
|
|
{
|
|
|
title: '状态',
|
|
|
dataIndex: 'type',
|
|
|
- key: 'type',
|
|
|
+
|
|
|
render(_, {type}) {
|
|
|
return type === '0' ? '未入库' : '已入库';
|
|
|
},
|