|
|
|
|
@ -80,19 +80,21 @@
|
|
|
|
|
detail.id_asset_picture_files_house_id_relation.length > 0)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
v-for="item in /\/land/g.test($route.path) ? detail.id_asset_picture_files_land_id_relation : detail.id_asset_picture_files_house_id_relation"
|
|
|
|
|
>
|
|
|
|
|
<el-image
|
|
|
|
|
style="width: 100%; height: 100%;max-width: 200px;"
|
|
|
|
|
:src="item.url"
|
|
|
|
|
:preview-src-list="
|
|
|
|
|
<div style="display: flex;flex-wrap: wrap;">
|
|
|
|
|
<div
|
|
|
|
|
v-for="item in /\/land/g.test($route.path) ? detail.id_asset_picture_files_land_id_relation : detail.id_asset_picture_files_house_id_relation"
|
|
|
|
|
>
|
|
|
|
|
<el-image
|
|
|
|
|
style="width: 100%; max-width: 200px;margin-right: 10px;"
|
|
|
|
|
:src="item.url"
|
|
|
|
|
:preview-src-list="
|
|
|
|
|
(/\/land/g.test($route.path) ? detail.id_asset_picture_files_land_id_relation : detail.id_asset_picture_files_house_id_relation).map(
|
|
|
|
|
(i) => i.url
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
fit="contain"
|
|
|
|
|
></el-image>
|
|
|
|
|
fit="contain"
|
|
|
|
|
></el-image>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
@ -137,17 +139,17 @@
|
|
|
|
|
</template>
|
|
|
|
|
<div style="display: flex;flex-wrap: wrap;padding-top: 10px;">
|
|
|
|
|
<div style="display: flex;flex-direction: column; align-items: center;margin-right: 16px;cursor: pointer;"
|
|
|
|
|
v-for="(img,index) in item.id_his_tupian_files_asset_history_id_relation"
|
|
|
|
|
:key="img.id"
|
|
|
|
|
@click="open(img.url)">
|
|
|
|
|
v-for="(img,index) in item.tupian_detail"
|
|
|
|
|
:key="img.id">
|
|
|
|
|
<!-- <el-image-->
|
|
|
|
|
<!-- style="height: 160px"-->
|
|
|
|
|
<!-- :src="img.url"-->
|
|
|
|
|
<!-- fit="contain"-->
|
|
|
|
|
<!-- :preview-src-list="item.id_his_tupian_files_asset_history_id_relation.map(i => i.url)"-->
|
|
|
|
|
<!-- ></el-image>-->
|
|
|
|
|
<i class="el-icon-document" style="font-size: 24px;"></i>
|
|
|
|
|
<div style="color: #3477c6;padding: 10px 0;">{{ ++index }}. <span style="font-weight: 600;">{{ img.original_name }}</span></div>
|
|
|
|
|
<i class="el-icon-document" style="font-size: 24px;" @click="open(img.url)"></i>
|
|
|
|
|
<div style="color: #3477c6;padding: 10px 0;" @click="open(img.url)">{{ ++index }}. <span style="font-weight: 600;">{{ img.original_name }}</span></div>
|
|
|
|
|
<div style="color: #3477c6" @click="down(img)"><i class="el-icon-download"></i>点击下载</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
@ -176,6 +178,8 @@
|
|
|
|
|
<div class="el-descriptions__header el-descriptions__title">
|
|
|
|
|
安全检查
|
|
|
|
|
</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>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-card id="detail-contract">
|
|
|
|
|
@ -190,6 +194,8 @@
|
|
|
|
|
<div class="el-descriptions__header el-descriptions__title">
|
|
|
|
|
维修保养
|
|
|
|
|
</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>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-card id="detail-files">
|
|
|
|
|
@ -293,14 +299,32 @@
|
|
|
|
|
<Button size="small" type="success" ghost>资产</Button>
|
|
|
|
|
<Button size="small" type="info" ghost>文件</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input size="mini" style="margin-top: 4px;" placeholder="请输入名称" clearable>
|
|
|
|
|
<el-button type="primary" slot="append" icon="el-icon-search"></el-button>
|
|
|
|
|
<el-input v-model="searchKeyword" size="mini" style="margin-top: 4px;" placeholder="请输入名称" clearable>
|
|
|
|
|
<el-button type="primary" slot="append" icon="el-icon-search" @click="searchFile"></el-button>
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
|
<li></li>
|
|
|
|
|
<li></li>
|
|
|
|
|
<li></li>
|
|
|
|
|
<ul class="search-file-list">
|
|
|
|
|
<li v-for="(item, index) in searchFiles" :key="item.id">
|
|
|
|
|
<div style="display: flex;justify-content: space-between;align-items: center;">
|
|
|
|
|
<a :download="item.url">{{index+1}}.{{ item.original_name }}</a>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
circle
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="down(item)"
|
|
|
|
|
></el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
circle
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="open(item.url)"
|
|
|
|
|
></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</template>
|
|
|
|
|
</el-card>
|
|
|
|
|
@ -316,6 +340,7 @@ import { show as formShow } from "@/api/system/customForm";
|
|
|
|
|
import { getparameter } from "@/api/system/dictionary";
|
|
|
|
|
import { listdept } from "@/api/system/department";
|
|
|
|
|
import { download } from "@/utils/downloadRequest";
|
|
|
|
|
import { getFiles } from "@/api/common";
|
|
|
|
|
export default {
|
|
|
|
|
name: "detail",
|
|
|
|
|
data() {
|
|
|
|
|
@ -343,6 +368,47 @@ export default {
|
|
|
|
|
["muqianjunjia", "元"],
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
|
|
inspectionTable: [
|
|
|
|
|
{
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
type: 'index',
|
|
|
|
|
width: 46,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "检查记录",
|
|
|
|
|
prop: "jianchajilu",
|
|
|
|
|
minWidth: 200,
|
|
|
|
|
align: "left"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "日期",
|
|
|
|
|
prop: "riqi",
|
|
|
|
|
width: 160
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
keepTable: [
|
|
|
|
|
{
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
type: 'index',
|
|
|
|
|
width: 46,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "保养内容",
|
|
|
|
|
prop: "baoyangneirong",
|
|
|
|
|
minWidth: 200,
|
|
|
|
|
align: "left"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "保养日期",
|
|
|
|
|
prop: "baoyangriqi",
|
|
|
|
|
width: 160
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "经办人",
|
|
|
|
|
prop: "jingbanren",
|
|
|
|
|
width: 140
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
leaseTable: [
|
|
|
|
|
{
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
@ -406,10 +472,25 @@ export default {
|
|
|
|
|
prop: 'weidaoweiyuanyin',
|
|
|
|
|
minWidth: 140
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
searchKeyword: "",
|
|
|
|
|
searchFiles: [],
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async searchFile () {
|
|
|
|
|
try {
|
|
|
|
|
const res = await getFiles({ keyword: this.searchKeyword });
|
|
|
|
|
this.searchFiles = res.list;
|
|
|
|
|
console.log(this.searchFiles)
|
|
|
|
|
} catch (err) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
open(url) {
|
|
|
|
|
this.codeUri = `${process.env.VUE_APP_PREVIEW}?url=${encodeURIComponent(
|
|
|
|
|
new Buffer(url).toString("base64")
|
|
|
|
|
@ -740,13 +821,31 @@ a:hover {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.search-container {
|
|
|
|
|
min-width: 300px;
|
|
|
|
|
min-width: 460px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
|
|
|
|
z-index: 4000;
|
|
|
|
|
position: fixed;
|
|
|
|
|
right: 100px;
|
|
|
|
|
bottom: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-file-list {
|
|
|
|
|
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
li {
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
list-style: none;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
padding: 6px 10px;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: $primaryColor;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
.map-marker {
|
|
|
|
|
|