Commit 1eee2e56 authored by 黄奎's avatar 黄奎

新增制作单据权限验证

parent 5548e5f8
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
} }
.Team_Incontent { .Team_Incontent {
margin-left:35px; margin-left: 35px;
} }
.Team_firstTitle span { .Team_firstTitle span {
...@@ -263,8 +263,10 @@ ...@@ -263,8 +263,10 @@
<div class="Team_collection" v-loading="loading"> <div class="Team_collection" v-loading="loading">
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">收入</div> <div class="TB_comtitle TB-Title">收入</div>
<template v-if="IsHaveAuth">
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" <input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn"
@click="AddIncomeDetail" /> @click="AddIncomeDetail" />
</template>
</div> </div>
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">团费收入: <div class="TB_comtitle TB-Title">团费收入:
...@@ -575,7 +577,9 @@ ...@@ -575,7 +577,9 @@
<div class="Team_collection" v-loading="loading"> <div class="Team_collection" v-loading="loading">
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">成本</div> <div class="TB_comtitle TB-Title">成本</div>
<template v-if="IsHaveAuth">
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail" /> <input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail" />
</template>
</div> </div>
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">邀请函: <div class="TB_comtitle TB-Title">邀请函:
...@@ -1057,7 +1061,10 @@ ...@@ -1057,7 +1061,10 @@
<div class="Team_collection" v-loading="loading"> <div class="Team_collection" v-loading="loading">
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">非成本</div> <div class="TB_comtitle TB-Title">非成本</div>
<template v-if="IsHaveAuth">
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail" /> <input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail" />
</template>
</div> </div>
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">领队佣金: <div class="TB_comtitle TB-Title">领队佣金:
...@@ -1261,7 +1268,7 @@ ...@@ -1261,7 +1268,7 @@
</table> </table>
</div> </div>
</div> </div>
<div class="Team_BtnList"> <div class="Team_BtnList" v-if="IsHaveAuth">
<input type="button" @click="zhaunBox" value="单据转团" class="hollowFixedBtn" /> <input type="button" @click="zhaunBox" value="单据转团" class="hollowFixedBtn" />
<input type="button" v-if="!CloseIncomeBtn" @click="UpdateBrakeAccountStatus" <input type="button" v-if="!CloseIncomeBtn" @click="UpdateBrakeAccountStatus"
:value="(DataList&&DataList.TeamBalance&&DataList.TeamBalance.BrakeAccountStatus === 0) ? '关闭收支操作' : '开启收支操作'" :value="(DataList&&DataList.TeamBalance&&DataList.TeamBalance.BrakeAccountStatus === 0) ? '关闭收支操作' : '开启收支操作'"
...@@ -1299,6 +1306,7 @@ ...@@ -1299,6 +1306,7 @@
TCNUM: '', TCNUM: '',
FrIds: '', FrIds: '',
}, },
IsHaveAuth:false,//权限判断按钮是否显示
zhuanLoading: false, zhuanLoading: false,
moneyAll: { moneyAll: {
Moneyall: 0, Moneyall: 0,
...@@ -1713,12 +1721,31 @@ ...@@ -1713,12 +1721,31 @@
}, },
err => {} err => {}
) )
},
//权限验证
checkHasAuth() {
this.apipost(
'travel_get_CheckBalancePaymentAuth', {
TCID: this.TCID
},
res => {
if (res.data.resultCode == 1) {
this.IsHaveAuth=true;
}
else
{
this.IsHaveAuth=false;
}
},
err => {}
)
} }
}, },
mounted() { mounted() {
this.TCID = this.$route.query.id; this.TCID = this.$route.query.id;
this.OutBranchId = this.$route.query.OutBranchId this.OutBranchId = this.$route.query.OutBranchId;
this.CloseIncomeBtn = this.$route.query.CloseIncomeBtn this.CloseIncomeBtn = this.$route.query.CloseIncomeBtn;
this.checkHasAuth();
this.getList(); this.getList();
this.getAllCont(); this.getAllCont();
this.getHangingAccountByTCIDList(); this.getHangingAccountByTCIDList();
......
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