Commit be18b3da authored by 吴春's avatar 吴春

提交财务详情与审核订单明细

parent 0dd41425
......@@ -1217,6 +1217,7 @@
<TicketFinace v-if="OrderSource==4&&SourceID&&Callback&&ID" :SourceID='SourceID' :Callback='Callback' :id='ID' />
<TicketingModule v-if="OrderSource==9&&FrID&&ID" :FrID='FrID' :id='ID' />
<ChongDiPage v-if="GetDetail.Type === 7 || isChongDi" :dataList="ChongDiList" :type="danjuType" />
<orderFinancialPage v-if="GetDetail.OrderSource==8 &&GetDetail.OrderID>0" :dataOrderList="DataOrderList" :dataOrderPreferPrice="DataOrderPreferPrice" />
</div>
<div class="_tit _tit2 w890px">
<p>
......@@ -2156,6 +2157,7 @@ class="w135 _border_b_1">
import huijiBill from "./FinancialSubmodule/huijiBill.vue";
import czBillModule from "./FinancialSubmodule/czBillModule.vue";
// import MsgBus from '../../assets/utils/msgBus.js';
import orderFinancialPage from "./FinancialSubmodule/OrderFinancialPage.vue";
import CostmonthDetails from './components/CostmonthDetails';
import SamePayment from './components/SamePayment';
import UserCredit from './components/UserCredit';
......@@ -2194,6 +2196,8 @@ class="w135 _border_b_1">
title: false
},
images: [],
DataOrderList:[],
DataOrderPreferPrice:0,
ID: 0,
GetDetail: {
AuditSteps: [{
......@@ -2371,6 +2375,7 @@ class="w135 _border_b_1">
'myJiPiaoBill': myJiPiaoBill,
'huijiBill': huijiBill,
'czBillModule': czBillModule,
"orderFinancialPage":orderFinancialPage,
CostmonthDetails,
SamePayment,
UserCredit,
......@@ -3747,6 +3752,19 @@ else if (Type==2) {
this.ChongDiList = data;
}
}, err => {})
},
// 获取订单的明细列表
getOrderFinancialList(data) {
this.apipost("Financial_post_GetOrderFinanceAllList", {
OrderId: data.OrderID
}, res => {
if (res.data.resultCode == 1) {
console.log("this.DataOrderList",this.DataOrderList);
let data = res.data.data;
this.DataOrderList = data.FinanceList;
this.DataOrderPreferPrice=data.PreferPrice
}
}, err => {})
},
chongJudge(data) {
// 收支冲抵显示
......@@ -3824,6 +3842,9 @@ else if (Type==2) {
}
})
}
if(data.OrderSource==8 &&data.OrderID>0){
this.getOrderFinancialList(data);
}
this.chongJudge(data)
this.GetDetail = data;
if(data.TemplateId==27&&data.Course_Name&&data.OrderID>0&&data.TCIDList&&data.TCIDList.length>0) {
......
......@@ -1271,6 +1271,7 @@
:id='ID' />
<TicketingModule v-if="OrderSource==9&&FrID&&ID" :FrID='FrID' :id='ID' />
<ChongDiPage v-if="GetDetail.Type === 7 || isChongDi" :dataList="ChongDiList" :type="danjuType" />
<orderFinancialPage v-if="GetDetail.OrderSource==8 &&GetDetail.OrderID>0" :dataOrderList="DataOrderList" :dataOrderPreferPrice="DataOrderPreferPrice" />
</div>
<div class="_tit _tit2 w890px">
......@@ -1570,6 +1571,7 @@
import ChongDiPage from "../commonPage/ChongDiPage.vue";
import myDJieBill from "./FinancialSubmodule/DjieMergeBillModule.vue";
import myGuanBill from "./FinancialSubmodule/GuanBillModule.vue";
import orderFinancialPage from "./FinancialSubmodule/OrderFinancialPage.vue";
import myJiPiaoBill from "./FinancialSubmodule/JiPiaoBillModule.vue";
import huijiBill from "./FinancialSubmodule/huijiBill.vue";
import HandFeeDetails from "./HandFee/HandFeeDetails.vue";
......@@ -1623,7 +1625,8 @@
AuditListData: {
AuditList: []
},
DataOrderList:[],
DataOrderPreferPrice:0,
imageUrl: '',
uploadImgList: [],
FuImgList: [],
......@@ -1694,7 +1697,7 @@
'myGuanBill': myGuanBill,
'myJiPiaoBill': myJiPiaoBill,
'huijiBill': huijiBill,
"orderFinancialPage":orderFinancialPage,
"czBillModule": czBillModule,
"dmcTravelBill": dmcTravelBill,
CostmonthDetails,
......@@ -2118,6 +2121,21 @@
}
}, err => {})
},
// 获取订单的明细列表
getOrderFinancialList(data) {
this.apipost("Financial_post_GetOrderFinanceAllList", {
OrderId: data.OrderID
}, res => {
if (res.data.resultCode == 1) {
console.log("this.DataOrderList",this.DataOrderList);
let data = res.data.data;
this.DataOrderList = data.FinanceList;
this.DataOrderPreferPrice=data.PreferPrice
}
}, err => {})
},
chongJudge(data) {
// 收支冲抵显示
let p1 = false;
......@@ -2756,6 +2774,11 @@
}
})
}
if(data.OrderSource==8 &&data.OrderID>0){
this.getOrderFinancialList(data);
}
this.chongJudge(data)
this.GetDetail = data;
if(data.TemplateId==27&&data.Course_Name&&data.OrderID>0&&data.TCIDList&&data.TCIDList.length>0) {
......
<style>
@import url('../../../assets/css/domestic/TicketingModule.css');
</style>
<template>
<div v-if="dataOrderList.length < 2">
</div>
<div v-else>
<div class="m_TicketingModule" >
<div class="_tit" style="border-left:none;">
<span class="_text">团费收入</span> <span>应收总金额:{{dataOrderPreferPrice}}</span>
<div>
<span class="_btn" v-if="tableOrderShow" @click="tableOrderShow=false">收起 <i class="iconfont icon-gengduo _rotate"></i> </span>
<span class="_btn" v-else @click="tableOrderShow=true">展开 <i class="iconfont icon-gengduo"></i> </span>
</div>
</div>
<div v-show="tableOrderShow" class="_padding_20_15">
<table class="singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0">
<tr style="height:30px;">
<th style=" font-size:12px;height:30px;">财务单据</th>
<th style=" font-size:12px;height:30px;">收支类型</th>
<th style=" font-size:12px;height:30px;">公司</th>
<th style=" font-size:12px;height:30px;">费用类型</th>
<th style=" font-size:12px;height:30px;">金额</th>
<th style=" font-size:12px;height:30px;">手续费</th>
<th style=" font-size:12px;height:30px;">出纳审核状态</th>
</tr>
<tr v-for="(item, index) in dataOrderList" :key="index" style="height:30px;">
<td v-if="item.FrID>0" style="cursor: pointer;text-decoration: underline;" @click="goUrl('财务单据','FinancialDocumentsDetail',item.FrID)"> {{item.FrID}}</td>
<td v-else > {{item.TypeName}}</td>
<td >{{item.FrID>0? item.TypeName:"" }}</td>
<td>{{item.BranchName}}</td>
<td v-if="item.FrID>0">
<span v-for="(t, index) in item.DetailList">{{t.CostTypeName}} <span v-if="index!==item.DetailList.length-1">,</span> </span>
</td>
<td v-else > </td>
<td>{{item.Money}}</td>
<td>{{item.Fee}}</td>
<td>{{item.Is_CashierStatus}}</td>
</tr>
</table>
</div>
</div>
</div>
</template>
<script>
export default {
props:["dataOrderList", 'dataOrderPreferPrice'],
data(){
return{
tableOrderShow:false,
}
},watch:{
},created(){
},mounted(){
},methods:{
goUrl: function (name, path, id ) {
this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name} });
},
}
}
</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