Commit 36931760 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix(): 修复bug

parent c5ec2c76
import React, { useEffect, useState } from 'react';
import { Row, Col, Form, Input, DatePicker, Select } from 'antd';
import { Row, Col, Form, Input, DatePicker, Select, Button, Space } from 'antd';
import Card from '@/pages/transaction/components/card';
import moment from 'moment';
import { PublicApi } from '@/services/api';
import { isEmpty } from 'lodash';
import { LinkOutlined } from '@ant-design/icons';
const disabledDate = (current) => {
return current && current < moment().startOf('day');
......@@ -70,14 +71,47 @@ const TradeTermsLayout: React.FC<TradeTermsLayoutProps> = (props: any) => {
format="YYYY-MM-DD HH:mm:ss"
/>
</Form.Item>
<Form.Item label='报价要求' name='offer'>
<Input.TextArea maxLength={50} autoSize placeholder='最长100个字符,50个汉字' />
<Form.Item
label='询价联系人'
name='contacts'
rules={[{ required: true, message: '请选择询价联系人' }]}
>
<Input.Search readOnly enterButton={<Button style={{ height: '31.19px' }} icon={<LinkOutlined />}>选择</Button>} />
</Form.Item>
<Form.Item
label='联系人电话'
required
style={{ marginBottom: '0px' }}
>
<Row gutter={16}>
<Col span={8}>
<Form.Item
name='phoneCode'
rules={[{ required: true, message: '请选择' }]}
>
<Select>
<Select.Option value={86}>86</Select.Option>
</Select>
</Form.Item>
</Col>
<Col span={16}>
<Form.Item
name='contactsPhone'
rules={[{ required: true, message: '请选择' }]}
>
<Input type='number' maxLength={11} />
</Form.Item>
</Col>
</Row>
</Form.Item>
<Form.Item label='付款方式' name='paymentType'>
<Input.TextArea maxLength={50} autoSize placeholder='最长100个字符,50个汉字' />
</Form.Item>
</Col>
<Col span={12}>
<Form.Item label='报价要求' name='offer'>
<Input.TextArea maxLength={50} autoSize placeholder='最长100个字符,50个汉字' />
</Form.Item>
<Form.Item label='税费要求' name='taxes'>
<Input.TextArea maxLength={50} autoSize placeholder='最长100个字符,50个汉字' />
</Form.Item>
......
......@@ -188,8 +188,8 @@ const BidInfoLayout: React.FC<BidInfoProps> = (props: any) => {
<Row>
<Col span={3}>
<div className={style.childrenTitle}>
<p>对应</p>
<p>招标商品</p>
<p>关联</p>
<p>报价商品</p>
</div>
</Col>
<Col span={6}>
......
......@@ -130,8 +130,8 @@ const BidResultLayout: React.FC<BidResultProps> = (props: any) => {
<Row>
<Col span={3}>
<div className={style.childrenTitle}>
<p>对应</p>
<p>招标商品</p>
<p>关联</p>
<p>报价商品</p>
</div>
</Col>
<Col span={6}>
......
......@@ -177,6 +177,8 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
name: Object.keys(product).length > 0 ? product.name : res.name,
category: Object.keys(product).length > 0 ? product.customerCategory.name : edit.category,
ids: res.ids,
categoryId: Object.keys(product).length > 0 ? product.customerCategory.id : edit.catcategoryIdegory,
memberCategoryId: (Object.keys(product).length > 0 && !isEmpty(product.customerCategory.category)) ? product.customerCategory.category.id : edit.memberCategoryId,
brand: res.brand,
model: res.model,
purchaseCount: res.purchaseCount,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment