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

save

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