Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
ad2dc80b
Commit
ad2dc80b
authored
Sep 22, 2023
by
旭艳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改指令下发限制条件
parent
be3a6947
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
39 deletions
+79
-39
index.vue
...ews/assemblyPlanManagement/instructionsDispatch/index.vue
+40
-4
index.vue
...views/assemblyPlanManagement/instructionsIssued/index.vue
+39
-35
No files found.
applications/dee-mes/src/views/assemblyPlanManagement/instructionsDispatch/index.vue
View file @
ad2dc80b
...
...
@@ -2,6 +2,18 @@
<div
class=
"instructions-disptach"
>
<div
class=
"instructions-issued-top"
>
<el-form
:inline=
"true"
:model=
"searchFormData"
class=
"instructions-issued-search"
label-width=
"50px"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"站位:"
>
<el-select
v-model=
"searchFormData.postion"
placeholder=
"站位"
@
change=
"changePostion"
>
<el-option
v-for=
"item in postionList"
:key=
"item.id"
:label=
"item.extcode"
:value=
"item.id"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"班组:"
>
<el-select
v-model=
"searchFormData.group"
placeholder=
"班组"
@
change=
"changeGroup"
>
...
...
@@ -153,7 +165,8 @@ export default {
data
()
{
return
{
searchFormData
:
{
group
:
''
group
:
''
,
postion
:
''
},
groupList
:
[],
groupUserList
:
[],
...
...
@@ -242,7 +255,8 @@ export default {
],
groupUserTotal
:
0
,
groupUserPage
:
1
,
mainUserId
:
null
mainUserId
:
null
,
postionList
:
[]
}
},
computed
:
{
...
...
@@ -266,9 +280,26 @@ export default {
}
},
created
()
{
this
.
getGroup
()
this
.
getStation
()
// this.getGroup()
},
methods
:
{
getStation
()
{
this
.
$api
.
searchApi
(
'ExtStandPosition'
,
{}).
then
(
res
=>
{
if
(
res
.
items
.
content
&&
res
.
items
.
content
.
length
>
0
)
{
this
.
postionList
=
res
.
items
.
content
this
.
$set
(
this
.
searchFormData
,
'postion'
,
this
.
postionList
[
0
].
id
)
this
.
$set
(
this
.
searchFormData
,
'postionName'
,
this
.
postionList
[
0
].
extcode
)
this
.
getGroup
()
}
}).
catch
(
err
=>
console
.
log
(
err
)).
finally
(()
=>
{
})
},
changePostion
()
{
const
postion
=
this
.
postionList
.
find
(
r
=>
r
.
id
===
this
.
searchFormData
.
postion
)
this
.
$set
(
this
.
searchFormData
,
'postionName'
,
postion
&&
postion
.
extcode
||
''
)
this
.
getGroup
()
},
getGroup
()
{
this
.
groupList
=
[]
this
.
$set
(
this
.
searchFormData
,
'group'
,
''
)
...
...
@@ -278,6 +309,11 @@ export default {
'children'
:
[
{
'items'
:
[
{
'fieldName'
:
'extStandPositionId'
,
'operator'
:
'EQ'
,
'value'
:
this
.
searchFormData
.
postion
},
{
'fieldName'
:
'extProcessSkillUsers.dxUserInfoId'
,
'operator'
:
'EQ'
,
...
...
@@ -315,7 +351,7 @@ export default {
'toValidateKeys'
:
''
}
post
(
'/ExtProcessSkill/search'
,
params
).
then
(
res
=>
{
if
(
res
.
items
&&
res
.
items
.
content
)
{
if
(
res
.
items
&&
res
.
items
.
content
&&
res
.
items
.
content
.
length
>
0
)
{
this
.
groupList
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
id
,
...
...
applications/dee-mes/src/views/assemblyPlanManagement/instructionsIssued/index.vue
View file @
ad2dc80b
...
...
@@ -160,6 +160,7 @@ export default {
icon
:
'/icons/o-Referencedoc.png'
,
handler
:
{
click
:
()
=>
{
if
(
this
.
status
!==
'New'
)
{
this
.
$confirm
(
'您确认执行该操作吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -193,6 +194,9 @@ export default {
// message: '已取消'
// })
})
}
else
{
this
.
$utils
.
showMessageWarning
(
'该站位还没开工'
)
}
}
}
}
...
...
@@ -231,8 +235,8 @@ export default {
this
.
wordImgUrl
=
'/icons/startWork2.png'
this
.
title
=
'已开工'
}
else
{
this
.
wordImgUrl
=
'/icons/startWork
1
.png'
this
.
title
=
'
未开
工'
this
.
wordImgUrl
=
'/icons/startWork
2
.png'
this
.
title
=
'
已完
工'
}
},
deep
:
true
...
...
@@ -570,7 +574,7 @@ export default {
this
.
$utils
.
showMessageWarning
(
'没有站位'
)
return
}
this
.
$utils
.
showMessageWarning
(
'该站位不能开工'
)
//
this.$utils.showMessageWarning('该站位不能开工')
return
}
const
params
=
{
...
...
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