Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mocp-uniapp
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pangchong
mocp-uniapp
Commits
dc7e52e3
Commit
dc7e52e3
authored
Oct 12, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整
parent
75bc266c
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
221 additions
and
202 deletions
+221
-202
src/pages/modules/mocp/panel/engineeringEvaluation/details.vue
+1
-1
src/pages/modules/mocp/panel/engineeringEvaluation/historicalFault.vue
+18
-15
src/pages/modules/mocp/panel/engineeringEvaluation/partList.vue
+28
-28
src/pages/modules/mocp/panel/engineeringEvaluation/similarEvents.vue
+18
-15
src/pages/modules/mocp/panel/operationalSurvey/analysisList.vue
+18
-11
src/pages/modules/mocp/panel/operationalSurvey/details.vue
+2
-2
src/pages/modules/mocp/panel/operationalSurvey/historicalFault.vue
+18
-15
src/pages/modules/mocp/panel/qualityAnalysis/arrangeWorkList.vue
+17
-20
src/pages/modules/mocp/panel/qualityAnalysis/details.vue
+1
-1
src/pages/modules/mocp/panel/qualityAnalysis/historicalFault.vue
+18
-15
src/pages/modules/mocp/panel/qualityAnalysis/qualityTraceList.vue
+17
-20
src/pages/modules/mocp/panel/technicalAnalysis/details.vue
+1
-1
src/pages/modules/mocp/panel/technicalAnalysis/historicalFault.vue
+18
-15
src/pages/modules/mocp/panel/technicalAnalysis/partList.vue
+28
-28
src/pages/modules/mocp/panel/technicalAnalysis/similarEvents.vue
+18
-15
No files found.
src/pages/modules/mocp/panel/engineeringEvaluation/details.vue
View file @
dc7e52e3
...
...
@@ -33,7 +33,7 @@
</up-cell-group>
</view>
<view
class=
"mocp-cell"
>
<up-collapse
:value=
"['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']"
>
<up-collapse>
<up-collapse-item
title=
"事件简述"
name=
"1"
>
<view
class=
"mocp-cell"
>
<up-cell-group>
...
...
src/pages/modules/mocp/panel/engineeringEvaluation/historicalFault.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"故障历史详情"
>
<global-table
:columns=
"columns"
:data=
"details?.historicalFault"
>
<template
#
sendingTime=
"
{ row }">
{{
timeStampFormat
(
row
.
sendingTime
)
}}
</
template
>
</global-table>
<global-page
:padding=
"24"
title=
"故障历史详情"
auto
:localData=
"details?.historicalFault || []"
>
<template
#
default=
"
{ item }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"机号"
:value=
"item.machineNumber || '-'"
></up-cell>
<up-cell
title=
"故障描述"
:label=
"item.faultDescribe || '-'"
></up-cell>
<up-cell
title=
"处理措施"
:value=
"item.handle || '-'"
></up-cell>
<up-cell
title=
"ATA章节"
:value=
"item.ata || '-'"
></up-cell>
<up-cell
title=
"发生时间"
:value=
"timeStampFormat(item.sendingTime) || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useEngineeringEvaluationStore
from
'mocp/store/engineeringEvaluation'
const
engineeringEvaluationStore
=
useEngineeringEvaluationStore
()
const
{
details
}
=
storeToRefs
(
engineeringEvaluationStore
)
const
columns
=
ref
([
{
title
:
'机号'
,
dataIndex
:
'machineNumber'
},
{
title
:
'故障描述'
,
dataIndex
:
'faultDescribe'
},
{
title
:
'处理措施'
,
dataIndex
:
'handle'
},
{
title
:
'ATA章节'
,
dataIndex
:
'ata'
},
{
title
:
'发生时间'
,
dataIndex
:
'sendingTime'
}
])
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/engineeringEvaluation/partList.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"部件信息详情"
>
<global-table
:columns=
"columns"
:data=
"details?.partList"
:width=
"120"
>
<template
#
installTime=
"
{ row }">
{{
timeStampFormat
(
row
.
installTime
,
{
format
:
'YYYY/MM/DD'
}
)
}}
<
/template
>
<
template
#
localMaterials
=
"{ row
}
"
>
{{
useGetDictByValue
(
'ta_localMaterials'
,
row
.
localMaterials
)
}}
<
/template
>
<
/global-table
>
<global-page
:padding=
"24"
title=
"部件信息详情"
auto
:localData=
"details?.partList || []"
>
<template
#
default=
"
{ item }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"机号"
:value=
"item.partNo || '-'"
></up-cell>
<up-cell
title=
"序号"
:value=
"item.serialNo || '-'"
></up-cell>
<up-cell
title=
"部件名称"
:value=
"item.partName || '-'"
></up-cell>
<up-cell
title=
"部件性质"
:value=
"item.partNature || '-'"
></up-cell>
<up-cell
title=
"部件情况"
:value=
"item.partSituation || '-'"
></up-cell>
<up-cell
title=
"装机时间"
:value=
"timeStampFormat(item.installTime,
{ format: 'YYYY/MM/DD' }) || '-'">
</up-cell>
<up-cell
title=
"CSN"
:value=
"item.csn || '-'"
></up-cell>
<up-cell
title=
"TSN"
:value=
"item.tsn || '-'"
></up-cell>
<up-cell
title=
"CSR"
:value=
"item.csr || '-'"
></up-cell>
<up-cell
title=
"TSR"
:value=
"item.tsr || '-'"
></up-cell>
<up-cell
title=
"当地航材"
:value=
"useGetDictByValue('ta_localMaterials', item.localMaterials) || '-'"
></up-cell>
<up-cell
title=
"当地配置标准"
:value=
"item.localConf || '-'"
></up-cell>
<up-cell
title=
"软时限"
:value=
"item.companyReliability || '-'"
></up-cell>
<up-cell
title=
"航空集团平均使用时间"
:value=
"item.useAverageTime || '-'"
></up-cell>
<up-cell
title=
"世界机队平均使用时间"
:value=
"item.worldFleet || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
{
useGetDictByValue
}
from
'mocp/hooks/use-dict/useDict'
...
...
@@ -20,22 +32,10 @@ import useEngineeringEvaluationStore from 'mocp/store/engineeringEvaluation'
const
engineeringEvaluationStore
=
useEngineeringEvaluationStore
()
const
{
details
}
=
storeToRefs
(
engineeringEvaluationStore
)
const
columns
=
ref
([
{
title
:
'件号'
,
dataIndex
:
'partNo'
,
minWidth
:
100
}
,
{
title
:
'序号'
,
dataIndex
:
'serialNo'
}
,
{
title
:
'部件名称'
,
dataIndex
:
'partName'
}
,
{
title
:
'部件性质'
,
dataIndex
:
'partNature'
}
,
{
title
:
'部件情况'
,
dataIndex
:
'partSituation'
}
,
{
title
:
'装机时间'
,
dataIndex
:
'installTime'
}
,
{
title
:
'CSN'
,
dataIndex
:
'csn'
}
,
{
title
:
'TSN'
,
dataIndex
:
'tsn'
}
,
{
title
:
'CSR'
,
dataIndex
:
'csr'
}
,
{
title
:
'TSR'
,
dataIndex
:
'tsr'
}
,
{
title
:
'当地航材'
,
dataIndex
:
'localMaterials'
}
,
{
title
:
'当地配置标准'
,
dataIndex
:
'localConf'
}
,
{
title
:
'软时限'
,
dataIndex
:
'companyReliability'
}
,
{
title
:
'航空集团平均使用时间'
,
dataIndex
:
'useAverageTime'
}
,
{
title
:
'世界机队平均使用时间'
,
dataIndex
:
'worldFleet'
}
])
</
script
>
<
style
lang
=
"scss"
scoped
><
/style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/engineeringEvaluation/similarEvents.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"同类事件详情"
>
<global-table
:columns=
"columns"
:data=
"details?.similarEvents"
>
<template
#
sendingTime=
"
{ row }">
{{
timeStampFormat
(
row
.
sendingTime
)
}}
</
template
>
</global-table>
<global-page
:padding=
"24"
title=
"同类事件详情"
auto
:localData=
"details?.similarEvents || []"
>
<template
#
default=
"
{ item }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"机号"
:value=
"item.machineNumber || '-'"
></up-cell>
<up-cell
title=
"故障描述"
:label=
"item.faultDescribe || '-'"
></up-cell>
<up-cell
title=
"处理措施"
:value=
"item.handle || '-'"
></up-cell>
<up-cell
title=
"ATA章节"
:value=
"item.ata || '-'"
></up-cell>
<up-cell
title=
"发生时间"
:value=
"timeStampFormat(item.sendingTime) || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useEngineeringEvaluationStore
from
'mocp/store/engineeringEvaluation'
const
engineeringEvaluationStore
=
useEngineeringEvaluationStore
()
const
{
details
}
=
storeToRefs
(
engineeringEvaluationStore
)
const
columns
=
ref
([
{
title
:
'机号'
,
dataIndex
:
'machineNumber'
},
{
title
:
'故障描述'
,
dataIndex
:
'faultDescribe'
},
{
title
:
'处理措施'
,
dataIndex
:
'handle'
},
{
title
:
'ATA章节'
,
dataIndex
:
'ata'
},
{
title
:
'发生时间'
,
dataIndex
:
'sendingTime'
}
])
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/operationalSurvey/analysisList.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"事件分析详情"
>
<global-table
:columns=
"columns"
:data=
"details?.analysisList"
></global-table>
<global-page
:padding=
"24"
title=
"事件分析详情"
auto
:localData=
"details?.analysisList || []"
>
<template
#
default=
"
{ item }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"序号"
:value=
"item.ord || '-'"
></up-cell>
<up-cell
title=
"分析一级维度"
:value=
"item.dimension1 || '-'"
></up-cell>
<up-cell
title=
"分析二级维度"
:value=
"item.dimension2 || '-'"
></up-cell>
<up-cell
title=
"分析三级维度"
:value=
"item.dimension3 || '-'"
></up-cell>
<up-cell
title=
"分析结论"
:label=
"item.eventAnalysis || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
useOperationalSurveyStore
from
'mocp/store/operationalSurvey'
const
operationalSurveyStore
=
useOperationalSurveyStore
()
const
{
details
}
=
storeToRefs
(
operationalSurveyStore
)
const
columns
=
ref
([
{
title
:
'序号'
,
dataIndex
:
'ord'
},
{
title
:
'分析一级维度'
,
dataIndex
:
'dimension1'
},
{
title
:
'分析二级维度'
,
dataIndex
:
'dimension2'
},
{
title
:
'分析三级维度'
,
dataIndex
:
'dimension3'
},
{
title
:
'分析结论'
,
dataIndex
:
'eventAnalysis'
}
])
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/operationalSurvey/details.vue
View file @
dc7e52e3
...
...
@@ -24,7 +24,7 @@
</up-cell-group>
</view>
<view
class=
"mocp-cell"
>
<up-collapse
:value=
"getCollapseValue"
>
<up-collapse>
<up-collapse-item
title=
"事件简述"
name=
"1"
>
<view
class=
"mocp-cell"
>
<up-cell-group>
...
...
@@ -110,7 +110,7 @@
</up-cell-group>
</view>
</up-collapse-item>
<
template
v-for=
"(item,index) in details.elementList"
:key=
"index"
>
<
template
v-for=
"(item,
index) in details.elementList"
:key=
"index"
>
<up-collapse-item
:title=
"item.title || '-'"
:name=
"item.id"
>
<view
class=
"mocp-cell"
>
<up-cell-group>
...
...
src/pages/modules/mocp/panel/operationalSurvey/historicalFault.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"故障历史详情"
>
<global-table
:columns=
"columns"
:data=
"details?.historicalFault"
>
<template
#
sendingTime=
"
{ row }">
{{
timeStampFormat
(
row
.
sendingTime
)
}}
</
template
>
</global-table>
<global-page
:padding=
"24"
title=
"故障历史详情"
auto
:localData=
"details?.historicalFault || []"
>
<template
#
default=
"
{ item }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"机号"
:value=
"item.machineNumber || '-'"
></up-cell>
<up-cell
title=
"故障描述"
:label=
"item.faultDescribe || '-'"
></up-cell>
<up-cell
title=
"处理措施"
:value=
"item.handle || '-'"
></up-cell>
<up-cell
title=
"ATA章节"
:value=
"item.ata || '-'"
></up-cell>
<up-cell
title=
"发生时间"
:value=
"timeStampFormat(item.sendingTime) || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
useOperationalSurveyStore
from
'mocp/store/operationalSurvey'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
const
operationalSurveyStore
=
useOperationalSurveyStore
()
const
{
details
}
=
storeToRefs
(
operationalSurveyStore
)
const
columns
=
ref
([
{
title
:
'机号'
,
dataIndex
:
'machineNumber'
},
{
title
:
'故障描述'
,
dataIndex
:
'faultDescribe'
},
{
title
:
'处理措施'
,
dataIndex
:
'handle'
},
{
title
:
'ATA章节'
,
dataIndex
:
'ata'
},
{
title
:
'发生时间'
,
dataIndex
:
'sendingTime'
}
])
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/qualityAnalysis/arrangeWorkList.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"布置工作闭环要求详情"
>
<global-table
:columns=
"columns"
:data=
"details?.arrangeWorkList"
>
<template
#
index=
"
{ index }">
{{
index
+
1
}}
</
template
>
<
template
#
company=
"{ row }"
>
{{
getCompany
(
row
.
company
)
}}
</
template
>
<
template
#
endTime=
"{ row }"
>
{{
timeStampFormat
(
row
.
endTime
)
}}
</
template
>
</global-table>
<global-page
:padding=
"24"
title=
"布置工作闭环要求详情"
auto
:localData=
"details?.arrangeWorkList || []"
>
<template
#
default=
"
{ item, index }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"序号"
:value=
"index + 1"
></up-cell>
<up-cell
title=
"责任单位"
:value=
"getCompany(item.unit) || '-'"
></up-cell>
<up-cell
title=
"任务描述"
:label=
"item.taskDescribe || '-'"
></up-cell>
<up-cell
title=
"完成日期"
:value=
"timeStampFormat(item.endTime) || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useQualityAnalysisStore
from
'mocp/store/qualityAnalysis'
const
qualityAnalysisStore
=
useQualityAnalysisStore
()
const
{
details
}
=
storeToRefs
(
qualityAnalysisStore
)
const
columns
=
ref
([
{
title
:
'序号'
,
dataIndex
:
'index'
,
width
:
60
},
{
title
:
'责任单位'
,
dataIndex
:
'company'
},
{
title
:
'任务描述'
,
dataIndex
:
'taskDescribe'
},
{
title
:
'完成日期'
,
dataIndex
:
'endTime'
}
])
const
getCompany
=
(
company
)
=>
{
return
company
.
split
(
','
)
...
...
@@ -37,4 +29,9 @@ const getCompany = (company) => {
.
join
(
','
)
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/qualityAnalysis/details.vue
View file @
dc7e52e3
...
...
@@ -15,7 +15,7 @@
</up-cell-group>
</view>
<view
class=
"mocp-cell"
>
<up-collapse
:value=
"getCollapseValue"
>
<up-collapse>
<up-collapse-item
title=
"事件简述"
name=
"1"
>
<view
class=
"mocp-cell"
>
<up-cell-group>
...
...
src/pages/modules/mocp/panel/qualityAnalysis/historicalFault.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"故障历史详情"
>
<global-table
:columns=
"columns"
:data=
"details?.historicalFault"
>
<template
#
sendingTime=
"
{ row }">
{{
timeStampFormat
(
row
.
sendingTime
)
}}
</
template
>
</global-table>
<global-page
:padding=
"24"
title=
"故障历史详情"
auto
:localData=
"details?.historicalFault || []"
>
<template
#
default=
"
{ item }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"机号"
:value=
"item.machineNumber || '-'"
></up-cell>
<up-cell
title=
"故障描述"
:label=
"item.faultDescribe || '-'"
></up-cell>
<up-cell
title=
"处理措施"
:value=
"item.handle || '-'"
></up-cell>
<up-cell
title=
"ATA章节"
:value=
"item.ata || '-'"
></up-cell>
<up-cell
title=
"发生时间"
:value=
"timeStampFormat(item.sendingTime) || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useQualityAnalysisStore
from
'mocp/store/qualityAnalysis'
const
qualityAnalysisStore
=
useQualityAnalysisStore
()
const
{
details
}
=
storeToRefs
(
qualityAnalysisStore
)
const
columns
=
ref
([
{
title
:
'机号'
,
dataIndex
:
'machineNumber'
},
{
title
:
'故障描述'
,
dataIndex
:
'faultDescribe'
},
{
title
:
'处理措施'
,
dataIndex
:
'handle'
},
{
title
:
'ATA章节'
,
dataIndex
:
'ata'
},
{
title
:
'发生时间'
,
dataIndex
:
'sendingTime'
}
])
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/qualityAnalysis/qualityTraceList.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"品质跟踪闭环要求详情"
>
<global-table
:columns=
"columns"
:data=
"details?.qualityTraceList"
>
<template
#
index=
"
{ index }">
{{
index
+
1
}}
</
template
>
<
template
#
unit=
"{ row }"
>
{{
getCompany
(
row
.
unit
)
}}
</
template
>
<
template
#
endTime=
"{ row }"
>
{{
timeStampFormat
(
row
.
endTime
)
}}
</
template
>
</global-table>
<global-page
:padding=
"24"
title=
"品质跟踪闭环要求详情"
auto
:localData=
"details?.qualityTraceList || []"
>
<template
#
default=
"
{ item, index }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"序号"
:value=
"index + 1"
></up-cell>
<up-cell
title=
"责任单位"
:value=
"getCompany(item.unit) || '-'"
></up-cell>
<up-cell
title=
"事件类型"
:value=
"item.eventType || '-'"
></up-cell>
<up-cell
title=
"反馈期限"
:value=
"timeStampFormat(item.endTime) || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useQualityAnalysisStore
from
'mocp/store/qualityAnalysis'
const
qualityAnalysisStore
=
useQualityAnalysisStore
()
const
{
details
}
=
storeToRefs
(
qualityAnalysisStore
)
const
columns
=
ref
([
{
title
:
'序号'
,
dataIndex
:
'index'
,
width
:
60
},
{
title
:
'责任单位'
,
dataIndex
:
'unit'
},
{
title
:
'事件类型'
,
dataIndex
:
'eventType'
},
{
title
:
'反馈期限'
,
dataIndex
:
'callbackLimit'
}
])
const
getCompany
=
(
company
)
=>
{
return
company
.
split
(
','
)
...
...
@@ -37,4 +29,9 @@ const getCompany = (company) => {
.
join
(
','
)
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/technicalAnalysis/details.vue
View file @
dc7e52e3
...
...
@@ -33,7 +33,7 @@
</up-cell-group>
</view>
<view
class=
"mocp-cell"
>
<up-collapse
:value=
"['1', '2', '3', '4', '5', '6']"
>
<up-collapse>
<up-collapse-item
title=
"事件简述"
name=
"1"
>
<view
class=
"mocp-cell"
>
<up-cell-group>
...
...
src/pages/modules/mocp/panel/technicalAnalysis/historicalFault.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"故障历史详情"
>
<global-table
:columns=
"columns"
:data=
"details?.historicalFault"
>
<template
#
sendingTime=
"
{ row }">
{{
timeStampFormat
(
row
.
sendingTime
)
}}
</
template
>
</global-table>
<global-page
:padding=
"24"
title=
"故障历史详情"
auto
:localData=
"details?.historicalFault || []"
>
<template
#
default=
"
{ item }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"机号"
:value=
"item.machineNumber || '-'"
></up-cell>
<up-cell
title=
"故障描述"
:label=
"item.faultDescribe || '-'"
></up-cell>
<up-cell
title=
"处理措施"
:value=
"item.handle || '-'"
></up-cell>
<up-cell
title=
"ATA章节"
:value=
"item.ata || '-'"
></up-cell>
<up-cell
title=
"发生时间"
:value=
"timeStampFormat(item.sendingTime) || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useTechnicalAnalysisStore
from
'mocp/store/technicalAnalysis'
const
technicalAnalysisStore
=
useTechnicalAnalysisStore
()
const
{
details
}
=
storeToRefs
(
technicalAnalysisStore
)
const
columns
=
ref
([
{
title
:
'机号'
,
dataIndex
:
'machineNumber'
},
{
title
:
'故障描述'
,
dataIndex
:
'faultDescribe'
},
{
title
:
'处理措施'
,
dataIndex
:
'handle'
},
{
title
:
'ATA章节'
,
dataIndex
:
'ata'
},
{
title
:
'发生时间'
,
dataIndex
:
'sendingTime'
}
])
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/technicalAnalysis/partList.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"部件信息详情"
>
<global-table
:columns=
"columns"
:data=
"details?.partList"
:width=
"120"
>
<template
#
installTime=
"
{ row }">
{{
timeStampFormat
(
row
.
installTime
,
{
format
:
'YYYY/MM/DD'
}
)
}}
<
/template
>
<
template
#
localMaterials
=
"{ row
}
"
>
{{
useGetDictByValue
(
'ta_localMaterials'
,
row
.
localMaterials
)
}}
<
/template
>
<
/global-table
>
<global-page
:padding=
"24"
title=
"部件信息详情"
auto
:localData=
"details?.partList || []"
>
<template
#
default=
"
{ item }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"机号"
:value=
"item.partNo || '-'"
></up-cell>
<up-cell
title=
"序号"
:value=
"item.serialNo || '-'"
></up-cell>
<up-cell
title=
"部件名称"
:value=
"item.partName || '-'"
></up-cell>
<up-cell
title=
"部件性质"
:value=
"item.partNature || '-'"
></up-cell>
<up-cell
title=
"部件情况"
:value=
"item.partSituation || '-'"
></up-cell>
<up-cell
title=
"装机时间"
:value=
"timeStampFormat(item.installTime,
{ format: 'YYYY/MM/DD' }) || '-'">
</up-cell>
<up-cell
title=
"CSN"
:value=
"item.csn || '-'"
></up-cell>
<up-cell
title=
"TSN"
:value=
"item.tsn || '-'"
></up-cell>
<up-cell
title=
"CSR"
:value=
"item.csr || '-'"
></up-cell>
<up-cell
title=
"TSR"
:value=
"item.tsr || '-'"
></up-cell>
<up-cell
title=
"当地航材"
:value=
"useGetDictByValue('ta_localMaterials', item.localMaterials) || '-'"
></up-cell>
<up-cell
title=
"当地配置标准"
:value=
"item.localConf || '-'"
></up-cell>
<up-cell
title=
"软时限"
:value=
"item.companyReliability || '-'"
></up-cell>
<up-cell
title=
"航空集团平均使用时间"
:value=
"item.useAverageTime || '-'"
></up-cell>
<up-cell
title=
"世界机队平均使用时间"
:value=
"item.worldFleet || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useTechnicalAnalysisStore
from
'mocp/store/technicalAnalysis'
...
...
@@ -20,22 +32,10 @@ import { useGetDictByValue } from 'mocp/hooks/use-dict/useDict'
const
technicalAnalysisStore
=
useTechnicalAnalysisStore
()
const
{
details
}
=
storeToRefs
(
technicalAnalysisStore
)
const
columns
=
ref
([
{
title
:
'件号'
,
dataIndex
:
'partNo'
,
minWidth
:
100
}
,
{
title
:
'序号'
,
dataIndex
:
'serialNo'
}
,
{
title
:
'部件名称'
,
dataIndex
:
'partName'
}
,
{
title
:
'部件性质'
,
dataIndex
:
'partNature'
}
,
{
title
:
'部件情况'
,
dataIndex
:
'partSituation'
}
,
{
title
:
'装机时间'
,
dataIndex
:
'installTime'
}
,
{
title
:
'CSN'
,
dataIndex
:
'csn'
}
,
{
title
:
'TSN'
,
dataIndex
:
'tsn'
}
,
{
title
:
'CSR'
,
dataIndex
:
'csr'
}
,
{
title
:
'TSR'
,
dataIndex
:
'tsr'
}
,
{
title
:
'当地航材'
,
dataIndex
:
'localMaterials'
}
,
{
title
:
'当地配置标准'
,
dataIndex
:
'localConf'
}
,
{
title
:
'软时限'
,
dataIndex
:
'companyReliability'
}
,
{
title
:
'航空集团平均使用时间'
,
dataIndex
:
'useAverageTime'
}
,
{
title
:
'世界机队平均使用时间'
,
dataIndex
:
'worldFleet'
}
])
</
script
>
<
style
lang
=
"scss"
scoped
><
/style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
src/pages/modules/mocp/panel/technicalAnalysis/similarEvents.vue
View file @
dc7e52e3
<
template
>
<global-page
title=
"同类事件详情"
>
<global-table
:columns=
"columns"
:data=
"details?.similarEvents"
>
<template
#
sendingTime=
"
{ row }">
{{
timeStampFormat
(
row
.
sendingTime
)
}}
</
template
>
</global-table>
<global-page
:padding=
"24"
title=
"同类事件详情"
auto
:localData=
"details?.similarEvents || []"
>
<template
#
default=
"
{ item }">
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell
title=
"机号"
:value=
"item.machineNumber || '-'"
></up-cell>
<up-cell
title=
"故障描述"
:label=
"item.faultDescribe || '-'"
></up-cell>
<up-cell
title=
"处理措施"
:value=
"item.handle || '-'"
></up-cell>
<up-cell
title=
"ATA章节"
:value=
"item.ata || '-'"
></up-cell>
<up-cell
title=
"发生时间"
:value=
"timeStampFormat(item.sendingTime) || '-'"
></up-cell>
</up-cell-group>
</view>
</
template
>
</global-page>
</template>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
timeStampFormat
}
from
'mocp/utils/tool'
import
useTechnicalAnalysisStore
from
'mocp/store/technicalAnalysis'
const
technicalAnalysisStore
=
useTechnicalAnalysisStore
()
const
{
details
}
=
storeToRefs
(
technicalAnalysisStore
)
const
columns
=
ref
([
{
title
:
'机号'
,
dataIndex
:
'machineNumber'
},
{
title
:
'故障描述'
,
dataIndex
:
'faultDescribe'
},
{
title
:
'处理措施'
,
dataIndex
:
'handle'
},
{
title
:
'ATA章节'
,
dataIndex
:
'ata'
},
{
title
:
'发生时间'
,
dataIndex
:
'sendingTime'
}
])
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
margin-bottom
:
16
rpx
;
}
</
style
>
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