Commit fca7303f authored by liudong1993's avatar liudong1993

1

parent e9d461f1
<template> <template>
<div style="height: 100%;"> <div style="height: 100%;">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="线路经营情况" name="1"></el-tab-pane> <el-tab-pane v-if="PermissionState!=3" label="线路经营情况" name="1"></el-tab-pane>
<el-tab-pane label="公司经营情况" name="2"></el-tab-pane> <el-tab-pane v-if="PermissionState!=3" label="公司经营情况" name="2"></el-tab-pane>
<el-tab-pane label="日本线常规团情况" name="3"></el-tab-pane> <el-tab-pane v-if="PermissionState!=3" label="日本线常规团情况" name="3"></el-tab-pane>
<!-- <el-tab-pane label="购物佣金情况" name="4"></el-tab-pane> --> <!-- <el-tab-pane label="购物佣金情况" name="4"></el-tab-pane> -->
</el-tabs> </el-tabs>
<div class="query-box"> <div class="query-box">
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
v-model="msg.OutBranchId" v-model="msg.OutBranchId"
@change="getChange" @change="getChange"
clearable clearable
:disabled="PermissionState==2"
> >
<el-option <el-option
:value="-1" :value="-1"
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
clearable clearable
v-model="msg.OutBranchIdList" v-model="msg.OutBranchIdList"
@change="getChange" @change="getChange"
:disabled="PermissionState==2"
> >
<!-- <el-option <!-- <el-option
:value="-1" :value="-1"
...@@ -313,6 +315,7 @@ export default { ...@@ -313,6 +315,7 @@ export default {
coinGetShow: false, coinGetShow: false,
loading: false, loading: false,
activeName: '1', activeName: '1',
PermissionState: '0',//权限状态 1管理员级 2各公司负责人 3地接OP查询佣金
msg:{ msg:{
startDate: '', startDate: '',
endDate: '', endDate: '',
...@@ -388,6 +391,25 @@ export default { ...@@ -388,6 +391,25 @@ export default {
this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)] this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)]
this.msg.startDate = this.dateTime[0] this.msg.startDate = this.dateTime[0]
this.msg.endDate = this.dateTime[1] this.msg.endDate = this.dateTime[1]
let userInfo = this.getLocalStorage();
if(userInfo.RB_Group_id==2){
if(userInfo.RB_Branch_id==0||userInfo.RB_Branch_id==49){
this.PermissionState=1;
if(userInfo.RB_Post_Id==171){
this.PermissionState=3;//地接OP
this.activeName='4';
}
}
else{
//分公司的 看各自公司的数据 佣金暂时不开
this.PermissionState=2;
this.msg.OutBranchId=userInfo.RB_Branch_id;
this.msg.OutBranchIdList=[];
this.msg.OutBranchIdList.push(userInfo.RB_Branch_id);
}
}
this.financeinfo_post_GetList() this.financeinfo_post_GetList()
this.getQueryData() this.getQueryData()
this.getShops() this.getShops()
...@@ -503,6 +525,14 @@ export default { ...@@ -503,6 +525,14 @@ export default {
this.coinGetShow = false this.coinGetShow = false
this.msg.StandardCurrencyId = 1 this.msg.StandardCurrencyId = 1
} }
let userInfo = this.getLocalStorage();
if(this.PermissionState==2){
this.msg.OutBranchId=userInfo.RB_Branch_id;
this.msg.OutBranchIdList=[];
this.msg.OutBranchIdList.push(userInfo.RB_Branch_id);
}
this.getStatement() this.getStatement()
this.$forceUpdate() this.$forceUpdate()
}, },
......
<template> <template>
<div style="height: 100%;"> <div style="height: 100%;">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="线路经营情况" name="1"></el-tab-pane> <el-tab-pane v-if="PermissionState!=3" label="线路经营情况" name="1"></el-tab-pane>
<el-tab-pane label="公司经营情况" name="2"></el-tab-pane> <el-tab-pane v-if="PermissionState!=3" label="公司经营情况" name="2"></el-tab-pane>
<el-tab-pane label="日本小包OR常规" name="3"></el-tab-pane> <el-tab-pane v-if="PermissionState!=3" label="日本小包OR常规" name="3"></el-tab-pane>
<el-tab-pane label="购物佣金情况" name="4"></el-tab-pane> <el-tab-pane v-if="PermissionState!=2" label="购物佣金情况" name="4"></el-tab-pane>
</el-tabs> </el-tabs>
<div class="query-box"> <div class="query-box">
<el-form class="_info_box clearfix" label-width="90px"> <el-form class="_info_box clearfix" label-width="90px">
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
v-model="msg.OutBranchId" v-model="msg.OutBranchId"
@change="getChange" @change="getChange"
clearable clearable
:disabled="PermissionState==2"
> >
<el-option <el-option
:value="-1" :value="-1"
...@@ -91,7 +92,7 @@ ...@@ -91,7 +92,7 @@
<el-input v-model="shopMsg.MaoLiRate" type="number" @change="getMaoLiRate"></el-input> <el-input v-model="shopMsg.MaoLiRate" type="number" @change="getMaoLiRate"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-if="activeName!=4"> <el-col :span="4" v-if="activeName!=4 && activeName!=3">
<el-form-item label="线路"> <el-form-item label="线路">
<el-select filterable v-model="msg.LineId" @change="getStatement" <el-select filterable v-model="msg.LineId" @change="getStatement"
clearable> clearable>
...@@ -187,6 +188,7 @@ export default { ...@@ -187,6 +188,7 @@ export default {
coinGetShow: false, coinGetShow: false,
loading: false, loading: false,
activeName: '1', activeName: '1',
PermissionState: '0',//权限状态 1管理员级 2各公司负责人 3地接OP查询佣金
msg:{ msg:{
startDate: '', startDate: '',
endDate: '', endDate: '',
...@@ -258,6 +260,23 @@ export default { ...@@ -258,6 +260,23 @@ export default {
this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)] this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)]
this.msg.startDate = this.dateTime[0] this.msg.startDate = this.dateTime[0]
this.msg.endDate = this.dateTime[1] this.msg.endDate = this.dateTime[1]
let userInfo = this.getLocalStorage();
if(userInfo.RB_Group_id==2){
if(userInfo.RB_Branch_id==0||userInfo.RB_Branch_id==49){
this.PermissionState=1;
if(userInfo.RB_Post_Id==171){
this.PermissionState=3;//地接OP
this.activeName='4';
}
}
else{
//分公司的 看各自公司的数据 佣金暂时不开
this.PermissionState=2;
this.msg.OutBranchId=userInfo.RB_Branch_id;
}
}
this.financeinfo_post_GetList() this.financeinfo_post_GetList()
this.getQueryData() this.getQueryData()
this.getShops() this.getShops()
...@@ -304,8 +323,7 @@ export default { ...@@ -304,8 +323,7 @@ export default {
}) })
}, },
getStatement(){ getStatement(){
if(this.msg.Type==2) this.msg.IsLastData = 2 this.msg.IsLastData = 0
else this.msg.IsLastData = 0
let msg = this.msg let msg = this.msg
let url ='financestatistics_post_GetDataAnalysisStat' let url ='financestatistics_post_GetDataAnalysisStat'
if(this.activeName=='4') { if(this.activeName=='4') {
......
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