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
陈智峰
jinfa-platform
Commits
f5da3f56
Commit
f5da3f56
authored
Mar 02, 2022
by
GuanHua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
8331d122
031da597
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
60 additions
and
105 deletions
+60
-105
commodity.ts
src/locales/zh-CN/commodity.ts
+1
-1
index.tsx
...ransaction/dealAbility/inquiryOffer/offerSearch/index.tsx
+10
-10
index.tsx
...ansaction/dealAbility/inquiryOffer/waitAddOffer/index.tsx
+0
-2
schema.ts
...ansaction/dealAbility/inquiryOffer/waitAddOffer/schema.ts
+0
-20
index.tsx
...tion/dealAbility/inquiryOffer/waitAuditOfferOne/index.tsx
+0
-2
schema.ts
...tion/dealAbility/inquiryOffer/waitAuditOfferOne/schema.ts
+0
-20
index.tsx
...tion/dealAbility/inquiryOffer/waitAuditOfferTwo/index.tsx
+0
-2
schema.ts
...tion/dealAbility/inquiryOffer/waitAuditOfferTwo/schema.ts
+0
-20
index.tsx
...ement/readySubmitExamine/components/rulesLayout/index.tsx
+8
-8
index.tsx
...eOrder/orderCollectB2b/components/selectAddress/index.tsx
+1
-1
index.tsx
...pages/transaction/purchaseOrder/orderCollectB2b/index.tsx
+24
-11
index.tsx
...Order/orderCollectCash/components/selectAddress/index.tsx
+1
-1
index.tsx
...ages/transaction/purchaseOrder/orderCollectCash/index.tsx
+3
-3
index.tsx
...rderCollectRequisition/components/selectAddress/index.tsx
+1
-1
index.tsx
...eOrder/orderCollectSrm/components/selectAddress/index.tsx
+1
-1
index.tsx
...n/saleOrder/agentOrder/components/selectAddress/index.tsx
+1
-1
type.ts
src/utils/type.ts
+9
-1
No files found.
src/locales/zh-CN/commodity.ts
View file @
f5da3f56
...
@@ -631,7 +631,7 @@ export default {
...
@@ -631,7 +631,7 @@ export default {
'commodity.products.addProductsItem.logisticsForm.form.weight.placeholder'
:
'请输入重量'
,
'commodity.products.addProductsItem.logisticsForm.form.weight.placeholder'
:
'请输入重量'
,
'commodity.products.addProductsItem.logisticsForm.form.useTemplate'
:
'使用运费模板(只有买家承担运费才能选择)'
,
'commodity.products.addProductsItem.logisticsForm.form.useTemplate'
:
'使用运费模板(只有买家承担运费才能选择)'
,
'commodity.products.addProductsItem.logisticsForm.form.templateId'
:
'运费模板'
,
'commodity.products.addProductsItem.logisticsForm.form.templateId'
:
'运费模板'
,
'commodity.products.addProductsItem.logisticsForm.form.templateId.message'
:
'请
正确输入重量
'
,
'commodity.products.addProductsItem.logisticsForm.form.templateId.message'
:
'请
选择运费模板
'
,
'commodity.products.addProductsItem.logisticsForm.form.templateId.placeholder'
:
'请选择运费模板'
,
'commodity.products.addProductsItem.logisticsForm.form.templateId.placeholder'
:
'请选择运费模板'
,
'commodity.products.addProductsItem.logisticsForm.form.sendAddress'
:
'发货地址'
,
'commodity.products.addProductsItem.logisticsForm.form.sendAddress'
:
'发货地址'
,
'commodity.products.addProductsItem.logisticsForm.form.sendAddress.message'
:
'请选择发货地址'
,
'commodity.products.addProductsItem.logisticsForm.form.sendAddress.message'
:
'请选择发货地址'
,
...
...
src/pages/transaction/dealAbility/inquiryOffer/offerSearch/index.tsx
View file @
f5da3f56
...
@@ -7,7 +7,7 @@ import EyePreview from '@/components/EyePreview';
...
@@ -7,7 +7,7 @@ import EyePreview from '@/components/EyePreview';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
OFFERSEARCHSCHEMA
}
from
'./schema'
;
import
{
OFFERSEARCHSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionProduct
InquiryInteriorStateEnum
,
getTransactionProductQuotationList
,
getTransactionQuotationtInquiryExternal
StateEnum
}
from
'@/services/TransactionV2Api'
;
import
{
getTransactionProduct
QuotationList
,
getTransactionQuotationtInquiryExternalStateEnum
,
postTransactionQuotationtInquiryInterior
StateEnum
}
from
'@/services/TransactionV2Api'
;
const
intl
=
getIntl
();
const
intl
=
getIntl
();
const
OfferSearch
=
()
=>
{
const
OfferSearch
=
()
=>
{
...
@@ -19,49 +19,49 @@ const OfferSearch = () => {
...
@@ -19,49 +19,49 @@ const OfferSearch = () => {
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
intl
.
formatMessage
({
id
:
'dealAbility.baojiadanhao'
}),
title
:
intl
.
formatMessage
({
id
:
'dealAbility.baojiadanhao'
}),
key
:
'quotationNo'
,
key
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryOffer/offerSearch/offer/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryOffer/offerSearch/offer/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'dealAbility.xunjiadanhao'
}),
title
:
intl
.
formatMessage
({
id
:
'dealAbility.xunjiadanhao'
}),
key
:
'inquiryListNo'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryOffer/offerSearch/inquiry/preview?id=${record.inquiryListId}`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryOffer/offerSearch/inquiry/preview?id=${record.inquiryListId}`
}
>
{
text
}
</
EyePreview
>
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'dealAbility.baojiadanzhaiyao'
}),
title
:
intl
.
formatMessage
({
id
:
'dealAbility.baojiadanzhaiyao'
}),
key
:
'details'
,
key
:
'details'
,
dataIndex
:
'details'
,
dataIndex
:
'details'
,
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'dealAbility.xunjiahuiyuan'
}),
title
:
intl
.
formatMessage
({
id
:
'dealAbility.xunjiahuiyuan'
}),
key
:
'memberName'
,
key
:
'memberName'
,
dataIndex
:
'memberName'
,
dataIndex
:
'memberName'
,
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'dealAbility.baojiajiezhishijian'
}),
title
:
intl
.
formatMessage
({
id
:
'dealAbility.baojiajiezhishijian'
}),
key
:
'quotationAsTime'
,
key
:
'quotationAsTime'
,
dataIndex
:
'quotationAsTime'
,
dataIndex
:
'quotationAsTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'dealAbility.danjushijian'
}),
title
:
intl
.
formatMessage
({
id
:
'dealAbility.danjushijian'
}),
key
:
'voucherTime'
,
key
:
'voucherTime'
,
dataIndex
:
'voucherTime'
,
dataIndex
:
'voucherTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'dealAbility.waibuzhuangtai'
}),
title
:
intl
.
formatMessage
({
id
:
'dealAbility.waibuzhuangtai'
}),
key
:
'externalState'
,
key
:
'externalState'
,
dataIndex
:
'externalState'
,
dataIndex
:
'externalState'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Tag
color=
{
EXTERNALSTATE_COLOR
[
text
]
}
>
{
record
.
externalStateName
}
</
Tag
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Tag
color=
{
EXTERNALSTATE_COLOR
[
text
]
}
>
{
record
.
externalStateName
}
</
Tag
>
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'dealAbility.neibuzhuangtai'
}),
title
:
intl
.
formatMessage
({
id
:
'dealAbility.neibuzhuangtai'
}),
key
:
'interiorState'
,
key
:
'interiorState'
,
dataIndex
:
'interiorState'
,
dataIndex
:
'interiorState'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Badge
status=
{
INTERNALSTATE_COLOR
[
text
]
}
text=
{
record
.
interiorStateName
}
/>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Badge
status=
{
INTERNALSTATE_COLOR
[
text
]
}
text=
{
record
.
interiorStateName
}
/>
...
@@ -76,7 +76,7 @@ const OfferSearch = () => {
...
@@ -76,7 +76,7 @@ const OfferSearch = () => {
fetch=
{
getTransactionProductQuotationList
}
fetch=
{
getTransactionProductQuotationList
}
reload=
{
reload
}
reload=
{
reload
}
externalStatusFetch=
{
getTransactionQuotationtInquiryExternalStateEnum
()
}
externalStatusFetch=
{
getTransactionQuotationtInquiryExternalStateEnum
()
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2
'
})
}
interiorStatusFetch=
{
postTransactionQuotationtInquiryInteriorStateEnum
({},
{
ctlType
:
'none
'
})
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/index.tsx
View file @
f5da3f56
...
@@ -140,8 +140,6 @@ const WaitAddOffer = () => {
...
@@ -140,8 +140,6 @@ const WaitAddOffer = () => {
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
getTransactionStayProductQuotationList
}
fetch=
{
getTransactionStayProductQuotationList
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
getCheckboxProps=
{
getCheckboxProps
}
getCheckboxProps=
{
getCheckboxProps
}
controllerBtns=
{
controllerBtns=
{
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/schema.ts
View file @
f5da3f56
...
@@ -75,26 +75,6 @@ export const WAITADDOFFERSCHEMA: ISchema = {
...
@@ -75,26 +75,6 @@ export const WAITADDOFFERSCHEMA: ISchema = {
placeholder
:
[
intl
.
formatMessage
({
id
:
'dealAbility.kaishishijian'
}),
intl
.
formatMessage
({
id
:
'dealAbility.jieshushijian'
})],
placeholder
:
[
intl
.
formatMessage
({
id
:
'dealAbility.kaishishijian'
}),
intl
.
formatMessage
({
id
:
'dealAbility.jieshushijian'
})],
}
}
},
},
externalState
:
{
type
:
"string"
,
"x-component-props"
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'dealAbility.waibuzhuangtai'
}),
style
:
{
width
:
160
}
},
enum
:
[]
},
interiorState
:
{
type
:
"string"
,
"x-component-props"
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'dealAbility.neibuzhuangtai'
}),
style
:
{
width
:
160
}
},
enum
:
[]
},
}
}
},
},
sumbit
:
{
sumbit
:
{
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAuditOfferOne/index.tsx
View file @
f5da3f56
...
@@ -87,8 +87,6 @@ const WaitAuditOfferOne = () => {
...
@@ -87,8 +87,6 @@ const WaitAuditOfferOne = () => {
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
getTransactionAuditProductQuotationList
}
fetch=
{
getTransactionAuditProductQuotationList
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAuditOfferOne/schema.ts
View file @
f5da3f56
...
@@ -75,26 +75,6 @@ export const WAITAUDITOFFERONESCHEMA: ISchema = {
...
@@ -75,26 +75,6 @@ export const WAITAUDITOFFERONESCHEMA: ISchema = {
placeholder
:
[
intl
.
formatMessage
({
id
:
'dealAbility.kaishishijian'
}),
intl
.
formatMessage
({
id
:
'dealAbility.jieshushijian'
})],
placeholder
:
[
intl
.
formatMessage
({
id
:
'dealAbility.kaishishijian'
}),
intl
.
formatMessage
({
id
:
'dealAbility.jieshushijian'
})],
}
}
},
},
externalState
:
{
type
:
"string"
,
"x-component-props"
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'dealAbility.waibuzhuangtai'
}),
style
:
{
width
:
160
}
},
enum
:
[]
},
interiorState
:
{
type
:
"string"
,
"x-component-props"
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'dealAbility.neibuzhuangtai'
}),
style
:
{
width
:
160
}
},
enum
:
[]
},
}
}
},
},
sumbit
:
{
sumbit
:
{
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAuditOfferTwo/index.tsx
View file @
f5da3f56
...
@@ -87,8 +87,6 @@ const WaitAuditOfferTwo = () => {
...
@@ -87,8 +87,6 @@ const WaitAuditOfferTwo = () => {
columns=
{
columns
}
columns=
{
columns
}
effects=
"quotationNo"
effects=
"quotationNo"
fetch=
{
getTransactionAuditProductQuotationListTwo
}
fetch=
{
getTransactionAuditProductQuotationListTwo
}
externalStatusFetch=
{
getTransactionProductInquiryExternalStateEnum
({
type
:
'2'
})
}
interiorStatusFetch=
{
getTransactionProductInquiryInteriorStateEnum
({
type
:
'2'
})
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAuditOfferTwo/schema.ts
View file @
f5da3f56
...
@@ -75,26 +75,6 @@ export const WAITADUITOFFERTWOSCHEMA: ISchema = {
...
@@ -75,26 +75,6 @@ export const WAITADUITOFFERTWOSCHEMA: ISchema = {
placeholder
:
[
intl
.
formatMessage
({
id
:
'dealAbility.kaishishijian'
}),
intl
.
formatMessage
({
id
:
'dealAbility.jieshushijian'
})],
placeholder
:
[
intl
.
formatMessage
({
id
:
'dealAbility.kaishishijian'
}),
intl
.
formatMessage
({
id
:
'dealAbility.jieshushijian'
})],
}
}
},
},
externalState
:
{
type
:
"string"
,
"x-component-props"
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'dealAbility.waibuzhuangtai'
}),
style
:
{
width
:
160
}
},
enum
:
[]
},
interiorState
:
{
type
:
"string"
,
"x-component-props"
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'dealAbility.neibuzhuangtai'
}),
style
:
{
width
:
160
}
},
enum
:
[]
},
}
}
},
},
sumbit
:
{
sumbit
:
{
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmitExamine/components/rulesLayout/index.tsx
View file @
f5da3f56
...
@@ -249,7 +249,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -249,7 +249,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
rules=
{
[
rules=
{
[
({
getFieldValue
})
=>
({
({
getFieldValue
})
=>
({
validator
:
(
_rule
,
value
)
=>
{
validator
:
(
_rule
,
value
)
=>
{
const
pattern
=
/
(
^
[
1-9
](\d
+
)?(\.\d
{1,2}
)?
$
)
|
(
^
\d\.\d
{1,2}$
)
/
;
const
pattern
=
/
^
([
1-9
]\d
*
(\.\d
{1,2}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
const
randomEndPrice
=
getFieldValue
(
'activityDefined'
)[
'randomEndPrice'
];
const
randomEndPrice
=
getFieldValue
(
'activityDefined'
)[
'randomEndPrice'
];
if
(
!
value
)
{
if
(
!
value
)
{
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseMinimumAmountRandom' })}`
));
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseMinimumAmountRandom' })}`
));
...
@@ -272,7 +272,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -272,7 +272,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
rules=
{
[
rules=
{
[
({
getFieldValue
})
=>
({
({
getFieldValue
})
=>
({
validator
:
(
_rule
,
value
)
=>
{
validator
:
(
_rule
,
value
)
=>
{
const
pattern
=
/
(
^
[
1-9
](\d
+
)?(\.\d
{1,2}
)?
$
)
|
(
^
\d\.\d
{1,2}$
)
/
;
const
pattern
=
/
^
([
1-9
]\d
*
(\.\d
{1,2}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
const
randomStartPrice
=
getFieldValue
(
'activityDefined'
)[
'randomStartPrice'
];
const
randomStartPrice
=
getFieldValue
(
'activityDefined'
)[
'randomStartPrice'
];
if
(
!
value
)
{
if
(
!
value
)
{
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseLargestAmountRandom' })}`
));
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseLargestAmountRandom' })}`
));
...
@@ -351,8 +351,8 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -351,8 +351,8 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
fieldKey=
{
[
fieldKey
,
`${int === ACTIVITY_TYPE_7 ? 'num' : 'key'}`
]
}
fieldKey=
{
[
fieldKey
,
`${int === ACTIVITY_TYPE_7 ? 'num' : 'key'}`
]
}
rules=
{
[{
rules=
{
[{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
const
pattern1
=
/
(
^
[
1-9
](\d
+
)?(\.\d
{1,3}
)?
$
)
|
(
^
\d\.\d
{1,3}$
)
/
;
const
pattern1
=
/
^
([
1-9
]\d
*
(\.\d
{1,3}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
const
pattern2
=
/
(
^
[
1-9
](\d
+
)?(\.\d
{1,2}
)?
$
)
|
(
^
\d\.\d
{1,2}$
)
/
;
const
pattern2
=
/
^
([
1-9
]\d
*
(\.\d
{1,2}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
const
valueKey
=
form
.
getFieldValue
(
`activityDefined`
)[
'ladderList'
][
fieldKey
][
'value'
];
const
valueKey
=
form
.
getFieldValue
(
`activityDefined`
)[
'ladderList'
][
fieldKey
][
'value'
];
console
.
log
(
valueKey
)
console
.
log
(
valueKey
)
if
(
!
value
&&
int
===
ACTIVITY_TYPE_4
)
{
if
(
!
value
&&
int
===
ACTIVITY_TYPE_4
)
{
...
@@ -387,8 +387,8 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -387,8 +387,8 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
fieldKey=
{
[
fieldKey
,
`${int === ACTIVITY_TYPE_7 ? 'discount' : 'value'}`
]
}
fieldKey=
{
[
fieldKey
,
`${int === ACTIVITY_TYPE_7 ? 'discount' : 'value'}`
]
}
rules=
{
[{
rules=
{
[{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
const
pattern1
=
/
(
^
[
1-9
](\d
+
)?(\.\d
{1,2}
)?
$
)
|
(
^
\d\.\d
{1,2}$
)
/
;
const
pattern1
=
/
^
([
1-9
]\d
*
(\.\d
{1,2}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
const
pattern2
=
/
(
^
[
1-9
](\d
+
)?(\.\d
{1,2}
)?
$
)
|
(
^
\d\.\d
{1,2}$
)
/
;
const
pattern2
=
/
^
([
1-9
]\d
*
(\.\d
{1,2}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
const
pattern3
=
/^
(?!
0+
(?:\.
0+
)?
$
)\d?\d(?:\.\d
{1,1}
?)?
$/
;
const
pattern3
=
/^
(?!
0+
(?:\.
0+
)?
$
)\d?\d(?:\.\d
{1,1}
?)?
$/
;
const
pattern4
=
/^
(?!
0+
(?:\.
0+
)?
$
)\d?\d(?:\.\d
{1,1}
?)?
$/
;
const
pattern4
=
/^
(?!
0+
(?:\.
0+
)?
$
)\d?\d(?:\.\d
{1,1}
?)?
$/
;
const
valueKey
=
form
.
getFieldValue
(
`activityDefined`
)[
'ladderList'
][
fieldKey
][
'key'
];
const
valueKey
=
form
.
getFieldValue
(
`activityDefined`
)[
'ladderList'
][
fieldKey
][
'key'
];
...
@@ -454,7 +454,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -454,7 +454,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
name=
{
[
'activityDefined'
,
'price'
]
}
name=
{
[
'activityDefined'
,
'price'
]
}
rules=
{
[{
rules=
{
[{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
const
pattern
=
/
(
^
[
1-9
](\d
+
)?(\.\d
{1,2}
)?
$
)
|
(
^
\d\.\d
{1,2}$
)
/
;
const
pattern
=
/
^
([
1-9
]\d
*
(\.\d
{1,2}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
if
(
!
value
)
{
if
(
!
value
)
{
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseEnterTheAmount' })}`
));
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseEnterTheAmount' })}`
));
}
}
...
@@ -796,7 +796,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
...
@@ -796,7 +796,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
name=
{
[
'activityDefined'
,
'orderPrice'
]
}
name=
{
[
'activityDefined'
,
'orderPrice'
]
}
rules=
{
[{
rules=
{
[{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
required
:
true
,
validator
:
(
_rule
,
value
)
=>
{
const
pattern
=
/
(
^
[
1-9
](\d
+
)?(\.\d
{1,2}
)?
$
)
|
(
^
\d\.\d
{1,2}$
)
/
;
const
pattern
=
/
^
([
1-9
]\d
*
(\.\d
{1,2}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
if
(
!
value
)
{
if
(
!
value
)
{
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseEnterTheOrderAmount' })}`
));
return
Promise
.
reject
(
new
Error
(
`${intl.formatMessage({ id: 'selfManagement.pleaseEnterTheOrderAmount' })}`
));
}
}
...
...
src/pages/transaction/purchaseOrder/orderCollectB2b/components/selectAddress/index.tsx
View file @
f5da3f56
...
@@ -118,7 +118,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
...
@@ -118,7 +118,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
<
div
style=
{
{
width
:
'100%'
}
}
>
<
div
style=
{
{
width
:
'100%'
}
}
>
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
{
{
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
><
div
key=
{
v
.
id
}
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
key=
{
v
.
id
}
><
div
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
<
div
>
<
div
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
...
...
src/pages/transaction/purchaseOrder/orderCollectB2b/index.tsx
View file @
f5da3f56
...
@@ -456,17 +456,17 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
...
@@ -456,17 +456,17 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
effects=
{
(
$
,
ctx
)
=>
{
effects=
{
(
$
,
ctx
)
=>
{
useAsyncSelect
(
'orderMode'
,
fetchOrderMode
,
[
'text'
,
'id'
])
useAsyncSelect
(
'orderMode'
,
fetchOrderMode
,
[
'text'
,
'id'
])
$
(
'onFormMount'
).
subscribe
(
async
()
=>
{
$
(
'onFormMount'
).
subscribe
(
async
()
=>
{
const
data
=
await
fectchShopListsSource
()
//
const data = await fectchShopListsSource()
if
(
data
&&
data
.
length
)
{
//
if(data && data.length)
{
ctx
.
setFieldState
(
'shopId'
,
state
=>
{
//
ctx.setFieldState('shopId', state =>
{
state
.
props
.
enum
=
data
.
map
(
item
=>
({
//
state.props.enum = data.map(item => (
{
label
:
item
.
name
,
//
label: item.name,
value
:
item
.
id
,
//
value: item.id,
type
:
item
.
type
,
//
type: item.type,
environment
:
item
.
environment
,
//
environment: item.environment,
}))
//
}))
})
//
})
}
//
}
if
(
id
||
modelType
)
{
if
(
id
||
modelType
)
{
ctx
.
setFieldState
(
'orderMode'
,
state
=>
{
ctx
.
setFieldState
(
'orderMode'
,
state
=>
{
state
.
editable
=
false
state
.
editable
=
false
...
@@ -478,6 +478,19 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
...
@@ -478,6 +478,19 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
})
})
}
}
})
})
// 供应商变动查询商城列表
$
(
'onFieldValueChange'
,
'vendorMemberId'
).
subscribe
(
async
state
=>
{
const
role
=
ctx
.
getFieldValue
(
'vendorRoleId'
)
const
data
=
await
fectchShopListsSource
({
environment
:
1
,
hasMemberType
:
1
,
memberId
:
state
.
value
,
roleId
:
role
})
ctx
.
setFieldState
(
'shopId'
,
prevState
=>
{
prevState
.
props
.
enum
=
data
.
map
(
item
=>
({
...
item
,
label
:
item
.
name
,
value
:
item
.
id
}))
})
})
$
(
'onFieldInputChange'
,
'orderMode'
).
subscribe
(
state
=>
{
$
(
'onFieldInputChange'
,
'orderMode'
).
subscribe
(
state
=>
{
const
{
value
}
=
state
const
{
value
}
=
state
// 处理商城类型选项 报价单文案 支付信息栏隐藏
// 处理商城类型选项 报价单文案 支付信息栏隐藏
...
...
src/pages/transaction/purchaseOrder/orderCollectCash/components/selectAddress/index.tsx
View file @
f5da3f56
...
@@ -119,7 +119,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
...
@@ -119,7 +119,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
<
div
style=
{
{
width
:
'100%'
}
}
>
<
div
style=
{
{
width
:
'100%'
}
}
>
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
{
{
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
><
div
key=
{
v
.
id
}
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
key=
{
v
.
id
}
><
div
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
<
div
>
<
div
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
...
...
src/pages/transaction/purchaseOrder/orderCollectCash/index.tsx
View file @
f5da3f56
...
@@ -29,6 +29,7 @@ import { useFormDetail } from '@/formSchema/effects/useFormDetail'
...
@@ -29,6 +29,7 @@ import { useFormDetail } from '@/formSchema/effects/useFormDetail'
import
{
getLogisticsReceiverAddressGet
,
getLogisticsSelectListMemberShipperAddress
,
postLogisticsFreightTemplateCalFreightPrice
}
from
'@/services/LogisticsV2Api'
import
{
getLogisticsReceiverAddressGet
,
getLogisticsSelectListMemberShipperAddress
,
postLogisticsFreightTemplateCalFreightPrice
}
from
'@/services/LogisticsV2Api'
import
{
getOrderBuyerCreateDetail
,
postOrderBuyerCreatePurchase
,
postOrderBuyerCreatePurchaseUpdate
}
from
'@/services/OrderNewV2Api'
import
{
getOrderBuyerCreateDetail
,
postOrderBuyerCreatePurchase
,
postOrderBuyerCreatePurchaseUpdate
}
from
'@/services/OrderNewV2Api'
import
{
postManageWebShopWebAll
}
from
'@/services/ManageV2Api'
import
{
postManageWebShopWebAll
}
from
'@/services/ManageV2Api'
import
{
fectchShopListsSource
}
from
'@/utils/type'
export
interface
AgentOrderDetailProps
{}
export
interface
AgentOrderDetailProps
{}
...
@@ -410,13 +411,12 @@ const AgentOrderDetail:React.FC<AgentOrderDetailProps> = () => {
...
@@ -410,13 +411,12 @@ const AgentOrderDetail:React.FC<AgentOrderDetailProps> = () => {
// 供应商变动查询商城列表
// 供应商变动查询商城列表
$
(
'onFieldValueChange'
,
'vendorMemberId'
).
subscribe
(
async
state
=>
{
$
(
'onFieldValueChange'
,
'vendorMemberId'
).
subscribe
(
async
state
=>
{
const
role
=
ctx
.
getFieldValue
(
'vendorRoleId'
)
const
role
=
ctx
.
getFieldValue
(
'vendorRoleId'
)
const
{
data
}
=
await
postManageWebShopWebAll
({
const
data
=
await
fectchShopListsSource
({
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
,
environment
:
1
,
environment
:
1
,
hasMemberType
:
1
,
hasMemberType
:
1
,
memberId
:
state
.
value
,
memberId
:
state
.
value
,
roleId
:
role
roleId
:
role
}
,
{
ctlType
:
"none"
}
)
})
ctx
.
setFieldState
(
'shopId'
,
prevState
=>
{
ctx
.
setFieldState
(
'shopId'
,
prevState
=>
{
prevState
.
props
.
enum
=
data
.
map
(
item
=>
({
...
item
,
label
:
item
.
name
,
value
:
item
.
id
}))
prevState
.
props
.
enum
=
data
.
map
(
item
=>
({
...
item
,
label
:
item
.
name
,
value
:
item
.
id
}))
})
})
...
...
src/pages/transaction/purchaseOrder/orderCollectRequisition/components/selectAddress/index.tsx
View file @
f5da3f56
...
@@ -125,7 +125,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
...
@@ -125,7 +125,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
{
/* {editable && <Button block onClick={handleAdd} icon={<PlusOutlined />}>新建地址</Button>} */
}
{
/* {editable && <Button block onClick={handleAdd} icon={<PlusOutlined />}>新建地址</Button>} */
}
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
{
{
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
><
div
key=
{
v
.
id
}
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
key=
{
v
.
id
}
><
div
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
<
div
>
<
div
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
...
...
src/pages/transaction/purchaseOrder/orderCollectSrm/components/selectAddress/index.tsx
View file @
f5da3f56
...
@@ -124,7 +124,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
...
@@ -124,7 +124,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
{
/* {editable && <Button block onClick={handleAdd} icon={<PlusOutlined />}>新建地址</Button>} */
}
{
/* {editable && <Button block onClick={handleAdd} icon={<PlusOutlined />}>新建地址</Button>} */
}
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
{
{
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
><
div
key=
{
v
.
id
}
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
key=
{
v
.
id
}
><
div
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
<
div
>
<
div
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
...
...
src/pages/transaction/saleOrder/agentOrder/components/selectAddress/index.tsx
View file @
f5da3f56
...
@@ -121,7 +121,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
...
@@ -121,7 +121,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
{
/* {editable && <Button block onClick={handleAdd} icon={<PlusOutlined />}>新建地址</Button>} */
}
{
/* {editable && <Button block onClick={handleAdd} icon={<PlusOutlined />}>新建地址</Button>} */
}
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
<
SelectStyles
><
Row
gutter=
{
[
16
,
16
]
}
style=
{
{
width
:
'100%'
}
}
>
{
{
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
><
div
key=
{
v
.
id
}
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
showDataSource
.
map
(
v
=>
<
Col
span=
{
12
}
key=
{
v
.
id
}
><
div
onClick=
{
()
=>
handleCheck
(
v
)
}
className=
{
cx
(
'select_style_border'
,
checkedId
===
v
.
id
?
'active'
:
''
)
}
>
<
div
>
<
div
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Row
style=
{
{
color
:
'#303133'
}
}
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
<
Col
>
{
v
.
receiverName
}
</
Col
>
...
...
src/utils/type.ts
View file @
f5da3f56
...
@@ -35,6 +35,14 @@ interface getShopListsParmasProps {
...
@@ -35,6 +35,14 @@ interface getShopListsParmasProps {
* 1 为是
* 1 为是
*/
*/
hasMemberType
?:
number
;
hasMemberType
?:
number
;
/**
* 会员ID
*/
memberId
?:
number
/**
* 角色ID
*/
roleId
?:
number
}
}
/**
/**
...
@@ -42,7 +50,7 @@ interface getShopListsParmasProps {
...
@@ -42,7 +50,7 @@ interface getShopListsParmasProps {
* @param params 接口参数
* @param params 接口参数
*/
*/
export
const
fectchShopListsSource
=
async
(
params
?:
getShopListsParmasProps
)
=>
{
export
const
fectchShopListsSource
=
async
(
params
?:
getShopListsParmasProps
)
=>
{
if
(
postManageWebShopWebAll
Shop
)
{
if
(
postManageWebShopWebAll
)
{
const
{
data
}
=
await
postManageWebShopWebAll
({
...
params
,
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
},
{
ctlType
:
'none'
})
const
{
data
}
=
await
postManageWebShopWebAll
({
...
params
,
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
},
{
ctlType
:
'none'
})
return
data
return
data
}
}
...
...
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