chunk-3f518b5a.c65906c6.js 17 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3f518b5a"],{"0b65":function(t,e,n){"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,n=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,n))),[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]}}]}},2136:function(t,e,n){"use strict";n.r(e);var r=n("a34a"),a=n.n(r),o=n("2e83"),i=n("73f5"),s=n("2f62");function c(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={name:"commissionDetails",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},modals:!1,detailsData:{},Ids:0,loading:!1,staff:[],ids:"",formValidate:{ids:"",store_id:"",keyword:"",data:"",page:1,limit:10},total:0,columns:[{title:"交易单号",key:"order_id",minWidth:80},{title:"关联订单",key:"link_id",minWidth:80},{title:"交易时间",key:"trade_time",minWidth:150},{title:"交易金额",slot:"number",minWidth:80},{title:"交易人",key:"user_nickname",ellipsis:!0,minWidth:80},{title:"关联店员",key:"staff_name",minWidth:80},{title:"交易类型",key:"type_name",minWidth:80},{title:"支付方式",key:"pay_type_name",minWidth:80},{title:"备注",key:"remark",minWidth:120}],tabList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(n,!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(s.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),mounted:function(){this.staffApi()},methods:{staffApi:function(){var t=this;Object(i.y)().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(i.F)(this.formValidate).then(function(){var t,n=(t=a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=n.data,e.tabList=r.list,e.total=r.count,e.loading=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){c(o,r,a,i,s,"next",t)}function s(t){c(o,r,a,i,s,"throw",t)}i(void 0)}))});return function(t){return n.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:"",keyword:"",data:"",page:1,limit:10},this.getList(this.ids)},cancel:function(){this.formValidate={ids:"",store_id:"",keyword:"",data:"",page:1,limit:10}}}},f=(n("daff"),n("2877")),m=Object(f.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{width:"100%"}},[n("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"账单详情","mask-closable":!1,width:"950"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"选择门店:","label-for":"status1"}},[n("Select",{attrs:{placeholder:"请选择",clearable:"","element-id":"status1"},on:{"on-change":t.searchs},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(e,r){return n("Option",{attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)],1),n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"订单搜索:","label-for":"status1"}},[n("Input",{staticClass:"input",attrs:{placeholder:"请输入交易单号/交易人"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),n("Col",[n("div",{staticClass:"search",on:{click:t.searchs}},[t._v("搜索")])]),n("Col",[n("div",{staticClass:"reset",on:{click:t.reset}},[t._v("重置")])])],1)],1),n("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:"number",fn:function(e){var r=e.row;return e.index,[0==r.pm?n("span",{staticClass:"colorgreen"},[t._v("- "+t._s(r.number))]):t._e(),1==r.pm?n("span",{staticClass:"colorred"},[t._v("+ "+t._s(r.number))]):t._e()]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("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)}),[],!1,null,"167cf9b2",null).exports,h=n("0b65");function p(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}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:h.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(i.y)().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(i.E)(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},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=a.a.mark((function t(e){var n,r,i,s,c,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],r=[],i=[],s="",c={ids:e.ids,page:1,store_id:this.formValidate.store_id},t.next=4,this.getExcelData(c);case 4:return u=t.sent,s||(s=u.filename),r.length||(r=u.filekey),n.length||(n=u.header),i=i.concat(u.export),Object(o.a)(n,r,s,i),t.abrupt("return");case 11:case"end":return t.stop()}}),t,this)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){p(o,r,a,i,s,"next",t)}function s(t){p(o,r,a,i,s,"throw",t)}i(void 0)}))});return function(t){return e.apply(this,arguments)}}(),getExcelData:function(t){return new Promise((function(e,n){Object(i.g)(t).then((function(t){return e(t.data)}))}))}}},g=(n("526f"),Object(f.a)(b,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[n("div",{staticClass:"new_card_pd"},[n("Form",{ref:"formValidate",attrs:{inline:"",model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("FormItem",{attrs:{label:"选择门店:","label-for":"status1"}},[n("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:"",filterable:"","element-id":"status1"},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(e,r){return n("Option",{key:r,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),n("FormItem",{attrs:{label:"创建时间:"}},[n("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}}),n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1)],1)]),n("Card",{staticClass:"ive-mt tablebox",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"new_tab"},[n("Tabs",{on:{"on-click":t.onClickTab}},[n("TabPane",{attrs:{label:"日账单",name:"day"}}),n("TabPane",{attrs:{label:"周账单",name:"week"}}),n("TabPane",{attrs:{label:"月账单",name:"month"}})],1)],1),n("div",{staticClass:"table"},[n("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(e){var r=e.row;return e.index,[n("span",{staticStyle:{color:"#f5222d"}},[t._v("¥"+t._s(r.income_num))])]}},{key:"exp_num",fn:function(e){var r=e.row;return e.index,[n("span",{staticStyle:{color:"#00c050"}},[t._v("¥"+t._s(r.exp_num))])]}},{key:"entry_num",fn:function(e){var r=e.row;return e.index,[n("span",[t._v("¥"+t._s(r.entry_num))])]}},{key:"action",fn:function(e){var r=e.row;return e.index,[n("a",{on:{click:function(e){return t.Info(r)}}},[t._v("账单详情")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.download(r)}}},[t._v("下载")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("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)]),n("commission-details",{ref:"commission"})],1)}),[],!1,null,"5d4f008b",null));e.default=g.exports},"526f":function(t,e,n){"use strict";var r=n("5e5b");n.n(r).a},"5e5b":function(t,e,n){},"73f5":function(t,e,n){"use strict";n.d(e,"y",(function(){return a})),n.d(e,"r",(function(){return o})),n.d(e,"n",(function(){return i})),n.d(e,"q",(function(){return s})),n.d(e,"s",(function(){return c})),n.d(e,"t",(function(){return u})),n.d(e,"j",(function(){return l})),n.d(e,"i",(function(){return d})),n.d(e,"P",(function(){return f})),n.d(e,"h",(function(){return m})),n.d(e,"v",(function(){return h})),n.d(e,"u",(function(){return p})),n.d(e,"w",(function(){return b})),n.d(e,"p",(function(){return g})),n.d(e,"G",(function(){return w})),n.d(e,"H",(function(){return v})),n.d(e,"E",(function(){return _})),n.d(e,"F",(function(){return y})),n.d(e,"g",(function(){return O})),n.d(e,"B",(function(){return D})),n.d(e,"C",(function(){return j})),n.d(e,"D",(function(){return k})),n.d(e,"O",(function(){return x})),n.d(e,"J",(function(){return V})),n.d(e,"I",(function(){return C})),n.d(e,"e",(function(){return T})),n.d(e,"N",(function(){return P})),n.d(e,"l",(function(){return F})),n.d(e,"K",(function(){return M})),n.d(e,"L",(function(){return W})),n.d(e,"M",(function(){return L})),n.d(e,"k",(function(){return I})),n.d(e,"o",(function(){return Y})),n.d(e,"z",(function(){return E})),n.d(e,"m",(function(){return S})),n.d(e,"x",(function(){return $})),n.d(e,"f",(function(){return A})),n.d(e,"A",(function(){return z})),n.d(e,"b",(function(){return J})),n.d(e,"d",(function(){return B})),n.d(e,"c",(function(){return R})),n.d(e,"a",(function(){return q}));var r=n("b6bd");function a(t){return Object(r.a)({url:"merchant/store_list",method:"get",params:t})}function o(t){return Object(r.a)({url:"store/order/list",method:"get",params:t})}function i(t){return Object(r.a)({url:"store/order/chart",method:"get",params:t})}function s(t){return Object(r.a)({url:"store/order/header",method:"get"})}function c(t){return Object(r.a)({url:"store/recharge",method:"get",params:t})}function u(t){return Object(r.a)({url:"store/vip_order",method:"get",params:t})}function l(t){return Object(r.a)({url:"store/order/edit/".concat(t),method:"get"})}function d(t){return Object(r.a)({url:"store/order/distribution/".concat(t),method:"get"})}function f(t){return Object(r.a)({url:"store/order/write_update/".concat(t),method:"put"})}function m(t){return Object(r.a)({url:"store/order/info/".concat(t),method:"get"})}function h(t){return Object(r.a)({url:"order/remark/".concat(t.id),method:"put",data:t.remark})}function p(t){return Object(r.a)({url:"store/recharge/remark/".concat(t.id),method:"put",data:t.remark})}function b(t){return Object(r.a)({url:"store/vip/remark/".concat(t.id),method:"put",data:t.remark})}function g(t,e){return Object(r.a)({url:"store/order/export/".concat(e),method:"post",data:t})}function w(t){return Object(r.a)({url:"store/finance_flow/list",method:"get",params:t})}function v(t,e){return Object(r.a)({url:"store/finance_flow/mark/".concat(t),method:"put",params:e})}function _(t){return Object(r.a)({url:"store/finance_flow/fund_record",method:"get",params:t})}function y(t){return Object(r.a)({url:"store/finance_flow/fund_record_info",method:"get",params:t})}function O(t){return Object(r.a)({url:"/export/storeFinanceRecord",method:"get",params:t})}function D(t){return Object(r.a)({url:"/store/extract/list",method:"get",params:t})}function j(t,e){return Object(r.a)({url:"store/extract/mark/".concat(t),method:"post",data:e})}function k(t,e){return Object(r.a)({url:"store/extract/verify/".concat(t),method:"post",data:e})}function x(t){return Object(r.a)({url:"store/extract/transfer/".concat(t),method:"get"})}function V(t){return Object(r.a)({url:"store/store",method:"get",params:t})}function C(t){return Object(r.a)({url:"store/store/get_info/".concat(t),method:"get"})}function T(t){return Object(r.a)({url:"city",method:"get",params:t})}function P(t,e){return Object(r.a)({url:"store/store/".concat(t),method:"post",data:e})}function F(){return Object(r.a)({url:"store/store/address",method:"get"})}function M(t){return Object(r.a)({url:"store/store/login/".concat(t),method:"get"})}function W(t,e){return Object(r.a)({url:"store/store/set_show/".concat(t,"/").concat(e),method:"put"})}function L(t){return Object(r.a)({url:"store/share/order",method:"post",params:t})}function I(t){return Object(r.a)({url:"store/home/header",method:"get",params:t})}function Y(t){return Object(r.a)({url:"store/home/orderChart",method:"get",params:t})}function E(t){return Object(r.a)({url:"store/home/store",method:"get",params:t})}function S(t){return Object(r.a)({url:"store/home/operate",method:"get",params:t})}function $(t){return Object(r.a)({url:"store/store/reset_admin/".concat(t),method:"get"})}function A(t,e,n){return Object(r.a)({url:"export/storeFlowExport?store_id=".concat(t,"&keyword=").concat(e,"&data=").concat(n),method:"get"})}function z(t){return Object(r.a)({url:"/store/category",params:t,method:"get"})}function J(t){return Object(r.a)({url:"/store/category/create/".concat(t),method:"get"})}function B(t){return Object(r.a)({url:"/store/category/tree/".concat(t),method:"get"})}function R(t){return Object(r.a)({url:"/store/category/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function q(t){return Object(r.a)({url:"store/category/cascader_list/".concat(t),method:"get"})}},daff:function(t,e,n){"use strict";var r=n("e237");n.n(r).a},e237:function(t,e,n){}}]);