1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-55842c26"],{"0b65":function(t,e,a){"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,a=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,a))),[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,a){"use strict";a.d(e,"k",(function(){return n})),a.d(e,"p",(function(){return i})),a.d(e,"n",(function(){return o})),a.d(e,"m",(function(){return s})),a.d(e,"q",(function(){return c})),a.d(e,"s",(function(){return u})),a.d(e,"t",(function(){return l})),a.d(e,"w",(function(){return m})),a.d(e,"u",(function(){return d})),a.d(e,"v",(function(){return f})),a.d(e,"r",(function(){return g})),a.d(e,"o",(function(){return h})),a.d(e,"l",(function(){return p})),a.d(e,"g",(function(){return b})),a.d(e,"j",(function(){return w})),a.d(e,"a",(function(){return v})),a.d(e,"b",(function(){return k})),a.d(e,"c",(function(){return D})),a.d(e,"d",(function(){return y})),a.d(e,"e",(function(){return _})),a.d(e,"f",(function(){return O})),a.d(e,"h",(function(){return j})),a.d(e,"i",(function(){return x}));var r=a("b6bd");function n(t){return Object(r.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function i(t){return Object(r.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function o(t){return Object(r.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function s(t){return Object(r.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function c(t){return Object(r.a)({url:"/statistic/user/get_basic",method:"get",params:t})}function u(t){return Object(r.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function l(t){return Object(r.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function m(t){return Object(r.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function d(t){return Object(r.a)({url:"/statistic/user/get_region",method:"get",params:t})}function f(t){return Object(r.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function g(t){return Object(r.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function h(t){return Object(r.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function p(t){return Object(r.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function b(t){return Object(r.a)({url:"finance/flow/get_list",method:"get",params:t})}function w(t,e){return Object(r.a)({url:"finance/flow/set_mark/".concat(t),method:"post",data:e})}function v(t){return Object(r.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function k(t){return Object(r.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function D(t){return Object(r.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function y(t){return Object(r.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function _(t){return Object(r.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function O(t){return Object(r.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function j(t){return Object(r.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function x(t){return Object(r.a)({url:"/statistic/order/get_type",method:"get",params:t})}},"84ee":function(t,e,a){"use strict";a.r(e);var r=a("a34a"),n=a.n(r),i=a("2f62"),o=a("0c9f"),s=a("0b65");function c(t,e,a,r,n,i,o){try{var s=t[i](o),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(r,n)}function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function l(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var m={name:"order",data:function(){return{modalmark:!1,options:s.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:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?u(a,!0).forEach((function(e){l(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):u(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(i.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(o.g)(this.formValidate).then(function(){var e,a=(e=n.a.mark((function e(a){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.tabList=r.list,t.total=r.count,t.withdrawal=r.status,t.loading=!1;case 5:case"end":return e.stop()}}),e)})),function(){var t=this,a=arguments;return new Promise((function(r,n){var i=e.apply(t,a);function o(t){c(i,r,n,o,s,"next",t)}function s(t){c(i,r,n,o,s,"throw",t)}o(void 0)}))});return function(t){return a.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(o.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}}},d=(a("e22e"),a("2877")),f=Object(d.a)(m,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"ivu-mt box",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"formValidate",attrs:{inline:"",model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"创建时间:"}},[a("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),a("FormItem",{attrs:{label:"交易类型:"}},[a("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(e,r){return a("Option",{key:r,attrs:{label:e,value:r}},[t._v(t._s(e))])})),1)],1),a("FormItem",{attrs:{label:"订单搜索:","label-for":"status1"}},[a("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"}}),a("Button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1)],1),a("Card",{staticClass:"ive-mt tablebox",attrs:{bordered:!1,"dis-hover":""}},[a("div",{staticClass:"btnbox"}),a("div",{staticClass:"table"},[a("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(e){var r=e.row;return[a("span",{class:Number(r.price)<0?"colorgreen":"colorred"},[t._v(t._s(r.price))])]}},{key:"user_nickname",fn:function(e){var r=e.row;return[a("span",[t._v(t._s(r.uid?r.user_nickname:"游客"))])]}},{key:"action",fn:function(e){var r=e.row;return[a("a",{on:{click:function(e){return t.remark(r)}}},[t._v("备注")])]}}])})],1),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)]),a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"请修改内容",closable:!1,"mask-closable":!1},model:{value:t.modalmark,callback:function(e){t.modalmark=e},expression:"modalmark"}},[a("Form",{ref:"remarks",attrs:{model:t.remarks,"label-width":80},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"备注:"}},[a("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),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:function(e){return t.putRemark()}}},[t._v("提交")]),a("Button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)],1)}),[],!1,null,"966c61f8",null);e.default=f.exports},db9e:function(t,e,a){},e22e:function(t,e,a){"use strict";var r=a("db9e");a.n(r).a}}]);
|