Commit 3f725e1c authored by liudong1993's avatar liudong1993

1 发票合并申请

parent 12b9bc81
...@@ -233,15 +233,20 @@ ...@@ -233,15 +233,20 @@
</tr> </tr>
<template v-for="(item, index) in dataList" v-loading="loading"> <template v-for="(item, index) in dataList" v-loading="loading">
<tr> <tr>
<td class="cursorpointer" @click="goUrlT('productQuery', item.TCNUM, '产品查询')" <td v-if="item.Type==1">合并发票</td>
<td v-else class="cursorpointer" @click="goUrlT('productQuery', item.TCNUM, '产品查询')"
:rowspan="item.InvoiceApplyList.length"> :rowspan="item.InvoiceApplyList.length">
{{item.TCNUM}} {{item.TCNUM}}
<!-- ({{item.TCID}}) --> <!-- ({{item.TCID}}) -->
</td> </td>
<td class="cursorpointer" :rowspan="item.InvoiceApplyList.length" @click="goUrlO(item.OrderId)"> <td v-if="item.Type==1">-</td>
<td v-else class="cursorpointer" :rowspan="item.InvoiceApplyList.length" @click="goUrlO(item.OrderId)">
{{item.OrderId}}</td> {{item.OrderId}}</td>
<td :rowspan="item.InvoiceApplyList.length">{{item.CreateByStr}}</td> <td :rowspan="item.InvoiceApplyList.length">{{item.CreateByStr}}</td>
<td :rowspan="item.InvoiceApplyList.length">{{item.CustomerName}}:{{item.CustomerContact}}</td> <td v-if="item.Type==1" :rowspan="item.InvoiceApplyList.length">{{item.CustomerName}}:
<span class="cursorpointer" v-for="(qitem,qindex) in item.InvoiceOrderList" @click="goUrlO(qitem)">{{qitem+(qindex<(item.InvoiceOrderList.length-1)?",":"")}}</span>
</td>
<td v-else :rowspan="item.InvoiceApplyList.length">{{item.CustomerName}}:{{item.CustomerContact}}</td>
<td :rowspan="item.InvoiceApplyList.length">{{item.ApplyTotalPrice}}</td> <td :rowspan="item.InvoiceApplyList.length">{{item.ApplyTotalPrice}}</td>
<td :rowspan="item.InvoiceApplyList.length"> <td :rowspan="item.InvoiceApplyList.length">
<span>{{item.DpreadPrice - item.ApplyTotalPrice}}</span> <span>{{item.DpreadPrice - item.ApplyTotalPrice}}</span>
...@@ -260,7 +265,7 @@ ...@@ -260,7 +265,7 @@
<i class="iconfont icon-sousuo" @click="goIisDetail(item.InvoiceApplyList[0].ID)"></i> <i class="iconfont icon-sousuo" @click="goIisDetail(item.InvoiceApplyList[0].ID)"></i>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.FinancialModule.zuihuifp')" placement="top"> <el-tooltip class="item" effect="dark" :content="$t('objFill.v101.FinancialModule.zuihuifp')" placement="top">
<span v-if="item.ApplyTotalPrice!=0" class="_zhuihui" <span v-if="item.ApplyTotalPrice!=0 && item.InvoiceApplyList[0].InvoiceApplyState != 1" class="_zhuihui"
@click="zhuihui(item.InvoiceApplyList[0].ID)">{{$t('objFill.chase')}}</span> @click="zhuihui(item.InvoiceApplyList[0].ID)">{{$t('objFill.chase')}}</span>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.FinancialModule.querenzh')" placement="top"> <el-tooltip class="item" effect="dark" :content="$t('objFill.v101.FinancialModule.querenzh')" placement="top">
...@@ -289,7 +294,7 @@ ...@@ -289,7 +294,7 @@
<i class="iconfont icon-sousuo" @click="goIisDetail(item2.ID)"></i> <i class="iconfont icon-sousuo" @click="goIisDetail(item2.ID)"></i>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.FinancialModule.zuihuifp')" placement="top"> <el-tooltip class="item" effect="dark" :content="$t('objFill.v101.FinancialModule.zuihuifp')" placement="top">
<span v-if="item.ApplyTotalPrice!=0" class="_zhuihui" <span v-if="item.ApplyTotalPrice!=0 && item2.InvoiceApplyState!=1" class="_zhuihui"
@click="zhuihui(item2.ID)">{{$t('objFill.chase')}}</span> @click="zhuihui(item2.ID)">{{$t('objFill.chase')}}</span>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.FinancialModule.querenzh')" placement="top"> <el-tooltip class="item" effect="dark" :content="$t('objFill.v101.FinancialModule.querenzh')" placement="top">
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<el-input placeholder v-model="msg.ApplyMoney" @keyup.native="checkPrice(msg,'ApplyMoney')"></el-input> <el-input placeholder v-model="msg.ApplyMoney" @keyup.native="checkPrice(msg,'ApplyMoney')"></el-input>
</td> </td>
<td>{{$t('ios.dzjine')}}</td> <td>{{$t('ios.dzjine')}}</td>
<td>{{orderList.moneyStr}}</td> <td>{{orderList.moneyStr}}{{(orderList.fee?'(手续费 '+orderList.fee+')':'')}}</td>
</tr> </tr>
<tr class="page_iisMgadd_bank"> <tr class="page_iisMgadd_bank">
<td>{{$t('ios.dzyinhang')}}</td> <td>{{$t('ios.dzyinhang')}}</td>
...@@ -145,7 +145,30 @@ ...@@ -145,7 +145,30 @@
<td>{{orderList.TradeDateStr}}</td> <td>{{orderList.TradeDateStr}}</td>
</tr> </tr>
<tr> <tr v-if="batchOrder">
<td>{{$t('hotel.order_Number')}} </td>
<td :colspan="3">
<table>
<tr>
<td>序号</td>
<td>财务单号</td>
<td>订单号</td>
<td>团号</td>
<td>申请金额</td>
<td>当前手续费</td>
</tr>
<tr v-for="(qitem,qindex) in batchOrder">
<td>{{qindex+1}}</td>
<td>{{qitem.FrID}}</td>
<td>{{qitem.OrderID}}</td>
<td><p><span v-for="(i,ix) in qitem.TCIDAndTCNUMList">{{i.TCNUM}}{{i.TCID}}</span></p></td>
<td>{{qitem.Money}}</td>
<td>{{qitem.Fee}}</td>
</tr>
</table>
</td>
</tr>
<tr v-else>
<td v-if="msg.TCID>0">{{$t('visa.v_tuanhao')}}</td> <td v-if="msg.TCID>0">{{$t('visa.v_tuanhao')}}</td>
<td v-if="msg.TCID>0">{{msg.TCID}}</td> <td v-if="msg.TCID>0">{{msg.TCID}}</td>
<td>{{$t('hotel.order_Number')}} </td> <td>{{$t('hotel.order_Number')}} </td>
...@@ -298,7 +321,8 @@ ...@@ -298,7 +321,8 @@
title: false title: false
}, },
saveMsg: [], saveMsg: [],
crmOrderObj:null crmOrderObj:null,
batchOrder: []
}; };
}, },
methods: { methods: {
...@@ -415,6 +439,39 @@ ...@@ -415,6 +439,39 @@
this.msg.IsDefaultInfo = 0; this.msg.IsDefaultInfo = 0;
} }
this.msg.ApplyPics = this.saveMsg this.msg.ApplyPics = this.saveMsg
if(this.batchOrder && this.batchOrder.length>0){
this.msg.InvoiceOrderList=[];
this.batchOrder.forEach(x=>{
this.msg.InvoiceOrderList.push({
Type:1,
OrderId: x.OrderID,
FinanceId: x.FrID,
Money: x.Money
});
});
this.apipost(
"InvoiceApply_get_SetInvoiceApply_V2",
this.msg,
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
let path = ''
if(this.msg.InvoiceApplyType == 1){
path = 'platformFinancialSale'
}
setTimeout(() => {
this.$router.push({
name: path
});
}, 1000);
} else {
this.$message.error(res.data.message);
}
},
err => {}
);
}else{
this.apipost( this.apipost(
"InvoiceApply_get_SetInvoiceApply_V2", "InvoiceApply_get_SetInvoiceApply_V2",
this.msg, this.msg,
...@@ -453,6 +510,7 @@ ...@@ -453,6 +510,7 @@
}, },
err => {} err => {}
); );
}
}, },
getAccountList: function () { getAccountList: function () {
//获取账户类型对应下的账户列表 //获取账户类型对应下的账户列表
...@@ -543,6 +601,23 @@ ...@@ -543,6 +601,23 @@
this.loading = false this.loading = false
}, null) }, null)
}, },
getBatchOrderDetail(frIds){
this.apipost('Financial_post_GetSalePlatformList',{FrIDs:frIds},res=>{
if(res.data.resultCode == 1) {
this.batchOrder = res.data.data.list;
this.orderList={
moneyStr : res.data.data.TotalMoney,
TradeDateStr:'/',
AccountNumber:'-',
FrIDs:'-',
fee : res.data.data.TotalFee,
};
this.msg.ApplyMoney = res.data.data.InvoiceMoney;
}else{
this.$message.error(res.data.message);
}
},err=>{})
}
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
...@@ -561,7 +636,12 @@ ...@@ -561,7 +636,12 @@
this.msg.InvoiceApplyType = crmOrderObj.InvoiceApplyType; this.msg.InvoiceApplyType = crmOrderObj.InvoiceApplyType;
} }
this.getAccountList(); this.getAccountList();
this.getOrderDetail(); if(this.$route.query.batch){
//查询批量订单
this.getBatchOrderDetail(this.$route.query.batch);
}else{
this.getOrderDetail();
}
this.getCustomerInvoiceList(); this.getCustomerInvoiceList();
if (this.$route.query.edit) { if (this.$route.query.edit) {
this.msg.ID = this.$route.query.id this.msg.ID = this.$route.query.id
......
...@@ -261,7 +261,8 @@ ...@@ -261,7 +261,8 @@
<table data-v-ca5157c2 border="1" class="page_iisMgdetail_table" style="border-collapse: collapse;"> <table data-v-ca5157c2 border="1" class="page_iisMgdetail_table" style="border-collapse: collapse;">
<tr> <tr>
<td width="130">{{$t('ios.bumen')}}</td> <td width="130">{{$t('ios.bumen')}}</td>
<td>{{detail.deptName}}</td> <td v-if="detail.Type && detail.Type==1" width="220">{{detail.deptName}}</td>
<td v-else>{{detail.deptName}}</td>
<td width="130">{{$t('ios.sqren')}}</td> <td width="130">{{$t('ios.sqren')}}</td>
<td>{{detail.CreateBy}}</td> <td>{{detail.CreateBy}}</td>
</tr> </tr>
...@@ -281,7 +282,7 @@ ...@@ -281,7 +282,7 @@
</template> </template>
</td> </td>
</tr> </tr>
<tr> <tr v-if="!(detail.Type && detail.Type==1)">
<td>{{$t('fnc.yszonge')}}</td> <td>{{$t('fnc.yszonge')}}</td>
<td class="w600 font-weight cursorpointer"> <td class="w600 font-weight cursorpointer">
<span @click="goUrlO(detail.OrderId)">{{detail.PreferPrice}}</span> <span @click="goUrlO(detail.OrderId)">{{detail.PreferPrice}}</span>
...@@ -315,7 +316,7 @@ ...@@ -315,7 +316,7 @@
{{orderList.TradeDateStr}} {{orderList.TradeDateStr}}
</td> </td>
</tr> </tr>
<tr> <tr v-if="!(detail.Type && detail.Type==1)">
<template v-if="$route.query.InvoiceApplyType&&$route.query.InvoiceApplyType!=4"> <template v-if="$route.query.InvoiceApplyType&&$route.query.InvoiceApplyType!=4">
<td>{{$t('ios.tuanhao')}}</td> <td>{{$t('ios.tuanhao')}}</td>
<td class="text-align-left font-weight cursorpointer" @click="goUrlT('productQuery', detail.TCNUM, '产品查询')"> <td class="text-align-left font-weight cursorpointer" @click="goUrlT('productQuery', detail.TCNUM, '产品查询')">
...@@ -329,7 +330,30 @@ ...@@ -329,7 +330,30 @@
</td> </td>
</tr> </tr>
<tr> <tr v-if="detail.Type && detail.Type==1">
<td>{{$t('ios.cwdanju')}}</td>
<td colspan="3">
<table>
<tr>
<td>序号</td>
<td>财务单号</td>
<td>订单号</td>
<td>团号</td>
<td>申请金额</td>
<td>当前手续费</td>
</tr>
<tr v-for="(qitem,qindex) in batchOrder">
<td>{{qindex+1}}</td>
<td>{{qitem.FrID}}</td>
<td><span class="cursorpointer" @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', qitem.OrderID, qitem.TCIDAndTCNUMList[0].TCNUM, qitem.TCIDAndTCNUMList[0].TCID)">{{qitem.OrderID}}</span></td>
<td><p><span v-for="(i,ix) in qitem.TCIDAndTCNUMList">{{i.TCNUM}}({{i.TCID}})</span></p></td>
<td>{{qitem.Money}}</td>
<td>{{qitem.Fee}}</td>
</tr>
</table>
</td>
</tr>
<tr v-else>
<td>{{$t('ios.cwdanju')}}</td> <td>{{$t('ios.cwdanju')}}</td>
<td colspan="3" class="w600 text-align-left font-weight cursorpointer"> <td colspan="3" class="w600 text-align-left font-weight cursorpointer">
<template v-for="(item,index) in orderList.FrIDs"> <template v-for="(item,index) in orderList.FrIDs">
...@@ -555,6 +579,7 @@ ...@@ -555,6 +579,7 @@
saveMsg: [], saveMsg: [],
F_GeneralManager: false, F_GeneralManager: false,
IsDetail:0, IsDetail:0,
batchOrder: []
}; };
}, },
methods: { methods: {
...@@ -787,7 +812,11 @@ ...@@ -787,7 +812,11 @@
}) })
} }
this.detail = detail this.detail = detail
if(this.detail.Type && this.detail.Type==1){
this.getBatchOrderDetail(this.detail.FrIds);
}else{
this.getOrderDetail(); this.getOrderDetail();
}
} }
this.loading = false this.loading = false
}, null) }, null)
...@@ -837,6 +866,23 @@ ...@@ -837,6 +866,23 @@
} }
}) })
}, },
getBatchOrderDetail(frIds){
this.apipost('Financial_post_GetSalePlatformList',{FrIDs:frIds},res=>{
if(res.data.resultCode == 1) {
this.batchOrder = res.data.data.list;
this.orderList={
moneyStr : res.data.data.TotalMoney,
TradeDateStr:'/',
AccountNumber:'-',
FrIDs:'-',
fee : res.data.data.TotalFee,
};
this.msg.ApplyMoney = res.data.data.InvoiceMoney;
}else{
this.$message.error(res.data.message);
}
},err=>{})
}
}, },
created(){ created(){
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
......
...@@ -156,6 +156,14 @@ ...@@ -156,6 +156,14 @@
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
label="发票编号"
width="80">
<template slot-scope="scope">
<span style="cursor: pointer;color: #00C6FF;"
>{{ (scope.row.InvoiceState>0?scope.row.InvoiceState:'-') }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
:label="$t('system.query_company')" :label="$t('system.query_company')"
width="80"> width="80">
......
<style scoped>
/deep/.el-table th.el-table__cell{
background-color: #E6E6E6;
}
</style>
<template >
<div>
<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="4">
<el-form-item :label="$t('fnc.ssuogongsi')">
<el-select filterable v-model='msg.RB_Branch_Id' @change="getDepartmentMsg.RB_Branch_Id=msg.RB_Branch_Id,msg.RB_Depart_Id='',msg.UpdateBy='',getDepartment()" class="">
<el-option :value="-1" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in CompanyList'
:label='item.BName'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('scen.sc_ftTime')">
<StartDateLimit :clearable="false" :dateTime="missionDate" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="$t('fnc.sfkzhanghu')">
<el-select filterable v-model='msg.BankID'>
<el-option value="" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in accountList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<ul class="clearfix">
<li class="hight_query">
<button class="hollowFixedBtn" @click="getPageList()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" @click="goCreateInvoice()">申请发票</button>
</li>
</ul>
</div>
<div style="display: flex;flex-wrap: nowrap; padding: 10px;">
<div style="float:left;display: flex;flex-wrap: nowrap; padding: 10px;">
<div style="display: flex;flex-wrap: wrap; ">
<el-tag size="small" style="margin-right: 5px;margin-bottom: 5px;" type="danger">订单数量:{{total}}</el-tag>
<el-tag size="small" style="margin-right: 5px;margin-bottom: 5px;" type="danger">总在途金额:{{TotalMoney}}</el-tag>
<el-tag size="small" style="margin-right: 5px;margin-bottom: 5px;" type="danger">已申请发票:{{AppliedMoney}}</el-tag>
<el-tag size="small" style="margin-right: 5px;margin-bottom: 5px;" type="danger">待申请发票:{{WaitApply}}</el-tag>
</div>
</div>
</div>
<div style="display: flex;flex-wrap: nowrap;">
<div style="float:left;display: flex;flex-wrap: nowrap; padding: 10px;">
<div style="display: flex;flex-wrap: wrap; ">
已勾选:
<template v-for="(qitem,qindex) in multipleSelection">
<el-tag size="small" style="margin-right: 5px;margin-bottom: 5px;" type="success">{{qitem.FrID}}/{{qitem.OrderID}}</el-tag>
</template>
&nbsp;&nbsp;&nbsp;合计:{{getMoney()}},其中平台手续费 {{getFee()}}
</div>
</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" width="55" :selectable="selectable">
</el-table-column>
<el-table-column
:label="$t('fnc.danhao')"
width="80">
<template slot-scope="scope">
<span style="cursor: pointer;color: #00C6FF;"
@click="openDetails(scope.row.FrID,1)" v-if="scope.row.Type!=4">{{ scope.row.FrID }}</span>
<span style="cursor: pointer;color: #00C6FF;"
@click="openDetails(scope.row.FrID,2)" v-else>{{ scope.row.FrID }}</span>
</template>
</el-table-column>
<el-table-column
prop="name"
:label="$t('fnc.djleixing')"
width="100">
<template slot-scope="scope">
<span v-if="scope.row.Type==2" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #E95252;
line-height: 16px;
border-radius: 4px;">
{{$t('restaurant.res_outcome')}}
</span>
<span v-if="scope.row.Type==1" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #2BB87C;
line-height: 16px;
border-radius: 4px;">
收入
</span>
<span v-if="scope.row.Type==4" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #E95252;
line-height: 16px;
border-radius: 4px;">
{{$t('objFill.v101.FinancialModule.tioabozj')}}
</span>
<span v-if="scope.row.Type==5" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #2BB87C;
line-height: 16px;
border-radius: 4px;">
{{$t('fnc.yingshou')}}
</span>
<span v-if="scope.row.Type==6" style="display: inline-block;
padding: 2px 8px;
color: white;
background-color: #E95252;
line-height: 16px;
border-radius: 4px;">
{{$t('fnc.yingfu')}}
</span>
<el-tooltip class="item" effect="dark" :content="$t('objFill.zuijiatuankuan')" placement="top">
<span v-if="scope.row.OtherType == 1" style="width: 20px;
height: 20px;
display: inline-block;
border-radius: 50%;
text-align: center;
line-height: 20px;
color: #E95252;
border: 1px solid #E95252;
font-size: 12px;" class="zhuiClass">{{$t('objFill.chase')}}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column
label="发票编号"
width="80">
<template slot-scope="scope">
<span style="cursor: pointer;color: #00C6FF;"
>{{ (scope.row.InvoiceState>0?scope.row.InvoiceState:'-') }}</span>
</template>
</el-table-column>
<el-table-column
:label="$t('system.query_company')"
width="80">
<template slot-scope="scope">
<span style="cursor: pointer;color: #00C6FF;"
>{{ scope.row.BranchName }}</span>
</template>
</el-table-column>
<el-table-column
prop=""
:label="$t('hotel.hotel_corrlelatition')"
show-overflow-tooltip >
<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>
</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="120">
<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="120">
<template slot-scope="scope">
{{scope.row.Money}}
</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="$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="100">
<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>
<span slot="reference" class="text_d _font_init">{{scope.row.StatusStr}}</span>
</template>
</el-table-column>
</el-table>
</div>
<div style="margin-top:30px">
</div>
</div>
</div>
</template>
<script>
import Vue from 'vue'
import StartDateLimit from '../public/StartDateLimit.vue';
export default {
components:{
StartDateLimit
},
data(){
return{
showDialog: false,
multipleSelection: [],
financeDataList:[],
msg:{
pageIndex:1,
pageSize: 8,
FrID:'',
NewFinanceId:'',
sDate:'',
eDate:'',
Status:'-1',
TemplateIds:'0',
RB_Branch_Id:'',
HelpBranchId:-1,
RB_Depart_Id:'',
sTradeDate:'',
eTradeDate:'',
ClientType:'0',
RemitterName:'',
ClientID:'',
sMoney:'',
eMoney:'',
CurrencyId:'0',
CostTypeID:'',
Conditon:'',
TCNUM:'',
TradeWay:2,
Type:'-1',
AccountType:'',
QEndDate:'',
QStartDate:'',
UpdateBy:'',
IsFormRecPayQuery:'1',
KJCostTypeId:0,
IsSelectKJSetCostType:0,
Remark:'', //备注查询
Sort:'2',
EmployeeId:'',
IsSelectAduiting: '0',
},
getCompanyMsg:{ // 公司
RB_Group_Id:'0',
Status:'0',
},
DataList:[],
accountList:[],
CompanyList:[],
missionDate:[],
loading:false,
total:0,
TotalMoney:0,
WaitApply:0,
AppliedMoney:0,
}
},
created(){
},
mounted(){
let userInfo=this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id= userInfo.RB_Group_id; //集团ID
this.msg.EmployeeId= userInfo.EmployeeId;
this.msg.FrID = this.$route.query.FrID?this.$route.query.FrID:0;
if(this.$route.query.NewFinanceId){
this.msg.NewFinanceId = this.$route.query.NewFinanceId;
}
this.getCompanyList();
this.getAccountList(0,2);
this.getPageList();
},
methods:{
handleSelectionChange(val) {
this.multipleSelection = val;
},
selectable(row, index) {
if (row.InvoiceState>0) {
return false;
} else {
return true;
}
},
// 单据详情
openDetails(FrID,type) {
let query = {
id: FrID,
blank: "y",
};
if(type==1){
this.$router.push({
path: "/FinancialDocumentsDetail",
query
});
}else if(type==2){
this.$router.push({
path: "/CapitalAllocationDetail",
query
});
}
},
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.HelpBranchId === '')this.msg.HelpBranchId=-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.NewFinanceId)this.msg.NewFinanceId=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_GetSalePlatformList',this.msg,res=>{
if(res.data.resultCode == 1) {
let data = res.data.data.list;
let arrList = function(arr){
arr.forEach(x=>{
x._checked = false
x._disabled = false
})
}
arrList(data)
let userInfo=this.getLocalStorage();
data.forEach(x=>{
if(x.InvoiceState>0){
x._disabled = true;
}
})
this.total = res.data.data.total;
this.TotalMoney = res.data.data.TotalMoney;
this.WaitApply = res.data.data.WaitApply;
this.AppliedMoney = res.data.data.AppliedMoney;
if(this.total==0){
this.DataList=[];
}else{
this.DataList = data;
}
this.loading=false;
}else{
this.loading= false;
this.$message.error(res.data.message);
}
},err=>{})
},
getAccountList(i,t){ //收款账户
let accountList = [];
if(t==1){ // 银行
this.apipost('bankaccount_post_GetList',{TypeId:2}, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x=>{
let obj = {
ID:x.ID,
Name:x.Alias,
Nom:0,
}
accountList.push(obj)
})
this.accountList = accountList;
}
}, err => {})
}
if(t==2){ //平台账户
let msg = {
BackId:0,
TypeId:i,
BranchId:-1,
Alias:'',
IsSaleSelect:1
}
this.apipost('BankAccount_post_GetPlatformList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x=>{
let obj = {
ID:x.ID,
Name:x.Alias,
Nom:x.PlatformNo
}
accountList.push(obj)
})
this.accountList = accountList;
}
}, err => {})
}
if(t==3){ //现金账户
let msg = {
TypeId:i,
BranchId:-1,
Alias:''
}
this.apipost('BankAccount_post_GetCashAccountList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x=>{
let obj = {
ID:x.ID,
Name:x.Alias,
Nom:0
}
accountList.push(obj)
})
this.accountList = accountList
}
}, err => {})
}
if(t==4){ //资金池账户
let msg = {
TypeId:i,
BranchId:-1,
Alias:''
}
this.apipost('BankAccount_post_GetCashPoolList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x=>{
let obj = {
ID:x.ID,
Name:x.Alias,
Nom:0
}
accountList.push(obj)
})
this.accountList = accountList
}
}, err => {})
}
},
getCompanyList(){ //获取公司列表
this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
if(res.data.resultCode==1){
this.CompanyList=res.data.data;
}else{}
},err=>{})
},
getMoney(){
let Money = 0
this.multipleSelection.forEach(x => {
Money += (x.Money * 100)
})
return (Money / 100).toFixed(2)
},
getFee(){
let Money = 0
this.multipleSelection.forEach(x => {
Money += (x.Fee * 100)
})
return (Money / 100).toFixed(2)
},
goCreateInvoice(){
if(!(this.multipleSelection && this.multipleSelection.length>0)){ this.$message.error('请勾选平台数据'); }
let batchOrder=this.multipleSelection.map(x=>x.FrID).join(',');
let query = {
batch: batchOrder,
blank: "y",
};
this.$router.push({
path: "/invoicesManagerAdd",
query
});
}
}
}
</script>
...@@ -4330,6 +4330,14 @@ export default { ...@@ -4330,6 +4330,14 @@ export default {
title: '平台在途查询' title: '平台在途查询'
}, },
}, },
{ //销售 财务单据 平台在途查询
path: '/platformFinancialSale',
name: 'platformFinancialSale',
component: resolve => require(['@/components/FinancialModule/platformFinancialSale'], resolve),
meta: {
title: '平台发票申请'
},
},
{ //财务 财务单据 报账合并结算 { //财务 财务单据 报账合并结算
path: '/ConsolidationOfAccounts', path: '/ConsolidationOfAccounts',
name: 'ConsolidationOfAccounts', name: 'ConsolidationOfAccounts',
......
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