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
57388555
Commit
57388555
authored
Apr 18, 2024
by
15008242619
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增工作包功能(暂不部署正式)
parent
d60a3272
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
119 additions
and
3 deletions
+119
-3
tree.vue
...gement/instructionIdentification/components/left/tree.vue
+3
-1
index.vue
...ment/instructionIdentification/components/right/index.vue
+116
-2
No files found.
applications/dee-mes/src/views/assemblyPlanManagement/instructionIdentification/components/left/tree.vue
View file @
57388555
...
@@ -194,6 +194,7 @@ export default {
...
@@ -194,6 +194,7 @@ export default {
isLeaf
:
true
,
isLeaf
:
true
,
disabled
:
true
,
disabled
:
true
,
level
:
1
,
level
:
1
,
modelName
:
this
.
froms
.
modelName
,
children
:
res
.
items
&&
res
.
items
.
content
.
map
((
t
)
=>
{
children
:
res
.
items
&&
res
.
items
.
content
.
map
((
t
)
=>
{
// quantity += t.completeCount
// quantity += t.completeCount
// total += t.carryCount
// total += t.carryCount
...
@@ -201,7 +202,8 @@ export default {
...
@@ -201,7 +202,8 @@ export default {
serialNo
:
this
.
froms
.
sortieName
,
serialNo
:
this
.
froms
.
sortieName
,
title
:
t
.
serialNumber
,
title
:
t
.
serialNumber
,
icon
:
'c-backups3'
,
icon
:
'c-backups3'
,
id
:
t
.
id
id
:
t
.
id
,
modelName
:
this
.
froms
.
modelName
// quantity: t.completeCount,
// quantity: t.completeCount,
// total: t.carryCount
// total: t.carryCount
}
}
...
...
applications/dee-mes/src/views/assemblyPlanManagement/instructionIdentification/components/right/index.vue
View file @
57388555
...
@@ -115,6 +115,29 @@
...
@@ -115,6 +115,29 @@
<i
v-if=
"scope.row.countWorkHourLoading"
class=
"el-icon-loading"
/>
<i
v-if=
"scope.row.countWorkHourLoading"
class=
"el-icon-loading"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"workPackage"
align=
"center"
label=
"所属工作包"
:width=
"150"
>
<
template
slot=
"header"
>
<span>
所属工作包
</span>
<i
v-if=
"loginUser=== '1'"
class=
"el-icon-edit-outline"
/>
</
template
>
<
template
slot-scope=
"scope"
>
<el-select
v-if=
"scope.row.workPackageSelect"
v-model=
"scope.row.workPackage"
placeholder=
"请选择"
@
change=
"saveWorkPackage(scope.row, true)"
@
visible-change=
"visibleChange($event, scope.row)"
>
<el-option
v-for=
"(item, i) in wpOptions"
:key=
"i"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
<span
v-else
>
{{
$utils
.
getParamsFromLists
(
wpOptions
,
'id'
,
scope
.
row
[
scope
.
column
.
property
],
'name'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"workHour"
prop=
"workHour"
align=
"center"
align=
"center"
...
@@ -282,6 +305,8 @@ export default {
...
@@ -282,6 +305,8 @@ export default {
total
:
0
,
total
:
0
,
pageSizes
:
[
5
,
10
,
20
,
50
]
pageSizes
:
[
5
,
10
,
20
,
50
]
},
},
// 工作包数据
wpOptions
:
[],
// 加载中
// 加载中
loading
:
false
,
loading
:
false
,
curRowId
:
null
,
curRowId
:
null
,
...
@@ -317,6 +342,7 @@ export default {
...
@@ -317,6 +342,7 @@ export default {
created
()
{
created
()
{
this
.
jurisdId
=
this
.
$route
.
query
.
taskDefinitionKey
this
.
jurisdId
=
this
.
$route
.
query
.
taskDefinitionKey
this
.
getTools
()
this
.
getTools
()
console
.
log
(
1
)
},
},
mounted
()
{
mounted
()
{
this
.
$bus
.
$on
(
'getPlanData'
,
(
data
,
level
)
=>
{
this
.
$bus
.
$on
(
'getPlanData'
,
(
data
,
level
)
=>
{
...
@@ -325,6 +351,7 @@ export default {
...
@@ -325,6 +351,7 @@ export default {
this
.
level
=
level
this
.
level
=
level
this
.
tablePagination
.
currentPage
=
1
this
.
tablePagination
.
currentPage
=
1
this
.
getTableData
(
data
,
level
)
this
.
getTableData
(
data
,
level
)
this
.
getWPOptions
(
data
)
})
})
})
})
this
.
getDicListByCode
()
this
.
getDicListByCode
()
...
@@ -337,6 +364,49 @@ export default {
...
@@ -337,6 +364,49 @@ export default {
async
getDicListByCode
()
{
async
getDicListByCode
()
{
this
.
stateOption
=
await
this
.
$utils
.
getDicListByCode
(
'ObjStatus'
)
this
.
stateOption
=
await
this
.
$utils
.
getDicListByCode
(
'ObjStatus'
)
},
},
/**
* 工作包选项数据
*/
getWPOptions
(
data
)
{
const
params
=
{
'pageFrom'
:
1
,
'pageSize'
:
9999
,
'searchItems'
:
{
'children'
:
[],
'items'
:
[
{
'fieldName'
:
'workState'
,
'operator'
:
'EQ'
,
'value'
:
'Y'
},
{
'fieldName'
:
'sorties'
,
'operator'
:
'EQ'
,
'value'
:
data
.
serialNo
},
{
'fieldName'
:
'planeType'
,
'operator'
:
'EQ'
,
'value'
:
data
.
modelName
}
],
'operator'
:
'AND'
},
'openProps'
:
[],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
post
(
'/ExtWorkPackage/search'
,
params
).
then
(
res
=>
{
this
.
wpOptions
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
name
:
row
.
name
,
id
:
row
.
id
}
})
})
},
/**
/**
* 工具栏
* 工具栏
*/
*/
...
@@ -583,7 +653,20 @@ export default {
...
@@ -583,7 +653,20 @@ export default {
]
]
},
},
openProps
:
[],
openProps
:
[
{
'name'
:
'extWorkPackageLinks'
,
'pageFrom'
:
1
,
'pageSize'
:
9999
,
'openProps'
:
[
{
'name'
:
'source'
,
'pageFrom'
:
1
,
'pageSize'
:
9999
}
]
}
],
sortItem
:
[
sortItem
:
[
{
{
fieldName
:
'serialNumber'
,
fieldName
:
'serialNumber'
,
...
@@ -624,7 +707,9 @@ export default {
...
@@ -624,7 +707,9 @@ export default {
userName
:
p
.
noteName
,
userName
:
p
.
noteName
,
createTime
:
p
.
createTime
,
createTime
:
p
.
createTime
,
processTaskId
:
p
.
id
,
processTaskId
:
p
.
id
,
note
:
p
.
note
note
:
p
.
note
,
workPackageSelect
:
false
,
workPackage
:
p
.
extWorkPackageLinks
&&
p
.
extWorkPackageLinks
[
0
].
source
.
id
}
}
})
})
that
.
tableData
.
length
&&
that
.
tableData
.
length
&&
...
@@ -795,6 +880,8 @@ export default {
...
@@ -795,6 +880,8 @@ export default {
}
else
if
(
column
.
property
===
'countWorkHour'
)
{
}
else
if
(
column
.
property
===
'countWorkHour'
)
{
this
.
countWorkHour
=
row
.
countWorkHour
this
.
countWorkHour
=
row
.
countWorkHour
row
.
countWorkHourSelect
=
true
row
.
countWorkHourSelect
=
true
}
else
if
(
column
.
property
===
'workPackage'
)
{
row
.
workPackageSelect
=
true
}
else
{
}
else
{
return
return
}
}
...
@@ -803,6 +890,8 @@ export default {
...
@@ -803,6 +890,8 @@ export default {
row
.
firstCheckFlagSelect
=
false
row
.
firstCheckFlagSelect
=
false
}
else
if
(
column
.
property
===
'countWorkHour'
)
{
}
else
if
(
column
.
property
===
'countWorkHour'
)
{
row
.
countWorkHourSelect
=
false
row
.
countWorkHourSelect
=
false
}
else
if
(
column
.
property
===
'workPackage'
)
{
row
.
workPackageSelect
=
false
}
}
clearTimeout
(
this
.
timer
)
clearTimeout
(
this
.
timer
)
that
.
timer
=
null
that
.
timer
=
null
...
@@ -815,6 +904,7 @@ export default {
...
@@ -815,6 +904,7 @@ export default {
}
else
{
}
else
{
row
.
firstCheckFlagSelect
=
false
row
.
firstCheckFlagSelect
=
false
row
.
countWorkHourSelect
=
false
row
.
countWorkHourSelect
=
false
row
.
workPackageSelect
=
false
}
}
},
},
visibleWorkProcedureChange
(
event
,
row
)
{
visibleWorkProcedureChange
(
event
,
row
)
{
...
@@ -850,6 +940,30 @@ export default {
...
@@ -850,6 +940,30 @@ export default {
that
.
workProcedureTimer
=
null
that
.
workProcedureTimer
=
null
},
2000
)
},
2000
)
},
},
saveWorkPackage
(
row
,
status
)
{
var
that
=
this
const
param
=
{
source
:
row
.
workPackage
,
target
:
row
.
id
}
post
(
'/ExtWorkPackageLink/saveLinks'
,
param
)
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
that
.
$message
({
showClose
:
true
,
message
:
'保存成功'
,
type
:
'success'
})
}
else
{
that
.
$message
({
showClose
:
true
,
message
:
'保存失败'
,
type
:
'error'
})
}
})
.
catch
((
err
)
=>
console
.
error
(
err
))
},
deeTableBlur
(
row
,
status
)
{
deeTableBlur
(
row
,
status
)
{
var
that
=
this
var
that
=
this
const
param
=
{
const
param
=
{
...
...
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