Commit 17bb523d authored by liudong1993's avatar liudong1993

1 台湾结算

parent eae13327
...@@ -1164,6 +1164,9 @@ ...@@ -1164,6 +1164,9 @@
<!-- 相同对象付款单据 --> <!-- 相同对象付款单据 -->
<SamePayment v-if="GetDetail.Type==2&&GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0&&(GetDetail.DijieBathFinanceList==null || GetDetail.DijieBathFinanceList.length==0)" :GetDetail="GetDetail"> <SamePayment v-if="GetDetail.Type==2&&GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0&&(GetDetail.DijieBathFinanceList==null || GetDetail.DijieBathFinanceList.length==0)" :GetDetail="GetDetail">
</SamePayment> </SamePayment>
<!-- 台湾经营费关联 -->
<TaiwanWorkingExpense v-if="userInfo.RB_Group_id ==2 && (GetDetail.TemplateId==282 || GetDetail.TemplateId==283)" :GetDetail="GetDetail">
</TaiwanWorkingExpense>
<!-- 团成员已制单名单 --> <!-- 团成员已制单名单 -->
<template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0"> <template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0">
<RollCall v-if="GetDetail.OrderSource==10&& <RollCall v-if="GetDetail.OrderSource==10&&
...@@ -2169,6 +2172,7 @@ class="w135 _border_b_1"> ...@@ -2169,6 +2172,7 @@ class="w135 _border_b_1">
import orderFinancialPage from "./FinancialSubmodule/OrderFinancialPage.vue"; import orderFinancialPage from "./FinancialSubmodule/OrderFinancialPage.vue";
import CostmonthDetails from './components/CostmonthDetails'; import CostmonthDetails from './components/CostmonthDetails';
import SamePayment from './components/SamePayment'; import SamePayment from './components/SamePayment';
import TaiwanWorkingExpense from './components/TaiwanWorkingExpense';
import UserCredit from './components/UserCredit'; import UserCredit from './components/UserCredit';
import RollCall from './components/RollCall' import RollCall from './components/RollCall'
import OrderReceivablesAccount from "./components/OrderReceivablesAccount.vue"; import OrderReceivablesAccount from "./components/OrderReceivablesAccount.vue";
...@@ -2389,6 +2393,7 @@ class="w135 _border_b_1"> ...@@ -2389,6 +2393,7 @@ class="w135 _border_b_1">
"orderFinancialPage":orderFinancialPage, "orderFinancialPage":orderFinancialPage,
CostmonthDetails, CostmonthDetails,
SamePayment, SamePayment,
TaiwanWorkingExpense,
UserCredit, UserCredit,
RollCall, RollCall,
OrderReceivablesAccount, OrderReceivablesAccount,
......
...@@ -1223,6 +1223,9 @@ ...@@ -1223,6 +1223,9 @@
<SamePayment v-if="GetDetail.Type==2&&GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0" <SamePayment v-if="GetDetail.Type==2&&GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0"
:GetDetail="GetDetail"> :GetDetail="GetDetail">
</SamePayment> </SamePayment>
<!-- 台湾经营费关联 -->
<TaiwanWorkingExpense v-if="userInfo.RB_Group_id ==2 && (GetDetail.TemplateId==282 || GetDetail.TemplateId==283)" :GetDetail="GetDetail">
</TaiwanWorkingExpense>
<!-- 团成员已制单名单 --> <!-- 团成员已制单名单 -->
<template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0"> <template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0">
<RollCall v-if="GetDetail.OrderSource==10&& <RollCall v-if="GetDetail.OrderSource==10&&
...@@ -1596,6 +1599,7 @@ ...@@ -1596,6 +1599,7 @@
import dmcTravelBill from './FinancialSubmodule/DmcTravelBillModule'; //线路 import dmcTravelBill from './FinancialSubmodule/DmcTravelBillModule'; //线路
import CostmonthDetails from './components/CostmonthDetails'; import CostmonthDetails from './components/CostmonthDetails';
import SamePayment from './components/SamePayment'; import SamePayment from './components/SamePayment';
import TaiwanWorkingExpense from './components/TaiwanWorkingExpense';
import UserCredit from './components/UserCredit'; import UserCredit from './components/UserCredit';
import RollCall from './components/RollCall'; import RollCall from './components/RollCall';
import OrderReceivablesAccount from "./components/OrderReceivablesAccount.vue"; import OrderReceivablesAccount from "./components/OrderReceivablesAccount.vue";
...@@ -1718,6 +1722,7 @@ ...@@ -1718,6 +1722,7 @@
"dmcTravelBill": dmcTravelBill, "dmcTravelBill": dmcTravelBill,
CostmonthDetails, CostmonthDetails,
SamePayment, SamePayment,
TaiwanWorkingExpense,
UserCredit, UserCredit,
RollCall, RollCall,
OrderReceivablesAccount, OrderReceivablesAccount,
......
<template>
<div>
<el-dialog :title="`已选数据${dataList.length}条`"
:visible.sync="showDialog" center @close="close"
width="1000px">
<div style="max-height: 400px;overflow: auto;">
<el-table
:data="dataList"
tooltip-effect="dark"
style="width: 100%;"
>
<el-table-column
:label="$t('fnc.danhao')"
width="120">
<template slot-scope="scope">
<span>{{ scope.row.FrID }}</span>
</template>
</el-table-column>
<el-table-column
:label="$t('fnc.djleixing')"
width="120">
<template slot-scope="scope">
<span v-if="scope.row.TemplateId==281" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #E95252;
line-height: 16px;
border-radius: 4px;">
分润收入
</span>
<span v-else-if="scope.row.TemplateId==283" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #E95252;
line-height: 16px;
border-radius: 4px;">
经营费收入
</span>
<span v-else-if="scope.row.Type==2" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #E95252;
line-height: 16px;
border-radius: 4px;">
成本支出
</span>
<span v-else-if="scope.row.Type==1" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #2BB87C;
line-height: 16px;
border-radius: 4px;">
团费收入
</span>
</template>
</el-table-column>
<el-table-column
prop=""
label="原币金额"
show-overflow-tooltip width="150">
<template slot-scope="scope">
{{scope.row.WBMoney?scope.row.WBMoney+'/'+scope.row.CurrencyName:''}}
</template>
</el-table-column>
<el-table-column
prop=""
label="本位币金额"
show-overflow-tooltip width="150">
<template slot-scope="scope">
{{scope.row.Money}}
</template>
</el-table-column>
<el-table-column
prop=""
label="明细"
show-overflow-tooltip>
<template slot-scope="scope">
<div v-for="(x,index) in scope.row.DetailList" class="DetailList-box">
<p><span>费用:</span>{{x.CostTypeName}} &nbsp;</p>
<p><span>原币:</span>{{x.OriginalMoney}}&nbsp;</p>
<p><span>汇率:</span>{{x.Rate}} &nbsp;</p>
<p><span>本位币:</span>{{x.Money}}</p>
</div>
</template>
</el-table-column>
</el-table>
</div>
<div class="totalMoney-box">
<div>
<span>合计应付台湾:</span>
<span style="color: red;">{{OriginalMoney}}</span>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="close">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="clicksubmit">{{$t('pub.sureBtn')}}生成</el-button>
<el-select style="width: 90px;" filterable v-model="financeType" :placeholder="$t('pub.pleaseSel')">
<el-option label="结算调拨单" :value="1"></el-option>
</el-select>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
name:'selectListData',
props: ['multipleSelection'],
data() {
return {
showDialog: true,
financeType : 1,
MatchFrId:'',
dataList: [],
OriginalMoney: 0,//原币合计
};
},
watch: {
multipleSelection:{
handler(val, oldval) {
this.dataList = JSON.parse(JSON.stringify(val));
this.OriginalMoney = 0;
this.dataList.forEach(x=>{
x.DetailList.forEach(y=>{
if(x.TemplateId==281 || x.TemplateId==283 || x.Type==2){
this.OriginalMoney+=(y.Money *100)
}else{
this.OriginalMoney-=(y.Money *100)
}
});
})
this.OriginalMoney = (this.OriginalMoney)/100
},
deep: true,
immediate: true
}
},
methods: {
clicksubmit(){
let ids
ids = this.dataList.map(x=>{ return x.FrID})
this.$emit('close')
this.$router.push({
name: 'addCapitalAllocation',
query: {
'settlementFrIds': ids.join(','),
'tab': '新增资金调拨',
'blank': "y"
}
});
},
close(){
this.$emit('close')
},
},
mounted() {
}
};
</script>
<style scoped>
.DetailList-box{
display: flex;
}
.DetailList-box p{
color: black;
margin-right: 20px;
}
.DetailList-box p:last-child{
margin-right: 0;
}
.DetailList-box p span{
margin-right: 3px;
color: #666666;
}
.totalMoney-box{
display: flex;
justify-content: end;
align-items: center;
padding: 10px 0;
}
.totalMoney-box>div{
display: flex;
align-items: center;
margin-left: 20px;
}
.totalMoney-box>div>span{
flex-shrink: 0;
}
</style>
<style scoped>
/deep/.el-table th.el-table__cell {
background-color: #E6E6E6;
}
</style>
<template>
<div class="page_fnDm page_RecPayQuery" @keyup.enter="resetPageIndex()">
<div class="query-box" style="margin-bottom: 0px;">
<el-form class="_info_box clearfix" label-width="110px">
<el-row style="padding:15px 20px 0 0;">
<el-col :span="3">
<el-form-item :label="$t('fnc.danhao')">
<el-input placeholder="" class="" v-model="msg.FrID" @keyup.native="checkInteger(msg,'FrID')"
maxlength="8"></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="调拨单号">
<el-input placeholder="" class="" v-model="msg.CallBackReFrId" @keyup.native="checkInteger(msg,'CallBackReFrId')"
maxlength="8"></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item :label="$t('objFill.settlementstatus')">
<el-select v-model='msg.IsSelectAduiting'>
<el-option v-for='item in SelectAduitingList' :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item :label="$t('fnc.zdriqi')">
<el-date-picker class="h34" @change="timeAdd(1)" v-model="productionDate" type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="交易日期">
<el-date-picker class="h34" v-model="missionDate" @change="timeAdd(4)" type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item :label="$t('fnc.shzhuangtai')">
<el-select filterable v-model='msg.Status' class="">
<el-option key="-1" value="-1" :label="$t('system.ph_buxian')"></el-option>
<el-option key="0" value="0" :label="$t('fnc.zancun')"></el-option>
<el-option key="1" value="1" :label="$t('fnc.a_shezhong')"></el-option>
<el-option key="2" value="2" :label="$t('visa.v_tongguo')"></el-option>
<el-option key="3" value="3" :label="$t('fnc.bohui')"></el-option>
<el-option key="4" value="4" :label="$t('active.cl_zuofei')"></el-option>
<el-option key="5" value="5" :label="$t('fnc.a_cnzancun')"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<ul class="clearfix">
<li class="hight_query">
<span style="font-size: 13px;color: red;cursor: pointer;">
<em @click.stop="heightQueryBox=!heightQueryBox">{{$t('visa.v_gjchaxun')}} <i class="iconfont icon-gengduo"
style="font-size: 12px;"></i></em>
</span>
<button class="hollowFixedBtn" @click="resetPageIndex()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" @click="method5()">{{$t('visa.v_daochu')}}</button>
<button class="normalBtn" @click="GenerateDocuments()">生成结算单据</button>
</li>
</ul>
注释:此处为对台湾结算,结算金额 = 分润收入 + 经营费收入 + 台湾成本支出 - 台湾团费收入
</div>
<div style="display: flex;flex-wrap: nowrap; padding: 10px;">
<div style="display: flex;flex-wrap: wrap;">
<span>{{$t('objFill.selecteddata')}}</span>
<template v-if="multipleSelection.length>0">
<el-tag size="mini" closable style="margin-right: 5px;margin-bottom: 5px;"
v-for="(x,index) in multipleSelection" :key="x.FrID" @close="handleClose([multipleSelection[index]])"
:type="x.TemplateId==281 || x.TemplateId==283 || x.Type==2?'success':'danger'">
{{x.FrID}}/
<template v-for="(y,i) in x.DetailList">
{{y.CostTypeName}}:{{y.Money}} {{i!=(x.DetailList.length-1)?',':''}}
</template>
</el-tag>
</template>
<template v-else>
{{$t('fnc.no')}}
</template>
</div>
<div style="margin-left: 20px;flex-shrink: 0;">
{{$t('fnc.a_zongjine')}}:{{getMoney()}}
</div>
</div>
<div class="_fnDm_content" v-loading='loading'>
<el-table ref="multipleTable" :data="DataList" tooltip-effect="dark" style="width: 100%" row-key="FrID"
@selection-change="handleSelectionChange">
<el-table-column type="selection" :selectable="selectable" width="55" :reserve-selection="true" />
<el-table-column :label="$t('fnc.danhao')" width="120">
<template slot-scope="scope">
<span style="cursor: pointer;color: #00C6FF;"
@click="openDetails(scope.row.FrID)">{{ scope.row.FrID }}</span>
</template>
</el-table-column>
<el-table-column prop="name" :label="$t('fnc.djleixing')" width="120">
<template slot-scope="scope">
<span v-if="scope.row.TemplateId==281" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #E95252;
line-height: 16px;
border-radius: 4px;">
分润收入
</span>
<span v-else-if="scope.row.TemplateId==283" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #E95252;
line-height: 16px;
border-radius: 4px;">
经营费收入
</span>
<span v-else-if="scope.row.Type==2" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #E95252;
line-height: 16px;
border-radius: 4px;">
成本支出
</span>
<span v-else-if="scope.row.Type==1" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #2BB87C;
line-height: 16px;
border-radius: 4px;">
团费收入
</span>
</template>
</el-table-column>
<el-table-column prop="" :label="$t('hotel.hotel_corrlelatition')" show-overflow-tooltip width="260">
<template slot-scope="scope">
<template v-if="scope.row.TCIDAndTCNUMList.length>0">
<p class="_TCIDAndTCNUMList" style="display: flex;">
<span>{{$t('visa.v_tuanhao')}}</span>
<template v-if="scope.row.TCIDAndTCNUMList&&scope.row.TCIDAndTCNUMList.length>0">
<p><span v-for="(i,ix) in scope.row.TCIDAndTCNUMList">{{i.TCNUM}}{{i.TCID}}<span
v-if="ix!=scope.row.TCIDAndTCNUMList.length-1">,</br></span></span></p>
</template>
<template v-else>
<span>{{$t('fnc.no')}}</span>
</template>
</p>
<p v-if="scope.row.OrderID>0 && scope.row.OrderSource==8">{{$t('fnc.danhao')}}:<span
class="">{{scope.row.OrderID}}</span></p>
</template>
<template v-else-if="scope.row.OrderSource==8 && scope.row.TCIDAndTCNUMList.length==0">
<p class="_TCIDAndTCNUMList">{{$t('tips.zwtqxinxi')}}</p>
</template>
<template v-else-if="scope.row.OrderSource==4 && scope.row.TCIDAndTCNUMList.length==0">
<p class="_TCIDAndTCNUMList" style="text-decoration: underline;cursor: pointer;"
@click="goTicketPage(rowData)">{{$t('fnc.jpbianhao')}}{{scope.row.SourceID}}</p>
<p style="margin-top: 5px;">
{{$t('advmanager.v_line')}}<span>{{scope.row.LineName?scope.row.LineName:$t('tips.jpswxzxianlu')}}</span>
</p>
</template>
<template v-else-if="scope.row.OrderSource==9 && scope.row.TCIDAndTCNUMList.length==0">
<p class="_TCIDAndTCNUMList">{{$t('fnc.gnjpqishu')}}{{scope.row.Term}}</p>
</template>
<template v-else-if="scope.row.OrderSource==10 && scope.row.TCIDAndTCNUMList.length==0">
<p class="_TCIDAndTCNUMList">{{$t('tips.qzcpbianhao')}}{{scope.row.SourceID}}</p>
</template>
<template v-else-if="scope.row.OrderSource==0 || scope.row.OrderSource==null">
<p class="_TCIDAndTCNUMList">{{ scope.row.BranchName }}-{{scope.row.DepartName}} </p>
</template>
<template v-else>
<p class="_TCIDAndTCNUMList">{{$t('pub.noMsg')}}</p>
</template>
<template v-if="scope.row.OtherType>0&&scope.row.ReFinanceIds!='0'&&scope.row.ReFinanceIds">
<p v-if="scope.row.OtherType==66">
<span>{{$t('objFill.admissionticketid')}}</span>
<span>{{scope.row.ReFinanceIds}}</span>
</p>
<p v-else-if="scope.row.OtherType==67">
<span>{{$t('objFill.vehicleid')}}</span>
<span>{{scope.row.ReFinanceIds}}</span>
</p>
<p v-else-if="scope.row.OtherType==61">
<span>{{$t('salesModule.HotelOrderNum')}}</span>
<span>{{scope.row.ReFinanceIds}}</span>
</p>
<p v-else-if="scope.row.OtherType==80">
<span>{{$t('objFill.impressioncarshopid')}}</span>
<span>{{scope.row.ReFinanceIds}}</span>
</p>
</template>
</template>
</el-table-column>
<el-table-column prop="" :label="$t('fnc.feiyongleixing')" show-overflow-tooltip width="150">
<template slot-scope="scope">
<template v-for="(s,si) in scope.row.CostTypeList">
<span
style="background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;">{{s}}</span></br>
</template>
</template>
</el-table-column>
<el-table-column prop="" :label="$t('objFill.originalamount')" show-overflow-tooltip width="150">
<template slot-scope="scope">
{{scope.row.WBMoney?scope.row.WBMoney+'/'+scope.row.CurrencyName:''}}
</template>
</el-table-column>
<el-table-column prop="" :label="$t('fnc.bwbjine')" show-overflow-tooltip width="150">
<template slot-scope="scope">
{{scope.row.Money}}
<!-- <p style="line-height:20px" v-if="scope.row.Money>0">{{scope.row.Type==1?$t('fnc.yingshou'):$t('fnc.yingfu')}}<span>{{scope.row.Money}}</span></p>
<p style="line-height:20px" v-if="scope.row.PayMoney>0">{{scope.row.Type==1?$t('fnc.shishou'):$t('fnc.shifu')}}<span>{{scope.row.PayMoney}}</span></p>
<p v-if="scope.row.IsAdvanceFinance==1&&scope.row.MatchMoney>0" style="line-height:20px">{{$t('objFill.balanceout')}}<span>{{scope.row.MatchMoney}}</span></p> -->
</template>
</el-table-column>
<el-table-column prop="" :label="$t('fnc.fkduixiang')" show-overflow-tooltip>
<template slot-scope="scope">
<span
style="color: gray">{{scope.row.Type==2?scope.row.ClientTypeName+':':$t('fnc.huikuanren')+':'}}</span><span>{{scope.row.RemitterName}}</span>
</template>
</el-table-column>
<el-table-column prop="" label="交易日期" show-overflow-tooltip width="120">
<template slot-scope="scope">
<div>{{scope.row.TradeDate}}</div>
</template>
</el-table-column>
<el-table-column prop="" :label="$t('fnc.zdrenyuan')" show-overflow-tooltip width="170">
<template slot-scope="scope">
<div>{{scope.row.EmName}}</div>
<div>{{scope.row.CreateDate}}</div>
</template>
</el-table-column>
<el-table-column prop="" :label="$t('fnc.dqzhuangtai')" show-overflow-tooltip width="120">
<template slot-scope="scope">
<i v-if="scope.row.Status==1" class="iconfont icon-daiqueren" style="color: #4BCA81"></i>
<i v-if="scope.row.Status==4" class="iconfont icon-yiquxiao" style="color: #4BCA81"></i>
<i v-if="scope.row.Status==2" class="iconfont icon-yiqueren" style="color: #959595"></i>
<i v-if="scope.row.Status==3" class="iconfont icon-shenhebohui" style="color: #E95252"></i>
<i v-if="scope.row.Status==0" class="iconfont icon-zancun" style="color: #FF9C01"></i>
<el-popover popper-class="detailsIT_Journal" width="250" trigger="click">
<div style="height: auto;max-height: 220px;background-color: #FFFFFF;">
<div class="changLog">
<p class="_log_t">{{$t('fnc.lcrizhi')}}</p>
<ul style="padding-left: 20px;max-height: 180px;overflow: auto;" v-if="GetFinancLogList"
v-loading='LogLoading'>
<li
style="border-left: 1px solid #E9E9E9;position: relative;padding-bottom: 10px;padding-left: 20px;padding-top: 10px;"
v-for="(log,li) in GetFinancLogList">
<span
style="background-color: #47BF8C;width: 7px;height: 7px;border-radius: 50%;display: inline-block;position: absolute;left: -4px;top: 19px;"></span>
<p> <span class="_color_blue">{{log.EmName}}</span> <span
class="fr changLog_time">{{log.UpdateDate}}</span> </p>
<p class="_dtel">{{log.StartValue}}</p>
</li>
</ul>
<ul v-else>
<li>{{$t('fnc.zwxgrizhi')}}</li>
</ul>
</div>
</div>
<span slot="reference" class="text_d _font_init"
@click="Financial_post_GetFinancLogList(scope.row.FrID)">{{scope.row.StatusStr}}</span>
</el-popover>
</template>
</el-table-column>
<el-table-column prop="" label="关联结算单" show-overflow-tooltip width="120">
<template slot-scope="scope">
<span v-if="scope.row.ReFinanceId" style="cursor: pointer;color: #00C6FF;"
@click="openTBDetails(scope.row.ReFinanceId)">{{ scope.row.ReFinanceId }}</span>
<template v-else>-</template>
</template>
</el-table-column>
</el-table>
<div style="padding-bottom:15px">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChanges"
layout="total,sizes,prev, pager, next, jumper" :page-sizes="[8,20,50,70,100,200]" :page-size="msg.pageSize"
:current-page.sync="currentPage" :total='total'>
</el-pagination>
</div>
</div>
<template v-if="showDialog">
<selectSettlementData :multipleSelection="multipleSelection" @close="showDialog=false"></selectSettlementData>
</template>
</div>
</template>
<script>
import Vue from 'vue'
import selectSettlementData from "./components/selectSettlementData";
export default {
components: {
selectSettlementData
},
data() {
return {
showDialog: false,
multipleSelection: [],
SelectAduitingList: [{
Name: this.$t('pub.unlimitedSel'),
Id: '0'
},
{
Name: this.$t('objFill.havealreadysettled'),
Id: '1'
},
{
Name: this.$t('objFill.unsettled'),
Id: '2'
},
],
msg: {
pageIndex: 1,
pageSize: 8,
FrID: '',
CallBackReFrId: '',
sDate: '',
eDate: '',
Status: '-1',
TemplateIds: '0',
RB_Branch_Id: '',
RB_Depart_Id: '',
sTradeDate: '',
eTradeDate: '',
ClientType: '0',
JapanCarCustomerId: 0,
RemitterName: '',
ClientID: '',
sMoney: '',
eMoney: '',
CurrencyId: '0',
CostTypeID: '',
Conditon: '',
TCNUM: '',
TradeWay: '',
Type: '-1',
AccountType: '',
ReFinanceId: 0,
OtherType: '0',
QEndDate: '',
QStartDate: '',
UpdateBy: '',
IsFormRecPayQuery: '1',
KJCostTypeId: 0,
IsSelectKJSetCostType: 0,
Remark: '', //备注查询
Sort: '2',
EmployeeId: '',
IsSelectAduiting: '0',
},
getCompanyMsg: { // 公司
RB_Group_Id: '0',
Status: '0',
},
getDepartmentMsg: { // 部门
RB_Group_Id: '',
RB_Branch_Id: '',
Status: 0,
ParentId: -1,
Tier: 0,
},
employeeMsg: { // 员工
GroupId: '',
BranchId: -1,
DepartmentId: 0,
PostId: 0,
IsLeave: 0,
},
DataList: [],
GetFinancLogList: [],
StatusList: [],
ClientAccountList: [],
accountList: [],
productionDate: [],
transactionDate: [],
missionDate: [],
currencyTypeList: [],
GetCostTypeList: [],
TemplateGetList: [],
AccList: [],
dateStart: '',
dateEnd: '',
loading: false,
LogLoading: false,
currentPage: 1,
total: 0,
ChineseStr: '',
DepartIDs: '',
heightQueryBox: false,
JapanCarCustomerList: [],
typeSystem: 0
}
},
created() {
if (this.$route.query.pageIndex) {
this.msg.pageIndex = this.$route.query.pageIndex;
}
if (this.$route.query.FrID) {
this.msg.FrID = this.$route.query.FrID;
}
if (this.$route.query.Type) {
this.msg.Type = this.$route.query.Type + '';
}
},
mounted() {
if (localStorage.typeSystem && localStorage.typeSystem == 1) this.typeSystem = localStorage.typeSystem
if (this.typeSystem == 1) this.msg.OtherType = '80'
let userInfo = this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo
.RB_Group_id; //集团ID
this.DepartIDs = userInfo.RB_Department_Id;
this.msg.EmployeeId = userInfo.EmployeeId;
this.msg.FrID = this.$route.query.FrID ? this.$route.query.FrID : 0
this.getPageList();
},
methods: {
handleClose(rows) {
if (rows) {
rows.forEach(row => {
this.$refs.multipleTable.toggleRowSelection(row);
});
}
// this.multipleSelection.splice(index,1)
},
// 单据详情
openDetails(FrID) {
let query = {
id: FrID,
blank: "y",
};
this.$router.push({
path: "/FinancialDocumentsDetail",
query
});
},
// 单据详情
openTBDetails(FrID) {
let query = {
id: FrID,
blank: "y",
};
this.$router.push({
path: "/CapitalAllocationDetail",
query
});
},
selectable(row, index) {
if (!this.DataList[index].ReFinanceId) {
return true;
} else {
return false;
}
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
// 数据筛选
filterMethod(filters) {},
handleSizeChange(val) {
this.msg.pageSize = val
this.msg.pageIndex = 1;
this.getPageList();
},
handleCurrentChanges(val) {
this.msg.pageIndex = val;
this.getPageList();
},
getPageList() { // 获取列表数据
if (!this.msg.ClientID) this.msg.ClientID = "";
if (!this.msg.ClientType) this.msg.ClientType = 0;
if (!this.msg.CurrencyId) this.msg.CurrencyId = 0;
if (!this.msg.CostTypeID) this.msg.CostTypeID = 0;
if (this.msg.TemplateIds == '0') this.msg.TemplateIds = '';
if (this.msg.RB_Branch_Id === '') this.msg.RB_Branch_Id = -1;
if (!this.msg.RB_Depart_Id) this.msg.RB_Depart_Id = 0;
if (!this.msg.UpdateBy) this.msg.UpdateBy = 0;
if (!this.msg.TCID) this.msg.TCID = 0;
if (!this.msg.ReFinanceId) this.msg.ReFinanceId = 0;
if (!this.msg.OtherType) this.msg.OtherType = 0;
if (!this.msg.Status) this.msg.Status = 0;
if (!this.msg.FrID) this.msg.FrID = 0;
if (!this.msg.CallBackReFrId) this.msg.CallBackReFrId =0;
if (!this.msg.Conditon) this.msg.Conditon = 1;
if (!this.msg.TradeWay) this.msg.TradeWay = 0;
if (!this.msg.AccountType) this.msg.AccountType = 0;
if (!this.msg.KJCostTypeId) this.msg.KJCostTypeId = 0;
if (!this.msg.IsSelectKJSetCostType) this.msg.IsSelectKJSetCostType = 0;
this.loading = true;
this.apipost('Financial_post_GetJapanTaiwanSettlementPageList', this.msg, res => {
if (res.data.resultCode == 1) {
let data = res.data.data.pageData;
let arrList = function (arr) {
arr.forEach(x => {
x._checked = true
x._disabled = false
})
}
arrList(data)
this.total = res.data.data.count;
if (this.total == 0) {
this.DataList = [];
} else {
this.DataList = data;
}
this.loading = false;
} else {
this.loading = false;
this.$message.error(res.data.message);
}
this.currentPage = parseInt(this.msg.pageIndex);
}, err => {})
},
method5: function () {
if (!this.msg.ClientID) this.msg.ClientID = "";
if (!this.msg.ClientType) this.msg.ClientType = 0;
if (!this.msg.CurrencyId) this.msg.CurrencyId = 0;
if (!this.msg.CostTypeID) this.msg.CostTypeID = 0;
if (this.msg.TemplateIds == '0') this.msg.TemplateIds = '';
if (this.msg.RB_Branch_Id === '') this.msg.RB_Branch_Id = -1;
if (!this.msg.RB_Depart_Id) this.msg.RB_Depart_Id = 0;
if (!this.msg.UpdateBy) this.msg.UpdateBy = 0;
if (!this.msg.TCID) this.msg.TCID = 0;
if (!this.msg.OrderID) this.msg.OrderID = 0;
if (!this.msg.Status) this.msg.Status = 0;
if (!this.msg.FrID) this.msg.FrID = 0;
if (!this.msg.CallBackReFrId) this.msg.CallBackReFrId =0;
if (!this.msg.Conditon) this.msg.Conditon = 1;
if (!this.msg.TradeWay) this.msg.TradeWay = 0;
if (!this.msg.AccountType) this.msg.AccountType = 0;
if (!this.msg.KJCostTypeId) this.msg.KJCostTypeId = 0;
if (!this.msg.IsSelectKJSetCostType) this.msg.IsSelectKJSetCostType = 0;
let time = this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))
var fileName = `台湾日本结算查询${time}.xls`;
this.GetLocalFile("Financial_post_GetJapanTaiwanSettlementToExcel", this.msg, fileName);
},
Financial_post_GetFinancLogList(id) { // 获取单据日志
this.LogLoading = true;
this.apipost('Financial_post_GetFinancLogList', {
ID: id,
Type: 2
}, res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x => {
x.UpdateDate = this.$commonUtils.formatMsgTime(x.UpdateDate)
})
this.LogLoading = false;
this.GetFinancLogList = data;
}
}, err => {})
},
timeAdd(t) { // 日期格式
if (t == 1) { //制单日期
if (!this.productionDate) {
this.msg.sDate = '';
this.msg.eDate = '';
return
}
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
}
if (t == 4) { //交易日期
if (!this.missionDate) {
this.msg.sTradeDate = '';
this.msg.eTradeDate = '';
return
}
this.msg.sTradeDate = this.missionDate[0];
this.msg.eTradeDate = this.missionDate[1];
}
},
queryInfoInit() { // 初始化msg
let msg = {
pageIndex: this.msg.pageIndex,
pageSize: 6,
FrID: this.msg.FrID == 0 ? '' : this.msg.FrID,
CallBackReFrId: this.msg.CallBackReFrId ==0 ?'':this.msg.CallBackReFrId,
sDate: this.msg.sDate,
eDate: this.msg.eDate,
Status: this.msg.Status,
TemplateIds: this.msg.TemplateIds,
RB_Branch_Id: this.msg.RB_Branch_Id,
RB_Depart_Id: this.msg.RB_Depart_Id,
UpdateBy: this.msg.UpdateBy,
sTradeDate: this.msg.sTradeDate,
eTradeDate: this.msg.eTradeDate,
ClientType: this.msg.ClientType,
RemitterName: this.msg.RemitterName,
ClientID: this.msg.ClientID,
sMoney: this.msg.sMoney,
eMoney: this.msg.eMoney,
CurrencyId: this.msg.CurrencyId,
CostTypeID: this.msg.CostTypeID,
Conditon: this.msg.Conditon,
TCNUM: this.msg.TCNUM == 0 ? "" : this.msg.TCNUM,
TradeWay: this.msg.TradeWay == 0 ? "" : this.msg.TradeWay,
Type: this.msg.Type,
AccountType: this.msg.AccountType == 0 ? '' : this.msg.AccountType,
QEndDate: this.msg.QEndDate,
QStartDate: this.msg.QStartDate,
OrderID: this.msg.OrderID == 0 ? '' : this.msg.OrderID,
Sort: this.msg.Sort,
EmployeeId: this.msg.EmployeeId,
KJCostTypeId: this.msg.KJCostTypeId == 0 ? '' : this.msg.KJCostTypeId,
IsSelectKJSetCostType: this.msg.IsSelectKJSetCostType == 0 ? '' : this.msg.IsSelectKJSetCostType,
}
this.msg = msg;
},
handleCurrentChange(val) { //翻页
this.msg.pageIndex = val;
this.getPageList();
},
resetPageIndex() { // 重置页码
this.msg.pageIndex = 1;
this.currentPage = 1;
this.getPageList()
},
getMoney() {
let Money = 0
this.multipleSelection.forEach(x => {
x.DetailList.forEach(y => {
if (x.TemplateId==281 || x.TemplateId==283 || x.Type == 2) {
Money += (y.Money * 100)
}else{
Money -= (y.Money * 100)
}
})
})
return Money / 100
},
GenerateDocuments() {
if (this.multipleSelection.length == 0) {
this.Error(this.$t('objFill.pleaseselectdocuments'));
return;
}
this.showDialog = true
return
let ids
ids = this.multipleSelection.map(x => {
return x.FrID
})
let orderObj = {
CostType: 1547,
OtherType: 75,
Money: this.getMoney(),
isVerifyMoney: true,
ReFinanceIds: ids.join(','), //单号
ReFinanceId2: 3, //成本
}
this.$confirm(`${this.$t('ObjFill.theorderselected')}${ids.join(',')}
${this.$t('fnc.a_zongjine')}${orderObj.Money},
${this.$t('objFill.whethertocontinueorder')}`, this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: "warning"
})
.then(() => {
this.$refs.multipleTable.clearSelection();
this.$router.push({
name: 'ChoiceAddFinancialDocuments',
query: {
'Type': 2,
'searchTitle': this.$t('objFill.monthlypayment'),
'blank': 'y',
'orderObj': JSON.stringify(orderObj),
}
});
})
}
}
}
</script>
...@@ -495,6 +495,11 @@ export default { ...@@ -495,6 +495,11 @@ export default {
delete x.shouAccNumList delete x.shouAccNumList
}) })
if(this.$route.query.settlementFrIds){
this.msg.IsDiJieSelect=955;//代号
this.msg.ReFinanceIds=this.$route.query.settlementFrIds;
}
if(this.$route.query.frIds){ if(this.$route.query.frIds){
this.msg.FrIDs=this.$route.query.frIds; this.msg.FrIDs=this.$route.query.frIds;
} }
......
<style>
@import url('../../../assets/css/domestic/TicketingModule.css');
.sanjiao-box{
position: relative;
padding-top: 10px!important;
}
.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" style="border: 0;">
<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>{{$t('fnc.danhao')}}</th>
<th>类型</th>
<th>费用科目</th>
<th>币种</th>
<th>原币</th>
<th>汇率</th>
<th>{{$t('fnc.bweibi')}}</th>
<th>{{$t('pub.pubRemark')}}</th>
</tr>
<tr class="_color_b" v-for="(item,index) in DataList" :key="index">
<td>
{{item.BranchIdName}}
</td>
<td class="hover_text" @click="goDetail(item.FinanceId)" ><span>{{item.FinanceId}}</span></td>
<td>
{{item.Type}}
</td>
<td>
{{item.CostTypeName}}
</td>
<td>
{{item.CurrencyName}}
</td>
<td>
{{item.OriginalMoney}}
</td>
<td>{{item.Rate}}</td>
<td>{{item.Money}}</td>
<td>
{{item.Remark}}
</td>
</tr>
</table>
</div>
</div>
</div>
</template>
<script>
export default {
props:["GetDetail"],
data(){
return{
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_GetTaiwanWorkingExpenseList',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>
...@@ -4107,6 +4107,14 @@ export default { ...@@ -4107,6 +4107,14 @@ export default {
title: '成本月结查询' title: '成本月结查询'
}, },
}, },
{ //财务 台湾与日本结算
path: '/TaiwanSettlement',
name: 'TaiwanSettlement',
component: resolve => require(['@/components/FinancialModule/MonthlyCostStatement/settlement'], resolve),
meta: {
title: '台湾结算查询'
},
},
{ //财务 财务单据 帮收帮付公司 { //财务 财务单据 帮收帮付公司
path: '/HelpBranch', path: '/HelpBranch',
name: 'HelpBranch', name: 'HelpBranch',
......
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