Commit 096a59d6 authored by youjie's avatar youjie

no message

parent 2563feba
...@@ -40,6 +40,16 @@ ...@@ -40,6 +40,16 @@
<div class="flexOne flightPerformance"> <div class="flexOne flightPerformance">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li>
<em>出团公司</em>
<!-- S_CheckBranchOrder -->
<el-select v-model="msg.OutBranchId" size="mini" @change="getList"
:disabled="false">
<el-option label="不限" :value="-1"></el-option>
<el-option v-for="(item,index) in BranchList" :key="item.index" :label="item.BName"
:value="item.Id"></el-option>
</el-select>
</li>
<li> <li>
<span> <span>
<em>操作人</em> <em>操作人</em>
...@@ -217,12 +227,14 @@ ...@@ -217,12 +227,14 @@
export default { export default {
data() { data() {
return { return {
BranchList: [],
msg: { msg: {
LineId: 0, //线路编号 LineId: 0, //线路编号
OutBranchId: -1, //出团公司 OutBranchId: -1, //出团公司
AirLineID: 0, //航空公司编号 AirLineID: 0, //航空公司编号
CreateBy: 0, //操作人 CreateBy: 0, //操作人
QMonth: "" //月份 QMonth: "", //月份
OutBranchId: -1,
}, },
//单机票百分比 //单机票百分比
singlePercent:0.1, singlePercent:0.1,
...@@ -235,10 +247,9 @@ export default { ...@@ -235,10 +247,9 @@ export default {
}; };
}, },
mounted() { mounted() {
this.getCompanyList()
this.getEmployeeList(); this.getEmployeeList();
if (this.$route.query.UserId) { this.msg.CreateBy = this.$route.query.UserId?Number(this.$route.query.UserId):0;
this.msg.CreateBy = Number(this.$route.query.UserId);
}
if (this.$route.query.Periods) { if (this.$route.query.Periods) {
var str = this.$route.query.Periods; var str = this.$route.query.Periods;
this.msg.QMonth = str.substring(0, 4) + "-" + str.substring(4); this.msg.QMonth = str.substring(0, 4) + "-" + str.substring(4);
...@@ -251,10 +262,32 @@ export default { ...@@ -251,10 +262,32 @@ export default {
: date.getMonth() + 1; : date.getMonth() + 1;
this.msg.QMonth = y + "-" + m; this.msg.QMonth = y + "-" + m;
} }
this.msg.OutBranchId = this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):-1;
this.initAirlines(); this.initAirlines();
this.getList(); this.getList();
}, },
methods: { methods: {
//初始化公司
getCompanyList() {
let userInfo = this.getLocalStorage();
var RB_Group_id = userInfo.RB_Group_id;
let msg = {
Status: 0,
is_show: 0,
RB_Group_Id: RB_Group_id
};
this.apipost(
"admin_get_BranchGetList",
msg,
res => {
if (res.data.resultCode == 1) {
this.BranchList = res.data.data;
}
},
err => { }
);
},
//单卖机票计算 //单卖机票计算
getSingleCount(list) { getSingleCount(list) {
let count = 0; let count = 0;
......
...@@ -10,6 +10,16 @@ ...@@ -10,6 +10,16 @@
<div class="flexOne"> <div class="flexOne">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li>
<em>出团公司</em>
<!-- S_CheckBranchOrder -->
<el-select v-model="msg.OutBranchId" size="mini" @change="getList(1)"
:disabled="false">
<el-option label="不限" :value="-1"></el-option>
<el-option v-for="(item,index) in BranchList" :key="item.index" :label="item.BName"
:value="item.Id"></el-option>
</el-select>
</li>
<li> <li>
<input v-if="IsAuth==1" type="button" class="normalBtn" @click="CreateAirticketCommission()" value="生成提成报表" :disabled="isDisable" /> <input v-if="IsAuth==1" type="button" class="normalBtn" @click="CreateAirticketCommission()" value="生成提成报表" :disabled="isDisable" />
</li> </li>
...@@ -19,6 +29,8 @@ ...@@ -19,6 +29,8 @@
<tr> <tr>
<th>期数</th> <th>期数</th>
<th>提成总金额</th> <th>提成总金额</th>
<th>所属公司提成</th>
<th>财务单据</th>
<th>{{$t('admin.admin_czPerson')}}</th> <th>{{$t('admin.admin_czPerson')}}</th>
<th>日期</th> <th>日期</th>
<th>{{$t('system.table_operation')}}</th> <th>{{$t('system.table_operation')}}</th>
...@@ -26,6 +38,21 @@ ...@@ -26,6 +38,21 @@
<tr v-for="(item,index) in dataList" :key="index"> <tr v-for="(item,index) in dataList" :key="index">
<td>{{item.Periods}}</td> <td>{{item.Periods}}</td>
<td>{{item.SumPrice}}</td> <td>{{item.SumPrice}}</td>
<td>
<template v-if="item.BranchCommission">
{{item.BranchCommission}}
</template>
</td>
<td>
<template v-if="item.FinanceIdList">
<span v-for="(x,y) in item.FinanceIdList" >
<span style="cursor: pointer;text-decoration: underline;" @click='gofinancialdetail(x)'>
{{x}}
</span>
{{item.FinanceIdList.length == y+1 ?'':'、'}}
</span>
</template>
</td>
<td>{{item.CreateByName}}</td> <td>{{item.CreateByName}}</td>
<td>{{item.CreateTimeStr}}</td> <td>{{item.CreateTimeStr}}</td>
<td> <td>
...@@ -34,7 +61,7 @@ ...@@ -34,7 +61,7 @@
icon="iconfont icon-chakan" circle></el-button> icon="iconfont icon-chakan" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="制单" placement="top"> <el-tooltip class="item" effect="dark" content="制单" placement="top">
<el-button type="primary" class="CM_look" @click="goUrlZD" icon="iconfont icon-caidan-fill" circle></el-button> <el-button type="primary" class="CM_look" @click="goUrlZD(item)" icon="iconfont icon-caidan-fill" circle></el-button>
</el-tooltip> </el-tooltip>
</td> </td>
</tr> </tr>
...@@ -50,9 +77,11 @@ ...@@ -50,9 +77,11 @@
export default { export default {
data() { data() {
return { return {
BranchList: [],
msg: { msg: {
PageIndex: 1, PageIndex: 1,
PageSize: 20 PageSize: 20,
OutBranchId: -1
}, },
loading: false, loading: false,
//数据源 //数据源
...@@ -64,12 +93,56 @@ ...@@ -64,12 +93,56 @@
} }
}, },
mounted() { mounted() {
this.getCompanyList()
this.GetAuth(); this.GetAuth();
this.getList(); this.getList();
}, },
methods: { methods: {
goUrlZD(){ gofinancialdetail(item){
let arr = item.split('-')
this.$router.push({
name: 'FinancialDocumentsDetail',
query: {
id: arr[0],
blank: 'y',
tab: '单据详情'
}
})
},
//初始化公司
getCompanyList() {
let userInfo = this.getLocalStorage();
var RB_Group_id = userInfo.RB_Group_id;
let msg = {
Status: 0,
is_show: 0,
RB_Group_Id: RB_Group_id
};
this.apipost(
"admin_get_BranchGetList",
msg,
res => {
if (res.data.resultCode == 1) {
this.BranchList = res.data.data;
}
},
err => { }
);
},
goUrlZD(item){
let Money = item.BranchCommission
if(this.msg.OutBranchId==-1){
this.Error("请选择出团公司再制单!")
return;
}
if(Money<=0){
this.Error("所属公司提成为0不能制单!")
return;
}
let orderObj = { let orderObj = {
OtherType: 78,
ReFinanceId: item.Periods,
OrderID: 0, OrderID: 0,
OrderSource: 8, OrderSource: 8,
Obj: {}, Obj: {},
...@@ -103,7 +176,10 @@ ...@@ -103,7 +176,10 @@
}); });
}, },
//获取数据 //获取数据
getList() { getList(PageIndex) {
if(PageIndex){
this.msg.PageIndex = PageIndex
}
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"AirTicketRules_post_GetAirticketCommissionPageList", "AirTicketRules_post_GetAirticketCommissionPageList",
...@@ -150,4 +226,4 @@ ...@@ -150,4 +226,4 @@
} }
} }
} }
</script> </script>
\ No newline at end of file
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