|
|
|
@ -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,14 +17,17 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备类型编码" prop="equipmentTypeCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.equipmentTypeCode"
|
|
|
|
|
placeholder="请输入设备类型编码"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备类型" prop="equipmentTypeCode">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.equipmentTypeCode"
|
|
|
|
|
placeholder="请选择设备类型"
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
clearable
|
|
|
|
|
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>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
@ -85,7 +88,8 @@
|
|
|
|
|
width="90"
|
|
|
|
|
align="center"
|
|
|
|
|
:index="indexMethod"
|
|
|
|
|
label="序号">
|
|
|
|
|
label="序号"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="设备编码" align="center" prop="equipmentCode">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -96,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"/>
|
|
|
|
@ -113,7 +117,7 @@
|
|
|
|
|
<el-table-column label="工段" align="center" prop="workshopSection" />
|
|
|
|
|
<el-table-column label="设备位置" align="center" prop="equipmentLocation" />
|
|
|
|
|
<el-table-column label="工时单价" align="center" prop="hourlyUnitPrice" />
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
@ -390,15 +394,16 @@
|
|
|
|
|
</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 {
|
|
|
|
|
workCenter:[],
|
|
|
|
|
options1: [],
|
|
|
|
|
equipmentTypeOption:[],
|
|
|
|
|
workCenter:[],
|
|
|
|
|
options1: [],
|
|
|
|
|
value: '',
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
@ -465,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;
|
|
|
|
|
},
|
|
|
|
|