Commit 6be80c4b authored by 黄奎's avatar 黄奎

页面修改

parent 1072f0bb
......@@ -103,7 +103,8 @@
</tr>
<tr v-for="(subItem,subIndex) in HotelHouseTypeList" :key="subIndex">
<td style="width:100px;">
{{subItem.Name}}
<el-checkbox v-model="subItem.IsChecked"> {{subItem.Name}}
</el-checkbox>
</td>
<td style="width:150px;">
<el-input class='w135 tcenter' maxlength="2" @keyup.native="checkInteger(subItem,'HouseNum')"
......@@ -121,7 +122,8 @@
</td>
</tr>
</table>
<el-button slot="reference" style="background:#E95252; border-color:#E95252;" type="primary" v-if="CurrentUserInfo.EmployeeId == 615" @click="IsShowMoreUpdate=true">
<el-button slot="reference" style="background:#E95252; border-color:#E95252;" type="primary"
v-if="CurrentUserInfo.EmployeeId == 615" @click="IsShowMoreUpdate=true">
批量修改酒店
</el-button>
</el-popover>
......@@ -647,30 +649,35 @@
isShowPiliangPop: false, //是否显示批量上传popover
IsShowMoreUpdate: false,
HotelHouseTypeList: [{
IsChecked: false,
HouseType: 1,
Name: "单间",
HouseNum: 0,
BookNum: 0
},
{
IsChecked: false,
HouseType: 2,
Name: "标准间",
HouseNum: 0,
BookNum: 0
},
{
IsChecked: false,
HouseType: 3,
Name: "大床间",
HouseNum: 0,
BookNum: 0
},
{
IsChecked: false,
HouseType: 4,
Name: "三人间",
HouseNum: 0,
BookNum: 0
},
{
IsChecked: false,
HouseType: 5,
Name: "司导间",
HouseNum: 0,
......@@ -687,20 +694,35 @@
methods: {
//批量修改房间数和房间人
BatchHotelOrder() {
var msg = {
TCID: this.$route.query.id,
OrderDetails: this.HotelHouseTypeList
};
this.apipost('dmcstatistics_get_SetBatchHotelOrderService', msg, res => {
this.loading = false;
this.IsShowMoreUpdate=false;
if (res.data.resultCode == 1) {
this.getList();
this.Success(res.data.message);
} else {
this.Error(res.data.message);
var checkArray = [];
this.HotelHouseTypeList.forEach(item => {
if (item.IsChecked) {
checkArray.push(item);
}
}, err => {})
});
if (checkArray != null && checkArray.length > 0) {
var msg = {
TCID: this.$route.query.id,
OrderDetails: checkArray
};
this.apipost('dmcstatistics_get_SetBatchHotelOrderService', msg, res => {
this.loading = false;
this.IsShowMoreUpdate = false;
if (res.data.resultCode == 1) {
this.getList();
this.Success(res.data.message);
this.HotelHouseTypeList.forEach(item => {
item.IsChecked = false;
item.HouseNum = 0;
item.BookNum = 0;
});
} else {
this.Error(res.data.message);
}
}, err => {})
} else {
this.Info("请选择要修改的房型!");
}
},
MoreUpdate(subItem) {
this.IsMoreUpdate = 1;
......
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