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 rivejä
5.8 KiB

  1. webpackJsonp([63],{"0xDb":function(e,t,a){"use strict";function n(e,t){if(0===arguments.length)return null;var a=t||"{y}-{m}-{d} {h}:{i}:{s}",n=void 0;"object"===(void 0===e?"undefined":i()(e))?n=e:(10===(""+e).length&&(e=1e3*parseInt(e)),n=new Date(e));var r={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(e,t){var a=r[t];return"a"===t?["一","二","三","四","五","六","日"][a-1]:(e.length>0&&a<10&&(a="0"+a),a||0)})}t.a=n;var r=a("pFYg"),i=a.n(r)},CBSM:function(e,t,a){"use strict";function n(e){return a.i(u.a)({url:"/unionService/orderStatistics/shopOrderSummary",method:"get",params:e})}function r(e){return a.i(u.a)({url:"/unionService/orderStatistics/shopOrderDetails",method:"get",params:e})}function i(e){return a.i(u.a)({url:"/service-trade/tradeStatistics/payChannelSummary",method:"get",params:e})}function s(e){return a.i(u.a)({url:"/unionService/tradeStatistics/daily",method:"get",params:e})}function o(e){return a.i(u.a)({url:"/service-trade/tradeStatistics/payChannelProportion",method:"get",params:e})}function l(e){return a.i(u.a)({url:"/unionService/tradeStatistics/payTypeTradeSummary",method:"get",params:e})}t.d=n,t.e=r,t.a=i,t.f=s,t.c=o,t.b=l;var u=a("Vo7i")},"DCt+":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.listQuery}},[a("el-form-item",[a("el-date-picker",{attrs:{type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"timestamp","picker-options":e.dateOption,clearable:!1},model:{value:e.cdate,callback:function(t){e.cdate=t},expression:"cdate"}})],1),e._v(" "),this.shopIds.length>1||"admin"==this.$store.getters.usertype?a("el-form-item",{attrs:{label:"",prop:""}},[a("el-select",{attrs:{placeholder:"门店"},model:{value:e.listQuery.shopId,callback:function(t){e.$set(e.listQuery,"shopId",t)},expression:"listQuery.shopId"}},e._l(e.shopList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.fetchData}},[e._v("查询")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"success"},on:{click:e.handleDownload}},[e._v("导出")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:e.listLoading,expression:"listLoading",modifiers:{body:!0}}],attrs:{data:e.list,"element-loading-text":"拼命加载中",border:"",fit:""}},[a("el-table-column",{attrs:{align:"center",label:"支付方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.payTypeName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"消费金额",prop:"payAmount"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"消费笔数",prop:"payCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"占比",align:"center",prop:"proportion"}}),e._v(" "),a("el-table-column",{attrs:{label:"退款笔数",align:"center",prop:"refundCount"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"实收金额",prop:"amount"}})],1)],1)},r=[],i={render:n,staticRenderFns:r};t.a=i},g45I:function(e,t,a){"use strict";function n(e){return a.i(u.a)({url:"/service-org/shop/list",method:"get",params:e})}function r(e){return a.i(u.a)({url:"/unionService/shop/shop",method:"post",data:e})}function i(e){return a.i(u.a)({url:"/service-org/shop/detail?shopId="+e,method:"get"})}function s(e){return a.i(u.a)({url:"/unionService/shop/shop",method:"put",data:e})}function o(e){return a.i(u.a)({url:"/unionService/device/store",method:"put",data:e})}function l(e){return a.i(u.a)({url:"/service-org/shop/delete?shopId="+e,method:"DELETE"})}t.a=n,t.f=r,t.b=i,t.c=s,t.d=o,t.e=l;var u=a("Vo7i")},qUsi:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("r+7C"),r=a("DCt+"),i=a("VU/8"),s=i(n.a,r.a,null,null,null);t.default=s.exports},"r+7C":function(e,t,a){"use strict";var n=a("CBSM"),r=a("0xDb"),i=a("g45I");t.a={data:function(){return{shopIds:this.$store.getters.shopIds,shopList:[],list:null,listLoading:!1,listQuery:{shopId:"",startTime:"",endTime:""},cdate:[],dateOption:{disabledDate:function(e){return e.getTime()>Date.now()||e.getTime()<Date.now()-15552e6}}}},filters:{toNumber:function(e){return Number(e)}},created:function(){var e=this;console.log(this.shopIds.length),1==this.shopIds.length?(this.listQuery.shopId=this.shopIds[0],this.fetchData()):(a.i(i.a)().then(function(t){e.shopList=t.result.rows}),this.listLoading=!1)},methods:{fetchData:function(){var e=this;if(0==this.cdate.length&&(this.cdate=[Date.parse(new Date)-5184e5,Date.parse(new Date)]),this.listQuery.startTime=a.i(r.a)(this.cdate[0],"{y}-{m}-{d}"),this.listQuery.endTime=a.i(r.a)(this.cdate[1],"{y}-{m}-{d}"),!this.listQuery.shopId)return void this.$message({type:"error",message:"请选择门店!"});a.i(n.c)(this.listQuery).then(function(t){e.list=t.result.payChannels,e.listLoading=!1})},handleDownload:function(){var e=this;a.e(90).then(a.bind(null,"zWO4")).then(function(t){0==e.cdate.length&&(e.cdate=[Date.parse(new Date)-5184e5,Date.parse(new Date)]),e.listQuery.startTime=a.i(r.a)(e.cdate[0],"{y}-{m}-{d}"),e.listQuery.endTime=a.i(r.a)(e.cdate[1],"{y}-{m}-{d}");var i=["支付方式","消费金额","消费笔数","占比","退款笔数","实收金额"],s=["payTypeName","payAmount","payCount","proportion","refundCount","amount"];a.i(n.c)(e.listQuery).then(function(a){var n=a.result.payChannels,r=e.formatJson(s,n);t.export_json_to_excel(i,r,"交易占比统计")})})},formatJson:function(e,t){return t.map(function(t){return e.map(function(e){return t[e]})})}}}}});
  2. //# sourceMappingURL=63.aa38413151dd2ca9b1db.js.map