基础信息 设备样式修改

master
A0010407 1 year ago
parent a2f49f57a1
commit aa148fcafe

@ -90,13 +90,13 @@
</el-table-column> </el-table-column>
<el-table-column label="设备名称" align="center" prop="equipmentName" /> <el-table-column label="设备名称" align="center" prop="equipmentName" />
<el-table-column label="规格型号" align="center" prop="equipmentSpec" /> <el-table-column label="规格型号" align="center" prop="equipmentSpec" />
<el-table-column label="设备类型编码" align="center" prop="equipmentTypeCode" width="100" /> <el-table-column label="设备类型编码" align="center" prop="equipmentTypeCode" width="120" />
<el-table-column label="设备类型名称" align="center" prop="equipmentTypeName" width="100"/> <el-table-column label="设备类型名称" align="center" prop="equipmentTypeName" width="120"/>
<el-table-column label="所属车间编码" align="center" prop="workshopCode" width="100"/> <el-table-column label="所属车间编码" align="center" prop="workshopCode" width="120"/>
<el-table-column label="所属车间名称" align="center" prop="workshopName" width="100"/> <el-table-column label="所属车间名称" align="center" prop="workshopName" width="120"/>
<el-table-column label="设备状态" align="center" prop="status"> <el-table-column label="设备状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.status == 1 ? "是" : "否" }} {{ scope.row.status == 1 ? "正常" : "停用" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单台能力工时" align="center" prop="unitWorkingHours" width="100"/> <el-table-column label="单台能力工时" align="center" prop="unitWorkingHours" width="100"/>
@ -266,10 +266,10 @@ export default {
}, },
options: [{ options: [{
status: "1", status: "1",
label: '' label: '正常'
}, { }, {
status: "0", status: "0",
label: '' label: '停用'
}], }],
// //
form: {}, form: {},
@ -280,27 +280,6 @@ export default {
], ],
equipmentName: [ equipmentName: [
{ required: true, message: "设备类型名称不能为空", trigger: "blur" } { required: true, message: "设备类型名称不能为空", trigger: "blur" }
],
equipmentTypeId: [
{ required: true, message: "设备类型ID不能为空", trigger: "blur" }
],
workshopId: [
{ required: true, message: "所属车间ID不能为空", trigger: "blur" }
],
status: [
{ required: true, message: "设备状态不能为空", trigger: "change" }
],
unitWorkingHours: [
{ required: true, message: "单台能力工时不能为空", trigger: "blur" }
],
workshopSection: [
{ required: true, message: "工段不能为空", trigger: "blur" }
],
equipmentLocation: [
{ required: true, message: "设备位置不能为空", trigger: "blur" }
],
hourlyUnitPrice: [
{ required: true, message: "工时单价不能为空", trigger: "blur" }
] ]
} }
}; };

Loading…
Cancel
Save