|
@@ -2,22 +2,22 @@
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
<!--<el-form-item label="内容表id" prop="subId">-->
|
|
|
- <!--<el-input-->
|
|
|
- <!--v-model="queryParams.subId"-->
|
|
|
- <!--placeholder="请输入内容表id"-->
|
|
|
- <!--clearable-->
|
|
|
- <!--size="small"-->
|
|
|
- <!--@keyup.enter.native="handleQuery"-->
|
|
|
- <!--/>-->
|
|
|
+ <!--<el-input-->
|
|
|
+ <!--v-model="queryParams.subId"-->
|
|
|
+ <!--placeholder="请输入内容表id"-->
|
|
|
+ <!--clearable-->
|
|
|
+ <!--size="small"-->
|
|
|
+ <!--@keyup.enter.native="handleQuery"-->
|
|
|
+ <!--/>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="审批id" prop="approveId">-->
|
|
|
- <!--<el-input-->
|
|
|
- <!--v-model="queryParams.approveId"-->
|
|
|
- <!--placeholder="请输入审批id"-->
|
|
|
- <!--clearable-->
|
|
|
- <!--size="small"-->
|
|
|
- <!--@keyup.enter.native="handleQuery"-->
|
|
|
- <!--/>-->
|
|
|
+ <!--<el-input-->
|
|
|
+ <!--v-model="queryParams.approveId"-->
|
|
|
+ <!--placeholder="请输入审批id"-->
|
|
|
+ <!--clearable-->
|
|
|
+ <!--size="small"-->
|
|
|
+ <!--@keyup.enter.native="handleQuery"-->
|
|
|
+ <!--/>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<el-form-item label="所在区域" prop="region">
|
|
|
<el-input
|
|
@@ -57,7 +57,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="支架形式" prop="supportType">
|
|
|
<el-select v-model="queryParams.supportType" placeholder="请选择支架形式" clearable size="small">
|
|
|
- <el-option label="请选择字典生成" value="" />
|
|
|
+ <el-option label="请选择字典生成" value=""/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="管部" prop="framePipe">
|
|
@@ -134,54 +134,54 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="确认时间" prop="confirmationDate">
|
|
|
<el-date-picker clearable size="small" style="width: 200px"
|
|
|
- v-model="queryParams.confirmationDate"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择确认时间">
|
|
|
+ v-model="queryParams.confirmationDate"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择确认时间">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<!--<el-form-item label="创建人" prop="createrCode">-->
|
|
|
- <!--<el-input-->
|
|
|
- <!--v-model="queryParams.createrCode"-->
|
|
|
- <!--placeholder="请输入创建人"-->
|
|
|
- <!--clearable-->
|
|
|
- <!--size="small"-->
|
|
|
- <!--@keyup.enter.native="handleQuery"-->
|
|
|
- <!--/>-->
|
|
|
+ <!--<el-input-->
|
|
|
+ <!--v-model="queryParams.createrCode"-->
|
|
|
+ <!--placeholder="请输入创建人"-->
|
|
|
+ <!--clearable-->
|
|
|
+ <!--size="small"-->
|
|
|
+ <!--@keyup.enter.native="handleQuery"-->
|
|
|
+ <!--/>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="创建时间" prop="createdate">-->
|
|
|
- <!--<el-date-picker clearable size="small" style="width: 200px"-->
|
|
|
- <!--v-model="queryParams.createdate"-->
|
|
|
- <!--type="date"-->
|
|
|
- <!--value-format="yyyy-MM-dd"-->
|
|
|
- <!--placeholder="选择创建时间">-->
|
|
|
- <!--</el-date-picker>-->
|
|
|
+ <!--<el-date-picker clearable size="small" style="width: 200px"-->
|
|
|
+ <!--v-model="queryParams.createdate"-->
|
|
|
+ <!--type="date"-->
|
|
|
+ <!--value-format="yyyy-MM-dd"-->
|
|
|
+ <!--placeholder="选择创建时间">-->
|
|
|
+ <!--</el-date-picker>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="修改人" prop="updaterCode">-->
|
|
|
- <!--<el-input-->
|
|
|
- <!--v-model="queryParams.updaterCode"-->
|
|
|
- <!--placeholder="请输入修改人"-->
|
|
|
- <!--clearable-->
|
|
|
- <!--size="small"-->
|
|
|
- <!--@keyup.enter.native="handleQuery"-->
|
|
|
- <!--/>-->
|
|
|
+ <!--<el-input-->
|
|
|
+ <!--v-model="queryParams.updaterCode"-->
|
|
|
+ <!--placeholder="请输入修改人"-->
|
|
|
+ <!--clearable-->
|
|
|
+ <!--size="small"-->
|
|
|
+ <!--@keyup.enter.native="handleQuery"-->
|
|
|
+ <!--/>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="修改时间" prop="updatedate">-->
|
|
|
- <!--<el-date-picker clearable size="small" style="width: 200px"-->
|
|
|
- <!--v-model="queryParams.updatedate"-->
|
|
|
- <!--type="date"-->
|
|
|
- <!--value-format="yyyy-MM-dd"-->
|
|
|
- <!--placeholder="选择修改时间">-->
|
|
|
- <!--</el-date-picker>-->
|
|
|
+ <!--<el-date-picker clearable size="small" style="width: 200px"-->
|
|
|
+ <!--v-model="queryParams.updatedate"-->
|
|
|
+ <!--type="date"-->
|
|
|
+ <!--value-format="yyyy-MM-dd"-->
|
|
|
+ <!--placeholder="选择修改时间">-->
|
|
|
+ <!--</el-date-picker>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="部门编号" prop="deptId">-->
|
|
|
- <!--<el-input-->
|
|
|
- <!--v-model="queryParams.deptId"-->
|
|
|
- <!--placeholder="请输入部门编号"-->
|
|
|
- <!--clearable-->
|
|
|
- <!--size="small"-->
|
|
|
- <!--@keyup.enter.native="handleQuery"-->
|
|
|
- <!--/>-->
|
|
|
+ <!--<el-input-->
|
|
|
+ <!--v-model="queryParams.deptId"-->
|
|
|
+ <!--placeholder="请输入部门编号"-->
|
|
|
+ <!--clearable-->
|
|
|
+ <!--size="small"-->
|
|
|
+ <!--@keyup.enter.native="handleQuery"-->
|
|
|
+ <!--/>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<el-form-item label="备注" prop="remarks">
|
|
|
<el-input
|
|
@@ -207,7 +207,8 @@
|
|
|
@click="handleAdd"
|
|
|
v-hasPermi="['pssr:frame:add']"
|
|
|
v-if="isApprove==0"
|
|
|
- >新增</el-button>
|
|
|
+ >新增
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -218,7 +219,8 @@
|
|
|
@click="handleUpdate"
|
|
|
v-hasPermi="['pssr:frame:edit']"
|
|
|
v-if="isApprove==0"
|
|
|
- >修改</el-button>
|
|
|
+ >修改
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -229,18 +231,20 @@
|
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['pssr:frame:remove']"
|
|
|
v-if="isApprove==0"
|
|
|
- >删除</el-button>
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ icon="el-icon-upload2"
|
|
|
+ size="mini"
|
|
|
+ @click="handleImport"
|
|
|
+ v-hasPermi="['pssr:frame:edit']"
|
|
|
+ v-if="isApprove==0"
|
|
|
+ >导入
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- icon="el-icon-upload2"
|
|
|
- size="mini"
|
|
|
- @click="handleImport"
|
|
|
- v-hasPermi="['pssr:frame:edit']"
|
|
|
- v-if="isApprove==0"
|
|
|
- >导入</el-button>
|
|
|
- </el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="warning"
|
|
@@ -249,7 +253,8 @@
|
|
|
@click="handleExport"
|
|
|
v-hasPermi="['pssr:frame:export']"
|
|
|
v-if="isApprove==0"
|
|
|
- >导出</el-button>
|
|
|
+ >导出
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -285,16 +290,19 @@
|
|
|
>驳回
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
<div style="width: 100%;text-align: center;margin-bottom: 15px">
|
|
|
- <H2>弹簧支(吊)架检查维护记录</H2>
|
|
|
+ <H2>弹簧支(吊)架检查维护记录</H2><br>
|
|
|
+ <span>1.参照检查记录中的检查标准对现场弹簧支吊架各部件进行检查,如没有发现问题和异常请填写“完好”<br>
|
|
|
+2.如发现问题和异常,请填写“问题描述”,并在“处理结果”填写完成时间和处理措施描述。 </span>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
- <el-table v-loading="loading" :data="frameList" @selection-change="handleSelectionChange" :height="clientHeight" border>
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table v-loading="loading" :data="frameList" @selection-change="handleSelectionChange" :height="clientHeight"
|
|
|
+ border>
|
|
|
+ <el-table-column type="selection" width="55" align="center"/>
|
|
|
<!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
|
|
|
<!--<el-table-column label="内容表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
|
|
|
<!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
|
|
@@ -306,54 +314,37 @@
|
|
|
<el-tag v-if="scope.row.approveStatus==2" type="success">已确认2</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="所在区域" align="center" prop="region" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="支架编号" align="center" prop="bracketNumber" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="管线号" align="center" prop="pipelineNumber" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="设备位号" align="center" prop="devNo" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="支架形式" align="center" prop="supportType" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="管部" align="center" prop="framePipe" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="根部" align="center" prop="frameRoot" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="功能件" align="center" prop="functionalPart" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="连接件" align="center" prop="connector" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="处理结果" align="center" prop="processingResult" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="确认人1" align="center" prop="confirm1" :show-overflow-tooltip="true"
|
|
|
- width="150">
|
|
|
+ <el-table-column label="所在区域" align="center" prop="region" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="支架编号" align="center" prop="bracketNumber" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="管线号" align="center" prop="pipelineNumber" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="设备位号" align="center" prop="devNo" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="支架形式" align="center" prop="supportType" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="检查内容及标准" align="center">
|
|
|
+ <el-table-column label="管部" align="center" prop="framePipe" :show-overflow-tooltip="true" width="180" :render-header="renderFramePipe"/>
|
|
|
+ <el-table-column label="根部" align="center" prop="frameRoot" :show-overflow-tooltip="true" width="180" :render-header="renderFrameRoot"/>
|
|
|
+ <el-table-column label="功能件" align="center" prop="functionalPart" :show-overflow-tooltip="true" width="180" :render-header="renderFunctionalPart"/>
|
|
|
+ <el-table-column width="180" label="连接件" align="center" prop="connector" :show-overflow-tooltip="true" :render-header="renderConnector"/>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="处理结果" align="center" prop="processingResult" :show-overflow-tooltip="true"
|
|
|
+ width="180"/>
|
|
|
+ <el-table-column label="确认人" align="center" prop="confirm1" :show-overflow-tooltip="true" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ userFormat(scope.row.confirm1) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="确认人2" align="center" prop="confirm2" :show-overflow-tooltip="true"
|
|
|
- width="150">
|
|
|
+ <el-table-column label="检查人" align="center" prop="confirm2" :show-overflow-tooltip="true" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ userFormat(scope.row.confirm2) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="检查人" align="center" prop="examiner" :show-overflow-tooltip="true"
|
|
|
- width="150">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ userFormat(scope.row.examiner) }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="确认时间" align="center" prop="confirmationDate" width="100">
|
|
|
+ <el-table-column label="确认时间" align="center" prop="confirmationDate" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.confirmationDate, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!--<el-table-column label="创建人" align="center" prop="createrCode" :show-overflow-tooltip="true"/>-->
|
|
|
- <!--<el-table-column label="创建时间" align="center" prop="createdate" width="100">-->
|
|
|
- <!--<template slot-scope="scope">-->
|
|
|
- <!--<span>{{ parseTime(scope.row.createdate, '{y}-{m}-{d}') }}</span>-->
|
|
|
- <!--</template>-->
|
|
|
- <!--</el-table-column>-->
|
|
|
- <!--<el-table-column label="修改人" align="center" prop="updaterCode" :show-overflow-tooltip="true"/>-->
|
|
|
- <!--<el-table-column label="修改时间" align="center" prop="updatedate" width="100">-->
|
|
|
- <!--<template slot-scope="scope">-->
|
|
|
- <!--<span>{{ parseTime(scope.row.updatedate, '{y}-{m}-{d}') }}</span>-->
|
|
|
- <!--</template>-->
|
|
|
- <!--</el-table-column>-->
|
|
|
- <!--<el-table-column label="部门编号" align="center" prop="deptId" :show-overflow-tooltip="true"/>-->
|
|
|
- <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
|
|
|
+ <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width"
|
|
|
+ v-if="isApprove==0">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -361,14 +352,16 @@
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['pssr:frame:edit']"
|
|
|
- >修改</el-button>
|
|
|
+ >修改
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['pssr:frame:remove']"
|
|
|
- >删除</el-button>
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -385,51 +378,51 @@
|
|
|
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
<!--<el-form-item label="内容表id" prop="subId">-->
|
|
|
- <!--<el-input v-model="form.subId" placeholder="请输入内容表id" />-->
|
|
|
+ <!--<el-input v-model="form.subId" placeholder="请输入内容表id" />-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="审批id" prop="approveId">-->
|
|
|
- <!--<el-input v-model="form.approveId" placeholder="请输入审批id" />-->
|
|
|
+ <!--<el-input v-model="form.approveId" placeholder="请输入审批id" />-->
|
|
|
<!--</el-form-item>-->
|
|
|
<el-form-item label="所在区域" prop="region">
|
|
|
- <el-input v-model="form.region" placeholder="请输入所在区域" />
|
|
|
+ <el-input v-model="form.region" placeholder="请输入所在区域"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="支架编号" prop="bracketNumber">
|
|
|
- <el-input v-model="form.bracketNumber" placeholder="请输入支架编号" />
|
|
|
+ <el-input v-model="form.bracketNumber" placeholder="请输入支架编号"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="管线号" prop="pipelineNumber">
|
|
|
- <el-input v-model="form.pipelineNumber" placeholder="请输入管线号" />
|
|
|
+ <el-input v-model="form.pipelineNumber" placeholder="请输入管线号"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="设备位号" prop="devNo">
|
|
|
- <el-input v-model="form.devNo" placeholder="请输入设备位号" />
|
|
|
+ <el-input v-model="form.devNo" placeholder="请输入设备位号"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="支架形式" prop="supportType">
|
|
|
- <el-input v-model="form.supportType" placeholder="请输入支架形式" />
|
|
|
+ <el-input v-model="form.supportType" placeholder="请输入支架形式"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="管部" prop="framePipe">
|
|
|
- <el-input v-model="form.framePipe" placeholder="请输入管部" />
|
|
|
+ <el-input v-model="form.framePipe" placeholder="请输入管部"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="根部" prop="frameRoot">
|
|
|
- <el-input v-model="form.frameRoot" placeholder="请输入根部" />
|
|
|
+ <el-input v-model="form.frameRoot" placeholder="请输入根部"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="功能件" prop="functionalPart">
|
|
|
- <el-input v-model="form.functionalPart" placeholder="请输入功能件" />
|
|
|
+ <el-input v-model="form.functionalPart" placeholder="请输入功能件"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="连接件" prop="connector">
|
|
|
- <el-input v-model="form.connector" placeholder="请输入连接件" />
|
|
|
+ <el-input v-model="form.connector" placeholder="请输入连接件"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="处理结果" prop="processingResult">
|
|
|
- <el-input v-model="form.processingResult" placeholder="请输入处理结果" />
|
|
|
+ <el-input v-model="form.processingResult" placeholder="请输入处理结果"/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="确认人1" prop="confirm1">
|
|
|
+ <el-form-item label="检查人" prop="confirm1">
|
|
|
<el-select v-model="form.confirm1" clearable filterable style="width: 100%;"
|
|
|
- placeholder="请选择确认人1">
|
|
|
+ placeholder="请选择检查人">
|
|
|
<el-option v-for="user in userOptions"
|
|
|
:label="user.nickName"
|
|
|
:value="user.userId+''"
|
|
|
:key="user.userId"/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="确认人2" prop="confirm2">
|
|
|
+ <el-form-item label="确认人" prop="confirm2">
|
|
|
<el-select v-model="form.confirm2" clearable filterable style="width: 100%;"
|
|
|
placeholder="请选择确认人2">
|
|
|
<el-option v-for="user in userOptions"
|
|
@@ -438,109 +431,112 @@
|
|
|
:key="user.userId"/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="检查人" prop="examiner">
|
|
|
- <el-select v-model="form.examiner" clearable filterable style="width: 100%;"
|
|
|
- placeholder="请选择检查人">
|
|
|
- <el-option v-for="user in userOptions"
|
|
|
- :label="user.nickName"
|
|
|
- :value="user.userId+''"
|
|
|
- :key="user.userId"/>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
<el-form-item label="确认时间" prop="confirmationDate">
|
|
|
<el-date-picker clearable size="small" style="width: 200px"
|
|
|
- v-model="form.confirmationDate"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择确认时间">
|
|
|
+ v-model="form.confirmationDate"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择确认时间">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<!--<el-form-item label="删除状态" prop="delFlag">-->
|
|
|
- <!--<el-input v-model="form.delFlag" placeholder="请输入删除状态" />-->
|
|
|
+ <!--<el-input v-model="form.delFlag" placeholder="请输入删除状态" />-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="创建人" prop="createrCode">-->
|
|
|
- <!--<el-input v-model="form.createrCode" placeholder="请输入创建人" />-->
|
|
|
+ <!--<el-input v-model="form.createrCode" placeholder="请输入创建人" />-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="创建时间" prop="createdate">-->
|
|
|
- <!--<el-date-picker clearable size="small" style="width: 200px"-->
|
|
|
- <!--v-model="form.createdate"-->
|
|
|
- <!--type="date"-->
|
|
|
- <!--value-format="yyyy-MM-dd"-->
|
|
|
- <!--placeholder="选择创建时间">-->
|
|
|
- <!--</el-date-picker>-->
|
|
|
+ <!--<el-date-picker clearable size="small" style="width: 200px"-->
|
|
|
+ <!--v-model="form.createdate"-->
|
|
|
+ <!--type="date"-->
|
|
|
+ <!--value-format="yyyy-MM-dd"-->
|
|
|
+ <!--placeholder="选择创建时间">-->
|
|
|
+ <!--</el-date-picker>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="修改人" prop="updaterCode">-->
|
|
|
- <!--<el-input v-model="form.updaterCode" placeholder="请输入修改人" />-->
|
|
|
+ <!--<el-input v-model="form.updaterCode" placeholder="请输入修改人" />-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="修改时间" prop="updatedate">-->
|
|
|
- <!--<el-date-picker clearable size="small" style="width: 200px"-->
|
|
|
- <!--v-model="form.updatedate"-->
|
|
|
- <!--type="date"-->
|
|
|
- <!--value-format="yyyy-MM-dd"-->
|
|
|
- <!--placeholder="选择修改时间">-->
|
|
|
- <!--</el-date-picker>-->
|
|
|
+ <!--<el-date-picker clearable size="small" style="width: 200px"-->
|
|
|
+ <!--v-model="form.updatedate"-->
|
|
|
+ <!--type="date"-->
|
|
|
+ <!--value-format="yyyy-MM-dd"-->
|
|
|
+ <!--placeholder="选择修改时间">-->
|
|
|
+ <!--</el-date-picker>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<!--<el-form-item label="部门编号" prop="deptId">-->
|
|
|
- <!--<el-input v-model="form.deptId" placeholder="请输入部门编号" />-->
|
|
|
+ <!--<el-input v-model="form.deptId" placeholder="请输入部门编号" />-->
|
|
|
<!--</el-form-item>-->
|
|
|
<el-form-item label="备注" prop="remarks">
|
|
|
- <el-input v-model="form.remarks" placeholder="请输入备注" />
|
|
|
+ <el-input v-model="form.remarks" placeholder="请输入备注"/>
|
|
|
</el-form-item>
|
|
|
- <!--<el-form-item label="归属部门" prop="deptId">-->
|
|
|
- <!--<treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" />-->
|
|
|
- <!--</el-form-item>-->
|
|
|
+ <!--<el-form-item label="归属部门" prop="deptId">-->
|
|
|
+ <!--<treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" />-->
|
|
|
+ <!--</el-form-item>-->
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <!-- 用户导入对话框 -->
|
|
|
- <el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
|
- <el-upload
|
|
|
- ref="upload"
|
|
|
- :limit="1"
|
|
|
- accept=".xlsx, .xls"
|
|
|
- :headers="upload.headers"
|
|
|
- :action="upload.url + '?updateSupport=' + upload.updateSupport"
|
|
|
- :disabled="upload.isUploading"
|
|
|
- :on-progress="handleFileUploadProgress"
|
|
|
- :on-success="handleFileSuccess"
|
|
|
- :auto-upload="false"
|
|
|
- drag
|
|
|
- >
|
|
|
- <i class="el-icon-upload"></i>
|
|
|
- <div class="el-upload__text">
|
|
|
- 将文件拖到此处,或
|
|
|
- <em>点击上传</em>
|
|
|
- </div>
|
|
|
- <div class="el-upload__tip" slot="tip">
|
|
|
- <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据
|
|
|
- <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
|
|
|
- </div>
|
|
|
- <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
|
|
|
- </el-upload>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitFileForm">确 定</el-button>
|
|
|
- <el-button @click="upload.open = false">取 消</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
+ <!-- 用户导入对话框 -->
|
|
|
+ <el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" width="400px"
|
|
|
+ append-to-body>
|
|
|
+ <el-upload
|
|
|
+ ref="upload"
|
|
|
+ :limit="1"
|
|
|
+ accept=".xlsx, .xls"
|
|
|
+ :headers="upload.headers"
|
|
|
+ :action="upload.url + '?updateSupport=' + upload.updateSupport"
|
|
|
+ :disabled="upload.isUploading"
|
|
|
+ :on-progress="handleFileUploadProgress"
|
|
|
+ :on-success="handleFileSuccess"
|
|
|
+ :auto-upload="false"
|
|
|
+ drag
|
|
|
+ >
|
|
|
+ <i class="el-icon-upload"></i>
|
|
|
+ <div class="el-upload__text">
|
|
|
+ 将文件拖到此处,或
|
|
|
+ <em>点击上传</em>
|
|
|
+ </div>
|
|
|
+ <div class="el-upload__tip" slot="tip">
|
|
|
+ <el-checkbox v-model="upload.updateSupport"/>
|
|
|
+ 是否更新已经存在的用户数据
|
|
|
+ <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
|
|
|
+ </div>
|
|
|
+ <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
|
|
|
+ </el-upload>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitFileForm">确 定</el-button>
|
|
|
+ <el-button @click="upload.open = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listFrame, getFrame, delFrame, addFrame, updateFrame, exportFrame, importTemplate, handleConfirmFrame, handleTurnDownFrame } from "@/api/pssr/frame";
|
|
|
-import { treeselect } from "@/api/system/dept";
|
|
|
-import { getToken } from "@/utils/auth";
|
|
|
+import {
|
|
|
+ addFrame,
|
|
|
+ delFrame,
|
|
|
+ exportFrame,
|
|
|
+ getFrame,
|
|
|
+ handleConfirmFrame,
|
|
|
+ handleTurnDownFrame,
|
|
|
+ importTemplate,
|
|
|
+ listFrame,
|
|
|
+ updateFrame
|
|
|
+} from "@/api/pssr/frame";
|
|
|
+import {treeselect} from "@/api/system/dept";
|
|
|
+import {getToken} from "@/utils/auth";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import {listUserNoPage} from "@/api/system/user";
|
|
|
import {doApprove} from "@/api/pssr/approve";
|
|
|
|
|
|
export default {
|
|
|
- dicts:['pssr_approve_status'],
|
|
|
+ dicts: ['pssr_approve_status'],
|
|
|
name: "Frame",
|
|
|
- components: { Treeselect },
|
|
|
+ components: {Treeselect},
|
|
|
props: {
|
|
|
subId: {
|
|
|
type: Number,
|
|
@@ -572,24 +568,24 @@ export default {
|
|
|
title: "",
|
|
|
// 部门树选项
|
|
|
deptOptions: undefined,
|
|
|
- clientHeight:300,
|
|
|
+ clientHeight: 300,
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
|
- // 用户导入参数
|
|
|
- upload: {
|
|
|
- // 是否显示弹出层(用户导入)
|
|
|
- open: false,
|
|
|
- // 弹出层标题(用户导入)
|
|
|
- title: "",
|
|
|
- // 是否禁用上传
|
|
|
- isUploading: false,
|
|
|
- // 是否更新已经存在的用户数据
|
|
|
- updateSupport: 0,
|
|
|
- // 设置上传的请求头部
|
|
|
- headers: { Authorization: "Bearer " + getToken() },
|
|
|
- // 上传的地址
|
|
|
- url: process.env.VUE_APP_BASE_API + "/pssr/frame/importData"
|
|
|
- },
|
|
|
+ // 用户导入参数
|
|
|
+ upload: {
|
|
|
+ // 是否显示弹出层(用户导入)
|
|
|
+ open: false,
|
|
|
+ // 弹出层标题(用户导入)
|
|
|
+ title: "",
|
|
|
+ // 是否禁用上传
|
|
|
+ isUploading: false,
|
|
|
+ // 是否更新已经存在的用户数据
|
|
|
+ updateSupport: 0,
|
|
|
+ // 设置上传的请求头部
|
|
|
+ headers: {Authorization: "Bearer " + getToken()},
|
|
|
+ // 上传的地址
|
|
|
+ url: process.env.VUE_APP_BASE_API + "/pssr/frame/importData"
|
|
|
+ },
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
@@ -625,16 +621,16 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
- // 根据名称筛选部门树
|
|
|
- deptName(val) {
|
|
|
- this.$refs.tree.filter(val);
|
|
|
- }
|
|
|
- },
|
|
|
+ // 根据名称筛选部门树
|
|
|
+ deptName(val) {
|
|
|
+ this.$refs.tree.filter(val);
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
- //设置表格高度对应屏幕高度
|
|
|
- this.$nextTick(() => {
|
|
|
- this.clientHeight = document.body.clientHeight - 350
|
|
|
- })
|
|
|
+ //设置表格高度对应屏幕高度
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.clientHeight = document.body.clientHeight - 350
|
|
|
+ })
|
|
|
this.getList();
|
|
|
this.getTreeselect();
|
|
|
listUserNoPage({}).then(res => {
|
|
@@ -651,12 +647,12 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- /** 查询部门下拉树结构 */
|
|
|
- getTreeselect() {
|
|
|
- treeselect().then(response => {
|
|
|
- this.deptOptions = response.data;
|
|
|
- });
|
|
|
- },
|
|
|
+ /** 查询部门下拉树结构 */
|
|
|
+ getTreeselect() {
|
|
|
+ treeselect().then(response => {
|
|
|
+ this.deptOptions = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
|
this.open = false;
|
|
@@ -703,7 +699,7 @@ export default {
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
- this.single = selection.length!==1
|
|
|
+ this.single = selection.length !== 1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
@@ -746,56 +742,56 @@ export default {
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$confirm('是否确认删除?', "警告", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(function() {
|
|
|
- return delFrame(ids);
|
|
|
- }).then(() => {
|
|
|
- this.getList();
|
|
|
- this.msgSuccess("删除成功");
|
|
|
- })
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function () {
|
|
|
+ return delFrame(ids);
|
|
|
+ }).then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("删除成功");
|
|
|
+ })
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|
|
|
this.$confirm('是否确认导出所有支(吊)架数据项?', "警告", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(function() {
|
|
|
- return exportFrame(queryParams);
|
|
|
- }).then(response => {
|
|
|
- this.download(response.msg);
|
|
|
- })
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function () {
|
|
|
+ return exportFrame(queryParams);
|
|
|
+ }).then(response => {
|
|
|
+ this.download(response.msg);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /** 导入按钮操作 */
|
|
|
+ handleImport() {
|
|
|
+ this.upload.title = "用户导入";
|
|
|
+ this.upload.open = true;
|
|
|
+ },
|
|
|
+ /** 下载模板操作 */
|
|
|
+ importTemplate() {
|
|
|
+ importTemplate().then(response => {
|
|
|
+ this.download(response.msg);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 文件上传中处理
|
|
|
+ handleFileUploadProgress(event, file, fileList) {
|
|
|
+ this.upload.isUploading = true;
|
|
|
+ },
|
|
|
+ // 文件上传成功处理
|
|
|
+ handleFileSuccess(response, file, fileList) {
|
|
|
+ this.upload.open = false;
|
|
|
+ this.upload.isUploading = false;
|
|
|
+ this.$refs.upload.clearFiles();
|
|
|
+ this.$alert(response.msg, "导入结果", {dangerouslyUseHTMLString: true});
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ // 提交上传文件
|
|
|
+ submitFileForm() {
|
|
|
+ this.$refs.upload.submit();
|
|
|
},
|
|
|
- /** 导入按钮操作 */
|
|
|
- handleImport() {
|
|
|
- this.upload.title = "用户导入";
|
|
|
- this.upload.open = true;
|
|
|
- },
|
|
|
- /** 下载模板操作 */
|
|
|
- importTemplate() {
|
|
|
- importTemplate().then(response => {
|
|
|
- this.download(response.msg);
|
|
|
- });
|
|
|
- },
|
|
|
- // 文件上传中处理
|
|
|
- handleFileUploadProgress(event, file, fileList) {
|
|
|
- this.upload.isUploading = true;
|
|
|
- },
|
|
|
- // 文件上传成功处理
|
|
|
- handleFileSuccess(response, file, fileList) {
|
|
|
- this.upload.open = false;
|
|
|
- this.upload.isUploading = false;
|
|
|
- this.$refs.upload.clearFiles();
|
|
|
- this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- // 提交上传文件
|
|
|
- submitFileForm() {
|
|
|
- this.$refs.upload.submit();
|
|
|
- },
|
|
|
/** 确认按钮操作*/
|
|
|
handleApprove() {
|
|
|
doApprove(this.subId).then(res => {
|
|
@@ -841,6 +837,108 @@ export default {
|
|
|
return item.nickName
|
|
|
}
|
|
|
}
|
|
|
- }, }
|
|
|
+ },
|
|
|
+ renderFramePipe(h, {column, $index}) {
|
|
|
+ let _this = this
|
|
|
+ return [
|
|
|
+ column.label,
|
|
|
+ h(
|
|
|
+ "el-tooltip",
|
|
|
+ {
|
|
|
+ props: {
|
|
|
+ content: '1. 管部组件是否有变形、严重锈蚀或断裂;2. 焊缝是否有开裂;',
|
|
|
+ placement: "top"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [
|
|
|
+ h("span", {
|
|
|
+ class: {
|
|
|
+ "el-icon-question": true,
|
|
|
+ "report-headerTips": true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]
|
|
|
+ )
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ renderFrameRoot(h, {column, $index}) {
|
|
|
+ let _this = this
|
|
|
+ return [
|
|
|
+ column.label,
|
|
|
+ h(
|
|
|
+ "el-tooltip",
|
|
|
+ {
|
|
|
+ props: {
|
|
|
+ content: '1. 根部组件是否有变形、严重锈蚀或断裂\n' +
|
|
|
+ '2. 焊缝是否有开裂;\n' +
|
|
|
+ '3. 导向机构的滑动部位有无杂物影响设备/管道的自由膨胀和伸缩;\n' +
|
|
|
+ '4. 限位装置或导向机构的滑动副(如PTFE板)是否变形或老化等',
|
|
|
+ placement: "top"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [
|
|
|
+ h("span", {
|
|
|
+ class: {
|
|
|
+ "el-icon-question": true,
|
|
|
+ "report-headerTips": true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]
|
|
|
+ )
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ renderFunctionalPart(h, {column, $index}) {
|
|
|
+ let _this = this
|
|
|
+ return [
|
|
|
+ column.label,
|
|
|
+ h(
|
|
|
+ "el-tooltip",
|
|
|
+ {
|
|
|
+ props: {
|
|
|
+ content: '1. 弹簧是否有严重锈蚀、折迭、分层、裂纹或断裂等缺陷;\n' +
|
|
|
+ '2. 弹簧是否有压并或松脱,载荷指示销是否到顶或到底;\n' +
|
|
|
+ '3. 转体部位是否有卡阻;\n' +
|
|
|
+ '4. 组合支吊架是否有偏载或单边失载;',
|
|
|
+ placement: "top"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [
|
|
|
+ h("span", {
|
|
|
+ class: {
|
|
|
+ "el-icon-question": true,
|
|
|
+ "report-headerTips": true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]
|
|
|
+ )
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ renderConnector(h, {column, $index}) {
|
|
|
+ let _this = this
|
|
|
+ return [
|
|
|
+ column.label,
|
|
|
+ h(
|
|
|
+ "el-tooltip",
|
|
|
+ {
|
|
|
+ props: {
|
|
|
+ content: '1. 筒节及其组件否有严重锈蚀或开裂;\n' +
|
|
|
+ '2. 支(吊)杆是否有严重锈蚀或松脱;\n' +
|
|
|
+ '3. 锁紧螺母是否已锁紧;\n' +
|
|
|
+ '4. 锁定装置是否已解除;',
|
|
|
+ placement: "top"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [
|
|
|
+ h("span", {
|
|
|
+ class: {
|
|
|
+ "el-icon-question": true,
|
|
|
+ "report-headerTips": true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]
|
|
|
+ )
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|