Commit 89608d29 authored by 前端-彭佳文's avatar 前端-彭佳文

Merge branch 'v2-220418' into 'v2-220418'

V2 220418 See merge request linkseeks-design/pro-platform!426
parents 84ba2cfe 1f0c4094
......@@ -21,6 +21,7 @@ import moment from 'moment';
import { getManageAreaAll, getManageAreaByPcodeAll } from '@/services/ManageV2Api';
import { GetPurchasePurchaseInquiryDetailsResponse } from '@/services/PurchaseV2Api';
import { getIntl } from 'umi';
import { validatorByte } from '@/utils/regExp';
const intl = getIntl();
const { Option } = Select;
const { Text } = Typography;
......@@ -290,9 +291,11 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
<Form.Item
label={intl.formatMessage({ id: 'table.purchase.details' })}
name='details'
rules={[{ required: true, message: intl.formatMessage({ id: 'detail.purchase.message20' }) }]}
rules={[{ required: true, message: intl.formatMessage({ id: 'detail.purchase.message20' }) },
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 60) }
]}
>
<Input maxLength={30} />
<Input placeholder={intl.formatMessage({ id: 'logistics.zuichang60gezi' })} />
</Form.Item>
<Form.Item
label={
......
......@@ -4,6 +4,7 @@ import moment from 'moment';
import { getLogisticsSelectListReceiverAddress } from '@/services/LogisticsV2Api';
import { getIntl } from 'umi';
import AddressSelect from '@/components/AddressSelect';
import { validatorByte } from '@/utils/regExp';
const { TextArea } = Input;
const { Option } = Select;
......@@ -113,9 +114,9 @@ const Condition: React.FC<Iprops> = (props: any) => {
rules={[{ required: true, message: intl.formatMessage({ id: 'detail.purchase.message54' }) }]}
>
<DatePicker
showTime={{ format: 'HH:mm' }}
// showTime={{ format: 'HH:mm' }}
style={{ width: '100%' }}
format={"YYYY-MM-DD HH:mm"}
format={"YYYY-MM-DD"}
disabledDate={(current) => current && current < moment().startOf('day')}
onChange={(val) => deliveryTimeChange(val)}
/>
......@@ -157,38 +158,56 @@ const Condition: React.FC<Iprops> = (props: any) => {
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.offerAsk' })}
name="offer"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.paymentType' })}
name="paymentType"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.taxesAsk' })}
name="taxes"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.logisticsAsk' })}
name="logistics"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) }/>
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.packRequireAsk' })}
name="packRequire"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.otherRequireAsk' })}
name="otherRequire"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
</Col>
</Row>
......
......@@ -21,6 +21,7 @@ import moment from 'moment';
import { getManageAreaAll, getManageAreaByPcodeAll } from '@/services/ManageV2Api';
import { GetPurchasePurchaseInquiryDetailsResponse } from '@/services/PurchaseV2Api';
import { getIntl } from 'umi';
import { validatorByte } from '@/utils/regExp';
const intl = getIntl();
const { Option } = Select;
const { Text } = Typography;
......@@ -287,13 +288,17 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
form={form}
className={style.form}
>
<Form.Item
label={intl.formatMessage({ id: 'table.purchase.details' })}
name='details'
rules={[{ required: true, message: intl.formatMessage({ id: 'detail.purchase.message20' }) }]}
rules={[{ required: true, message: intl.formatMessage({ id: 'detail.purchase.message20' }) },
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 60) }
]}
>
<Input maxLength={30} />
<Input placeholder={intl.formatMessage({ id: 'logistics.zuichang60gezi' })} />
</Form.Item>
<Form.Item
label={
<Tooltip placement="right" title={intl.formatMessage({ id: 'detail.purchase.tips' })}>
......
......@@ -4,6 +4,7 @@ import moment from 'moment';
import { getLogisticsSelectListReceiverAddress } from '@/services/LogisticsV2Api';
import { getIntl } from 'umi';
import AddressSelect from '@/components/AddressSelect';
import { validatorByte } from '@/utils/regExp';
const { TextArea } = Input;
const { Option } = Select;
......@@ -113,9 +114,9 @@ const Condition: React.FC<Iprops> = (props: any) => {
rules={[{ required: true, message: intl.formatMessage({ id: 'detail.purchase.message54' }) }]}
>
<DatePicker
showTime={{ format: 'HH:mm' }}
// showTime={{ format: 'HH:mm' }}
style={{ width: '100%' }}
format={"YYYY-MM-DD HH:mm"}
format={"YYYY-MM-DD"}
disabledDate={(current) => current && current < moment().startOf('day')}
onChange={(val) => deliveryTimeChange(val)}
/>
......@@ -157,38 +158,56 @@ const Condition: React.FC<Iprops> = (props: any) => {
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.offerAsk' })}
name="offer"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.paymentType' })}
name="paymentType"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.taxesAsk' })}
name="taxes"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.logisticsAsk' })}
name="logistics"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.packRequireAsk' })}
name="packRequire"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) } />
</Form.Item>
<Form.Item
label={intl.formatMessage({ id: 'detail.purchase.otherRequireAsk' })}
name="otherRequire"
rules={[
{ validator: (rule, value, callback) => validatorByte(rule, value, callback, 100) }
]}
>
<TextArea rows={3} maxLength={50} />
<TextArea rows={3} placeholder={intl.formatMessage({ id: 'logistics.zuichang100gezifu50ge'}) }/>
</Form.Item>
</Col>
</Row>
......
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