{"version":3,"sources":["webpack:///./src/api/tabletype.js","webpack:///./src/views/report/order.vue?664a","webpack:///src/views/report/order.vue","webpack:///./src/views/report/order.vue?1b85","webpack:///./src/views/report/order.vue","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/api/table.js","webpack:///./src/utils/time.js"],"names":["query","params","service","post","create","edit","put","deleted","delete","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","on","$event","getList","model","value","listQuery","querymodel","callback","$$v","$set","expression","_l","item","key","Id","TypeName","TableName","staticStyle","EmpName","pickerOptions","datechange","querydate","nativeOn","type","indexOf","_k","keyCode","buttonList","callFunction","ref","list","getSummaries","width","getViewHeight","background","color","height","padding","scopedSlots","_u","fn","row","detailview","_v","col","index","label","align","formatter","tableformatter","directives","name","rawName","total","pageIndex","pageSize","CreateUserName","dialogshow","detailviewId","authunsettle","cancelcomplete","savecomplete","_e","staticRenderFns","components","Pagination","Toolbar","saledetail","waves","data","tabletypelist","emplist","tablelist","isedit","downloadLoading","orderrecordmain","shortcuts","text","onClick","picker","end","start","s","e","columns","columns2","createuserformat","servicetime","servicetimeb","orderColumn","orderbyasc","keyword","TableIds","TableTypeIds","PayState","begintime","endtime","DateType","SaleType","SaleUserIds","FreeType","created","ParaValue","sstime","getTime","Date","getHours","getMinutes","document","documentElement","clientWidth","queryemp","EnableMark","ShopMark","AdminMark","then","querytabletype","querytable","updated","$nextTick","methods","column","cellValue","property","Number","toFixed","param","sums","length","setTime","BtnCode","apply","createuserlist","filter","undefined","page","limit","getorderrecord","m_export","tHeader","exportcolumns","filterVal","i","multiHeader","exportquery","res","j","v","excel","header","merges","filename","mounted","JSON","$route","path","routers","forEach","component","context","handleClick","el","binding","handle","customOpts","Object","assign","opts","ele","target","style","position","overflow","rect","getBoundingClientRect","ripple","querySelector","className","createElement","Math","max","appendChild","top","offsetHeight","left","offsetWidth","pageY","scrollTop","body","pageX","scrollLeft","backgroundColor","removeHandle","bind","addEventListener","update","removeEventListener","unbind","install","Vue","directive","window","use","BtnArea","id","Css","iconcss","callFunc","_s","BtnName","props","$emit","queryordertable","get","changestate","getmergetablelist","powercmd","gettablecode","getmaintainrecordbyid","tablereserve","gettablereservequery","gettablemaintainquery","tablereserveedit","tablereservedelete","bulkset","tablereserverefuse","getdevlist","MrYangUtil","getCurrentDate","getCurrentWeek","startStop","Array","currentDate","week","getDay","millisecond","getDate","minusDay","monday","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,wJAEaA,EAAQ,SAAAC,GAAW,OAAOC,OAAQC,KAAR,6BAA2CF,IAErEG,EAAS,SAAAH,GAAW,OAAOC,OAAQC,KAAR,8BAA4CF,IAEvEI,EAAO,SAAAJ,GAAW,OAAOC,OAAQI,IAAR,4BAAyCL,IAElEM,EAAU,SAAAN,GAAW,OAAOC,OAAQM,OAAR,8BAA8C,CAACP,a,2CCRxF,IAAIQ,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,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KACA,CACQc,MAARA,MACQ1C,MAARA,eACQ2C,MAARA,SACQf,MAARA,IACQgB,WAARA,GAEA,CAAQF,MAARA,MAAQ1C,MAARA,eAAQ2C,MAARA,SAAQf,MAARA,KACA,CAAQc,MAARA,OAAQ1C,MAARA,WAAQ2C,MAARA,SAAQf,MAARA,KACA,CAAQc,MAARA,OAAQ1C,MAARA,YAAQ2C,MAARA,SAAQf,MAARA,KACA,CACQc,MAARA,YACQ1C,MAARA,WACQ2C,MAARA,SACQf,MAARA,KAEA,CACQc,MAARA,SACQ1C,MAARA,cACQ2C,MAARA,SACQf,MAARA,KAEA,CACQc,MAARA,OACQ1C,MAARA,UACQ2C,MAARA,SACQf,MAARA,KAEA,CACQc,MAARA,OACQ1C,MAARA,iBACQ2C,MAARA,SACQf,MAARA,KAEA,CACQc,MAARA,OACQ1C,MAARA,gBACQ2C,MAARA,SACQf,MAARA,KAEA,CACQc,MAARA,KACQ1C,MAARA,eACQ2C,MAARA,QACQC,WAARA,GAEA,CACQF,MAARA,QACQ1C,MAARA,gBACQ2C,MAARA,QACQf,MAARA,GACQgB,WAARA,GAEA,CACQF,MAARA,YACQ1C,MAARA,iBACQ2C,MAARA,QACQf,MAARA,IACQgB,WAARA,GAEA,CACQF,MAARA,QACQ1C,MAARA,kBACQ2C,MAARA,QACQf,MAARA,IACQgB,WAARA,GAEA,CACQF,MAARA,OACQ1C,MAARA,eACQ2C,MAARA,QACQC,WAARA,IAGMqC,SAAUA,CAChB,CACQvC,MAARA,MACQ1C,MAARA,cACQ2C,MAARA,QACQC,WAARA,GAEA,CACQF,MAARA,MACQ1C,MAARA,gBACQ2C,MAARA,QACQC,WAARA,GAEA,CACQF,MAARA,MACQ1C,MAARA,YACQ2C,MAARA,QACQC,WAARA,GAEA,CACQF,MAARA,OACQ1C,MAARA,cACQ2C,MAARA,QACQC,WAARA,GAEA,CACQF,MAARA,OACQ1C,MAARA,gBACQ2C,MAARA,QACQC,WAARA,IAGMsC,iBAAkBA,GAClBt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/L,OAFAjB,EAAUc,KAAKwC,GACftD,EAAUc,KAAKyC,GACRvD,GAKXwD,gBAAiB,WAEb,IAAIxD,EAAY,GAEZE,EAAc/O,KAAK2O,iBAEnBoB,EAAchB,EAAYiB,cAC9BD,IACA,IAAIuC,EAAoB,IAAItL,KAAK+I,EAAa,EAAG,GAC7CwC,EAAmB,IAAIvL,KAAK+I,EAAa,GAAI,GAIjD,OAFAlB,EAAUc,KAAK2C,GACfzD,EAAUc,KAAK4C,GACR1D","file":"js/chunk-053bdf34.c795670a.js","sourcesContent":["import service from '../utils/request'\r\n// 查询列表\r\nexport const query = params => {return service.post(`/api/base_table_type/query`, params)};\r\n// 创建\r\nexport const create = params => {return service.post(`/api/base_table_type/create`, params)};\r\n// 修改\r\nexport const edit = params => {return service.put(`/api/base_table_type/edit`, params)};\r\n// 删除\r\nexport const deleted = params => {return service.delete(`/api/base_table_type/delete`, {params})};\r\n","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',{staticClass:\"filter-item\",attrs:{\"placeholder\":\"请选择桌台类别\",\"multiple\":\"\",\"filterable\":\"\",\"clearable\":true},on:{\"change\":function($event){return _vm.getList()}},model:{value:(_vm.listQuery.querymodel.TableTypeIds),callback:function ($$v) {_vm.$set(_vm.listQuery.querymodel, \"TableTypeIds\", $$v)},expression:\"listQuery.querymodel.TableTypeIds\"}},_vm._l((_vm.tabletypelist),function(item){return _c('el-option',{key:item.Id,attrs:{\"label\":item.TypeName,\"value\":item.Id}})}),1),_c('el-select',{staticClass:\"filter-item\",attrs:{\"filterable\":\"\",\"multiple\":\"\",\"placeholder\":\"请选择桌台\"},on:{\"change\":function($event){return _vm.getList()}},model:{value:(_vm.listQuery.querymodel.TableIds),callback:function ($$v) {_vm.$set(_vm.listQuery.querymodel, \"TableIds\", $$v)},expression:\"listQuery.querymodel.TableIds\"}},_vm._l((_vm.tablelist),function(item){return _c('el-option',{key:item.Id,attrs:{\"label\":item.TypeName + '-' + item.TableName,\"value\":item.Id}})}),1),_c('el-select',{staticStyle:{\"margin-right\":\"10px\"},attrs:{\"clearable\":true,\"placeholder\":\"全部订单\"},on:{\"change\":function($event){return _vm.getList()}},model:{value:(_vm.listQuery.querymodel.FreeType),callback:function ($$v) {_vm.$set(_vm.listQuery.querymodel, \"FreeType\", $$v)},expression:\"listQuery.querymodel.FreeType\"}},[_c('el-option',{attrs:{\"label\":\"免单订单\",\"value\":1}}),_c('el-option',{attrs:{\"label\":\"非免单订单\",\"value\":2}})],1),_c('el-select',{staticClass:\"filter-item\",attrs:{\"placeholder\":\"请选择收银员\",\"multiple\":\"\",\"filterable\":\"\",\"clearable\":true},on:{\"change\":function($event){return _vm.getList()}},model:{value:(_vm.listQuery.querymodel.SaleUserIds),callback:function ($$v) {_vm.$set(_vm.listQuery.querymodel, \"SaleUserIds\", $$v)},expression:\"listQuery.querymodel.SaleUserIds\"}},_vm._l((_vm.emplist),function(item){return _c('el-option',{key:item.Id,attrs:{\"label\":item.EmpName,\"value\":item.Id}})}),1),_c('el-select',{staticClass:\"filter-item\",attrs:{\"placeholder\":\"请选择开单人\",\"multiple\":\"\",\"filterable\":\"\",\"clearable\":true},on:{\"change\":function($event){return _vm.getList()}},model:{value:(_vm.listQuery.querymodel.CreteUserIds),callback:function ($$v) {_vm.$set(_vm.listQuery.querymodel, \"CreteUserIds\", $$v)},expression:\"listQuery.querymodel.CreteUserIds\"}},_vm._l((_vm.emplist),function(item){return _c('el-option',{key:item.Id,attrs:{\"label\":item.EmpName,\"value\":item.Id}})}),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() - 36,\"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:{\"min-width\":70,\"label\":\"操作\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar row = ref.row;\nreturn [_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){return _vm.detailview(row)}}},[_vm._v(\"详情\\n \")])]}}])}),_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 }","<template>\r\n <div class=\"app-container\">\r\n <div class=\"filter-container\">\r\n <el-select class=\"filter-item\" v-model=\"listQuery.querymodel.TableTypeIds\" placeholder=\"请选择桌台类别\" multiple\r\n filterable @change=\"getList()\" :clearable=\"true\">\r\n <el-option v-for=\"item in tabletypelist\" :key=\"item.Id\" :label=\"item.TypeName\" :value=\"item.Id\"></el-option>\r\n </el-select>\r\n <el-select class=\"filter-item\" v-model=\"listQuery.querymodel.TableIds\" filterable multiple @change=\"getList()\"\r\n placeholder=\"请选择桌台\">\r\n <el-option v-for=\"item in tablelist\" :key=\"item.Id\" :label=\"item.TypeName + '-' + item.TableName\"\r\n :value=\"item.Id\"></el-option>\r\n </el-select>\r\n <el-select style=\"margin-right: 10px\" :clearable=\"true\" v-model=\"listQuery.querymodel.FreeType\" placeholder=\"全部订单\"\r\n @change=\"getList()\">\r\n <el-option label=\"免单订单\" :value=\"1\"></el-option>\r\n <el-option label=\"非免单订单\" :value=\"2\"></el-option>\r\n </el-select>\r\n <el-select class=\"filter-item\" v-model=\"listQuery.querymodel.SaleUserIds\" placeholder=\"请选择收银员\" multiple filterable\r\n @change=\"getList()\" :clearable=\"true\">\r\n <el-option v-for=\"item in emplist\" :key=\"item.Id\" :label=\"item.EmpName\" :value=\"item.Id\">\r\n </el-option>\r\n </el-select>\r\n <el-select class=\"filter-item\" v-model=\"listQuery.querymodel.CreteUserIds\" placeholder=\"请选择开单人\" multiple\r\n filterable @change=\"getList()\" :clearable=\"true\">\r\n <el-option v-for=\"item in emplist\" :key=\"item.Id\" :label=\"item.EmpName\" :value=\"item.Id\">\r\n </el-option>\r\n </el-select>\r\n <el-select class=\"filter-item\" v-model=\"listQuery.querymodel.DateType\" @change=\"getList()\" placeholder=\"请选择时间类型\">\r\n <el-option label=\"结账时间\" :value=\"2\"></el-option>\r\n <el-option label=\"计时开始/销售时间\" :value=\"1\" se></el-option>\r\n </el-select>\r\n <el-date-picker @change=\"datechange\" :clearable=\"false\" class=\"filter-item\" v-model=\"querydate\"\r\n type=\"datetimerange\" :picker-options=\"pickerOptions\" range-separator=\"至\" start-placeholder=\"开始日期\"\r\n end-placeholder=\"结束日期\">\r\n </el-date-picker>\r\n <el-input class=\"filter-item\" v-model=\"listQuery.querymodel.keyword\" placeholder=\"订单号/手机/活动名称\"\r\n style=\"width: 250px;!important\" @keyup.enter.native=\"getList()\" />\r\n <toolbar :buttonList=\"buttonList\" @callFunction=\"callFunction\"></toolbar>\r\n </div>\r\n <el-table class=\"app-table\" :data=\"list\" border fit highlight-current-row stripe ref=\"orderrecordtable\" show-summary\r\n :summary-method=\"getSummaries\" style=\"width: 100%\" :height=\"width > 1920 ? getViewHeight() : getViewHeight() - 36\"\r\n :header-cell-style=\"{ background: '#F3F4F7', color: '#555' }\" :row-style=\"{ height: '10px' }\"\r\n :cell-style=\"{ padding: '7px 0' }\">\r\n <el-table-column type=\"index\" width=\"50\" label=\"序号\"> </el-table-column>\r\n <el-table-column :min-width=\"70\" label=\"操作\" align=\"center\">\r\n <template slot-scope=\"{ row }\">\r\n <el-button size=\"mini\" type=\"text\" @click=\"detailview(row)\">详情\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"实收统计\" align=\"center\">\r\n <el-table-column :key=\"index\" v-for=\"(col, index) in columns\" :label=\"col.label\" :align=\"col.align\"\r\n :prop=\"col.value\" :type=\"col.type\" :width=\"col.width\"\r\n :formatter=\"col.formatter == true ? tableformatter : null\">\r\n </el-table-column>\r\n </el-table-column>\r\n <el-table-column label=\"消费统计\" align=\"center\">\r\n <el-table-column :key=\"index\" v-for=\"(col, index) in columns2\" :label=\"col.label\" :align=\"col.align\"\r\n :prop=\"col.value\" :type=\"col.type\" :width=\"col.width\"\r\n :formatter=\"col.formatter == true ? tableformatter : null\">\r\n </el-table-column>\r\n </el-table-column>\r\n </el-table>\r\n <pagination v-show=\"total > 0\" :total=\"total\" :page.sync=\"listQuery.pageIndex\" :limit.sync=\"listQuery.pageSize\"\r\n @pagination=\"getList\" />\r\n <saledetail v-if=\"dialogshow\" :CreateUserName=\"CreateUserName\" :dialogshow=\"dialogshow\" :OrderId=\"detailviewId\"\r\n :authunsettle=\"authunsettle\" @cancelcomplete=\"cancelcomplete\" @savecomplete=\"savecomplete\" :querytype=\"1\">\r\n </saledetail>\r\n </div>\r\n</template>\r\n<style scoped></style>\r\n<script>\r\n\r\nimport { queryemp } from \"@/api/employee\";\r\nimport { getorderrecord, getorderrecordsummary } from \"@/api/order\";\r\nimport { MrYangUtil } from \"../../utils/time.js\";\r\nimport { query as querytable } from \"@/api/table\";\r\nimport { query as querytabletype } from \"@/api/tabletype\";\r\nimport waves from \"@/directive/waves\"; // waves directive\r\nimport { getButtonList } from \"../../promissionRouter\";\r\nimport Pagination from \"@/components/Pagination\"; // secondary package based on el-pagination\r\nimport Toolbar from \"../../components/Toolbar\";\r\nimport saledetail from \"./components/saledetail.vue\";\r\nexport default {\r\n components: { Pagination, Toolbar, saledetail },\r\n directives: { waves },\r\n data() {\r\n return {\r\n dialogshow: false,\r\n tabletypelist: [],\r\n emplist: [],\r\n tablelist: [],\r\n isedit: false,\r\n buttonList: [],\r\n downloadLoading: false,\r\n list: [],\r\n pageIndex: 1,\r\n total: 0,\r\n authunsettle: false,\r\n detailviewId: \"\",\r\n orderrecordmain: {},\r\n CreateUserName: \"\",\r\n pickerOptions: {\r\n shortcuts: [\r\n {\r\n text: \"今天\",\r\n onClick(picker) {\r\n const end = new Date();\r\n end.setHours(23);\r\n end.setMinutes(59);\r\n end.setSeconds(59);\r\n const start = new Date();\r\n start.setHours(0);\r\n start.setMinutes(0);\r\n start.setSeconds(0);\r\n picker.$emit(\"pick\", [start, end, 1]);\r\n },\r\n },\r\n {\r\n text: \"昨天\",\r\n onClick(picker) {\r\n const end = new Date();\r\n const start = new Date();\r\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 1);\r\n end.setTime(end.getTime() - 3600 * 1000 * 24 * 1);\r\n start.setHours(0);\r\n start.setMinutes(0);\r\n start.setSeconds(0);\r\n end.setHours(23);\r\n end.setMinutes(59);\r\n end.setSeconds(59);\r\n picker.$emit(\"pick\", [start, end, 1]);\r\n },\r\n },\r\n {\r\n text: \"本周\",\r\n onClick(picker) {\r\n let s = MrYangUtil.getCurrentWeek()[0];\r\n s.setHours(0);\r\n s.setMinutes(0);\r\n s.setSeconds(0);\r\n let e = MrYangUtil.getCurrentWeek()[1];\r\n e.setHours(23);\r\n e.setMinutes(59);\r\n e.setSeconds(59);\r\n picker.$emit(\"pick\", [s, e, 2]);\r\n },\r\n },\r\n {\r\n text: \"本月\",\r\n onClick(picker) {\r\n let s = MrYangUtil.getCurrentMonth()[0];\r\n s.setHours(0);\r\n s.setMinutes(0);\r\n s.setSeconds(0);\r\n let e = MrYangUtil.getCurrentMonth()[1];\r\n e.setHours(23);\r\n e.setMinutes(59);\r\n e.setSeconds(59);\r\n picker.$emit(\"pick\", [s, e, 2]);\r\n },\r\n },\r\n {\r\n text: \"上月\",\r\n onClick(picker) {\r\n let s = MrYangUtil.getPreviousMonth()[0];\r\n s.setHours(0);\r\n s.setMinutes(0);\r\n s.setSeconds(0);\r\n let e = MrYangUtil.getPreviousMonth()[1];\r\n e.setHours(23);\r\n e.setMinutes(59);\r\n e.setSeconds(59);\r\n picker.$emit(\"pick\", [s, e, 2]);\r\n },\r\n },\r\n {\r\n text: \"本年\",\r\n onClick(picker) {\r\n let s = MrYangUtil.getCurrentYear()[0];\r\n s.setHours(0);\r\n s.setMinutes(0);\r\n s.setSeconds(0);\r\n let e = MrYangUtil.getCurrentYear()[1];\r\n e.setHours(23);\r\n e.setMinutes(59);\r\n e.setSeconds(59);\r\n picker.$emit(\"pick\", [s, e, 2]);\r\n },\r\n },\r\n {\r\n text: \"最近一周\",\r\n onClick(picker) {\r\n const end = new Date();\r\n const start = new Date();\r\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);\r\n start.setHours(0);\r\n start.setMinutes(0);\r\n start.setSeconds(0);\r\n end.setHours(23);\r\n end.setMinutes(59);\r\n end.setSeconds(59);\r\n picker.$emit(\"pick\", [start, end, 1]);\r\n },\r\n },\r\n {\r\n text: \"最近一个月\",\r\n onClick(picker) {\r\n const end = new Date();\r\n const start = new Date();\r\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);\r\n start.setHours(0);\r\n start.setMinutes(0);\r\n start.setSeconds(0);\r\n end.setHours(23);\r\n end.setMinutes(59);\r\n end.setSeconds(59);\r\n picker.$emit(\"pick\", [start, end, 1]);\r\n },\r\n },\r\n {\r\n text: \"最近三个月\",\r\n onClick(picker) {\r\n const end = new Date();\r\n const start = new Date();\r\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);\r\n start.setHours(0);\r\n start.setMinutes(0);\r\n start.setSeconds(0);\r\n end.setHours(23);\r\n end.setMinutes(59);\r\n end.setSeconds(59);\r\n picker.$emit(\"pick\", [start, end, 1]);\r\n },\r\n },\r\n ],\r\n },\r\n querydate: \"\",\r\n columns: [\r\n { label: \"日期\", value: \"SaleDate\", align: \"center\", width: 100 },\r\n { label: \"订单号\", value: \"Id\", align: \"center\", width: 180 },\r\n {\r\n label: \"开单人\",\r\n value: \"CreateUserId\",\r\n align: \"center\",\r\n width: 100,\r\n formatter: true,\r\n },\r\n { label: \"收银员\", value: \"SaleUserName\", align: \"center\", width: 100 },\r\n { label: \"桌台类型\", value: \"TypeName\", align: \"center\", width: 100 },\r\n { label: \"桌台名称\", value: \"TableName\", align: \"center\", width: 130 },\r\n {\r\n label: \"计时开始/销售时间\",\r\n value: \"SaleTime\",\r\n align: \"center\",\r\n width: 150,\r\n },\r\n {\r\n label: \"计时结束时间\",\r\n value: \"SaleEndTime\",\r\n align: \"center\",\r\n width: 150,\r\n },\r\n {\r\n label: \"结账时间\",\r\n value: \"PayTime\",\r\n align: \"center\",\r\n width: 150,\r\n },\r\n {\r\n label: \"消费时长\",\r\n value: \"Chargeduration\",\r\n align: \"center\",\r\n width: 100,\r\n },\r\n {\r\n label: \"参与活动\",\r\n value: \"PromotionName\",\r\n align: \"center\",\r\n width: 100,\r\n },\r\n {\r\n label: \"应收\",\r\n value: \"ShouldAmount\",\r\n align: \"right\",\r\n formatter: true,\r\n },\r\n {\r\n label: \"抹零/优惠\",\r\n value: \"OrderDiscount\",\r\n align: \"right\",\r\n width: 90,\r\n formatter: true,\r\n },\r\n {\r\n label: \"(会员/活动)折扣\",\r\n value: \"MemberDiscount\",\r\n align: \"right\",\r\n width: 130,\r\n formatter: true,\r\n },\r\n {\r\n label: \"优惠劵抵扣\",\r\n value: \"CouponPayAmount\",\r\n align: \"right\",\r\n width: 120,\r\n formatter: true,\r\n },\r\n {\r\n label: \"实收金额\",\r\n value: \"ActualAmount\",\r\n align: \"right\",\r\n formatter: true,\r\n },\r\n ],\r\n columns2: [\r\n {\r\n label: \"房间费\",\r\n value: \"TableAmount\",\r\n align: \"right\",\r\n formatter: true,\r\n },\r\n {\r\n label: \"服务费\",\r\n value: \"ServiceAmount\",\r\n align: \"right\",\r\n formatter: true,\r\n },\r\n {\r\n label: \"茶位费\",\r\n value: \"TeaAmount\",\r\n align: \"right\",\r\n formatter: true,\r\n },\r\n {\r\n label: \"商品销售\",\r\n value: \"GoodsAmount\",\r\n align: \"right\",\r\n formatter: true,\r\n },\r\n {\r\n label: \"低消补差\",\r\n value: \"LowAmountDiff\",\r\n align: \"right\",\r\n formatter: true,\r\n },\r\n ],\r\n createuserformat: {},\r\n width: 1920,\r\n servicetime: 0,\r\n servicetimeb: 0,\r\n listQuery: {\r\n pageIndex: 1,\r\n pageSize: 15,\r\n orderColumn: \"\",\r\n orderbyasc: false,\r\n querymodel: {\r\n keyword: \"\",\r\n TableIds: [],\r\n TableTypeIds: [],\r\n PayState: 1,\r\n begintime: \"\",\r\n endtime: \"\",\r\n DateType: 2,\r\n SaleType: 1,\r\n SaleUserIds: [],\r\n FreeType: \"\",\r\n },\r\n },\r\n };\r\n },\r\n created() {\r\n try {\r\n let userinfo = JSON.parse(window.localStorage.getItem(\"user\"));\r\n let stime = userinfo.syspara.filter((it) => it.ParaKey === \"ht17\")[0]\r\n .ParaValue;\r\n let ssstime = new Date(stime);\r\n let sstime = new Date();\r\n sstime.setSeconds(0);\r\n sstime.setHours(ssstime.getHours());\r\n sstime.setMinutes(ssstime.getMinutes());\r\n if (sstime.getTime() < new Date().getTime()) {\r\n this.servicetime =\r\n sstime.getHours() * 3600 * 1000 + sstime.getMinutes() * 60 * 1000;\r\n this.servicetimeb = this.servicetime;\r\n } else {\r\n this.servicetime = -(\r\n 3600 * 1000 * 24 -\r\n (sstime.getHours() * 3600 * 1000 + sstime.getMinutes() * 60 * 1000)\r\n );\r\n this.servicetimeb = sstime.getHours() * 3600 * 1000 + sstime.getMinutes() * 60 * 1000;\r\n }\r\n } catch {\r\n this.servicetime = 0;\r\n }\r\n this.width = document.documentElement.clientWidth;\r\n const end = new Date();\r\n end.setHours(23);\r\n end.setMinutes(59);\r\n end.setSeconds(59);\r\n const start = new Date();\r\n start.setHours(0);\r\n start.setMinutes(0);\r\n start.setSeconds(0);\r\n start.setTime(start.getTime() + this.servicetime);\r\n end.setTime(end.getTime() + this.servicetime);\r\n this.querydate = [start, end];\r\n this.listQuery.querymodel.begintime = start;\r\n this.listQuery.querymodel.endtime = end;\r\n queryemp({\r\n pageIndex: 1,\r\n pageSize: 10000,\r\n orderColumn: \"\",\r\n orderbyasc: false,\r\n querymodel: {\r\n EnableMark: -1,\r\n ShopMark: -1,\r\n keyword: \"\",\r\n AdminMark: true,\r\n },\r\n }).then((res) => {\r\n this.emplist = res.data;\r\n this.emplist.forEach((item) => {\r\n this.createuserformat[item.Id] = item.EmpName;\r\n });\r\n });\r\n querytabletype({\r\n pageSize: 10000,\r\n }).then((res) => {\r\n this.tabletypelist = res.data;\r\n });\r\n querytable({\r\n pageSize: 10000,\r\n orderColumn: \"\",\r\n querymodel: { keyword: \"\" },\r\n }).then((res) => {\r\n this.tablelist = res.data;\r\n });\r\n this.getList();\r\n },\r\n updated() {\r\n this.$nextTick(() => {\r\n this.$refs[\"orderrecordtable\"].doLayout();\r\n });\r\n },\r\n methods: {\r\n tableformatter(row, column, cellValue) {\r\n switch (column.property) {\r\n case \"ShouldAmount\":\r\n case \"OrderDiscount\":\r\n case \"MemberDiscount\":\r\n case \"ActualAmount\":\r\n case \"TableAmount\":\r\n case \"ServiceAmount\":\r\n case \"GoodsAmount\":\r\n case \"LowAmountDiff\":\r\n case \"TeaAmount\":\r\n case \"CouponPayAmount\":\r\n return Number(cellValue).toFixed(2);\r\n case \"CreateUserId\":\r\n return this.createuserformat[cellValue];\r\n }\r\n },\r\n getSummaries(param) {\r\n const { columns } = param;\r\n const sums = [];\r\n columns.forEach((column, index) => {\r\n if (index === 1) {\r\n sums[index] = \"总计:\";\r\n return;\r\n }\r\n if (this.orderrecordmain[column.property] != undefined) {\r\n sums[index] = Number(this.orderrecordmain[column.property]).toFixed(\r\n 2\r\n );\r\n }\r\n });\r\n return sums;\r\n },\r\n datechange(item) {\r\n if (item.length === 3 && item[2] == 1) {\r\n this.querydate = [item[0], item[1]];\r\n this.querydate[0].setTime(\r\n this.querydate[0].getTime() + this.servicetime\r\n );\r\n this.querydate[1].setTime(\r\n this.querydate[1].getTime() + this.servicetime\r\n );\r\n }\r\n if (item.length === 3 && item[2] == 2) {\r\n this.querydate = [item[0], item[1]];\r\n this.querydate[0].setTime(\r\n this.querydate[0].getTime() + this.servicetimeb\r\n );\r\n this.querydate[1].setTime(\r\n this.querydate[1].getTime() + this.servicetimeb\r\n );\r\n }\r\n this.listQuery.querymodel.begintime = this.querydate[0];\r\n this.listQuery.querymodel.endtime = this.querydate[1];\r\n this.getList();\r\n },\r\n callFunction(item) {\r\n this[item.BtnCode].apply(this, item);\r\n },\r\n savecomplete() {\r\n this.dialogshow = false;\r\n this.getList();\r\n },\r\n cancelcomplete() {\r\n this.dialogshow = false;\r\n },\r\n detailview(row) {\r\n var createuserlist = this.emplist.filter((p) => p.Id == row.CreateUserId);\r\n if (createuserlist.length > 0) {\r\n this.CreateUserName = createuserlist[0].EmpName;\r\n }\r\n this.dialogshow = true;\r\n this.detailviewId = row.Id;\r\n },\r\n getList(item) {\r\n if (item != null && item != undefined) {\r\n this.listQuery.pageIndex = item.page;\r\n this.listQuery.pageSize = item.limit;\r\n } else {\r\n this.listQuery.pageIndex = 1;\r\n }\r\n getorderrecord(this.listQuery).then((res) => {\r\n this.orderrecordmain = res.maindata;\r\n this.list = res.data;\r\n this.total = res.dataCount;\r\n });\r\n },\r\n m_export() {\r\n this.downloadLoading = true;\r\n import(\"@/vendor/Export2Excel\").then((excel) => {\r\n const tHeader = [];\r\n tHeader.push(\"\");\r\n const filterVal = [];\r\n let exportcolumns = JSON.parse(JSON.stringify(this.columns));\r\n exportcolumns.unshift({ label: \"序号\", value: \"index\", width: 55 });\r\n exportcolumns.forEach((item) => {\r\n if (item.label !== \"序号\") {\r\n tHeader.push(item.label);\r\n }\r\n filterVal.push(item.value);\r\n });\r\n this.columns2.forEach((item) => {\r\n tHeader.push(item.label);\r\n filterVal.push(item.value);\r\n });\r\n const multiHeader = [[]];\r\n for (var i = 0; i < exportcolumns.length + this.columns2.length; i++) {\r\n multiHeader[0][i] = \"\";\r\n }\r\n multiHeader[0][0] = \"序号\";\r\n multiHeader[0][1] = \"实收统计\";\r\n multiHeader[0][exportcolumns.length] = \"消费统计\";\r\n multiHeader[0][exportcolumns.length + this.columns2.length - 1] = \"\";\r\n const merges = [\"A1:A2\", \"B1:Q1\", \"R1:V1\"];\r\n const exportquery = JSON.parse(JSON.stringify(this.listQuery));\r\n let index = 1;\r\n exportquery.pageIndex = 1;\r\n exportquery.pageSize = 1000000;\r\n getorderrecord(exportquery).then((res) => {\r\n const orderrecordmain = res.maindata;\r\n orderrecordmain.SaleDate = \"总计:\";\r\n res.data.push(orderrecordmain);\r\n const data = res.data.map((v) =>\r\n filterVal.map((j) => {\r\n if (j === \"index\") {\r\n return index++;\r\n } else if (j == \"CreateUserId\") {\r\n return this.createuserformat[v[j]];\r\n } else {\r\n return v[j];\r\n }\r\n })\r\n );\r\n excel.export_json_to_excel({\r\n multiHeader,\r\n header: tHeader,\r\n merges,\r\n data,\r\n filename: \"销售订单\",\r\n });\r\n this.downloadLoading = false;\r\n });\r\n });\r\n },\r\n },\r\n mounted() {\r\n let routers = window.localStorage.router\r\n ? JSON.parse(window.localStorage.router)\r\n : [];\r\n this.buttonList = getButtonList(this.$route.path, routers);\r\n this.buttonList.forEach((item) => {\r\n if (item.BtnCode === \"unsettle\") {\r\n this.authunsettle = true;\r\n }\r\n });\r\n },\r\n};\r\n</script>\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!./order.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!./order.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./order.vue?vue&type=template&id=0216d4c2&scoped=true&\"\nimport script from \"./order.vue?vue&type=script&lang=js&\"\nexport * from \"./order.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 \"0216d4c2\",\n null\n \n)\n\nexport default component.exports","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 }","<template>\r\n <div class=\"filter-item\">\r\n <!-- 这里触发点击事件 -->\r\n <el-button \r\n v-for=\"item in buttonList\"\r\n v-bind:key=\"item.id\"\r\n v-if=\"item.BtnArea === 0\"\r\n :type=\"item.Css\"\r\n :icon=\"item.iconcss\"\r\n @click=\"callFunc(item)\"\r\n >{{ item.BtnName }}</el-button>\r\n </div>\r\n</template>\r\n<style lang=\"css\">\r\n@import \"../style/content.css\";\r\n</style>\r\n<script>\r\nexport default {\r\n name: \"Toolbar\",\r\n data() {\r\n return {\r\n };\r\n },\r\n props: [\"buttonList\"], //接受父组件传值\r\n methods: {\r\n callFunc(item) {\r\n this.$emit(\"callFunction\", item); //将值传给父组件\r\n },\r\n },\r\n};\r\n</script>","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","import service from '../utils/request'\r\n// 查询列表\r\nexport const query = params => {return service.post(`/api/base_table/query`, params)};\r\n// 创建\r\nexport const create = params => {return service.post(`/api/base_table/create`, params)};\r\n// 修改\r\nexport const edit = params => {return service.put(`/api/base_table/edit`, params)};\r\n// 删除\r\nexport const deleted = params => {return service.delete(`/api/base_table/delete`, {params})};\r\n// 获取收银桌台列表\r\nexport const queryordertable = params => {return service.get(`/api/base_table/queryordertable`, {params: params})};\r\n// 修改状态\r\nexport const changestate = params => {return service.put(`/api/base_table/changestate`, params)};\r\n// 获取可合并桌台列表\r\nexport const getmergetablelist = params => {return service.get(`/api/base_table/getmergetablelist`, {params: params})};\r\n//电源绑定\r\nexport const powerbind = params => {return service.get(`/api/base_table/powerbind`, {params: params})};\r\n//电源开关\r\nexport const powercmd = params => {return service.get(`/api/base_table/powercmd`, {params: params})};\r\n// 获取桌台码\r\nexport const gettablecode = params => {return service.get(`/api/base_table/gettablecode`, {params})};\r\n// 获取维护记录\r\nexport const getmaintainrecordbyid = params => {return service.get(`/api/base_table/getmaintainrecordbyid`, {params})};\r\n// 桌台预定\r\nexport const tablereserve = params => {return service.post(`/api/base_table/tablereserve`, params)};\r\n// 桌台预定记录\r\nexport const gettablereservequery = params => {return service.post(`/api/base_table/gettablereservequery`, params)};\r\n// 桌台维护记录\r\nexport const gettablemaintainquery = params => {return service.post(`/api/base_table/gettablemaintainquery`, params)};\r\n// 桌台预定修改\r\nexport const tablereserveedit = params => {return service.put(`/api/base_table/tablereserveedit`, params)};\r\n// 删除预定\r\nexport const tablereservedelete = params => {return service.delete(`/api/base_table/tablereservedelete`, {params})};\r\n// 批量设置\r\nexport const bulkset = params => { return service.post(`/api/base_table/bulkset`, params) };\r\n// 桌台预定拒绝\r\nexport const tablereserverefuse = params => {return service.get(`/api/base_table/tablereserverefuse`, {params: params})};\r\n// 查询电控设备列表\r\nexport const getdevlist = params => {return service.post(`/api/base_table/getdevlist`, params)};","/* 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":""}