(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5335cd6c"],{"0b65":function(t,e,r){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,r=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,r))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},"1056f":function(t,e,r){"use strict";r("83dc")},2136:function(t,e,r){"use strict";r.r(e);var n=r("2e83"),o=r("73f5"),i=r("2f62");function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var m="suspendedStart",p="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function _(){}var O={};f(O,u,(function(){return this}));var j=Object.getPrototypeOf,x=j&&j(j(S([])));x&&x!==r&&n.call(x,u)&&(O=x);var k=_.prototype=b.prototype=Object.create(O);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==a(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=m;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function V(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(V,this),this.reset(!0)}function S(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:S(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:S(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function v(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var b={name:"bill",components:{commissionDetails:m},data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},total:0,loading:!1,tab:"day",staff:[],columns:[{title:"ID",key:"id",width:60},{title:"标题",key:"title",minWidth:80},{title:"日期",key:"add_time",minWidth:80},{title:"收入金额",slot:"income_num",minWidth:80},{title:"支出金额",slot:"exp_num",minWidth:80},{title:"门店应入账金额",slot:"entry_num",minWidth:80},{title:"操作",slot:"action",fixed:"right",minWidth:120,align:"center"}],orderList:[{id:"1",order_id:"200",pay_price:"200",status:1,phone:"13000000000",address:"100"}],formValidate:{store_id:"",data:"",page:1,limit:15},timeVal:[],options:p.a}},computed:{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}},mounted:function(){this.onClickTab(this.tab),this.staffApi()},methods:{staffApi:function(){var t=this;Object(o.D)().then((function(e){t.staff=e.data}))},onClickTab:function(t){this.tab=t,this.getList()},search:function(){this.formValidate.page=1,this.getList()},getList:function(){var t=this;this.loading=!0;var e={timeType:this.tab,data:this.formValidate.data,page:this.formValidate.page,limit:this.formValidate.limit,store_id:this.formValidate.store_id};Object(o.J)(e).then((function(e){t.orderList=e.data.list,t.loading=!1,t.total=e.data.count}))},selectChange:function(t){this.formValidate.page=1,this.formValidate.data=t,this.timeVal=[],this.getList()},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.formValidate.page=1,this.getList()},pageChange:function(t){this.formValidate.page=t,this.getList()},Info:function(t){this.$refs.commission.modals=!0,this.$refs.commission.getList(t.ids)},download:function(){var t,e=(t=y().mark((function t(e){var r,o,i,a,c,u;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],o=[],i=[],a="",c={ids:e.ids,page:1,store_id:this.formValidate.store_id},t.next=4,this.getExcelData(c);case 4:return u=t.sent,a||(a=u.filename),o.length||(o=u.filekey),r.length||(r=u.header),i=i.concat(u.export),Object(n.a)(r,o,a,i),t.abrupt("return");case 11:case"end":return t.stop()}}),t,this)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){v(i,n,o,a,c,"next",t)}function c(t){v(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),getExcelData:function(t){return new Promise((function(e,r){Object(o.g)(t).then((function(t){return e(t.data)}))}))}}},w=(r("9144"),Object(h.a)(b,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"formValidate",attrs:{inline:"",model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"选择门店:","label-for":"status1"}},[e("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:"",filterable:"","element-id":"status1"},on:{"on-change":t.search},model:{value:t.formValidate.store_id,callback:function(e){t.$set(t.formValidate,"store_id",e)},expression:"formValidate.store_id"}},t._l(t.staff,(function(r,n){return e("Option",{key:n,attrs:{value:r.id}},[t._v(t._s(r.name))])})),1)],1),e("FormItem",{attrs:{label:"创建时间:"}},[e("DatePicker",{staticClass:"input-add mr14",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}}),e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1)],1)]),e("Card",{staticClass:"ive-mt tablebox",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"new_tab"},[e("Tabs",{on:{"on-click":t.onClickTab}},[e("TabPane",{attrs:{label:"日账单",name:"day"}}),e("TabPane",{attrs:{label:"周账单",name:"week"}}),e("TabPane",{attrs:{label:"月账单",name:"month"}})],1)],1),e("div",{staticClass:"table"},[e("Table",{ref:"table",attrs:{columns:t.columns,data:t.orderList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"income_num",fn:function(r){var n=r.row;return r.index,[e("span",{staticStyle:{color:"#f5222d"}},[t._v("¥"+t._s(n.income_num))])]}},{key:"exp_num",fn:function(r){var n=r.row;return r.index,[e("span",{staticStyle:{color:"#00c050"}},[t._v("¥"+t._s(n.exp_num))])]}},{key:"entry_num",fn:function(r){var n=r.row;return r.index,[e("span",[t._v("¥"+t._s(n.entry_num))])]}},{key:"action",fn:function(r){var n=r.row;return r.index,[e("a",{on:{click:function(e){return t.Info(n)}}},[t._v("账单详情")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.download(n)}}},[t._v("下载")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)]),e("commission-details",{ref:"commission"})],1)}),[],!1,null,"86eeb52a",null));e.default=w.exports},"73f5":function(t,e,r){"use strict";r.d(e,"D",(function(){return o})),r.d(e,"u",(function(){return i})),r.d(e,"q",(function(){return a})),r.d(e,"t",(function(){return c})),r.d(e,"v",(function(){return u})),r.d(e,"x",(function(){return s})),r.d(e,"j",(function(){return l})),r.d(e,"i",(function(){return f})),r.d(e,"U",(function(){return d})),r.d(e,"h",(function(){return h})),r.d(e,"z",(function(){return m})),r.d(e,"y",(function(){return p})),r.d(e,"A",(function(){return g})),r.d(e,"w",(function(){return y})),r.d(e,"m",(function(){return v})),r.d(e,"B",(function(){return b})),r.d(e,"s",(function(){return w})),r.d(e,"L",(function(){return _})),r.d(e,"M",(function(){return O})),r.d(e,"J",(function(){return j})),r.d(e,"K",(function(){return x})),r.d(e,"g",(function(){return k})),r.d(e,"G",(function(){return L})),r.d(e,"H",(function(){return D})),r.d(e,"I",(function(){return E})),r.d(e,"T",(function(){return T})),r.d(e,"O",(function(){return V})),r.d(e,"N",(function(){return P})),r.d(e,"e",(function(){return C})),r.d(e,"S",(function(){return S})),r.d(e,"o",(function(){return F})),r.d(e,"P",(function(){return M})),r.d(e,"Q",(function(){return W})),r.d(e,"R",(function(){return N})),r.d(e,"n",(function(){return G})),r.d(e,"r",(function(){return I})),r.d(e,"E",(function(){return Y})),r.d(e,"p",(function(){return A})),r.d(e,"C",(function(){return $})),r.d(e,"f",(function(){return J})),r.d(e,"F",(function(){return z})),r.d(e,"b",(function(){return R})),r.d(e,"d",(function(){return B})),r.d(e,"c",(function(){return K})),r.d(e,"a",(function(){return U})),r.d(e,"k",(function(){return q})),r.d(e,"l",(function(){return H}));var n=r("b6bd");function o(t){return Object(n.a)({url:"merchant/store_list",method:"get",params:t})}function i(t){return Object(n.a)({url:"store/order/list",method:"get",params:t})}function a(t){return Object(n.a)({url:"store/order/chart",method:"get",params:t})}function c(t){return Object(n.a)({url:"store/order/header",method:"get"})}function u(t){return Object(n.a)({url:"store/recharge",method:"get",params:t})}function s(t){return Object(n.a)({url:"store/vip_order",method:"get",params:t})}function l(t){return Object(n.a)({url:"store/order/edit/".concat(t),method:"get"})}function f(t){return Object(n.a)({url:"store/order/distribution/".concat(t),method:"get"})}function d(t){return Object(n.a)({url:"store/order/write_update/".concat(t),method:"put"})}function h(t){return Object(n.a)({url:"store/order/info/".concat(t),method:"get"})}function m(t){return Object(n.a)({url:"order/remark/".concat(t.id),method:"put",data:t.remark})}function p(t){return Object(n.a)({url:"store/recharge/remark/".concat(t.id),method:"put",data:t.remark})}function g(t){return Object(n.a)({url:"store/vip/remark/".concat(t.id),method:"put",data:t.remark})}function y(t){return Object(n.a)({url:"store/refund/list",method:"get",params:t})}function v(t){return Object(n.a)({url:"/order/no_refund/".concat(t),method:"get"})}function b(t){return Object(n.a)({url:"/order/refund_integral/".concat(t),method:"get"})}function w(t,e){return Object(n.a)({url:"store/order/export/".concat(e),method:"post",data:t})}function _(t){return Object(n.a)({url:"store/finance_flow/list",method:"get",params:t})}function O(t,e){return Object(n.a)({url:"store/finance_flow/mark/".concat(t),method:"put",params:e})}function j(t){return Object(n.a)({url:"store/finance_flow/fund_record",method:"get",params:t})}function x(t){return Object(n.a)({url:"store/finance_flow/fund_record_info",method:"get",params:t})}function k(t){return Object(n.a)({url:"/export/storeFinanceRecord",method:"get",params:t})}function L(t){return Object(n.a)({url:"/store/extract/list",method:"get",params:t})}function D(t,e){return Object(n.a)({url:"store/extract/mark/".concat(t),method:"post",data:e})}function E(t,e){return Object(n.a)({url:"store/extract/verify/".concat(t),method:"post",data:e})}function T(t){return Object(n.a)({url:"store/extract/transfer/".concat(t),method:"get"})}function V(t){return Object(n.a)({url:"store/store",method:"get",params:t})}function P(t){return Object(n.a)({url:"store/store/get_info/".concat(t),method:"get"})}function C(t){return Object(n.a)({url:"city",method:"get",params:t})}function S(t,e){return Object(n.a)({url:"store/store/".concat(t),method:"post",data:e})}function F(){return Object(n.a)({url:"store/store/address",method:"get"})}function M(t){return Object(n.a)({url:"store/store/login/".concat(t),method:"get"})}function W(t,e){return Object(n.a)({url:"store/store/set_show/".concat(t,"/").concat(e),method:"put"})}function N(t){return Object(n.a)({url:"store/share/order",method:"post",params:t})}function G(t){return Object(n.a)({url:"store/home/header",method:"get",params:t})}function I(t){return Object(n.a)({url:"store/home/orderChart",method:"get",params:t})}function Y(t){return Object(n.a)({url:"store/home/store",method:"get",params:t})}function A(t){return Object(n.a)({url:"store/home/operate",method:"get",params:t})}function $(t){return Object(n.a)({url:"store/store/reset_admin/".concat(t),method:"get"})}function J(t,e,r){return Object(n.a)({url:"export/storeFlowExport?store_id=".concat(t,"&keyword=").concat(e,"&data=").concat(r),method:"get"})}function z(t){return Object(n.a)({url:"/store/category",params:t,method:"get"})}function R(t){return Object(n.a)({url:"/store/category/create/".concat(t),method:"get"})}function B(t){return Object(n.a)({url:"/store/category/tree/".concat(t),method:"get"})}function K(t){return Object(n.a)({url:"/store/category/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function U(t){return Object(n.a)({url:"store/category/cascader_list/".concat(t),method:"get"})}function q(t){return Object(n.a)({url:"/store/refund/detail/".concat(t),method:"get"})}function H(t){return Object(n.a)({url:"/store/refund/refund/".concat(t),method:"get"})}},"83dc":function(t,e,r){},9144:function(t,e,r){"use strict";r("c8d1")},c8d1:function(t,e,r){}}]);