Commit 9ad09c8e authored by youjie's avatar youjie

no message

parent 041387aa
......@@ -534,8 +534,6 @@ export default {
mounted(){
let userInfo=this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id= userInfo.RB_Group_id; //集团ID
this.userId = userInfo.EmployeeId;
this.msg.EmployeeId= userInfo.EmployeeId;
this.financeinfo_post_GetList()
this.getCompanyList();
this.getPageList();
......
......@@ -130,7 +130,8 @@ export default {
mallUrl = "http://192.168.20.13:8088";
lxymallUrl = "http://192.168.20.13:8088";
// crmUrl = "http://192.168.10.36:8098"
crmUrl = "http://192.168.10.11:8098"
// crmUrl = "http://192.168.10.11:8098"
crmUrl = "http://crm.oytour.com"
if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com";
mallUrl = "https://mallapi.oytour.com";
......@@ -1212,6 +1213,33 @@ export default {
}
this.$forceUpdate();
}
// 计算当前日期的前后日期
Vue.prototype.getBeforeDate = function (num, time) {
let n = num;
let d = '';
if(time) {
d = new Date(time);
} else {
d = new Date();
}
let year = d.getFullYear();
let mon = d.getMonth() + 1;
let day = d.getDate();
if(day <= n) {
if(mon > 1) {
mon = mon - 1;
} else {
year = year - 1;
mon = 12;
}
}
d.setDate(d.getDate() - n);
year = d.getFullYear();
mon = d.getMonth() + 1;
day = d.getDate();
let s = year + "-" + (mon < 10 ? ('0' + mon) : mon) + "-" + (day < 10 ? ('0' + day) : day);
return s;
},
//价钱格式化,三位数逗号分隔,保留两位小数 duanjun
Vue.prototype.moneyFormat = function (value) {
......
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