|
|
|
@ -127,7 +127,7 @@ const Main = () => {
|
|
|
|
|
// 设置 sheet 的默认行高
|
|
|
|
|
worksheet.properties.defaultRowHeight = 20;
|
|
|
|
|
// 解析 AntD Table 的 columns
|
|
|
|
|
const headers = generateHeaders(columns);
|
|
|
|
|
const headers = generateHeaders(columns2);
|
|
|
|
|
console.log({ headers });
|
|
|
|
|
// 第一行表头
|
|
|
|
|
const names1: string[] = [];
|
|
|
|
@ -208,7 +208,7 @@ const Main = () => {
|
|
|
|
|
},
|
|
|
|
|
{ title: '板坯钢种', dataIndex: 'STEEL_GRD_DETAIL', key: 'STEEL_GRD_DETAIL', width: 150, ellipsis: true },
|
|
|
|
|
{ title: '订单钢种', dataIndex: 'STLGRD', key: 'STLGRD', width: 150, ellipsis: true },
|
|
|
|
|
{ title: '是否异钢种', dataIndex: 'STD_FLG', key: 'STD_FLG', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '是否异钢种', dataIndex: 'STD_FLG', key: 'STD_FLG', width: 120, ellipsis: true },
|
|
|
|
|
|
|
|
|
|
{ title: '标准号', dataIndex: 'STANDARD_NO', key: 'STANDARD_NO', width: 150, ellipsis: true },
|
|
|
|
|
{ title: '可替代标准号', dataIndex: 'TD_STANDARD_NO', key: 'TD_STANDARD_NO', width: 150, ellipsis: true },
|
|
|
|
@ -217,8 +217,9 @@ const Main = () => {
|
|
|
|
|
{ title: '订单号', dataIndex: 'ORD_NO', key: 'ORD_NO', width: 150, ellipsis: true },
|
|
|
|
|
{ title: '项次号', dataIndex: 'ORD_ITEM', key: 'ORD_ITEM', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '成材率', dataIndex: 'RATE', key: 'RATE', width: 80, ellipsis: true },
|
|
|
|
|
|
|
|
|
|
{ title: '维护区分', dataIndex: 'TD_FL', key: 'TD_FL', width: 60, ellipsis: true },
|
|
|
|
|
{ title: '屈服', dataIndex: 'YP_RST', key: 'YP_RST', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '抗拉', dataIndex: 'TS_RST', key: 'TS_RST', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '维护区分', dataIndex: 'TD_FL', key: 'TD_FL', width: 120, ellipsis: true },
|
|
|
|
|
{ title: '备注', dataIndex: 'REMARK', key: 'REMARK', width: 600, ellipsis: true },
|
|
|
|
|
// { title: '公差下限', dataIndex: 'THK_TOL_MIN', key: 'THK_TOL_MIN', width: 100, ellipsis: true },
|
|
|
|
|
// { title: '公差上限', dataIndex: 'THK_TOL_MAX', key: 'THK_TOL_MAX', width: 100, ellipsis: true },
|
|
|
|
@ -228,6 +229,37 @@ const Main = () => {
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const columns2: ColumnsType<any> = [
|
|
|
|
|
{
|
|
|
|
|
title: '序号',
|
|
|
|
|
render: (text: any, record: any, index: any) => <div>{index + 1}</div>,
|
|
|
|
|
width: 50,
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
},
|
|
|
|
|
{ title: '板坯钢种', dataIndex: 'STEEL_GRD_DETAIL', key: 'STEEL_GRD_DETAIL', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '订单钢种', dataIndex: 'STLGRD', key: 'STLGRD', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '是否异钢种', dataIndex: 'STD_FLG', key: 'STD_FLG', width: 80, ellipsis: true },
|
|
|
|
|
|
|
|
|
|
{ title: '标准号', dataIndex: 'STANDARD_NO', key: 'STANDARD_NO', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '可替代标准号', dataIndex: 'TD_STANDARD_NO', key: 'TD_STANDARD_NO', width: 80, ellipsis: true },
|
|
|
|
|
|
|
|
|
|
{ title: '钢板号', dataIndex: 'PLATE_NO', key: 'PLATE_NO', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '订单号', dataIndex: 'ORD_NO', key: 'ORD_NO', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '项次号', dataIndex: 'ORD_ITEM', key: 'ORD_ITEM', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '成材率', dataIndex: 'RATE', key: 'RATE', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '屈服', dataIndex: 'YP_RST', key: 'YP_RST', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '抗拉', dataIndex: 'TS_RST', key: 'TS_RST', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '维护区分', dataIndex: 'TD_FL', key: 'TD_FL', width: 80, ellipsis: true },
|
|
|
|
|
{ title: '备注', dataIndex: 'REMARK', key: 'REMARK', width: 80, ellipsis: true },
|
|
|
|
|
// { title: '公差下限', dataIndex: 'THK_TOL_MIN', key: 'THK_TOL_MIN', width: 100, ellipsis: true },
|
|
|
|
|
// { title: '公差上限', dataIndex: 'THK_TOL_MAX', key: 'THK_TOL_MAX', width: 100, ellipsis: true },
|
|
|
|
|
{ title: '录入时间', dataIndex: 'INS_DATE', key: 'INS_DATE', width: 80, ellipsis: true },
|
|
|
|
|
//{ title: '修改时间', dataIndex: 'UPD_DATE', key: 'UPD_DATE', width: 100, ellipsis: true },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 点击重置按钮
|
|
|
|
|
const handleRest = (): any => {
|
|
|
|
|
form.resetFields();
|
|
|
|
@ -339,7 +371,7 @@ const Main = () => {
|
|
|
|
|
|
|
|
|
|
<Row gutter={[16, 8]} style={{ marginBottom: '-25px' }}>
|
|
|
|
|
{/* <Col xs={24} sm={12} md={8} lg={6} xl={4} > */}
|
|
|
|
|
<Col span={4} style={{ marginLeft: '-5px' }}>
|
|
|
|
|
<Col span={3} style={{ marginLeft: '-5px' }}>
|
|
|
|
|
<Item label="标准号" name="STANDARD_NO">
|
|
|
|
|
<Input
|
|
|
|
|
prefix={<SearchOutlined />}
|
|
|
|
@ -352,7 +384,7 @@ const Main = () => {
|
|
|
|
|
</Col>
|
|
|
|
|
{/* </Col>
|
|
|
|
|
<Col xs={24} sm={12} md={8} lg={6} xl={4}> */}
|
|
|
|
|
<Col span={4} style={{ marginLeft: '-5px' }}>
|
|
|
|
|
<Col span={3} style={{ marginLeft: '-5px' }}>
|
|
|
|
|
<Item
|
|
|
|
|
label="可替标准"
|
|
|
|
|
name="TD_STANDARD_NO"
|
|
|
|
@ -403,10 +435,11 @@ const Main = () => {
|
|
|
|
|
</Item> */}
|
|
|
|
|
{/* </Col> */}
|
|
|
|
|
|
|
|
|
|
<Col span={4} style={{ marginLeft: '8px' }}>
|
|
|
|
|
<Col span={3} style={{ marginLeft: '-5px' }}>
|
|
|
|
|
<Item
|
|
|
|
|
label="维护区分"
|
|
|
|
|
name="TD_FL"
|
|
|
|
|
labelCol={{ span: 8 }}
|
|
|
|
|
>
|
|
|
|
|
<Dictionary
|
|
|
|
|
placeholder="请选择"
|
|
|
|
@ -417,7 +450,43 @@ const Main = () => {
|
|
|
|
|
/>
|
|
|
|
|
</Item>
|
|
|
|
|
</Col>
|
|
|
|
|
<Space style={{ position: 'absolute', right: 25 }} size={8}>
|
|
|
|
|
|
|
|
|
|
<Col span={2} style={{ marginLeft: '-5px' }}>
|
|
|
|
|
<Item label="屈服:" name="YP_RST" labelCol={{ span: 8 }}>
|
|
|
|
|
<Input style={{ marginLeft: '8px', width: 50 }} />
|
|
|
|
|
</Item>
|
|
|
|
|
<Input
|
|
|
|
|
className="site-input-split"
|
|
|
|
|
style={{
|
|
|
|
|
height: 32.44,
|
|
|
|
|
width: 30,
|
|
|
|
|
border: 'none',
|
|
|
|
|
backgroundColor: '#fff',
|
|
|
|
|
pointerEvents: 'none',
|
|
|
|
|
marginBottom: '-20px',
|
|
|
|
|
marginLeft: '-27px',
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
<Col span={2} style={{ marginLeft: '-5px' }}>
|
|
|
|
|
<Item label="抗拉:" name="TS_RST" labelCol={{ span: 8 }}>
|
|
|
|
|
<Input style={{ marginLeft: '8px', width: 50 }} />
|
|
|
|
|
</Item>
|
|
|
|
|
<Input
|
|
|
|
|
className="site-input-split"
|
|
|
|
|
style={{
|
|
|
|
|
height: 32.44,
|
|
|
|
|
width: 30,
|
|
|
|
|
border: 'none',
|
|
|
|
|
backgroundColor: '#fff',
|
|
|
|
|
pointerEvents: 'none',
|
|
|
|
|
marginBottom: '-20px',
|
|
|
|
|
marginLeft: '-27px',
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
<Space style={{ position: 'absolute', right: 25 }} size={8}>
|
|
|
|
|
<Item style={{ textAlign: 'center' }}>
|
|
|
|
|
<Button
|
|
|
|
|
htmlType="submit"
|
|
|
|
|