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
1516ca7c
Commit
1516ca7c
authored
Jan 11, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 修改工序指派
parent
feae40d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
sdddl_project/controllers/inherit_production_task.py
+1
-3
No files found.
sdddl_project/controllers/inherit_production_task.py
View file @
1516ca7c
...
...
@@ -39,14 +39,12 @@ class InheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
if
not
process_ids
:
return
{
"code"
:
0
,
"message"
:
"获取成功!"
,
"data"
:
[],
"process_ids"
:
[],
"count"
:
0
}
domain
=
[
"|"
,
(
"work_center_id"
,
"="
,
workstation
.
workshop_id
.
id
),
"&"
,
(
"work_center_id"
,
"="
,
False
),
(
"task_id.workshop_id"
,
"="
,
workstation
.
workshop_id
.
id
),
(
"process_id"
,
"in"
,
process_list
),
(
"state"
,
"in"
,
[
"未完工"
,
"暂停"
])
]
domain
=
expression
.
OR
([
domain
,
[(
"work_center_id"
,
"="
,
workstation_id
)]])
if
priority
:
domain
.
append
((
'task_id.priority'
,
'='
,
priority
))
if
customer_id
:
...
...
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