|
@@ -61,8 +61,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleAdd"
|
|
@click="handleAdd"
|
|
v-hasPermi="['sems:specYlrq:add']"
|
|
v-hasPermi="['sems:specYlrq:add']"
|
|
- >{{ $t('新增') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ >{{ $t('新增') }}</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -72,8 +71,7 @@
|
|
:disabled="single"
|
|
:disabled="single"
|
|
@click="handleUpdate"
|
|
@click="handleUpdate"
|
|
v-hasPermi="['sems:specYlrq:edit']"
|
|
v-hasPermi="['sems:specYlrq:edit']"
|
|
- >{{ $t('修改') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ >{{ $t('修改') }}</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -83,8 +81,7 @@
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
v-hasPermi="['sems:specYlrq:remove']"
|
|
v-hasPermi="['sems:specYlrq:remove']"
|
|
- >{{ $t('删除') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ >{{ $t('删除') }}</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -92,19 +89,17 @@
|
|
size="mini"
|
|
size="mini"
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
@click="addAprrove('',devType)"
|
|
@click="addAprrove('',devType)"
|
|
- >{{ $t('提交申请') }}
|
|
|
|
- </el-button>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="1.5">
|
|
|
|
- <el-button
|
|
|
|
- type="info"
|
|
|
|
- icon="el-icon-upload2"
|
|
|
|
- size="mini"
|
|
|
|
- @click="handleImport"
|
|
|
|
- v-hasPermi="['sems:specYlrq:edit']"
|
|
|
|
- >{{ $t('导入') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ >{{ $t('提交申请') }}</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="info"
|
|
|
|
+ icon="el-icon-upload2"
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="handleImport"
|
|
|
|
+ v-hasPermi="['sems:specYlrq:edit']"
|
|
|
|
+ >{{ $t('导入') }}</el-button>
|
|
|
|
+ </el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
type="warning"
|
|
type="warning"
|
|
@@ -112,8 +107,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExport"
|
|
@click="handleExport"
|
|
v-hasPermi="['sems:specYlrq:export']"
|
|
v-hasPermi="['sems:specYlrq:export']"
|
|
- >{{ $t('导出') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ >{{ $t('导出') }}</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -122,29 +116,24 @@
|
|
size="mini"
|
|
size="mini"
|
|
@click="inspectionInformation = true"
|
|
@click="inspectionInformation = true"
|
|
v-hasPermi="['sems:specYlrq:add']"
|
|
v-hasPermi="['sems:specYlrq:add']"
|
|
- >{{ $t('检验更新') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ >{{ $t('检验更新') }}</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" ref="deviceTable" :data="specYlrqList" @selection-change="handleSelectionChange"
|
|
|
|
- :height="clientHeight"
|
|
|
|
|
|
+ <el-table v-loading="loading" ref="deviceTable" :data="specYlrqList" @selection-change="handleSelectionChange" :height="clientHeight"
|
|
:cell-style="tableCellStyle" border @sort-change="sortList">
|
|
:cell-style="tableCellStyle" border @sort-change="sortList">
|
|
- <el-table-column type="selection" width="55" align="center" fixed="left"/>
|
|
|
|
- <el-table-column :label="$t('装置')" align="center" fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column :label="$t('单元')" align="center" fixed="left" prop="unit" :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column :label="$t('装置维修组')" align="center" fixed="left" prop="plantMaint"
|
|
|
|
- :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column :label="$t('装置维修工程师')" align="center" fixed="left" prop="engineer"
|
|
|
|
- :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column :label="$t('状态')" align="center" fixed="left" prop="status" :formatter="statusFormat"/>
|
|
|
|
- <el-table-column :label="$t('申请状态')" align="center" fixed="left" prop="approveStatus"
|
|
|
|
- :formatter="approveStatusFormat"/>
|
|
|
|
- <el-table-column :label="$t('位号')" align="center" fixed="left" prop="devno" :show-overflow-tooltip="true">
|
|
|
|
- <!-- <template slot-scope="scope" >
|
|
|
|
- <a :class="tableRowClassName(scope.row)"></a>
|
|
|
|
- </template>-->
|
|
|
|
|
|
+ <el-table-column type="selection" width="55" align="center" fixed="left" />
|
|
|
|
+ <el-table-column :label="$t('装置')" align="center" fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('单元')" align="center" fixed="left" prop="unit" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('装置维修组')" align="center" fixed="left" prop="plantMaint" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('装置维修工程师')" align="center" fixed="left" prop="engineer" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('状态')" align="center" fixed="left" prop="status" :formatter="statusFormat" />
|
|
|
|
+ <el-table-column :label="$t('申请状态')" align="center" fixed="left" prop="approveStatus" :formatter="approveStatusFormat" />
|
|
|
|
+ <el-table-column :label="$t('位号')" align="center" fixed="left" prop="devno" :show-overflow-tooltip="true">
|
|
|
|
+<!-- <template slot-scope="scope" >
|
|
|
|
+ <a :class="tableRowClassName(scope.row)"></a>
|
|
|
|
+ </template>-->
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('设备名称')" align="center" prop="devname" width="200" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('设备名称')" align="center" prop="devname" width="200" :show-overflow-tooltip="true"/>
|
|
@@ -175,7 +164,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column :label="$t('安全状况等级')" align="center" prop="safeClass" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('安全状况等级')" align="center" prop="safeClass" :show-overflow-tooltip="true"/>
|
|
- <el-table-column :label="$t('下次定期检验日期')" align="center" prop="nextWarnDate" width="100" sortable="custom">
|
|
|
|
|
|
+ <el-table-column :label="$t('下次定期检验日期')" align="center" prop="nextWarnDate" width="100" sortable="custom">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.nextWarnDate, '{y}-{m}-{d}') }}</span>
|
|
<span>{{ parseTime(scope.row.nextWarnDate, '{y}-{m}-{d}') }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -194,41 +183,36 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column :label="$t('年度检查报告编号')" align="center" prop="yearReportNo" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('年度检查报告编号')" align="center" prop="yearReportNo" :show-overflow-tooltip="true"/>
|
|
- <!-- <el-table-column :label="$t('部门编号')" align="center" prop="deptId" :show-overflow-tooltip="true"/>-->
|
|
|
|
|
|
+<!-- <el-table-column :label="$t('部门编号')" align="center" prop="deptId" :show-overflow-tooltip="true"/>-->
|
|
<el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
|
|
|
|
- <el-table-column :label="$t('操作')" align="center" fixed="right" width="140"
|
|
|
|
- class-name="small-padding fixed-width">
|
|
|
|
|
|
+ <el-table-column :label="$t('操作')" align="center" fixed="right" width="140" class-name="small-padding fixed-width">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
size="mini"
|
|
size="mini"
|
|
@click="addAprrove(scope.row,devType)"
|
|
@click="addAprrove(scope.row,devType)"
|
|
- >{{ $t('提交申请') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ >{{ $t('提交申请') }}</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="scope.row.approveTime != null"
|
|
v-if="scope.row.approveTime != null"
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
@click="hisApprove(scope.row,devType)">
|
|
@click="hisApprove(scope.row,devType)">
|
|
- {{ $t('申请记录') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ {{ $t('申请记录') }}</el-button>
|
|
<br>
|
|
<br>
|
|
<el-button
|
|
<el-button
|
|
style="margin-left: 0px"
|
|
style="margin-left: 0px"
|
|
type="text"
|
|
type="text"
|
|
size="mini"
|
|
size="mini"
|
|
@click="checkList(scope.row,devType)"
|
|
@click="checkList(scope.row,devType)"
|
|
- >{{ $t('检验记录') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ >{{ $t('检验记录') }}</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="scope.row.hiFlag!= 0"
|
|
v-if="scope.row.hiFlag!= 0"
|
|
type="text"
|
|
type="text"
|
|
size="mini"
|
|
size="mini"
|
|
@click="hisReform(scope.row)"
|
|
@click="hisReform(scope.row)"
|
|
- >{{ $t('改造记录') }}
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ >{{ $t('改造记录') }}</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -246,54 +230,52 @@
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="160px">
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="160px">
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('装置')" prop="plantCode">
|
|
|
|
- <el-select v-model="form.plantCode" :placeholder="$t('请选择')+ $t('装置')" filterable clearable size="small"
|
|
|
|
- v-bind:disabled="dataForm==1">
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in plantOptions"
|
|
|
|
- :key="dict.name"
|
|
|
|
- :label="dict.name"
|
|
|
|
- :value="dict.name"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('装置')" prop="plantCode">
|
|
|
|
+ <el-select v-model="form.plantCode" :placeholder="$t('请选择')+ $t('装置')" filterable clearable size="small" v-bind:disabled="dataForm==1">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in plantOptions"
|
|
|
|
+ :key="dict.name"
|
|
|
|
+ :label="dict.name"
|
|
|
|
+ :value="dict.name"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('单元')" prop="unit">
|
|
|
|
- <el-input v-model="form.unit" :placeholder="$t('请输入')+ $t('单元')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('单元')" prop="unit">
|
|
|
|
+ <el-input v-model="form.unit" :placeholder="$t('请输入')+ $t('单元')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('装置维修组')" prop="plantMaint">
|
|
|
|
- <el-select v-model="form.plantMaint" :placeholder="$t('请选择')+ $t('装置维修组')" filterable clearable
|
|
|
|
- size="small">
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in plantMaintOptions"
|
|
|
|
- :key="dict.dictValue"
|
|
|
|
- :label="dict.dictValue"
|
|
|
|
- :value="dict.dictValue"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('装置维修组')" prop="plantMaint">
|
|
|
|
+ <el-select v-model="form.plantMaint" :placeholder="$t('请选择')+ $t('装置维修组')" filterable clearable size="small">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in plantMaintOptions"
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
+ :label="dict.dictValue"
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('装置维修工程师')" prop="engineer">
|
|
|
|
- <el-input v-model="form.engineer" :placeholder="$t('请输入')+ $t('装置维修工程师')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('装置维修工程师')" prop="engineer">
|
|
|
|
+ <el-input v-model="form.engineer" :placeholder="$t('请输入')+ $t('装置维修工程师')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('设备名称')" prop="devname">
|
|
|
|
- <el-input v-model="form.devname" :placeholder="$t('请输入')+ $t('设备名称')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('设备名称')" prop="devname">
|
|
|
|
+ <el-input v-model="form.devname" :placeholder="$t('请输入')+ $t('设备名称')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('位号')" prop="devno">
|
|
|
|
- <el-input v-model="form.devno" :placeholder="$t('请输入')+ $t('位号')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('位号')" prop="devno">
|
|
|
|
+ <el-input v-model="form.devno" :placeholder="$t('请输入')+ $t('位号')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
@@ -334,153 +316,153 @@
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('材料(管/壳)')" prop="material">
|
|
|
|
- <el-input v-model="form.material" :placeholder="$t('请输入')+ $t('材料')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('材料')" prop="material">
|
|
|
|
+ <el-input v-model="form.material" :placeholder="$t('请输入')+ $t('材料')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('介质(管/壳)')" prop="medium">
|
|
|
|
- <el-input v-model="form.medium" :placeholder="$t('请输入')+ $t('介质')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('介质')" prop="medium">
|
|
|
|
+ <el-input v-model="form.medium" :placeholder="$t('请输入')+ $t('介质')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('设计压力MPa(管/壳)')" prop="desPressure">
|
|
|
|
- <el-input v-model="form.desPressure" :placeholder="$t('请输入')+ $t('设计压力')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('设计压力MPa')" prop="desPressure">
|
|
|
|
+ <el-input v-model="form.desPressure" :placeholder="$t('请输入')+ $t('设计压力')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('设计压力MPa(管/壳)')" prop="optPressure">
|
|
|
|
- <el-input v-model="form.optPressure" :placeholder="$t('请输入')+ $t('操作压力')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('设计压力MPa')" prop="optPressure">
|
|
|
|
+ <el-input v-model="form.optPressure" :placeholder="$t('请输入')+ $t('操作压力')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('设计温度℃(管/壳)')" prop="desTemp">
|
|
|
|
- <el-input v-model="form.desTemp" :placeholder="$t('请输入')+ $t('设计温度')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('设计温度℃')" prop="desTemp">
|
|
|
|
+ <el-input v-model="form.desTemp" :placeholder="$t('请输入')+ $t('设计温度')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('操作温度℃(管/壳)')" prop="optTemp">
|
|
|
|
- <el-input v-model="form.optTemp" :placeholder="$t('请输入')+ $t('操作温度')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('操作温度℃')" prop="optTemp">
|
|
|
|
+ <el-input v-model="form.optTemp" :placeholder="$t('请输入')+ $t('操作温度')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('投用日期(mm/year)')" prop="submitdate">
|
|
|
|
- <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
- v-model="form.submitdate"
|
|
|
|
- type="date"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- :placeholder="$t('请选择')+ $t('提交日期')">
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('投用日期')" prop="submitdate">
|
|
|
|
+ <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
+ v-model="form.submitdate"
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ :placeholder="$t('请选择')+ $t('提交日期')">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('是否涉危化品')" prop="isDanger">
|
|
|
|
- <el-input v-model="form.isDanger" :placeholder="$t('请输入')+ $t('涉危化品')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('是否涉危化品')" prop="isDanger">
|
|
|
|
+ <el-input v-model="form.isDanger" :placeholder="$t('请输入')+ $t('涉危化品')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('设计使用年限')" prop="desYear">
|
|
|
|
- <el-input v-model="form.desYear" :placeholder="$t('请输入')+ $t('设计使用年限')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('设计使用年限')" prop="desYear">
|
|
|
|
+ <el-input v-model="form.desYear" :placeholder="$t('请输入')+ $t('设计使用年限')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('是否超过使用寿命')" prop="isOverlife">
|
|
|
|
- <el-input v-model="form.isOverlife" :placeholder="$t('请输入')+ $t('超过使用寿命')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('是否超过使用寿命')" prop="isOverlife">
|
|
|
|
+ <el-input v-model="form.isOverlife" :placeholder="$t('请输入')+ $t('超过使用寿命')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('检验单位')" prop="checkUnit">
|
|
|
|
- <el-input v-model="form.checkUnit" :placeholder="$t('请输入')+ $t('检验单位')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('检验单位')" prop="checkUnit">
|
|
|
|
+ <el-input v-model="form.checkUnit" :placeholder="$t('请输入')+ $t('检验单位')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('定期检验日期')" prop="warnDate">
|
|
|
|
- <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
- v-model="form.warnDate"
|
|
|
|
- type="date"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- :placeholder="$t('请选择')+ $t('定期检验日期')">
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('定期检验日期')" prop="warnDate">
|
|
|
|
+ <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
+ v-model="form.warnDate"
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ :placeholder="$t('请选择')+ $t('定期检验日期')">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('下次定期检验日期')" prop="nextWarnDate">
|
|
|
|
- <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
- v-model="form.nextWarnDate"
|
|
|
|
- type="date"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- :placeholder="$t('请选择')+ $t('下次定期检验日期')">
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('下次定期检验日期')" prop="nextWarnDate">
|
|
|
|
+ <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
+ v-model="form.nextWarnDate"
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ :placeholder="$t('请选择')+ $t('下次定期检验日期')">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('定期检验报告编号')" prop="reportNo">
|
|
|
|
- <el-input v-model="form.reportNo" :placeholder="$t('请输入')+ $t('报告编号')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('定期检验报告编号')" prop="reportNo">
|
|
|
|
+ <el-input v-model="form.reportNo" :placeholder="$t('请输入')+ $t('报告编号')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('安全状况等级')" prop="safeClass">
|
|
|
|
- <el-input v-model="form.safeClass" :placeholder="$t('请输入')+ $t('安全状况等级')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('安全状况等级')" prop="safeClass">
|
|
|
|
+ <el-input v-model="form.safeClass" :placeholder="$t('请输入')+ $t('安全状况等级')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('年度检查日期')" prop="yearWarnDate">
|
|
|
|
- <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
- v-model="form.yearWarnDate"
|
|
|
|
- type="date"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- :placeholder="$t('请选择')+ $t('年度检查日期')">
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('年度检查日期')" prop="yearWarnDate">
|
|
|
|
+ <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
+ v-model="form.yearWarnDate"
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ :placeholder="$t('请选择')+ $t('年度检查日期')">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('年度检查结论')" prop="checkConclusion">
|
|
|
|
- <el-input v-model="form.checkConclusion" :placeholder="$t('请输入')+ $t('年度检查结论')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('年度检查结论')" prop="checkConclusion">
|
|
|
|
+ <el-input v-model="form.checkConclusion" :placeholder="$t('请输入')+ $t('年度检查结论')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('下次年度检查日期')" prop="yearNextWarnDate">
|
|
|
|
- <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
- v-model="form.yearNextWarnDate"
|
|
|
|
- type="date"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- :placeholder="$t('请选择')+ $t('下次年度检查日期')">
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('下次年度检查日期')" prop="yearNextWarnDate">
|
|
|
|
+ <el-date-picker clearable size="small" style="width: 200px"
|
|
|
|
+ v-model="form.yearNextWarnDate"
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ :placeholder="$t('请选择')+ $t('下次年度检查日期')">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('年度检查报告编号')" prop="yearReportNo">
|
|
|
|
- <el-input v-model="form.yearReportNo" :placeholder="$t('请输入')+ $t('年度检查报告编号')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('年度检查报告编号')" prop="yearReportNo">
|
|
|
|
+ <el-input v-model="form.yearReportNo" :placeholder="$t('请输入')+ $t('年度检查报告编号')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item :label="$t('备注')" prop="remarks">
|
|
|
|
- <el-input v-model="form.remarks" type="textarea" :placeholder="$t('请输入')+ $t('内容')"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item :label="$t('备注')" prop="remarks">
|
|
|
|
+ <el-input v-model="form.remarks" type="textarea" :placeholder="$t('请输入')+ $t('内容')" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <!-- <el-col :span="12">
|
|
|
|
- <el-form-item :label="$t('归属部门')" prop="deptId">
|
|
|
|
- <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" :placeholder="$t('请选择')+ $t('归属部门')" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>-->
|
|
|
|
|
|
+<!-- <el-col :span="12">
|
|
|
|
+ <el-form-item :label="$t('归属部门')" prop="deptId">
|
|
|
|
+ <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" :placeholder="$t('请选择')+ $t('归属部门')" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>-->
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -552,12 +534,12 @@
|
|
:action="uploadUrl(2)"
|
|
:action="uploadUrl(2)"
|
|
multiple>
|
|
multiple>
|
|
<i class="el-icon-upload"></i>
|
|
<i class="el-icon-upload"></i>
|
|
- <div class="el-upload__text">{{ $t('文件') }}<em>{{ $t('点击上传') }}</em></div>
|
|
|
|
- <div class="el-upload__tip" slot="tip">{{ $t('仅支持excel格式') }}</div>
|
|
|
|
|
|
+ <div class="el-upload__text">{{$t('文件')}}<em>{{$t('点击上传')}}</em></div>
|
|
|
|
+ <div class="el-upload__tip" slot="tip">{{$t('仅支持excel格式')}}</div>
|
|
</el-upload>
|
|
</el-upload>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
- <el-button @click="inspectionInformation = false">{{ $t('返回') }}</el-button>
|
|
|
|
|
|
+ <el-button @click="inspectionInformation = false">{{$t('返回')}}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog v-dialogDrag :title="modifyTitle" :visible.sync="modifyVisible" width="550px" append-to-body>
|
|
<el-dialog v-dialogDrag :title="modifyTitle" :visible.sync="modifyVisible" width="550px" append-to-body>
|
|
@@ -578,29 +560,29 @@
|
|
<add-approve v-if="addAprroveVisible" ref="addApprove" @refreshDataList="getList"></add-approve>
|
|
<add-approve v-if="addAprroveVisible" ref="addApprove" @refreshDataList="getList"></add-approve>
|
|
<his-approve v-if="hisAprroveVisible" ref="hisApprove" @refreshDataList="getList"></his-approve>
|
|
<his-approve v-if="hisAprroveVisible" ref="hisApprove" @refreshDataList="getList"></his-approve>
|
|
<his-check v-if="hisCheckVisible" ref="hisCheck" @refreshDataList="getList"></his-check>
|
|
<his-check v-if="hisCheckVisible" ref="hisCheck" @refreshDataList="getList"></his-check>
|
|
- <HisReform v-if="hisReformVisible" ref="hisReformList"></HisReform>
|
|
|
|
|
|
+ <HisReform v-if="hisReformVisible" ref="hisReformList" ></HisReform>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {addSpecYlrq, exportSpecYlrq, getSpecYlrq, listSpecYlrq, updateSpecYlrqPre,} from "@/api/sems/specYlrq";
|
|
|
|
-import {treeselect} from "@/api/system/dept";
|
|
|
|
-import {getToken} from "@/utils/auth";
|
|
|
|
-import {listPostUser} from "@/api/system/user";
|
|
|
|
-import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
-import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
-import AddApprove from "../approve/tapprove-add"
|
|
|
|
-import {mylistPlant} from "@/api/system/plant";
|
|
|
|
-import HisApprove from "../approve/tapprove-his"
|
|
|
|
-import HisCheck from "../check/check"
|
|
|
|
-import {addModify} from "@/api/sems/his/modify";
|
|
|
|
-import HisReform from "./specYlrq-hisReform";
|
|
|
|
-import {listSpecGl} from "@/api/sems/specGl";
|
|
|
|
|
|
+ import {addSpecYlrq, exportSpecYlrq, getSpecYlrq, listSpecYlrq, updateSpecYlrqPre,} from "@/api/sems/specYlrq";
|
|
|
|
+ import {treeselect} from "@/api/system/dept";
|
|
|
|
+ import {getToken} from "@/utils/auth";
|
|
|
|
+ import {listPostUser} from "@/api/system/user";
|
|
|
|
+ import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
+ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
+ import AddApprove from "../approve/tapprove-add"
|
|
|
|
+ import {mylistPlant} from "@/api/system/plant";
|
|
|
|
+ import HisApprove from "../approve/tapprove-his"
|
|
|
|
+ import HisCheck from "../check/check"
|
|
|
|
+ import {addModify} from "@/api/sems/his/modify";
|
|
|
|
+ import HisReform from "./specYlrq-hisReform";
|
|
|
|
+ import {listSpecGl} from "@/api/sems/specGl";
|
|
|
|
|
|
|
|
|
|
-export default {
|
|
|
|
|
|
+ export default {
|
|
name: "SpecYlrq",
|
|
name: "SpecYlrq",
|
|
- components: {Treeselect, AddApprove, HisApprove, HisCheck, HisReform},
|
|
|
|
|
|
+ components: { Treeselect,AddApprove ,HisApprove,HisCheck ,HisReform},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
waitSubmit: false,
|
|
waitSubmit: false,
|
|
@@ -636,7 +618,7 @@ export default {
|
|
title: "",
|
|
title: "",
|
|
// 部门树选项
|
|
// 部门树选项
|
|
deptOptions: undefined,
|
|
deptOptions: undefined,
|
|
- clientHeight: 300,
|
|
|
|
|
|
+ clientHeight:300,
|
|
// 是否显示弹出层
|
|
// 是否显示弹出层
|
|
open: false,
|
|
open: false,
|
|
// 状态字典
|
|
// 状态字典
|
|
@@ -646,29 +628,29 @@ export default {
|
|
plantOptions: [],
|
|
plantOptions: [],
|
|
plantMaintOptions: [],
|
|
plantMaintOptions: [],
|
|
wxjlList: [],
|
|
wxjlList: [],
|
|
- // 用户导入参数
|
|
|
|
- upload: {
|
|
|
|
- downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
|
|
|
|
- // 是否显示弹出层(用户导入)
|
|
|
|
- open: false,
|
|
|
|
- type: "specYlrq",
|
|
|
|
- // 弹出层标题(用户导入)
|
|
|
|
- title: "",
|
|
|
|
- // 是否禁用上传
|
|
|
|
- isUploading: false,
|
|
|
|
- // 是否更新已经存在的用户数据
|
|
|
|
- updateSupport: 0,
|
|
|
|
- // 设置上传的请求头部
|
|
|
|
- headers: {Authorization: "Bearer " + getToken()},
|
|
|
|
- // 上传的地址
|
|
|
|
- url: process.env.VUE_APP_BASE_API + "/sems/specYlrq/importData"
|
|
|
|
- },
|
|
|
|
|
|
+ // 用户导入参数
|
|
|
|
+ upload: {
|
|
|
|
+ downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
|
|
|
|
+ // 是否显示弹出层(用户导入)
|
|
|
|
+ open: false,
|
|
|
|
+ type: "specYlrq",
|
|
|
|
+ // 弹出层标题(用户导入)
|
|
|
|
+ title: "",
|
|
|
|
+ // 是否禁用上传
|
|
|
|
+ isUploading: false,
|
|
|
|
+ // 是否更新已经存在的用户数据
|
|
|
|
+ updateSupport: 0,
|
|
|
|
+ // 设置上传的请求头部
|
|
|
|
+ headers: { Authorization: "Bearer " + getToken() },
|
|
|
|
+ // 上传的地址
|
|
|
|
+ url: process.env.VUE_APP_BASE_API + "/sems/specYlrq/importData"
|
|
|
|
+ },
|
|
// 查询参数
|
|
// 查询参数
|
|
queryParams: {
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
- orderByColumn: "id",
|
|
|
|
- isAsc: "desc",
|
|
|
|
|
|
+ orderByColumn:"id",
|
|
|
|
+ isAsc:"desc",
|
|
plantCode: null,
|
|
plantCode: null,
|
|
unit: null,
|
|
unit: null,
|
|
devname: null,
|
|
devname: null,
|
|
@@ -683,22 +665,22 @@ export default {
|
|
// 表单校验
|
|
// 表单校验
|
|
rules: {
|
|
rules: {
|
|
plantCode: [
|
|
plantCode: [
|
|
- {required: true, message: this.$t('装置名称') + this.$t('不能为空'), trigger: "blur"}
|
|
|
|
|
|
+ { required: true, message: this.$t('装置名称')+this.$t('不能为空'), trigger: "blur" }
|
|
],
|
|
],
|
|
}
|
|
}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- // 根据名称筛选部门树
|
|
|
|
- deptName(val) {
|
|
|
|
- this.$refs.tree.filter(val);
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // 根据名称筛选部门树
|
|
|
|
+ deptName(val) {
|
|
|
|
+ this.$refs.tree.filter(val);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
- //设置表格高度对应屏幕高度
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.clientHeight = document.body.clientHeight - 250
|
|
|
|
- })
|
|
|
|
|
|
+ //设置表格高度对应屏幕高度
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.clientHeight = document.body.clientHeight -250
|
|
|
|
+ })
|
|
this.getList();
|
|
this.getList();
|
|
this.getTreeselect();
|
|
this.getTreeselect();
|
|
this.getDicts("spec_dev_status").then(response => {
|
|
this.getDicts("spec_dev_status").then(response => {
|
|
@@ -730,12 +712,12 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- /** 查询部门下拉树结构 */
|
|
|
|
- getTreeselect() {
|
|
|
|
- treeselect().then(response => {
|
|
|
|
- this.deptOptions = response.data;
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
|
|
+ /** 查询部门下拉树结构 */
|
|
|
|
+ getTreeselect() {
|
|
|
|
+ treeselect().then(response => {
|
|
|
|
+ this.deptOptions = response.data;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// 状态字典翻译
|
|
// 状态字典翻译
|
|
statusFormat(row, column) {
|
|
statusFormat(row, column) {
|
|
return this.selectDictLabel(this.statusOptions, row.status);
|
|
return this.selectDictLabel(this.statusOptions, row.status);
|
|
@@ -805,7 +787,7 @@ export default {
|
|
hisId: null
|
|
hisId: null
|
|
}
|
|
}
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
- this.dataForm = 0;
|
|
|
|
|
|
+ this.dataForm=0;
|
|
},
|
|
},
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|
|
handleQuery() {
|
|
handleQuery() {
|
|
@@ -820,7 +802,7 @@ export default {
|
|
// 多选框选中数据
|
|
// 多选框选中数据
|
|
handleSelectionChange(selection) {
|
|
handleSelectionChange(selection) {
|
|
this.ids = selection.map(item => item.id)
|
|
this.ids = selection.map(item => item.id)
|
|
- this.single = selection.length !== 1
|
|
|
|
|
|
+ this.single = selection.length!==1
|
|
this.multiple = !selection.length
|
|
this.multiple = !selection.length
|
|
this.dataListSelections = selection
|
|
this.dataListSelections = selection
|
|
},
|
|
},
|
|
@@ -837,7 +819,7 @@ export default {
|
|
var rows = this.dataListSelections.map(item => {
|
|
var rows = this.dataListSelections.map(item => {
|
|
return item
|
|
return item
|
|
})
|
|
})
|
|
- for (let i = 0; i < rows.length; i++) {
|
|
|
|
|
|
+ for (let i = 0; i <rows.length ; i++) {
|
|
if (rows[i].approveStatus != 0) {
|
|
if (rows[i].approveStatus != 0) {
|
|
this.$alert(this.$t('当前设备正在申请中,无法修改'), this.$t('提示'), {
|
|
this.$alert(this.$t('当前设备正在申请中,无法修改'), this.$t('提示'), {
|
|
type: 'warning'
|
|
type: 'warning'
|
|
@@ -892,7 +874,7 @@ export default {
|
|
var rows = this.dataListSelections.map(item => {
|
|
var rows = this.dataListSelections.map(item => {
|
|
return item
|
|
return item
|
|
})
|
|
})
|
|
- for (let i = 0; i < rows.length; i++) {
|
|
|
|
|
|
+ for (let i = 0; i <rows.length ; i++) {
|
|
if (rows[i].approveStatus != 0) {
|
|
if (rows[i].approveStatus != 0) {
|
|
this.$alert(this.$t('当前设备正在申请中,无法修改'), this.$t('提示'), {
|
|
this.$alert(this.$t('当前设备正在申请中,无法修改'), this.$t('提示'), {
|
|
type: 'warning'
|
|
type: 'warning'
|
|
@@ -901,9 +883,9 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (let i = 0; i < rows.length; i++) {
|
|
for (let i = 0; i < rows.length; i++) {
|
|
- if (i == 0) {
|
|
|
|
|
|
+ if (i == 0){
|
|
this.modifyForm.devId = rows[i].id
|
|
this.modifyForm.devId = rows[i].id
|
|
- } else {
|
|
|
|
|
|
+ }else {
|
|
this.modifyForm.devId += ',' + rows[i].id
|
|
this.modifyForm.devId += ',' + rows[i].id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -913,7 +895,7 @@ export default {
|
|
this.modifyForm.devType = this.devType
|
|
this.modifyForm.devType = this.devType
|
|
this.modifyForm.approveType = 2
|
|
this.modifyForm.approveType = 2
|
|
this.modifyVisible = true
|
|
this.modifyVisible = true
|
|
- this.modifyTitle = this.$t('设备删除申请')
|
|
|
|
|
|
+ this.modifyTitle =this.$t('设备删除申请')
|
|
this.queryParams.postCode = 'wxjl'
|
|
this.queryParams.postCode = 'wxjl'
|
|
listPostUser(this.queryParams).then(response => {
|
|
listPostUser(this.queryParams).then(response => {
|
|
this.wxjlList = response;
|
|
this.wxjlList = response;
|
|
@@ -983,7 +965,7 @@ export default {
|
|
var rows = row ? [row] : this.dataListSelections.map(item => {
|
|
var rows = row ? [row] : this.dataListSelections.map(item => {
|
|
return item
|
|
return item
|
|
})
|
|
})
|
|
- for (let i = 0; i < rows.length; i++) {
|
|
|
|
|
|
+ for (let i = 0; i <rows.length ; i++) {
|
|
if (rows[i].approveStatus != 0) {
|
|
if (rows[i].approveStatus != 0) {
|
|
this.$alert(this.$t('当前设备正在申请中,无法重复申请'), this.$t('提示'), {
|
|
this.$alert(this.$t('当前设备正在申请中,无法重复申请'), this.$t('提示'), {
|
|
type: 'warning'
|
|
type: 'warning'
|
|
@@ -998,19 +980,19 @@ export default {
|
|
this.$refs.addApprove.init(rows, type)
|
|
this.$refs.addApprove.init(rows, type)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- hisApprove(row, type) {
|
|
|
|
|
|
+ hisApprove (row, type) {
|
|
this.hisAprroveVisible = true
|
|
this.hisAprroveVisible = true
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.hisApprove.init(row, type)
|
|
this.$refs.hisApprove.init(row, type)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- checkList(row, type) {
|
|
|
|
|
|
+ checkList (row, type) {
|
|
this.hisCheckVisible = true
|
|
this.hisCheckVisible = true
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.hisCheck.init(row, type)
|
|
this.$refs.hisCheck.init(row, type)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- hisReform(row) {
|
|
|
|
|
|
+ hisReform (row){
|
|
this.hisReformVisible = true
|
|
this.hisReformVisible = true
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.hisReformList.init(row);
|
|
this.$refs.hisReformList.init(row);
|
|
@@ -1018,29 +1000,29 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
//导出excel
|
|
//导出excel
|
|
- downloadDev(type) {
|
|
|
|
|
|
+ downloadDev(type){
|
|
var rows = this.dataListSelections.map(item => {
|
|
var rows = this.dataListSelections.map(item => {
|
|
return item.id
|
|
return item.id
|
|
})
|
|
})
|
|
this.ids = rows
|
|
this.ids = rows
|
|
- if (type == 1) {
|
|
|
|
|
|
+ if (type == 1){
|
|
this.downloadType = 1
|
|
this.downloadType = 1
|
|
- } else if (type == 2) {
|
|
|
|
|
|
+ }else if (type == 2){
|
|
this.downloadType = 2
|
|
this.downloadType = 2
|
|
}
|
|
}
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs['downloadDevForm'].submit()
|
|
this.$refs['downloadDevForm'].submit()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- uploadUrl(uploadType) {
|
|
|
|
|
|
+ uploadUrl (uploadType) {
|
|
return process.env.VUE_APP_BASE_API + "/sems/specYlrq/updateData"
|
|
return process.env.VUE_APP_BASE_API + "/sems/specYlrq/updateData"
|
|
},
|
|
},
|
|
- submitModofyForm() {
|
|
|
|
- addModify(this.modifyForm).then(response => {
|
|
|
|
- this.msgSuccess(this.$t('提交成功'));
|
|
|
|
- this.modifyVisible = false
|
|
|
|
- this.getList();
|
|
|
|
- });
|
|
|
|
|
|
+ submitModofyForm () {
|
|
|
|
+ addModify(this.modifyForm).then(response => {
|
|
|
|
+ this.msgSuccess(this.$t('提交成功'));
|
|
|
|
+ this.modifyVisible = false
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
},
|
|
},
|
|
/*tableRowClassName(row){
|
|
/*tableRowClassName(row){
|
|
if (row.devno != 0){
|
|
if (row.devno != 0){
|
|
@@ -1049,28 +1031,29 @@ export default {
|
|
return '';
|
|
return '';
|
|
}*/
|
|
}*/
|
|
//位号颜色变换
|
|
//位号颜色变换
|
|
- tableCellStyle({row, column, rowIndex, columnIndex}) {
|
|
|
|
- if (columnIndex == 7 && row.isRepeat == 1) {
|
|
|
|
|
|
+ tableCellStyle({ row, column, rowIndex, columnIndex }) {
|
|
|
|
+ if (columnIndex == 7 && row.isRepeat == 1){
|
|
return "color:rgba(255, 26, 26, 0.98);"
|
|
return "color:rgba(255, 26, 26, 0.98);"
|
|
}
|
|
}
|
|
- if (columnIndex == 28 && row.warnFlag == 1) {
|
|
|
|
|
|
+ if (columnIndex == 28 && row.warnFlag == 1){
|
|
return "background-color:rgba(255, 255,153, 0.5);"
|
|
return "background-color:rgba(255, 255,153, 0.5);"
|
|
}
|
|
}
|
|
- if (columnIndex == 28 && row.warnFlag == 2) {
|
|
|
|
|
|
+ if (columnIndex == 28 && row.warnFlag == 2){
|
|
return "background-color:rgba(255, 180, 68, 0.5);"
|
|
return "background-color:rgba(255, 180, 68, 0.5);"
|
|
}
|
|
}
|
|
- if (columnIndex == 28 && row.warnFlag == 3) {
|
|
|
|
|
|
+ if (columnIndex == 28 && row.warnFlag == 3){
|
|
return "background-color:rgba(255, 68,68, 0.5);"
|
|
return "background-color:rgba(255, 68,68, 0.5);"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//element表格排序
|
|
//element表格排序
|
|
- sortList(val) {
|
|
|
|
|
|
+ sortList(val){
|
|
var sort = "asc";
|
|
var sort = "asc";
|
|
let sortTip = val.order
|
|
let sortTip = val.order
|
|
|
|
|
|
- if (sortTip === 'descending') {
|
|
|
|
|
|
+ if(sortTip === 'descending'){
|
|
sort = 'desc' // 降序
|
|
sort = 'desc' // 降序
|
|
- } else if (sortTip === 'ascending') {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if(sortTip === 'ascending'){
|
|
sort = 'asc' // 升序
|
|
sort = 'asc' // 升序
|
|
}
|
|
}
|
|
this.queryParams.isAsc = sort;
|
|
this.queryParams.isAsc = sort;
|
|
@@ -1085,7 +1068,32 @@ export default {
|
|
});
|
|
});
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ //结论备注
|
|
|
|
+ renderHeader(h, {column, $index}) {
|
|
|
|
+ return [
|
|
|
|
+ column.label,
|
|
|
|
+ h(
|
|
|
|
+ "el-tooltip",
|
|
|
|
+ {
|
|
|
|
+ props: {
|
|
|
|
+ content: (function () {
|
|
|
|
+ return `如果是多腔压力容器,应分别填写各压力腔的信息和参数,说明填写的信息和参数是哪一个压力腔的信息和参数,并用“/”分隔。`
|
|
|
|
+ })(),
|
|
|
|
+ placement: "top"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ [
|
|
|
|
+ h("span", {
|
|
|
|
+ class: {
|
|
|
|
+ "el-icon-question": true,
|
|
|
|
+ "report-headerTips": true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|