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

111

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