Commit 2902fd79 authored by 黄奎's avatar 黄奎

页面修改

parent ed1e966a
...@@ -23,8 +23,9 @@ ...@@ -23,8 +23,9 @@
text-align: center; text-align: center;
margin-bottom: 10px; margin-bottom: 10px;
} }
.roomResetTable tr td{
padding:5px; .roomResetTable tr td {
padding: 5px;
} }
</style> </style>
...@@ -105,21 +106,22 @@ ...@@ -105,21 +106,22 @@
{{subItem.Name}} {{subItem.Name}}
</td> </td>
<td style="width:150px;"> <td style="width:150px;">
<el-input class='w135 tcenter' maxlength="2" @keyup.native="checkInteger(subItem,'HouseCount')" <el-input class='w135 tcenter' maxlength="2" @keyup.native="checkInteger(subItem,'HouseNum')"
v-model='subItem.HouseCount'></el-input> v-model='subItem.HouseNum'></el-input>
</td> </td>
<td style="width:150px;"> <td style="width:150px;">
<el-input class='w135 tcenter' maxlength="2" @keyup.native="checkInteger(subItem,'HousePeopleNum')" <el-input class='w135 tcenter' maxlength="2" @keyup.native="checkInteger(subItem,'BookNum')"
v-model='subItem.HousePeopleNum'></el-input> v-model='subItem.BookNum'>
</el-input>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" style="text-align:right"> <td colspan="2" style="text-align:right">
<input type="button" class="normalBtn" value="保存"> <input type="button" class="normalBtn" value="保存" @click="BatchHotelOrder()">
</td> </td>
</tr> </tr>
</table> </table>
<el-button slot="reference" style="background:#E95252; border-color:#E95252;display:none;" type="primary"> <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>
...@@ -643,36 +645,36 @@ ...@@ -643,36 +645,36 @@
XiaoFeiTaxFee: 0.1, XiaoFeiTaxFee: 0.1,
IsMoreUpdate: 0, //批量上传手配书0-单个上传,1-批量上传 IsMoreUpdate: 0, //批量上传手配书0-单个上传,1-批量上传
isShowPiliangPop: false, //是否显示批量上传popover isShowPiliangPop: false, //是否显示批量上传popover
IsShowMoreUpdate:false, IsShowMoreUpdate: false,
HotelHouseTypeList: [{ HotelHouseTypeList: [{
Id: 1, HouseType: 1,
Name: "单间", Name: "单间",
HouseCount: 0, HouseNum: 0,
HousePeopleNum: 0 BookNum: 0
}, },
{ {
Id: 2, HouseType: 2,
Name: "标准间", Name: "标准间",
HouseCount: 0, HouseNum: 0,
HousePeopleNum: 0 BookNum: 0
}, },
{ {
Id: 3, HouseType: 3,
Name: "大床间", Name: "大床间",
HouseCount: 0, HouseNum: 0,
HousePeopleNum: 0 BookNum: 0
}, },
{ {
Id: 4, HouseType: 4,
Name: "三人间", Name: "三人间",
HouseCount: 0, HouseNum: 0,
HousePeopleNum: 0 BookNum: 0
}, },
{ {
Id: 5, HouseType: 5,
Name: "司导间", Name: "司导间",
HouseCount: 0, HouseNum: 0,
HousePeopleNum: 0 BookNum: 0
}, },
] ]
} }
...@@ -683,6 +685,23 @@ ...@@ -683,6 +685,23 @@
commonPHInfo: commonPHlInfo commonPHInfo: commonPHlInfo
}, },
methods: { 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);
}
}, err => {})
},
MoreUpdate(subItem) { MoreUpdate(subItem) {
this.IsMoreUpdate = 1; this.IsMoreUpdate = 1;
}, },
...@@ -849,11 +868,6 @@ ...@@ -849,11 +868,6 @@
} else { } else {
this.list[this.checkedIndex].HotelOrderList[this.checkedsubIndex].ContractUrl = fileUrl; this.list[this.checkedIndex].HotelOrderList[this.checkedsubIndex].ContractUrl = fileUrl;
} }
// this.list.forEach((sItem,sIndex)=>{
// sItem.HotelOrderList.forEach((subItem,subIndex)=>{
// subItem.IsChecked=false;
// });
// });
this.IsMoreUpdate = 0; this.IsMoreUpdate = 0;
this.$forceUpdate() this.$forceUpdate()
}) })
......
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