Blame view

src/pages/Order/components/DeliverInfoDrawer.tsx 2.12 KB
zhongnanhuang authored
1
2
import { enumValueToLabel } from '@/utils';
import { getReceivingCompanyOptions } from '@/utils/order';
zhongnanhuang authored
3
import { Col, Drawer, Row } from 'antd';
zhongnanhuang authored
4
import { PAYEE_OPTIONS } from '../constant';
zhongnanhuang authored
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

export default ({ data, onClose }) => {
  return (
    <>
      <Drawer
        width={500}
        title="基本信息"
        placement="right"
        onClose={onClose}
        open
      >
        <Row gutter={[16, 24]}>
          <Col span={6}>
            <span className="text-[#333333]">收货人</span>
          </Col>
          <Col span={18}>{data.customerName}</Col>
          <Col span={6}>
            <span className="className='text-[#333333]'">联系方式</span>
          </Col>
          <Col span={18}>{data.customerContactNumber}</Col>

          <Col span={6}>
            <span className="className='text-[#333333]'">收货地址</span>
          </Col>
          <Col span={18}>{data.customerShippingAddress}</Col>

          <Col span={6}>
32
            <span className="className='text-[#333333]'">课题组老师</span>
zhongnanhuang authored
33
34
35
36
37
38
39
40
41
42
43
44
          </Col>
          <Col span={18}>{data.institutionContactName}</Col>
          <Col span={6}>
            <span className="className='text-[#333333]'">单位名称</span>
          </Col>
          <Col span={18}>{data.institution}</Col>
          <Col span={6}>
            <span className="className='text-[#333333]'">开户银行</span>
          </Col>
          <Col span={18}>{data.bank}</Col>

          <Col span={6}>
zhongnanhuang authored
45
46
47
48
49
            <span className="className='text-[#333333]'">开票收款单位</span>
          </Col>
          <Col span={18}>
            {enumValueToLabel(
              data.receivingCompany,
zhongnanhuang authored
50
              getReceivingCompanyOptions(PAYEE_OPTIONS),
zhongnanhuang authored
51
            )}
52
53
54
          </Col>

          <Col span={6}>
zhongnanhuang authored
55
56
57
58
59
60
61
62
63
64
65
66
            <span className="className='text-[#333333]'">银行账号</span>
          </Col>
          <Col span={18}>{data.bankAccountNumber}</Col>
          <Col span={6}>
            <span className="className='text-[#333333]'">开票识别号</span>
          </Col>
          <Col span={18}>{data.invoiceIdentificationNumber}</Col>
        </Row>
      </Drawer>
    </>
  );
};