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
38da4b7e
authored
2022-08-29 11:00:07 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
se bs vevify & create new field
1 parent
7dd68c93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/views.py
src/apps/doc/ocr/wb.py
View file @
38da4b7
...
...
@@ -393,7 +393,8 @@ class BSWorkbook(Workbook):
for
cell
in
ms
[
4
]:
cell
.
fill
=
self
.
amount_fill
verify_res
=
False
if
len
(
metadata_highlight_row
)
>
0
or
len
(
verify_highlight_row
)
>
0
else
True
# verify_res = False if len(metadata_highlight_row) > 0 or len(verify_highlight_row) > 0 else True
verify_res
=
False
if
len
(
metadata_highlight_row
)
>
0
else
True
return
ms
,
timedelta
,
verify_res
@staticmethod
...
...
src/apps/doc/views.py
View file @
38da4b7
...
...
@@ -244,7 +244,14 @@ se_compare_args = {
'content'
:
fields
.
Nested
(
se_compare_content
,
required
=
True
)
}
application_data_args
=
{
'applicationId'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
))}
application_data_args
=
{
'applicationId'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'applicationStatus'
:
fields
.
Int
(
required
=
False
,
missing
=
0
,
validate
=
lambda
val
:
val
>=
0
,
),
}
applicant_data_args
=
{
# 'mainApplicantName': fields.Str(required=True, validate=validate.Length(max=16)),
...
...
@@ -265,6 +272,7 @@ document_args = {
'uploadFinishTime'
:
fields
.
DateTime
(
required
=
True
),
'dataSource'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
# POS/EAPP/Econtract
'metadataVersionId'
:
fields
.
Str
(
required
=
True
,
validate
=
validate
.
Length
(
max
=
64
)),
'password'
:
fields
.
Str
(
required
=
False
,
validate
=
validate
.
Length
(
max
=
16
)),
}
doc_upload_args
=
{
...
...
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