Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ec8b39ff
authored
2021-09-22 14:47:41 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix param
1 parent
b197e486
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
ec8b39f
...
...
@@ -329,7 +329,7 @@ info_args = {
'customersubType'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
32
)),
'selfEmployedSubType'
:
fields
.
Str
(
required
=
False
,
validate
=
validate
.
Length
(
max
=
32
)),
'name'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'legalRepName'
:
fields
.
Str
(
required
=
Tru
e
,
validate
=
validate
.
Length
(
max
=
64
)),
'legalRepName'
:
fields
.
Str
(
required
=
Fals
e
,
validate
=
validate
.
Length
(
max
=
64
)),
'dateOfBirth'
:
CustomDate
(
required
=
False
),
'nationality'
:
fields
.
Str
(
required
=
False
,
validate
=
validate
.
Length
(
max
=
64
)),
'establishmentDate'
:
CustomDate
(
required
=
False
),
...
...
@@ -360,10 +360,10 @@ payment_schedule = {
}
associated_services
=
{
'associatedServices'
:
fields
.
Str
(
required
=
Tru
e
,
validate
=
validate
.
Length
(
max
=
64
)),
'price'
:
CustomDecimal
(
required
=
Tru
e
),
'financed'
:
CustomDecimal
(
required
=
Tru
e
),
'total'
:
CustomDecimal
(
required
=
Tru
e
),
'associatedServices'
:
fields
.
Str
(
required
=
Fals
e
,
validate
=
validate
.
Length
(
max
=
64
)),
'price'
:
CustomDecimal
(
required
=
Fals
e
),
'financed'
:
CustomDecimal
(
required
=
Fals
e
),
'total'
:
CustomDecimal
(
required
=
Fals
e
),
}
vehicle_info
=
{
...
...
@@ -384,13 +384,13 @@ insurance_details = {
}
corporate_info
=
{
'hashCode'
:
fields
.
Str
(
required
=
Tru
e
,
validate
=
validate
.
Length
(
max
=
64
)),
'borrowerName'
:
fields
.
Str
(
required
=
Tru
e
,
validate
=
validate
.
Length
(
max
=
64
)),
'fiscalYear'
:
fields
.
Int
(
required
=
Tru
e
),
'totaAssets'
:
CustomDecimal
(
required
=
Tru
e
),
'totalLiabilitiesAndOwnersEquity'
:
CustomDecimal
(
required
=
Tru
e
),
'cashAndCashEquivalentAtEndOfPeriod'
:
CustomDecimal
(
required
=
Tru
e
),
'netProfit'
:
CustomDecimal
(
required
=
Tru
e
),
'hashCode'
:
fields
.
Str
(
required
=
Fals
e
,
validate
=
validate
.
Length
(
max
=
64
)),
'borrowerName'
:
fields
.
Str
(
required
=
Fals
e
,
validate
=
validate
.
Length
(
max
=
64
)),
'fiscalYear'
:
fields
.
Int
(
required
=
Fals
e
),
'totaAssets'
:
CustomDecimal
(
required
=
Fals
e
),
'totalLiabilitiesAndOwnersEquity'
:
CustomDecimal
(
required
=
Fals
e
),
'cashAndCashEquivalentAtEndOfPeriod'
:
CustomDecimal
(
required
=
Fals
e
),
'netProfit'
:
CustomDecimal
(
required
=
Fals
e
),
}
se_verification
=
{
...
...
@@ -413,13 +413,13 @@ se_cms_content = {
'dealerName'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
512
)),
'tier'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'province'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'fapiaoIssuerDealer'
:
fields
.
Str
(
required
=
Tru
e
,
validate
=
validate
.
Length
(
max
=
512
)),
'fapiaoIssuerDealer'
:
fields
.
Str
(
required
=
Fals
e
,
validate
=
validate
.
Length
(
max
=
512
)),
'customerName'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'customerIdNo'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'vehicleStatus'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'applicationSource'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'contractSource'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'applicationRating'
:
fields
.
Int
(
required
=
Tru
e
),
'applicationRating'
:
fields
.
Int
(
required
=
Fals
e
),
'applicantInformation'
:
fields
.
List
(
fields
.
Nested
(
info_args
),
required
=
True
,
validate
=
validate
.
Length
(
min
=
1
,
max
=
4
)),
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment