Commit 0543fc16 authored by 黄媛媛's avatar 黄媛媛

添加明细

parent 53775990
...@@ -130,11 +130,16 @@ export default { ...@@ -130,11 +130,16 @@ export default {
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
this.dataList = []; this.dataList = [];
let data=res.data.data.BusList; let data=res.data.data.BusList;
data.forEach(item => { if(this.msg.date!='all'){
data.forEach(item => {
if(item.UseTime==this.msg.date){ if(item.UseTime==this.msg.date){
this.dataList.push(item); this.dataList.push(item);
} }
}); });
}else{
this.dataList=data;
}
// console.log("this.dataList",this.dataList); // console.log("this.dataList",this.dataList);
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
......
...@@ -186,12 +186,17 @@ export default { ...@@ -186,12 +186,17 @@ export default {
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
this.dataList = []; this.dataList = [];
let data=res.data.data.DiningList; let data=res.data.data.DiningList;
data.forEach(item => { if(this.msg.date!='all'){
data.forEach(item => {
if(item.UseTimeStr==this.msg.date){ if(item.UseTimeStr==this.msg.date){
this.dataList.push(item); this.dataList.push(item);
} }
}); });
console.log("this.dataList",this.dataList); }else{
this.dataList=data;
}
// console.log("this.dataList",this.dataList);
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -324,7 +324,7 @@ input[type="number"] { ...@@ -324,7 +324,7 @@ input[type="number"] {
<th width="">预计总金额</th> <th width="">预计总金额</th>
<th width="">实付金额</th> <th width="">实付金额</th>
<th width="100">备注</th> <th width="100">备注</th>
<!-- <th width="40">操作</th> --> <th width="40">操作</th>
</tr> </tr>
<template v-for='(item,index) in DiningDataList'> <template v-for='(item,index) in DiningDataList'>
<template v-for='(subItem,subIndex) in item.data'> <template v-for='(subItem,subIndex) in item.data'>
...@@ -366,7 +366,7 @@ input[type="number"] { ...@@ -366,7 +366,7 @@ input[type="number"] {
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length"> <td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
{{subItem.Remarks}} {{subItem.Remarks}}
</td> </td>
<!-- <td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length"><span class="cursorpointer text-decoratio" @click="godetail('dining', subItem)">明细</span></td> --> <td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length"><span class="cursorpointer text-decoratio" @click="godetail('dining', subItem)">明细</span></td>
</tr> </tr>
</template> </template>
</template> </template>
...@@ -1206,13 +1206,11 @@ export default { ...@@ -1206,13 +1206,11 @@ export default {
date = obj ? obj.UseTimeStr : 'all' date = obj ? obj.UseTimeStr : 'all'
} else if (name === 'bus') { } else if (name === 'bus') {
path="CarDetails" path="CarDetails"
TCIDs=obj.TCIDs; date=obj?obj.UseTime:'all';
date=obj.UseTime;
} else if (name === 'dining') { } else if (name === 'dining') {
path="DinningDetails" path="DinningDetails"
TCIDs=obj.TCIDs; date=obj?obj.UseTimeStr:'all';
date=obj.UseTimeStr;
} else if (name === 'hotel') { } else if (name === 'hotel') {
path = 'leaderPayHotelDetail' path = 'leaderPayHotelDetail'
......
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