|
|
@ -1,16 +1,16 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="customer-css"> |
|
|
<div class="customer-css"> |
|
|
<el-dialog :title="titleCon" :close-on-click-modal="false" :visible.sync="visible" width="360px" style="height: 520px;" class="customer-dialog"> |
|
|
<el-dialog :title="titleCon" :close-on-click-modal="false" :visible.sync="visible" width="360px" style="height: 520px;" class="customer-dialog"> |
|
|
<el-form :inline="true" label-position="top" label-width="80px" :rules="rules"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="80px" :model="pageData" :rules="rules"> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" label="设备编码:" prop="sellType" :rules="rules.sellType"> |
|
|
|
|
|
|
|
|
<el-form-item class="customer-item" label="设备编码:" prop="objectID" :rules="rules.objectIdType"> |
|
|
<el-input v-model="pageData.objectID" :disabled="readOnlyFlag" style="width: 120px;" > |
|
|
<el-input v-model="pageData.objectID" :disabled="readOnlyFlag" style="width: 120px;" > |
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" label="设备名称" prop="sellType" :rules="rules.sellType"> |
|
|
|
|
|
|
|
|
<el-form-item class="customer-item" label="设备名称" prop="objectDesc" :rules="rules.objectDescType"> |
|
|
<el-input v-model="pageData.objectDesc" style="width: 120px;"></el-input> |
|
|
<el-input v-model="pageData.objectDesc" style="width: 120px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -25,7 +25,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
|
|
|
|
|
<el-form-item class="customer-item" prop="locationName" :rules="rules.locationType"> |
|
|
<span slot="label" style="" @click="getBaseList(1026)"><a herf="#">区域:</a></span> |
|
|
<span slot="label" style="" @click="getBaseList(1026)"><a herf="#">区域:</a></span> |
|
|
<el-input v-model="pageData.locationName" style="width: 120px;"> |
|
|
<el-input v-model="pageData.locationName" style="width: 120px;"> |
|
|
</el-input > |
|
|
</el-input > |
|
|
@ -34,13 +34,13 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
|
|
|
|
|
<el-form-item class="customer-item" prop="familyDesc" :rules="rules.familyType"> |
|
|
<span slot="label" style="" @click="getBaseList(1027)"><a herf="#">分类:</a></span> |
|
|
<span slot="label" style="" @click="getBaseList(1027)"><a herf="#">分类:</a></span> |
|
|
<el-input v-model="pageData.familyDesc" style="width: 120px;" ></el-input> |
|
|
<el-input v-model="pageData.familyDesc" style="width: 120px;" ></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
|
|
|
|
|
<el-form-item class="customer-item" prop="groupDesc" :rules="rules.groupType"> |
|
|
<span slot="label" style="" @click="getBaseList(1028)"><a herf="#">分组:</a></span> |
|
|
<span slot="label" style="" @click="getBaseList(1028)"><a herf="#">分组:</a></span> |
|
|
<el-input v-model="pageData.groupDesc" style="width: 120px;" ></el-input> |
|
|
<el-input v-model="pageData.groupDesc" style="width: 120px;" ></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -76,13 +76,13 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
|
|
|
|
|
<el-form-item class="customer-item" prop="resourceDesc" :rules="rules.resourceType"> |
|
|
<span slot="label" style="" @click="getBaseList(203)"><a herf="#">机台编号:</a></span> |
|
|
<span slot="label" style="" @click="getBaseList(203)"><a herf="#">机台编号:</a></span> |
|
|
<el-input v-model="pageData.resourceDesc" style="width: 120px;" ></el-input> |
|
|
<el-input v-model="pageData.resourceDesc" style="width: 120px;" ></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
|
|
|
|
|
<el-form-item class="customer-item" prop="deptID" :rules="rules.deptType"> |
|
|
<span slot="label" style="" @click="getBaseList(1044)"><a herf="#">所属部门:</a></span> |
|
|
<span slot="label" style="" @click="getBaseList(1044)"><a herf="#">所属部门:</a></span> |
|
|
<el-input v-model="pageData.deptID" style="width: 120px"></el-input> |
|
|
<el-input v-model="pageData.deptID" style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -157,13 +157,55 @@ export default { |
|
|
readOnlyFlag: false, |
|
|
readOnlyFlag: false, |
|
|
dataListLoading: false, |
|
|
dataListLoading: false, |
|
|
rules:{ |
|
|
rules:{ |
|
|
sellType:[ |
|
|
|
|
|
|
|
|
objectIdType:[ |
|
|
{ |
|
|
{ |
|
|
required: true, |
|
|
required: true, |
|
|
message: '区域不能为空', |
|
|
|
|
|
|
|
|
message: ' ', |
|
|
trigger: 'change' |
|
|
trigger: 'change' |
|
|
} |
|
|
} |
|
|
] |
|
|
|
|
|
|
|
|
], |
|
|
|
|
|
objectDescType:[ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
locationType:[ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
familyType:[ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
groupType:[ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
resourceType:[ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
deptType:[ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|