Commit df873366 authored by zhengke's avatar zhengke

修改

parent 389abd58
......@@ -164,7 +164,7 @@
<tr>
<td colspan="2">
<p style="padding-top: 5px;">
<a v-if="subItem.ContractUrl" target="_blank" :href="subItem.ContractUrl">手配书</a>
<a v-if="subItem.ContractUrl" target="_blank" style="color:green" :href="subItem.ContractUrl">已上传手配书</a>
</p>
<el-upload :http-request="uploadFileBtnS" :multiple="false" :show-file-list="false" action=''>
<el-button size="small" type="danger" @click='getItem(index, subIndex)'>
......@@ -870,8 +870,13 @@
});
})
}
var flag=true;
this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => {
if(subItem.CurrencyId==3&&subItem.ContractUrl==''){
this.Error('请上传手配书');
flag=false;
}
subItem.OrderDetailsList.forEach((y, sIndex) => {
if (y.HouseTypeCount) {
y.HouseTypeCount = parseFloat(y.HouseTypeCount);
......@@ -900,6 +905,7 @@
}
});
})
if(flag){
this.loading = true;
this.apipost('dmcstatistics_get_SetHotelOrder', this.list, res => {
this.loading = false;
......@@ -910,13 +916,19 @@
this.Error(res.data.message);
}
}, err => {})
}
},
//单条保存
SaveSingle(item) {
item.HotelOrderState = 1;
var flag=true;
this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => {
subItem.OrderDetailsList.forEach(y => {
if(subItem.CurrencyId==3&&subItem.ContractUrl==''){
this.Error('请上传手配书');
flag=false;
}
if (y.HouseTypeCount) {
y.HouseTypeCount = parseFloat(y.HouseTypeCount);
} else {
......@@ -945,6 +957,7 @@
}
});
})
if(flag){
let mag = {
TotalList: this.list,
SingleItem: item
......@@ -957,6 +970,7 @@
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