Commit ef435d38 authored by youjie's avatar youjie

功能权限 初始时间

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