|
|
|
|
@ -179,7 +179,7 @@
|
|
|
|
|
安全检查
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<xy-table :is-page="false" :height="300" :list="/\/land/g.test(this.$route.path) ? detail.id_asset_safety_inspections_land_id_relation : detail.id_asset_safety_inspections_house_id_relation" :table-item="inspectionTable" style="margin-top: 20px" size="mini" stripe ref="table1" :auths="[]" ></xy-table>
|
|
|
|
|
<xy-table :is-page="false" :height="300" :list="inspections" :table-item="inspectionTable" style="margin-top: 20px" size="mini" stripe ref="table1" :auths="[]" ></xy-table>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-card id="detail-contract">
|
|
|
|
|
@ -195,7 +195,7 @@
|
|
|
|
|
维修保养
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<xy-table :is-page="false" :height="300" :list="/\/land/g.test(this.$route.path) ? detail.id_asset_safety_keeps_land_id_relation : detail.id_asset_safety_keeps_house_id_relation" :table-item="keepTable" style="margin-top: 20px" size="mini" stripe ref="table1" :auths="[]" ></xy-table>
|
|
|
|
|
<xy-table :is-page="false" :height="300" :list="keeps" :table-item="keepTable" style="margin-top: 20px" size="mini" stripe ref="table1" :auths="[]" ></xy-table>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-card id="detail-files">
|
|
|
|
|
@ -288,7 +288,7 @@
|
|
|
|
|
<el-card v-show="isShowSearch" class="search-container">
|
|
|
|
|
<template #header>
|
|
|
|
|
<div style="display:flex;align-items: center;">
|
|
|
|
|
<p>搜索</p>
|
|
|
|
|
<p>搜索附件</p>
|
|
|
|
|
|
|
|
|
|
<i class="el-icon-close" style="margin-left: auto;" @click="isShowSearch = false"></i>
|
|
|
|
|
</div>
|
|
|
|
|
@ -304,13 +304,13 @@
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
|
|
<ul class="search-file-list">
|
|
|
|
|
<li v-for="(item, index) in searchFiles" :key="item.id">
|
|
|
|
|
<li v-for="(item, index) in myFiles" :key="item.id">
|
|
|
|
|
<div style="display: flex;justify-content: space-between;align-items: center;">
|
|
|
|
|
<a style="flex-basis: 50%;" :download="item.url">{{index+1}}.{{ item.original_name }}</a>
|
|
|
|
|
|
|
|
|
|
<p style="flex-basis: 25%;flex-shrink: 0;">
|
|
|
|
|
{{ item.land.name ? `[土地]${item.land.name}` : `[房产]${item.house.name}` }}
|
|
|
|
|
</p>
|
|
|
|
|
<!-- <p style="flex-basis: 25%;flex-shrink: 0;">-->
|
|
|
|
|
<!-- {{ item.land.name ? `[土地]${item.land.name}` : `[房产]${item.house.name}` }}-->
|
|
|
|
|
<!-- </p>-->
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<el-button
|
|
|
|
|
@ -365,6 +365,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
histories: [],
|
|
|
|
|
inspections: [],
|
|
|
|
|
keeps: [],
|
|
|
|
|
units: new Map([
|
|
|
|
|
["dengjimianji", "m²"],
|
|
|
|
|
["shijimianji", "m²"],
|
|
|
|
|
@ -483,6 +485,8 @@ export default {
|
|
|
|
|
searchKeyword: "",
|
|
|
|
|
searchFiles: [],
|
|
|
|
|
searchFileTotal: 0,
|
|
|
|
|
|
|
|
|
|
myFiles: [],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
@ -629,6 +633,10 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
this.detail = detail;
|
|
|
|
|
this.init();
|
|
|
|
|
|
|
|
|
|
this.myFiles.push(...detail.id_asset_file_files_land_id_relation);
|
|
|
|
|
this.myFiles.push(...detail.id_asset_picture_files_land_id_relation);
|
|
|
|
|
this.myFiles.push(...detail.id_assets_atlas_files_land_id_relation);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -647,6 +655,50 @@ export default {
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
this.histories = res.data;
|
|
|
|
|
|
|
|
|
|
res.data.forEach(i => {
|
|
|
|
|
this.myFiles.push(...i.tupian_detail)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getKeeps () {
|
|
|
|
|
const res = await index({
|
|
|
|
|
table_name: 'asset_safety_keeps',
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999,
|
|
|
|
|
filter:[
|
|
|
|
|
{
|
|
|
|
|
key: /\/land/g.test(this.$route.path) ? 'land_id' : 'house_id',
|
|
|
|
|
op: 'eq',
|
|
|
|
|
value: this.$route.params.id
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
this.keeps = res.data;
|
|
|
|
|
|
|
|
|
|
res.data.forEach(i => {
|
|
|
|
|
this.myFiles.push(...i.fujian_detail)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getInspections () {
|
|
|
|
|
const res = await index({
|
|
|
|
|
table_name: 'asset_safety_inspections',
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999,
|
|
|
|
|
filter:[
|
|
|
|
|
{
|
|
|
|
|
key: /\/land/g.test(this.$route.path) ? 'land_id' : 'house_id',
|
|
|
|
|
op: 'eq',
|
|
|
|
|
value: this.$route.params.id
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
this.inspections = res.data;
|
|
|
|
|
|
|
|
|
|
res.data.forEach(i => {
|
|
|
|
|
this.myFiles.push(...i.fujian_detail)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
print () {
|
|
|
|
|
@ -749,6 +801,8 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
this.getFields().then(res => {
|
|
|
|
|
this.getHistories()
|
|
|
|
|
this.getKeeps()
|
|
|
|
|
this.getInspections()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|