Commit 4087625a authored by 王悦's avatar 王悦

111

parents 7c203574 c887cda2
<style>
.TB_comtitle {
.TB_comtitle {
color: #333333;
padding-left: 10px;
height: 14px;
......@@ -192,7 +192,7 @@
<div class="Team_collection">
<div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">收入</div>
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddIncomeDetail"/>
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddIncomeDetail" />
</div>
<div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">团费收入:</div>
......@@ -208,9 +208,8 @@
<th width='180'>审核状态</th>
<th width="200">当前审核人</th>
</tr>
<template v-for="item in DataList.FiniceReciveList" >
<template v-for="item in DataList.FiniceReciveList">
<tr v-for="(cost, costIndex) in item.CostTypeList" :key="costIndex+Math.ceil(Math.random()*999)" v-if="cost==='团费'">
<td><span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span></td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}</span></td>
<td>
......@@ -221,8 +220,7 @@
</div>
</td>
<td style="font-size:14px;">
应收:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实收:{{item.PayMoney}}</span> -->
应收:{{item.Money}}<br />
实收:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -266,8 +264,7 @@
</div>
</td>
<td style="font-size:14px;">
应收:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实收:{{item.PayMoney}}</span> -->
应收:{{item.Money}}<br />
实收:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -311,8 +308,7 @@
</div>
</td>
<td style="font-size:14px;">
应收:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实收:{{item.PayMoney}}</span> -->
应收:{{item.Money}}<br />
实收:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -356,8 +352,7 @@
</div>
</td>
<td style="font-size:14px;">
应收:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实收:{{item.PayMoney}}</span> -->
应收:{{item.Money}}<br />
实收:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -401,8 +396,7 @@
</div>
</td>
<td style="font-size:14px;">
应收:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实收:{{item.PayMoney}}</span> -->
应收:{{item.Money}}<br />
实收:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -446,8 +440,7 @@
</div>
</td>
<td style="font-size:14px;">
应收:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实收:{{item.PayMoney}}</span> -->
应收:{{item.Money}}<br />
实收:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -469,7 +462,7 @@
<div class="Team_collection">
<div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">成本</div>
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail"/>
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail" />
</div>
<div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">邀请函:</div>
......@@ -491,7 +484,7 @@
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
</td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br/></span></td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td>
<div class="Team_ComCoin" v-for="childItem in item.TradeWayList">
支付方式:{{childItem.Alias}}&nbsp;币种:{{childItem.CurrencyName}}
......@@ -500,8 +493,7 @@
</div>
</td>
<td style="font-size:14px;">
应付:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实付:{{item.PayMoney}}</span> -->
应付:{{item.Money}}<br />
实付:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -539,7 +531,7 @@
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
</td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br/></span></td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td>
<div class="Team_ComCoin" v-for="childItem in item.TradeWayList">
支付方式:{{childItem.Alias}}&nbsp;币种:{{childItem.CurrencyName}}
......@@ -548,8 +540,7 @@
</div>
</td>
<td style="font-size:14px;">
应付:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实付:{{item.PayMoney}}</span> -->
应付:{{item.Money}}<br />
实付:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -587,7 +578,7 @@
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
</td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br/></span></td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td>
<div class="Team_ComCoin" v-for="childItem in item.TradeWayList">
支付方式:{{childItem.Alias}}&nbsp;币种:{{childItem.CurrencyName}}
......@@ -596,8 +587,7 @@
</div>
</td>
<td style="font-size:14px;">
应付:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实付:{{item.PayMoney}}</span> -->
应付:{{item.Money}}<br />
实付:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -635,7 +625,7 @@
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
</td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br/></span></td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td>
<div class="Team_ComCoin" v-for="childItem in item.TradeWayList">
支付方式:{{childItem.Alias}}&nbsp;币种:{{childItem.CurrencyName}}
......@@ -644,8 +634,7 @@
</div>
</td>
<td style="font-size:14px;">
应付:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实付:{{item.PayMoney}}</span> -->
应付:{{item.Money}}<br />
实付:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -683,7 +672,7 @@
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
</td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br/></span></td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td>
<div class="Team_ComCoin" v-for="childItem in item.TradeWayList">
支付方式:{{childItem.Alias}}&nbsp;币种:{{childItem.CurrencyName}}
......@@ -692,8 +681,7 @@
</div>
</td>
<td style="font-size:14px;">
应付:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实付:{{item.PayMoney}}</span> -->
应付:{{item.Money}}<br />
实付:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -731,7 +719,7 @@
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
</td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br/></span></td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td>
<div class="Team_ComCoin" v-for="childItem in item.TradeWayList">
支付方式:{{childItem.Alias}}&nbsp;币种:{{childItem.CurrencyName}}
......@@ -740,8 +728,7 @@
</div>
</td>
<td style="font-size:14px;">
应付:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实付:{{item.PayMoney}}</span> -->
应付:{{item.Money}}<br />
实付:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -779,7 +766,7 @@
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
</td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br/></span></td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td>
<div class="Team_ComCoin" v-for="childItem in item.TradeWayList">
支付方式:{{childItem.Alias}}&nbsp;币种:{{childItem.CurrencyName}}
......@@ -788,8 +775,7 @@
</div>
</td>
<td style="font-size:14px;">
应付:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实付:{{item.PayMoney}}</span> -->
应付:{{item.Money}}<br />
实付:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -822,12 +808,12 @@
<th width="200">当前审核人</th>
</tr>
<template v-for="item in DataList.FinicePayList">
<tr v-for="(cost,costIndex) in item.CostTypeList" :key="costIndex+Math.ceil(Math.random()*999)" v-if=" cost!=='签证费'&& cost!=='地接费(领取)' && cost!=='提成' &&cost!=='国内联运' &&cost!=='车资' && cost!=='邀请函费用' && cost!=='名单表' &&item.OrderSource!==4">
<tr v-if="NotExists(item.CostTypeList,'签证费') && NotExists(item.CostTypeList,'地接费(领取)') && NotExists(item.CostTypeList,'提成') && NotExists(item.CostTypeList,'国内联运')&& NotExists(item.CostTypeList,'车资') && NotExists(item.CostTypeList,'邀请函费用') && NotExists(item.CostTypeList,'名单表') &&item.OrderSource!==4">
<td>
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
</td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br/></span></td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td>
<div class="Team_ComCoin" v-for="childItem in item.TradeWayList">
支付方式:{{childItem.Alias}}&nbsp;币种:{{childItem.CurrencyName}}
......@@ -836,8 +822,7 @@
</div>
</td>
<td style="font-size:14px;">
应付:{{item.Money}}<br/>
<!-- <span class="TB_PayMoney">实付:{{item.PayMoney}}</span> -->
应付:{{item.Money}}<br />
实付:{{item.Money}}
</td>
<td>{{item.TradeDate}}</td>
......@@ -858,10 +843,11 @@
</div>
</div>
<div class="Team_BtnList">
<input type="button" @click="zhaunBox" value="单据转团" class="hollowFixedBtn"/>
<input type="button" v-if="!CloseIncomeBtn" @click="UpdateBrakeAccountStatus" :value="DataList.TeamBalance.BrakeAccountStatus === 0 ? '关闭收支操作' : '开启收支操作'" class="hollowFixedBtn"/>
<input type="button" value="导出" @click="ExportExcle" class="normalBtn"/>
<input type="button" value="打印" @click.prevent="doPrint" class="normalBtn"/>
<input type="button" @click="zhaunBox" value="单据转团" class="hollowFixedBtn" />
<input type="button" v-if="!CloseIncomeBtn" @click="UpdateBrakeAccountStatus" :value="DataList.TeamBalance.BrakeAccountStatus === 0 ? '关闭收支操作' : '开启收支操作'"
class="hollowFixedBtn" />
<input type="button" value="导出" @click="ExportExcle" class="normalBtn" />
<input type="button" value="打印" @click.prevent="doPrint" class="normalBtn" />
</div>
<el-dialog custom-class='w350' title="合并单据" :visible.sync="zhuanLoading" center :before-close="initZhuanMsg">
<!--zhaunMsg.TCNUM-->
......@@ -878,19 +864,19 @@
</div>
</template>
<script>
export default {
export default {
data() {
return {
TCID: 0,
//数据列表
DataList: "",
isShow: false,
OutBranchId:0,
ishowBtn:true,
CloseIncomeBtn:false,
loading:false,
OutBranchId: 0,
ishowBtn: true,
CloseIncomeBtn: false,
loading: false,
zhuanMsg: {
NowTCNUM:'',
NowTCNUM: '',
TCNUM: '',
FrIds: '',
},
......@@ -898,9 +884,33 @@ export default {
};
},
methods: {
initZhuanMsg(){
//判断数组包含字符串
isExists(array,str)
{
var flag=false;
array.forEach(item=>{
if(item==str && !flag)
{
flag=true;
}
});
return flag;
},
//判断数组不包含字符串
NotExists(array,str)
{
var flag=true;
array.forEach(item=>{
if(item==str && flag)
{
flag=false;
}
});
return flag;
},
initZhuanMsg() {
this.zhuanMsg = {
NowTCNUM:'',
NowTCNUM: '',
TCNUM: '',
FrIds: '',
}
......@@ -908,7 +918,7 @@ export default {
},
zhaunBox: function () {
let flag = false
this.DataList.FinicePayList.forEach(x=>{
this.DataList.FinicePayList.forEach(x => {
if (x.checked) {
flag = true
this.zhuanMsg.FrIds += x.FrID + ','
......@@ -922,13 +932,13 @@ export default {
},
TransferDocuments: function () {
let TCNUM = this.DataList.TeamBalance.TCNUM;
this.zhuanMsg.NowTCNUM=TCNUM;
this.zhuanMsg.NowTCNUM = TCNUM;
if (this.zhuanMsg.TCNUM === '') {
return this.$message.error("请输入团号!")
} else if (this.zhuanMsg.TCNUM === TCNUM) {
return this.$message.error("转出团不能与当前团相同!")
} else {
this.apipost('Financial_post_FinanceTurnGroup', this.zhuanMsg, res=>{
this.apipost('Financial_post_FinanceTurnGroup', this.zhuanMsg, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList();
......@@ -943,7 +953,7 @@ export default {
this.loading = true;
let msg = {
TCID: this.TCID,
Is_Open:this.DataList.TeamBalance.BrakeAccountStatus === 0 ? 1 : 0
Is_Open: this.DataList.TeamBalance.BrakeAccountStatus === 0 ? 1 : 0
};
this.apipost("travel_post_UpdateBrakeAccountStatus", msg, res => {
if (res.data.resultCode == 1) {
......@@ -953,29 +963,28 @@ export default {
});
},
getList() {
this.loading = true;
let msg = {
TCID: this.TCID
};
this.apipost("travel_get_GetTeamBalanceSheet", msg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.isShow = true;
let data = res.data.data;
data.FiniceReciveList.forEach(x=>{
data.FiniceReciveList.forEach(x => {
x.checked = false;
})
this.DataList = data;
this.loading = false;
}else {
this.loading = false;
}
});
},
//收入跳转
AddIncomeDetail() {
var TCArr=[this.TCID];
var TCArr = [this.TCID];
let orderObj = {
OrderID:0,
OrderSource:8,
OrderID: 0,
OrderSource: 8,
Obj: {},
TCIDList: TCArr
}
......@@ -985,16 +994,16 @@ export default {
Type: 1,
companyID: this.OutBranchId,
'blank': 'y',
'orderObj':JSON.stringify(orderObj)
'orderObj': JSON.stringify(orderObj)
}
});
},
//支出跳转
AddOutDetail() {
var TCArr=[this.TCID];
var TCArr = [this.TCID];
let orderObj = {
OrderID:0,
OrderSource:8,
OrderID: 0,
OrderSource: 8,
Obj: {},
TCIDList: TCArr
}
......@@ -1004,7 +1013,7 @@ export default {
Type: 2,
companyID: this.OutBranchId,
'blank': 'y',
'orderObj':JSON.stringify(orderObj)
'orderObj': JSON.stringify(orderObj)
}
});
},
......@@ -1021,10 +1030,10 @@ export default {
},
//打印
doPrint() {
this.ishowBtn=false;
setTimeout(this.getPrint,500);
this.ishowBtn = false;
setTimeout(this.getPrint, 500);
},
getPrint(){
getPrint() {
let subOutputRankPrint = document.getElementById("print");
let newContent = subOutputRankPrint.innerHTML;
let oldContent = document.body.innerHTML;
......@@ -1035,7 +1044,12 @@ export default {
return false;
},
goUrl(path, id) {
this.$router.push({ name: path, query: { id: id } });
this.$router.push({
name: path,
query: {
id: id
}
});
},
},
mounted() {
......@@ -1044,5 +1058,6 @@ export default {
this.CloseIncomeBtn = this.$route.query.CloseIncomeBtn
this.getList();
}
};
};
</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