Commit aba7e9ef by pangchong

feat: 问题处理

parent ab339465
...@@ -95,13 +95,13 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', { ...@@ -95,13 +95,13 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
}, },
getDisabled(state) { getDisabled(state) {
if (state.tabIndex == 0) { if (state.tabIndex == 0) {
return this.getBasicVo.rxStatus == '0' || state.details.patrolIsOpen == '0' return this.getBasicVo.rxStatus == '0' || state.details?.patrolIsOpen == '0'
} else if (state.tabIndex == 1) { } else if (state.tabIndex == 1) {
return this.getBasicVo.rxStatus == '0' || state.details.operateIsOpen == '0' return this.getBasicVo.rxStatus == '0' || state.details?.operateIsOpen == '0'
} else if (state.tabIndex == 2) { } else if (state.tabIndex == 2) {
return this.getBasicVo.rxStatus == '0' || state.details.mooringIsOpen == '0' return this.getBasicVo.rxStatus == '0' || state.details?.mooringIsOpen == '0'
} else if (state.tabIndex == 3) { } else if (state.tabIndex == 3) {
return this.getBasicVo.rxStatus == '0' || state.details.sandstormIsOpen == '0' return this.getBasicVo.rxStatus == '0' || state.details?.sandstormIsOpen == '0'
} }
return false return false
} }
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
width: 100%;
&-image { &-image {
margin-left: 20rpx; margin-left: 20rpx;
width: 200rpx; width: 200rpx;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<global-page <global-page
:padding="24" :padding="24"
title="航站不正常事件详情" title="航站不正常事件详情"
showFooterBtn :showFooterBtn="details.state == 0"
:footerBtnText="getFooterTxt" :footerBtnText="getFooterTxt"
@handleFooterClick="handleFooterClick" @handleFooterClick="handleFooterClick"
:showNavRight="auditLabel != '审核通过'" :showNavRight="auditLabel != '审核通过'"
...@@ -22,14 +22,14 @@ ...@@ -22,14 +22,14 @@
<up-cell title="机号" :value="details.machineNumber || '-'" /> <up-cell title="机号" :value="details.machineNumber || '-'" />
<up-cell title="机型" :value="details.model || '-'" /> <up-cell title="机型" :value="details.model || '-'" />
<up-cell title="航司" :value="useGetDictByValue('', details.aviation, { data: baseStore.getAirlineSelect })" /> <up-cell title="航司" :value="useGetDictByValue('', details.aviation, { data: baseStore.getAirlineSelect })" />
<up-cell title="事件描述" :value="details.eventDescription || '-'" /> <up-cell title="事件描述" :label="details.eventDescription || '-'" />
<up-cell title="问题点" :value="details.problemPoints || '-'" /> <up-cell title="问题点" :value="details.problemPoints || '-'" />
<up-cell title="类别" :value="getParamNameByValue('EventCategory', details.category)" /> <up-cell title="类别" :value="getParamNameByValue('EventCategory', details.category)" />
<up-cell title="扣分情况" :value="details.pointsDeduction || '-'" /> <up-cell title="扣分情况" :value="details.pointsDeduction || '-'" />
<up-cell title="接报日期" :value="timeStampFormat(details.occurrenceTime, { format: 'YYYY/MM/DD' }) || '-'" /> <up-cell title="接报日期" :value="timeStampFormat(details.occurrenceTime, { format: 'YYYY/MM/DD' }) || '-'" />
<up-cell title="调查单位" :value="details.surveyUnit || '-'" /> <up-cell title="调查单位" :value="details.surveyUnit || '-'" />
<up-cell title="事件性质" :value="getParamNameByValue('EventProperty', details.source)" /> <up-cell title="事件性质" :value="getParamNameByValue('EventProperty', details.source)" />
<up-cell title="备注" :value="details.remake || '-'" /> <up-cell title="备注" :label="details.remake || '-'" />
<up-cell title="调查已反馈" :value="useGetDictByValue('aem_surveyListSelect2', details.survey)" /> <up-cell title="调查已反馈" :value="useGetDictByValue('aem_surveyListSelect2', details.survey)" />
<up-cell title="附件"> <up-cell title="附件">
<template #label> <template #label>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
v-if="!(details.survey && details.survey == '2')" v-if="!(details.survey && details.survey == '2')"
:value="timeStampFormat(details.surveyTimeLimit, { format: 'YYYY/MM/DD' }) || '-'" :value="timeStampFormat(details.surveyTimeLimit, { format: 'YYYY/MM/DD' }) || '-'"
/> />
<up-cell title="调查结果简述" v-if="!(details.survey && details.survey == '2')" :value="details.surveyFeedback || '-'" /> <up-cell title="调查结果简述" v-if="!(details.survey && details.survey == '2')" :label="details.surveyFeedback || '-'" />
<up-cell title="完成整改" :value="useGetDictByValue('aem_surveyListSelect2', details.correctiveComplete)" /> <up-cell title="完成整改" :value="useGetDictByValue('aem_surveyListSelect2', details.correctiveComplete)" />
<up-cell title="附件"> <up-cell title="附件">
<template #label> <template #label>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
v-if="!(details.correctiveComplete && details.correctiveComplete == '2')" v-if="!(details.correctiveComplete && details.correctiveComplete == '2')"
:value="timeStampFormat(details.correctiveTimeLimit, { format: 'YYYY/MM/DD' }) || '-'" :value="timeStampFormat(details.correctiveTimeLimit, { format: 'YYYY/MM/DD' }) || '-'"
/> />
<up-cell title="整改措施" :value="details.correctiveMeasures || '-'" /> <up-cell title="整改措施" :label="details.correctiveMeasures || '-'" />
<up-cell title="是否延误" :value="useGetDictByValue('aem_yesOrNoRadio', details.delay)" /> <up-cell title="是否延误" :value="useGetDictByValue('aem_yesOrNoRadio', details.delay)" />
</up-cell-group> </up-cell-group>
</view> </view>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
@handleRightClick="handleSave" @handleRightClick="handleSave"
> >
<view class="mocp-form"> <view class="mocp-form">
<up-form labelPosition="left" labelWidth="auto" :model="formData" :rules="rules"> <up-form ref="formRef" labelPosition="left" labelWidth="auto" :model="formData" :rules="rules">
<up-form-item label="事件来源" prop="source" :borderBottom="true" required> <up-form-item label="事件来源" prop="source" :borderBottom="true" required>
<global-picker v-model="formData.source" pickAlign="right" :options="getParamsByType('EventResource')" clearable></global-picker> <global-picker v-model="formData.source" pickAlign="right" :options="getParamsByType('EventResource')" clearable></global-picker>
</up-form-item> </up-form-item>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
:placeholder="formData.aviation ? '' : '请选择机号自动关联'" :placeholder="formData.aviation ? '' : '请选择机号自动关联'"
> >
<template #suffix> <template #suffix>
{{ useGetDictByValue('', formData.aviation, { data: baseStore.getAirlineSelect }) }} {{ useGetDictByValue('', formData.aviation, { data: baseStore.getAirlineSelect }) || '-' }}
</template> </template>
</up-input> </up-input>
</up-form-item> </up-form-item>
...@@ -191,7 +191,7 @@ import { storeToRefs } from 'pinia' ...@@ -191,7 +191,7 @@ import { storeToRefs } from 'pinia'
import useBaseStore from 'mocp/store/base' import useBaseStore from 'mocp/store/base'
import { useGetDictByValue } from 'mocp/hooks/use-dict/useDict' import { useGetDictByValue } from 'mocp/hooks/use-dict/useDict'
import { getParamsByType } from 'mocp/hooks/use-params/useParams' import { getParamsByType } from 'mocp/hooks/use-params/useParams'
import { correctiveAttaFileVoList, formData, rules, surveyAttaFileVoList } from './constants/edit.compositions' import { correctiveAttaFileVoList, formData, formRef, rules, surveyAttaFileVoList } from './constants/edit.compositions'
import useAbnormalEventManageStore from 'mocp/store/abnormalEventManage' import useAbnormalEventManageStore from 'mocp/store/abnormalEventManage'
import { changeAc, getSurveyAttaFileVoList, getCorrectiveAtta, resetData } from './constants/edit.functionals' import { changeAc, getSurveyAttaFileVoList, getCorrectiveAtta, resetData } from './constants/edit.functionals'
import { updateAdverseEventsApi } from 'mocp/api/abnormalEventManage' import { updateAdverseEventsApi } from 'mocp/api/abnormalEventManage'
...@@ -209,6 +209,7 @@ onLoad(() => { ...@@ -209,6 +209,7 @@ onLoad(() => {
}) })
//保存 //保存
const handleSave = async () => { const handleSave = async () => {
await formRef.value?.validate()
const res = await updateAdverseEventsApi(formData, { loading: true }) const res = await updateAdverseEventsApi(formData, { loading: true })
if (res.code == 200) { if (res.code == 200) {
uni.$mocpJump.navigateBack() uni.$mocpJump.navigateBack()
......
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
<up-cell-group> <up-cell-group>
<template v-if="details.occur == 0"> <template v-if="details.occur == 0">
<up-cell title="发生阶段" value="进港航班" /> <up-cell title="发生阶段" value="进港航班" />
<up-cell title="运行阶段" :value="runPhase[details.runPhaseIn]" /> <up-cell title="运行阶段" :value="runPhase[details.runPhaseIn] || '-'" />
</template> </template>
<template v-else-if="details.occur == 1"> <template v-else-if="details.occur == 1">
<up-cell title="发生阶段" value="出港航班" /> <up-cell title="发生阶段" value="出港航班" />
<up-cell title="运行阶段" :value="runPhase[details.runPhaseOut]" /> <up-cell title="运行阶段" :value="runPhase[details.runPhaseOut] || '-'" />
</template> </template>
<template v-else> <template v-else>
<up-cell title="发生阶段" value="-" /> <up-cell title="发生阶段" value="-" />
......
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