9/2 禅道问题
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<el-row>
|
||||
<el-col v-if="type === 'private'" :span="11">
|
||||
<el-form-item label="关联房屋" prop="houseId">
|
||||
<el-cascader v-model="form.houseId" :options="treedata" @change="handleChangeHouse" />
|
||||
<el-cascader v-model="form.houseId" :options="treeData" @change="handleChangeHouse" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col v-if="type === 'private'" :span="2"></el-col>
|
||||
@@ -126,7 +126,7 @@ import { Plus } from '@element-plus/icons-vue';
|
||||
import { RepairProjectVO } from '@/api/system/RepairProject/type';
|
||||
|
||||
const houseStore = useHouseStore();
|
||||
const { treedata } = storeToRefs(houseStore);
|
||||
const treeData = ref([]);
|
||||
const uploadUrl = import.meta.env.VITE_APP_BASE_API + '/repair/uploadImages';
|
||||
|
||||
const router = useRouter();
|
||||
@@ -176,6 +176,9 @@ function init() {
|
||||
const obj = {
|
||||
projectType: type.value === 'private' ? '1' : '0'
|
||||
};
|
||||
houseStore.getCurrentVilageTreeHouse().then((res) => {
|
||||
treeData.value = res;
|
||||
});
|
||||
gettreelistRepairProject(obj).then((res) => {
|
||||
maintenanceItemTreeData.value = handleTreeDisable(res.data);
|
||||
if (route.query.id) {
|
||||
@@ -256,9 +259,11 @@ function handleChange(pop) {
|
||||
holderInfo.value = pop;
|
||||
form.value.residentId = '';
|
||||
form.value.residentName = '';
|
||||
form.value.phone = null;
|
||||
if (pop !== null) {
|
||||
form.value.residentId = holderInfo.value.id;
|
||||
form.value.residentName = holderInfo.value.name;
|
||||
form.value.phone = holderInfo.value.phone;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="ResidentMainBox p-2 w-full">
|
||||
<PageHeader title="报修详情"></PageHeader>
|
||||
<div class="ResidentMainBody">
|
||||
<el-row :span="24" :gutter="20">
|
||||
<el-row :gutter="20" :span="24">
|
||||
<el-col :span="16">
|
||||
<!-- 车位信息 -->
|
||||
<div class="mb-10">
|
||||
@@ -69,20 +69,20 @@
|
||||
<el-col :span="24">
|
||||
<div class="carInfo_Item">
|
||||
<div class="label">附件:</div>
|
||||
<div class="main fileImagebox" v-if="form.problemImageUrlList.length > 0">
|
||||
<div v-if="form.problemImageUrlList.length > 0" class="main fileImagebox">
|
||||
<el-image
|
||||
:preview-teleported="true"
|
||||
:zoom-rate="1.2"
|
||||
v-for="(item, index) in form.problemImageUrlList"
|
||||
:key="index"
|
||||
:initial-index="index"
|
||||
:max-scale="7"
|
||||
:min-scale="0.2"
|
||||
:preview-src-list="form.problemImageUrlList"
|
||||
show-progress
|
||||
v-for="(item, index) in form.problemImageUrlList"
|
||||
:initial-index="index"
|
||||
:key="index"
|
||||
:preview-teleported="true"
|
||||
:src="item"
|
||||
lazy
|
||||
:zoom-rate="1.2"
|
||||
class="carInfoImage"
|
||||
lazy
|
||||
show-progress
|
||||
></el-image>
|
||||
</div>
|
||||
</div>
|
||||
@@ -100,10 +100,10 @@
|
||||
<div class="repair w-full h-full flex flex-items-start mt-2">
|
||||
<div class="title">维修师傅</div>
|
||||
<div class="preivewBodybox flex-1 ml-5">
|
||||
<repairUser :is-multiple="false" :username="form.repairName" :userid="form.repairUserId" @change="handleChange"> </repairUser>
|
||||
<repairUser :is-multiple="false" :userid="form.repairUserId" :username="form.repairName" @change="handleChange"> </repairUser>
|
||||
<div class="actions mt-5">
|
||||
<el-button v-if="form.problemStatus === '0'" @click="handleSend" type="primary">确定派单</el-button>
|
||||
<el-button v-if="form.problemStatus === '1'" @click="handleChangeRepairUser" type="primary">变更人员</el-button>
|
||||
<el-button v-if="form.problemStatus === '0'" type="primary" @click="handleSend">确定派单</el-button>
|
||||
<el-button v-if="form.problemStatus === '1'" type="primary" @click="handleChangeRepairUser">变更人员</el-button>
|
||||
<el-button @click="backRouter">返回</el-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -133,7 +133,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import StepTimeline, { StepItem } from '@/components/StepTimeline/index.vue';
|
||||
import repairUser from '@/components/Holder/repairUser.vue';
|
||||
@@ -222,7 +222,7 @@ async function init() {
|
||||
});
|
||||
}
|
||||
|
||||
// 处理审核╬╬
|
||||
// 处理审核
|
||||
function handleReview() {
|
||||
if (reviewInfo.value.submitStatus === '1') {
|
||||
// 提交完成
|
||||
@@ -315,7 +315,7 @@ function handleEdit() {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
.ResidentMainBox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in New Issue
Block a user