Commit 547e45c0 authored by zhengke's avatar zhengke

修改

parent 3376e932
...@@ -876,7 +876,7 @@ ...@@ -876,7 +876,7 @@
this.list.forEach(item => { this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => { item.HotelOrderList.forEach(subItem => {
if(isUpload&&subItem.PayStyle==1&&subItem.ContractUrl==''){ if(isUpload&&subItem.PayStyle==1&&subItem.ContractUrl==''){
str+="" str+=`请上传${item.UseTimeStr}的手配书`
isUpload=false; isUpload=false;
} }
subItem.OrderDetailsList.forEach((y, sIndex) => { subItem.OrderDetailsList.forEach((y, sIndex) => {
...@@ -907,8 +907,10 @@ ...@@ -907,8 +907,10 @@
} }
}); });
}) })
if(!isUpload){
if(flag){ this.Error(str);
return;
}
this.loading = true; this.loading = true;
this.apipost('dmcstatistics_get_SetHotelOrder', this.list, res => { this.apipost('dmcstatistics_get_SetHotelOrder', this.list, res => {
this.loading = false; this.loading = false;
...@@ -919,19 +921,20 @@ ...@@ -919,19 +921,20 @@
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
}
}, },
//单条保存 //单条保存
SaveSingle(item) { SaveSingle(item) {
item.HotelOrderState = 1; item.HotelOrderState = 1;
var flag=true; var flag=true;
var isUpload=true;
var str="";
this.list.forEach(item => { this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => { item.HotelOrderList.forEach(subItem => {
subItem.OrderDetailsList.forEach(y => { if(isUpload&&subItem.PayStyle==1&&subItem.ContractUrl==''){
if(subItem.CurrencyId==3&&subItem.ContractUrl==''){ str+=`请上传${item.UseTimeStr}的手配书`
this.Error('请上传手配书'); isUpload=false;
flag=false;
} }
subItem.OrderDetailsList.forEach(y => {
if (y.HouseTypeCount) { if (y.HouseTypeCount) {
y.HouseTypeCount = parseFloat(y.HouseTypeCount); y.HouseTypeCount = parseFloat(y.HouseTypeCount);
} else { } else {
...@@ -960,7 +963,10 @@ ...@@ -960,7 +963,10 @@
} }
}); });
}) })
if(flag){ if(!isUpload){
this.Error(str);
return;
}
let mag = { let mag = {
TotalList: this.list, TotalList: this.list,
SingleItem: item SingleItem: item
...@@ -973,7 +979,6 @@ ...@@ -973,7 +979,6 @@
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
}
}, },
// 获取供应商 // 获取供应商
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment