Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

2 rindas
7.0 KiB

  1. webpackJsonp([43],{"0a3N":function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"loading",rawName:"v-loading.body",value:t.listLoading,expression:"listLoading",modifiers:{body:!0}}],staticClass:"app-container",attrs:{"element-loading-text":"拼命加载中"}},[r("el-form",{ref:"listQuery",staticClass:"demo-form-inline",attrs:{inline:!0,model:t.listQuery}},[r("el-form-item",{attrs:{label:"门店",prop:"shopIdsArr"}},[r("el-select",{attrs:{multiple:"",filterable:"",clearable:"",placeholder:"请选择"},model:{value:t.listQuery.shopIdsArr,callback:function(e){t.$set(t.listQuery,"shopIdsArr",e)},expression:"listQuery.shopIdsArr"}},t._l(t.shopList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),r("el-form-item",{attrs:{label:"时间",prop:"schedule"}},[r("el-date-picker",{attrs:{type:"datetimerange","range-separator":"-","unlink-panels":"","time-arrow-control":"",clearable:!1,"picker-options":t.dateOption,"value-format":"yyyy-MM-dd HH",format:"yyyy-MM-dd HH:mm:ss","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.listQuery.searchTime,callback:function(e){t.$set(t.listQuery,"searchTime",e)},expression:"listQuery.searchTime"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:t.searchData}},[t._v("查询")]),t._v(" "),r("el-button",{on:{click:t.exportExcel}},[t._v("导出")])],1)],1),t._v(" "),r("el-card",{staticClass:"box-card"},[r("span",[t._v("实收总金额:"),r("b",{staticStyle:{color:"red"}},[t._v(t._s(t.totalAmount))]),t._v("元")])]),t._v(" "),r("el-table",{attrs:{data:t.statisticsData,border:"",fit:"",size:"mini","highlight-current-row":"","tooltip-effect":"light",stripe:"","summary-method":t.getSummaries,"header-row-class-name":"headerClz","show-summary":""}},t._l(t.cols,function(t){return r("el-table-column",{key:t.prop,attrs:{"show-overflow-tooltip":"",prop:t.prop,label:t.label,fixed:t.fixed}})}))],1)},i=[],s={render:a,staticRenderFns:i};e.a=s},"0xDb":function(t,e,r){"use strict";function a(t,e){if(0===arguments.length)return null;var r=e||"{y}-{m}-{d} {h}:{i}:{s}",a=void 0;"object"===(void 0===t?"undefined":s()(t))?a=t:(10===(""+t).length&&(t=1e3*parseInt(t)),a=new Date(t));var i={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()};return r.replace(/{(y|m|d|h|i|s|a)+}/g,function(t,e){var r=i[e];return"a"===e?["一","二","三","四","五","六","日"][r-1]:(t.length>0&&r<10&&(r="0"+r),r||0)})}e.a=a;var i=r("pFYg"),s=r.n(i)},"5eF5":function(t,e,r){e=t.exports=r("FZ+f")(!0),e.push([t.i,"","",{version:3,sources:[],names:[],mappings:"",file:"shopPaymentTypeStatistics.vue",sourceRoot:""}])},CBSM:function(t,e,r){"use strict";function a(t){return r.i(u.a)({url:"/unionService/orderStatistics/shopOrderSummary",method:"get",params:t})}function i(t){return r.i(u.a)({url:"/unionService/orderStatistics/shopOrderDetails",method:"get",params:t})}function s(t){return r.i(u.a)({url:"/service-trade/tradeStatistics/payChannelSummary",method:"get",params:t})}function o(t){return r.i(u.a)({url:"/unionService/tradeStatistics/daily",method:"get",params:t})}function n(t){return r.i(u.a)({url:"/service-trade/tradeStatistics/payChannelProportion",method:"get",params:t})}function l(t){return r.i(u.a)({url:"/unionService/tradeStatistics/payTypeTradeSummary",method:"get",params:t})}e.d=a,e.e=i,e.a=s,e.f=o,e.c=n,e.b=l;var u=r("Vo7i")},Nyvx:function(t,e,r){var a=r("5eF5");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);r("rjj0")("c1b6aa28",a,!0)},UyDp:function(t,e,r){"use strict";var a=r("g45I"),i=r("CBSM"),s=r("0xDb");e.a={name:"shopPaymentTypeStatistics",data:function(){return{listQuery:{searchTime:[r.i(s.a)((new Date).getTime(),"{y}-{m}-{d}")+" 00:00:00",r.i(s.a)((new Date).getTime()+864e5,"{y}-{m}-{d}")+" 00:00:00"],orgId:this.$store.getters.orgId,shopIds:null,shopIdsArr:[],startTime:"",endTime:"",isPage:!1,limit:10,offset:0},cols:[],listLoading:!0,shopList:[],statisticsData:[],summaryRow:{},totalAmount:0,dateOption:{disabledDate:function(t){return t.getTime()>Date.now()+864e5||t.getTime()<Date.now()-15552e6}}}},created:function(){this.fetchData()},watch:{},methods:{fetchData:function(){var t=this;this.listLoading=!0,r.i(a.a)().then(function(e){t.shopList=e.result.rows,t.listLoading=!1})},searchData:function(){var t=this;this.listLoading=!0,this.listQuery.searchTime.length>0&&(this.listQuery.startTime=this.listQuery.searchTime[0]+":00:00",this.listQuery.endTime=this.listQuery.searchTime[1]+":00:00"),this.listQuery.shopIdsArr.length>0?this.listQuery.shopIds=this.listQuery.shopIdsArr.join(","):this.listQuery.shopIds="",r.i(i.b)(this.listQuery).then(function(e){t.totalAmount=e.result.totalAmount,t.statisticsData=t.formatSettleData(e.result.shopSummaryList),t.addCols(e.result.shopSummaryList),t.listLoading=!1})},formatSettleData:function(t){return t.forEach(function(t){null!==t.payTypeList&&0!==t.payTypeList.length&&t.payTypeList.forEach(function(e){t["payTypeName"+e.payType]=e.payAmount,t["payCount"+e.payType]=e.payCount})}),t},exportExcel:function(){var t=this;r.e(89).then(r.bind(null,"zWO4")).then(function(e){var r=[],a=[];t.cols.forEach(function(t){r.push(t.label),a.push(t.prop)});var i=t.formatJson(a,t.statisticsData);e.export_json_to_excel(r,i,"门店支付方式汇总")})},formatJson:function(t,e){return e.map(function(e){return t.map(function(t){return e[t]})})},getSummaries:function(t){var e={},r=t.columns,a=t.data,i=[];return r.forEach(function(t,r){if(0===r)return e[t.property]="总价",void(i[r]="总价");var s=a.map(function(e){return Number(e[t.property])});s.every(function(t){return isNaN(t)})?i[r]="N/A":(i[r]=s.reduce(function(t,e){return t+e},0),i[r]+=r%2==0?" 笔":" 元"),e[t.property]=i[r]}),i},addCols:function(t){this.cols=[];var e=this;this.cols.push({prop:"shopName",label:"门店名称",fixed:!0}),this.cols.push({prop:"payAmount",label:"门店总金额",fixed:!0}),this.cols.push({prop:"payCount",label:"门店总笔数",fixed:!0}),t.length>0&&t[0].payTypeList.length>0&&t[0].payTypeList.forEach(function(t){e.cols.push({prop:"payTypeName"+t.payType,label:t.payTypeName+"金额",fixed:!1}),e.cols.push({prop:"payCount"+t.payType,label:t.payTypeName+"笔数",fixed:!1})})}}}},g45I:function(t,e,r){"use strict";function a(t){return r.i(u.a)({url:"/service-org/shop/list",method:"get",params:t})}function i(t){return r.i(u.a)({url:"/unionService/shop/shop",method:"post",data:t})}function s(t){return r.i(u.a)({url:"/service-org/shop/detail?shopId="+t,method:"get"})}function o(t){return r.i(u.a)({url:"/unionService/shop/shop",method:"put",data:t})}function n(t){return r.i(u.a)({url:"/unionService/device/store",method:"put",data:t})}function l(t){return r.i(u.a)({url:"/service-org/shop/delete?shopId="+t,method:"DELETE"})}e.a=a,e.f=i,e.b=s,e.c=o,e.d=n,e.e=l;var u=r("Vo7i")},g8CK:function(t,e,r){"use strict";function a(t){r("Nyvx")}Object.defineProperty(e,"__esModule",{value:!0});var i=r("UyDp"),s=r("0a3N"),o=r("VU/8"),n=a,l=o(i.a,s.a,n,"data-v-192627ee",null);e.default=l.exports}});
  2. //# sourceMappingURL=43.ee1c42ef11a739f12175.js.map