Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amms-template
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
amms-template
Commits
7ee304fe
Commit
7ee304fe
authored
Sep 05, 2025
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 防风害模板新增
parent
767fc66f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
309 deletions
+77
-309
mocp/api/windDamageManagement.js
+8
-0
mocp/utils/http.js
+2
-2
pages/modules/mocp/panel/windDamageManagement/patrolDetails.vue
+67
-307
No files found.
mocp/api/windDamageManagement.js
View file @
7ee304fe
...
@@ -40,6 +40,14 @@ export const getAllTaskInfoByWeatherApi = (data, config) => {
...
@@ -40,6 +40,14 @@ export const getAllTaskInfoByWeatherApi = (data, config) => {
config
config
})
})
}
}
export
const
getPwdWorkTemplateItemsByStnApi
=
(
data
,
config
)
=>
{
return
http
({
method
:
'POST'
,
url
:
'/terminal/getPwdWorkTemplateItemsByStn'
,
data
,
config
})
}
export
const
savePwdCommonTaskApi
=
(
data
,
config
)
=>
{
export
const
savePwdCommonTaskApi
=
(
data
,
config
)
=>
{
return
post
({
return
post
({
method
:
'POST'
,
method
:
'POST'
,
...
...
mocp/utils/http.js
View file @
7ee304fe
...
@@ -3,8 +3,8 @@ import useUserStore from 'mocp/store/user'
...
@@ -3,8 +3,8 @@ import useUserStore from 'mocp/store/user'
// const baseURL = 'https://hna-platform.anyremote.cn' //测试
// const baseURL = 'https://hna-platform.anyremote.cn' //测试
// const baseURL = 'https://moc.hnatechnic.com/api' //生产
// const baseURL = 'https://moc.hnatechnic.com/api' //生产
// const baseURL = 'http://10.123.48.67/api' //Amms内网
// const baseURL = 'http://10.123.48.67/api' //Amms内网
// const baseURL = 'http://10.121.48.157/gky_mocp_bs
/api' //北数高可用测试环境
const
baseURL
=
'http://10.70.62.129
/api'
//北数高可用测试环境
const
baseURL
=
'https://hnaelbtest.hnatechnic.com/mocptest/api'
//内网
//
const baseURL = 'https://hnaelbtest.hnatechnic.com/mocptest/api' //内网
class
ServiceLoading
{
class
ServiceLoading
{
open
(
loading
)
{
open
(
loading
)
{
...
...
pages/modules/mocp/panel/windDamageManagement/patrolDetails.vue
View file @
7ee304fe
...
@@ -74,291 +74,46 @@
...
@@ -74,291 +74,46 @@
</view>
</view>
<view
class=
"mocp-cell"
>
<view
class=
"mocp-cell"
>
<up-cell-group>
<up-cell-group>
<!-- 1 -->
<
template
v-for=
"(item, index) in formData.workItems"
:key=
"item.id"
>
<up-cell>
<up-cell>
<
template
#
title
>
<template
#
title
>
<view>
1、信息通报开始巡场
</view>
<view>
{{
index
+
1
}}
、
{{
item
.
title
}}
</view>
</
template
>
</
template
>
</up-cell>
</up-cell>
<up-cell
title=
"是否完成"
>
<up-cell
title=
"是否完成"
>
<
template
#
value
>
<
template
#
value
>
<view>
<view>
<global-radio
<global-radio
radioAlign=
"right"
radioAlign=
"right"
v-model=
"formData.startComplete"
v-model=
"item.isComplete"
clearable
clearable
dictkey=
"wdm_complete"
dictkey=
"wdm_complete"
:disabled=
"getDisabled"
></global-radio>
</view>
</
template
>
</up-cell>
<up-cell
title=
"发现问题及处理措施"
:border=
"false"
>
<
template
#
label
>
<up-textarea
placeholder=
"请输入"
v-model=
"item.measure"
:height=
"40"
border=
"none"
:disabled=
"getDisabled"
:disabled=
"getDisabled"
></global-radio>
></up-textarea>
</view>
</
template
>
</
template
>
</up-cell>
</up-cell>
<up-cell>
<up-cell
title=
"发现问题及处理措施"
:border=
"false"
>
<
template
#
label
>
<
template
#
label
>
<global-upload
<up-textarea
v-model=
"item.files"
placeholder=
"请输入"
:file-list=
"getWorkVo.workItems?.[index].files"
v-model=
"formData.startMeasure"
:show-upload=
"!getDisabled"
:height=
"40"
></global-upload>
border=
"none"
</
template
>
:disabled=
"getDisabled"
</up-cell>
></up-textarea>
</template>
</
template
>
</up-cell>
<up-cell>
<
template
#
label
>
<global-upload
v-model=
"formData.startFiles"
:file-list=
"getWorkVo.startFiles"
:show-upload=
"!getDisabled"
></global-upload>
</
template
>
</up-cell>
<!-- 2 -->
<up-cell>
<
template
#
title
>
<view>
2、飞机是否按需档好轮挡
<text
style=
"color: #86909c"
>
(对于A320/330/350机型,当风速达到6级,所有前轮和主轮的前后摆放轮档。 共放置 12 个轮档。)
</text>
</view>
</
template
>
</up-cell>
<up-cell
title=
"是否完成"
>
<
template
#
value
>
<view>
<global-radio
radioAlign=
"right"
v-model=
"formData.wheelComplete"
clearable
dictkey=
"wdm_complete"
:disabled=
"getDisabled"
></global-radio>
</view>
</
template
>
</up-cell>
<up-cell
title=
"发现问题及处理措施"
:border=
"false"
>
<
template
#
label
>
<up-textarea
placeholder=
"请输入"
v-model=
"formData.wheelMeasure"
:height=
"40"
border=
"none"
:disabled=
"getDisabled"
></up-textarea>
</
template
>
</up-cell>
<up-cell>
<
template
#
label
>
<global-upload
v-model=
"formData.wheelFiles"
:file-list=
"getWorkVo.wheelFiles"
:show-upload=
"!getDisabled"
></global-upload>
</
template
>
</up-cell>
<!-- 3 -->
<up-cell>
<
template
#
title
>
<view>
3、停场飞机相关布罩和堵盖在位,周围无可吹移动危险物体
<text
style=
"color: #86909c"
>
(注:如发现发动机布罩脱落后,应通知维修控制员安排人员对发动机进行目视检查)
</text>
</view>
</
template
>
</up-cell>
<up-cell
title=
"是否完成"
>
<
template
#
value
>
<view>
<global-radio
radioAlign=
"right"
v-model=
"formData.parkingComplete"
clearable
dictkey=
"wdm_complete"
:disabled=
"getDisabled"
></global-radio>
</view>
</
template
>
</up-cell>
<up-cell
title=
"发现问题及处理措施"
:border=
"false"
>
<
template
#
label
>
<up-textarea
placeholder=
"请输入"
v-model=
"formData.parkingMeasure"
:height=
"40"
border=
"none"
:disabled=
"getDisabled"
></up-textarea>
</
template
>
</up-cell>
<up-cell>
<
template
#
label
>
<global-upload
v-model=
"formData.parkingFiles"
:file-list=
"getWorkVo.parkingFiles"
:show-upload=
"!getDisabled"
></global-upload>
</
template
>
</up-cell>
<!-- 4 -->
<up-cell>
<
template
#
title
>
<view>
4、对飞机有安全隐患梯架、设备在指定位置并与地面固定物系留,其中外单位梯架需通报机场和相关单位处理,并在未得到处理前安排人员进行监护
</view>
</
template
>
</up-cell>
<up-cell
title=
"是否完成"
>
<
template
#
value
>
<view>
<global-radio
radioAlign=
"right"
v-model=
"formData.monitoringComplete"
clearable
dictkey=
"wdm_complete"
:disabled=
"getDisabled"
></global-radio>
</view>
</
template
>
</up-cell>
<up-cell
title=
"发现问题及处理措施"
:border=
"false"
>
<
template
#
label
>
<up-textarea
placeholder=
"请输入"
v-model=
"formData.monitoringMeasure"
:height=
"40"
border=
"none"
:disabled=
"getDisabled"
></up-textarea>
</
template
>
</up-cell>
<up-cell>
<
template
#
label
>
<global-upload
v-model=
"formData.monitoringFiles"
:file-list=
"getWorkVo.monitoringFiles"
:show-upload=
"!getDisabled"
></global-upload>
</
template
>
</up-cell>
<!-- 5 -->
<up-cell>
<
template
#
title
>
<view>
5、飞机周边无可移动等危险源,如货柜
</view>
</
template
>
</up-cell>
<up-cell
title=
"是否完成"
>
<
template
#
value
>
<view>
<global-radio
radioAlign=
"right"
v-model=
"formData.hazardComplete"
clearable
dictkey=
"wdm_complete"
:disabled=
"getDisabled"
></global-radio>
</view>
</
template
>
</up-cell>
<up-cell
title=
"发现问题及处理措施"
:border=
"false"
>
<
template
#
label
>
<up-textarea
placeholder=
"请输入"
v-model=
"formData.hazardMeasure"
:height=
"40"
border=
"none"
:disabled=
"getDisabled"
></up-textarea>
</
template
>
</up-cell>
<up-cell>
<
template
#
label
>
<global-upload
v-model=
"formData.hazardFiles"
:file-list=
"getWorkVo.hazardFiles"
:show-upload=
"!getDisabled"
></global-upload>
</
template
>
</up-cell>
<!-- 6 -->
<up-cell>
<
template
#
title
>
<view>
6、检查基地内重点风害危险区域
</view>
</
template
>
</up-cell>
<up-cell
title=
"是否完成"
>
<
template
#
value
>
<view>
<global-radio
radioAlign=
"right"
v-model=
"formData.taComplete"
clearable
dictkey=
"wdm_complete"
:disabled=
"getDisabled"
></global-radio>
</view>
</
template
>
</up-cell>
<up-cell
title=
"发现问题及处理措施"
:border=
"false"
>
<
template
#
label
>
<up-textarea
placeholder=
"请输入"
v-model=
"formData.taMeasure"
:height=
"40"
border=
"none"
:disabled=
"getDisabled"
></up-textarea>
</
template
>
</up-cell>
<up-cell>
<
template
#
label
>
<global-upload
v-model=
"formData.taFiles"
:file-list=
"getWorkVo.taFiles"
:show-upload=
"!getDisabled"
></global-upload>
</
template
>
</up-cell>
<!-- 7 -->
<up-cell>
<
template
#
title
>
<view>
7、通报巡场结束
</view>
</
template
>
</up-cell>
<up-cell
title=
"是否完成"
>
<
template
#
value
>
<view>
<global-radio
radioAlign=
"right"
v-model=
"formData.endComplete"
clearable
dictkey=
"wdm_complete"
:disabled=
"getDisabled"
></global-radio>
</view>
</
template
>
</up-cell>
<up-cell
title=
"发现问题及处理措施"
:border=
"false"
>
<
template
#
label
>
<up-textarea
placeholder=
"请输入"
v-model=
"formData.endMeasure"
:height=
"40"
border=
"none"
:disabled=
"getDisabled"
></up-textarea>
</
template
>
</up-cell>
<up-cell>
<
template
#
label
>
<global-upload
v-model=
"formData.endFiles"
:file-list=
"getWorkVo.endFiles"
:show-upload=
"!getDisabled"
></global-upload>
</
template
>
</up-cell>
</up-cell-group>
</up-cell-group>
</view>
</view>
<view
class=
"mocp-cell"
>
<view
class=
"mocp-cell"
>
...
@@ -438,7 +193,8 @@ import { navigateTo } from 'mocp/utils/jump'
...
@@ -438,7 +193,8 @@ import { navigateTo } from 'mocp/utils/jump'
import
useWindDamageManagementStore
from
'mocp/store/windDamageManagement'
import
useWindDamageManagementStore
from
'mocp/store/windDamageManagement'
import
ReceiveHistoryList
from
'./components/ReceiveHistoryList.vue'
import
ReceiveHistoryList
from
'./components/ReceiveHistoryList.vue'
import
useUserStore
from
'mocp/store/user'
import
useUserStore
from
'mocp/store/user'
import
{
savePatrolWorkApi
,
saveReceiveInfoApi
}
from
'mocp/api/windDamageManagement'
import
{
getPwdWorkTemplateItemsByStnApi
,
savePatrolWorkApi
,
saveReceiveInfoApi
}
from
'mocp/api/windDamageManagement'
import
{
cloneDeep
}
from
'lodash'
const
baseStore
=
useBaseStore
()
const
baseStore
=
useBaseStore
()
const
windDamageManagementStore
=
useWindDamageManagementStore
()
const
windDamageManagementStore
=
useWindDamageManagementStore
()
...
@@ -447,9 +203,33 @@ onLoad(() => {
...
@@ -447,9 +203,33 @@ onLoad(() => {
init
()
init
()
})
})
const
collapseRef
=
ref
()
const
collapseRef
=
ref
()
//获取巡场检查单工作内容模板明细
const
getPwdWorkTemplateItemsByStn
=
async
()
=>
{
const
res
=
await
getPwdWorkTemplateItemsByStnApi
({
terminal
:
details
.
value
?.
terminal
},
{
loading
:
true
})
if
(
res
.
code
==
200
)
{
formData
.
workItems
=
res
.
data
.
map
((
item
)
=>
{
return
{
...
item
,
isComplete
:
'0'
,
measure
:
''
,
files
:
''
}
})
||
[]
}
else
{
uni
.
$mocpMessage
.
error
(
res
.
message
)
}
}
const
init
=
async
()
=>
{
const
init
=
async
()
=>
{
await
windDamageManagementStore
.
getAllTaskInfoByWeather
()
await
windDamageManagementStore
.
getAllTaskInfoByWeather
()
Object
.
assign
(
formData
,
getWorkVo
.
value
)
formData
.
id
=
getWorkVo
.
value
?.
id
formData
.
startTime
=
getWorkVo
.
value
?.
startTime
formData
.
endTime
=
getWorkVo
.
value
?.
endTime
if
(
getWorkVo
.
value
?.
workItems
)
{
formData
.
workItems
=
cloneDeep
(
getWorkVo
.
value
?.
workItems
)
||
[]
}
else
{
await
getPwdWorkTemplateItemsByStn
()
}
formData
.
basicId
=
basicId
.
value
formData
.
basicId
=
basicId
.
value
collapseRef
.
value
?.
init
()
collapseRef
.
value
?.
init
()
}
}
...
@@ -488,30 +268,10 @@ const goWeather = () => {
...
@@ -488,30 +268,10 @@ const goWeather = () => {
//保存
//保存
const
formData
=
reactive
({
const
formData
=
reactive
({
basicId
:
''
,
basicId
:
''
,
checkComplete
:
undefined
,
checkFiles
:
''
,
checkMeasure
:
''
,
endComplete
:
undefined
,
endFiles
:
''
,
endMeasure
:
''
,
endTime
:
undefined
,
endTime
:
undefined
,
hazardComplete
:
undefined
,
hazardFiles
:
''
,
hazardMeasure
:
''
,
id
:
''
,
id
:
''
,
monitoringComplete
:
undefined
,
monitoringFiles
:
''
,
monitoringMeasure
:
''
,
parkingComplete
:
undefined
,
parkingFiles
:
''
,
parkingMeasure
:
''
,
startComplete
:
undefined
,
startFiles
:
''
,
startMeasure
:
''
,
startTime
:
undefined
,
startTime
:
undefined
,
wheelComplete
:
undefined
,
workItems
:
[]
wheelFiles
:
''
,
wheelMeasure
:
''
})
})
const
handleRightClick
=
async
()
=>
{
const
handleRightClick
=
async
()
=>
{
const
res
=
await
savePatrolWorkApi
(
formData
,
{
loading
:
true
})
const
res
=
await
savePatrolWorkApi
(
formData
,
{
loading
:
true
})
...
...
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