chunk-4df561e6.f5ce12a6.js 15 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4df561e6"],{"0c9f":function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"o",(function(){return r})),n.d(e,"m",(function(){return o})),n.d(e,"l",(function(){return c})),n.d(e,"p",(function(){return s})),n.d(e,"r",(function(){return l})),n.d(e,"s",(function(){return u})),n.d(e,"v",(function(){return d})),n.d(e,"t",(function(){return f})),n.d(e,"u",(function(){return m})),n.d(e,"q",(function(){return p})),n.d(e,"n",(function(){return b})),n.d(e,"k",(function(){return h})),n.d(e,"e",(function(){return g})),n.d(e,"h",(function(){return _})),n.d(e,"f",(function(){return w})),n.d(e,"i",(function(){return v})),n.d(e,"g",(function(){return j})),n.d(e,"a",(function(){return O})),n.d(e,"c",(function(){return k})),n.d(e,"b",(function(){return y})),n.d(e,"d",(function(){return V})),n.d(e,"w",(function(){return x}));var a=n("6b6c");function i(t){return Object(a.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function r(t){return Object(a.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function o(t){return Object(a.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function c(t){return Object(a.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function s(t){return Object(a.a)({url:"/statistic/user/get_basic",method:"get",params:t})}function l(t){return Object(a.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function u(t){return Object(a.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function d(t){return Object(a.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function f(t){return Object(a.a)({url:"/statistic/user/get_region",method:"get",params:t})}function m(t){return Object(a.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function p(t){return Object(a.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function b(t){return Object(a.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function h(t){return Object(a.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function g(t){return Object(a.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function _(t){return Object(a.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function w(t){return Object(a.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function v(t){return Object(a.a)({url:"/statistic/order/get_type",method:"get",params:t})}function j(t){return Object(a.a)({url:"/statistic/flow/get_record",method:"get",params:t})}function O(t){return Object(a.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function k(t){return Object(a.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function y(t){return Object(a.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function V(t){return Object(a.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function x(t,e){return Object(a.a)({url:"app/wechat_qrcode/statistic/".concat(t),method:"get",params:e})}},"0e42":function(t,e,n){"use strict";n("c73d3")},66348:function(t,e,n){"use strict";n("84f2")},"84f2":function(t,e,n){},c73d3:function(t,e,n){},cd05:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"f",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"h",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"m",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"r",(function(){return m})),n.d(e,"l",(function(){return p})),n.d(e,"q",(function(){return b})),n.d(e,"p",(function(){return h})),n.d(e,"g",(function(){return g})),n.d(e,"j",(function(){return _})),n.d(e,"o",(function(){return w})),n.d(e,"i",(function(){return v})),n.d(e,"n",(function(){return j}));var a=n("6b6c");function i(){return Object(a.a)({url:"finance/finance/bill_type",method:"get"})}function r(t){return Object(a.a)({url:"finance/finance/list",method:"get",params:t})}function o(t){return Object(a.a)({url:"finance/finance/commission_list",method:"get",params:t})}function c(t){return Object(a.a)({url:"finance/finance/user_info/".concat(t),method:"get"})}function s(t,e){return Object(a.a)({url:"finance/finance/extract_list/".concat(t),method:"get",params:e})}function l(t){return Object(a.a)({url:"finance/extract",method:"get",params:t})}function u(t){return Object(a.a)({url:"finance/extract/".concat(t,"/edit"),method:"get"})}function d(t,e){return Object(a.a)({url:"finance/extract/refuse/".concat(t),method:"put",data:e})}function f(t){return Object(a.a)({url:"finance/recharge",method:"get",params:t})}function m(t){return Object(a.a)({url:"finance/recharge/user_recharge",method:"get",params:t})}function p(t){return Object(a.a)({url:"finance/recharge/".concat(t,"/refund_edit"),method:"get"})}function b(t){return Object(a.a)({url:"export/userFinance",method:"get",params:t})}function h(t){return Object(a.a)({url:"export/userCommission",method:"get",params:t})}function g(t){return Object(a.a)({url:"export/userRecharge",method:"get",params:t})}function _(t){return Object(a.a)({url:"statistic/flow/get_list",method:"get",params:t})}function w(t,e){return Object(a.a)({url:"statistic/flow/set_mark/".concat(t),method:"post",data:e})}function v(t){return Object(a.a)({url:"finance/balance/list",method:"get",params:t})}function j(t,e){return Object(a.a)({url:"finance/balance/set_mark/".concat(t),method:"post",data:e})}},f807:function(t,e,n){"use strict";n.r(e);var a=n("c7eb"),i=n("1da1"),r=(n("a15b"),n("99af"),n("d3b7"),n("2e83")),o=n("5530"),c=n("cd05"),s=n("2f62"),l=(o={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,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(o.a)(Object(o.a)({},Object(s.d)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},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()},onchangeTime:function(t){this.formValidate.start_time=t[0],this.formValidate.end_time=t[1]},getList:function(){var t=this;this.formValidate.ids=this.ids,this.loading=!0,Object(c.j)(this.formValidate).then(function(){var e=Object(i.a)(Object(a.a)().mark((function e(n){var i;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.data,t.tabList=i.list,t.total=i.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},reset:function(){this.formValidate={ids:this.ids,store_id:"",keywork:"",data:"",page:1,limit:15},this.getList()},cancel:function(){this.$emit("close"),this.formValidate={ids:"",store_id:"",keywork:"",data:"",page:1,limit:15}}}},s=(n("0e42"),n("2877")),o=Object(s.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("el-form",{ref:"formValidate",staticClass:"tabform",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"订单搜索:","label-for":"status1"}},[e("el-input",{staticClass:"form_content_width",attrs:{placeholder:"请输入交易单号/交易人"},model:{value:t.formValidate.keywords,callback:function(e){t.$set(t.formValidate,"keywords",e)},expression:"formValidate.keywords"}})],1),e("el-form-item",[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:t.searchs}},[t._v("搜索")])],1),e("el-form-item",[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:t.reset}},[t._v("重置")])],1)],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"table",attrs:{data:t.tabList,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"交易单号",width:"180"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.flow_id))])]}}])}),e("el-table-column",{attrs:{label:"关联订单","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.order_id))])]}}])}),e("el-table-column",{attrs:{label:"交易时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.add_time))])]}}])}),e("el-table-column",{attrs:{label:"交易金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[0<=n.row.price?e("div",{staticClass:"z-price"},[t._v("+"+t._s(n.row.price))]):t._e(),n.row.price<0?e("div",{staticClass:"f-price"},[t._v(t._s(n.row.price))]):t._e()]}}])}),e("el-table-column",{attrs:{label:"交易用户","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.nickname))])]}}])}),e("el-table-column",{attrs:{label:"交易类型","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.trading_type))])]}}])}),e("el-table-column",{attrs:{label:"支付方式","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.pay_type_name))])]}}])}),e("el-table-column",{attrs:{label:"备注","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.mark))])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1)}),[],!1,null,"507239ff",null).exports,n("0c9f"));o={name:"bill",components:{commissionDetails:o},data:function(){return{modals:!1,pickerOptions:this.$timeOptions,ids:"",total:0,loading:!1,tab:"day",orderList:[{id:"1",order_id:"200",pay_price:"200",status:1,phone:"13000000000",address:"100"}],formValidate:{store_id:"",time:"",page:1,limit:15},timeVal:[]}},computed:{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}},mounted:function(){this.onClickTab(this.tab)},methods:{onClickTab:function(){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?this.timeVal.join("-"):"",this.formValidate.page=1,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)(Object(a.a)().mark((function n(){var i,o,c,s,l;return Object(a.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=[],o=[],c=[],s="",l={ids:t.ids,page:1,export:1,time:e.formValidate.time},n.next=4,e.getExcelData(l);case 4:return l=n.sent,s=s||l.fileName,o.length||(o=l.fileKey),i.length||(i=l.header),c=c.concat(l.list),Object(r.a)(i,o,s,c),n.abrupt("return");case 11:case"end":return n.stop()}}),n)})))()},getExcelData:function(t){return new Promise((function(e,n){Object(c.j)(t).then((function(t){return e(t.data)}))}))}}},n("66348"),n=Object(s.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"创建时间:"}},[e("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1)],1)]),e("el-card",{staticClass:"mt16",attrs:{bordered:!1,shadow:"never","body-style":{padding:"0 20px 20px"}}},[e("div",{staticClass:"ivu-mt"},[e("el-tabs",{on:{"tab-click":t.onClickTab},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e("el-tab-pane",{attrs:{label:"日账单",name:"day"}}),e("el-tab-pane",{attrs:{label:"周账单",name:"week"}}),e("el-tab-pane",{attrs:{label:"月账单",name:"month"}})],1)],1),e("div",{staticClass:"table"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",attrs:{data:t.orderList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.id))])]}}])}),e("el-table-column",{attrs:{label:"标题","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.title))])]}}])}),e("el-table-column",{attrs:{label:"日期","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.add_time))])]}}])}),e("el-table-column",{attrs:{label:"收入金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticStyle:{color:"#f5222d"}},[t._v("¥"+t._s(n.row.income_price))])]}}])}),e("el-table-column",{attrs:{label:"支出金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticStyle:{color:"#00c050"}},[t._v("¥"+t._s(n.row.exp_price))])]}}])}),e("el-table-column",{attrs:{label:"入账金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v("¥"+t._s(n.row.entry_price))])]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.Info(n.row)}}},[t._v("账单详情")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.download(n.row)}}},[t._v("下载")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1)]),e("el-dialog",{attrs:{visible:t.modals,title:"账单详情",width:"1000px"},on:{"update:visible":function(e){t.modals=e}}},[t.modals?e("commission-details",{ref:"commission",attrs:{ids:t.ids,time:t.formValidate.time}}):t._e()],1)],1)}),[],!1,null,"53488770",null);e.default=n.exports}}]);