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

页面修改

parent 1072f0bb
...@@ -103,7 +103,8 @@ ...@@ -103,7 +103,8 @@
</tr> </tr>
<tr v-for="(subItem,subIndex) in HotelHouseTypeList" :key="subIndex"> <tr v-for="(subItem,subIndex) in HotelHouseTypeList" :key="subIndex">
<td style="width:100px;"> <td style="width:100px;">
{{subItem.Name}} <el-checkbox v-model="subItem.IsChecked"> {{subItem.Name}}
</el-checkbox>
</td> </td>
<td style="width:150px;"> <td style="width:150px;">
<el-input class='w135 tcenter' maxlength="2" @keyup.native="checkInteger(subItem,'HouseNum')" <el-input class='w135 tcenter' maxlength="2" @keyup.native="checkInteger(subItem,'HouseNum')"
...@@ -121,7 +122,8 @@ ...@@ -121,7 +122,8 @@
</td> </td>
</tr> </tr>
</table> </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-button>
</el-popover> </el-popover>
...@@ -647,30 +649,35 @@ ...@@ -647,30 +649,35 @@
isShowPiliangPop: false, //是否显示批量上传popover isShowPiliangPop: false, //是否显示批量上传popover
IsShowMoreUpdate: false, IsShowMoreUpdate: false,
HotelHouseTypeList: [{ HotelHouseTypeList: [{
IsChecked: false,
HouseType: 1, HouseType: 1,
Name: "单间", Name: "单间",
HouseNum: 0, HouseNum: 0,
BookNum: 0 BookNum: 0
}, },
{ {
IsChecked: false,
HouseType: 2, HouseType: 2,
Name: "标准间", Name: "标准间",
HouseNum: 0, HouseNum: 0,
BookNum: 0 BookNum: 0
}, },
{ {
IsChecked: false,
HouseType: 3, HouseType: 3,
Name: "大床间", Name: "大床间",
HouseNum: 0, HouseNum: 0,
BookNum: 0 BookNum: 0
}, },
{ {
IsChecked: false,
HouseType: 4, HouseType: 4,
Name: "三人间", Name: "三人间",
HouseNum: 0, HouseNum: 0,
BookNum: 0 BookNum: 0
}, },
{ {
IsChecked: false,
HouseType: 5, HouseType: 5,
Name: "司导间", Name: "司导间",
HouseNum: 0, HouseNum: 0,
...@@ -687,20 +694,35 @@ ...@@ -687,20 +694,35 @@
methods: { methods: {
//批量修改房间数和房间人 //批量修改房间数和房间人
BatchHotelOrder() { BatchHotelOrder() {
var msg = { var checkArray = [];
TCID: this.$route.query.id, this.HotelHouseTypeList.forEach(item => {
OrderDetails: this.HotelHouseTypeList if (item.IsChecked) {
}; checkArray.push(item);
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);
} }
}, 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) { MoreUpdate(subItem) {
this.IsMoreUpdate = 1; 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