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
a1437fd6
Commit
a1437fd6
authored
Mar 23, 2022
by
rainbowmorel@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add lable
parent
c5e179c5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
17 deletions
+69
-17
BaseInfo.tsx
src/components/BaseInfo/BaseInfo.tsx
+1
-1
FormItem.tsx
src/components/FormItem/FormItem.tsx
+1
-1
index.ts
src/pages/order/constants/index.ts
+2
-0
label.ts
src/pages/order/constants/label.ts
+27
-0
add.tsx
src/pages/order/receivingNote/deliveryNoteManage/add.tsx
+38
-15
No files found.
src/components/BaseInfo/BaseInfo.tsx
View file @
a1437fd6
...
@@ -19,7 +19,7 @@ function BaseInfo({ title, className, children, cols = 2, id }: BaseInfoPorps) {
...
@@ -19,7 +19,7 @@ function BaseInfo({ title, className, children, cols = 2, id }: BaseInfoPorps) {
<
Card
<
Card
id=
{
id
}
id=
{
id
}
title=
{
title
}
title=
{
title
}
className=
{
className
}
className=
{
`mt-15 ${className}`
}
>
>
<
div
className=
{
`base_info grid grid-cols-${cols} gap-4`
}
>
<
div
className=
{
`base_info grid grid-cols-${cols} gap-4`
}
>
{
children
}
{
children
}
...
...
src/components/FormItem/FormItem.tsx
View file @
a1437fd6
...
@@ -2,7 +2,7 @@ import { Form, FormItemProps } from "antd";
...
@@ -2,7 +2,7 @@ import { Form, FormItemProps } from "antd";
function
FormItem
<
values
=
any
>
(
prosp
:
FormItemProps
<
values
>
)
{
function
FormItem
<
values
=
any
>
(
prosp
:
FormItemProps
<
values
>
)
{
return
(
return
(
<
Form
.
Item
{
...
prosp
}
style=
{
{
margin
:
0
}
}
/>
<
Form
.
Item
{
...
prosp
}
style=
{
{
margin
:
0
}
}
className=
"w-full"
/>
);
);
}
}
...
...
src/pages/order/constants/index.ts
View file @
a1437fd6
export
*
from
'./anchors'
export
*
from
'./anchors'
export
*
from
'./label'
\ No newline at end of file
src/pages/order/constants/label.ts
0 → 100644
View file @
a1437fd6
export
const
ReceiptAddLabel
=
'新增收货单'
;
export
const
ReceiptAbstractLabel
=
'收货单摘要'
;
export
const
SupplyMembersLabel
=
'供应会员'
;
export
const
NoteLabel
=
'备注'
;
export
const
ConsigneeLabel
=
'收货人'
;
export
const
ConsigneeTimeLable
=
'收货时间'
;
export
const
ConsigneePhoneLabel
=
'收货人电话'
;
export
const
DeliveryOrderNoLabel
=
'送货订单号'
;
export
const
DeliveryTimeLabel
=
'发货时间'
;
export
const
DeliveryAddrLabel
=
'送货自提地址'
;
export
const
LogisticsCompanyLable
=
'物流公司'
;
export
const
LogisticsCarNoLable
=
'车牌号码'
;
export
const
LogisticsNoLable
=
'物流单号'
;
src/pages/order/receivingNote/deliveryNoteManage/add.tsx
View file @
a1437fd6
import
AnchorPage
,
{
AnchorsItem
}
from
"@/components/AnchorPage"
import
AnchorPage
,
{
AnchorsItem
}
from
"@/components/AnchorPage"
import
{
BaseInfo
}
from
"@/components/BaseInfo"
import
{
BaseInfo
}
from
"@/components/BaseInfo"
import
{
useState
}
from
"react"
import
{
useState
}
from
"react"
import
{
BillsInfo
,
DeliveryInfo
,
LogisticsInfo
,
Harvest
,
HarvestMaterial
}
from
'../columns'
import
{
BillsInfo
,
DeliveryInfo
,
LogisticsInfo
,
Harvest
,
HarvestMaterial
,
ReceiptAddLabel
,
ReceiptAbstractLabel
,
SupplyMembersLabel
,
NoteLabel
,
DeliveryTimeLabel
,
ConsigneeLabel
,
DeliveryAddrLabel
,
DeliveryOrderNoLabel
,
ConsigneePhoneLabel
,
ConsigneeTimeLable
,
LogisticsCompanyLable
,
LogisticsCarNoLable
,
LogisticsNoLable
}
from
'../../constants'
import
{
DatePicker
,
Form
,
Input
}
from
'antd'
import
{
DatePicker
,
Form
,
Input
}
from
'antd'
import
{
FormItem
}
from
'@/components/FormItem'
import
{
FormItem
}
from
'@/components/FormItem'
...
@@ -19,50 +23,69 @@ function DeliveryNoteAddForm() {
...
@@ -19,50 +23,69 @@ function DeliveryNoteAddForm() {
})
})
return
(
return
(
<
AnchorPage
title=
"新增收获单"
<
AnchorPage
title=
{
ReceiptAddLabel
}
anchors=
{
anchors
}
>
anchors=
{
anchors
}
>
<
BaseInfo
title=
{
BillsInfo
.
name
}
id=
{
BillsInfo
.
key
}
>
<
BaseInfo
title=
{
BillsInfo
.
name
}
id=
{
BillsInfo
.
key
}
>
<
BaseInfo
.
BaseInfoItem
label=
"收货单摘要"
>
<
BaseInfo
.
BaseInfoItem
label=
{
ReceiptAbstractLabel
}
>
<
FormItem
>
<
FormItem
>
<
Input
/>
<
Input
/>
</
FormItem
>
</
FormItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
"供应会员"
>
<
BaseInfo
.
BaseInfoItem
label=
{
SupplyMembersLabel
}
>
<
FormItem
>
<
FormItem
>
<
Input
/>
<
Input
/>
</
FormItem
>
</
FormItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
"备注"
>
<
BaseInfo
.
BaseInfoItem
label=
{
NoteLabel
}
>
<
FormItem
>
<
FormItem
>
<
Input
/>
<
Input
/>
</
FormItem
>
</
FormItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
>
</
BaseInfo
>
<
BaseInfo
title=
{
DeliveryInfo
.
name
}
id=
{
DeliveryInfo
.
key
}
>
<
BaseInfo
title=
{
Harvest
.
name
}
id=
{
Harvest
.
key
}
>
<
BaseInfo
.
BaseInfoItem
label=
"发货时间"
>
<
BaseInfo
.
BaseInfoItem
label=
{
ConsigneeTimeLable
}
>
<
FormItem
>
<
FormItem
>
<
DatePicker
className=
"w-full"
/>
<
DatePicker
className=
"w-full"
/>
</
FormItem
>
</
FormItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
"收货人"
>
<
BaseInfo
.
BaseInfoItem
label=
{
ConsigneeLabel
}
>
<
FormItem
>
<
FormItem
>
<
Input
/>
<
Input
/>
</
FormItem
>
</
FormItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
"收货人电话"
>
<
BaseInfo
.
BaseInfoItem
label=
{
ConsigneePhoneLabel
}
>
<
FormItem
>
<
FormItem
>
<
Input
/>
<
Input
/>
</
FormItem
>
</
FormItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
>
</
BaseInfo
>
<
BaseInfo
title=
{
DeliveryInfo
.
name
}
id=
{
DeliveryInfo
.
key
}
>
<
BaseInfo
.
BaseInfoItem
label=
{
DeliveryOrderNoLabel
}
>
HF200019343344
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
DeliveryAddrLabel
}
>
<
div
className=
"#LogisticsAddr"
>
<
div
className=
"#LogisticsAddrDisc leading-10"
>
广东省广州市海珠区新港东路1068号中洲中心
</
div
>
<
div
className=
"#LogisticsAddrName"
>
张三/13400001999
</
div
>
</
div
>
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
{
DeliveryTimeLabel
}
>
2012 / 09 / 10
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
>
<
BaseInfo
title=
{
LogisticsInfo
.
name
}
id=
{
LogisticsInfo
.
key
}
>
<
BaseInfo
title=
{
LogisticsInfo
.
name
}
id=
{
LogisticsInfo
.
key
}
>
<
BaseInfo
.
BaseInfoItem
label=
" 送货订单号"
>
<
BaseInfo
.
BaseInfoItem
label=
{
LogisticsCompanyLable
}
>
HF200019343344
HF200019343344
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
"送货自提地址"
>
<
BaseInfo
.
BaseInfoItem
label=
{
LogisticsCarNoLable
}
>
<
div
className=
"#LogisticsAddr"
>
<
div
className=
"#LogisticsAddr"
>
<
div
className=
"#LogisticsAddrDisc leading-10"
>
<
div
className=
"#LogisticsAddrDisc leading-10"
>
广东省广州市海珠区新港东路1068号中洲中心
广东省广州市海珠区新港东路1068号中洲中心
...
@@ -72,13 +95,13 @@ function DeliveryNoteAddForm() {
...
@@ -72,13 +95,13 @@ function DeliveryNoteAddForm() {
</
div
>
</
div
>
</
div
>
</
div
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
"收货人电话"
>
<
BaseInfo
.
BaseInfoItem
label=
{
LogisticsNoLable
}
>
<
FormItem
>
2012 / 09 / 10
<
Input
/>
</
FormItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
>
</
BaseInfo
>
</
AnchorPage
>
</
AnchorPage
>
)
)
}
}
...
...
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