chunk-69c65e99.b8bf7705.js 17 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-69c65e99"],{"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]}}]}},3960:function(t,e,n){"use strict";n.r(e);var r=n("a34a"),i=n.n(r),a=n("2e83"),o=n("a6b9"),u=n("2f62");function s(t,e,n,r,i,a,o){try{var u=t[a](o),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,i)}function l(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 c(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,supplierList:[],ids:"",formValidate:{ids:"",supplier_id:"",keyword:"",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:"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?l(n,!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(u.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:90},labelPosition:function(){return this.isMobile?"top":"left"}}),mounted:function(){this.getSupplierList()},methods:{getSupplierList:function(){var t=this;Object(o.o)().then((function(e){t.supplierList=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(o.F)(this.formValidate).then(function(){var t,n=(t=i.a.mark((function t(n){var r;return i.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,i){var a=t.apply(e,n);function o(t){s(a,r,i,o,u,"next",t)}function u(t){s(a,r,i,o,u,"throw",t)}o(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,supplier_id:"",keyword:"",data:"",page:1,limit:10},this.getList(this.ids)},cancel:function(){this.formValidate={ids:"",supplier_id:"",keyword:"",data:"",page:1,limit:10}}}},p=(n("7d6df"),n("2877")),m=Object(p.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.supplier_id,callback:function(e){t.$set(t.formValidate,"supplier_id",e)},expression:"formValidate.supplier_id"}},t._l(t.supplierList,(function(e){return n("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.supplier_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,"7c784110",null).exports,f=n("0b65");function h(t,e,n,r,i,a,o){try{var u=t[a](o),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,i)}var g={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",supplierList:[],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:{supplier_id:"",data:"",page:1,limit:15},timeVal:[],options:f.a}},computed:{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}},mounted:function(){this.onClickTab(this.tab),this.getSupplierList()},methods:{getSupplierList:function(){var t=this;Object(o.o)().then((function(e){t.supplierList=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,supplier_id:this.formValidate.supplier_id};Object(o.H)(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=i.a.mark((function t(e){var n,r,o,u,s,l;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],r=[],o=[],u="",s={ids:e.ids,supplier_id:this.formValidate.supplier_id},t.next=4,this.getExcelData(s);case 4:return l=t.sent,u||(u=l.filename),r.length||(r=l.filekey),n.length||(n=l.header),o=o.concat(l.export),Object(a.a)(n,r,u,o),t.abrupt("return");case 11:case"end":return t.stop()}}),t,this)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function o(t){h(a,r,i,o,u,"next",t)}function u(t){h(a,r,i,o,u,"throw",t)}o(void 0)}))});return function(t){return e.apply(this,arguments)}}(),getExcelData:function(t){return new Promise((function(e){Object(o.e)(t).then((function(t){return e(t.data)}))}))}}},b=(n("49ed"),Object(p.a)(g,(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.supplier_id,callback:function(e){t.$set(t.formValidate,"supplier_id",e)},expression:"formValidate.supplier_id"}},t._l(t.supplierList,(function(e){return n("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.supplier_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,"434d632a",null));e.default=b.exports},"49ed":function(t,e,n){"use strict";var r=n("8b08");n.n(r).a},"7d6df":function(t,e,n){"use strict";var r=n("efe3");n.n(r).a},"8b08":function(t,e,n){},a6b9:function(t,e,n){"use strict";n.d(e,"J",(function(){return i})),n.d(e,"n",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"y",(function(){return u})),n.d(e,"z",(function(){return s})),n.d(e,"o",(function(){return l})),n.d(e,"h",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"v",(function(){return p})),n.d(e,"c",(function(){return m})),n.d(e,"B",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"l",(function(){return g})),n.d(e,"w",(function(){return b})),n.d(e,"r",(function(){return w})),n.d(e,"s",(function(){return v})),n.d(e,"u",(function(){return _})),n.d(e,"x",(function(){return y})),n.d(e,"K",(function(){return D})),n.d(e,"t",(function(){return O})),n.d(e,"k",(function(){return j})),n.d(e,"m",(function(){return k})),n.d(e,"q",(function(){return x})),n.d(e,"A",(function(){return V})),n.d(e,"g",(function(){return C})),n.d(e,"f",(function(){return T})),n.d(e,"p",(function(){return L})),n.d(e,"i",(function(){return P})),n.d(e,"F",(function(){return F})),n.d(e,"G",(function(){return W})),n.d(e,"I",(function(){return M})),n.d(e,"d",(function(){return S})),n.d(e,"H",(function(){return I})),n.d(e,"e",(function(){return Y})),n.d(e,"C",(function(){return E})),n.d(e,"E",(function(){return $})),n.d(e,"L",(function(){return z})),n.d(e,"D",(function(){return J}));var r=n("b6bd");function i(t){return Object(r.a)({url:"supplier/supplier",method:"get",params:t})}function a(t){return Object(r.a)({url:"/supplier/supplier/".concat(t),method:"get"})}function o(t){return Object(r.a)({url:"supplier/supplier",method:"post",data:t})}function u(t,e){return Object(r.a)({url:"supplier/supplier/".concat(t),method:"put",data:e})}function s(t,e){return Object(r.a)({url:"/supplier/supplier/set_status/".concat(t,"/").concat(e),method:"put"})}function l(t){return Object(r.a)({url:"/supplier/list",method:"get",params:t})}function c(t){return Object(r.a)({url:"/supplier/order/list",method:"get",params:t})}function d(t){return Object(r.a)({url:"/supplier/order/deliver_remind/".concat(t.supplier_id,"/").concat(t.id),method:"put"})}function p(t){return Object(r.a)({url:"/supplier/order/info/".concat(t),method:"get"})}function m(t){return Object(r.a)({url:"/supplier/order/distribution_info",method:"get",params:{ids:t}})}function f(t,e){return Object(r.a)({url:"/supplier/order/split_order/"+t,method:"get",params:e})}function h(t){return Object(r.a)({url:"/supplier/order/status/".concat(t.id),method:"get",params:t.datas})}function g(t){return Object(r.a)({url:"/supplier/order/refund/".concat(t),method:"get"})}function b(t){return Object(r.a)({url:"/supplier/refund/list",method:"get",params:t})}function w(t){return Object(r.a)({url:"/supplier/home/header",method:"get",params:t})}function v(t){return Object(r.a)({url:"/supplier/home/order",method:"get",params:t})}function _(t){return Object(r.a)({url:"/supplier/home/order_channel",method:"get",params:t})}function y(t){return Object(r.a)({url:"/supplier/home/order_type",method:"get",params:t})}function D(t){return Object(r.a)({url:"/supplier/supplier/login/".concat(t),method:"get"})}function O(t){return Object(r.a)({url:"/supplier/home/supplier",method:"get",params:t})}function j(t){return Object(r.a)({url:"/supplier/refund/detail/".concat(t),method:"get"})}function k(t){return Object(r.a)({url:"/supplier/refund/refund/".concat(t),method:"get"})}function x(t){return Object(r.a)({url:"/supplier/order/no_refund/".concat(t),method:"get"})}function V(t){return Object(r.a)({url:"/supplier/order/refund_integral/".concat(t),method:"get"})}function C(t){return Object(r.a)({url:"/supplier/order/distribution/".concat(t),method:"get"})}function T(t){return Object(r.a)({url:"/supplier/apply/list",method:"get",params:t})}function L(t){return Object(r.a)({url:"/supplier/apply/verify/form/".concat(t),method:"get"})}function P(t){return Object(r.a)({url:"/supplier/apply/mark/form/".concat(t),method:"get"})}function F(t){return Object(r.a)({url:"/supplier/flowing_water/fund_record_info",method:"get",params:t})}function W(t){return Object(r.a)({url:"/supplier/flowing_water/list",method:"get",params:t})}function M(t,e){return Object(r.a)({url:"/supplier/flowing_water/mark/".concat(t),method:"put",params:e})}function S(t){return Object(r.a)({url:"/export/supplierWaterExport",method:"get",params:t})}function I(t){return Object(r.a)({url:"/supplier/flowing_water/fund_record",method:"get",params:t})}function Y(t){return Object(r.a)({url:"/export/supplierWaterRecord",method:"get",params:t})}function E(t){return Object(r.a)({url:"/supplier/extract/list",method:"get",params:t})}function $(t,e){return Object(r.a)({url:"/supplier/extract/verify/".concat(t),method:"post",data:e})}function z(t){return Object(r.a)({url:"/supplier/extract/transfer/".concat(t),method:"get"})}function J(t,e){return Object(r.a)({url:"/supplier/extract/mark/".concat(t),method:"post",data:e})}},efe3:function(t,e,n){}}]);