Commit 116228ec authored by 黄奎's avatar 黄奎
parents 73a5d1f5 80e2ff80
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="address" prop="address"
label="单号"> label="单号" width="90">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
popper-class="detailsIT_Journal" popper-class="detailsIT_Journal"
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="" prop=""
label="单据类型"> label="单据类型" width="90">
<template slot-scope="scope"> <template slot-scope="scope">
<span> <span>
<span v-if="scope.row.Type==2" style="display: inline-block; <span v-if="scope.row.Type==2" style="display: inline-block;
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="" prop=""
label="关联信息"> label="关联信息" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<template v-if="scope.row.TCIDAndTCNUMList.length>0"> <template v-if="scope.row.TCIDAndTCNUMList.length>0">
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="" prop=""
label="费用类型"> label="费用类型" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<template v-for="(s,si) in scope.row.CostTypeList"> <template v-for="(s,si) in scope.row.CostTypeList">
......
...@@ -6,22 +6,28 @@ ...@@ -6,22 +6,28 @@
</style> </style>
<template> <template>
<div class="AirTicketApp" style="padding-bottom:20px"> <div class="AirTicketApp" style="padding-bottom:20px">
<div class="Header"> <div class="Header" style="display: flex;flex-wrap: nowrap; justify-content: space-between;padding: 10px 0;">
<el-col :span="8" style="margin:10px 0"> <div style="flex-shrink: 0; display: flex;align-items: center; flex-wrap: nowrap;">
<el-date-picker <el-date-picker
v-model="value1" v-model="value1"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"> end-placeholder="结束日期">
</el-date-picker> </el-date-picker>
</el-col>
<button style="margin-top:15px" class="normalBtn" @click="getList">查询</button> <button class="normalBtn" @click="getList">查询</button>
<button style="margin-top:15px" class="hollowFixedBtn" @click="Export">导出</button> <button class="hollowFixedBtn" @click="Export">导出</button>
</div>
<div v-if="LossIncomeList&&LossIncomeList.length>0" style="display: flex;flex-wrap: wrap;flex-grow: 1;margin-left: 20px;justify-content: end;">
<div>
<span style="line-height: 60px;font-size: 14px;">机损增收:</span>
<el-tag v-for="(x,index) in LossIncomeList" :key="index" @click="goUrl(x)"
style="margin-left: 5px;margin-top: 2px;margin-bottom: 2px; cursor: pointer;">{{x.LineName}}/{{x.AirLossIncome}}</el-tag>
</div>
</div>
</div> </div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr> <tr>
...@@ -47,6 +53,7 @@ ...@@ -47,6 +53,7 @@
export default { export default {
data(){ data(){
return{ return{
LossIncomeList:[],
loading:false, loading:false,
ColNameList:[], ColNameList:[],
LossList:[], LossList:[],
...@@ -62,6 +69,17 @@ export default { ...@@ -62,6 +69,17 @@ export default {
},created(){ },created(){
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
},methods:{ },methods:{
goUrl(x){
this.$router.push({
name: 'TeamRevenueReport',
query: {
StartTime:this.msg.StartTime,
EndTime:this.msg.EndTime,
LineId:x.LineId,
blank: "y",
}
})
},
Export(){ Export(){
let msg=this.msg; let msg=this.msg;
...@@ -80,7 +98,7 @@ export default { ...@@ -80,7 +98,7 @@ export default {
} }
this.loading = true; this.loading = true;
this.apipost('financestatistics_post_GetCompamyAirTicketRatioList',this.msg, res => { this.apipost('financestatistics_post_GetCompamyAirTicketRatioList',this.msg, res => {
this.loading = false; this.loading = false;
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
...@@ -88,8 +106,9 @@ export default { ...@@ -88,8 +106,9 @@ export default {
this.Rlist=res.data.data.Rlist; this.Rlist=res.data.data.Rlist;
this.LossList=res.data.data.LossList[0].LossTL; this.LossList=res.data.data.LossList[0].LossTL;
this.SunMoney = res.data.data.LossList[0].TotalMoney; this.SunMoney = res.data.data.LossList[0].TotalMoney;
this.LossIncomeList = res.data.data.LossIncomeList
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
this.loading = false; this.loading = false;
}, err => {}) }, err => {})
...@@ -119,10 +138,10 @@ export default { ...@@ -119,10 +138,10 @@ export default {
} }
}); });
} }
} }
} }
},mounted(){ },mounted(){
//默认查询当月第一个到最后一天日期 //默认查询当月第一个到最后一天日期
if(this.$route.query.startDate && this.$route.query.endDate){ if(this.$route.query.startDate && this.$route.query.endDate){
...@@ -144,7 +163,7 @@ export default { ...@@ -144,7 +163,7 @@ export default {
this.value1.push(startDate,endDate); this.value1.push(startDate,endDate);
} }
this.getList(); this.getList();
} }
} }
......
...@@ -2132,9 +2132,12 @@ export default { ...@@ -2132,9 +2132,12 @@ export default {
mounted() { mounted() {
let STime = this.getBeforeDate(31,this.getBeforeDate(0,new Date().Format("yyyy-MM-dd"))) let STime = this.getBeforeDate(31,this.getBeforeDate(0,new Date().Format("yyyy-MM-dd")))
let ETime = this.getBeforeDate(0,this.getBeforeDate(0,new Date().Format("yyyy-MM-dd"))) let ETime = this.getBeforeDate(0,this.getBeforeDate(0,new Date().Format("yyyy-MM-dd")))
this.productionDate = [STime,ETime] if(!this.msg.startDate){
this.msg.startDate = this.productionDate[0]; this.productionDate = [STime,ETime]
this.msg.endDate = this.productionDate[1]; this.msg.startDate = this.productionDate[0];
this.msg.endDate = this.productionDate[1];
}
let allH, allW, cH, cW; let allH, allW, cH, cW;
allH = document.documentElement.clientHeight; allH = document.documentElement.clientHeight;
allW = document.documentElement.clientWidth; allW = document.documentElement.clientWidth;
......
...@@ -171,7 +171,6 @@ export default { ...@@ -171,7 +171,6 @@ export default {
}, },
calculation(i){ calculation(i){
if(!i){
let Money = 0 let Money = 0
let benMoney = 0 let benMoney = 0
this.currentMoney = 0 this.currentMoney = 0
...@@ -188,22 +187,22 @@ export default { ...@@ -188,22 +187,22 @@ export default {
benMoney += Money benMoney += Money
this.benMoney = benMoney/100; this.benMoney = benMoney/100;
}) })
}else{ // 有收款账户需对比总金额
let Money = 0 if(this.GetDetail.CashierDetail&&this.GetDetail.CashierDetail.length>0){
let benMoney = 0 let Money1 = 0
this.benMoney2 = 0 let benMoney1 = 0
this.GetDetail.CashierDetail.forEach(x=>{ this.benMoney2 = 0
x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100) this.GetDetail.CashierDetail.forEach(x=>{
x.Money = x.Rate*x.OriginalMoney x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100)
// x.Money = Math.round(x.Money) x.Money = x.Rate*x.OriginalMoney
x.Money = x.Money.toFixed(2) // x.Money = Math.round(x.Money)
x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100 x.Money = x.Money.toFixed(2)
Money = parseFloat(x.Money)*100 x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100
benMoney += Money Money1 = parseFloat(x.Money)*100
this.benMoney2 = benMoney/100; benMoney1 += Money1
}) this.benMoney2 = benMoney1/100;
} })
}
}, },
Financial_post_GetDetail(id){ //获取单据详情 Financial_post_GetDetail(id){ //获取单据详情
...@@ -240,6 +239,7 @@ export default { ...@@ -240,6 +239,7 @@ export default {
let TCID = data.TCIDList.length > 0 ? data.TCIDList[0] : 0 let TCID = data.TCIDList.length > 0 ? data.TCIDList[0] : 0
this.financeinfo_post_GetList(TCID); this.financeinfo_post_GetList(TCID);
} }
this.calculation()
} }
}, err => {}) }, err => {})
}, },
...@@ -330,15 +330,15 @@ export default { ...@@ -330,15 +330,15 @@ export default {
watch: { // 监听参数变化 watch: { // 监听参数变化
GetDetail: { GetDetail: {
handler: function(val, oldVal) { handler: function(val, oldVal) {
let isAmount = true // let isAmount = true
if(this.GetDetail.CashierDetail&&this.GetDetail.CashierDetail.length){ // if(this.GetDetail.CashierDetail&&this.GetDetail.CashierDetail.length){
if(this.benMoney2===this.benMoney){ // if(this.benMoney2===this.benMoney){
isAmount = false // isAmount = false
}else{ // }else{
isAmount = true // isAmount = true
} // }
} // }
this.$emit('getList',val,isAmount) this.$emit('getList',val,false)
}, },
deep: true, deep: true,
immediate: true immediate: true
......
...@@ -138,7 +138,6 @@ export default { ...@@ -138,7 +138,6 @@ export default {
}, },
calculation(i){ calculation(i){
if(!i){
let Money = 0 let Money = 0
let benMoney = 0 let benMoney = 0
this.currentMoney = 0 this.currentMoney = 0
...@@ -155,21 +154,21 @@ export default { ...@@ -155,21 +154,21 @@ export default {
benMoney += Money benMoney += Money
this.benMoney = benMoney/100; this.benMoney = benMoney/100;
}) })
}else{ // 有收款账户需对比总金额
let Money = 0 if(this.GetDetail.CashierDetail&&this.GetDetail.CashierDetail.length>0){
let benMoney = 0 let Money1 = 0
this.benMoney2 = 0 let benMoney1 = 0
this.GetDetail.CashierDetail.forEach(x=>{ this.benMoney2 = 0
x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100) this.GetDetail.CashierDetail.forEach(x=>{
x.Money = x.Rate*x.OriginalMoney x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100)
x.Money = x.Money.toFixed(2) x.Money = x.Rate*x.OriginalMoney
x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100 x.Money = x.Money.toFixed(2)
Money = parseFloat(x.Money)*100 x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100
benMoney += Money Money1 = parseFloat(x.Money)*100
this.benMoney2 = benMoney/100; benMoney1 += Money1
}) this.benMoney2 = benMoney1/100;
} })
}
}, },
Financial_post_GetDetail(id){ //获取单据详情 Financial_post_GetDetail(id){ //获取单据详情
if(!id) return; if(!id) return;
...@@ -199,6 +198,7 @@ export default { ...@@ -199,6 +198,7 @@ export default {
this.benMoney2 = 0 this.benMoney2 = 0
this.loading=false this.loading=false
this.$set(this.$data,"GetDetail",data); this.$set(this.$data,"GetDetail",data);
this.calculation()
} }
}, err => {}) }, err => {})
}, },
......
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