Commit dc7e52e3 by pangchong

feat: 调整

parent 75bc266c
......@@ -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>
......
<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: 16rpx;
}
</style>
<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: 16rpx;
}
</style>
<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: 16rpx;
}
</style>
<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: 16rpx;
}
</style>
......@@ -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>
......
<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: 16rpx;
}
</style>
<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: 16rpx;
}
</style>
......@@ -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>
......
<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: 16rpx;
}
</style>
<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: 16rpx;
}
</style>
......@@ -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>
......
<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: 16rpx;
}
</style>
<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: 16rpx;
}
</style>
<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: 16rpx;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment