Commit 7cfcf857 authored by 沈良进's avatar 沈良进

save

parent 8df35d94
......@@ -28,6 +28,7 @@ var AuthCode = {
IsSanKeTicket:"IsSanKeTicket",//是否有散客票权限
F_Disbursement_Schedule:'F_Disbursement_Schedule',//财务团队用款计划权限
F_Advance_Match:'F_Advance_Match',//预付款冲抵
S_Travel_AirLoss:'S_Travel_AirLoss' //设为损失
S_Travel_AirLoss:'S_Travel_AirLoss', //设为损失
S_CheckAllOrder:'s_CheckAllOrder' //查看所有订单
};
export default AuthCode;
\ No newline at end of file
......@@ -232,7 +232,7 @@ export default {
return {
pickerOptions: {
disabledDate(time) {
return time < new Date("2018-12-31");
return time < new Date("2023-01-01");
},
},
CompanyList: [],
......
......@@ -3,10 +3,12 @@
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane :label="$t('sm.Personalrank')" name="first"></el-tab-pane>
<el-tab-pane :label="$t('sm.derprank')" name="second"></el-tab-pane>
<!--
v-if="authority.indexOf('Sales_Volume_Rank_Show') != -1" -->
<el-tab-pane
:label="$t('sm.companyrank')"
name="third"
v-if="authority.indexOf('Sales_Volume_Rank_Show') != -1"
v-if="S_CheckAllOrder"
></el-tab-pane>
<el-tab-pane :label="$t('sm.salerank')" name="four"></el-tab-pane>
</el-tabs>
......@@ -154,8 +156,7 @@ Vue.component("table-operation", {
},
mounted() {
console.log("field", this.field);
this.content = this.rowData["SumPreferPrice"].toFixed(2);
if (this.field === "income") {
if (this.field === "SumPreferPrice") {
this.content = this.rowData["SumPreferPrice"];
} else if (this.field === "income") {
this.content = this.rowData["income"];
......@@ -172,6 +173,7 @@ Vue.component("table-operation", {
BranchId: rowData.BranchId,
EnterID: rowData.EnterID,
RB_Department_Id: rowData.RB_Department_Id,
blank: "y",
},
});
},
......@@ -180,6 +182,7 @@ Vue.component("table-operation", {
export default {
data() {
return {
S_CheckAllOrder: false,
pickerOptions: {
disabledDate(time) {
return time < new Date("2018-12-31");
......@@ -232,6 +235,7 @@ export default {
},
created() {},
mounted() {
this.GetAuth()
this.initColumns();
this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id;
this.getDepartmentMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id;
......@@ -242,6 +246,15 @@ export default {
//this.pageSize = this.calcPageSize(40); 此页不需要分页
},
methods: {
GetAuth() {
var actionCode = this.$AuthCode.S_CheckAllOrder;
this.CheckUserAuth(actionCode, res => {
console.log('GetAuth', res)
if (res.data.resultCode == 1 && res.data.data == 1) {
this.S_CheckAllOrder = true;
}
});
},
initColumns() {
this.isReady = false;
let that = this;
......
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