zhangyuewww 3 years ago
parent
commit
518d47ff92
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/views/warehouse/warehouseManagementAdd.vue

+ 2 - 3
src/views/warehouse/warehouseManagementAdd.vue

@@ -448,8 +448,7 @@
             .then(() => {
               this.$refs.deptBudgetList.validate((valid) => {
                 if (valid) {
-                  // this.deptBudgetList.otherPersonCharge=this.deptBudgetList.otherPersonCharge.toString()
-                  this.deptBudgetList.otherPersonPhone = this.deptBudgetList.otherPersonPhone.toString()
+                  this.deptBudgetList.otherPersonPhone =this.deptBudgetList.otherPersonPhone?this.deptBudgetList.otherPersonPhone.toString():''
                   this.deptBudgetList.compId =
                     localStorage.getItem('ws-pf_compId')
                   this.deptBudgetList.warehousePositionInfoList =
@@ -552,7 +551,7 @@
                   this.deptBudgetList.warehousePositionInfoList =
                     this.freightspace
                   this.deptBudgetList.totalStorage = this.totalStorage
-                  this.deptBudgetList.otherPersonPhone = this.deptBudgetList.otherPersonPhone.toString()
+                  this.deptBudgetList.otherPersonPhone =this.deptBudgetList.otherPersonPhone?this.deptBudgetList.otherPersonPhone.toString():''
                   if (this.radio == 2) {
                     this.deptBudgetList.warehousetype == 2
                   }