|
|
|
@ -1,47 +1,46 @@ |
|
|
|
<template> |
|
|
|
<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-form :inline="true" label-position="top" label-width="80px"> |
|
|
|
<!-- --> |
|
|
|
<el-form :inline="true" label-position="top" label-width="80px" :rules="rules"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="设备编码:" > |
|
|
|
<el-input v-model="pageData.objectID" :disabled="readOnlyFlag" style="width: 120px;" > |
|
|
|
</el-input > |
|
|
|
<el-form-item class="customer-item" label="设备编码:" prop="sellType" :rules="rules.sellType"> |
|
|
|
<el-input v-model="pageData.objectID" :disabled="readOnlyFlag" style="width: 120px;" > |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="设备名称" > |
|
|
|
<el-input v-model="pageData.objectDesc" style="width: 120px;" ></el-input> |
|
|
|
<el-form-item class="customer-item" label="设备名称" prop="sellType" :rules="rules.sellType"> |
|
|
|
<el-input v-model="pageData.objectDesc" style="width: 120px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="在用" > |
|
|
|
<el-select v-model="pageData.active" style="width: 120px;" > |
|
|
|
<el-form-item class="customer-item" label="在用"> |
|
|
|
<el-select v-model="pageData.active" style="width: 120px;"> |
|
|
|
<el-option label="是" value="Y"></el-option> |
|
|
|
<el-option label="否" value="N"></el-option> |
|
|
|
</el-select > |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item"> |
|
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
<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-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item"> |
|
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
<span slot="label" style="" @click="getBaseList(1027)"><a herf="#">分类:</a></span> |
|
|
|
<el-input v-model="pageData.familyDesc" style="width: 120px;" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item"> |
|
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
<span slot="label" style="" @click="getBaseList(1028)"><a herf="#">分组:</a></span> |
|
|
|
<el-input v-model="pageData.groupDesc" style="width: 120px;" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -51,7 +50,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item"> |
|
|
|
<span slot="label" style="" @click="getBaseList(1029)"><a herf="#">供应商:</a></span> |
|
|
|
<el-input v-model="pageData.supplierName" style="width: 120px;" > |
|
|
|
<el-input v-model="pageData.supplierName" style="width: 120px;" > |
|
|
|
</el-input > |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -64,28 +63,26 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="序列号:" > |
|
|
|
<el-input v-model="pageData.seqNo" style="width: 120px;" ></el-input> |
|
|
|
<el-form-item class="customer-item" label="序列号:"> |
|
|
|
<el-input v-model="pageData.seqNo" style="width: 120px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="购入日期:" > |
|
|
|
<el-date-picker class="el-time-width" style="width: 120px;" |
|
|
|
v-model="pageData.purchessDate" |
|
|
|
value-format="yyyy-MM-dd hh:mm:ss"> |
|
|
|
<el-form-item class="customer-item" label="购入日期:"> |
|
|
|
<el-date-picker class="el-time-width" style="width: 120px;" v-model="pageData.purchessDate" value-format="yyyy-MM-dd hh:mm:ss"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" > |
|
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
<span slot="label" style="" @click="getBaseList(203)"><a herf="#">机台编号:</a></span> |
|
|
|
<el-input v-model="pageData.resourceDesc" style="width: 120px;" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" > |
|
|
|
<el-form-item class="customer-item" prop="sellType" :rules="rules.sellType"> |
|
|
|
<span slot="label" style="" @click="getBaseList(1044)"><a herf="#">所属部门:</a></span> |
|
|
|
<el-input v-model="pageData.deptID" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -159,6 +156,15 @@ export default { |
|
|
|
}, |
|
|
|
readOnlyFlag: false, |
|
|
|
dataListLoading: false, |
|
|
|
rules:{ |
|
|
|
sellType:[ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: '区域不能为空', |
|
|
|
trigger: 'change' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -195,26 +201,22 @@ export default { |
|
|
|
this.$message.success("设备编码不能为空!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
// if(this.pageData.locationID == null || this.pageData.locationID === ''){ |
|
|
|
// this.$message.success("区域不能为空!"); |
|
|
|
// return false; |
|
|
|
// } |
|
|
|
// if(this.pageData.groupID == null || this.pageData.groupID === ''){ |
|
|
|
// this.$message.success("分组不能为空!"); |
|
|
|
// return false; |
|
|
|
// } |
|
|
|
// if(this.pageData.familyID == null || this.pageData.familyID === ''){ |
|
|
|
// this.$message.success("分类不能为空!"); |
|
|
|
// return false; |
|
|
|
// } |
|
|
|
// if(this.pageData.supplierID == null || this.pageData.supplierID === ''){ |
|
|
|
// this.$message.success("供应商不能为空!"); |
|
|
|
// return false; |
|
|
|
// } |
|
|
|
// if(this.pageData.manufacturerID == null || this.pageData.manufacturerID === ''){ |
|
|
|
// this.$message.success("制造商不能为空!"); |
|
|
|
// return false; |
|
|
|
// } |
|
|
|
if(this.pageData.objectDesc == null || this.pageData.objectDesc === ''){ |
|
|
|
this.$message.success("设备名称不能为空!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if(this.pageData.locationID == null || this.pageData.locationID === ''){ |
|
|
|
this.$message.success("区域不能为空!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if(this.pageData.groupID == null || this.pageData.groupID === ''){ |
|
|
|
this.$message.success("分组不能为空!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if(this.pageData.familyID == null || this.pageData.familyID === ''){ |
|
|
|
this.$message.success("分类不能为空!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if(this.pageData.resourceID == null || this.pageData.resourceID === ''){ |
|
|
|
this.$message.success("机台不能为空!"); |
|
|
|
return false; |
|
|
|
|