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
334d0c01
Commit
334d0c01
authored
Nov 23, 2024
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 修改问题
parent
a360f704
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
18 deletions
+49
-18
jzjx_project/controllers/roke_work_order.py
+15
-0
jzjx_project/static/src/html/view/craft_design.html
+34
-18
No files found.
jzjx_project/controllers/roke_work_order.py
View file @
334d0c01
...
@@ -283,3 +283,18 @@ class RokeWorkstationWorkOrderModel(http.Controller):
...
@@ -283,3 +283,18 @@ class RokeWorkstationWorkOrderModel(http.Controller):
"work_order_ids"
:
routing
.
routing_task_id
.
change_routing_id_work_order
(
routing
)
"work_order_ids"
:
routing
.
routing_task_id
.
change_routing_id_work_order
(
routing
)
})
})
return
{
"code"
:
0
,
"message"
:
f
"工艺路线生成工单成功!"
}
return
{
"code"
:
0
,
"message"
:
f
"工艺路线生成工单成功!"
}
@http.route
(
'/roke/workstation/craft_design/workstation_verify_if_editable'
,
type
=
'json'
,
auth
=
'user'
,
csrf
=
False
,
cors
=
"*"
)
def
workstation_verify_if_editable
(
self
):
"""
根据任务报工情况判断工艺设计是否可编辑
"""
_self
=
http
.
request
routing_id
=
_self
.
jsonrequest
.
get
(
"routing_id"
,
0
)
routing
=
_self
.
env
[
"roke.routing"
]
.
search
([(
"id"
,
"="
,
routing_id
)])
if
not
routing
.
routing_task_id
:
return
{
"code"
:
0
,
"message"
:
f
"工艺没有相应的任务,不可编辑!"
,
"editable"
:
False
}
if
routing
.
routing_task_id
.
record_ids
:
return
{
"code"
:
0
,
"message"
:
f
"绑定任务已报工,不可编辑!"
,
"editable"
:
False
}
return
{
"code"
:
0
,
"message"
:
f
"获取成功!"
,
"editable"
:
True
}
jzjx_project/static/src/html/view/craft_design.html
View file @
334d0c01
This diff is collapsed.
Click to expand it.
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