Commit 4595fbee authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

feat: 新增商品页面物流区块添加发货周期输入功能

parent b1be3909
......@@ -637,6 +637,11 @@ export default {
'commodity.products.addProductsItem.logisticsForm.form.sendAddress.placeholder':'Please select the shipping address',
'commodity.products.addProductsItem.logisticsForm.form.company':'logistics company',
'commodity.products.addProductsItem.logisticsForm.form.company.placeholder':'Please select a logistics company',
'commodity.products.addProductsItem.logisticsForm.form.deadline': 'delivery cycle',
'commodity.products.addProductsItem.logisticsForm.form.deadline.message': 'Please enter the delivery period correctly',
'commodity.products.addProductsItem.logisticsForm.form.deadline.placeholder': 'Please enter the delivery period',
'commodity.products.addProductsItem.logisticsForm.form.deadline.prefix': 'after making the order',
'commodity.products.addProductsItem.logisticsForm.form.deadline.suffix': 'days of the delivery',
'commodity.products.addProductsItem.otherForm.form.isInvoice':'Provide invoice',
'commodity.products.addProductsItem.otherForm.form.isInvoice.message':'Please choose whether to provide an invoice',
......
......@@ -638,6 +638,11 @@ export default {
'commodity.products.addProductsItem.logisticsForm.form.sendAddress.placeholder' : '배송 주소 선택',
'commodity.products.addProductsItem.logisticsForm.form.company' : '물류 회사',
'commodity.products.addProductsItem.logisticsForm.form.company.placeholder' : '물류 회사를 선택하세요.',
'commodity.products.addProductsItem.logisticsForm.form.deadline': '발송 주기',
'commodity.products.addProductsItem.logisticsForm.form.deadline.message': '배송 주기를 정확하게 입력해 주세요',
'commodity.products.addProductsItem.logisticsForm.form.deadline.placeholder': '배송 주기를 입력해 주세요',
'commodity.products.addProductsItem.logisticsForm.form.deadline.prefix': '주문 후',
'commodity.products.addProductsItem.logisticsForm.form.deadline.suffix': '일 발송',
'commodity.products.addProductsItem.otherForm.form.isInvoice' : '영수증 제공',
'commodity.products.addProductsItem.otherForm.form.isInvoice.message' : '청구서 제공 여부를 선택하십시오.',
......
......@@ -638,6 +638,11 @@ export default {
'commodity.products.addProductsItem.logisticsForm.form.sendAddress.placeholder' : '请选择发货地址',
'commodity.products.addProductsItem.logisticsForm.form.company' : '物流公司',
'commodity.products.addProductsItem.logisticsForm.form.company.placeholder' : '请选择物流公司',
'commodity.products.addProductsItem.logisticsForm.form.deadline': '发货周期',
'commodity.products.addProductsItem.logisticsForm.form.deadline.message': '请正确输入发货周期',
'commodity.products.addProductsItem.logisticsForm.form.deadline.placeholder': '请输入发货周期',
'commodity.products.addProductsItem.logisticsForm.form.deadline.prefix': '下单后',
'commodity.products.addProductsItem.logisticsForm.form.deadline.suffix': '天发货',
'commodity.products.addProductsItem.otherForm.form.isInvoice' : '提供发票',
'commodity.products.addProductsItem.otherForm.form.isInvoice.message' : '请选择是否提供发票',
......
import React, { useState, useEffect, useRef } from 'react'
import { history, useIntl } from 'umi'
import { Form, Select, Radio, Checkbox, InputNumber } from 'antd'
import { Form, Select, Radio, Checkbox, InputNumber, Input } from 'antd'
import { store } from '@/store'
import { getLogisticsSelectListCompany, GetLogisticsSelectListCompanyResponse, getLogisticsSelectListFreightTemplate, GetLogisticsSelectListFreightTemplateResponse, getLogisticsSelectListShipperAddress, GetLogisticsSelectListShipperAddressResponse } from '@/services/LogisticsV2Api'
const { ProductStore } = store
......@@ -245,6 +245,23 @@ const LogisticsForm: React.FC<Iprops> = (props) => {
</Select>
</Form.Item>
}
<Form.Item
name="deadline"
label={intl.formatMessage({ id: 'commodity.products.addProductsItem.logisticsForm.form.deadline' })}
rules={[
{
pattern: /^\d+(\.\d{1,3})?$/,
message: intl.formatMessage({ id: 'commodity.products.addProductsItem.logisticsForm.form.deadline.message' }),
}
]}
>
<Input
style={{ width: '100%' }}
placeholder={intl.formatMessage({ id: 'commodity.products.addProductsItem.logisticsForm.form.deadline.placeholder' })}
prefix={intl.formatMessage({ id: 'commodity.products.addProductsItem.logisticsForm.form.deadline.prefix' })}
suffix={intl.formatMessage({ id: 'commodity.products.addProductsItem.logisticsForm.form.deadline.suffix' })}
/>
</Form.Item>
</Form>
</>)
}
......
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