9/2 禅道问题

This commit is contained in:
Zy
2026-09-02 17:32:15 +08:00
parent de4bae3bc1
commit e8564269b0
45 changed files with 1036 additions and 927 deletions

View File

@@ -2,7 +2,7 @@
<div class="ResidentMainBox p-2 w-full h-full">
<PageHeader></PageHeader>
<div class="ResidentMainBody">
<el-row :span="24" :gutter="20">
<el-row :gutter="20" :span="24">
<el-col :span="16">
<!-- 车位信息 -->
<div class="mb-10">
@@ -41,7 +41,7 @@
<DictTag :options="com_parking_status" :value="parkingReviewInfo.parking.parkingStatus"></DictTag>
</div>
</div>
<div class="carInfo_item" v-if="parkingReviewInfo.parking.residentId">
<div v-if="parkingReviewInfo.parking.residentId" class="carInfo_item">
<div class="label">持有人:</div>
<div class="main">
<span>
@@ -59,11 +59,11 @@
</div>
</div>
<div class="CarInfoBox" style="margin-top: 20px">
<div class="carInfo_item" v-if="parkingReviewInfo.parking.contactName">
<div v-if="parkingReviewInfo.parking.contactName" class="carInfo_item">
<div class="label">非业主联系人:</div>
<div class="main">{{ parkingReviewInfo.parking.contactName }}</div>
</div>
<div class="carInfo_item" style="margin-top: 20px" v-if="parkingReviewInfo.parking.contactPhone">
<div v-if="parkingReviewInfo.parking.contactPhone" class="carInfo_item" style="margin-top: 20px">
<div class="label">联系电话:</div>
<div class="main">{{ parkingReviewInfo.parking.contactPhone }}</div>
</div>
@@ -75,14 +75,14 @@
</el-card>
</div>
<!-- 车辆信息 -->
<div class="mb-10" v-if="!showCar">
<div v-if="!showCar" class="mb-10">
<el-card>
<template #header>
<div class="card-header">
<span>车辆信息</span>
</div>
</template>
<div class="w-full h-full CarInfoBox" v-if="parkingReviewInfo.car">
<div v-if="parkingReviewInfo.car" class="w-full h-full CarInfoBox">
<el-row>
<el-col :span="8">
<div class="carInfo_item">
@@ -126,10 +126,10 @@
<el-image
v-for="(item, index) in parkingReviewInfo.car.carImageUrlList"
:key="index"
class="carInfoImage"
:src="item"
:initial-index="index"
:preview-src-list="parkingReviewInfo.car.carImageUrlList"
:src="item"
class="carInfoImage"
preview-teleported
></el-image>
</div>
@@ -137,7 +137,7 @@
</el-col>
</el-row>
</div>
<div class="w-full h-full CarInfoBox flex flex-center min-h-17rem" v-else>
<div v-else class="w-full h-full CarInfoBox flex flex-center min-h-17rem">
<span style="color: #999; font-weight: 500; font-size: larger; letter-spacing: 10px">暂无信息</span>
</div>
</el-card>
@@ -152,7 +152,7 @@
<div class="w-full h-full flex mt-2">
<div class="title">审批意见</div>
<div class="preivewBodybox flex-1 ml-5">
<el-input maxlength="200" show-word-limit v-model="form.propertyReviewFeedback" type="textarea" :rows="5"></el-input>
<el-input v-model="form.propertyReviewFeedback" :rows="5" maxlength="200" show-word-limit type="textarea"></el-input>
<div class="actions mt-5">
<el-button :disabled="parkingReviewInfo.parking.checkStatus === '1'" type="primary" @click="handlePreview(1)">审核通过</el-button>
<el-button :disabled="parkingReviewInfo.parking.checkStatus === '1'" type="danger" @click="handlePreview(2)"
@@ -166,7 +166,7 @@
</div>
</el-col>
<el-col :span="8">
<el-card style="position: relative" class="h-full">
<el-card class="h-full" style="position: relative">
<template #header>
<div class="asideCardHeader w-full h-full">
<div class="cardSubtitle">
@@ -175,34 +175,12 @@
</div>
</div>
</template>
<div class="w-full h-50%">
<el-steps space="200px" direction="vertical" :active="activeStop">
<el-step :description="active <= 0 ? '' : parkingReviewInfo.parkingReviewProcess.submitTime">
<template #title>
<span v-if="active === 0">未提交信息</span>
<span v-if="active >= 1">已提交信息</span>
</template>
</el-step>
<el-step :description="active <= 2 ? '' : parkingReviewInfo.parkingReviewProcess.propertyTime">
<template #title>
<span v-if="active <= 2">待审核</span>
<span v-if="active === 3">物业审核不通过</span>
<span v-if="active >= 4">物业审核通过</span>
</template>
</el-step>
<el-step :description="active <= 5 ? '' : parkingReviewInfo.parkingReviewProcess.certificationTime">
<template #title>
<span v-if="active <= 5">未认证</span>
<span v-if="active === 6">已认证</span>
</template>
</el-step>
<el-step>
<template #title>
<span v-if="active <= 5">审核未完成</span>
<span v-else>审核完成</span>
</template>
</el-step>
</el-steps>
<div class="w-full h-full">
<StepTimeline :steps="stepList">
<template #title="{ item }">{{ item.title }}</template>
<template #subtitle="{ item }">{{ item.subtitle }}</template>
<template #time="{ item }">{{ item.time }}</template>
</StepTimeline>
</div>
</el-card>
</el-col>
@@ -210,11 +188,12 @@
</div>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { ref } from 'vue';
import PageHeader from '@/components/Pageheader/index.vue';
import { getParkingReview, getParkingReviewInfo } from '@/api/system/parking';
import DictTag from '@/components/DictTag/index.vue';
import StepTimeline, { StepItem } from '@/components/StepTimeline/index.vue';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_parking_status } = toRefs<any>(proxy?.useDict('com_parking_status'));
@@ -373,6 +352,12 @@ function getInfo() {
}
getInfo();
const stepList = ref<StepItem[]>([
{ status: 'completed', title: '提交信息', subtitle: '', time: '', wrap: true },
{ status: 'pending', title: '物业审核', subtitle: '', time: '', wrap: true },
{ status: 'waiting', title: '认证通过', subtitle: '', time: '', wrap: true }
]);
// 处理审核进度
function handleActiveStaus(rows: parkingReviewProcess) {
if (!rows) {
@@ -389,6 +374,11 @@ function handleActiveStaus(rows: parkingReviewProcess) {
active.value = 1; // 提交信息
activeStop.value = 1;
stepList.value[0].status = 'completed';
stepList.value[0].subtitle = '';
stepList.value[0].time = rows.submitTime;
stepList.value[1].status = 'pending';
// 审核
if (rows.propertyStatus === ReviewStatus.awaitReview) {
active.value = 2; // 待审核
@@ -398,6 +388,10 @@ function handleActiveStaus(rows: parkingReviewProcess) {
active.value = 4; // 审核通过
activeStop.value = 2;
stepList.value[1].time = rows.propertyTime;
stepList.value[1].status = 'completed';
stepList.value[2].status = 'pending';
// 认证
if (rows.certificationStatus === certificationStatus.uncertification) {
active.value = 5; // 未认证
@@ -406,6 +400,10 @@ function handleActiveStaus(rows: parkingReviewProcess) {
} else if (rows.certificationStatus === certificationStatus.Certification) {
active.value = 6; // 已认证
activeStop.value = 4;
stepList.value[2].time = rows.certificationTime;
stepList.value[2].status = 'completed';
stepList.value[3].status = 'completed';
}
}
}
@@ -430,7 +428,7 @@ function handleBack() {
}
</script>
<style scoped lang="scss">
<style lang="scss" scoped>
.ResidentMainBox {
display: flex;
flex-direction: column;