This commit is contained in:
xiaofajia 2024-12-17 15:11:48 +08:00
parent bed05336b5
commit 371c4fa8f5
2 changed files with 26 additions and 1 deletions

View File

@ -239,6 +239,8 @@ export const DICT_TYPE = {
//类型
BALANCE_CHANGE_TYPE:"balance_change_type",
// ----------检测相关------------
INS_EQU_TYPE: 'ins_equ_type',
}

View File

@ -25,6 +25,11 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="设备类型" prop="type">
<el-select v-model="queryParams.type">
<el-option v-for="item in this.getDictDatas(DICT_TYPE.INS_EQU_TYPE)" :key="item.value" :value="item.value" :label="item.label"/>
</el-select>
</el-form-item>
<el-form-item label="检定时间">
<el-date-picker
v-model="daterangeNextCheckTime"
@ -94,6 +99,11 @@
<el-table-column label="设备名称" align="center" prop="equName" />
<el-table-column label="设备型号" align="center" prop="equModel" />
<el-table-column label="设备编号" align="center" prop="equNumber" />
<el-table-column label="设备类别" align="center" prop="type">
<template slot-scope="scope">
<DictTag :type="DICT_TYPE.INS_EQU_TYPE" :value="scope.row.type" />
</template>
</el-table-column>
<el-table-column label="设备检定周期" align="center" prop="equZq" />
<el-table-column label="有效期" align="center" prop="validTime" width="180">
<template slot-scope="scope">
@ -151,6 +161,11 @@
<el-form-item label="设备编号" prop="equNumber">
<el-input v-model="form.equNumber" placeholder="请输入设备编号" />
</el-form-item>
<el-form-item label="设备类型" prop="type">
<el-select v-model="form.type" placeholder="请选择类别">
<el-option v-for="item in this.getDictDatas(DICT_TYPE.INS_EQU_TYPE)" :key="item.value" :value="item.value" :label="item.label" />
</el-select>
</el-form-item>
<el-form-item label="设备检定周期" prop="equZq">
<el-input v-model="form.equZq" placeholder="请输入设备检定周期" />
</el-form-item>
@ -184,9 +199,15 @@
<script>
import { listEquInfo, getEquInfo, delEquInfo, addEquInfo, updateEquInfo } from "./api/device";
import {DICT_TYPE} from "@/utils/dict";
export default {
name: "EquInfo",
computed: {
DICT_TYPE() {
return DICT_TYPE
}
},
data() {
return {
//
@ -217,6 +238,7 @@
equModel: null,
equNumber: null,
nextCheckTime: null,
type: null
},
//
form: {},
@ -263,7 +285,8 @@
createTime: null,
createBy: null,
updateTime: null,
updateBy: null
updateBy: null,
type: null
};
this.resetForm("form");
},