(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f8d5fc66"],{"8b7d":function(t,e,a){"use strict";a.r(e);var r,n,i,s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box"},[e("a-form",{attrs:{form:t.vform,layout:"inline"}},[e("date-switch",{ref:"ds",on:{changeTab:t.searchByDate}}),e("a-form-item",{attrs:{label:"交易时间"}},[e("DateRange",{ref:"rg",staticClass:"date-range",attrs:{defaultDate:!0,showTime:!0,title:""},on:{current:t.setCurrent,change:t.changeDate}})],1),e("a-form-item",{attrs:{label:"交易类型"}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["transferType",{initialValue:"0"}],expression:"['transferType', { initialValue: '0' }]"}],staticStyle:{width:"180px"},attrs:{dropdownMatchSelectWidth:!1}},[e("a-select-option",{attrs:{value:"0"}},[t._v("全部")]),e("a-select-option",{attrs:{value:"-1"}},[t._v("转入")]),e("a-select-option",{attrs:{value:"1"}},[t._v("转出")])],1)],1),e("a-form-item",{attrs:{label:"会员账号"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userName"],expression:"['userName']"}],attrs:{placeholder:"请输入会员账号"}})],1),e("a-form-item",[e("a-button",{attrs:{type:"primary","html-type":"submit",loading:t.init.loading},on:{click:t.getList}},[t._v("查询")])],1),e("a-form-item",[e("a-button",{attrs:{type:"primary","html-type":"submit",loading:t.init.loading},on:{click:t.resetFields}},[t._v("重置")])],1)],1),e("div",{staticClass:"member-details"},[e("ul",[t._m(0),e("li",[e("span",[t._v("余额转入：")]),e("span",{staticClass:"g-green"},[t._v(t._s(t.Data.transferInAmount||0))])]),e("li",[e("span",[t._v("余额转出：")]),e("span",{staticClass:"g-blue"},[t._v(t._s(t.Data.transferOutAmount||0))])])])]),e("a-table",t._g(t._b({staticClass:"mytable mt10",attrs:{bordered:""},scopedSlots:t._u([{key:"transferType",fn:function(a,r){return e("span",{},[t._v(t._s("-1"==r.transferType?"转入":"转出"))])}}])},"a-table",t.grid.tableConfig,!1),t.grid.tableEvent))],1)},o=[function(){var t=this,e=t._self._c;return e("li",[e("span",[t._v("合计")])])}],c=(a("2397"),a("96cf"),a("3b8d")),u=a("d225"),l=a("b0b4"),f=a("4e2b"),d=a("308d"),m=a("6bb5"),p=a("d360"),h=a("a026"),v=a("2659");a("c1df");function b(t){var e=g();return function(){var a,r=Object(m["a"])(t);if(e){var n=Object(m["a"])(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(d["a"])(this,a)}}function g(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var y={vform:"id"},_=(r=Object(v["Component"])({formOptions:y}),r((i=function(t){Object(f["a"])(a,t);var e=b(a);function a(){var t;Object(u["a"])(this,a);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=e.call.apply(e,[this].concat(n)),t.Data={},t.init={loading:!1,pageNo:1,pageSize:10,startTime:"",endTime:""},t}return Object(l["a"])(a,[{key:"getList",value:function(){this.grid.load({pageNo:1}),this.getSummary()}},{key:"getSummary",value:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){var e,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.vform.validate();case 2:return e=t.sent,a=Object.assign(e.original,this.init),t.next=6,this.$service.fetch("/gbwa/gbw-user-api/balanceTransfer/queryUserTransferSummary",a);case 6:if(r=t.sent,this.Data=r.data||{},1===r.code){t.next=10;break}return t.abrupt("return",r.message&&this.$message.error(r.message));case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"searchByDate",value:function(t,e){this.init.startTime=t,this.init.endTime=e,this.$refs.rg.setDateRangeValues(t,e)}},{key:"setCurrent",value:function(t,e){this.init.startTime=t,this.init.endTime=e}},{key:"changeDate",value:function(t,e,a,r){"start"===r?this.init.startTime=a:this.init.endTime=a}},{key:"resetFields",value:function(){this.vform.resetFields(),this.$refs.ds.resetAction(),this.$refs.rg.setCurrentDate()}},{key:"createGrid",value:function(){var t=this,e=[{title:"会员账号",dataIndex:"userName"},{title:"上级代理账号",dataIndex:"parentName"},{title:"交易类别",scopedSlots:{customRender:"transferType"}},{title:"金额",dataIndex:"transferAmount"},{title:"交易时间",dataIndex:"handleTime"}];this.grid=this.$createGrid({url:"/gbwa/gbw-user-api/balanceTransfer/queryPageUserTransferRecord",columns:e,vform:function(){return t.vform},extraParams:this.init,selection:!1,autoload:!1})}},{key:"created",value:function(){this.createGrid()}}]),a}(h["default"]),Object(p["a"])(i.prototype,"created",[v["Lifecycle"]],Object.getOwnPropertyDescriptor(i.prototype,"created"),i.prototype),n=i))||n),w=_,T=(a("9475"),a("2877")),k=Object(T["a"])(w,s,o,!1,null,"712e2ff1",null);e["default"]=k.exports},9475:function(t,e,a){"use strict";a("e526")},e526:function(t,e,a){}}]);