Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dwsproject
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dws
dwsproject
Commits
7dac4689
Commit
7dac4689
authored
Nov 22, 2024
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 修改问题
parent
aed9d6e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
jzjx_project/controllers/inherit_production.py
+1
-1
No files found.
jzjx_project/controllers/inherit_production.py
View file @
7dac4689
...
...
@@ -39,7 +39,7 @@ class JzjxInheritProduction(InheritProduction):
return
{
"state"
:
"error"
,
"msgs"
:
"无工单ID时表示无工单报工,必须入参产品ID和工序ID"
}
if
not
employee_list
or
type
(
employee_list
)
not
in
(
list
,
tuple
):
return
{
"state"
:
"error"
,
"msgs"
:
"请选择人员"
}
if
not
repair_qty
or
(
float
(
finish_qty
)
<
0
or
float
(
unqualified_qty
)
<
0
):
if
(
repair_qty
and
repair_qty
<
0
)
or
(
float
(
finish_qty
)
<
0
or
float
(
unqualified_qty
)
<
0
):
return
{
"state"
:
"error"
,
"msgs"
:
"合格数或不合格数不得小于0"
}
# 判断是否能获取到辅计量数据
aux_list
=
values
.
get
(
'aux_list'
,
[])
# 合格数量辅计量数据
...
...
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