Commit 91a5e79a by pangchong

feat: 防风害系留操作单

parent cdf74bc6
...@@ -96,3 +96,19 @@ export const saveOperateWorkApi = (data, config) => { ...@@ -96,3 +96,19 @@ export const saveOperateWorkApi = (data, config) => {
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
})
}
...@@ -28,3 +28,7 @@ export const wdm_isAbnormal = [ ...@@ -28,3 +28,7 @@ export const wdm_isAbnormal = [
{ label: '是', value: '1' }, { label: '是', value: '1' },
{ label: '否', value: '2' } { label: '否', value: '2' }
] ]
export const wdm_situation = [
{ label: '可以实施系留', value: '0' },
{ label: '不能系留', value: '1' }
]
...@@ -50,6 +50,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', { ...@@ -50,6 +50,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
return state.details?.patrolList.find((item) => item.patrolBasicVo.id == String(state.basicId)) || {} return state.details?.patrolList.find((item) => item.patrolBasicVo.id == String(state.basicId)) || {}
} else if (state.tabIndex == 1) { } else if (state.tabIndex == 1) {
return state.details?.operateList.find((item) => item.operateBasicVo.id == String(state.basicId)) || {} 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 {} return {}
}, },
...@@ -58,6 +60,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', { ...@@ -58,6 +60,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
return this.getDetails.patrolBasicVo || {} return this.getDetails.patrolBasicVo || {}
} else if (state.tabIndex == 1) { } else if (state.tabIndex == 1) {
return this.getDetails?.operateBasicVo || {} return this.getDetails?.operateBasicVo || {}
} else if (state.tabIndex == 2) {
return this.getDetails?.mooringBasicVo || {}
} }
return {} return {}
}, },
...@@ -66,6 +70,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', { ...@@ -66,6 +70,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
return this.getDetails.patrolConclusionVo || {} return this.getDetails.patrolConclusionVo || {}
} else if (state.tabIndex == 1) { } else if (state.tabIndex == 1) {
return this.getDetails.operateConclusionVo || {} return this.getDetails.operateConclusionVo || {}
} else if (state.tabIndex == 2) {
return this.getDetails.mooringConclusionVo || {}
} }
return {} return {}
}, },
...@@ -74,6 +80,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', { ...@@ -74,6 +80,8 @@ const useWindDamageManagementStore = defineStore('windDamageManagement303030', {
return this.getDetails.patrolWorkVo || {} return this.getDetails.patrolWorkVo || {}
} else if (state.tabIndex == 1) { } else if (state.tabIndex == 1) {
return this.getDetails.operateWorkVo || {} return this.getDetails.operateWorkVo || {}
} else if (state.tabIndex == 2) {
return this.getDetails.mooringWorkVo || {}
} }
return {} return {}
} }
......
...@@ -764,6 +764,12 @@ ...@@ -764,6 +764,12 @@
"style": { "style": {
"navigationBarTitleText": "防风害操作单" "navigationBarTitleText": "防风害操作单"
} }
},
{
"path": "pages/modules/mocp/panel/windDamageManagement/mooringDetails",
"style": {
"navigationBarTitleText": "防风害系留操作单"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
.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;
}
}
...@@ -34,7 +34,7 @@ import { storeToRefs } from 'pinia' ...@@ -34,7 +34,7 @@ import { storeToRefs } from 'pinia'
import useWindDamageManagementStore from 'mocp/store/windDamageManagement' import useWindDamageManagementStore from 'mocp/store/windDamageManagement'
const windDamageManagementStore = useWindDamageManagementStore() const windDamageManagementStore = useWindDamageManagementStore()
const { getConclusionVo } = storeToRefs(windDamageManagementStore) const { getConclusionVo, basicId, tabIndex } = storeToRefs(windDamageManagementStore)
// 表单数据 // 表单数据
const formData = reactive({ const formData = reactive({
basicId: '', basicId: '',
...@@ -46,6 +46,8 @@ const formData = reactive({ ...@@ -46,6 +46,8 @@ const formData = reactive({
}) })
// 页面初始化 // 页面初始化
onLoad(() => { onLoad(() => {
formData.basicId = basicId.value
formData.type = tabIndex.value + 1
Object.assign(formData, getConclusionVo.value) Object.assign(formData, getConclusionVo.value)
}) })
//提交表单 //提交表单
......
...@@ -96,7 +96,7 @@ const tabList = [ ...@@ -96,7 +96,7 @@ const tabList = [
{ {
name: '系留单', name: '系留单',
api: getPwdMooringListApi, api: getPwdMooringListApi,
url: '/panel/windDamageManagement/patrolDetails' url: '/panel/windDamageManagement/mooringDetails'
}, },
{ {
name: '防沙尘暴签署单', name: '防沙尘暴签署单',
......
...@@ -616,34 +616,5 @@ const handleRightClick = async () => { ...@@ -616,34 +616,5 @@ const handleRightClick = async () => {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.mocp-cell { @import './constants/details.scss';
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;
}
}
</style> </style>
...@@ -473,34 +473,5 @@ const handleRightClick = async () => { ...@@ -473,34 +473,5 @@ const handleRightClick = async () => {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.mocp-cell { @import './constants/details.scss';
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;
}
}
</style> </style>
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