diff --git a/src/http/api/enterprise.ts b/src/http/api/enterprise.ts index 09a5ada..b31c652 100644 --- a/src/http/api/enterprise.ts +++ b/src/http/api/enterprise.ts @@ -90,16 +90,30 @@ export const apiGetCompanyInfoById = (id: any) => { return post(strUrl,params) } -/* - - - - - -POST +//=============================================企业业务开通管理 +// business/open/exportExcel +export const apiBusinessOpenExportExcel = (params: any) => { + let strUrl = `business/open/exportExcel` + return get(strUrl,{}) +} +// 新增业务开通请求 +export const apiBusinessOpenInsert = (params: any) => { + let strUrl = `/business/open/insert` + return post(strUrl,params) +} +// 根据条件查询企业业务开通信息列表 +export const apiBusinessOpenselectList = (params: any) => { + let strUrl = `/business/open/selectList` + return post(strUrl,params) +} +// 企业业务开通数据修改 +export const apiBusinessUpdateBusiness = (params: any) => { + let strUrl = `/business/open/updateBusiness` + return post(strUrl,params) +} -POST -企业信息变更 */ \ No newline at end of file + + \ No newline at end of file diff --git a/src/utils/time.ts b/src/utils/time.ts index 8ff6302..e0c4546 100644 --- a/src/utils/time.ts +++ b/src/utils/time.ts @@ -117,3 +117,37 @@ export function formatDate(timestamp: any) { } return '刚刚' } + + + + +export const getNewDay = (dateTemp: any, days: any) => { + console.log("dateTemp",dateTemp,days) + if(!dateTemp ){ + return "" + } + dateTemp = dateTemp.split("."); + //转换为MM-DD-YYYY格式 + let nDate: any = new Date(dateTemp[1] + "-" + dateTemp[2] + "-" + dateTemp[0]); + let millSeconds: any = Math.abs(nDate) - days * 24 * 60 * 60 * 1000; + let rDate: any = new Date(millSeconds); + let year: any = rDate.getFullYear(); + let month: any = rDate.getMonth() + 1; + if (month < 10) month = "0" + month; + let date = rDate.getDate(); + if (date < 10) date = "0" + date; + return year + "." + month + "." + date; + +} + +export const getdatatime = () => { //默认显示今天 + //this.queryInfos.sheetDate= new Date(); + const currentDate = new Date() + const year = currentDate.getFullYear(); + const month = currentDate.getMonth(); + const date = currentDate.getDate(); + const end = (new Date(year, month, date, 0, 0, 0)).getTime(); // 2021-12-24 00:00:00 + const start = end - (3600 * 1000 * 24 * 30) + return [start,end] + +} diff --git a/src/views/com/details.vue b/src/views/com/details.vue index e6ebb08..b464fb4 100644 --- a/src/views/com/details.vue +++ b/src/views/com/details.vue @@ -102,7 +102,7 @@ -