{"version":3,"sources":["webpack:///./src/components/Toolbar.vue?d1e5","webpack:///./src/directive/waves/waves.js","webpack:///./src/directive/waves/index.js","webpack:///./src/components/Toolbar.vue?78dd","webpack:///src/components/Toolbar.vue","webpack:///./src/components/Toolbar.vue?33fb","webpack:///./src/components/Toolbar.vue","webpack:///./src/views/report/tablesalesumary.vue?f44e","webpack:///src/views/report/tablesalesumary.vue","webpack:///./src/views/report/tablesalesumary.vue?dd7c","webpack:///./src/views/report/tablesalesumary.vue","webpack:///./src/utils/time.js"],"names":["context","handleClick","el","binding","handle","e","customOpts","Object","assign","value","opts","ele","type","color","target","style","position","overflow","rect","getBoundingClientRect","ripple","querySelector","className","document","createElement","height","width","Math","max","appendChild","top","offsetHeight","left","offsetWidth","pageY","documentElement","scrollTop","body","pageX","scrollLeft","backgroundColor","removeHandle","bind","addEventListener","update","removeEventListener","unbind","install","Vue","directive","waves","window","use","render","_vm","this","_h","$createElement","_c","_self","staticClass","_l","item","BtnArea","key","id","attrs","Css","iconcss","on","$event","callFunc","_v","_s","BtnName","_e","staticRenderFns","name","data","props","methods","$emit","component","staticStyle","getList","model","listQuery","querymodel","callback","$$v","$set","expression","pickerOptions","datechange","querydate","nativeOn","indexOf","_k","keyCode","buttonList","callFunction","ref","list","getSummaries","getViewHeight","background","padding","col","index","label","align","formatter","tableformatter","directives","rawName","total","pageIndex","pageSize","CreateUserName","dialogshow","detailviewId","authunsettle","cancelcomplete","savecomplete","components","Pagination","Toolbar","saledetail","tabletypelist","emplist","tablelist","isedit","downloadLoading","orderrecordmain","shortcuts","text","onClick","picker","end","start","s","columns","columns2","createuserformat","servicetime","servicetimeb","orderColumn","orderbyasc","keyword","begintime","endtime","DateType","mergetype","created","ParaValue","sstime","updated","row","column","cellValue","param","sums","gettablesalereport","m_export","tHeader","exportcolumns","filterVal","multiHeader","exportquery","res","excel","header","merges","filename","mounted","JSON","MrYangUtil","getCurrentDate","Date","getCurrentWeek","startStop","Array","currentDate","week","getDay","millisecond","getDate","minusDay","monday","getTime","setHours","setMinutes","setSeconds","setMilliseconds","sunday","push","getCurrentMonth","currentMonth","getMonth","currentYear","getFullYear","firstDay","nextMonthDayOne","lastDay","getQuarterSeasonStartMonth","month","spring","summer","fall","winter","getMonthDays","year","relativeDate","relativeMonth","relativeYear","getCurrentSeason","quarterSeasonStartMonth","quarterSeasonEndMonth","quarterSeasonStartDate","quarterSeasonEndDate","getCurrentYear","currentYearFirstDate","currentYearLastDate","getPriorMonthFirstDay","getPreviousMonth","priorMonthFirstDay","priorMonthLastDay","getPreviousPreviousMonth","time","getPreviousWeek","currentWeekDayOne","priorWeekLastDay","priorWeekFirstDay","getPriorSeasonFirstDay","getPreviousSeason","priorSeasonFirstDay","priorSeasonLastDay","getPreviousYear","priorYearFirstDay","priorYearLastDay"],"mappings":"kHAAA,W,yECCMA,EAAU,iBAChB,SAASC,EAAYC,EAAIC,GACvB,SAASC,EAAOC,GACd,IAAMC,EAAaC,OAAOC,OAAO,GAAIL,EAAQM,OACvCC,EAAOH,OAAOC,OAAO,CACzBG,IAAKT,EACLU,KAAM,MACNC,MAAO,uBAETP,GAEMQ,EAASJ,EAAKC,IACpB,GAAIG,EAAQ,CACVA,EAAOC,MAAMC,SAAW,WACxBF,EAAOC,MAAME,SAAW,SACxB,IAAMC,EAAOJ,EAAOK,wBAChBC,EAASN,EAAOO,cAAc,iBASlC,OARKD,EAMHA,EAAOE,UAAY,gBALnBF,EAASG,SAASC,cAAc,QAChCJ,EAAOE,UAAY,eACnBF,EAAOL,MAAMU,OAASL,EAAOL,MAAMW,MAAQC,KAAKC,IAAIV,EAAKQ,MAAOR,EAAKO,QAAU,KAC/EX,EAAOe,YAAYT,IAIbV,EAAKE,MACX,IAAK,SACHQ,EAAOL,MAAMe,IAAMZ,EAAKO,OAAS,EAAIL,EAAOW,aAAe,EAAI,KAC/DX,EAAOL,MAAMiB,KAAOd,EAAKQ,MAAQ,EAAIN,EAAOa,YAAc,EAAI,KAC9D,MACF,QACEb,EAAOL,M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BACYvI,EAAZA,aACYA,EAAZA,eACYA,EAAZA,eACYoI,EAAZA,wBAGA,CACUF,KAAVA,KACUC,QAFV,SAEAC,GACY,IAAZ,6BACYG,EAAZA,YACYA,EAAZA,cACYA,EAAZA,cACY,IAAZ,6BACYvI,EAAZA,aACYA,EAAZA,eACYA,EAAZA,eACYoI,EAAZA,wBAGA,CACUF,KAAVA,OACUC,QAFV,SAEAC,GACY,IAAZ,WACA,WACYE,EAAZA,4BACYA,EAAZA,YACYA,EAAZA,cACYA,EAAZA,cACYD,EAAZA,aACYA,EAAZA,eACYA,EAAZA,eACYD,EAAZA,wBAGA,CACUF,KAAVA,QACUC,QAFV,SAEAC,GACY,IAAZ,WACA,WACYE,EAAZA,4BACYA,EAAZA,YACYA,EAAZA,cACYA,EAAZA,cACYD,EAAZA,aACYA,EAAZA,eACYA,EAAZA,eACYD,EAAZA,wBAGA,CACUF,KAAVA,QACUC,QAFV,SAEAC,GACY,IAAZ,WACA,WACYE,EAAZA,4BACYA,EAAZA,YACYA,EAAZA,cACYA,EAAZA,cACYD,EAAZA,aACYA,EAAZA,eACYA,EAAZA,eACYD,EAAZA,0BAKM3C,UAANA,GACM+C,QAANA,CAEA,CAAQhC,MAARA,UAAQpG,MAARA,YAAQqG,MAARA,SAAQpF,MAARA,KAEA,CACQmF,MAARA,KACQpG,MAARA,eACQqG,MAARA,QACQC,WAARA,GAEA,CACQF,MAARA,QACQpG,MAARA,gBACQqG,MAARA,QACQpF,MAARA,GACQqF,WAARA,GAEA,CACQF,MAARA,YACQpG,MAARA,iBACQqG,MAARA,QACQpF,MAARA,IACQqF,WAARA,GAEA,CACQF,MAARA,QACQpG,MAARA,kBACQqG,MAARA,QACQpF,MAARA,IACQqF,WAARA,GAEA,CACQF,MAARA,OACQpG,MAARA,eACQqG,MAARA,QACQC,WAARA,IAGM+B,SAANA,CACA,CACQjC,MAARA,MACQpG,MAARA,cACQqG,MAARA,QACQC,WAARA,GAEA,CACQF,MAARA,MACQpG,MAARA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ItD,KAAKqD,EAAiB1C,UAA2B,EAAdJ,GAQ/D,OAPA+C,EAAkB1C,SAAS,GAC3B0C,EAAkBzC,WAAW,GAC7ByC,EAAkBxC,WAAW,GAC7BwC,EAAkBvC,gBAAgB,GAElCb,EAAUe,KAAKqC,GACfpD,EAAUe,KAAKoC,GACRnD,GAOXqD,uBAAwB,SAAUtB,EAAMN,GACpC,IACIC,EAAS,EACTC,EAAS,EACTC,EAAO,EACPC,EAAS,EAmBb,OAjBIJ,GAASC,GACTK,IACAN,EAAQI,GACDJ,GAASE,EACZF,GAASE,GACTI,IACAN,EAAQI,GAERJ,EAAQC,EAELD,EAAQG,EACfH,EAAQC,EACDD,EAAQI,EACfJ,EAAQE,EACDF,GAASI,IAChBJ,EAAQG,GAEL,IAAI9B,KAAKiC,EAAMN,EAAO,IAKjC6B,kBAAmB,WAEf,IAAItD,EAAY,GAEZE,EAAc/H,KAAK0H,iBAEnBoB,EAAef,EAAYgB,WAE3BC,EAAcjB,EAAYkB,cAE1BmC,EAAsBpL,KAAKkL,uBAAuBlC,EAAaF,GAE/DuC,EAAqB,IAAI1D,KAAKyD,EAAoBnC,cAAemC,EAAoBrC,WAAa,EAAG/I,KAAK2J,aAAayB,EAAoBnC,cAAemC,EAAoBrC,WAAa,IAI/L,OAFAlB,EAAUe,KAAKwC,GACfvD,EAAUe,KAAKyC,GACRxD,GAKXyD,gBAAiB,WAEb,IAAIzD,EAAY,GAEZE,EAAc/H,KAAK0H,iBAEnBsB,EAAcjB,EAAYkB,cAC9BD,IACA,IAAIuC,EAAoB,IAAI5D,KAAKqB,EAAa,EAAG,GAC7CwC,EAAmB,IAAI7D,KAAKqB,EAAa,GAAI,GAIjD,OAFAnB,EAAUe,KAAK2C,GACf1D,EAAUe,KAAK4C,GACR3D","file":"js/chunk-52e64242.83590d13.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Toolbar.vue?vue&type=style&index=0&lang=css&\"","import './waves.css'\nconst context = '@@wavesContext'\nfunction handleClick(el, binding) {\n function handle(e) {\n const customOpts = Object.assign({}, binding.value)\n const opts = Object.assign({\n ele: el, // 波纹作用元素\n type: 'hit', // hit 点击位置扩散 center中心点扩展\n color: 'rgba(0, 0, 0, 0.15)' // 波纹颜色\n },\n customOpts\n )\n const target = opts.ele\n if (target) {\n target.style.position = 'relative'\n target.style.overflow = 'hidden'\n const rect = target.getBoundingClientRect()\n let ripple = target.querySelector('.waves-ripple')\n if (!ripple) {\n ripple = document.createElement('span')\n ripple.className = 'waves-ripple'\n ripple.style.height = ripple.style.width = Math.max(rect.width, rect.height) + 'px'\n target.appendChild(ripple)\n } else {\n ripple.className = 'waves-ripple'\n }\n switch (opts.type) {\n case 'center':\n ripple.style.top = rect.height / 2 - ripple.offsetHeight / 2 + 'px'\n ripple.style.left = rect.width / 2 - ripple.offsetWidth / 2 + 'px'\n break\n default:\n ripple.style.top =\n (e.pageY - rect.top - ripple.offsetHeight / 2 - document.documentElement.scrollTop ||\n document.body.scrollTop) + 'px'\n ripple.style.left =\n (e.pageX - rect.left - ripple.offsetWidth / 2 - document.documentElement.scrollLeft ||\n document.body.scrollLeft) + 'px'\n }\n ripple.style.backgroundColor = opts.color\n ripple.className = 'waves-ripple z-active'\n return false\n }\n }\n if (!el[context]) {\n el[context] = {\n removeHandle: handle\n }\n } else {\n el[context].removeHandle = handle\n }\n return handle\n}\nexport default {\n bind(el, binding) {\n el.addEventListener('click', handleClick(el, binding), false)\n },\n update(el, binding) {\n el.removeEventListener('click', el[context].removeHandle, false)\n el.addEventListener('click', handleClick(el, binding), false)\n },\n unbind(el) {\n el.removeEventListener('click', el[context].removeHandle, false)\n el[context] = null\n delete el[context]\n }\n}\n","import waves from './waves'\nconst install = function(Vue) {\n Vue.directive('waves', waves)\n}\nif (window.Vue) {\n window.waves = waves\n Vue.use(install); // eslint-disable-line\n}\nwaves.install = install\nexport default waves\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"filter-item\"},_vm._l((_vm.buttonList),function(item){return (item.BtnArea === 0)?_c('el-button',{key:item.id,attrs:{\"type\":item.Css,\"icon\":item.iconcss},on:{\"click\":function($event){return _vm.callFunc(item)}}},[_vm._v(_vm._s(item.BtnName))]):_vm._e()}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Toolbar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Toolbar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Toolbar.vue?vue&type=template&id=227748e9&\"\nimport script from \"./Toolbar.vue?vue&type=script&lang=js&\"\nexport * from \"./Toolbar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Toolbar.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('div',{staticClass:\"filter-container\"},[_c('el-select',{staticStyle:{\"margin-right\":\"10px\"},attrs:{\"clearable\":true,\"placeholder\":\"汇总类型\"},on:{\"change\":function($event){return _vm.getList()}},model:{value:(_vm.listQuery.querymodel.mergetype),callback:function ($$v) {_vm.$set(_vm.listQuery.querymodel, \"mergetype\", $$v)},expression:\"listQuery.querymodel.mergetype\"}},[_c('el-option',{attrs:{\"label\":\"按桌台汇总\",\"value\":1}}),_c('el-option',{attrs:{\"label\":\"按桌台类别汇总\",\"value\":2}})],1),_c('el-select',{staticClass:\"filter-item\",attrs:{\"placeholder\":\"请选择时间类型\"},on:{\"change\":function($event){return _vm.getList()}},model:{value:(_vm.listQuery.querymodel.DateType),callback:function ($$v) {_vm.$set(_vm.listQuery.querymodel, \"DateType\", $$v)},expression:\"listQuery.querymodel.DateType\"}},[_c('el-option',{attrs:{\"label\":\"结账时间\",\"value\":2}}),_c('el-option',{attrs:{\"label\":\"计时开始/销售时间\",\"value\":1,\"se\":\"\"}})],1),_c('el-date-picker',{staticClass:\"filter-item\",attrs:{\"clearable\":false,\"type\":\"datetimerange\",\"picker-options\":_vm.pickerOptions,\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\"},on:{\"change\":_vm.datechange},model:{value:(_vm.querydate),callback:function ($$v) {_vm.querydate=$$v},expression:\"querydate\"}}),_c('el-input',{staticClass:\"filter-item\",staticStyle:{\"width\":\"250px\"},attrs:{\"placeholder\":\"桌台名称\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.getList()}},model:{value:(_vm.listQuery.querymodel.keyword),callback:function ($$v) {_vm.$set(_vm.listQuery.querymodel, \"keyword\", $$v)},expression:\"listQuery.querymodel.keyword\"}}),_c('toolbar',{attrs:{\"buttonList\":_vm.buttonList},on:{\"callFunction\":_vm.callFunction}})],1),_c('el-table',{ref:\"orderrecordtable\",staticClass:\"app-table\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\",\"fit\":\"\",\"highlight-current-row\":\"\",\"stripe\":\"\",\"show-summary\":\"\",\"summary-method\":_vm.getSummaries,\"height\":_vm.width > 1920 ? _vm.getViewHeight() : _vm.getViewHeight() - 46,\"header-cell-style\":{ background: '#F3F4F7', color: '#555' },\"row-style\":{ height: '10px' },\"cell-style\":{ padding: '7px 0' }}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"width\":\"50\",\"label\":\"序号\"}}),_c('el-table-column',{attrs:{\"label\":\"实收统计\",\"align\":\"center\"}},_vm._l((_vm.columns),function(col,index){return _c('el-table-column',{key:index,attrs:{\"label\":col.label,\"align\":col.align,\"prop\":col.value,\"type\":col.type,\"width\":col.width,\"formatter\":col.formatter == true ? _vm.tableformatter : null}})}),1),_c('el-table-column',{attrs:{\"label\":\"消费统计\",\"align\":\"center\"}},_vm._l((_vm.columns2),function(col,index){return _c('el-table-column',{key:index,attrs:{\"label\":col.label,\"align\":col.align,\"prop\":col.value,\"type\":col.type,\"width\":col.width,\"formatter\":col.formatter == true ? _vm.tableformatter : null}})}),1)],1),_c('pagination',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.total > 0),expression:\"total > 0\"}],attrs:{\"total\":_vm.total,\"page\":_vm.listQuery.pageIndex,\"limit\":_vm.listQuery.pageSize},on:{\"update:page\":function($event){return _vm.$set(_vm.listQuery, \"pageIndex\", $event)},\"update:limit\":function($event){return _vm.$set(_vm.listQuery, \"pageSize\", $event)},\"pagination\":_vm.getList}}),(_vm.dialogshow)?_c('saledetail',{attrs:{\"CreateUserName\":_vm.CreateUserName,\"dialogshow\":_vm.dialogshow,\"OrderId\":_vm.detailviewId,\"authunsettle\":_vm.authunsettle,\"querytype\":1},on:{\"cancelcomplete\":_vm.cancelcomplete,\"savecomplete\":_vm.savecomplete}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./tablesalesumary.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./tablesalesumary.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./tablesalesumary.vue?vue&type=template&id=090c4b10&scoped=true&\"\nimport script from \"./tablesalesumary.vue?vue&type=script&lang=js&\"\nexport * from \"./tablesalesumary.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"090c4b10\",\n null\n \n)\n\nexport default component.exports","/* eslint-disable eqeqeq */\r\n/* eslint-disable no-unused-vars */\r\n/* eslint-disable no-array-constructor */\r\n/**\r\n * 针对Ext的工具类\r\n */\r\nexport const MrYangUtil = {\r\n /** *\r\n * 获得当前时间\r\n */\r\n getCurrentDate: function () {\r\n return new Date();\r\n },\r\n /** *\r\n * 获得本周起止时间\r\n */\r\n getCurrentWeek: function () {\r\n // 起止日期数组\r\n var startStop = new Array();\r\n // 获取当前时间\r\n var currentDate = this.getCurrentDate();\r\n // 返回date是一周中的某一天\r\n var week = currentDate.getDay();\r\n // 返回date是一个月中的某一天\r\n var month = currentDate.getDate();\r\n // 一天的毫秒数\r\n var millisecond = 1000 * 60 * 60 * 24;\r\n // 减去的天数\r\n var minusDay = week != 0 ? week - 1 : 6;\r\n // alert(minusDay);\r\n // 本周 周一\r\n var monday = new Date(currentDate.getTime() - (minusDay * millisecond));\r\n monday.setHours(0)\r\n monday.setMinutes(0)\r\n monday.setSeconds(0)\r\n monday.setMilliseconds(0)\r\n // 本周 周日\r\n var sunday = new Date(monday.getTime() + (6 * millisecond));\r\n sunday.setHours(0)\r\n sunday.setMinutes(0)\r\n sunday.setSeconds(0)\r\n sunday.setMilliseconds(0)\r\n // 添加本周时间\r\n startStop.push(monday);// 本周起始时间\r\n // 添加本周最后一天时间\r\n startStop.push(sunday);// 本周终止时间\r\n // 返回\r\n return startStop;\r\n },\r\n /** *\r\n * 获得本月的起止时间\r\n */\r\n getCurrentMonth: function () {\r\n // 起止日期数组\r\n var startStop = new Array();\r\n // 获取当前时间\r\n var currentDate = this.getCurrentDate();\r\n // 获得当前月份0-11\r\n var currentMonth = currentDate.getMonth();\r\n // 获得当前年份4位年\r\n var currentYear = currentDate.getFullYear();\r\n // 求出本月第一天\r\n var firstDay = new Date(currentYear, currentMonth, 1);\r\n // 当为12月的时候年份需要加1\r\n // 月份需要更新为0 也就是下一年的第一个月\r\n if (currentMonth == 11) {\r\n currentYear++;\r\n currentMonth = 0;// 就为\r\n } else {\r\n // 否则只是月份增加,以便求的下一月的第一天\r\n currentMonth++;\r\n }\r\n // 一天的毫秒数\r\n var millisecond = 1000 * 60 * 60 * 24;\r\n // 下月的第一天\r\n var nextMonthDayOne = new Date(currentYear, currentMonth, 1);\r\n // 求出上月的最后一天\r\n var lastDay = new Date(nextMonthDayOne.getTime() - millisecond);\r\n firstDay.setHours(0)\r\n firstDay.setMinutes(0)\r\n firstDay.setSeconds(0)\r\n firstDay.setMilliseconds(0)\r\n lastDay.setHours(0)\r\n lastDay.setMinutes(0)\r\n lastDay.setSeconds(0)\r\n lastDay.setMilliseconds(0)\r\n // 添加至数组中返回\r\n startStop.push(firstDay);\r\n startStop.push(lastDay);\r\n // 返回\r\n return startStop;\r\n },\r\n /**\r\n * 得到本季度开始的月份\r\n * @param month 需要计算的月份\r\n ***/\r\n getQuarterSeasonStartMonth: function (month) {\r\n var quarterMonthStart = 0;\r\n var spring = 0; // 春\r\n var summer = 3; // 夏\r\n var fall = 6; // 秋\r\n var winter = 9;// 冬\r\n // 月份从0-11\r\n if (month < 3) {\r\n return spring;\r\n }\r\n if (month < 6) {\r\n return summer;\r\n }\r\n if (month < 9) {\r\n return fall;\r\n }\r\n return winter;\r\n },\r\n /**\r\n * 获得该月的天数\r\n * @param year年份\r\n * @param month月份\r\n * */\r\n getMonthDays: function (year, month) {\r\n // 本月第一天 1-31\r\n var relativeDate = new Date(year, month, 1);\r\n // 获得当前月份0-11\r\n var relativeMonth = relativeDate.getMonth();\r\n // 获得当前年份4位年\r\n var relativeYear = relativeDate.getFullYear();\r\n // 当为12月的时候年份需要加1\r\n // 月份需要更新为0 也就是下一年的第一个月\r\n if (relativeMonth == 11) {\r\n relativeYear++;\r\n relativeMonth = 0;\r\n } else {\r\n // 否则只是月份增加,以便求的下一月的第一天\r\n relativeMonth++;\r\n }\r\n // 一天的毫秒数\r\n var millisecond = 1000 * 60 * 60 * 24;\r\n // 下月的第一天\r\n var nextMonthDayOne = new Date(relativeYear, relativeMonth, 1);\r\n // 返回得到上月的最后一天,也就是本月总天数\r\n return new Date(nextMonthDayOne.getTime() - millisecond).getDate();\r\n },\r\n /**\r\n * 获得本季度的起止日期\r\n */\r\n getCurrentSeason: function () {\r\n // 起止日期数组\r\n var startStop = new Array();\r\n // 获取当前时间\r\n var currentDate = this.getCurrentDate();\r\n // 获得当前月份0-11\r\n var currentMonth = currentDate.getMonth();\r\n // 获得当前年份4位年\r\n var currentYear = currentDate.getFullYear();\r\n // 获得本季度开始月份\r\n var quarterSeasonStartMonth = this.getQuarterSeasonStartMonth(currentMonth);\r\n // 获得本季度结束月份\r\n var quarterSeasonEndMonth = quarterSeasonStartMonth + 2;\r\n // 获得本季度开始的日期\r\n var quarterSeasonStartDate = new Date(currentYear, quarterSeasonStartMonth, 1);\r\n // 获得本季度结束的日期\r\n var quarterSeasonEndDate = new Date(currentYear, quarterSeasonEndMonth, this.getMonthDays(currentYear, quarterSeasonEndMonth));\r\n // 加入数组返回\r\n startStop.push(quarterSeasonStartDate);\r\n startStop.push(quarterSeasonEndDate);\r\n // 返回\r\n return startStop;\r\n },\r\n /** *\r\n * 得到本年的起止日期\r\n *\r\n */\r\n getCurrentYear: function () {\r\n // 起止日期数组\r\n var startStop = new Array();\r\n // 获取当前时间\r\n var currentDate = this.getCurrentDate();\r\n // 获得当前年份4位年\r\n var currentYear = currentDate.getFullYear();\r\n // 本年第一天\r\n var currentYearFirstDate = new Date(currentYear, 0, 1);\r\n // 本年最后一天\r\n var currentYearLastDate = new Date(currentYear, 11, 31);\r\n // 添加至数组\r\n startStop.push(currentYearFirstDate);\r\n startStop.push(currentYearLastDate);\r\n // 返回\r\n return startStop;\r\n },\r\n /**\r\n * 返回上一个月的第一天Date类型\r\n * @param year 年\r\n * @param month 月\r\n **/\r\n getPriorMonthFirstDay: function (year, month) {\r\n // 年份为0代表,是本年的第一月,所以不能减\r\n if (month == 0) {\r\n month = 11;// 月份为上年的最后月份\r\n year--;// 年份减1\r\n return new Date(year, month, 1);\r\n }\r\n // 否则,只减去月份\r\n month--;\r\n return new Date(year, month, 1);\r\n },\r\n /**\r\n * 获得上一月的起止日期\r\n * ***/\r\n getPreviousMonth: function () {\r\n // 起止日期数组\r\n var startStop = new Array();\r\n // 获取当前时间\r\n var currentDate = this.getCurrentDate();\r\n // 获得当前月份0-11\r\n var currentMonth = currentDate.getMonth();\r\n // 获得当前年份4位年\r\n var currentYear = currentDate.getFullYear();\r\n // 获得上一个月的第一天\r\n var priorMonthFirstDay = this.getPriorMonthFirstDay(currentYear, currentMonth);\r\n priorMonthFirstDay.setHours(0)\r\n priorMonthFirstDay.setMinutes(0)\r\n priorMonthFirstDay.setSeconds(0)\r\n priorMonthFirstDay.setMilliseconds(0)\r\n // 获得上一月的最后一天\r\n var priorMonthLastDay = new Date(priorMonthFirstDay.getFullYear(), priorMonthFirstDay.getMonth(), this.getMonthDays(priorMonthFirstDay.getFullYear(), priorMonthFirstDay.getMonth()));\r\n priorMonthLastDay.setHours(0)\r\n priorMonthLastDay.setMinutes(0)\r\n priorMonthLastDay.setSeconds(0)\r\n priorMonthLastDay.setMilliseconds(0)\r\n // 添加至数组\r\n startStop.push(priorMonthFirstDay);\r\n startStop.push(priorMonthLastDay);\r\n // 返回\r\n return startStop;\r\n },\r\n /**\r\n * 获得上上一月的起止日期\r\n * ***/\r\n getPreviousPreviousMonth: function (time) {\r\n // 起止日期数组\r\n var startStop = new Array();\r\n // 获取当前时间\r\n var currentDate = time;\r\n // 获得当前月份0-11\r\n var currentMonth = currentDate.getMonth();\r\n // 获得当前年份4位年\r\n var currentYear = currentDate.getFullYear();\r\n // 获得上一个月的第一天\r\n var priorMonthFirstDay = this.getPriorMonthFirstDay(currentYear, currentMonth);\r\n priorMonthFirstDay.setHours(0)\r\n priorMonthFirstDay.setMinutes(0)\r\n priorMonthFirstDay.setSeconds(0)\r\n priorMonthFirstDay.setMilliseconds(0)\r\n // 获得上一月的最后一天\r\n var priorMonthLastDay = new Date(priorMonthFirstDay.getFullYear(), priorMonthFirstDay.getMonth(), this.getMonthDays(priorMonthFirstDay.getFullYear(), priorMonthFirstDay.getMonth()));\r\n priorMonthLastDay.setHours(0)\r\n priorMonthLastDay.setMinutes(0)\r\n priorMonthLastDay.setSeconds(0)\r\n priorMonthLastDay.setMilliseconds(0)\r\n // 添加至数组\r\n startStop.push(priorMonthFirstDay);\r\n startStop.push(priorMonthLastDay);\r\n // 返回\r\n return startStop;\r\n },\r\n /**\r\n * 获得上一周的起止日期\r\n * **/\r\n getPreviousWeek: function () {\r\n // 起止日期数组\r\n var startStop = new Array();\r\n // 获取当前时间\r\n var currentDate = this.getCurrentDate();\r\n // 返回date是一周中的某一天\r\n var week = currentDate.getDay();\r\n // 返回date是一个月中的某一天\r\n var month = currentDate.getDate();\r\n // 一天的毫秒数\r\n var millisecond = 1000 * 60 * 60 * 24;\r\n // 减去的天数\r\n var minusDay = week != 0 ? week - 1 : 6;\r\n // 获得当前周的第一天\r\n var currentWeekDayOne = new Date(currentDate.getTime() - (millisecond * minusDay));\r\n // 上周最后一天即本周开始的前一天\r\n var priorWeekLastDay = new Date(currentWeekDayOne.getTime() - millisecond);\r\n priorWeekLastDay.setHours(0)\r\n priorWeekLastDay.setMinutes(0)\r\n priorWeekLastDay.setSeconds(0)\r\n priorWeekLastDay.setMilliseconds(0)\r\n // 上周的第一天\r\n var priorWeekFirstDay = new Date(priorWeekLastDay.getTime() - (millisecond * 6));\r\n priorWeekFirstDay.setHours(0)\r\n priorWeekFirstDay.setMinutes(0)\r\n priorWeekFirstDay.setSeconds(0)\r\n priorWeekFirstDay.setMilliseconds(0)\r\n // 添加至数组\r\n startStop.push(priorWeekFirstDay);\r\n startStop.push(priorWeekLastDay);\r\n return startStop;\r\n },\r\n /**\r\n * 得到上季度的起始日期\r\n * year 这个年应该是运算后得到的当前本季度的年份\r\n * month 这个应该是运算后得到的当前季度的开始月份\r\n * */\r\n getPriorSeasonFirstDay: function (year, month) {\r\n var quarterMonthStart = 0;\r\n var spring = 0; // 春\r\n var summer = 3; // 夏\r\n var fall = 6; // 秋\r\n var winter = 9;// 冬\r\n // 月份从0-11\r\n if (month == spring) {\r\n year--;\r\n month = winter;\r\n } else if (month <= summer) {\r\n if (month != summer) {\r\n year--;\r\n month = winter;\r\n } else {\r\n month = spring\r\n }\r\n } else if (month < fall) {\r\n month = spring;\r\n } else if (month < winter) {\r\n month = summer;\r\n } else if (month >= winter) {\r\n month = fall\r\n }\r\n return new Date(year, month, 1);\r\n },\r\n /**\r\n * 得到上季度的起止日期\r\n * **/\r\n getPreviousSeason: function () {\r\n // 起止日期数组\r\n var startStop = [];\r\n // 获取当前时间\r\n var currentDate = this.getCurrentDate();\r\n // 获得当前月份0-11\r\n var currentMonth = currentDate.getMonth();\r\n // 获得当前年份4位年\r\n var currentYear = currentDate.getFullYear();\r\n // 上季度的第一天\r\n var priorSeasonFirstDay = this.getPriorSeasonFirstDay(currentYear, currentMonth);\r\n // 上季度的最后一天\r\n var priorSeasonLastDay = new Date(priorSeasonFirstDay.getFullYear(), priorSeasonFirstDay.getMonth() + 2, this.getMonthDays(priorSeasonFirstDay.getFullYear(), priorSeasonFirstDay.getMonth() + 2));\r\n // 添加至数组\r\n startStop.push(priorSeasonFirstDay);\r\n startStop.push(priorSeasonLastDay);\r\n return startStop;\r\n },\r\n /**\r\n * 得到去年的起止日期\r\n * **/\r\n getPreviousYear: function () {\r\n // 起止日期数组\r\n var startStop = [];\r\n // 获取当前时间\r\n var currentDate = this.getCurrentDate();\r\n // 获得当前年份4位年\r\n var currentYear = currentDate.getFullYear();\r\n currentYear--;\r\n var priorYearFirstDay = new Date(currentYear, 0, 1);\r\n var priorYearLastDay = new Date(currentYear, 11, 1);\r\n // 添加至数组\r\n startStop.push(priorYearFirstDay);\r\n startStop.push(priorYearLastDay);\r\n return startStop;\r\n }\r\n};\r\n"],"sourceRoot":""}