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

添加明细

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