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
a02a7950
Commit
a02a7950
authored
Nov 26, 2021
by
XieZhiXiong
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
9d4ed63f
756cd9f5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
166 additions
and
2 deletions
+166
-2
purchase.ts
src/locales/zh-CN/purchase.ts
+0
-0
index.tsx
...ility/logisticsAdminister/component/addressForm/index.tsx
+2
-2
index.tsx
...icsAbility/logisticsAdminister/component/schema/index.tsx
+164
-0
No files found.
src/locales/zh-CN/purchase.ts
0 → 100644
View file @
a02a7950
This diff is collapsed.
Click to expand it.
src/pages/transaction/logisticsAbility/logisticsAdminister/component/addressForm/index.tsx
View file @
a02a7950
...
@@ -9,7 +9,7 @@ import { SaveOutlined } from '@ant-design/icons';
...
@@ -9,7 +9,7 @@ import { SaveOutlined } from '@ant-design/icons';
import
{
useLinkEnumEffect
}
from
'@/components/NiceForm/linkages/linkEnum'
;
import
{
useLinkEnumEffect
}
from
'@/components/NiceForm/linkages/linkEnum'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
import
{
getManageAreaAll
,
getManageCountryAreaGetTelCode
}
from
'@/services/ManageV2Api'
;
import
{
getManageAreaAll
,
getManage
AreaByPcode
,
getManage
CountryAreaGetTelCode
}
from
'@/services/ManageV2Api'
;
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
const
{
const
{
...
@@ -161,7 +161,7 @@ const AddressForm: React.FC<AddressFormProps> = (props: any) => {
...
@@ -161,7 +161,7 @@ const AddressForm: React.FC<AddressFormProps> = (props: any) => {
}
}
}
}
effects=
{
(
$
,
{
setFieldState
,
setFieldValue
})
=>
{
effects=
{
(
$
,
{
setFieldState
,
setFieldValue
})
=>
{
$
(
'onFormMount'
).
subscribe
(
async
()
=>
{
$
(
'onFormMount'
).
subscribe
(
async
()
=>
{
await
getManageArea
All
(
).
then
(
res
=>
{
await
getManageArea
ByPcode
({
pcode
:
''
}
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
const
{
data
}
=
res
;
const
{
data
}
=
res
;
addressData
.
current
=
data
addressData
.
current
=
data
...
...
src/pages/transaction/logisticsAbility/logisticsAdminister/component/schema/index.tsx
View file @
a02a7950
...
@@ -362,3 +362,167 @@ export const receiverAddress: ISchema = {
...
@@ -362,3 +362,167 @@ export const receiverAddress: ISchema = {
}
}
}
}
}
}
export
const
SHIPPER_ADDRESS__ISCHEMA
:
ISchema
=
{
type
:
'object'
,
properties
:
{
MEGA_LAYOUT
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
labelCol
:
6
,
wrapperCol
:
16
,
labelAlign
:
'left'
,
},
properties
:
{
'shipperName'
:
{
type
:
'string'
,
title
:
'发货人'
,
'x-rules'
:
[
{
required
:
true
,
message
:
'请输入发货人'
,
},
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
20
,
}
]
},
MEGA_LAYOUT1
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
label
:
'{{AddressLabel}}'
,
wrapperCol
:
24
,
},
properties
:
{
MEGA_LAYOUT1_1
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
full
:
true
,
columns
:
4
},
properties
:
{
'provinceCode'
:
{
type
:
'string'
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'-省份/直辖市-'
,
},
},
'cityCode'
:
{
type
:
'string'
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'-市-'
,
},
},
'districtCode'
:
{
type
:
'string'
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'-区-'
,
},
},
'streetCode'
:
{
type
:
'string'
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'-街道-'
,
},
}
// provinceCode: {
// type: 'string',
// enum: [],
// 'x-component-props': {
// placeholder: '-省份/直辖市-',
// },
// 'x-linkages': [
// {
// type: 'value:linkage',
// condition: '{{!!$self.value}}',
// origin: 'provinceCode',
// target: 'cityCode',
// },
// ],
// required: true,
// },
// cityCode: {
// type: 'string',
// enum: [],
// 'x-component-props': {
// placeholder: '-市-',
// },
// 'x-linkages': [
// {
// type: 'value:linkage',
// condition: '{{!!$self.value}}',
// origin: 'cityCode',
// target: 'districtCode',
// },
// ],
// required: true,
// },
// districtCode: {
// type: 'string',
// enum: [],
// 'x-component-props': {
// placeholder: '-区-',
// },
// required: true,
// },
}
},
}
},
'address'
:
{
type
:
'string'
,
title
:
'详细地址'
,
'x-component'
:
'TextArea'
,
'x-rules'
:
[
{
required
:
true
,
message
:
'请输入详细地址'
,
},
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
60
,
}
]
},
'postalCode'
:
{
type
:
'string'
,
title
:
'邮编'
,
'x-component-props'
:
{},
'x-rules'
:
[
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
20
,
}
]
},
'tel'
:
{
type
:
'string'
,
title
:
'电话号码'
,
'x-component-props'
:
{
placeholder
:
'请输入你的电话号码'
,
},
'x-rules'
:
[
{
pattern
:
PATTERN_MAPS
.
tel
,
message
:
'请输入正确格式的电话号码'
,
},
],
},
'isDefault'
:
{
title
:
'是否默认'
,
'x-component'
:
'Switch'
}
}
}
}
}
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