|
|
@@ -5,6 +5,7 @@ import {NoticeListData} from '@models';
|
|
|
import {
|
|
|
DOUBLE_BTN_WIDTH,
|
|
|
HUGE_TABLE_WIDTH,
|
|
|
+ LARGE_TABLE_WIDTH,
|
|
|
MIDDLE_TABLE_WIDTH,
|
|
|
NORMAL_TABLE_WIDTH,
|
|
|
SMALL_TABLE_WIDTH,
|
|
|
@@ -12,21 +13,26 @@ import {
|
|
|
import {useSupertube, useTableDeleteEvent, useTableModalEvent} from '@hooks';
|
|
|
|
|
|
const tableColumns: 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' ? '未入库' : '已入库';
|
|
|
},
|
|
|
@@ -44,7 +50,7 @@ export function useHandle(refetch: () => void) {
|
|
|
{
|
|
|
title: '操作',
|
|
|
dataIndex: 'id',
|
|
|
- key: 'id',
|
|
|
+
|
|
|
width: isSuper ? DOUBLE_BTN_WIDTH : SMALL_TABLE_WIDTH,
|
|
|
fixed: 'right',
|
|
|
render(_, {id, type}) {
|