|
@@ -479,7 +479,11 @@
|
|
|
// if(this.deptBudgetList.addressUrl){
|
|
|
// this.fileList = this._getFileList(this.deptBudgetList.addressUrl)
|
|
|
// }
|
|
|
- this.addressUrls = this.deptBudgetList.addressUrl.split(',')
|
|
|
+ if(this.deptBudgetList.addressUrl){
|
|
|
+ this.addressUrls = this.deptBudgetList.addressUrl.split(',')
|
|
|
+ }else{
|
|
|
+ this.addressUrls = []
|
|
|
+ }
|
|
|
this.deptBudgetList.otherPersonPhone = this.deptBudgetList.otherPersonPhone.split(',')
|
|
|
this.addressUrls.pop()
|
|
|
})
|
|
@@ -557,6 +561,20 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if (!this.deptBudgetList.addressUrl) {
|
|
|
+ this.$message({
|
|
|
+ message: '附件不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.warehousePositioning) {
|
|
|
+ this.$message({
|
|
|
+ message: '仓库定位不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (this.warehouseType == 1) {
|
|
|
if (this.totalStorage <= 0) {
|
|
|
this.$message({
|