Commit ef435d38 authored by youjie's avatar youjie

功能权限 初始时间

parent 7ca4d429
......@@ -324,6 +324,11 @@ export default {
}
},
created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
this.getList()
let userInfo = this.getLocalStorage(); // 读取缓存数据
this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo.RB_Group_id; // 集团ID
......@@ -462,11 +467,6 @@ export default {
},
},
mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
this.getCompanyList()
this.getDepartment()
this.GetStatusList()
......
......@@ -694,6 +694,11 @@
}
},
created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.missionDate = [StartDate, EndDate]
this.msg.QStartDate = this.missionDate[0];
this.msg.QEndDate = this.missionDate[1];
if(this.$route.query.pageIndex){
this.msg.pageIndex = this.$route.query.pageIndex;
}
......@@ -705,11 +710,7 @@
}
},
mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.missionDate = [StartDate, EndDate]
this.msg.QStartDate = this.missionDate[0];
this.msg.QEndDate = this.missionDate[1];
let userInfo=this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
......
......@@ -883,6 +883,12 @@ export default {
}
},
created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
if(this.$route.query.returnCode){
this.active = this.$route.query.returnCode;
this.msg.Conditon = this.$route.query.returnCode;
......@@ -923,11 +929,6 @@ export default {
StartDateLimit
},
mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
let userInfo=this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id= this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
this.DepartIDs = userInfo.RB_Department_Id;
......
......@@ -2074,6 +2074,11 @@
};
},
created() {
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
if (localStorage.typeSystem && localStorage.typeSystem == 1) this.typeSystem = localStorage.typeSystem
this.isTerminate = -1
let userinfo = this.getLocalStorage();
......@@ -2131,11 +2136,7 @@
StartDateLimit
},
mounted() {
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
// if (this.active == 2 || this.active == 3) {
// this.productionDate = [StartDate, EndDate]
// this.msg.sDate = this.productionDate[0];
......
......@@ -582,7 +582,7 @@
<!-- <el-date-picker class="h34" style="width: 100%;" v-model="transactionDate" @change="timeAdd(3)" type="daterange"
value-format="yyyy-MM-dd">
</el-date-picker> -->
<StartDateLimit style="width: 100%;" :clearable="false" :dateTime="transactionDate" @change="(startDate,endDate)=>{msg.sTradeDate=startDate,msg.eTradeDate=endDate}"></StartDateLimit>
<StartDateLimit :clearable="false" style="width: 100%;" :dateTime="transactionDate" @change="(startDate,endDate)=>{msg.sTradeDate=startDate,msg.eTradeDate=endDate}"></StartDateLimit>
</el-form-item>
</el-col>
<el-col :span="3">
......
......@@ -409,6 +409,11 @@
}
},
created() {
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
if (this.$route.query.pageIndex) {
this.msg.pageIndex = this.$route.query.pageIndex;
}
......@@ -420,11 +425,7 @@
}
},
mounted() {
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
if (localStorage.typeSystem && localStorage.typeSystem == 1) this.typeSystem = localStorage.typeSystem
if (this.typeSystem == 1) this.msg.OtherType = '80'
......
......@@ -688,6 +688,12 @@
}
},
created() {
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
this.userinfo = this.getLocalStorage();
let userinfo = this.getLocalStorage();
let ActionMenuCode = userinfo.ActionMenuCode;
......@@ -762,11 +768,7 @@
StartDateLimit
},
mounted() {
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
let userInfo = this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo
......
......@@ -816,6 +816,11 @@ export default {
}
},
created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
if(this.$route.query.returnCode){
this.active = this.$route.query.returnCode;
this.msg.Conditon = this.$route.query.returnCode;
......@@ -833,17 +838,14 @@ export default {
if(this.$route.query.Type){
this.msg.Type = this.$route.query.Type+'';
}
},components: {
},
components: {
"my-Bill": myBill,
"my-RVB-Bill":myrbvBill,
StartDateLimit
},
mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
let userInfo=this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id= this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
......
......@@ -900,6 +900,11 @@ export default {
}
},
created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.missionDate = [StartDate, EndDate]
this.msg.QStartDate = this.missionDate[0];
this.msg.QEndDate = this.missionDate[1];
if(this.$route.query.returnCode){
this.active = this.$route.query.returnCode;
this.msg.Conditon = this.$route.query.returnCode;
......@@ -933,17 +938,14 @@ export default {
this.transactionDate[0]=this.$route.query.StartDate;
this.transactionDate[1]=this.$route.query.StartDate;
}
},components: {
},
components: {
"my-Bill": myBill,
"my-RVB-Bill":myrbvBill,
StartDateLimit
},
mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.missionDate = [StartDate, EndDate]
this.msg.QStartDate = this.missionDate[0];
this.msg.QEndDate = this.missionDate[1];
let userInfo=this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id= this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
this.DepartIDs = userInfo.RB_Department_Id;
......
......@@ -488,7 +488,7 @@ tr._item_list td:last-child {
:picker-options="pickerOptions"
:range-separator="$t('OrderList.zhi')"
></el-date-picker> -->
<StartDateLimit :dateTime="productionDate" @change="(startDate,endDate)=>{msg.startDate=startDate,msg.endDate=endDate}"></StartDateLimit>
<StartDateLimit :clearable="false" :dateTime="productionDate" @change="(startDate,endDate)=>{msg.startDate=startDate,msg.endDate=endDate}"></StartDateLimit>
</el-form-item>
</el-col>
<el-col :span="4">
......
......@@ -479,7 +479,7 @@ tr._item_list td:last-child {
:picker-options="pickerOptions"
:range-separator="$t('OrderList.zhi')"
></el-date-picker> -->
<StartDateLimit :dateTime="productionDate" @change="(startDate,endDate)=>{msg.startDate=startDate,msg.endDate=endDate}"></StartDateLimit>
<StartDateLimit :clearable="false" :dateTime="productionDate" @change="(startDate,endDate)=>{msg.startDate=startDate,msg.endDate=endDate}"></StartDateLimit>
</el-form-item>
</el-col>
</el-row>
......
......@@ -281,6 +281,11 @@ export default {
}
},
created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sTradeDate = this.productionDate[0];
this.msg.eTradeDate = this.productionDate[1];
this.userInfo = this.getLocalStorage();
if(this.$route.query.DayReport && this.$route.query.DayReport=='1'){
this.msg.IsFromDayReport =1;
......@@ -622,11 +627,7 @@ export default {
},
},
mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sTradeDate = this.productionDate[0];
this.msg.eTradeDate = this.productionDate[1];
this.getAccountTypeList();
this.AccountType_post_GetList();
this.BankAccount_post_GetAccountType();
......
......@@ -572,6 +572,11 @@ export default {
}
},
created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDateByTC = [StartDate, EndDate]
this.msg.QStartDate = this.productionDateByTC[0];
this.msg.QEndDate = this.productionDateByTC[1];
this.userInfo = this.getLocalStorage();
if(this.$route.query.DayReport && this.$route.query.DayReport=='1'){
this.msg.IsFromDayReport =1;
......@@ -1196,11 +1201,7 @@ export default {
},
},
mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDateByTC = [StartDate, EndDate]
this.msg.QStartDate = this.productionDateByTC[0];
this.msg.QEndDate = this.productionDateByTC[1];
// this.productionDate = [StartDate, EndDate]
// this.msg.sTradeDate = this.productionDate[0];
// this.msg.eTradeDate = this.productionDate[1];
......
......@@ -606,6 +606,11 @@ export default {
}
},
created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDateByCreate = [StartDate, EndDate]
this.msg.sDate = this.productionDateByCreate[0];
this.msg.eDate = this.productionDateByCreate[1];
this.userInfo = this.getLocalStorage();
if(this.$route.query.DayReport && this.$route.query.DayReport=='1'){
this.msg.IsFromDayReport =1;
......@@ -1319,11 +1324,7 @@ export default {
},
},
mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDateByCreate = [StartDate, EndDate]
this.msg.sDate = this.productionDateByCreate[0];
this.msg.eDate = this.productionDateByCreate[1];
let userInfo=this.getLocalStorage();
this.RB_Branch_Id = userInfo.RB_Branch_id;
......
......@@ -422,6 +422,11 @@ export default {
}
},
created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.missionDate = [StartDate, EndDate]
this.msg.QStartDate = this.missionDate[0];
this.msg.QEndDate = this.missionDate[1];
if(this.$route.query.pageIndex){
this.msg.pageIndex = this.$route.query.pageIndex;
}
......@@ -458,12 +463,6 @@ export default {
}
},
mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.missionDate = [StartDate, EndDate]
this.msg.QStartDate = this.missionDate[0];
this.msg.QEndDate = this.missionDate[1];
let userInfo=this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id= this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
this.DepartIDs = userInfo.RB_Department_Id;
......
......@@ -641,8 +641,10 @@
if (this.msg.CStartDate === "" && this.msg.QEndDate === "") {
this.msg.QEndDate = this.FormartDate(new Date());
}
if(!this.$route.query||!this.$route.query.starTime){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
this.msg.QStartDate = StartDate
}
this.getList();
},
}
......
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