Commit 8c5bf8d2 authored by 黄奎's avatar 黄奎

页面修改

parent c7be6b26
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</template> </template>
</template> </template>
<template v-else> <template v-else>
<el-popover width="650" trigger="click" popper-class="Bus_HotelPop" style="display:none;"> <el-popover width="650" trigger="click" popper-class="Bus_HotelPop">
<table v-loading="changeLoading"> <table v-loading="changeLoading">
<tr> <tr>
<th width="60"> <th width="60">
...@@ -198,37 +198,33 @@ ...@@ -198,37 +198,33 @@
}, },
//保存酒店订单 //保存酒店订单
SaveHotelOrder(HotelID) { SaveHotelOrder(HotelID) {
var that=this;
var newList=[]; this.Confirm("是否要替换选中的酒店?", function () {
if (this.ChangeHotelList && this.ChangeHotelList.length > 0) { var newList = [];
this.ChangeHotelList.forEach(item => { if (that.ChangeHotelList && that.ChangeHotelList.length > 0) {
if(item.IsChecked) that.ChangeHotelList.forEach(item => {
{ if (item.IsChecked) {
var Nitem=JSON.parse(JSON.stringify(item)); var Nitem = JSON.parse(JSON.stringify(item));
Nitem.NewHotelID=HotelID; Nitem.NewHotelID = HotelID;
newList.push(Nitem); newList.push(Nitem);
} }
}); });
} }
if(newList&&newList.length>0) if (newList && newList.length > 0) {
{ that.apipost("journeyorder_post_SaveWorkHotelOrderService", newList,
this.apipost("journeyorder_post_SaveWorkHotelOrderService",newList, res => {
res => { if (res.data.resultCode == 1) {
that.getList();
if (res.data.resultCode == 1) { } else {
con that.Error(res.data.message);
} else { }
this.Error(res.data.message); },
} err => {}
}, );
err => {} } else {
); that.Info("请选择团期!");
}
}else });
{
this.Info("请选择团期!");
}
} }
}, },
mounted() { mounted() {
......
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