|
@@ -362,24 +362,30 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(!this.selectedOptions){
|
|
|
|
|
|
+ if(!this.deptBudgetList.personPhone){
|
|
this.$message({
|
|
this.$message({
|
|
- message: '仓库所在地不能为空!',
|
|
|
|
|
|
+ message: '负责人电话不能为空!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
- if(!this.deptBudgetList.detailedAddress){
|
|
|
|
|
|
+ if(this.deptBudgetList.personPhone.length != 11){
|
|
this.$message({
|
|
this.$message({
|
|
- message: '详细地址不能为空!',
|
|
|
|
|
|
+ message: '手机号输入有误!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(this.deptBudgetList.warehouseName.length < 2 || this.deptBudgetList.warehouseName.length > 20){
|
|
|
|
|
|
+ // if(!this.deptBudgetList.warehousePrivate){
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '仓库所在地不能为空!',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ if(!this.deptBudgetList.detailedAddress){
|
|
this.$message({
|
|
this.$message({
|
|
- message: '详细地址长度不符合要求!',
|
|
|
|
|
|
+ message: '详细地址不能为空!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -392,31 +398,6 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.warehouseName) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '仓库名称不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.warehouseName.length < 2 ||
|
|
|
|
- this.deptBudgetList.warehouseName.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '仓库名称长度不符合要求,请控制在2-20字符之内',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (this.deptBudgetList.personPhone.length > 11) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '手机号输入有误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
if (
|
|
if (
|
|
this.deptBudgetList.detailedAddress.length < 2 ||
|
|
this.deptBudgetList.detailedAddress.length < 2 ||
|
|
this.deptBudgetList.detailedAddress.length > 20
|
|
this.deptBudgetList.detailedAddress.length > 20
|
|
@@ -427,6 +408,7 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ // freightspace
|
|
for (var i = 0; i < this.freightspace.length; i++) {
|
|
for (var i = 0; i < this.freightspace.length; i++) {
|
|
for (var j = i + 1; j < this.freightspace.length; j++) {
|
|
for (var j = i + 1; j < this.freightspace.length; j++) {
|
|
console.log(
|
|
console.log(
|