Commit 547e45c0 authored by zhengke's avatar zhengke

修改

parent 3376e932
......@@ -876,7 +876,7 @@
this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => {
if(isUpload&&subItem.PayStyle==1&&subItem.ContractUrl==''){
str+=""
str+=`请上传${item.UseTimeStr}的手配书`
isUpload=false;
}
subItem.OrderDetailsList.forEach((y, sIndex) => {
......@@ -907,8 +907,10 @@
}
});
})
if(flag){
if(!isUpload){
this.Error(str);
return;
}
this.loading = true;
this.apipost('dmcstatistics_get_SetHotelOrder', this.list, res => {
this.loading = false;
......@@ -919,19 +921,20 @@
this.Error(res.data.message);
}
}, err => {})
}
},
//单条保存
SaveSingle(item) {
item.HotelOrderState = 1;
var flag=true;
var isUpload=true;
var str="";
this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => {
subItem.OrderDetailsList.forEach(y => {
if(subItem.CurrencyId==3&&subItem.ContractUrl==''){
this.Error('请上传手配书');
flag=false;
if(isUpload&&subItem.PayStyle==1&&subItem.ContractUrl==''){
str+=`请上传${item.UseTimeStr}的手配书`
isUpload=false;
}
subItem.OrderDetailsList.forEach(y => {
if (y.HouseTypeCount) {
y.HouseTypeCount = parseFloat(y.HouseTypeCount);
} else {
......@@ -960,7 +963,10 @@
}
});
})
if(flag){
if(!isUpload){
this.Error(str);
return;
}
let mag = {
TotalList: this.list,
SingleItem: item
......@@ -973,7 +979,6 @@
this.Error(res.data.message);
}
}, 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