1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-523f96b6"],{"17a1":function(t,e,n){"use strict";var a=n("28e5"),i=n.n(a);i.a},"28e5":function(t,e,n){},5786:function(t,e,n){"use strict";var a=n("cd09"),i=n.n(a);i.a},8745:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"h",(function(){return l})),n.d(e,"i",(function(){return c})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return d})),n.d(e,"a",(function(){return f})),n.d(e,"j",(function(){return m}));var a=n("b6bd");function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get";return Object(a["a"])({url:"/finance/info",method:e,data:t})}function r(t){return Object(a["a"])({url:"/finance/supplier_extract/list",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/finance/supplier_extract/cash",method:"post",data:t})}function s(t,e){return Object(a["a"])({url:"/finance/supplier_extract/mark/".concat(t),method:"post",data:e})}function l(t){return Object(a["a"])({url:"finance/supplier_flowing_water/list",method:"get",params:t})}function c(t,e){return Object(a["a"])({url:"/finance/supplier_flowing_water/mark/".concat(t),method:"post",data:e})}function u(t){return Object(a["a"])({url:"/finance/supplier_flowing_water/fund_record",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/finance/supplier_flowing_water/fund_record_info",method:"get",params:t})}function f(t){return Object(a["a"])({url:"/export/financeRecord",method:"get",params:t})}function m(t){return Object(a["a"])({url:"/finance/supplier_flowing_water/type",method:"get",params:t})}},aad2:function(t,e,n){"use strict";var a=n("c1df"),i=n.n(a);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=i()(i()().quarter(i()().quarter()).startOf("quarter").valueOf()).format("YYYY-MM-DD"),e=i()(i()().quarter(i()().quarter()).endOf("quarter").valueOf()).format("YYYY-MM-DD");return[t,e]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},b585:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt box",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("FormItem",{attrs:{label:"时间选择:"}},[n("DatePicker",{staticStyle:{width:"250px"},attrs:{editable:!1,clearable:!0,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)],1)],1),n("Card",{staticClass:"ive-mt tablebox",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"product_tabs tabbox"},[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:"btnbox"}),n("div",{staticClass:"table"},[n("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_num",fn:function(e){var a=e.row;e.index;return[n("span",{staticStyle:{color:"#f5222d"}},[t._v("¥"+t._s(a.income_num))])]}},{key:"exp_num",fn:function(e){var a=e.row;e.index;return[n("span",{staticStyle:{color:"#00c050"}},[t._v("¥"+t._s(a.exp_num))])]}},{key:"entry_num",fn:function(e){var a=e.row;e.index;return[n("span",[t._v("¥"+t._s(a.entry_num))])]}},{key:"action",fn:function(e){var a=e.row;e.index;return[n("a",{on:{click:function(e){return t.Info(a)}}},[t._v("账单详情")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.download(a)}}},[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:{"update:current":function(e){return t.$set(t.formValidate,"page",e)},"on-change":t.pageChange}})],1)],1)]),n("commission-details",{ref:"commission"})],1)},i=[],r=n("a34a"),o=n.n(r),s=n("2e83"),l=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("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 a=e.row;e.index;return[0==a.pm?n("span",{staticClass:"colorgreen"},[t._v("- "+t._s(a.number))]):t._e(),1==a.pm?n("span",{staticClass:"colorred"},[t._v("+ "+t._s(a.number))]):t._e()]}},{key:"nickname",fn:function(e){var a=e.row;e.index;return[n("span",[t._v(t._s(a.uid?a.user_nickname:"游客"))])]}}])}),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)},c=[],u=n("8745"),d=n("2f62");function f(t,e,n,a,i,r,o){try{var s=t[r](o),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(a,i)}function m(t){return function(){var e=this,n=arguments;return new Promise((function(a,i){var r=t.apply(e,n);function o(t){f(r,a,i,o,s,"next",t)}function s(t){f(r,a,i,o,s,"throw",t)}o(void 0)}))}}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(n,!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b={name:"commissionDetails",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},modals:!1,detailsData:{},Ids:0,loading:!1,financeTypeList:[],ids:"",formValidate:{ids:"",staff_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:"交易人",slot:"nickname",ellipsis:!0,minWidth:80},{title:"交易类型",key:"type_name",minWidth:80},{title:"支付方式",key:"pay_type_name",minWidth:80},{title:"备注",key:"mark",minWidth:120}],tabList:[]}},computed:p({},Object(d["e"])("store/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(u["j"])().then((function(e){var n=e.data;t.financeTypeList=Object.keys(n).map((function(t){return{label:n[t],value:t}}))}))},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(u["g"])(this.formValidate).then(function(){var t=m(o.a.mark((function t(n){var a;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=n.data,e.tabList=a.list,e.total=a.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,staff_id:"",keyword:"",data:"",page:1,limit:10},this.getList(this.ids)},cancel:function(){this.formValidate={ids:"",staff_id:"",keyword:"",data:"",page:1,limit:10}}}},w=b,v=(n("17a1"),n("2877")),y=Object(v["a"])(w,l,c,!1,null,"19ae0614",null),D=y.exports,_=n("aad2");function x(t){return j(t)||O(t)||k()}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function O(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function j(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function V(t,e,n,a,i,r,o){try{var s=t[r](o),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(a,i)}function T(t){return function(){var e=this,n=arguments;return new Promise((function(a,i){var r=t.apply(e,n);function o(t){V(r,a,i,o,s,"next",t)}function s(t){V(r,a,i,o,s,"throw",t)}o(void 0)}))}}var C={name:"bill",components:{commissionDetails:D},data:function(){return{total:0,loading:!1,tab:"day",options:_["a"],columns:[{title:"ID",key:"id",width:60},{title:"标题",key:"title",minWidth:80},{title:"交易时间",key:"add_time",minWidth:150},{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:{data:"",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:{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}},watch:{tab:{handler:function(){this.getList()},immediate:!0}},methods:{onClickTab:function(t){this.tab=t},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};Object(u["f"])(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,this.getList()},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=T(o.a.mark((function t(e){var n,a,i,r,l,c;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=[],a=[],i=[],r="",l={ids:e.ids,page:1},t.next=4,this.getExcelData(l);case 4:c=t.sent,r||(r=c.filename),a.length||(a=c.filekey),n.length||(n=c.header),i=[].concat(x(i),x(c.export)),Object(s["a"])(n,a,r,i);case 10:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getExcelData:function(t){return new Promise((function(e){return Object(u["a"])(t).then((function(t){return e(t.data)}))}))}}},P=C,M=(n("5786"),Object(v["a"])(P,a,i,!1,null,"b7b8b6ec",null));e["default"]=M.exports},cd09:function(t,e,n){}}]);
|