Commit 95af1d2a authored by zhengke's avatar zhengke

增加保存

parent 0ebe348b
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
</li> </li>
<li style="position:absolute;right:10px;top:0;"> <li style="position:absolute;right:10px;top:0;">
<input type="button" class="normalBtn" value="查询" @click="getList()" /> <input type="button" class="normalBtn" value="查询" @click="getList()" />
<input type="button" class="normalBtn" value="下载" @click="DownLoadHotel()" /> <input type="button" class="normalBtn" value="下载" style="display:none;" @click="DownLoadHotel()" />
</li> </li>
</ul> </ul>
</div> </div>
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle"> <div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle">
<div style="font-size:12px;padding:2px 4px 3px 20px;"> <div style="font-size:12px;padding:2px 4px 3px 20px;">
<div style="display:inline-block;color:red">注意事项:每次导出数据最好不要超过一个月。</div> <div style="display:inline-block;color:red;display:none">注意事项:每次导出数据最好不要超过一个月。</div>
<div class="rq_comSpan" style="display:inline-block;">颜色说明: <div class="rq_comSpan" style="display:inline-block;">颜色说明:
<span class="rq_span1">未操作</span><span class="rq_span2">操作中</span><span class="rq_span3">操作完成</span><span <span class="rq_span1">未操作</span><span class="rq_span2">操作中</span><span class="rq_span3">操作完成</span><span
class="rq_span4">机位数和人数不相符</span> class="rq_span4">机位数和人数不相符</span>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<td> <td>
<el-tooltip class="item" effect="dark" content="酒店信息" placement="top-start"> <el-tooltip class="item" effect="dark" content="酒店信息" placement="top-start">
<el-popover placement="bottom" width="800" trigger="click" popper-class="rq_HotelDetails"> <el-popover placement="bottom" width="800" trigger="click" popper-class="rq_HotelDetails">
<table class="rq_HotelTable"> <table class="rq_HotelTable" v-loading="HotelUseLoading">
<tr> <tr>
<th width="200"> <th width="200">
时间 时间
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<tfoot> <tfoot>
<tr> <tr>
<td colspan="5"> <td colspan="5">
<input type="button" value="保存" @click="saveSupplierjourneyorder" class="normalBtn SaveR_Btn" /> <input type="button" value="保存" @click="saveSupplierjourneyorder(HotelList)" class="normalBtn SaveR_Btn" />
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
</tr> </tr>
<tr> <tr>
<td colspan="8" style="text-align:left;padding-left:5px;"> <td colspan="8" style="text-align:left;padding-left:5px;">
<div class="rQ_HtList" v-if="item.IsBookTeam==2&&item.Numbers>0&&isShowCancle"> <div class="rQ_HtList" v-if="item.IsBookTeam==2&&item.Numbers>=0">
<span v-for="subItem in item.Numbers"></span> <span v-for="subItem in item.Numbers"></span>
</div> </div>
<div>注意事项: {{item.SupplierRemarks}}</div> <div>注意事项: {{item.SupplierRemarks}}</div>
...@@ -207,6 +207,7 @@ ...@@ -207,6 +207,7 @@
return { return {
loading: false, loading: false,
hotelLoading: false, hotelLoading: false,
HotelUseLoading:false,
total: 0, total: 0,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
...@@ -252,8 +253,7 @@ ...@@ -252,8 +253,7 @@
//是否为今天 //是否为今天
isToday:false, isToday:false,
todayDate:'', todayDate:'',
showNum:0, showNum:0
isShowCancle:false,
} }
}, },
methods: { methods: {
...@@ -270,8 +270,17 @@ ...@@ -270,8 +270,17 @@
// }, err => {}) // }, err => {})
}, },
//保存信息 //保存信息
saveSupplierjourneyorder() saveSupplierjourneyorder(HotelList){
{ this.HotelUseLoading = true;
this.ApiPost2('dmcstatistics_post_SetSupplierjourneyorderService', HotelList, res => {
this.HotelUseLoading = false;
if (res.data.resultCode == 1) {
this.Success(res.data.message)
this.getList();
} else {
this.Error(res.data.message)
}
}, err => {})
}, },
getList() { getList() {
...@@ -295,11 +304,6 @@ ...@@ -295,11 +304,6 @@
  var now = new Date();   var now = new Date();
  var days = now.getTime()-sdate.getTime();   var days = now.getTime()-sdate.getTime();
  var day = Math.abs(parseInt(days / (1000 * 60 * 60 * 24)));   var day = Math.abs(parseInt(days / (1000 * 60 * 60 * 24)));
if(day<=5){
this.isShowCancle=true;
}else{
this.isShowCancle=false;
}
  return day;   return day;
}, },
//获取酒店列表 //获取酒店列表
......
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