基础信息-机台

yangwl
A0010407 1 year ago
parent 3fe2ac9d75
commit da52c668f8

@ -75,6 +75,7 @@
<el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号"></el-table-column> <el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号"></el-table-column>
<el-table-column label="机台编码" align="center" prop="machineryCode" /> <el-table-column label="机台编码" align="center" prop="machineryCode" />
<el-table-column label="机台名称" align="center" prop="machineryName" /> <el-table-column label="机台名称" align="center" prop="machineryName" />
<el-table-column label="设备类型" align="center" prop="machineryTypeCode" />
<el-table-column label="创建时间" align="center" prop="createTime" /> <el-table-column label="创建时间" align="center" prop="createTime" />
<el-table-column label="创建人" align="center" prop="createBy" /> <el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column prop="status" label="是否启用" align="center" > <el-table-column prop="status" label="是否启用" align="center" >
@ -113,41 +114,36 @@
<!-- 添加或修改机台管理对话框 --> <!-- 添加或修改机台管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="机台编码" prop="machineryCode"> <el-form-item label="机台编码" prop="machineryCode" style="width:400px">
<el-input v-model="form.machineryCode" placeholder="请输入机台类型编码" /> <el-input v-model="form.machineryCode" placeholder="请输入机台类型编码" />
</el-form-item> </el-form-item>
<el-form-item label="机台名称" prop="machineryName"> <el-form-item label="机台名称" prop="machineryName" style="width:400px">
<el-input v-model="form.machineryName" placeholder="请输入机台类型名称" /> <el-input v-model="form.machineryName" placeholder="请输入机台类型名称" />
</el-form-item> </el-form-item>
<el-form-item label="品牌" prop="machineryBrand"> <el-form-item label="品牌" prop="machineryBrand" style="width:400px">
<el-input v-model="form.machineryBrand" placeholder="请输入品牌" /> <el-input v-model="form.machineryBrand" placeholder="请输入品牌" />
</el-form-item> </el-form-item>
<el-form-item label="规格型号" prop="machinerySpec"> <el-form-item label="规格型号" prop="machinerySpec" style="width:400px">
<el-input v-model="form.machinerySpec" placeholder="请输入规格型号" /> <el-input v-model="form.machinerySpec" placeholder="请输入规格型号" />
</el-form-item> </el-form-item>
<el-form-item label="机台类型ID" prop="machineryTypeId"> <el-form-item label="设备类型" prop="machineryTypeCode">
<el-input v-model="form.machineryTypeId" placeholder="请输入机台类型ID" /> <el-select v-model="form.machineryTypeCode" placeholder="请选择设备类型" style="width:300px">
</el-form-item> <el-option
<el-form-item label="机台类型编码" prop="machineryTypeCode"> v-for="dict in dict.type.equ_type"
<el-input v-model="form.machineryTypeCode" placeholder="请输入机台类型编码" /> :key="dict.value"
</el-form-item> :label="dict.label"
<el-form-item label="机台类型名称" prop="machineryTypeName"> :value="dict.value"
<el-input v-model="form.machineryTypeName" placeholder="请输入机台类型名称" /> ></el-option>
</el-form-item> </el-select>
<el-form-item label="所属线体ID" prop="workshopId">
<el-input v-model="form.workshopId" placeholder="请输入所属车间ID" />
</el-form-item> </el-form-item>
<el-form-item label="所属线体编码" prop="workshopCode"> <el-form-item label="所属线体编码" prop="workshopCode" style="width:400px">
<el-input v-model="form.workshopCode" placeholder="请输入所属车间编码" /> <el-input v-model="form.workshopCode" placeholder="请输入所属车间编码" />
</el-form-item> </el-form-item>
<el-form-item label="机台产能" prop=""> <el-form-item label="所属车间名称" prop="workshopName" style="width:400px">
<el-input v-model="form.workshopCode" placeholder="" />
</el-form-item>
<el-form-item label="所属车间名称" prop="workshopName">
<el-input v-model="form.workshopName" placeholder="请输入所属车间名称" /> <el-input v-model="form.workshopName" placeholder="请输入所属车间名称" />
</el-form-item> </el-form-item>
<el-form-item label="是否启用" prop="status"> <el-form-item label="是否启用" prop="status" style="width:400px">
<el-select v-model="form.status" placeholder="请选择是否启用" @change="$forceUpdate()" clearable> <el-select v-model="form.status" placeholder="请选择是否启用" @change="$forceUpdate()" clearable style="width:300px">
<el-option v-for="item in options" :key="item.status" :label="item.label" :value="item.status"></el-option> <el-option v-for="item in options" :key="item.status" :label="item.label" :value="item.status"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -166,6 +162,7 @@ import { listMachinery, getMachinery, delMachinery, addMachinery, updateMachiner
export default { export default {
name: "Machinery", name: "Machinery",
dicts: ['sys_normal_disable', 'equ_type'],
data() { data() {
return { return {
// //
@ -220,15 +217,6 @@ export default {
machineryCode: [ machineryCode: [
{ required: true, message: "机台类型编码不能为空", trigger: "blur" } { required: true, message: "机台类型编码不能为空", trigger: "blur" }
], ],
machineryName: [
{ required: true, message: "机台类型名称不能为空", trigger: "blur" }
],
machineryTypeId: [
{ required: true, message: "机台类型ID不能为空", trigger: "blur" }
],
workshopId: [
{ required: true, message: "所属车间ID不能为空", trigger: "blur" }
],
status: [ status: [
{ required: true, message: "机台状态不能为空", trigger: "change" } { required: true, message: "机台状态不能为空", trigger: "change" }
], ],
@ -239,6 +227,10 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
//
indexMethod(index){
return index+1 ;
},
/** 查询机台管理列表 */ /** 查询机台管理列表 */
getList() { getList() {
this.loading = true; this.loading = true;

Loading…
Cancel
Save