import React, { Component } from 'react'; import { Table, Input, Select, Checkbox, Button } from 'antd'; import { AddButton } from '$button' import { CaretRightOutlined, RollbackOutlined } from '@ant-design/icons'; import { http } from '$http'; import './index.scss' const { Option } = Select class Detail extends Component { constructor(props) { super(props); this.state = { dataSource: [ // { // id: 1, // pro: '普通', // num: '2回', // money: '4,000' // } ], dataSource1: [ // { // id: 1, // index:'1', // pro: '普通', // num: '2回', // name: '間接', // money: '4,000' // } ], dataSource2: [ // { // id: 1, // index: '1', // pro: '普通', // num: '2回', // name: '間接', // money: '4,000', // date: '2019/07/02' // } ], loading: false, columns: [ { title: '項目', dataIndex: 'pro', key: '1', }, { title: '回数', dataIndex: 'num', key: '2', }, { title: '金額', dataIndex: 'money', key: '3', } ], columns1: [ { title: 'No', dataIndex: 'index', key: '1', }, { title: 'オーダーNo', dataIndex: 'num', key: '2', }, { title: 'オーダー名称', dataIndex: 'name', key: '3', }, { title: '金額', dataIndex: 'money', key: '4', } ], columns2: [ { title: '年月日', dataIndex: 'date', key: '1', }, { title: '休日', dataIndex: 'num', key: '2', }, { title: '出発', dataIndex: 'name', key: '3', }, { title: '到着', dataIndex: 'money', key: '4', }, { title: '乗車船', dataIndex: 'money', key: '5', }, { title: '宿泊地', dataIndex: 'money', key: '5', }, { title: '乗車駅', dataIndex: 'money', key: '5', }, { title: '降車駅', dataIndex: 'money', key: '5', }, { title: '金額', dataIndex: 'money', key: '5', }, { title: '内訳', dataIndex: 'money', key: '5', } ], rowKey: 'id' } } formRef = React.createRef(); onGenderChange = (label, value) => { console.log(label, value); this.formRef.current.setFieldsValue({ note: `Hi, ${value === 'male' ? 'man' : 'lady'}!`, }); }; onFinish = (values) => { console.log(values); }; goBack = () => { this.props.goBack() } submit() { } componentDidMount() { // console.log(this.props.row); // this.formRef.current.setFieldsValue({ // tx_denpyo_no: this.props.row.pldenpyo_NO, // tx_shain_no: this.props.row.snin_MEI, // }); } render() { const { dataSource, dataSource1, columns1, dataSource2, columns2, loading, columns, rowKey } = this.state const setting = { dataSource: dataSource, columns: columns, loading: loading, rowKey: rowKey, pagination: false, size: "small", bordered: true, style: {width: 300} }; const setting1 = { dataSource: dataSource1, columns: columns1, loading: loading, rowKey: rowKey, pagination: false, size: "small", bordered: true, }; const setting2 = { dataSource: dataSource2, columns: columns2, loading: loading, rowKey: rowKey, pagination: false, size: "small", bordered: true, }; return (
 
) } } export default Detail