台账增加设备类型筛选

预警记录增加关键字筛选和检验报告查看
This commit is contained in:
hayu 2025-09-18 18:49:21 +08:00
parent 7c06447efa
commit 7cb1c8d975
2 changed files with 59 additions and 12 deletions

View File

@ -125,6 +125,18 @@
/>
</el-select>
</el-form-item>
<el-form-item label="机具类型" prop="jiJuType">
<el-select
v-model="queryParams.jiJuType"
placeholder="请选择机具类型"
clearable
style="width: 240px"
>
<el-option label="施工机具" :value="1" />
<el-option label="安全工器具" :value="2" />
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -316,7 +328,8 @@ export default {
subUnitName: null,
teamName: null,
typeName: null, //
typeModelName: null //
typeModelName: null, //
jiJuType: null // (1 2)
},
tipForm: {
departNum: 0, //

View File

@ -8,7 +8,7 @@
placeholder="请输入分公司"
clearable
@keyup.enter.native="handleQuery"
style="width: 240px"
style="width: 220px"
/>
</el-form-item>
@ -18,7 +18,7 @@
placeholder="请输入项目部"
clearable
@keyup.enter.native="handleQuery"
style="width: 240px"
style="width: 220px"
/>
</el-form-item>
@ -28,7 +28,7 @@
placeholder="请输入工程"
clearable
@keyup.enter.native="handleQuery"
style="width: 240px"
style="width: 220px"
/>
</el-form-item>
@ -38,7 +38,7 @@
placeholder="请输入分包单位"
clearable
@keyup.enter.native="handleQuery"
style="width: 240px"
style="width: 220px"
/>
</el-form-item>
@ -47,7 +47,7 @@
v-model="queryParams.status"
placeholder="请选择状态"
clearable
style="width: 240px"
style="width: 220px"
>
<el-option label="正常" value="0" />
<el-option label="1个月检测到期" value="2" />
@ -64,7 +64,7 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
style="width: 240px"
style="width: 220px"
></el-date-picker>
</el-form-item>
@ -74,7 +74,7 @@
placeholder="请输入班组名称"
clearable
@keyup.enter.native="handleQuery"
style="width: 240px"
style="width: 220px"
/>
</el-form-item>
@ -84,7 +84,17 @@
placeholder="请输入物资类型"
clearable
@keyup.enter.native="handleQuery"
style="width: 240px"
style="width: 220px"
/>
</el-form-item>
<el-form-item label="关键字" prop="keyWord">
<el-input
v-model="queryParams.keyWord"
placeholder="请输入关键字"
clearable
@keyup.enter.native="handleQuery"
style="width: 220px"
/>
</el-form-item>
@ -136,6 +146,17 @@
<span :class="getStatusClass(scope.row.status)">{{ getStatusText(scope.row.status) }}</span>
</template>
</el-table-column>
<el-table-column label="检验报告" align="center" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span
style="color:#409EFF;cursor:pointer;"
@click="openReport(scope.row)"
>
{{ scope.row.reportCode }}
</span>
</template>
</el-table-column>
</el-table>
@ -279,6 +300,19 @@ export default {
}
},
openReport(row) {
let reportUrl = row.reportUrl;
let pdfUrl = "";
if (/https?/i.test(reportUrl)) {
console.log("URL包含http/https");
pdfUrl = reportUrl;
} else {
console.log("URL不包含http/https");
pdfUrl = "http://sgwpdm.ah.sgcc.com.cn/iws/smw/filePath/" + reportUrl;
}
//
window.open(pdfUrl, "_blank");
},
}
}
</script>
@ -307,7 +341,7 @@ export default {
.stat-row {
margin-bottom: 10px;
.stat-item {
background: #f5f7fa;
padding: 8px 16px;
@ -316,6 +350,6 @@ export default {
font-size: 16px;
white-space: nowrap;
}
}
</style>
</style>