(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1f04d4de"],{"3bbe":function(t,e,r){var a=r("861d");t.exports=function(t){if(!a(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},6802:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"outmain ba_f"},[r("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:t.form,"label-width":"100px"}},[r("div",{staticClass:"flex ba_f"},[r("el-form-item",{staticClass:"mar_t20",attrs:{label:"查询日期:"}},[r("div",{staticClass:"flex-bet"},[r("div",[r("el-radio-group",{on:{change:t.selectType},model:{value:t.form.timeType,callback:function(e){t.$set(t.form,"timeType",e)},expression:"form.timeType"}},[r("el-radio-button",{attrs:{label:"1"}},[t._v("今天")]),r("el-radio-button",{attrs:{label:"2"}},[t._v("近七天")]),r("el-radio-button",{attrs:{label:"3"}},[t._v("近十五天")]),r("el-radio-button",{attrs:{label:"4"}},[t._v("自定义时间")])],1),"4"==t.form.timeType?r("span",{staticClass:"mar_l20"},[r("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日"},on:{change:t.selectType},model:{value:t.form.time,callback:function(e){t.$set(t.form,"time",e)},expression:"form.time"}})],1):t._e(),r("span",{staticClass:"mar_l20"},[r("a",{staticClass:"mar_l10",attrs:{href:t.handelExport3()}},[r("el-button",{attrs:{size:"medium",type:"primary"}},[t._v("导出财务订单")])],1)]),r("span",{staticClass:"mar_l20"},[r("a",{staticClass:"mar_l10",attrs:{href:t.handelExport4()}},[r("el-button",{attrs:{size:"medium",type:"primary"}},[t._v("导出财务其他订单")])],1)])],1)])])],1)])],1),r("div",{staticClass:"outmain ba_f mar_t20"},[t._m(0),r("el-table",{staticClass:"tablecenter",staticStyle:{width:"100%"},attrs:{data:t.tableData,stripe:""}},[r("el-table-column",{attrs:{prop:"day",label:"日期"}}),r("el-table-column",{attrs:{prop:"count",label:"有效订单数"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"wei"},[t._v(t._s(e.row.count))])]}}])}),r("el-table-column",{attrs:{prop:"money",label:"营业总额"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"color-green wei"},[t._v("+¥"+t._s(e.row.money))])]}}])}),r("el-table-column",{attrs:{prop:"serviceMoney",label:"平台服务费"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"color-red wei"},[t._v("-¥"+t._s(e.row.serviceMoney))])]}}])}),r("el-table-column",{attrs:{prop:"storeActualMoney",label:"预计收入"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"color-green wei"},[t._v("+¥"+t._s(e.row.storeActualMoney))])]}}])}),r("el-table-column",{attrs:{prop:"cc",label:"操作",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"flex-center"},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.handleDetail(e.row)}}},[t._v("详情")])],1)]}}])})],1),r("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.size,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}})],1)])},n=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[t._v("财务对账")])])])}],o=(r("96cf"),r("1da1")),s=r("5530"),i=r("2f62"),c=r("48fb"),l=r("ed08"),u=r("365c"),f={data:function(){return{formInline:{value1:"",value2:"",region:"",time:[],mouth:""},form:{shopValue:"",timeType:"1",time:[new Date,new Date],Mtime:""},options:[],activeName:"1",tableData:[],tableData2:[],page:{total:0,size:20,currentPage:1}}},created:function(){this.billList()},computed:Object(s["a"])({},Object(i["d"])(["storeId"])),methods:{handleClick:function(){},handleDetail:function(t){this.$router.push("/storefinancerecordDetail?time=".concat(t.day))},handelExport:function(t){var e=u["a"].backendPath;return e+"channel/store-bill/order-export?time="+t.day+"&storeId="+this.storeId},handelExport2:function(t){var e=u["a"].backendPath;return e+"channel/store-bill/other-order-export?time="+t.day+"&storeId="+this.storeId},handelExport3:function(){var t=this.form.timeType,e=this.form.time?Object(l["a"])(this.form.time[0]).substr(0,10):"",r=this.form.time?Object(l["a"])(this.form.time[1]).substr(0,10):"",a=u["a"].backendPath;return a+"channel/store-bill/order-export1?timeType="+t+"&storeId="+this.storeId+"&startTime="+e+"&endTime="+r},handelExport4:function(){var t=this.form.timeType,e=this.form.time?Object(l["a"])(this.form.time[0]).substr(0,10):"",r=this.form.time?Object(l["a"])(this.form.time[1]).substr(0,10):"",a=u["a"].backendPath;return a+"channel/store-bill/other-order-export1?timeType="+t+"&storeId="+this.storeId+"&startTime="+e+"&endTime="+r},handelPrinting:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(c["i"])({time:t.day,storeId:e.storeId});case 2:a=r.sent,n=a.msg,e.$baseMessage(n,"success");case 5:case"end":return r.stop()}}),r)})))()},billList:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var r,a,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r={page:t.page.currentPage,timeType:t.form.timeType,startTime:"4"==t.form.timeType&&t.form.time?Object(l["a"])(t.form.time[0]).substr(0,10):"",endTime:"4"==t.form.timeType&&t.form.time?Object(l["a"])(t.form.time[1]).substr(0,10):"",storeId:t.storeId},e.next=3,Object(c["f"])(r);case 3:a=e.sent,n=a.data,o=a.count,t.tableData=n,t.page.total=o;case 8:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page.currentPage=t,this.billList()},selectType:function(){this.billList()},changeStore:function(){this.billList()},onSubmit2:function(){this.billList()}}},d=f,p=r("2877"),m=Object(p["a"])(d,a,n,!1,null,null,null);e["default"]=m.exports},7156:function(t,e,r){var a=r("861d"),n=r("d2bb");t.exports=function(t,e,r){var o,s;return n&&"function"==typeof(o=e.constructor)&&o!==r&&a(s=o.prototype)&&s!==r.prototype&&n(t,s),t}},a9e3:function(t,e,r){"use strict";var a=r("83ab"),n=r("da84"),o=r("94ca"),s=r("6eeb"),i=r("5135"),c=r("c6b6"),l=r("7156"),u=r("c04e"),f=r("d039"),d=r("7c73"),p=r("241c").f,m=r("06cf").f,b=r("9bf2").f,h=r("58a8").trim,g="Number",v=n[g],_=v.prototype,y=c(d(_))==g,w=function(t){var e,r,a,n,o,s,i,c,l=u(t,!1);if("string"==typeof l&&l.length>2)if(l=h(l),e=l.charCodeAt(0),43===e||45===e){if(r=l.charCodeAt(2),88===r||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:a=2,n=49;break;case 79:case 111:a=8,n=55;break;default:return+l}for(o=l.slice(2),s=o.length,i=0;in)return NaN;return parseInt(o,a)}return+l};if(o(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var I,T=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof T&&(y?f((function(){_.valueOf.call(r)})):c(r)!=g)?l(new v(w(e)),r,T):w(e)},C=a?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;C.length>x;x++)i(v,I=C[x])&&!i(T,I)&&b(T,I,m(v,I));T.prototype=_,_.constructor=T,s(n,g,T)}},bf19:function(t,e,r){"use strict";var a=r("23e7");a({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,r){var a=r("825a"),n=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(o){}return function(r,o){return a(r),n(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},ed08:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o}));r("a9e3"),r("ac1f"),r("5319"),r("bf19");function a(t){var e=new Date(t).toJSON(),r=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return r}function n(t){var e=new Date(t),r=e.getFullYear(),a=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),s=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),i=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return r+"-"+a+"-"+n+" "+o+":"+s+":"+i}function o(t){var e=new Date(1e3*Number(t)),r=e.getFullYear()+"-",a=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",n=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",s=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",i=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),c=r+a+n+o+s+i;return c}}}]);