设备增加附属属性

master
A0010407 1 year ago
parent f8dbdb1958
commit 88e279446a

@ -229,6 +229,137 @@
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<!-- 查询设备管理对话框 -->
<el-dialog :title="title" :visible.sync="queryOpen" width="1000px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-divider content-position="center">主属性</el-divider>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="设备编码" prop="equipmentCode">
<el-input v-model="form.equipmentCode" placeholder="" disabled/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设备名称" prop="equipmentName">
<el-input v-model="form.equipmentName" placeholder="" disabled/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="规格型号" prop="equipmentSpec">
<el-input v-model="form.equipmentSpec" placeholder="" disabled/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设备类型" prop="equipmentTypeCode">
<el-select v-model="form.equipmentTypeCode" placeholder="" style="width:355px" disabled>
<el-option
v-for="dict in dict.type.equ_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="所属工作中心" prop="workshopName">
<el-input v-model="form.workshopName" placeholder="" disabled/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工作中心编码" prop="workshopCode">
<el-input v-model="form.workshopCode" placeholder="" disabled/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="单台能力工时" prop="unitWorkingHours">
<el-input v-model="form.unitWorkingHours" placeholder="" disabled/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工段" prop="workshopSection">
<el-input v-model="form.workshopSection" placeholder="" disabled/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="设备位置" prop="equipmentLocation">
<el-input v-model="form.equipmentLocation" placeholder="" disabled/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工时单价" prop="hourlyUnitPrice">
<el-input v-model="form.hourlyUnitPrice" placeholder="" disabled/>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="设备状态" prop="status" >
<el-select v-model="form.status" placeholder="" @change="$forceUpdate()" clearable style="width:350px" disabled>
<el-option v-for="item in options" :key="item.status" :label="item.label" :value="item.status"></el-option>
</el-select>
</el-form-item>
<el-divider content-position="center">附属属性</el-divider>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="成型机存料状态" prop="starving">
<el-input v-model="form.starving" placeholder="" disabled/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="成型机存放物料" prop="material">
<el-input v-model="form.material" placeholder="" disabled/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="烘房是否开门" prop="isOpen">
<el-input v-model="form.isopen" placeholder="" disabled/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="烘房湿度" prop="humidity">
<el-input v-model="form.humidity" placeholder="" disabled/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="烘房压强" prop="intensityOfPressure">
<el-input v-model="form.intensityOfPressure" placeholder="" disabled/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="烘房温度" prop="temperature">
<el-input v-model="form.temperature" placeholder="" disabled/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="烘房前小车数量" prop="dollyNumber">
<el-input v-model="form.dollyNumber" placeholder="" disabled/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="烘房状态" prop="state">
<el-input v-model="form.state" placeholder="" disabled/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="queryCancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
@ -261,6 +392,7 @@ export default {
title: "",
//
open: false,
queryOpen: false,
//
queryParams: {
pageNum: 1,
@ -330,6 +462,11 @@ export default {
this.open = false;
this.reset();
},
//
queryCancel() {
this.queryOpen = false;
this.reset();
},
//
reset() {
this.form = {
@ -406,9 +543,12 @@ export default {
handleView(row){
this.reset();
const equipmentId = row.equipmentId || this.ids;
getWorkCenterList().then(response =>{
console.log(this.options1);
});
getEquipment(equipmentId).then(response => {
this.form = response.data;
this.open = true;
this.queryOpen = true;
this.title = "查看设备信息";
this.optType = "view";
});

Loading…
Cancel
Save