Commit 07147bc8 authored by 王悦's avatar 王悦

账户明细合并都可以选择银行,国内票务调整

parent 724cf79b
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</div> </div>
<table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0"> <table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0">
<tr> <tr>
<th>订单</th> <th></th>
<th>人数</th> <th>人数</th>
<th>应收金额</th> <th>应收金额</th>
<th>成本</th> <th>成本</th>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<!-- <th>操作</th> --> <!-- <th>操作</th> -->
</tr> </tr>
<tr v-for="(item,index) in DataList.list" :key="index"> <tr v-for="(item,index) in DataList.list" :key="index">
<td>{{item.OrderID}}</td> <td>{{item.ID}}</td>
<td class="_hover"> <td class="_hover">
<el-popover <el-popover
placement="bottom" placement="bottom"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class='flexOne page_OrderToday'> <div class='flexOne page_OrderToday'>
<div class='query-box'> <div class='query-box'>
<ul> <ul>
<li> <!-- <li>
<span> <span>
<em>期数</em> <em>期数</em>
<el-date-picker <el-date-picker
...@@ -16,6 +16,18 @@ ...@@ -16,6 +16,18 @@
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker> </el-date-picker>
</span> </span>
</li> -->
<li>
<span>
<em>制单日期</em>
<el-date-picker
class="h34"
v-model="transactionDate"
@change="timeAdd()"
type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker>
</span>
</li> </li>
<li> <li>
<span> <span>
...@@ -68,21 +80,21 @@ ...@@ -68,21 +80,21 @@
</div> </div>
<table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0"> <table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0">
<tr> <tr>
<th>期数</th> <th>编号</th>
<th>人数</th> <th>人数</th>
<th>金额</th> <th>金额</th>
<th>成本</th> <th>成本</th>
<th>利润</th> <th>利润</th>
<th>客户名称</th> <th>客户名称</th>
<th>行程时间</th> <th>行程时间</th>
<th>航空公司</th> <th>航空公司 — 航班 — 航段</th>
<th>航班</th> <th></th>
<th>航段</th> <th></th>
<th>操作人</th> <th>操作人</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(item,index) in DataList.list"> <tr v-for="(item,index) in DataList.list">
<td>{{item.Term}}</td> <td>{{item.ID}}</td>
<td class="_hover"> <td class="_hover">
<el-popover <el-popover
placement="bottom" placement="bottom"
...@@ -222,7 +234,7 @@ ...@@ -222,7 +234,7 @@
</el-row> </el-row>
<el-form class="_info_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="110px"> <el-form class="_info_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="110px">
<el-row> <el-row>
<el-col :span="6" :gutter="35" > <!-- <el-col :span="6" :gutter="35" >
<el-form-item label="期数" prop="TermDate"> <el-form-item label="期数" prop="TermDate">
<el-date-picker <el-date-picker
v-model="addMsg.TermDate" v-model="addMsg.TermDate"
...@@ -233,7 +245,7 @@ ...@@ -233,7 +245,7 @@
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="6" :gutter="35" > <el-col :span="6" :gutter="35" >
<el-form-item label="出票日期" prop="OutTicketDate"> <el-form-item label="出票日期" prop="OutTicketDate">
<el-date-picker <el-date-picker
...@@ -386,10 +398,12 @@ export default { ...@@ -386,10 +398,12 @@ export default {
FlightNo:'', FlightNo:'',
ClientName:'', ClientName:'',
ParentId:0, ParentId:0,
Term:new Date().Format("yyyy-MM-dd"), Term:'',
sDate:'',
eDate:''
}, },
addMsg:{ addMsg:{
TermDate:new Date().Format("yyyy-MM-dd"), TermDate:'',
ID:0, ID:0,
OutTicketDate:new Date().Format("yyyy-MM-dd"), OutTicketDate:new Date().Format("yyyy-MM-dd"),
TravelTime:'', TravelTime:'',
...@@ -449,6 +463,7 @@ export default { ...@@ -449,6 +463,7 @@ export default {
airlineList:[], airlineList:[],
AirportNameList:[], AirportNameList:[],
}, },
transactionDate:[],
airlineList:[], airlineList:[],
AirportNameList:[], AirportNameList:[],
DataList:[], DataList:[],
...@@ -470,7 +485,7 @@ export default { ...@@ -470,7 +485,7 @@ export default {
dialogFormVisible:false, dialogFormVisible:false,
formLabelWidth: '120px', formLabelWidth: '120px',
goPath:'', goPath:'',
TermDate:new Date().toLocaleDateString().replace('/','-').replace('/','-'), TermDate:'',
rules: {//表单必填验证 rules: {//表单必填验证
ClientName: [ ClientName: [
{ required: true, message: '请填写客户名称', trigger: 'blur' } { required: true, message: '请填写客户名称', trigger: 'blur' }
...@@ -489,14 +504,9 @@ export default { ...@@ -489,14 +504,9 @@ export default {
], ],
OutTicketDate: [ OutTicketDate: [
{ required: true, message: '请输选出票日期', trigger: 'change' } { required: true, message: '请输选出票日期', trigger: 'change' }
],
TermDate: [
{ required: true, message: '请输选择期数', trigger: 'change' }
] ]
} }
} }
},created(){
},mounted(){ },mounted(){
this.getList(); this.getList();
this.getAirlineList(); this.getAirlineList();
...@@ -515,6 +525,15 @@ export default { ...@@ -515,6 +525,15 @@ export default {
if(pi) return if(pi) return
this.addMsg.FlightList.splice(i,1); this.addMsg.FlightList.splice(i,1);
} }
},
timeAdd(){ // 日期格式
if(!this.transactionDate){
this.msg.sDate = '';
this.msg.eDate = '';
return
}
this.msg.sDate = this.transactionDate[0];
this.msg.eDate = this.transactionDate[1];
}, },
compare(property){ compare(property){
return function(a,b){ return function(a,b){
...@@ -542,7 +561,10 @@ export default { ...@@ -542,7 +561,10 @@ export default {
} }
}, },
jiesuan(){ jiesuan(){
this.apipost('Domestic_Ticket_post_CheckBiLL',{TermDate:this.TermDate},r=>{ if(!this.TermDate){
return this.$message.error('请选择结算日期');
}
this.apipost('Domestic_Ticket_post_CheckBiLL',{TermDate:this.TermDate,sDate:this.msg.sDate,eDate:this.msg.eDate},r=>{
if(r.data.resultCode==1){ if(r.data.resultCode==1){
this.$router.push({name:this.goPath,query:{'Term':this.TermDate,'blank':'y'}}); this.$router.push({name:this.goPath,query:{'Term':this.TermDate,'blank':'y'}});
this.getList(); this.getList();
...@@ -663,7 +685,7 @@ export default { ...@@ -663,7 +685,7 @@ export default {
}, },
initAddMsg(){ // 取消修改、新增 initAddMsg(){ // 取消修改、新增
this.addMsg ={ this.addMsg ={
TermDate:new Date().toLocaleDateString().replace('/','-').replace('/','-'), TermDate:'',
ID:this.addMsg.ID, ID:this.addMsg.ID,
OutTicketDate:new Date().toLocaleDateString().replace('/','-').replace('/','-'), OutTicketDate:new Date().toLocaleDateString().replace('/','-').replace('/','-'),
TravelTime:'', TravelTime:'',
...@@ -704,7 +726,7 @@ export default { ...@@ -704,7 +726,7 @@ export default {
} }
], ],
Num:0, Num:0,
Term:new Date().Format("yyyy-MM-dd"), Term:'',
FlightList:[ FlightList:[
{ {
ID:0, ID:0,
...@@ -731,9 +753,6 @@ export default { ...@@ -731,9 +753,6 @@ export default {
if(this.msg.AirlineId==''){ if(this.msg.AirlineId==''){
this.msg.AirlineId=0; this.msg.AirlineId=0;
} }
if(this.msg.Term){
this.msg.Term = this.msg.Term.replace(/-/g,'');
}
this.loading = true this.loading = true
this.apipost('Domestic_Ticket_post_GetPageList',this.msg,res=>{ this.apipost('Domestic_Ticket_post_GetPageList',this.msg,res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
...@@ -745,6 +764,7 @@ export default { ...@@ -745,6 +764,7 @@ export default {
this.noData =true; this.noData =true;
} }
this.DataList = data; this.DataList = data;
console.log(this.DataList,'dataList');
this.loading = false; this.loading = false;
if(!t){ if(!t){
this.msg.OrderID=''; this.msg.OrderID='';
...@@ -776,7 +796,7 @@ export default { ...@@ -776,7 +796,7 @@ export default {
}, },
initAddMsg(){//初始化添加、修改数据 initAddMsg(){//初始化添加、修改数据
let newMsg = { let newMsg = {
TermDate:new Date().Format("yyyy-MM-dd"), TermDate:'',
OrderID:0, OrderID:0,
OutTicketDate:new Date().Format("yyyy-MM-dd"), OutTicketDate:new Date().Format("yyyy-MM-dd"),
TravelTime:'', TravelTime:'',
...@@ -816,7 +836,7 @@ export default { ...@@ -816,7 +836,7 @@ export default {
profit:'' profit:''
} }
], ],
Term:new Date().Format("yyyy-MM-dd"), Term:'',
FlightList:[ FlightList:[
{ {
ID:0, ID:0,
......
...@@ -201,31 +201,31 @@ ...@@ -201,31 +201,31 @@
<el-dialog custom-class='w750' title="合并单据" :visible.sync="addChuNa" center :before-close="initAddChuNa" v-loading="allLoading"> <el-dialog custom-class='w750' title="合并单据" :visible.sync="addChuNa" center :before-close="initAddChuNa" v-loading="allLoading">
<p class="_addChuNa_tit"><span>{{count}}</span>条合并为1条,外币总金额 <span>{{ moneyFormat(allWPrice) }}</span> ,本位币总金额 <span>{{ moneyFormat(allBPrice) }}</span> </p> <p class="_addChuNa_tit"><span>{{count}}</span>条合并为1条,外币总金额 <span>{{ moneyFormat(allWPrice) }}</span> ,本位币总金额 <span>{{ moneyFormat(allBPrice) }}</span> </p>
<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;text-align: center; width: 100%;"> <table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;text-align: center; width: 100%;">
<!--template v-if="BillType===2"> <template>
<tr > <tr >
<th height="34px">账户分类</th> <th height="34px">账户分类</th>
<th height="34px">付款方式</th> <th height="34px">付款方式</th>
<th height="34px">账户</th> <th height="34px">账户</th>
&lt;!&ndash; <th width="100px">账户余额</th> &ndash;&gt; <!-- <th width="100px">账户余额</th> -->
<th height="34px">金额</th> <th height="34px">金额</th>
<th height="34px" width="70">币种</th> <th height="34px" width="70">币种</th>
<th height="34px" width="50px">汇率</th> <th height="34px" width="50px">汇率</th>
&lt;!&ndash; <th>手续费</th> &ndash;&gt; <!-- <th>手续费</th> -->
<th height="34px" width="100px">总金额</th> <th height="34px" width="100px">总金额</th>
&lt;!&ndash; <th>操作</th> &ndash;&gt; <!-- <th>操作</th> -->
</tr> </tr>
<template v-for="(item,index) in payMsgList"> <template v-for="(item,index) in payMsgList">
<tr v-if="!item.show" @click="payMsgList[index].show=true"> <tr v-if="!item.show" @click="payMsgList[index].show=true">
<td height="34px">{{item.AccName}}</td> <td height="34px">{{item.AccName}}</td>
<td height="34px">{{item.Name}}</td> <td height="34px">{{item.Name}}</td>
<td height="34px">{{item.Account}}</td> <td height="34px">{{item.Account}}</td>
&lt;!&ndash; <td>{{item.balance}}</td> &ndash;&gt; <!-- <td>{{item.balance}}</td> -->
<td height="34px">{{moneyFormat(item.OriginalMoney)}}</td> <td height="34px">{{moneyFormat(item.OriginalMoney)}}</td>
<td height="34px">{{item.CurrenName}}</td> <td height="34px">{{item.CurrenName}}</td>
<td height="34px">{{item.Rate}}</td> <td height="34px">{{item.Rate}}</td>
&lt;!&ndash; <td>{{item.Fee}}</td> &ndash;&gt; <!-- <td>{{item.Fee}}</td> -->
<td height="34px">{{moneyFormat(item.allMoney)}}</td> <td height="34px">{{moneyFormat(item.allMoney)}}</td>
&lt;!&ndash; <td></td> &ndash;&gt; <!-- <td></td> -->
</tr> </tr>
<tr v-else class="_show_class"> <tr v-else class="_show_class">
<td> <td>
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
</td> </td>
<td>{{moneyFormat(payMsg.allMoney)}}</td> <td>{{moneyFormat(payMsg.allMoney)}}</td>
</tr> </tr>
</template>--> </template>
<tr> <tr>
<td height="34px">总金额</td> <td height="34px">总金额</td>
<td height="34px" colspan="7"> <td height="34px" colspan="7">
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
<el-dialog custom-class='w750 height="34px"' title="合并单据" :visible.sync="addChuNa" center :before-close="initAddChuNa" v-loading="allLoading"> <el-dialog custom-class='w750 height="34px"' title="合并单据" :visible.sync="addChuNa" center :before-close="initAddChuNa" v-loading="allLoading">
<p class="_addChuNa_tit"><span>{{count}}</span>条合并为1条,外币总金额 <span>{{ moneyFormat(allWPrice) }}</span> ,本位币总金额 <span>{{ moneyFormat(allBPrice) }}</span> </p> <p class="_addChuNa_tit"><span>{{count}}</span>条合并为1条,外币总金额 <span>{{ moneyFormat(allWPrice) }}</span> ,本位币总金额 <span>{{ moneyFormat(allBPrice) }}</span> </p>
<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;text-align: center; width: 100%;"> <table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;text-align: center; width: 100%;">
<template v-if="BillType===2"> <template>
<tr > <tr >
<th height="34px">账户分类</th> <th height="34px">账户分类</th>
<th height="34px">付款方式</th> <th height="34px">付款方式</th>
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
<el-dialog custom-class='w750' title="合并单据" :visible.sync="addChuNa" center :before-close="initAddChuNa" v-loading="allLoading"> <el-dialog custom-class='w750' title="合并单据" :visible.sync="addChuNa" center :before-close="initAddChuNa" v-loading="allLoading">
<p class="_addChuNa_tit"><span>{{count}}</span>条合并为1条,外币总金额 <span>{{ moneyFormat(allWPrice) }}</span> ,本位币总金额 <span>{{ moneyFormat(allBPrice) }}</span> </p> <p class="_addChuNa_tit"><span>{{count}}</span>条合并为1条,外币总金额 <span>{{ moneyFormat(allWPrice) }}</span> ,本位币总金额 <span>{{ moneyFormat(allBPrice) }}</span> </p>
<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;text-align: center;"> <table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;text-align: center;">
<template v-if="BillType == 1"> <template>
<tr > <tr >
<th height="34px">账户分类</th> <th height="34px">账户分类</th>
<th height="34px">付款方式</th> <th height="34px">付款方式</th>
......
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