You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2 regels
4.5 KiB

  1. webpackJsonp([60],{"0xDb":function(t,e,a){"use strict";function n(t,e){if(0===arguments.length)return null;var a=e||"{y}-{m}-{d} {h}:{i}:{s}",n=void 0;"object"===(void 0===t?"undefined":r()(t))?n=t:(10===(""+t).length&&(t=1e3*parseInt(t)),n=new Date(t));var i={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()};return a.replace(/{(y|m|d|h|i|s|a)+}/g,function(t,e){var a=i[e];return"a"===e?["一","二","三","四","五","六","日"][a-1]:(t.length>0&&a<10&&(a="0"+a),a||0)})}e.a=n;var i=a("pFYg"),r=a.n(i)},CBSM:function(t,e,a){"use strict";function n(t){return a.i(o.a)({url:"/unionService/orderStatistics/shopOrderSummary",method:"get",params:t})}function i(t){return a.i(o.a)({url:"/unionService/orderStatistics/shopOrderDetails",method:"get",params:t})}function r(t){return a.i(o.a)({url:"/service-trade/tradeStatistics/payChannelSummary",method:"get",params:t})}function s(t){return a.i(o.a)({url:"/unionService/tradeStatistics/daily",method:"get",params:t})}function l(t){return a.i(o.a)({url:"/service-trade/tradeStatistics/payChannelProportion",method:"get",params:t})}e.c=n,e.d=i,e.a=r,e.e=s,e.b=l;var o=a("Vo7i")},IzWt:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("c9Ym"),i=a("g9W9"),r=a("VU/8"),s=r(n.a,i.a,null,null,null);e.default=s.exports},c9Ym:function(t,e,a){"use strict";var n=a("CBSM"),i=a("0xDb");e.a={data:function(){return{list:null,listLoading:!0,listQuery:{orgId:1,startTime:"",endTime:"",isPage:!0,limit:10,offset:0},currPage:1,total:null,cdate:[],dateOption:{disabledDate:function(t){return t.getTime()>Date.now()||t.getTime()<Date.now()-15552e6}},dateList:[]}},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;0==this.cdate.length&&(this.cdate=[Date.parse(new Date)-5184e5,Date.parse(new Date)]),this.listQuery.startTime=a.i(i.a)(this.cdate[0],"{y}-{m}-{d}"),this.listQuery.endTime=a.i(i.a)(this.cdate[1],"{y}-{m}-{d}"),this.listLoading=!0,a.i(n.e)(this.listQuery).then(function(e){t.dateList=e.result.headers,t.list=e.result.paginationExtendBean.rows,t.total=e.result.paginationExtendBean.total,t.listLoading=!1})},handleSizeChange:function(t){this.listQuery.limit=t,this.listQuery.offset=(this.currPage-1)*t,this.fetchData()},handleCurrentChange:function(t){this.currPage=t,this.listQuery.offset=this.listQuery.limit*(t-1),this.fetchData()},handleDownload:function(){var t=this;a.e(80).then(a.bind(null,"zWO4")).then(function(e){0==t.cdate.length&&(t.cdate=[Date.parse(new Date)-5184e5,Date.parse(new Date)]),t.listQuery.startTime=a.i(i.a)(t.cdate[0],"{y}-{m}-{d}"),t.listQuery.endTime=a.i(i.a)(t.cdate[1],"{y}-{m}-{d}"),t.listQuery.isPage=!1,a.i(n.e)(t.listQuery).then(function(a){var n=a.result.headers,i=a.result.headers,r=a.result.paginationExtendBean.rows,s=t.formatJson(i,r);e.export_json_to_excel(n,s,"交易日期统计"),t.listQuery.isPage=!0})})},formatJson:function(t,e){return e.map(function(e){return t.map(function(t){return"门店名称"==t?e.shopName:e[t]})})}}}},g9W9:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.listQuery}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"timestamp","picker-options":t.dateOption,clearable:!1},model:{value:t.cdate,callback:function(e){t.cdate=e},expression:"cdate"}}),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.fetchData}},[t._v("查询")])],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"success"},on:{click:t.handleDownload}},[t._v("导出")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:t.listLoading,expression:"listLoading",modifiers:{body:!0}}],attrs:{data:t.list,"element-loading-text":"拼命加载中",border:"",fit:""}},t._l(t.dateList,function(e){return a("el-table-column",{key:e,attrs:{label:e,align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v("\n "+t._s(a.row["门店名称"==e?"shopName":e])+"\n ")]}}])})})),t._v(" "),a("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.currPage,"page-sizes":[10,30,50,100],"page-size":t.listQuery.limit,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)},i=[],r={render:n,staticRenderFns:i};e.a=r}});
  2. //# sourceMappingURL=60.45221ea78955b73bcd37.js.map