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
32d8d5ef
Commit
32d8d5ef
authored
Mar 22, 2022
by
rainbowmorel@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增收货单
parent
04bb879c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
7 deletions
+71
-7
receivingNote.ts
config/routes/orderRoute/receivingNote.ts
+7
-0
BaseInfo.tsx
src/components/BaseInfo/BaseInfo.tsx
+1
-1
anchors.ts
src/pages/order/receivingNote/columns/anchors.ts
+20
-6
add.tsx
src/pages/order/receivingNote/deliveryNoteManage/add.tsx
+43
-0
No files found.
config/routes/orderRoute/receivingNote.ts
View file @
32d8d5ef
...
...
@@ -30,6 +30,13 @@ const ReceivingNote = [
component
:
'@/pages/order/receivingNote/deliveryNoteManage'
},
{
/** 收货单新增*/
path
:
'/memberCenter/order/receivingNote/deliveryNoteManage/add'
,
name
:
'新增收货单'
,
component
:
'@/pages/order/receivingNote/deliveryNoteManage/add'
,
noMargin
:
true
},
{
/** 收货单管理详情*/
path
:
'/memberCenter/order/receivingNote/deliveryNoteManage/details'
,
name
:
'收货单管理详情'
,
...
...
src/components/BaseInfo/BaseInfo.tsx
View file @
32d8d5ef
...
...
@@ -34,7 +34,7 @@ function BaseInfoItem({ label, children }: {
})
{
return
(
<
div
className=
'base_info_item flex text-lg'
>
<
div
className=
'label flex-4 flex-grow-0 w-100 text-gray-400'
>
<
div
className=
'label flex-4 flex
justify-center items-center flex
-grow-0 w-100 text-gray-400'
>
{
label
}
</
div
>
<
div
className=
'value flex-auto'
>
...
...
src/pages/order/receivingNote/columns/anchors.ts
View file @
32d8d5ef
...
...
@@ -12,7 +12,7 @@ const BillsInfo: AnchorsItem = {
const
Distribution
:
AnchorsItem
=
{
key
:
"Distribution"
,
name
:
"
单据
信息"
name
:
"
送货
信息"
}
const
DeliveryInfo
:
AnchorsItem
=
{
...
...
@@ -21,8 +21,8 @@ const DeliveryInfo: AnchorsItem = {
}
const
LogisticsInfo
:
AnchorsItem
=
{
key
:
"
Delivery
Info"
,
name
:
"物流信息
单
"
key
:
"
Logistics
Info"
,
name
:
"物流信息"
}
const
Material
:
AnchorsItem
=
{
...
...
@@ -30,10 +30,21 @@ const Material: AnchorsItem = {
name
:
"送货物料"
}
const
Harvest
:
AnchorsItem
=
{
key
:
"Harvest"
,
name
:
"收货信息"
}
const
HarvestMaterial
:
AnchorsItem
=
{
key
:
"HarvestMaterial"
,
name
:
"收货物料"
}
const
DeliveryNoteQuery
:
AnchorsItem
[]
=
[
BaseInfo
,
Distribution
,
BillsInfo
,
Distribution
,
DeliveryInfo
,
LogisticsInfo
,
Material
...
...
@@ -46,5 +57,7 @@ export {
LogisticsInfo
,
Material
,
Distribution
,
DeliveryNoteQuery
DeliveryNoteQuery
,
Harvest
,
HarvestMaterial
}
\ No newline at end of file
src/pages/order/receivingNote/deliveryNoteManage/add.tsx
0 → 100644
View file @
32d8d5ef
import
AnchorPage
,
{
AnchorsItem
}
from
"@/components/AnchorPage"
import
{
BaseInfo
}
from
"@/components/BaseInfo"
import
{
useState
}
from
"react"
import
{
BillsInfo
,
DeliveryInfo
,
LogisticsInfo
,
Harvest
,
HarvestMaterial
}
from
'../columns'
import
{
Form
,
Input
}
from
'antd'
const
FormItem
=
Form
.
Item
function
DeliveryNoteAddForm
()
{
const
[
anchors
,
setAnchors
]
=
useState
<
AnchorsItem
[]
>
(()
=>
{
return
[
BillsInfo
,
Harvest
,
DeliveryInfo
,
LogisticsInfo
,
HarvestMaterial
]
})
return
(
<
AnchorPage
title=
"新增收获单"
anchors=
{
anchors
}
>
<
BaseInfo
title=
{
BillsInfo
.
name
}
id=
{
BillsInfo
.
key
}
>
<
BaseInfo
.
BaseInfoItem
label=
"收货单摘要"
>
<
FormItem
style=
{
{
margin
:
0
}
}
>
<
Input
/>
</
FormItem
>
</
BaseInfo
.
BaseInfoItem
>
<
BaseInfo
.
BaseInfoItem
label=
"供应会员"
>
<
FormItem
style=
{
{
margin
:
0
}
}
>
<
Input
/>
</
FormItem
>
</
BaseInfo
.
BaseInfoItem
>
</
BaseInfo
>
</
AnchorPage
>
)
}
export
default
DeliveryNoteAddForm
\ No newline at end of file
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