(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25911f8a"],{1482:function(e,t,a){"use strict";a.d(t,"d",(function(){return s})),a.d(t,"f",(function(){return i})),a.d(t,"e",(function(){return o})),a.d(t,"a",(function(){return c})),a.d(t,"g",(function(){return l})),a.d(t,"h",(function(){return u})),a.d(t,"b",(function(){return d})),a.d(t,"c",(function(){return m}));var r=a("b775"),n={list:"/members.MonthlyWelfare/welfareLists",sort:"/members.MonthlyWelfare/editOrder",remove:"/members.MonthlyWelfare/delWelfare",couponlist:"/members.MonthlyWelfare/couponlist",welDawList:"/members.MonthlyWelfare/getDiffWelfareDrawRecords",welDawListExport:"/members.MonthlyWelfare/getDiffwDrawExport",getDiffWelDrawDetails:"/members.MonthlyWelfare/getDiffWelDrawDetails",getDiffwDrawDetExport:"/members.MonthlyWelfare/getDiffwDrawDetExport"};function s(e){return Object(r["b"])({url:n.list,method:"get",params:e})}function i(e){return Object(r["b"])({url:n.sort,method:"post",data:e})}function o(e){return Object(r["b"])({url:n.remove,method:"get",params:e})}function c(e){return Object(r["b"])({url:n.couponlist,method:"get",params:e})}function l(e){return Object(r["b"])({url:n.welDawList,method:"get",params:e})}function u(e){return Object(r["b"])({url:n.welDawListExport,method:"post",data:e})}function d(e){return Object(r["b"])({url:n.getDiffWelDrawDetails,method:"get",params:e})}function m(e){return Object(r["b"])({url:n.getDiffwDrawDetExport,method:"post",data:e})}},"2be7":function(e,t,a){"use strict";a("cc17")},"8c46":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"title"},[e._v("异业福利领取记录")]),a("a-row",{staticClass:"row-item-search"},[a("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[a("a-form-item",{attrs:{label:"福利编号"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["number"],expression:"['number']"}],staticClass:"inputW150",attrs:{placeholder:"请输入福利编号"}})],1),a("a-form-item",{attrs:{label:"福利名称"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name"],expression:"['name']"}],staticClass:"inputW150",attrs:{placeholder:"请输入福利名称"}})],1),a("a-form-item",{attrs:{label:"福利提供方"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["provider"],expression:"['provider']"}],staticClass:"inputW150",attrs:{placeholder:"请输入福利提供方"}})],1),a("a-form-item",{attrs:{label:"时间"}},[a("a-range-picker",{staticClass:"inputW220",attrs:{placeholder:["开始月份","结束月份"],format:"YYYY-MM",value:e.value,mode:e.mode2},on:{change:e.handleChange,panelChange:e.handlePanelChange}})],1),a("a-row",[a("a-button",{staticClass:"search-btn",attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")]),a("a-button",{staticClass:"search-btn",on:{click:e.reloadList}},[e._v("重置")]),a("a-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.exportData}},[e._v("导出")])],1)],1)],1),a("s-table",{ref:"table",staticClass:"tableBox",attrs:{rowKey:"id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15,bordered:""},scopedSlots:e._u([{key:"name",fn:function(t){return[a("p",{staticClass:"textWrap"},[e._v(e._s(t))])]}},{key:"start_time",fn:function(t,r){return a("span",{},[a("p",[e._v(e._s(t)+"至"+e._s(r.end_time))])])}},{key:"draws_count",fn:function(t,r){return[a("p",{staticClass:"number",on:{click:function(t){return e.receivingDetails(r.id,1)}}},[e._v(e._s(t))])]}},{key:"draws_checked_count",fn:function(t,r){return[a("p",{staticClass:"number",on:{click:function(t){return e.receivingDetails(r.id,2)}}},[e._v(e._s(t))])]}},{key:"draws_expired_count",fn:function(t,r){return[a("p",{staticClass:"number",on:{click:function(t){return e.receivingDetails(r.id,3)}}},[e._v(e._s(t))])]}}])})],1)},n=[],s=a("5530"),i=(a("d3b7"),a("1482")),o=a("2af9"),c=[{title:"福利编号",width:"160px",dataIndex:"number"},{title:"福利名称",width:"180px",dataIndex:"name",scopedSlots:{customRender:"name"}},{title:"福利提供方",width:"180px",dataIndex:"provider",scopedSlots:{customRender:"name"}},{title:"价值",width:"100px",dataIndex:"cost"},{title:"时间",dataIndex:"start_time",width:"160px",scopedSlots:{customRender:"start_time"}},{title:"实际领取数",dataIndex:"draws_count",width:"100px",scopedSlots:{customRender:"draws_count"}},{title:"已核销",dataIndex:"draws_checked_count",width:"100px",scopedSlots:{customRender:"draws_checked_count"}},{title:"已过期",dataIndex:"draws_expired_count",width:"100px",scopedSlots:{customRender:"draws_expired_count"}}],l={components:{STable:o["c"]},data:function(){var e=this;return{isLoading:!1,searchForm:this.$form.createForm(this),mode2:["month","month"],value:[],queryParam:{},columns:c,loadData:function(t){return i["g"](Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){},methods:{handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){a.betweenTime=t.value,e||(t.queryParam=Object(s["a"])(Object(s["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},reloadList:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e),this.selectedRowKeys=[]},receivingDetails:function(e,t){1!=t?2!=t?3!=t||this.$router.push({path:"./receivingDetails",query:{hasExpired:1,targetId:e}}):this.$router.push({path:"./receivingDetails",query:{checkStatus:1,targetId:e}}):this.$router.push({path:"./receivingDetails",query:{targetId:e}})},handleChange:function(e){this.value=e},handlePanelChange:function(e,t){this.value=e,this.mode2=["date"===t[0]?"month":t[0],"date"===t[1]?"month":t[1]]},exportData:function(){var e=this;i["h"](this.queryParam).then((function(t){var a=document.createElement("a");a.href=t.data.file,a.setAttribute("download",t.data.filename),a.click(),a=null,e.$message.success(t.message)})).finally((function(){e.isLoading=!1}))}}},u=l,d=(a("2be7"),a("2877")),m=Object(d["a"])(u,r,n,!1,null,"98dd2854",null);t["default"]=m.exports},cc17:function(e,t,a){}}]);