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
89608d29
Commit
89608d29
authored
Apr 20, 2022
by
前端-彭佳文
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220418' into 'v2-220418'
V2 220418 See merge request linkseeks-design/pro-platform!426
parents
84ba2cfe
1f0c4094
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
20 deletions
+66
-20
basic.tsx
...seAbility/purchaseInquiry/addInquiry/components/basic.tsx
+5
-2
condition.tsx
...ility/purchaseInquiry/addInquiry/components/condition.tsx
+27
-8
basic.tsx
...ility/purchaseInquiry/addMallInquiry/components/basic.tsx
+7
-2
condition.tsx
...y/purchaseInquiry/addMallInquiry/components/condition.tsx
+27
-8
No files found.
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/components/basic.tsx
View file @
89608d29
...
...
@@ -21,6 +21,7 @@ import moment from 'moment';
import
{
getManageAreaAll
,
getManageAreaByPcodeAll
}
from
'@/services/ManageV2Api'
;
import
{
GetPurchasePurchaseInquiryDetailsResponse
}
from
'@/services/PurchaseV2Api'
;
import
{
getIntl
}
from
'umi'
;
import
{
validatorByte
}
from
'@/utils/regExp'
;
const
intl
=
getIntl
();
const
{
Option
}
=
Select
;
const
{
Text
}
=
Typography
;
...
...
@@ -290,9 +291,11 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'table.purchase.details'
})
}
name=
'details'
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'detail.purchase.message20'
})
}]
}
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'detail.purchase.message20'
})
},
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
60
)
}
]
}
>
<
Input
maxLength=
{
30
}
/>
<
Input
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang60gezi'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/components/condition.tsx
View file @
89608d29
...
...
@@ -4,6 +4,7 @@ import moment from 'moment';
import
{
getLogisticsSelectListReceiverAddress
}
from
'@/services/LogisticsV2Api'
;
import
{
getIntl
}
from
'umi'
;
import
AddressSelect
from
'@/components/AddressSelect'
;
import
{
validatorByte
}
from
'@/utils/regExp'
;
const
{
TextArea
}
=
Input
;
const
{
Option
}
=
Select
;
...
...
@@ -113,9 +114,9 @@ const Condition: React.FC<Iprops> = (props: any) => {
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'detail.purchase.message54'
})
}]
}
>
<
DatePicker
showTime=
{
{
format
:
'HH:mm'
}
}
//
showTime={{ format: 'HH:mm' }}
style=
{
{
width
:
'100%'
}
}
format=
{
"YYYY-MM-DD
HH:mm
"
}
format=
{
"YYYY-MM-DD"
}
disabledDate=
{
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
)
}
onChange=
{
(
val
)
=>
deliveryTimeChange
(
val
)
}
/>
...
...
@@ -157,38 +158,56 @@ const Condition: React.FC<Iprops> = (props: any) => {
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.offerAsk'
})
}
name=
"offer"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.paymentType'
})
}
name=
"paymentType"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.taxesAsk'
})
}
name=
"taxes"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.logisticsAsk'
})
}
name=
"logistics"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.packRequireAsk'
})
}
name=
"packRequire"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.otherRequireAsk'
})
}
name=
"otherRequire"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addMallInquiry/components/basic.tsx
View file @
89608d29
...
...
@@ -21,6 +21,7 @@ import moment from 'moment';
import
{
getManageAreaAll
,
getManageAreaByPcodeAll
}
from
'@/services/ManageV2Api'
;
import
{
GetPurchasePurchaseInquiryDetailsResponse
}
from
'@/services/PurchaseV2Api'
;
import
{
getIntl
}
from
'umi'
;
import
{
validatorByte
}
from
'@/utils/regExp'
;
const
intl
=
getIntl
();
const
{
Option
}
=
Select
;
const
{
Text
}
=
Typography
;
...
...
@@ -287,13 +288,17 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
form=
{
form
}
className=
{
style
.
form
}
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'table.purchase.details'
})
}
name=
'details'
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'detail.purchase.message20'
})
}]
}
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'detail.purchase.message20'
})
},
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
60
)
}
]
}
>
<
Input
maxLength=
{
30
}
/>
<
Input
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang60gezi'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
<
Tooltip
placement=
"right"
title=
{
intl
.
formatMessage
({
id
:
'detail.purchase.tips'
})
}
>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addMallInquiry/components/condition.tsx
View file @
89608d29
...
...
@@ -4,6 +4,7 @@ import moment from 'moment';
import
{
getLogisticsSelectListReceiverAddress
}
from
'@/services/LogisticsV2Api'
;
import
{
getIntl
}
from
'umi'
;
import
AddressSelect
from
'@/components/AddressSelect'
;
import
{
validatorByte
}
from
'@/utils/regExp'
;
const
{
TextArea
}
=
Input
;
const
{
Option
}
=
Select
;
...
...
@@ -113,9 +114,9 @@ const Condition: React.FC<Iprops> = (props: any) => {
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'detail.purchase.message54'
})
}]
}
>
<
DatePicker
showTime=
{
{
format
:
'HH:mm'
}
}
//
showTime={{ format: 'HH:mm' }}
style=
{
{
width
:
'100%'
}
}
format=
{
"YYYY-MM-DD
HH:mm
"
}
format=
{
"YYYY-MM-DD"
}
disabledDate=
{
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
)
}
onChange=
{
(
val
)
=>
deliveryTimeChange
(
val
)
}
/>
...
...
@@ -157,38 +158,56 @@ const Condition: React.FC<Iprops> = (props: any) => {
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.offerAsk'
})
}
name=
"offer"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.paymentType'
})
}
name=
"paymentType"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.taxesAsk'
})
}
name=
"taxes"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.logisticsAsk'
})
}
name=
"logistics"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.packRequireAsk'
})
}
name=
"packRequire"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'detail.purchase.otherRequireAsk'
})
}
name=
"otherRequire"
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
<
TextArea
rows=
{
3
}
placeholder=
{
intl
.
formatMessage
({
id
:
'logistics.zuichang100gezifu50ge'
})
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
...
...
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