徐总多门店
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.
 
 
 
 
 
 

1 lines
18 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-686345e3"],{"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]}}]}},"0c9f":function(t,e,r){"use strict";r.d(e,"k",(function(){return a})),r.d(e,"p",(function(){return i})),r.d(e,"n",(function(){return o})),r.d(e,"m",(function(){return c})),r.d(e,"q",(function(){return u})),r.d(e,"s",(function(){return s})),r.d(e,"t",(function(){return l})),r.d(e,"w",(function(){return f})),r.d(e,"u",(function(){return m})),r.d(e,"v",(function(){return h})),r.d(e,"r",(function(){return d})),r.d(e,"o",(function(){return p})),r.d(e,"l",(function(){return g})),r.d(e,"g",(function(){return v})),r.d(e,"j",(function(){return y})),r.d(e,"a",(function(){return b})),r.d(e,"b",(function(){return w})),r.d(e,"c",(function(){return k})),r.d(e,"d",(function(){return _})),r.d(e,"e",(function(){return O})),r.d(e,"f",(function(){return D})),r.d(e,"h",(function(){return x})),r.d(e,"i",(function(){return j}));var n=r("b6bd");function a(t){return Object(n.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function i(t){return Object(n.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function o(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 m(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 d(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 v(t){return Object(n.a)({url:"finance/flow/get_list",method:"get",params:t})}function y(t,e){return Object(n.a)({url:"finance/flow/set_mark/".concat(t),method:"post",data:e})}function b(t){return Object(n.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function w(t){return Object(n.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function k(t){return Object(n.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function _(t){return Object(n.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function O(t){return Object(n.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function D(t){return Object(n.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function x(t){return Object(n.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function j(t){return Object(n.a)({url:"/statistic/order/get_type",method:"get",params:t})}},"1c88":function(t,e,r){"use strict";r("40fc")},"40fc":function(t,e,r){},"84ee":function(t,e,r){"use strict";r.r(e);var n=r("2f62"),a=r("0c9f"),i=r("0b65");function o(t){return(o="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,a=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 m(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),c=new F(n||[]);return a(o,"_invoke",{value:T(t,r,c)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=m;var d="suspendedStart",p="suspendedYield",g="executing",v="completed",y={};function b(){}function w(){}function k(){}var _={};f(_,u,(function(){return this}));var O=Object.getPrototypeOf,D=O&&O(O(M([])));D&&D!==r&&n.call(D,u)&&(_=D);var x=k.prototype=b.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==o(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;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function T(e,r,n){var a=d;return function(i,o){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var c=n.delegate;if(c){var u=E(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var s=h(e,r,n);if("normal"===s.type){if(a=n.done?v:p,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=v,n.method="throw",n.arg=s.arg)}}}function E(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=h(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}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 F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(V,this),this.reset(!0)}function M(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 a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(o(e)+" is not iterable")}return w.prototype=k,a(x,"constructor",{value:k,configurable:!0}),a(k,"constructor",{value:w,configurable:!0}),w.displayName=f(k,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,f(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},j(L.prototype),f(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new L(m(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},j(x),f(x,l,"Generator"),f(x,u,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},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),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},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 a=n.arg;P(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function u(t,e,r,n,a,i,o){try{var c=t[i](o),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,a)}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<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m={name:"order",data:function(){return{modalmark:!1,options:i.a,remarks:{mark:""},staff:[],total:0,grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns:[{title:"交易单号",key:"flow_id",minWidth:180},{title:"关联订单",key:"order_id",minWidth:180},{title:"交易金额",slot:"price",minWidth:80},{title:"交易用户",key:"nickname",ellipsis:!0,minWidth:80},{title:"交易时间",key:"add_time",minWidth:150},{title:"交易类型",key:"trading_type",minWidth:80},{title:"支付方式",key:"pay_type",minWidth:80},{title:"备注",key:"mark",minWidth:120},{title:"操作",slot:"action",minWidth:80,align:"center"}],tabList:[],withdrawal:[],formValidate:{trading_type:"",time:"",keywords:"",page:1,limit:20},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:l(l({},Object(n.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(a.g)(this.formValidate).then(function(){var e,r=(e=c().mark((function e(r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tabList=n.list,t.total=n.count,t.withdrawal=n.status,t.loading=!1;case 5:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(t){u(i,n,a,o,c,"next",t)}function c(t){u(i,n,a,o,c,"throw",t)}o(void 0)}))});return function(t){return r.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},search:function(){this.formValidate.page=1,this.getList()},reset:function(){this.formValidate={trading_type:0,time:"",keywords:"",page:1,limit:20},this.timeVal=[],this.getList()},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()},remark:function(t){this.remarkId=t.id,this.modalmark=!0,this.remarks.mark=t.mark},putRemark:function(){var t=this;this.modalmark=!1,Object(a.j)(this.remarkId,this.remarks).then((function(e){t.$Message.success(e.msg),t.modal_loading=!1,t.modals=!1,t.getList()})).catch((function(e){t.modal_loading=!1,t.$Message.error(e.msg)}))},cancel:function(){this.remarks={mark:""},this.modalmark=!1}}},h=(r("1c88"),r("2877")),d=Object(h.a)(m,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt box",attrs:{bordered:!1,"dis-hover":""}},[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:"创建时间:"}},[e("DatePicker",{staticClass:"input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),e("FormItem",{attrs:{label:"交易类型:"}},[e("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.search},model:{value:t.formValidate.trading_type,callback:function(e){t.$set(t.formValidate,"trading_type",e)},expression:"formValidate.trading_type"}},t._l(t.withdrawal,(function(r,n){return e("Option",{key:n,attrs:{label:r,value:n}},[t._v(t._s(r))])})),1)],1),e("FormItem",{attrs:{label:"订单搜索:","label-for":"status1"}},[e("Input",{staticClass:"input-add mr14",attrs:{placeholder:"订单号/昵称/电话/用户ID"},on:{"on-search":t.getList},model:{value:t.formValidate.keywords,callback:function(e){t.$set(t.formValidate,"keywords",e)},expression:"formValidate.keywords"}}),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:"btnbox"}),e("div",{staticClass:"table"},[e("Table",{ref:"table",attrs:{columns:t.columns,data:t.tabList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"price",fn:function(r){var n=r.row;return[e("span",{class:Number(n.price)<0?"colorgreen":"colorred"},[t._v(t._s(n.price))])]}},{key:"user_nickname",fn:function(r){var n=r.row;return[e("span",[t._v(t._s(n.uid?n.user_nickname:"游客"))])]}},{key:"action",fn:function(r){var n=r.row;return[e("a",{on:{click:function(e){return t.remark(n)}}},[t._v("备注")])]}}])})],1),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)]),e("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"请修改内容",closable:!1,"mask-closable":!1},model:{value:t.modalmark,callback:function(e){t.modalmark=e},expression:"modalmark"}},[e("Form",{ref:"remarks",attrs:{model:t.remarks,"label-width":80},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"备注:"}},[e("Input",{staticStyle:{width:"100%"},attrs:{maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"请填写备注~"},model:{value:t.remarks.mark,callback:function(e){t.$set(t.remarks,"mark",e)},expression:"remarks.mark"}})],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.putRemark()}}},[t._v("提交")]),e("Button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)],1)}),[],!1,null,"966c61f8",null);e.default=d.exports}}]);