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
aba7e9ef
Commit
aba7e9ef
authored
Oct 11, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 问题处理
parent
ab339465
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
14 deletions
+16
-14
src/mocp/store/windDamageManagement.js
+4
-4
src/pages/modules/mocp/login/constants/index.scss
+1
-0
src/pages/modules/mocp/panel/abnormalEventManage/details.vue
+5
-5
src/pages/modules/mocp/panel/abnormalEventManage/edit.vue
+4
-3
src/pages/modules/mocp/panel/mechanicalAbnormalEvents/details.vue
+2
-2
No files found.
src/mocp/store/windDamageManagement.js
View file @
aba7e9ef
...
...
@@ -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
}
...
...
src/pages/modules/mocp/login/constants/index.scss
View file @
aba7e9ef
...
...
@@ -29,6 +29,7 @@
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
width
:
100%
;
&
-image
{
margin-left
:
20rpx
;
width
:
200rpx
;
...
...
src/pages/modules/mocp/panel/abnormalEventManage/details.vue
View file @
aba7e9ef
...
...
@@ -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>
...
...
src/pages/modules/mocp/panel/abnormalEventManage/edit.vue
View file @
aba7e9ef
...
...
@@ -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
()
...
...
src/pages/modules/mocp/panel/mechanicalAbnormalEvents/details.vue
View file @
aba7e9ef
...
...
@@ -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=
"-"
/>
...
...
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