Commit 0a27e6ac authored by youjie's avatar youjie

成本月结查询

parent bda18f31
......@@ -649,6 +649,9 @@
<div class="_tit _tit2 w890px">
<!-- 预付款冲抵 电商商品 -->
<czBillModule :FrID='ID' />
<!-- 关联单号 -->
<CostmonthDetails v-if="GetDetail.OtherType==75||GetDetail.CostMonthTemplate" :GetDetail="GetDetail">
</CostmonthDetails>
<myGuanBill :ID="FrID" :FrID='FrID' :TemplateId='GetDetail.TemplateId' v-if="(((GetDetail.TemplateId === 36 || GetDetail.TemplateId === 37) && LeadState) || GetDetail.TemplateId === 63 || GetDetail.TemplateId === 59 || GetDetail.TemplateId === 43 || GetDetail.TemplateId === 48 || GetDetail.TemplateId === 53 || GetDetail.TemplateId === 56) && showModel" />
<myJiPiaoBill :ID="FrID" :FrID='FrID' :TemplateId='GetDetail.TemplateId' v-if="GetDetail.TemplateId === 2 || GetDetail.TemplateId === 12 && showModel" />
<huijiBill :ID="ID" :disabled="true" :loopNumN="1" :FrID='FrID' :TemplateId='GetDetail.TemplateId' v-if="GetDetail.AccountantMergeDetailList && GetDetail.AccountantMergeDetailList.length>0" />
......@@ -1527,6 +1530,7 @@ import myJiPiaoBill from "./FinancialSubmodule/JiPiaoBillModule.vue";
import huijiBill from "./FinancialSubmodule/huijiBill.vue";
import czBillModule from "./FinancialSubmodule/czBillModule.vue";
// import MsgBus from '../../assets/utils/msgBus.js';
import CostmonthDetails from './components/CostmonthDetails';
export default {
data(){
return{
......@@ -1708,7 +1712,7 @@ export default {
'myJiPiaoBill': myJiPiaoBill,
'huijiBill': huijiBill,
'czBillModule':czBillModule,
CostmonthDetails
},
methods:{
goSigningCustomer(id,name) {
......
......@@ -1096,6 +1096,9 @@
<div class="_tit _tit2 w890px">
<!-- 预付款冲抵 电商商品-->
<czBillModule :FrID='ID' />
<!-- 关联单号 -->
<CostmonthDetails v-if="GetDetail.OtherType==75||GetDetail.CostMonthTemplate" :GetDetail="GetDetail">
</CostmonthDetails>
<myGuanBill :ID="FrID" :FrID='FrID' :TemplateId='GetDetail.TemplateId'
v-if="(((GetDetail.TemplateId === 36 || GetDetail.TemplateId === 37) && LeadState) || GetDetail.TemplateId === 63 || GetDetail.TemplateId === 59 || GetDetail.TemplateId === 43 || GetDetail.TemplateId === 48 || GetDetail.TemplateId === 53 || GetDetail.TemplateId === 56) && showModel" />
<myJiPiaoBill :ID="FrID" :FrID='FrID' :TemplateId='GetDetail.TemplateId'
......@@ -1137,6 +1140,8 @@
</div>
</div>
<div class="w890px">
<SaleOrderModule v-if="OrderSource==10&&SourceID&&OrderID" :SourceID='SourceID' :OrderID='OrderID' />
<TicketFinace v-if="OrderSource==4&&SourceID&&Callback&&ID" :SourceID='SourceID' :Callback='Callback'
......@@ -1436,6 +1441,7 @@
import czBillModule from "./FinancialSubmodule/czBillModule.vue";
import dmcTravelBill from './FinancialSubmodule/DmcTravelBillModule'; //线路
import CostmonthDetails from './components/CostmonthDetails';
export default {
data() {
return {
......@@ -1536,7 +1542,8 @@
'huijiBill': huijiBill,
"czBillModule": czBillModule,
"dmcTravelBill": dmcTravelBill
"dmcTravelBill": dmcTravelBill,
CostmonthDetails
},
created() {
// // crm自动登陆传过来的参数
......
This diff is collapsed.
......@@ -1424,9 +1424,14 @@
this.msg.OtherType = this.orderObj.OtherType ? this.orderObj.OtherType : 0;
this.msg.ReFinanceId = this.orderObj.ReFinanceId ? this.orderObj.ReFinanceId : 0;
this.msg.ReFinanceId2 = this.orderObj.ReFinanceId2 ? this.orderObj.ReFinanceId2 : 0;
this.msg.ReFinanceIds = this.orderObj.ReFinanceIds ? this.orderObj.ReFinanceIds : '';
this.msg.ECOrderList = this.orderObj.ECOrderList ? this.orderObj.ECOrderList : [];
this.msg.EduCommissionEmp = this.orderObj.EduCommissionEmp ? this.orderObj.EduCommissionEmp: null
}
if(this.orderObj.OtherType==75&&this.orderObj.ReFinances==''){
this.Error(`成本月结数据不能为空!`)
return
}
// 台湾提成汇率
if (this.orderObj && this.orderObj.Rate && this.orderObj.Money) {
let yballPrice = 0
......
<style>
@import url('../../../assets/css/domestic/TicketingModule.css');
.sanjiao-box{
position: relative;
}
.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">
<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>公司</th>
<th>费用类型</th>
<th>币种</th>
<th>原币金额</th>
<th>汇率</th>
<th>状态</th>
<th>金额</th>
</tr>
<tr class="_color_b" v-for="(item,index) in DataList" :key="index">
<td class="hover_text" @click="goDetail(item.FrID)" ><span>{{item.FrID}}</span></td>
<td>{{item.BranchName}}</td>
<td>{{item.CostTypeName}}</td>
<td>{{item.CurrencyName}}</td>
<td>{{item.WBMoney}}</td>
<td>{{item.Rate}}</td>
<td>{{item.StatusStr}}</td>
<td>
{{item.Money}}
</td>
</tr>
<tr class="_color_b">
<td colspan="4">原币合计</td>
<td>{{ybtotal}}</td>
<td colspan="2">合计</td>
<td>{{cdtotal}}</td>
</tr>
</table>
</div>
</div>
</div>
</template>
<script>
export default {
props:["GetDetail"],
data(){
return{
cdtotal: 0,
ybtotal: 0,
tableShow: true,
DataList: [],
msg:{
pageIndex:1,
pageSize:10000,
ReFinanceId:'',//354848
OtherType: '',
TemplateId:0,//164
}
}
},watch:{
},created(){
},mounted(){
this.msg.ReFinanceId = this.GetDetail.FrID
if(this.GetDetail.OtherType==75){
this.msg.OtherType = this.GetDetail.OtherType
this.msg.TemplateId = 0
}else if(this.GetDetail.CostMonthTemplate){
this.msg.OtherType = 0
this.msg.TemplateId = this.GetDetail.TemplateId
}
this.Financial_post_GetDetail();
},
methods:{
goDetail(id){
this.$router.push({ name: 'FinancialDocumentsDetail',query:{"id":id,blank:'y',tab:'单据详情'} })
},
Financial_post_GetDetail(){ //获取关联单
if(this.msg.ReFinanceId){
this.loading = true;
this.apipost('Financial_post_GetCostMonthFinancePageList',this.msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data.pageData;
let ybtotal = 0
let cdtotal = 0
data.forEach(item => {
cdtotal+=(item.Money*100);
ybtotal+=(item.WBMoney*100)
});
this.cdtotal = cdtotal/100
this.ybtotal = ybtotal/100
this.DataList = data
}else{
this.Error(res.data.message)
}
this.loading = false;
}, err => {})
}
},
}
}
</script>
......@@ -3981,6 +3981,14 @@ export default {
title: '手配收入查询'
},
},
{ //财务 财务单据 手配收入查询
path: '/MonthlyCostStatementInquire',
name: 'MonthlyCostStatementInquire',
component: resolve => require(['@/components/FinancialModule/MonthlyCostStatement/index'], resolve),
meta: {
title: '成本月结查询'
},
},
{ //财务 财务单据 费用单据
path: '/Costdocuments',
name: 'Costdocuments',
......
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