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
ebe33055
Commit
ebe33055
authored
Apr 14, 2022
by
rainbowmorel@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复新增送货单的页面现在问题
parent
7ef4521e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
98 additions
and
47 deletions
+98
-47
add.tsx
src/pages/order/deliveryNotice/create/add.tsx
+22
-13
add.tsx
src/pages/order/deliveryNotice/manageB2B/add.tsx
+19
-9
edit.tsx
src/pages/order/deliveryNotice/manageB2B/edit.tsx
+20
-6
add.tsx
src/pages/order/deliveryNotice/manageSRM/add.tsx
+1
-3
edit.tsx
src/pages/order/deliveryNotice/manageSRM/edit.tsx
+13
-4
index.tsx
...liveryNoticeManagement/deliveryNoticeFromCreate/index.tsx
+23
-12
No files found.
src/pages/order/deliveryNotice/create/add.tsx
View file @
ebe33055
...
...
@@ -147,29 +147,22 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
<
DatePickerSelect
disabled=
{
true
}
defualtToday=
{
true
}
className=
'w-full'
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
DeliveryNameLabel
}
name=
"deliveryVO"
>
<
ShipperAddress
showDefault=
{
true
}
onChange=
{
(
val
)
=>
{
form
.
setFieldsValue
({
"executorVO.phone"
:
val
?.
phone
})
}
}
/>
label=
{
DeliveryTime
}
name=
"deliveryRangeTime"
>
<
DatePickerSelect
.
RangePicker
className=
"w-full"
picker=
'time'
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
Delivery
Time
}
name=
"deliveryRangeTim
e"
>
<
DatePickerSelect
.
RangePicker
className=
"w-full"
picker=
'time'
/>
label=
{
Delivery
NameLabel
}
name=
"executorVO.consigne
e"
>
<
Input
/>
</
FormItem
>
<
FormItem
...
...
@@ -183,6 +176,22 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
<
ContentBox
title=
{
DeliveryInfo
.
name
}
id=
{
DeliveryInfo
.
key
}
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
DeliveryNameLabel
}
name=
"deliveryVO"
>
<
ShipperAddress
showDefault=
{
true
}
onChange=
{
(
val
)
=>
{
form
.
setFieldsValue
({
"executorVO.phone"
:
val
?.
phone
})
}
}
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
...
...
src/pages/order/deliveryNotice/manageB2B/add.tsx
View file @
ebe33055
...
...
@@ -91,7 +91,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
</
FormItem
>
<
ContentBox
title=
{
BillsInfo
.
name
}
id=
{
BillsInfo
.
key
}
>
<
FormItem
rules=
{
[
required
()
...
...
@@ -134,20 +134,19 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
rules=
{
[
required
()
]
}
label=
{
DeliveryNameLabel
}
name=
"executorVO"
>
<
ShipperAddress
showDefault=
{
true
}
/>
label=
{
DeliveryTimeLabel
}
name=
"deliveryRangeTime"
>
<
DatePickerSelect
.
RangePicker
className=
"w-full"
picker=
'time'
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
Delivery
TimeLabel
}
name=
"deliveryRangeTim
e"
>
<
DatePickerSelect
.
RangePicker
className=
"w-full"
picker=
'time'
/>
label=
{
Delivery
NameLabel
}
name=
"executorVO.consigne
e"
>
<
Input
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
...
...
@@ -159,6 +158,19 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
<
ContentBox
title=
{
DeliveryInfo
.
name
}
id=
{
DeliveryInfo
.
key
}
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
DeliverySlefAddrLabel
}
name=
"deliveryVO"
>
<
ShipperAddress
showDefault=
{
true
}
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
...
...
@@ -172,9 +184,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
required
()
]
}
label=
{
ReceivingAddress
}
name=
"receiveVO"
>
<
ReceiverAddress
disabled=
{
true
}
formatValue=
{
addrFormatValue
}
/>
...
...
src/pages/order/deliveryNotice/manageB2B/edit.tsx
View file @
ebe33055
...
...
@@ -7,6 +7,7 @@ import AnchorPage, { AnchorsItem } from '@/components/AnchorPage'
import
React
,
{
useCallback
,
useEffect
,
useState
,
useContext
}
from
'react'
import
{
BillsInfo
,
BuyerLabel
,
ConsigneeTimeLabel
,
DeliveryAbstractLabel
,
DeliveryDateLabel
,
DeliveryGood
,
DeliveryInfo
,
DeliveryNameLabel
,
DeliveryPhoneLabel
,
DeliverySlefAddrLabel
,
DeliveryTimeLabel
,
DeliveryTypeLabel
,
Distribution
,
ExternalRoamRecord
,
LogisticsCarNoLabel
,
LogisticsCompanyLabel
,
LogisticsInfo
,
LogisticsNoLabel
,
NoteLabel
,
ReceivingAddress
}
from
'../../constants'
import
{
BaseInfo
as
ContentBox
}
from
'@/components/BaseInfo'
...
...
@@ -136,22 +137,22 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
<
DatePickerSelect
disabled=
{
true
}
className=
'w-full'
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
DeliveryNameLabel
}
name=
"executorVO"
>
<
ShipperAddress
disabled=
{
true
}
/>
label=
{
DeliveryTimeLabel
}
name=
"deliveryRangeTime"
>
<
DatePickerSelect
.
RangePicker
disabled=
{
true
}
className=
"w-full"
picker=
'time'
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
Delivery
TimeLabel
}
name=
"deliveryRangeTim
e"
>
<
DatePickerSelect
.
RangePicker
disabled=
{
true
}
className=
"w-full"
picker=
'time'
/>
label=
{
Delivery
NameLabel
}
name=
"executorVO.consigne
e"
>
<
Input
/>
</
FormItem
>
<
FormItem
label=
{
DeliveryPhoneLabel
}
name=
"executorVO.phone"
>
...
...
@@ -160,6 +161,19 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
</
ContentBox
>
<
ContentBox
title=
{
DeliveryInfo
.
name
}
id=
{
DeliveryInfo
.
key
}
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
DeliverySlefAddrLabel
}
name=
"deliveryVO"
>
<
ShipperAddress
showDefault=
{
true
}
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
...
...
src/pages/order/deliveryNotice/manageSRM/add.tsx
View file @
ebe33055
...
...
@@ -133,9 +133,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
required
()
]
}
label=
{
DeliveryNameLabel
}
name=
"executorVO.consignee"
>
<
Input
/>
</
FormItem
>
<
FormItem
...
...
@@ -183,8 +181,8 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
required
()
]
}
label=
{
ReceivingAddress
}
name=
"receiveVO"
>
<
ReceiverAddress
formatValue=
{
addrFormatValue
}
/>
</
FormItem
>
...
...
src/pages/order/deliveryNotice/manageSRM/edit.tsx
View file @
ebe33055
...
...
@@ -142,8 +142,8 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
rules=
{
[
required
()
]
}
label=
{
DeliveryNameLabel
}
name=
"executorVO"
>
<
ShipperAddress
/>
label=
{
DeliveryNameLabel
}
name=
"executorVO
.consignee
"
>
<
Input
/>
</
FormItem
>
<
FormItem
...
...
@@ -160,6 +160,17 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
</
ContentBox
>
<
ContentBox
title=
{
DeliveryInfo
.
name
}
id=
{
DeliveryInfo
.
key
}
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
DeliverySlefAddrLabel
}
name=
"deliveryVO"
>
<
ShipperAddress
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
...
...
@@ -175,8 +186,6 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
label=
{
ReceivingAddress
}
name=
"receiveVO"
>
<
ReceiverAddress
disabled=
{
true
}
formatValue=
{
addrFormatValue
}
/>
</
FormItem
>
...
...
src/pages/order/deliveryNoticeManagement/deliveryNoticeFromCreate/index.tsx
View file @
ebe33055
...
...
@@ -53,7 +53,7 @@ function DeliveryNoticeFromCreate() {
form
.
setFieldsValue
(
res
)
console
.
log
(
res
.
products
);
setTableDataSource
(
res
.
products
)
})
...
...
@@ -141,27 +141,24 @@ function DeliveryNoticeFromCreate() {
<
DatePickerSelect
disabled=
{
true
}
className=
'w-full'
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
DeliveryNameLabel
}
name=
"deliveryVO"
>
<
ShipperAddress
onChange=
{
(
v
)
=>
{
form
.
setFieldsValue
({
"executorVO.phone"
:
v
.
phone
})
}
}
/>
label=
{
DeliveryTimeLabel
}
name=
"deliveryRangeTime"
>
<
DatePickerSelect
.
RangePicker
disabled=
{
true
}
className=
"w-full"
picker=
'time'
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
Delivery
TimeLabel
}
name=
"deliveryRangeTim
e"
>
<
DatePickerSelect
.
RangePicker
disabled=
{
true
}
className=
"w-full"
picker=
'time'
/>
label=
{
Delivery
NameLabel
}
name=
"executorVO.consigne
e"
>
<
Input
/>
</
FormItem
>
<
FormItem
...
...
@@ -179,6 +176,20 @@ function DeliveryNoticeFromCreate() {
rules=
{
[
required
()
]
}
label=
{
DeliveryNameLabel
}
name=
"deliveryVO"
>
<
ShipperAddress
onChange=
{
(
v
)
=>
{
form
.
setFieldsValue
({
"executorVO.phone"
:
v
.
phone
})
}
}
/>
</
FormItem
>
<
FormItem
rules=
{
[
required
()
]
}
label=
{
ConsigneeTimeLabel
}
name=
"sendTime"
>
<
DatePickerSelect
className=
"w-full"
/>
</
FormItem
>
...
...
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