|
|
@@ -12,7 +12,7 @@
|
|
|
当前房间号
|
|
|
</h3>
|
|
|
<div style="color:#fff;background: rgba(42, 130, 228, 1);line-height:60px;width:50%;text-align:center;border-radius:12px;">
|
|
|
- {{roomList[roomIndex]}}
|
|
|
+ {{roomList[roomIndex] && roomList[roomIndex].roomNo}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-col>
|
|
|
@@ -20,17 +20,17 @@
|
|
|
<div style="display:flex;flex-direction:column;justify-content:flex-end;height:100%;">
|
|
|
<div style="display:flex;align-items:center;justify-content:space-between">
|
|
|
<div>
|
|
|
- 入住时长:3天
|
|
|
+ 入住时长:{{roomList[roomIndex] && roomList[roomIndex].day}}天
|
|
|
</div>
|
|
|
<div>
|
|
|
- 已制卡:1张
|
|
|
+ 已制卡:{{0}}张
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- 入住时间
|
|
|
+ 入住时间:{{roomList[roomIndex] && roomList[roomIndex].Info.arrivalTime2}}
|
|
|
</div>
|
|
|
<div>
|
|
|
- 预离时间
|
|
|
+ 预离时间:{{roomList[roomIndex] && roomList[roomIndex].Info.dueOutTime2}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-col>
|
|
|
@@ -59,7 +59,7 @@
|
|
|
</a-row>
|
|
|
</p>
|
|
|
<p>
|
|
|
- <a-table ref="table" size="middle" :scroll="{ x: '100%' }" bordered rowKey="id" :columns="columns" :dataSource="dataSource" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap">
|
|
|
+ <a-table ref="table" size="middle" :scroll="{ x: '100%' }" bordered rowKey="id" :columns="columns" :dataSource="roomList" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap">
|
|
|
<span slot="state" slot-scope="record">
|
|
|
{{record?'已制卡':''}}
|
|
|
<!-- {{record}} -->
|
|
|
@@ -81,34 +81,35 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
// 表头
|
|
|
- columns: [{
|
|
|
- title: "序号",
|
|
|
- align: "center",
|
|
|
- loading:false,
|
|
|
- width: 60,
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'num'
|
|
|
- }
|
|
|
- },
|
|
|
+ columns: [
|
|
|
+ // {
|
|
|
+ // title: "序号",
|
|
|
+ // align: "center",
|
|
|
+ // loading:false,
|
|
|
+ // width: 60,
|
|
|
+ // scopedSlots: {
|
|
|
+ // customRender: 'num'
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
title: "房间号",
|
|
|
align: "center",
|
|
|
- dataIndex: "room_name",
|
|
|
+ dataIndex: "roomNo",
|
|
|
},
|
|
|
{
|
|
|
title: "房型",
|
|
|
align: "center",
|
|
|
- dataIndex: "layout_name",
|
|
|
+ dataIndex: "layoutName",
|
|
|
},
|
|
|
{
|
|
|
title: "住客姓名",
|
|
|
align: "center",
|
|
|
- dataIndex: "name",
|
|
|
+ dataIndex: "roomInfo.key1",
|
|
|
},
|
|
|
{
|
|
|
title: "手机号码",
|
|
|
align: "center",
|
|
|
- dataIndex: "iphone",
|
|
|
+ dataIndex: "roomInfo.key5",
|
|
|
},
|
|
|
{
|
|
|
title: "",
|
|
|
@@ -119,7 +120,7 @@ export default {
|
|
|
ipagination:{},
|
|
|
dataSource:[],
|
|
|
loading:false,
|
|
|
- roomList:['8306','8307','8308','8309'],
|
|
|
+ roomList:[],
|
|
|
roomIndex:0,
|
|
|
}
|
|
|
},
|
|
|
@@ -143,6 +144,21 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.roomIndex--;
|
|
|
+ },
|
|
|
+ edit(record){
|
|
|
+ console.log(record);
|
|
|
+ let arr = []
|
|
|
+ arr = record.roomPrices
|
|
|
+ console.log(arr);
|
|
|
+ arr.forEach(ele=>{
|
|
|
+ ele.roomInfo = record.roomIds.filter(item=> item.roomId==ele.roomId)[0]
|
|
|
+ ele.Info = record.orderInfo
|
|
|
+ })
|
|
|
+ console.log(arr);
|
|
|
+ this.roomList = arr;
|
|
|
+ },
|
|
|
+ submitForm(){
|
|
|
+ this.$emit('ok')
|
|
|
}
|
|
|
}
|
|
|
}
|