webpackJsonp([18],{"5F03":function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=t("WSiR"),s=t("8V46"),n=t("AKaA"),l=t("NTL1"),i=(t("oAV5"),{components:{"v-nav":r.a},data:function(){return{navpath:[{name:"首页",path:""},{name:"客户列表",path:"/allCustomers"},{name:"客户详情",path:"/customerDetail?memberId="+this.$route.query.memberId},{name:"储值明细",path:"/storedValue?memberId="+this.$route.query.memberId}],selectData:[{label:"所有",value:0},{label:"充值",value:1},{label:"消费",value:2},{label:"退款",value:3},{label:"退卡",value:4},{label:"储值调整",value:5}],memberId:this.$route.query.memberId||"",page:{currentPage:1,pageSize:20,totalCount:0},listData:[],typeList:[{value:0,key:"所有"}],searchType:0,beginTime:"",endTime:"",dateTime:""}},filter:{typeFilter:function(e){var a="";switch(e){case 1:a="充值";break;case 2:a="消费";break;case 3:a="退款";break;case 4:a="退卡";break;case 5:a="储值调整"}return a}},mounted:function(){console.log("ss"),this.memberStoredTypeList(),this.getListData()},methods:{handleChange:function(){this.page.currentPage=1,this.getListData()},handleTimeChange:function(e){this.dateTime=e||[],this.getListData()},handleCurrentChange:function(e){this.page.currentPage=e,this.getListData()},handleSizeChange:function(e){this.page.pageSize=e,this.getListData()},memberStoredTypeList:function(){var e=this;Object(n.a)(l.a.memberStoredTypeList).then(function(a){if(0===a.data.response.errorCode){var t=a.data.response.result.typeList,r=void 0===t?[]:t;e.typeList=e.typeList.concat(r)}else Object(s.a)(a.data.message)}).catch(function(e){Object(s.b)(e)})},getListData:function(){var e=this;Object(n.a)(l.a.memberStoredRecordList,{memberId:this.memberId,pageSize:this.page.pageSize,currentPage:this.page.currentPage,searchType:this.searchType,beginTime:this.dateTime[0],endTime:this.dateTime[1]}).then(function(a){if(0===a.data.errorCode){var t=a.data.result.page,r=t.currentPage,n=t.totalCount,l=t.result,i=void 0===l?[]:l;e.listData=i,e.page.currentPage=r,e.page.totalCount=n}else Object(s.a)(a.data.message)}).catch(function(e){Object(s.b)(e)})}}}),o={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"minwidth1200 wechat-point-details"},[t("div",{staticClass:"con-container"},[t("v-nav",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"wrap table-container"},[t("div",{staticClass:"mBottom20"},[t("el-date-picker",{staticClass:"w250",attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.handleTimeChange},model:{value:e.dateTime,callback:function(a){e.dateTime=a},expression:"dateTime"}}),e._v(" "),t("el-select",{attrs:{placeholder:"所有"},on:{change:e.handleChange},model:{value:e.searchType,callback:function(a){e.searchType=a},expression:"searchType"}},e._l(e.typeList,function(e){return t("el-option",{key:e.value,attrs:{label:e.key,value:e.value}})}),1)],1),e._v(" "),t("div",{staticClass:"mBottom40"},[t("div",{staticClass:"table-content"},[t("el-table",{ref:"multipleTable",attrs:{data:e.listData,"tooltip-effect":"dark"}},[t("el-table-column",{attrs:{prop:"businessOccurrenceTime",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(a){var t=a.row;return[e._v("\n             "+e._s(e._f("formatTime")(t.businessOccurrenceTime))+"\n           ")]}}])}),e._v(" "),t("el-table-column",{attrs:{prop:"businessTypeName",label:"类型"}}),e._v(" "),t("el-table-column",{attrs:{prop:"storedValueChange",label:"日志详情"},scopedSlots:e._u([{key:"default",fn:function(a){var r=a.row;return[t("span",{style:r.storedValueChange>0?"color:green":"color:red"},[t("span",{directives:[{name:"show",rawName:"v-show",value:r.storedValueChange>0,expression:"row.storedValueChange>0"}]},[e._v("+")]),e._v("\n                "+e._s(r.storedValueChange)+"\n                "),t("span",{directives:[{name:"show",rawName:"v-show",value:1==r.businessType&&r.presentValue,expression:"row.businessType==1&&row.presentValue"}]},[e._v("\n                  (其中赠送金额"+e._s(r.presentValue)+")\n                ")])])]}}])}),e._v(" "),t("el-table-column",{attrs:{prop:"storeName",label:"门店"}}),e._v(" "),t("el-table-column",{attrs:{prop:"clerkName",label:"操作人员"}}),e._v(" "),t("el-table-column",{attrs:{prop:"rechargeOrderNum",label:"储值订单号"}}),e._v(" "),t("el-table-column",{attrs:{prop:"relationCostOrderNum",label:"关联消费订单号"}}),e._v(" "),t("el-table-column",{attrs:{prop:"remark",label:"备注"}})],1),e._v(" "),e.page.totalCount>0?t("div",{staticClass:"page mTop20"},[t("dm-pagination",{attrs:{background:"","current-page":e.page.currentPage,"page-sizes":[20,40,60,80],"page-size":e.page.pageSize,layout:"total, sizes, prev, pager, next",total:e.page.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])],1)])},staticRenderFns:[]};var c=t("VU/8")(i,o,!1,function(e){t("W5/N")},null,null);a.default=c.exports},"W5/N":function(e,a){}});