Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pda
pda-ui
Commits
0ca1d56e
Commit
0ca1d56e
authored
Jun 13, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产排产
parent
9299e2f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
index.vue
src/views/mes/pro/scheduleList/index.vue
+10
-8
No files found.
src/views/mes/pro/scheduleList/index.vue
View file @
0ca1d56e
...
...
@@ -501,8 +501,8 @@ export default {
if
(
res
&&
res
.
length
)
{
this
.
queryWorkunitParams
.
workshopId
=
res
[
0
].
workshopId
}
await
this
.
hanldeGetworkstationList
()
if
(
this
.
queryWorkunitParams
.
workshopId
)
{
await
this
.
hanldeGetworkstationList
()
this
.
queryWorkunitParams
.
workstationId
=
res
[
0
].
workstationId
?
res
[
0
].
workstationId
:
this
.
workstationList
[
0
].
workstationId
this
.
hanldeGettaskWorkunitList
()
}
...
...
@@ -514,22 +514,24 @@ export default {
this
.
workshopList
=
response
.
rows
},
async
handleChangeWorkshopId
()
{
this
.
workstationList
=
[]
//
this.workstationList = []
this
.
queryWorkunitParams
.
workstationId
=
null
await
this
.
hanldeGetworkstationList
()
//
await this.hanldeGetworkstationList()
this
.
taskWorkunitList
=
[]
this
.
currentTask
=
null
this
.
queryParams
.
workunitId
=
''
this
.
getList
()
},
async
hanldeGetworkstationList
()
{
if
(
!
this
.
queryWorkunitParams
.
workshopId
)
{
return
}
const
response
=
await
getworkstationList
({
workshopId
:
this
.
queryWorkunitParams
.
workshopId
})
const
response
=
await
getworkstationList
({
workshopId
:
null
})
this
.
workstationList
=
response
.
rows
},
handleChangeWorkStationId
()
{
handleChangeWorkStationId
(
item
)
{
this
.
hanldeGettaskWorkunitList
()
const
finditem
=
this
.
workstationList
.
find
(
v
=>
v
.
workstationId
===
item
)
if
(
finditem
)
{
this
.
queryWorkunitParams
.
workshopId
=
finditem
.
workshopId
}
this
.
queryParams
.
pageNum
=
1
this
.
queryParams
.
workunitId
=
''
this
.
getList
()
...
...
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