|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label-width="120px" label="检查项方法" prop="itemMethod">
|
|
|
|
|
<el-form-item label-width="120px" label="检查项工具" prop="itemMethod">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.itemTools"
|
|
|
|
|
placeholder="请输入检查项工具"
|
|
|
|
@ -208,6 +208,12 @@
|
|
|
|
|
<el-table-column width="200" label="部位" align="center" prop="itemName"/>
|
|
|
|
|
<el-table-column width="150" label="方法" align="center" prop="itemMethod"/>
|
|
|
|
|
<el-table-column width="150" label="工具" align="center" prop="itemTools"/>
|
|
|
|
|
<el-table-column width="80" label="周期" align="center" prop="itemLoop"/>
|
|
|
|
|
<el-table-column width="80" label="周期类型" align="center" prop="itemLoopType">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.device_loop_type" :value="scope.row.itemLoopType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column width="120" label="维护类型编码" align="center" prop="itemType"/>
|
|
|
|
|
<el-table-column width="120" label="维护类型" align="center" prop="itemTypeName"/>
|
|
|
|
|
<el-table-column width="200" label="备注" align="center" prop="itemRemark"/>
|
|
|
|
@ -297,6 +303,23 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="循环周期" prop="planLoop">
|
|
|
|
|
<el-input-number v-model="form.itemLoop" label=""></el-input-number>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<el-select v-model="form.itemLoopType" placeholder="周期">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.device_loop_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<!-- 动态表单 -->
|
|
|
|
|
<div v-for="(item, index) in formStandard" :key="index">
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
@ -399,7 +422,7 @@ import { Loading } from 'element-ui';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Item",
|
|
|
|
|
dicts: ['device_item_type'],
|
|
|
|
|
dicts: ['device_item_type','device_loop_type'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
activePage: 'check',
|
|
|
|
@ -469,6 +492,9 @@ export default {
|
|
|
|
|
itemCode: null,
|
|
|
|
|
itemName: null,
|
|
|
|
|
itemMethod: null,
|
|
|
|
|
itemTools:null,
|
|
|
|
|
itemLoop:null,
|
|
|
|
|
itemLoopType:null,
|
|
|
|
|
itemType: null,
|
|
|
|
|
itemTypeName: null,
|
|
|
|
|
itemRemark: null,
|
|
|
|
@ -487,6 +513,8 @@ export default {
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {
|
|
|
|
|
itemTools:null,
|
|
|
|
|
itemLoop:null,
|
|
|
|
|
itemLoopType:null,
|
|
|
|
|
itemName: null,
|
|
|
|
|
itemType: null,
|
|
|
|
|
itemMethod: null,
|
|
|
|
@ -600,6 +628,8 @@ export default {
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.setTransfer();
|
|
|
|
|
this.form.itemLoop = 1;
|
|
|
|
|
this.form.itemLoopType = 'day';
|
|
|
|
|
this.activePage = 'check';
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "新增检查项";
|
|
|
|
@ -613,7 +643,6 @@ export default {
|
|
|
|
|
const itemId = row.itemId || this.ids
|
|
|
|
|
getItem(itemId).then(response => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
|
|
getEquipmentCodeList(row.itemCode).then(response => {
|
|
|
|
|
for (let i = 0; i < response.data.length; i++) {
|
|
|
|
|
this.selectEquipmentList.push(response.data[i]);
|
|
|
|
|