|
|
@@ -2,21 +2,32 @@ import {delProductionRequisition} from '@apis';
|
|
|
import {ColumnsType} from 'antd/es/table';
|
|
|
import {SemiDrawListData} from '@models';
|
|
|
import {Button} from 'antd';
|
|
|
-import {DOUBLE_BTN_WIDTH, MIDDLE_TABLE_WIDTH, NORMAL_TABLE_WIDTH, SMALL_TABLE_WIDTH} from '@utils';
|
|
|
+import {
|
|
|
+ DOUBLE_BTN_WIDTH,
|
|
|
+ HUGE_TABLE_WIDTH,
|
|
|
+ LARGE_TABLE_WIDTH,
|
|
|
+ MIDDLE_TABLE_WIDTH,
|
|
|
+ NORMAL_TABLE_WIDTH,
|
|
|
+ SMALL_TABLE_WIDTH,
|
|
|
+} from '@utils';
|
|
|
import {useSupertube, useTableDeleteEvent, useTableModalEvent} from '@hooks';
|
|
|
|
|
|
const tableColumns: ColumnsType<SemiDrawListData> = [
|
|
|
- {title: '要货单编号', dataIndex: 'askGoodsId', key: 'askGoodsId', width: NORMAL_TABLE_WIDTH},
|
|
|
- {title: '物料名称', dataIndex: 'materialName', key: 'materialName', width: MIDDLE_TABLE_WIDTH},
|
|
|
- {title: '物料编号', dataIndex: 'materialCode', key: 'materialCode', width: NORMAL_TABLE_WIDTH},
|
|
|
- {title: '数量', dataIndex: 'num', key: 'num', width: SMALL_TABLE_WIDTH},
|
|
|
+ {title: '要货单编号', dataIndex: 'askGoodsId', key: 'askGoodsId', width: MIDDLE_TABLE_WIDTH},
|
|
|
{
|
|
|
title: '生产订单号',
|
|
|
dataIndex: 'productionCode',
|
|
|
key: 'productionCode',
|
|
|
- width: NORMAL_TABLE_WIDTH,
|
|
|
+ width: MIDDLE_TABLE_WIDTH,
|
|
|
},
|
|
|
+ {title: '物料编号', dataIndex: 'materialCode', key: 'materialCode', width: LARGE_TABLE_WIDTH},
|
|
|
+ {title: '物料名称', dataIndex: 'materialName', key: 'materialName', width: HUGE_TABLE_WIDTH},
|
|
|
+ {title: '数量', dataIndex: 'num', key: 'num', width: SMALL_TABLE_WIDTH, align: 'right'},
|
|
|
{title: '要料部门', dataIndex: 'department', key: 'department', width: NORMAL_TABLE_WIDTH},
|
|
|
+ {title: '所属公司', dataIndex: 'companyName', width: HUGE_TABLE_WIDTH},
|
|
|
+ {title: '分录号', dataIndex: 'entryNumber', width: NORMAL_TABLE_WIDTH},
|
|
|
+ {title: '移动类型', dataIndex: 'moveType', width: NORMAL_TABLE_WIDTH},
|
|
|
+ {title: '来源类型', dataIndex: 'sourceType', width: NORMAL_TABLE_WIDTH},
|
|
|
{
|
|
|
title: '状态',
|
|
|
dataIndex: 'type',
|
|
|
@@ -25,7 +36,9 @@ const tableColumns: ColumnsType<SemiDrawListData> = [
|
|
|
return type === '0' ? '未出库' : '已出库';
|
|
|
},
|
|
|
width: SMALL_TABLE_WIDTH,
|
|
|
+ align: 'center',
|
|
|
},
|
|
|
+ {title: '申请日期', dataIndex: 'sqrq', width: MIDDLE_TABLE_WIDTH},
|
|
|
];
|
|
|
|
|
|
export function useHandle(refetch: () => void) {
|