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
374c4786
Commit
374c4786
authored
Nov 16, 2024
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 增加标签
parent
d9c4951b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
jzjx_project/controllers/inherit_product_task.py
+4
-2
No files found.
jzjx_project/controllers/inherit_product_task.py
View file @
374c4786
...
@@ -105,7 +105,8 @@ class JzjxInheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
...
@@ -105,7 +105,8 @@ class JzjxInheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
"plan_date"
:
v
.
plan_date
.
strftime
(
'
%
Y-
%
m-
%
d'
)
if
v
.
plan_date
else
""
,
"plan_date"
:
v
.
plan_date
.
strftime
(
'
%
Y-
%
m-
%
d'
)
if
v
.
plan_date
else
""
,
"specification"
:
v
.
product_id
.
specification
or
""
,
"specification"
:
v
.
product_id
.
specification
or
""
,
"model"
:
v
.
product_id
.
model
or
""
,
"model"
:
v
.
product_id
.
model
or
""
,
"order_type"
:
"task"
"order_type"
:
"task"
,
"type"
:
""
}
}
work_data_dict
=
{}
work_data_dict
=
{}
for
v
in
work_ids
:
for
v
in
work_ids
:
...
@@ -121,7 +122,8 @@ class JzjxInheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
...
@@ -121,7 +122,8 @@ class JzjxInheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
"plan_date"
:
v
.
plan_date
.
strftime
(
'
%
Y-
%
m-
%
d'
)
if
v
.
plan_date
else
""
,
"plan_date"
:
v
.
plan_date
.
strftime
(
'
%
Y-
%
m-
%
d'
)
if
v
.
plan_date
else
""
,
"specification"
:
v
.
product_id
.
specification
or
""
,
"specification"
:
v
.
product_id
.
specification
or
""
,
"model"
:
v
.
product_id
.
model
or
""
,
"model"
:
v
.
product_id
.
model
or
""
,
"order_type"
:
"work"
"order_type"
:
"work"
,
"type"
:
v
.
type
}
}
data
=
[]
data
=
[]
for
v
in
ids_list
:
for
v
in
ids_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