Commit 597399f1 authored by 郭铭瑶's avatar 郭铭瑶 🤘

快处搜索详情更换接口

parent c312002b
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<link rel="icon" href="./favicon.ico" /> <link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>南京东路街道</title> <title>南京东路街道</title>
<script type="module" crossorigin src="./assets/index.56be8503.js"></script> <script type="module" crossorigin src="./assets/index.8d537ddf.js"></script>
<link rel="modulepreload" href="./assets/vendor.0a2bc783.js"> <link rel="modulepreload" href="./assets/vendor.0a2bc783.js">
<link rel="stylesheet" href="./assets/index.a96a5e4b.css"> <link rel="stylesheet" href="./assets/index.a96a5e4b.css">
</head> </head>
......
...@@ -142,6 +142,7 @@ export default { ...@@ -142,6 +142,7 @@ export default {
GET_DISCOVER_COUNT: '/service-special-nandong/public/discover/count', // 今日及历史发现数 GET_DISCOVER_COUNT: '/service-special-nandong/public/discover/count', // 今日及历史发现数
GET_DISCOVER_LIST: '/service-special-nandong/public/discoverys', // 快处闭环 GET_DISCOVER_LIST: '/service-special-nandong/public/discoverys', // 快处闭环
GET_COMMUNITY_PATH: '/service-special-nandong/public/coordinatess', // 所有小区勾边 GET_COMMUNITY_PATH: '/service-special-nandong/public/coordinatess', // 所有小区勾边
GET_DISCOVER_DETAIL: '/service-special-nandong/public/discoveryProcesss', // 快处详情
/** 来福士 */ /** 来福士 */
GET_RAFFLES: '/service-special-nandong/public/lfss', // 来福士列表 GET_RAFFLES: '/service-special-nandong/public/lfss', // 来福士列表
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
:community-info="communityInfo" :community-info="communityInfo"
:property-info="propertyInfo" :property-info="propertyInfo"
:case-info="caseInfo" :case-info="caseInfo"
:detail="disposeDetail"
/> />
</m-drawer> </m-drawer>
<m-drawer v-model="populationModal"> <m-drawer v-model="populationModal">
...@@ -249,11 +250,21 @@ export default defineComponent({ ...@@ -249,11 +250,21 @@ export default defineComponent({
propertyInfo.value = {} propertyInfo.value = {}
} }
caseModal.value = true caseModal.value = true
disposeModal.value = false
populationModal.value = false populationModal.value = false
communityModal.value = false communityModal.value = false
} }
const disposeDetail = ref<any[]>([])
async function selectDispose(data: any) { async function selectDispose(data: any) {
caseInfo.value = data caseInfo.value = data
ajax
.get({
url: api.GET_DISCOVER_DETAIL,
params: { discoverId: data?.id },
})
.then((res) => {
disposeDetail.value = res?.data?.content || {}
})
if (data.communityId) { if (data.communityId) {
const content = await searchCommunity(null, data.communityId) const content = await searchCommunity(null, data.communityId)
communityInfo.value = content && content[0] communityInfo.value = content && content[0]
...@@ -267,6 +278,7 @@ export default defineComponent({ ...@@ -267,6 +278,7 @@ export default defineComponent({
propertyInfo.value = {} propertyInfo.value = {}
} }
disposeModal.value = true disposeModal.value = true
caseModal.value = false
populationModal.value = false populationModal.value = false
communityModal.value = false communityModal.value = false
} }
...@@ -328,6 +340,7 @@ export default defineComponent({ ...@@ -328,6 +340,7 @@ export default defineComponent({
buildingInfo.value = {} buildingInfo.value = {}
} }
populationModal.value = true populationModal.value = true
disposeModal.value = false
caseModal.value = false caseModal.value = false
communityModal.value = false communityModal.value = false
} }
...@@ -369,6 +382,7 @@ export default defineComponent({ ...@@ -369,6 +382,7 @@ export default defineComponent({
communityInfo.value.deviceList = communityInfo.value.deviceList =
(await searchDevice({ sectId: data.sectId })) || [] (await searchDevice({ sectId: data.sectId })) || []
communityModal.value = true communityModal.value = true
disposeModal.value = false
populationModal.value = false populationModal.value = false
caseModal.value = false caseModal.value = false
} }
...@@ -385,6 +399,7 @@ export default defineComponent({ ...@@ -385,6 +399,7 @@ export default defineComponent({
communityInfo, communityInfo,
propertyInfo, propertyInfo,
caseInfo, caseInfo,
disposeDetail,
buildingInfo, buildingInfo,
roomInfo, roomInfo,
empty, empty,
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<m-form <m-form
:template="[ :template="[
'stNameFrst:小区名称', 'stNameFrst:小区名称',
'address:小区地址', 'address:地址',
'cmtName:所属居委会', 'cmtName:所属居委会',
'totUnits:总门牌幢数', 'totUnits:总门牌幢数',
'totHous:总户数', 'totHous:总户数',
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
label-width="1.4rem" label-width="1.4rem"
/> />
</m-card> </m-card>
<m-card title="案件详情"> <m-card title="快处详情">
<div class="sum"> <div class="sum">
<p>{{ caseInfo.buildingAddr }}</p> <p>{{ caseInfo.buildingAddr }}</p>
<span <span
...@@ -45,20 +45,27 @@ ...@@ -45,20 +45,27 @@
<b>{{ transType(caseInfo.category).text }}</b> <b>{{ transType(caseInfo.category).text }}</b>
</span> </span>
</div> </div>
<div v-for="item in details" :key="item.title" class="step"> <template v-if="details && details.length > 0">
<p class="title"> <div v-for="item in details" :key="item.title" class="step">
<img src="@/assets/images/dot.png" /> {{ item.title }} <p class="title">
</p> <img src="@/assets/images/dot.png" /> {{ item.title }}
<div class="content"> </p>
<p class="sub">{{ item.sub }}</p> <div class="content">
<p>{{ item.content || '无' }}</p> <p class="sub">{{ item.sub }}</p>
<template v-if="item.imgs && item.imgs.length > 0"> <p>{{ item.content }}</p>
<template v-for="(img, i) in item.imgs"> <template v-if="item.imgs && item.imgs.length > 0">
<img v-if="img" :key="i" :src="'data:image/png;base64,' + img" /> <template v-for="(img, i) in item.imgs">
<img
v-if="img"
:key="i"
:src="'data:image/png;base64,' + img"
/>
</template>
</template> </template>
</template> </div>
</div> </div>
</div> </template>
<m-empty v-else style="margin-top: 1rem" />
</m-card> </m-card>
</div> </div>
</template> </template>
...@@ -90,6 +97,12 @@ export default defineComponent({ ...@@ -90,6 +97,12 @@ export default defineComponent({
return {} return {}
}, },
}, },
detail: {
type: Object as PropType<{ [key: string]: any }[]>,
default: () => {
return []
},
},
}, },
setup(props) { setup(props) {
const communityData = computed(() => { const communityData = computed(() => {
...@@ -108,31 +121,75 @@ export default defineComponent({ ...@@ -108,31 +121,75 @@ export default defineComponent({
return { return {
...communityInfo, ...communityInfo,
address: caseInfo && caseInfo.address, address: caseInfo && caseInfo.buildingAddr,
range: range.filter((e) => e !== null).join(','), range: range.filter((e) => e !== null).join(','),
} }
}) })
const details = computed(() => { const details = computed(() => {
const { caseInfo } = props /**
if (!caseInfo) return [] * 待处置 pending(0)
const result = [ * 认定 identified(1)
{ * 自行整改 rectification(2)
title: '受理', * 联勤联动整治 regulation(3)
sub: `${caseInfo?.acceptTime} | ${caseInfo?.buildingAddr}`, * 已完结 over(9)
content: caseInfo?.description, */
imgs: [caseInfo?.alarmPic], const { detail = [] } = props
}, const pending = detail.find((item) => item.status === 'pending')
] const identified = detail.find((item) => item.status === 'identified')
if (caseInfo?.disposalStatus === 'over') { const rectification = detail.find(
(item) => item.status === 'rectification'
)
const regulation = detail.find((item) => item.status === 'regulation')
const over = detail.find((item) => item.status === 'over')
const result: any[] = []
pending &&
result.push({ result.push({
title: `整治 ${ title:
caseInfo.disposalOrg ? '· ' + caseInfo.disposalOrg : '' '待处置' +
}`, (pending?.disposalOrg ? ' · ' + pending?.disposalOrg : ''),
sub: caseInfo?.disposalTime, sub: pending?.disposalTime || '',
content: caseInfo?.disposalDescription, content: pending?.processDescription,
imgs: [caseInfo?.donePic], imgs: [pending?.processPic],
}) })
} identified &&
result.push({
title:
'认定' +
(identified?.disposalOrg ? ' · ' + identified?.disposalOrg : ''),
sub: identified?.disposalTime || '',
content: identified?.processDescription,
imgs: [identified?.processPic],
})
rectification &&
result.push({
title:
'自行整改' +
(rectification?.disposalOrg
? ' · ' + rectification?.disposalOrg
: ''),
sub: rectification?.disposalTime || '',
content: rectification?.processDescription,
imgs: [rectification?.processPic],
})
regulation &&
result.push({
title:
'联勤联动整治' +
(regulation?.disposalOrg ? ' · ' + regulation?.disposalOrg : ''),
sub: regulation?.disposalTime || '',
content: regulation?.processDescription,
imgs: [regulation?.processPic],
})
over &&
result.push({
title:
'已完结' + (over?.disposalOrg ? ' · ' + over?.disposalOrg : ''),
sub: over?.disposalTime || '',
content: over?.processDescription,
imgs: [over?.processPic],
})
return result return result
}) })
return { return {
......
...@@ -294,6 +294,7 @@ function onSelect(key: string, name: string) { ...@@ -294,6 +294,7 @@ function onSelect(key: string, name: string) {
url: api.GET_DISCOVER_LIST, url: api.GET_DISCOVER_LIST,
params: { params: {
category: key, category: key,
bigscreenCommunityName: curView.value.name,
pageSize: 9000, pageSize: 9000,
}, },
}) })
......
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