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
91a5e79a
Commit
91a5e79a
authored
Oct 10, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 防风害系留操作单
parent
cdf74bc6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
70 additions
and
62 deletions
+70
-62
src/mocp/api/windDamageManagement.js
+16
-0
src/mocp/hooks/use-dict/dict-data/windDamageManagement.js
+4
-0
src/mocp/store/windDamageManagement.js
+8
-0
src/pages.json
+6
-0
src/pages/modules/mocp/panel/windDamageManagement/constants/details.scss
+30
-0
src/pages/modules/mocp/panel/windDamageManagement/editConclusion.vue
+3
-1
src/pages/modules/mocp/panel/windDamageManagement/list.vue
+1
-1
src/pages/modules/mocp/panel/windDamageManagement/mooringDetails.vue
+0
-0
src/pages/modules/mocp/panel/windDamageManagement/operateDetails.vue
+1
-30
src/pages/modules/mocp/panel/windDamageManagement/patrolDetails.vue
+1
-30
No files found.
src/mocp/api/windDamageManagement.js
View file @
91a5e79a
...
...
@@ -96,3 +96,19 @@ export const saveOperateWorkApi = (data, config) => {
config
})
}
export
const
saveMooringWorkApi
=
(
data
,
config
)
=>
{
return
post
({
method
:
'POST'
,
url
:
'/terminal/saveMooringWork'
,
data
,
config
})
}
export
const
saveRelieveInfoApi
=
(
data
,
config
)
=>
{
return
http
({
method
:
'POST'
,
url
:
'/terminal/saveRelieveInfo'
,
data
,
config
})
}
src/mocp/hooks/use-dict/dict-data/windDamageManagement.js
View file @
91a5e79a
...
...
@@ -28,3 +28,7 @@ export const wdm_isAbnormal = [
{
label
:
'是'
,
value
:
'1'
},
{
label
:
'否'
,
value
:
'2'
}
]
export
const
wdm_situation
=
[
{
label
:
'可以实施系留'
,
value
:
'0'
},
{
label
:
'不能系留'
,
value
:
'1'
}
]
src/mocp/store/windDamageManagement.js
View file @
91a5e79a
...
...
@@ -50,6 +50,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
return
state
.
details
?.
patrolList
.
find
((
item
)
=>
item
.
patrolBasicVo
.
id
==
String
(
state
.
basicId
))
||
{}
}
else
if
(
state
.
tabIndex
==
1
)
{
return
state
.
details
?.
operateList
.
find
((
item
)
=>
item
.
operateBasicVo
.
id
==
String
(
state
.
basicId
))
||
{}
}
else
if
(
state
.
tabIndex
==
2
)
{
return
state
.
details
?.
mooringList
.
find
((
item
)
=>
item
.
mooringBasicVo
.
id
==
String
(
state
.
basicId
))
||
{}
}
return
{}
},
...
...
@@ -58,6 +60,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
return
this
.
getDetails
.
patrolBasicVo
||
{}
}
else
if
(
state
.
tabIndex
==
1
)
{
return
this
.
getDetails
?.
operateBasicVo
||
{}
}
else
if
(
state
.
tabIndex
==
2
)
{
return
this
.
getDetails
?.
mooringBasicVo
||
{}
}
return
{}
},
...
...
@@ -66,6 +70,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
return
this
.
getDetails
.
patrolConclusionVo
||
{}
}
else
if
(
state
.
tabIndex
==
1
)
{
return
this
.
getDetails
.
operateConclusionVo
||
{}
}
else
if
(
state
.
tabIndex
==
2
)
{
return
this
.
getDetails
.
mooringConclusionVo
||
{}
}
return
{}
},
...
...
@@ -74,6 +80,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
return
this
.
getDetails
.
patrolWorkVo
||
{}
}
else
if
(
state
.
tabIndex
==
1
)
{
return
this
.
getDetails
.
operateWorkVo
||
{}
}
else
if
(
state
.
tabIndex
==
2
)
{
return
this
.
getDetails
.
mooringWorkVo
||
{}
}
return
{}
}
...
...
src/pages.json
View file @
91a5e79a
...
...
@@ -764,6 +764,12 @@
"style"
:
{
"navigationBarTitleText"
:
"防风害操作单"
}
},
{
"path"
:
"pages/modules/mocp/panel/windDamageManagement/mooringDetails"
,
"style"
:
{
"navigationBarTitleText"
:
"防风害系留操作单"
}
}
],
"globalStyle"
:
{
...
...
src/pages/modules/mocp/panel/windDamageManagement/constants/details.scss
0 → 100644
View file @
91a5e79a
.mocp-cell
{
background
:
#fff
;
border-bottom
:
16rpx
#f7f8fa
solid
;
}
.mocp-title
{
display
:
flex
;
align-items
:
center
;
.txt
{
font-weight
:
500
;
font-size
:
34rpx
;
color
:
$mocp-text-5
;
margin-right
:
8rpx
;
}
}
:deep
(
.u-collapse-item
)
{
.u-cell
{
background
:
#f7f8fa
;
}
.u-collapse-item__content
{
.u-cell
{
background
:
#fff
;
}
}
.u-collapse-item__content__text
{
padding
:
0
;
}
.u-cell__title
{
color
:
$mocp-text-5
;
}
}
src/pages/modules/mocp/panel/windDamageManagement/editConclusion.vue
View file @
91a5e79a
...
...
@@ -34,7 +34,7 @@ import { storeToRefs } from 'pinia'
import
useWindDamageManagementStore
from
'mocp/store/windDamageManagement'
const
windDamageManagementStore
=
useWindDamageManagementStore
()
const
{
getConclusionVo
}
=
storeToRefs
(
windDamageManagementStore
)
const
{
getConclusionVo
,
basicId
,
tabIndex
}
=
storeToRefs
(
windDamageManagementStore
)
// 表单数据
const
formData
=
reactive
({
basicId
:
''
,
...
...
@@ -46,6 +46,8 @@ const formData = reactive({
})
// 页面初始化
onLoad
(()
=>
{
formData
.
basicId
=
basicId
.
value
formData
.
type
=
tabIndex
.
value
+
1
Object
.
assign
(
formData
,
getConclusionVo
.
value
)
})
//提交表单
...
...
src/pages/modules/mocp/panel/windDamageManagement/list.vue
View file @
91a5e79a
...
...
@@ -96,7 +96,7 @@ const tabList = [
{
name
:
'系留单'
,
api
:
getPwdMooringListApi
,
url
:
'/panel/windDamageManagement/
patrol
Details'
url
:
'/panel/windDamageManagement/
mooring
Details'
},
{
name
:
'防沙尘暴签署单'
,
...
...
src/pages/modules/mocp/panel/windDamageManagement/mooringDetails.vue
0 → 100644
View file @
91a5e79a
This diff is collapsed.
Click to expand it.
src/pages/modules/mocp/panel/windDamageManagement/operateDetails.vue
View file @
91a5e79a
...
...
@@ -616,34 +616,5 @@ const handleRightClick = async () => {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
border-bottom
:
16
rpx
#f7f8fa
solid
;
}
.mocp-title
{
display
:
flex
;
align-items
:
center
;
.txt
{
font-weight
:
500
;
font-size
:
34
rpx
;
color
:
$
mocp-text-5
;
margin-right
:
8
rpx
;
}
}
:deep
(
.u-collapse-item
)
{
.u-cell
{
background
:
#f7f8fa
;
}
.u-collapse-item__content
{
.u-cell
{
background
:
#fff
;
}
}
.u-collapse-item__content__text
{
padding
:
0
;
}
.u-cell__title
{
color
:
$
mocp-text-5
;
}
}
@import
'./constants/details.scss'
;
</
style
>
src/pages/modules/mocp/panel/windDamageManagement/patrolDetails.vue
View file @
91a5e79a
...
...
@@ -473,34 +473,5 @@ const handleRightClick = async () => {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.mocp-cell
{
background
:
#fff
;
border-bottom
:
16
rpx
#f7f8fa
solid
;
}
.mocp-title
{
display
:
flex
;
align-items
:
center
;
.txt
{
font-weight
:
500
;
font-size
:
34
rpx
;
color
:
$
mocp-text-5
;
margin-right
:
8
rpx
;
}
}
:deep
(
.u-collapse-item
)
{
.u-cell
{
background
:
#f7f8fa
;
}
.u-collapse-item__content
{
.u-cell
{
background
:
#fff
;
}
}
.u-collapse-item__content__text
{
padding
:
0
;
}
.u-cell__title
{
color
:
$
mocp-text-5
;
}
}
@import
'./constants/details.scss'
;
</
style
>
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