|
|
@ -17,11 +17,11 @@ |
|
|
|
|
|
|
|
<el-card class="box-card"> |
|
|
|
<div class="item"> |
|
|
|
<span class="item_text">仓库名称:</span> |
|
|
|
<span class="item_text"><span class="must">*</span> 仓库名称:</span> |
|
|
|
<el-input v-model="formobj.warehouseName" placeholder="仓库名称" class="item_input" clearable /> |
|
|
|
</div> |
|
|
|
<div class="item"> |
|
|
|
<span class="item_text">仓库编码:</span> |
|
|
|
<span class="item_text"><span class="must">*</span> 仓库编码:</span> |
|
|
|
<el-input v-model="formobj.warehouseCode" placeholder="仓库编码" class="item_input" clearable |
|
|
|
oninput="value=value.replace(/[^A-Za-z0-9]/g, '')" /> |
|
|
|
</div> |
|
|
@ -56,20 +56,21 @@ |
|
|
|
<el-input v-model="formobj.latitude" placeholder="仓库纬度" class="item_input" clearable /> |
|
|
|
</div> |
|
|
|
<div class="item"> |
|
|
|
<span class="item_text">具体地址:</span> |
|
|
|
<span class="item_text"><span class="must">*</span> 具体地址:</span> |
|
|
|
<el-input v-model="formobj.address" placeholder="具体地址" class="item_input" clearable /> |
|
|
|
</div> |
|
|
|
<div class="item"> |
|
|
|
<span class="item_text">使用状态:</span> |
|
|
|
<span class="item_text"><span class="must">*</span> 使用状态:</span> |
|
|
|
<el-radio-group v-model="formobj.usageStatus" size="small" @change="changeTheme" class="item_input"> |
|
|
|
<el-radio :label="1">正常</el-radio> |
|
|
|
<el-radio :label="0">停用</el-radio> |
|
|
|
<el-radio :label="'1'">正常</el-radio> |
|
|
|
<el-radio :label="'0'">停用</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
<!-- <el-input v-model="formobj.usageStatus" placeholder="仓库排序" class="item_input" clearable /> --> |
|
|
|
</div> |
|
|
|
<div class="item"> |
|
|
|
<span class="item_text">仓库排序:</span> |
|
|
|
<el-input v-model="formobj.sortNo" placeholder="仓库排序" class="item_input" clearable /> |
|
|
|
<span class="item_text"><span class="must">*</span> 仓库排序:</span> |
|
|
|
<el-input v-model="formobj.sortNo" placeholder="仓库排序" class="item_input" clearable |
|
|
|
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" /> |
|
|
|
</div> |
|
|
|
<div class="item"> |
|
|
|
<span class="item_text">仓库备注:</span> |
|
|
@ -99,7 +100,7 @@ |
|
|
|
manager: '', |
|
|
|
longitude: '', |
|
|
|
latitude: '', |
|
|
|
usageStatus: "", |
|
|
|
usageStatus: "1", |
|
|
|
address: '', |
|
|
|
squareMeter: '', |
|
|
|
sortNo: '', |
|
|
@ -123,7 +124,7 @@ |
|
|
|
if (this.formobj.warehouseName == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'error', |
|
|
|
type: 'warning', |
|
|
|
message: '仓库名称不能为空' |
|
|
|
}) |
|
|
|
return |
|
|
@ -132,12 +133,39 @@ |
|
|
|
if (this.formobj.warehouseCode == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'error', |
|
|
|
type: 'warning', |
|
|
|
message: '仓库编码不能为空' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if (this.formobj.address == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'warning', |
|
|
|
message: '具体地址不能为空' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if (this.formobj.usageStatus == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'warning', |
|
|
|
message: '使用状态不能为空' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if (this.formobj.sortNo == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'warning', |
|
|
|
message: '排序不能为空' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
req.saveWarehouse(this.formobj) |
|
|
|
.then(resp => { |
|
|
@ -166,7 +194,7 @@ |
|
|
|
manager: '', |
|
|
|
longitude: '', |
|
|
|
latitude: '', |
|
|
|
usageStatus: "", |
|
|
|
usageStatus: "1", |
|
|
|
address: '', |
|
|
|
squareMeter: '', |
|
|
|
sortNo: '', |
|
|
@ -222,6 +250,10 @@ |
|
|
|
flex: 0.8; |
|
|
|
font-size: 18px; |
|
|
|
text-align: right; |
|
|
|
|
|
|
|
.must { |
|
|
|
color: #f00; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.item_input { |
|
|
|