|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="108px">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="98px">
|
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.equipmentCode"
|
|
|
|
@ -17,13 +17,16 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备类型编码" prop="equipmentTypeCode">
|
|
|
|
|
<el-input
|
|
|
|
|
<el-form-item label="设备类型" prop="equipmentTypeCode">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.equipmentTypeCode"
|
|
|
|
|
placeholder="请输入设备类型编码"
|
|
|
|
|
placeholder="请选择设备类型"
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
style="width:205px"
|
|
|
|
|
@keyup.enter.native="handleQuery">
|
|
|
|
|
<el-option v-for="item in equipmentTypeOption" :key="item.equipmentTypeCode" :label="item.equipmentTypeName" :value="item.equipmentTypeCode"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
@ -97,8 +100,8 @@
|
|
|
|
|
>{{scope.row.equipmentCode}}</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="设备名称" align="center" prop="equipmentName" />
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="equipmentSpec" />
|
|
|
|
|
<el-table-column label="设备名称" align="center" prop="equipmentName" width="120"/>
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="equipmentSpec" width="120"/>
|
|
|
|
|
<el-table-column label="设备类型编码" align="center" prop="equipmentTypeCode" width="120" />
|
|
|
|
|
<el-table-column label="设备类型名称" align="center" prop="equipmentTypeName" width="120"/>
|
|
|
|
|
<el-table-column label="所属工作中心编码" align="center" prop="workshopCode" width="150"/>
|
|
|
|
@ -391,13 +394,14 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listEquipment, getEquipment, delEquipment, addEquipment, updateEquipment} from "@/api/wms/equipment";
|
|
|
|
|
import { listEquipment, getEquipment, delEquipment, addEquipment, updateEquipment,getEquipmentTypeList} from "@/api/wms/equipment";
|
|
|
|
|
import { getWorkCenterList,listFactory} from "@/api/wms/factory";
|
|
|
|
|
export default {
|
|
|
|
|
name: "Equipment",
|
|
|
|
|
dicts: ['sys_normal_disable', 'equ_type'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
equipmentTypeOption:[],
|
|
|
|
|
workCenter:[],
|
|
|
|
|
options1: [],
|
|
|
|
|
value: '',
|
|
|
|
@ -466,8 +470,17 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getEquipmentType();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 查询设备分类 */
|
|
|
|
|
getEquipmentType() {
|
|
|
|
|
getEquipmentTypeList().then(response => {
|
|
|
|
|
console.log(response.rows);
|
|
|
|
|
this.equipmentTypeOption = response.rows;
|
|
|
|
|
console.log(this.treeData1);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
selectWorkCenter(){
|
|
|
|
|
this.form.workshopCode = this.form.workCenter;
|
|
|
|
|
},
|
|
|
|
|