Commit 58c1eeb8 authored by 黄奎's avatar 黄奎

1

parent bff4847e
...@@ -143,7 +143,16 @@ ...@@ -143,7 +143,16 @@
<div style="text-align:left;padding-left:6px;" v-if="row.isFirst">{{row.parent.NewHotelName}}</div> <div style="text-align:left;padding-left:6px;" v-if="row.isFirst">{{row.parent.NewHotelName}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="状态" prop="DMCState" width="100">
<template #default="{row}">
<template v-if="getStateStr(row.parent)=='OK'">
<font style="color: green;"> {{ getStateStr(row.parent)}}</font>
</template>
<template v-else>
<font style="color: red;"> {{ getStateStr(row.parent)}}</font>
</template>
</template>
</el-table-column>
<el-table-column :label="$t('ground.fangjianleixing')" prop="HouseTypeName" width="100"> <el-table-column :label="$t('ground.fangjianleixing')" prop="HouseTypeName" width="100">
<template #default="{row}"> <template #default="{row}">
{{getHouseTypeName(row.sub)}} {{getHouseTypeName(row.sub)}}
...@@ -288,7 +297,7 @@ ...@@ -288,7 +297,7 @@
// 需要合并的列(根据上面 el-table-column 的顺序):0..8 以及最后一列动作 (共 10 列) // 需要合并的列(根据上面 el-table-column 的顺序):0..8 以及最后一列动作 (共 10 列)
// 我们只按列属性判断,合并那些基于父级显示的列 // 我们只按列属性判断,合并那些基于父级显示的列
const mergeCols = ['DMCNum', 'TCNUM', 'OutBranchName', 'LeaderName', 'GuideName', 'LtName', 'seat', 'UseTime', const mergeCols = ['DMCNum', 'TCNUM', 'OutBranchName', 'LeaderName', 'GuideName', 'LtName', 'seat', 'UseTime',
'NewHotelName', 'actions', 'StartDate' 'NewHotelName', 'actions', 'StartDate', 'DMCState'
]; ];
if (row.isFirst && mergeCols.includes(column.property)) { if (row.isFirst && mergeCols.includes(column.property)) {
return [span, 1]; return [span, 1];
...@@ -302,7 +311,7 @@ ...@@ -302,7 +311,7 @@
saveBookNum(item) { saveBookNum(item) {
var sMsg = { var sMsg = {
TCID: item.TCID, TCID: item.TCID,
IsSyncHotelCount:1,//不在同步酒店房型 IsSyncHotelCount: 1, //不在同步酒店房型
OrderDetails: item.OrderDetailsList OrderDetails: item.OrderDetailsList
}; };
this.saveLoading = true; this.saveLoading = true;
...@@ -344,6 +353,16 @@ ...@@ -344,6 +353,16 @@
} }
return roomName; return roomName;
}, },
//获取酒店状态
getStateStr(subItem) {
var str = "";
if (subItem.DMCState == 1) {
str = "OK"
} else {
str = "暂定"
}
return str;
},
getLineList() { getLineList() {
this.apipost("line_post_GetAllList", {}, res => { this.apipost("line_post_GetAllList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 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