|
@@ -323,7 +323,14 @@
|
|
|
},
|
|
|
|
|
|
submit() {
|
|
|
+
|
|
|
if (this.radio == 1) {
|
|
|
+ this.deptBudgetList.warehousePrivate =
|
|
|
+ CodeToText[this.selectedOptions[0]]
|
|
|
+ this.deptBudgetList.warehouseCity =
|
|
|
+ CodeToText[this.selectedOptions[1]]
|
|
|
+ this.deptBudgetList.warehouseArea =
|
|
|
+ CodeToText[this.selectedOptions[2]]
|
|
|
if (!this.deptBudgetList.warehouseName) {
|
|
|
this.$message({
|
|
|
message: '仓库名称不能为空!',
|
|
@@ -372,6 +379,13 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if (!this.deptBudgetList.warehousePrivate) {
|
|
|
+ this.$message({
|
|
|
+ message: '请选择仓库所在地!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.deptBudgetList.detailedAddress) {
|
|
|
this.$message({
|
|
|
message: '详细地址不能为空!',
|
|
@@ -528,12 +542,6 @@
|
|
|
if (valid) {
|
|
|
this.deptBudgetList.compId =
|
|
|
localStorage.getItem('ws-pf_compId')
|
|
|
- this.deptBudgetList.warehousePrivate =
|
|
|
- CodeToText[this.selectedOptions[0]]
|
|
|
- this.deptBudgetList.warehouseCity =
|
|
|
- CodeToText[this.selectedOptions[1]]
|
|
|
- this.deptBudgetList.warehouseArea =
|
|
|
- CodeToText[this.selectedOptions[2]]
|
|
|
this.deptBudgetList.warehousePositionInfoList =
|
|
|
this.freightspace
|
|
|
this.deptBudgetList.totalStorage = this.totalStorage
|