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
f833ec9e
Commit
f833ec9e
authored
Jun 25, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
看板功能开发
parent
846a4944
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
129 additions
and
208 deletions
+129
-208
kanban.js
applications/dee-mes/src/api/kanban.js
+50
-44
AssembleKanban.vue
...ateComponents/components/Visualization/AssembleKanban.vue
+55
-93
ExperimentKanban.vue
...eComponents/components/Visualization/ExperimentKanban.vue
+20
-63
ProductionKanban.vue
...eComponents/components/Visualization/ProductionKanban.vue
+4
-8
No files found.
applications/dee-mes/src/api/kanban.js
View file @
f833ec9e
import
{
post
}
from
'../utils/http'
// 主页面
/**
* 获取架次
*/
...
...
@@ -13,58 +14,50 @@ export function getMaterial(params) {
export
function
getAllPlan
(
params
)
{
return
post
(
`/ExtPosition/board/getPosition?sortieId=
${
params
.
sortieId
}
`
)
}
// ------------------end------------------------
// 站位现场看板
/**
*
架次SQCDP
*
现场问题督办table
* @param {*} params
* @returns
*/
export
function
s
ortiesSQCDP
(
params
)
{
return
post
(
`/
FactoryCalendar/look/SQCDP?sorties=
${
params
.
sorties
}
&planeType=
${
params
.
planeType
}
`
)
export
function
s
tationSpotProblemTable
(
params
)
{
return
post
(
`/
SpotProblem/board/plan/spotProblem?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
}
/**
*
架次配套情况
*
站位sqcdp数据
* @param {*} params
* @returns
*/
export
function
s
ortiesFitRates
(
params
)
{
return
post
(
`/
DxProcessPlan/look/fitRates?sorties=
${
params
.
sorties
}
&planeType=
${
params
.
planeType
}
&typeName=
${
params
.
typeName
}
`
)
export
function
s
tationSQCDP
(
params
)
{
return
post
(
`/
FactoryCalendar/look/plan/SQCDP?positionNo=
${
params
.
positionNo
}
`
)
}
/**
*
架次三期预警
*
现场问题督办echart
* @param {*} params
* @returns
*/
export
function
sortiesThree
()
{
return
post
(
'/Inventory/look/recursionThree/three'
)
}
/**
* 架次现场督办
* @param {*} paramss
* @returns
*/
export
function
sortiesSpotProblem
(
params
)
{
return
post
(
`/SpotProblem/look/getSpotProblem?sorties=
${
params
.
sorties
}
&planeType=
${
params
.
planeType
}
`
)
export
function
stationSpotProblemEchart
(
params
)
{
return
post
(
`/SpotProblem/board/plan/spotProblem/matrix?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
}
/**
*
架次行动项
* @param {*} params
s
*
物料配套及缺件情况 echart
* @param {*} params
* @returns
*/
export
function
s
ortiesActionitem
s
(
params
)
{
return
post
(
`/
ActionItem/look/actionItem?airModel=
${
params
.
planeType
}
&sorties=
${
params
.
sorties
}
`
)
export
function
s
tationFitRate
s
(
params
)
{
return
post
(
`/
ExtSupportingItem/board/plan/fitRates?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
}
/**
* 站位
sqcdp数据
* @param {*} p
lanId
* 站位
三天滚动计划
* @param {*} p
arams
* @returns
*/
export
function
station
SQCDP
(
planId
)
{
return
post
(
`/
FactoryCalendar/look/plan/SQCDP?planId=
${
planId
}
`
)
export
function
station
Plan
(
params
)
{
return
post
(
`/
ExtProcessPlan/board/threeDay/plan?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
}
/**
* 周作业计划完成趋势
* @param {*} params
...
...
@@ -73,47 +66,60 @@ export function stationSQCDP(planId) {
export
function
completion
(
params
)
{
return
post
(
`/JoExecutePlan/board/weekPlan/search?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
}
/**
*
站位三天滚动计划
*
物料配套及缺件情况 table
* @param {*} params
* @returns
*/
export
function
station
Plan
(
params
)
{
return
post
(
`/
ExtProcessPlan/board/threeDay/plan
?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
export
function
station
MaterialLacke
(
params
)
{
return
post
(
`/
WrMaterialLack/board/plan/materialLack
?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
}
// ------------------end------------------------
// 总装集成现场看板
/**
*
现场问题督办echart
* @param {*} params
*
架次现场督办
* @param {*} params
s
* @returns
*/
export
function
s
tationSpotProblemEchart
(
params
)
{
return
post
(
`/SpotProblem/board/
plan/spotProblem/matrix?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
export
function
s
ortiesSpotProblem
(
params
)
{
return
post
(
`/SpotProblem/board/
spotProblemWithSortie?sorties=
${
params
.
sorties
}
&aircraftType=
${
params
.
aircraftType
}
`
)
}
/**
*
现场问题督办table
*
架次SQCDP
* @param {*} params
* @returns
*/
export
function
s
tationSpotProblemTable
(
params
)
{
return
post
(
`/
SpotProblem/board/plan/spotProblem?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
export
function
s
ortiesSQCDP
(
params
)
{
return
post
(
`/
FactoryCalendar/look/SQCDP/searchWithSortieId?sorties=
${
params
.
sorties
}
&aircraftType=
${
params
.
aircraftType
}
`
)
}
/**
*
物料配套及缺件情况 echart
*
架次三期预警
* @param {*} params
* @returns
*/
export
function
s
tationFitRates
(
params
)
{
return
post
(
`/ExtSupportingItem/board/plan/fitRates?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
export
function
s
ortiesThree
(
)
{
return
post
(
'/Inventory/board/third/warning'
)
}
/**
* 物料配套及缺件情况 table
* 架次行动项
* @param {*} paramss
* @returns
*/
export
function
sortiesActionitems
(
params
)
{
return
post
(
`/ActionItem/board/actionItem/matrix?aircraftType=
${
params
.
aircraftType
}
&sorties=
${
params
.
sorties
}
`
)
}
/**
* 架次配套情况
* @param {*} params
* @returns
*/
export
function
s
tationMaterialLacke
(
params
)
{
return
post
(
`/
WrMaterialLack/board/plan/materialLack?positionNo=
${
params
.
positionNo
}
&sorties=
${
params
.
sorties
}
`
)
export
function
s
ortiesFitRates
(
params
)
{
return
post
(
`/
ExtSupportingItem/board/fitRatesWithSorties?sorties=
${
params
.
sorties
}
&aircraftType=
${
params
.
aircraftType
}
&typeName=
${
params
.
typeName
}
`
)
}
// ------------------end------------------------
/**
*站位缺件汇总 获取站位
*/
...
...
applications/dee-mes/src/privateComponents/components/Visualization/AssembleKanban.vue
View file @
f833ec9e
This diff is collapsed.
Click to expand it.
applications/dee-mes/src/privateComponents/components/Visualization/ExperimentKanban.vue
View file @
f833ec9e
...
...
@@ -2254,16 +2254,6 @@ export default {
borderColor
:
'#06E2E8'
,
borderWidth
:
1
},
// itemStyle: {
// decal: {
// show: true,
// color: '#000',
// // symbolSize: 10,
// symbolKeepAspect: false,
// dashArrayX: [10, 30],
// dashArrayY: 15
// }
// },
data
:
[]
},
{
...
...
@@ -2287,16 +2277,6 @@ export default {
borderColor
:
'#F29F34'
,
borderWidth
:
1
},
// itemStyle: {
// decal: {
// show: true,
// color: '#000',
// // symbolSize: 10,
// symbolKeepAspect: false,
// dashArrayX: [10, 30],
// dashArrayY: 15
// }
// },
data
:
[]
}
]
...
...
@@ -2533,11 +2513,13 @@ export default {
* sqcdp数据
*/
initSQCDP
()
{
stationSQCDP
(
this
.
planId
)
const
params
=
{
positionNo
:
this
.
info
.
serialNumber
}
stationSQCDP
(
params
)
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
this
.
sqcdpData
=
res
.
items
console
.
log
(
res
)
}
})
.
catch
((
err
)
=>
console
.
error
(
err
))
...
...
@@ -2560,23 +2542,6 @@ export default {
// 计划完工
const
plan
=
res
.
items
[
'计划完成任务'
]
const
optionTrendxAxisdata
=
res
.
items
[
'X轴'
]
// let nowWeek = new Date().getDay()
// nowWeek = nowWeek || 7
// const dataActual = []
// const dataPlan = []
// optionTrendxAxisdata.forEach(p => {
// const week = new Date(p).getDay() || 7
// const countActual = actual.filter(t => t.NAME === p)
// dataActual.push({
// NAME: p,
// COUNT: countActual.length ? countActual[0].COUNT : nowWeek >= week ? 0 : null
// })
// const countPlan = plan.filter(t => t.NAME === p)
// dataPlan.push({
// NAME: p,
// COUNT: countPlan.length ? countPlan[0].COUNT : 0// nowWeek >= i ? 0 : null
// })
// })
const
formatActual
=
Object
.
values
(
actual
)
const
formatPlan
=
Object
.
values
(
plan
)
optionTrend
.
xAxis
.
data
=
optionTrendxAxisdata
...
...
@@ -2589,8 +2554,11 @@ export default {
const
that
=
this
const
chartDom
=
document
.
getElementById
(
'experimentKanbanEchart'
)
const
myChart
=
echarts
.
init
(
chartDom
)
// myChart.getZr().on('click', function(params) {
myChart
.
on
(
'click'
,
function
(
params
)
{
if
(
params
)
{
console
.
log
(
'跳转暂时未做,需要做的时候删除这段代码!'
)
return
}
that
.
routerJobPlanExecutionSummary
(
params
)
})
myChart
.
setOption
(
optionTrend
)
...
...
@@ -2608,7 +2576,6 @@ export default {
stationFitRates
(
params
)
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
console
.
log
(
'物料配套及缺件情况echart'
,
res
)
optionParts
.
yAxis
.
data
=
res
.
items
.
map
((
p
)
=>
p
.
typeName
)
optionParts
.
series
[
0
].
data
=
res
.
items
.
map
((
p
)
=>
p
.
countFit
)
optionParts
.
series
[
1
].
data
=
res
.
items
.
map
((
p
)
=>
p
.
countNotFit
)
...
...
@@ -2620,7 +2587,10 @@ export default {
const
chartDom
=
document
.
getElementById
(
'missPartsEchart'
)
const
myChart
=
echarts
.
init
(
chartDom
)
myChart
.
on
(
'click'
,
function
(
params
)
{
console
.
log
(
2602
,
params
)
if
(
params
)
{
console
.
log
(
'跳转暂时未做,需要做的时候删除这段代码!'
)
return
}
that
.
routerSummaryOfStationMissingParts
(
params
.
name
,
params
.
seriesName
)
})
myChart
.
setOption
(
optionParts
)
...
...
@@ -2650,6 +2620,10 @@ export default {
const
chartDom
=
document
.
getElementById
(
'superviseEchart'
)
const
myChart
=
echarts
.
init
(
chartDom
)
myChart
.
on
(
'click'
,
function
(
params
)
{
if
(
params
)
{
console
.
log
(
'跳转暂时未做,需要做的时候删除这段代码!'
)
return
}
that
.
routerSiteProblemManagementSummary
(
params
.
name
)
})
myChart
.
setOption
(
superviseOption
)
...
...
@@ -2672,7 +2646,6 @@ export default {
// department 责任部门
// fixDate 要求解决时间
// 责任人 删掉
console
.
log
(
'现场问题督办table'
,
res
)
}
})
.
catch
((
err
)
=>
console
.
error
(
err
))
...
...
@@ -2724,7 +2697,6 @@ export default {
stationMaterialLacke
(
params
)
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
console
.
log
(
'物料配套及缺件情况table'
,
res
)
this
.
missingPartsData
=
res
.
items
this
.
selectMissPartsTabs
(
this
.
missPartsTab
)
}
...
...
@@ -2741,6 +2713,10 @@ export default {
* sqcdp维护
*/
routerWordCalendar
(
name
)
{
if
(
name
)
{
console
.
log
(
'跳转暂时未做,需要做的时候删除这段代码!'
)
return
}
this
.
sqcdpParams
=
{
name
:
'sqcdpMaintain'
,
query
:
{
...
...
@@ -2765,16 +2741,6 @@ export default {
* 路由跳转作业计划执行查询
*/
routerJobPlanExecutionSummary
(
params
)
{
// this.$router.push({
// name: 'jobPlanExecutionSummary',
// query: {
// serialNumber: this.$route.query.planId,
// // planId: this.$route.query.planId,
// model: this.$route.query.model,
// sorties: this.$route.query.sorties,
// isOk: 'string'
// }
// })
this
.
JobPlanExecutionQueryParams
=
{
name
:
'jobPlanExecutionSummary'
,
query
:
{
...
...
@@ -2792,15 +2758,6 @@ export default {
* 现场问题管理查询
*/
routerSiteProblemManagementSummary
(
name
)
{
// this.$router.push({
// name: 'siteProblemManagementSummary',
// query: {
// name: name,
// planId: this.$route.query.planId,
// sorties: this.$route.query.sorties
// }
// })
this
.
siteProblemManagementSummaryParams
=
{
name
:
'siteProblemManagementSummary'
,
query
:
{
...
...
applications/dee-mes/src/privateComponents/components/Visualization/ProductionKanban.vue
View file @
f833ec9e
...
...
@@ -23,11 +23,6 @@
@
dblclick=
"routerExperiment(item)"
@
click=
"selectStation(item.serialNumber)"
>
<!--
<p>
<span>
{{
item
.
serialNumber
}}
</span>
<span>
{{
item
.
name
}}
</span>
</p>
<el-slider
v-model=
"item.progress"
disabled
/>
-->
<div
:class=
"platformClass(item.extPositionPlans&&item.extPositionPlans[0].planState)"
/>
<div
class=
"stage"
/>
<div
:class=
"stageClass(item.isLogo)"
/>
...
...
@@ -100,8 +95,6 @@
<span
class=
"number"
>
{{
stationRow
.
progress
}}
%
</span>
</div>
</div>
<!--
<div
class=
"router"
@
click=
"routerAssemble"
>
</div>
-->
<img
alt=
""
src=
"../../../assets/看板/最大化.png"
...
...
@@ -327,7 +320,6 @@ export default {
this
.
stationRow
=
this
.
stationData
.
filter
(
(
p
)
=>
p
.
serialNumber
===
serialNumber
)[
0
]
// console.log('选择站位', this.stationRow)
},
/**
* 路由跳转站位试验看板
...
...
@@ -348,6 +340,10 @@ export default {
* 路由跳转作业计划执行查询
*/
routerJobPlanExecutionSummary
(
planStateCode
)
{
if
(
planStateCode
)
{
console
.
log
(
'跳转暂时未做,需要做的时候删除这段代码!'
)
return
}
const
params
=
{
name
:
'jobPlanExecutionSummary'
,
query
:
{
...
...
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