mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-12 19:12:49 +00:00
1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3a8fc9d8"],{"033f":function(t,e,r){"use strict";var n=r("f925");r.n(n).a},"0c9f":function(t,e,r){"use strict";r.d(e,"j",(function(){return i})),r.d(e,"o",(function(){return o})),r.d(e,"m",(function(){return a})),r.d(e,"l",(function(){return c})),r.d(e,"p",(function(){return u})),r.d(e,"r",(function(){return s})),r.d(e,"s",(function(){return l})),r.d(e,"v",(function(){return f})),r.d(e,"t",(function(){return d})),r.d(e,"u",(function(){return h})),r.d(e,"q",(function(){return m})),r.d(e,"n",(function(){return p})),r.d(e,"k",(function(){return g})),r.d(e,"e",(function(){return y})),r.d(e,"h",(function(){return v})),r.d(e,"f",(function(){return b})),r.d(e,"i",(function(){return w})),r.d(e,"g",(function(){return _})),r.d(e,"a",(function(){return x})),r.d(e,"c",(function(){return j})),r.d(e,"b",(function(){return O})),r.d(e,"d",(function(){return L})),r.d(e,"w",(function(){return k}));var n=r("6b6c");function i(t){return Object(n.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function o(t){return Object(n.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function a(t){return Object(n.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function c(t){return Object(n.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function u(t){return Object(n.a)({url:"/statistic/user/get_basic",method:"get",params:t})}function s(t){return Object(n.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function l(t){return Object(n.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function f(t){return Object(n.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function d(t){return Object(n.a)({url:"/statistic/user/get_region",method:"get",params:t})}function h(t){return Object(n.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function m(t){return Object(n.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function p(t){return Object(n.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function g(t){return Object(n.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function y(t){return Object(n.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function v(t){return Object(n.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function b(t){return Object(n.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function w(t){return Object(n.a)({url:"/statistic/order/get_type",method:"get",params:t})}function _(t){return Object(n.a)({url:"/statistic/flow/get_record",method:"get",params:t})}function x(t){return Object(n.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function j(t){return Object(n.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function O(t){return Object(n.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function L(t){return Object(n.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function k(t,e){return Object(n.a)({url:"app/wechat_qrcode/statistic/".concat(t),method:"get",params:e})}},8706:function(t,e,r){},b422:function(t,e,r){"use strict";var n=r("8706");r.n(n).a},cd05:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"f",(function(){return a})),r.d(e,"e",(function(){return c})),r.d(e,"h",(function(){return u})),r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"m",(function(){return f})),r.d(e,"k",(function(){return d})),r.d(e,"r",(function(){return h})),r.d(e,"l",(function(){return m})),r.d(e,"q",(function(){return p})),r.d(e,"p",(function(){return g})),r.d(e,"g",(function(){return y})),r.d(e,"j",(function(){return v})),r.d(e,"o",(function(){return b})),r.d(e,"i",(function(){return w})),r.d(e,"n",(function(){return _}));var n=r("6b6c");function i(){return Object(n.a)({url:"finance/finance/bill_type",method:"get"})}function o(t){return Object(n.a)({url:"finance/finance/list",method:"get",params:t})}function a(t){return Object(n.a)({url:"finance/finance/commission_list",method:"get",params:t})}function c(t){return Object(n.a)({url:"finance/finance/user_info/".concat(t),method:"get"})}function u(t,e){return Object(n.a)({url:"finance/finance/extract_list/".concat(t),method:"get",params:e})}function s(t){return Object(n.a)({url:"finance/extract",method:"get",params:t})}function l(t){return Object(n.a)({url:"finance/extract/".concat(t,"/edit"),method:"get"})}function f(t,e){return Object(n.a)({url:"finance/extract/refuse/".concat(t),method:"put",data:e})}function d(t){return Object(n.a)({url:"finance/recharge",method:"get",params:t})}function h(t){return Object(n.a)({url:"finance/recharge/user_recharge",method:"get",params:t})}function m(t){return Object(n.a)({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function p(t){return Object(n.a)({url:"export/userFinance",method:"get",params:t})}function g(t){return Object(n.a)({url:"export/userCommission",method:"get",params:t})}function y(t){return Object(n.a)({url:"export/userRecharge",method:"get",params:t})}function v(t){return Object(n.a)({url:"statistic/flow/get_list",method:"get",params:t})}function b(t,e){return Object(n.a)({url:"statistic/flow/set_mark/".concat(t),method:"post",data:e})}function w(t){return Object(n.a)({url:"finance/balance/list",method:"get",params:t})}function _(t,e){return Object(n.a)({url:"finance/balance/set_mark/".concat(t),method:"post",data:e})}},f807:function(t,e,r){"use strict";r.r(e),r("a4d3"),r("e01a"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var n=r("0122"),i=r("c964"),o=(r("a15b"),r("99af"),r("d3b7"),r("2e83")),a=r("f3f3"),c=r("cd05"),u=r("2f62");function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o,a,c,u;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),n=new j(n||[]);return i(e,"_invoke",{value:(o=t,a=r,c=n,u="suspendedStart",function(t,e){if("executing"===u)throw new Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return L()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r&&(r=function t(e,r){var n=r.method,i=e.iterator[n];return void 0===i?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=d(i,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(i=n.arg,i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,c),r)){if(r===h)continue;return r}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(u="executing",r=d(o,a,c),"normal"===r.type){if(u=c.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:c.done}}"throw"===r.type&&(u="completed",c.method="throw",c.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function m(){}function p(){}function g(){}o={};var y=(l(o,a,(function(){return this})),Object.getPrototypeOf),v=(y=y&&y(y(O([]))),y&&y!==e&&r.call(y,a)&&(o=y),g.prototype=m.prototype=Object.create(o));function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;i(this,"_invoke",{value:function(i,a){function c(){return new e((function(o,c){!function i(o,a,c,u){var s;o=d(t[o],t,a);if("throw"!==o.type)return(a=(s=o.arg).value)&&"object"==Object(n.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){i("next",t,c,u)}),(function(t){i("throw",t,c,u)})):e.resolve(a).then((function(t){s.value=t,c(s)}),(function(t){return i("throw",t,c,u)}));u(o.arg)}(i,a,o,c)}))}return o=o?o.then(c,c):c()}})}function _(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:L}}function L(){return{value:void 0,done:!0}}return i(v,"constructor",{value:p.prototype=g,configurable:!0}),i(g,"constructor",{value:p,configurable:!0}),p.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),l(v,u,"Generator"),l(v,a,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;0<=i;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}var a=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(r=i.completion).type&&(n=r.arg,x(i)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}a={name:"commissionDetails",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},modals:!1,detailsData:{},loading:!1,staff:[],formValidate:{trading_type:0,time:"",keywords:"",page:1,limit:20},total:0,columns:[{title:"交易单号",key:"flow_id",width:180},{title:"关联订单",key:"order_id",minWidth:180},{title:"交易时间",key:"add_time",minWidth:120},{title:"交易金额",slot:"price",minWidth:80},{title:"交易用户",key:"nickname",minWidth:80},{title:"交易类型",key:"trading_type",minWidth:80},{title:"支付方式",slot:"pay_type",minWidth:100},{title:"备注",key:"mark",minWidth:100}],tabList:[],payment:[{title:"全部",value:""},{title:"微信",value:"weixin"},{title:"支付宝",value:"alipay"},{title:"银行卡",value:"bank"},{title:"线下支付",value:"offline"}]}},props:{ids:{type:String,default:""},time:{type:String,default:""}},computed:Object(a.a)(Object(a.a)({},Object(u.d)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),mounted:function(){this.getList(this.ids)},methods:{staffApi:function(){var t=this;Object(c.j)(this.formValidate).then((function(e){t.staff=e.data}))},searchs:function(){this.formValidate.page=1,this.getList(this.ids)},onchangeTime:function(t){this.formValidate.start_time=t[0],this.formValidate.end_time=t[1]},getList:function(t){var e=this;this.ids=t,this.formValidate.ids=t,this.loading=!0,Object(c.j)(this.formValidate).then(function(){var t=Object(i.a)(s().mark((function t(r){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r.data,e.tabList=n.list,e.total=n.count,e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList(this.ids)},reset:function(){this.formValidate={ids:this.ids,store_id:"",keywork:"",data:"",page:1,limit:10},this.getList(this.ids)},cancel:function(){this.$emit("close"),this.formValidate={ids:"",store_id:"",keywork:"",data:"",page:1,limit:10}}}},r("b422"),u=r("2877"),a=Object(u.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Form",{ref:"formValidate",staticClass:"tabform",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("Row",{attrs:{type:"flex",gutter:24}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"订单搜索:","label-for":"status1"}},[r("Input",{staticClass:"input",attrs:{placeholder:"请输入交易单号/交易人"},model:{value:t.formValidate.keywords,callback:function(e){t.$set(t.formValidate,"keywords",e)},expression:"formValidate.keywords"}})],1)],1),r("Col",[r("div",{staticClass:"search",on:{click:t.searchs}},[t._v("搜索")])]),r("Col",[r("div",{staticClass:"reset",on:{click:t.reset}},[t._v("重置")])])],1)],1),r("Table",{ref:"table",staticClass:"table",attrs:{columns:t.columns,data:t.tabList,loading:t.loading,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"extract_price",fn:function(e){return e=e.row,[r("div",[t._v(t._s(e.extract_price))])]}},{key:"pay_type",fn:function(e){return e=e.row,[r("span",[t._v(" "+t._s(e.pay_type_name)+" ")])]}},{key:"price",fn:function(e){return e=e.row,[0<=e.price?r("div",{staticClass:"z-price"},[t._v("+"+t._s(e.price))]):t._e(),e.price<0?r("div",{staticClass:"f-price"},[t._v(t._s(e.price))]):t._e()]}},{key:"add_time",fn:function(e){return e=e.row,[r("span",[t._v(" "+t._s(t._f("formatDate")(e.add_time)))])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("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)}),[],!1,null,"c4e095b6",null).exports;var l=r("0c9f");function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(e){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o,a,c,u;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),n=new j(n||[]);return i(e,"_invoke",{value:(o=t,a=r,c=n,u="suspendedStart",function(t,e){if("executing"===u)throw new Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return L()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r&&(r=function t(e,r){var n=r.method,i=e.iterator[n];return void 0===i?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=d(i,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(i=n.arg,i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,c),r)){if(r===h)continue;return r}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(u="executing",r=d(o,a,c),"normal"===r.type){if(u=c.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:c.done}}"throw"===r.type&&(u="completed",c.method="throw",c.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function m(){}function p(){}function g(){}o={};var y=(s(o,a,(function(){return this})),Object.getPrototypeOf),v=(y=y&&y(y(O([]))),y&&y!==e&&r.call(y,a)&&(o=y),g.prototype=m.prototype=Object.create(o));function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;i(this,"_invoke",{value:function(i,a){function c(){return new e((function(o,c){!function i(o,a,c,u){var s;o=d(t[o],t,a);if("throw"!==o.type)return(a=(s=o.arg).value)&&"object"==Object(n.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){i("next",t,c,u)}),(function(t){i("throw",t,c,u)})):e.resolve(a).then((function(t){s.value=t,c(s)}),(function(t){return i("throw",t,c,u)}));u(o.arg)}(i,a,o,c)}))}return o=o?o.then(c,c):c()}})}function _(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:L}}function L(){return{value:void 0,done:!0}}return i(v,"constructor",{value:p.prototype=g,configurable:!0}),i(g,"constructor",{value:p,configurable:!0}),p.displayName=s(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),s(v,u,"Generator"),s(v,a,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;0<=i;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}var a=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(r=i.completion).type&&(n=r.arg,x(i)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}a={name:"bill",components:{commissionDetails:a},data:function(){return{modals:!1,options:this.$timeOptions,ids:"",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_price",minWidth:80},{title:"支出金额",slot:"exp_price",minWidth:80},{title:"入账金额",slot:"entry_price",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:"",time:"",page:1,limit:15},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"昨天",val:"yesterday"},{text:"今天",val:"today"},{text:"本周",val:"week"},{text:"本月",val:"month"},{text:"本季度",val:"quarter"},{text:"本年",val:"year"}]}}},computed:{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}},mounted:function(){this.onClickTab(this.tab),this.staffApi()},methods:{staffApi:function(){var t=this;staffListInfo().then((function(e){t.staff=e.data}))},onClickTab:function(t){this.tab=t,this.getList()},search:function(){this.getList()},getList:function(){var t=this,e=(this.loading=!0,{type:this.tab,time:this.formValidate.time,page:this.formValidate.page,limit:this.formValidate.limit,store_id:this.formValidate.store_id});Object(l.g)(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.time=t,this.timeVal=[],this.getList()},onchangeTime:function(t){this.timeVal=t,this.formValidate.time=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.ids=t.ids||"",this.modals=!0},cancel:function(){this.modals=!1},download:function(t){var e=this;return Object(i.a)(f().mark((function r(){var n,i,a,c,u;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=[],i=[],a=[],c="",u={ids:t.ids,page:1,export:1,time:e.formValidate.time},r.next=4,e.getExcelData(u);case 4:return u=r.sent,c=c||u.fileName,i.length||(i=u.fileKey),n.length||(n=u.header),a=a.concat(u.list),Object(o.a)(n,i,c,a),r.abrupt("return");case 11:case"end":return r.stop()}}),r)})))()},getExcelData:function(t){return new Promise((function(e,r){Object(c.j)(t).then((function(t){return e(t.data)}))}))}}},r("033f"),r=Object(u.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("div",{staticClass:"ivu-mt tabbox"},[r("Tabs",{staticClass:"mb20",on:{"on-click":t.onClickTab}},[r("TabPane",{attrs:{label:"日账单",name:"day"}}),r("TabPane",{attrs:{label:"周账单",name:"week"}}),r("TabPane",{attrs:{label:"月账单",name:"month"}})],1),r("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",{attrs:{label:"创建时间:"}},[r("DatePicker",{staticClass:"mr20",staticStyle:{width:"200px"},attrs:{editable:!1,clearable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-start",placeholder:"请选择时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)],1)],1),r("div",{staticClass:"table"},[r("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.orderList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"income_price",fn:function(e){return e=e.row,[r("span",{staticStyle:{color:"#f5222d"}},[t._v("¥"+t._s(e.income_price))])]}},{key:"exp_price",fn:function(e){return e=e.row,[r("span",{staticStyle:{color:"#00c050"}},[t._v("¥"+t._s(e.exp_price))])]}},{key:"entry_price",fn:function(e){return e=e.row,[r("span",[t._v("¥"+t._s(e.entry_price))])]}},{key:"action",fn:function(e){var n=e.row;return[r("a",{on:{click:function(e){return t.Info(n)}}},[t._v("账单详情")]),r("Divider",{attrs:{type:"vertical"}}),r("a",{on:{click:function(e){return t.download(n)}}},[t._v("下载")])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("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)]),r("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"账单详情","mask-closable":!1,width:"1000"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.modals?r("commission-details",{ref:"commission",attrs:{ids:t.ids,time:t.formValidate.time}}):t._e()],1)],1)}),[],!1,null,"23e27704",null),e.default=r.exports},f925:function(t,e,r){}}]); |