Commit 8a5f1b97 authored by 黄奎's avatar 黄奎

11

parent 4a1ba207
...@@ -85,8 +85,15 @@ ...@@ -85,8 +85,15 @@
formatDinner() { formatDinner() {
let d = [] let d = []
this.trip.dinnerList.forEach(x => { this.trip.dinnerList.forEach(x => {
if (x.dinnerName.indexOf('自理') == -1 && x.dinnerName.indexOf('请选择') == -1 && x.dinnerId > 0) { if (x.useDinnerType == "1") {
d.push(x) if (x.dinnerId > 0) {
console.log("aaaa", x);
d.push(x)
}
} else {
if (x.dinnerName.indexOf('自理') == -1 && x.dinnerName.indexOf('请选择') == -1) {
d.push(x)
}
} }
}) })
if (d && d.length > 0) { if (d && d.length > 0) {
...@@ -123,18 +130,15 @@ ...@@ -123,18 +130,15 @@
h.push(x) h.push(x)
} }
}) })
console.log("h", h);
if (h && h.length > 0) { if (h && h.length > 0) {
let g = this.groupBy(h, (x) => { let g = this.groupBy(h, (x) => {
return x.star return x.star
}) })
g.forEach(x => { g.forEach(x => {
let tempStr = this.stars[parseInt(x.key) - 1]; let tempStr = this.stars[parseInt(x.key) - 1];
console.log("", tempStr)
if (tempStr && tempStr != '') { if (tempStr && tempStr != '') {
this.hotel += `${x.data.length}晚${ tempStr};` this.hotel += `${x.data.length}晚${ tempStr};`
} }
}) })
} }
} }
......
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