Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
4595fbee
Commit
4595fbee
authored
Mar 22, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增商品页面物流区块添加发货周期输入功能
parent
b1be3909
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
1 deletion
+33
-1
commodity.ts
src/locales/en-US/commodity.ts
+5
-0
commodity.ts
src/locales/ko-KR/commodity.ts
+5
-0
commodity.ts
src/locales/zh-CN/commodity.ts
+5
-0
logisticsForm.tsx
...ages/commodity/products/addProductsItem/logisticsForm.tsx
+18
-1
No files found.
src/locales/en-US/commodity.ts
View file @
4595fbee
...
...
@@ -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'
,
...
...
src/locales/ko-KR/commodity.ts
View file @
4595fbee
...
...
@@ -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'
:
'청구서 제공 여부를 선택하십시오.'
,
...
...
src/locales/zh-CN/commodity.ts
View file @
4595fbee
...
...
@@ -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'
:
'请选择是否提供发票'
,
...
...
src/pages/commodity/products/addProductsItem/logisticsForm.tsx
View file @
4595fbee
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
>
</>)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment