Commit 627d671d authored by 华国豪's avatar 华国豪 🙄

新增一个刷新房间的接口

parent 9a4ab012
......@@ -311,7 +311,8 @@
<el-option v-for="item in roomlist" :key="item.ID" :label="item.HouseInfo" :value="item.ID">
</el-option>
</el-select>
<input type="button" value="新增房间" class="normalBtn" @click="addhouse()" title="需要拼房,但没有双人间(半间)的点击新增房间"/>
<input type="button" value="新增房间" class="normalBtn" v-if="!UpdateOrderHouseBtn" @click="addhouse()" title="需要拼房,但没有双人间(半间)的点击新增房间"/>
<input type="button" value="刷新房间" class="normalBtn" v-if="UpdateOrderHouseBtn" @click="SellUpdateOrderHouse()" title="选择人数后没有房间的点击刷新"/>
</el-form-item>
</li>
<li>
......@@ -680,6 +681,7 @@
HouseId:'',//房间信息
CouponsIds: []
},
UpdateOrderHouseBtn: false,
EconomicCapabilityS: [],
rules: {
IdCard: [{
......@@ -1956,6 +1958,9 @@
res => {
if (res.data.resultCode == 1) {
this.roomlist = res.data.data;
if (this.roomlist.length < 1) {
this.UpdateOrderHouseBtn = true
}
} else {
this.$message.error(res.data.message);
}
......@@ -1965,6 +1970,23 @@
);
}
},
SellUpdateOrderHouse(){
let OrderId = this.addMsg.OrderId;
this.apipost(
"sellorder_post_SellUpdateOrderHouse_V2",
{OrderId: OrderId},
res => {
if (res.data.resultCode == 1) {
this.Roominformation()
this.UpdateOrderHouseBtn = false
} else {
this.$message.error(res.data.message);
}
},
err => {
}
);
},
getHouselist(Sex,TCID,OrderId,IsBed){
if(Sex ==1 || Sex == 2){
this.apipost(
......
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