Commit 6cc58902 authored by youjie's avatar youjie

no message

parent c63878f2
<style>
@import url('../../../assets/css/domestic/TicketingModule.css');
.sanjiao-box{
position: relative;
}
.sanjiao-box .Receipt_table td{
padding: 0 10px;
}
.hover_text span{
cursor: pointer;
text-decoration: underline;
}
.czBillModule td{
text-align: center!important;
padding:6px 0!important;
}
</style>
<template>
<div class="m_TicketingModule" v-if="DataList&&DataList.length>0">
<div>
<div class="_tit">
<span class="_text">相同对象付款单据</span>
<div>
<span class="_btn" v-if="tableShow" @click="tableShow=false">收起 <i class="iconfont icon-gengduo _rotate"></i> </span>
<span class="_btn" v-else @click="tableShow=true">展开 <i class="iconfont icon-gengduo"></i> </span>
</div>
</div>
<div v-show="tableShow" class="sanjiao-box _padding_20_15">
<table border="1" class="czBillModule _border_color_b Receipt_table" bordercolor="#c94052" style="border-collapse:collapse;width: 100%;" v-loading='loading'>
<tr>
<th>单号</th>
<th>付款对象</th>
<th>原币</th>
<th>本位币</th>
<th>状态</th>
<th width="300px">备注</th>
</tr>
<tr class="_color_b" v-for="(item,index) in DataList" :key="index">
<td class="hover_text" @click="goDetail(item.FrID)" ><span>{{item.FrID}}</span></td>
<td>{{item.RemitterName}}</td>
<td>
{{item.WBMoney}}
</td>
<td>{{item.Money}}</td>
<td>
<span v-if="item.Status==1" style="display: inline-block;">
{{item.StatusName}}
</span>
<span v-else style="display: inline-block;
color: #2BB87C;">
{{item.StatusName}}
</span>
</td>
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{item.Description}}</td>
</tr>
</table>
</div>
</div>
</div>
</template>
<script>
export default {
props:["GetDetail"],
data(){
return{
cdtotal: 0,
ybtotal: 0,
tableShow: true,
DataList: [],
msg:{
FrId:0,
}
}
},watch:{
GetDetail:{
handler(val, oldVal) {
this.msg.FrId = this.GetDetail.FrID
this.Financial_post_GetDetail();
},
deep: true,
immediate: true,
}
},
created(){
},
mounted(){
},
methods:{
goDetail(id){
this.$router.push(
{ name: 'FinancialDocumentsDetail',
query:{"id":id,blank:'y',tab:'单据详情'}
}
)
},
Financial_post_GetDetail(){ //获取关联单
if(this.msg.FrId){
this.loading = true;
this.apipost('Financial_post_GetTravelMergePayList',this.msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
this.DataList = data
}else{
this.Error(res.data.message)
}
this.loading = false;
}, err => {})
}
},
}
}
</script>
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