Commit aba7e9ef by pangchong

feat: 问题处理

parent ab339465
......@@ -95,13 +95,13 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
},
getDisabled(state) {
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) {
return this.getBasicVo.rxStatus == '0' || state.details.operateIsOpen == '0'
return this.getBasicVo.rxStatus == '0' || state.details?.operateIsOpen == '0'
} 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) {
return this.getBasicVo.rxStatus == '0' || state.details.sandstormIsOpen == '0'
return this.getBasicVo.rxStatus == '0' || state.details?.sandstormIsOpen == '0'
}
return false
}
......
......@@ -29,6 +29,7 @@
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
&-image {
margin-left: 20rpx;
width: 200rpx;
......
......@@ -2,7 +2,7 @@
<global-page
:padding="24"
title="航站不正常事件详情"
showFooterBtn
:showFooterBtn="details.state == 0"
:footerBtnText="getFooterTxt"
@handleFooterClick="handleFooterClick"
:showNavRight="auditLabel != '审核通过'"
......@@ -22,14 +22,14 @@
<up-cell title="机号" :value="details.machineNumber || '-'" />
<up-cell title="机型" :value="details.model || '-'" />
<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="getParamNameByValue('EventCategory', details.category)" />
<up-cell title="扣分情况" :value="details.pointsDeduction || '-'" />
<up-cell title="接报日期" :value="timeStampFormat(details.occurrenceTime, { format: 'YYYY/MM/DD' }) || '-'" />
<up-cell title="调查单位" :value="details.surveyUnit || '-'" />
<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="附件">
<template #label>
......@@ -43,7 +43,7 @@
v-if="!(details.survey && details.survey == '2')"
: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="附件">
<template #label>
......@@ -57,7 +57,7 @@
v-if="!(details.correctiveComplete && details.correctiveComplete == '2')"
: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-group>
</view>
......
......@@ -8,7 +8,7 @@
@handleRightClick="handleSave"
>
<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>
<global-picker v-model="formData.source" pickAlign="right" :options="getParamsByType('EventResource')" clearable></global-picker>
</up-form-item>
......@@ -58,7 +58,7 @@
:placeholder="formData.aviation ? '' : '请选择机号自动关联'"
>
<template #suffix>
{{ useGetDictByValue('', formData.aviation, { data: baseStore.getAirlineSelect }) }}
{{ useGetDictByValue('', formData.aviation, { data: baseStore.getAirlineSelect }) || '-' }}
</template>
</up-input>
</up-form-item>
......@@ -191,7 +191,7 @@ import { storeToRefs } from 'pinia'
import useBaseStore from 'mocp/store/base'
import { useGetDictByValue } from 'mocp/hooks/use-dict/useDict'
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 { changeAc, getSurveyAttaFileVoList, getCorrectiveAtta, resetData } from './constants/edit.functionals'
import { updateAdverseEventsApi } from 'mocp/api/abnormalEventManage'
......@@ -209,6 +209,7 @@ onLoad(() => {
})
//保存
const handleSave = async () => {
await formRef.value?.validate()
const res = await updateAdverseEventsApi(formData, { loading: true })
if (res.code == 200) {
uni.$mocpJump.navigateBack()
......
......@@ -35,11 +35,11 @@
<up-cell-group>
<template v-if="details.occur == 0">
<up-cell title="发生阶段" value="进港航班" />
<up-cell title="运行阶段" :value="runPhase[details.runPhaseIn]" />
<up-cell title="运行阶段" :value="runPhase[details.runPhaseIn] || '-'" />
</template>
<template v-else-if="details.occur == 1">
<up-cell title="发生阶段" value="出港航班" />
<up-cell title="运行阶段" :value="runPhase[details.runPhaseOut]" />
<up-cell title="运行阶段" :value="runPhase[details.runPhaseOut] || '-'" />
</template>
<template v-else>
<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