|
@@ -1,6 +1,12 @@
|
|
|
import {ColumnsType} from 'antd/es/table';
|
|
|
import {SellOrderListData} from '@models';
|
|
|
-import {HUGE_TABLE_WIDTH, MIDDLE_TABLE_WIDTH, NORMAL_TABLE_WIDTH, SMALL_TABLE_WIDTH} from '@utils';
|
|
|
+import {
|
|
|
+ HUGE_TABLE_WIDTH,
|
|
|
+ LARGE_TABLE_WIDTH,
|
|
|
+ MIDDLE_TABLE_WIDTH,
|
|
|
+ NORMAL_TABLE_WIDTH,
|
|
|
+ SMALL_TABLE_WIDTH,
|
|
|
+} from '@utils';
|
|
|
import {useSupertube, useTableDeleteEvent} from '@hooks';
|
|
|
import {deleSellOrder} from '@apis';
|
|
|
import {Button} from 'antd';
|
|
@@ -12,12 +18,6 @@ const columns: ColumnsType<SellOrderListData> = [
|
|
|
key: 'deliveryId',
|
|
|
width: MIDDLE_TABLE_WIDTH,
|
|
|
},
|
|
|
- {
|
|
|
- title: '物料名称',
|
|
|
- dataIndex: 'materialName',
|
|
|
- key: 'materialName',
|
|
|
- width: HUGE_TABLE_WIDTH,
|
|
|
- },
|
|
|
{
|
|
|
title: '物料编号',
|
|
|
dataIndex: 'materialCode',
|
|
@@ -25,10 +25,10 @@ const columns: ColumnsType<SellOrderListData> = [
|
|
|
width: MIDDLE_TABLE_WIDTH,
|
|
|
},
|
|
|
{
|
|
|
- title: 'WBS编号',
|
|
|
- dataIndex: 'wbs',
|
|
|
- key: 'wbs',
|
|
|
- width: NORMAL_TABLE_WIDTH,
|
|
|
+ title: '物料名称',
|
|
|
+ dataIndex: 'materialName',
|
|
|
+ key: 'materialName',
|
|
|
+ width: HUGE_TABLE_WIDTH,
|
|
|
},
|
|
|
{
|
|
|
title: '交货数量',
|
|
@@ -49,17 +49,49 @@ const columns: ColumnsType<SellOrderListData> = [
|
|
|
width: SMALL_TABLE_WIDTH,
|
|
|
},
|
|
|
{
|
|
|
- title: '公司编号',
|
|
|
- dataIndex: 'companyNumber',
|
|
|
- key: 'companyNumber',
|
|
|
- width: SMALL_TABLE_WIDTH,
|
|
|
+ title: '客户名称',
|
|
|
+ dataIndex: 'customerName',
|
|
|
+ key: 'customerName',
|
|
|
+ width: LARGE_TABLE_WIDTH,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '所属公司',
|
|
|
+ dataIndex: 'companyName',
|
|
|
+ key: 'companyName',
|
|
|
+ width: LARGE_TABLE_WIDTH,
|
|
|
},
|
|
|
{
|
|
|
- title: '单据日期',
|
|
|
+ title: '销售日期',
|
|
|
dataIndex: 'billsTime',
|
|
|
key: 'billsTime',
|
|
|
width: NORMAL_TABLE_WIDTH,
|
|
|
},
|
|
|
+ {
|
|
|
+ title: 'WBS编号',
|
|
|
+ dataIndex: 'wbs',
|
|
|
+ key: 'wbs',
|
|
|
+ width: NORMAL_TABLE_WIDTH,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '来源类型',
|
|
|
+ dataIndex: 'sourceType',
|
|
|
+ width: NORMAL_TABLE_WIDTH,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '移动类型',
|
|
|
+ dataIndex: 'moveType',
|
|
|
+ width: NORMAL_TABLE_WIDTH,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '交货类型',
|
|
|
+ dataIndex: 'deliveryType',
|
|
|
+ width: NORMAL_TABLE_WIDTH,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '分录号',
|
|
|
+ dataIndex: 'entryNumber',
|
|
|
+ width: NORMAL_TABLE_WIDTH,
|
|
|
+ },
|
|
|
];
|
|
|
|
|
|
export function useColumns(refetch: () => void) {
|