|
@@ -1,5 +1,6 @@
|
|
|
import React, { useState, useEffect } from 'react';
|
|
import React, { useState, useEffect } from 'react';
|
|
|
import { Table, Button, Space, Tag, Input, DatePicker, Select, Form, Modal, Typography, Divider, Card } from 'antd';
|
|
import { Table, Button, Space, Tag, Input, DatePicker, Select, Form, Modal, Typography, Divider, Card } from 'antd';
|
|
|
|
|
+import ContractSelect from '@/client/admin/components/ContractSelect';
|
|
|
import { App } from 'antd';
|
|
import { App } from 'antd';
|
|
|
import { PlusOutlined, EditOutlined, DeleteOutlined, SearchOutlined, ReloadOutlined, SaveOutlined, CloseOutlined } from '@ant-design/icons';
|
|
import { PlusOutlined, EditOutlined, DeleteOutlined, SearchOutlined, ReloadOutlined, SaveOutlined, CloseOutlined } from '@ant-design/icons';
|
|
|
import type { TableProps, FormProps } from 'antd';
|
|
import type { TableProps, FormProps } from 'antd';
|
|
@@ -344,13 +345,7 @@ const ContractRenews: React.FC = () => {
|
|
|
className="mb-4"
|
|
className="mb-4"
|
|
|
>
|
|
>
|
|
|
<Form.Item name="contractId" label="合同">
|
|
<Form.Item name="contractId" label="合同">
|
|
|
- <Select placeholder="选择合同" style={{ width: 200 }}>
|
|
|
|
|
- {contracts.map(contract => (
|
|
|
|
|
- <Option key={contract.id} value={contract.id}>
|
|
|
|
|
- {contract.contractNo} - {contract.customer?.name}
|
|
|
|
|
- </Option>
|
|
|
|
|
- ))}
|
|
|
|
|
- </Select>
|
|
|
|
|
|
|
+ <ContractSelect placeholder="选择合同" style={{ width: 200 }} />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
|
|
|
|
|
<Form.Item name="status" label="状态">
|
|
<Form.Item name="status" label="状态">
|
|
@@ -435,13 +430,7 @@ const ContractRenews: React.FC = () => {
|
|
|
label="关联合同"
|
|
label="关联合同"
|
|
|
rules={[{ required: true, message: '请选择关联合同' }]}
|
|
rules={[{ required: true, message: '请选择关联合同' }]}
|
|
|
>
|
|
>
|
|
|
- <Select placeholder="选择合同" style={{ width: '100%' }}>
|
|
|
|
|
- {contracts.map(contract => (
|
|
|
|
|
- <Option key={contract.id} value={contract.id}>
|
|
|
|
|
- {contract.contractNo} - {contract.customer?.name}
|
|
|
|
|
- </Option>
|
|
|
|
|
- ))}
|
|
|
|
|
- </Select>
|
|
|
|
|
|
|
+ <ContractSelect placeholder="选择合同" style={{ width: '100%' }} />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
|
|
|
|
|
<Form.Item
|
|
<Form.Item
|