"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[20664],{20664:function(e,t,a){a.r(t),a.d(t,{default:function(){return c}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"g-pt-xl g-px-xl g-bg-white"},[t("el-form",{ref:"issuesCouponForm",attrs:{model:e.form,inline:!0}},[t("el-form-item",{attrs:{prop:"reduceAmount",label:"减免金额"}},[t("el-input",{model:{value:e.form.reduceAmount,callback:function(t){e.$set(e.form,"reduceAmount",t)},expression:"form.reduceAmount"}})],1),t("el-form-item",{attrs:{prop:"cashCondition",label:"使用门槛"}},[t("el-input",{model:{value:e.form.cashCondition,callback:function(t){e.$set(e.form,"cashCondition",t)},expression:"form.cashCondition"}})],1),t("el-form-item",{attrs:{prop:"sendOperate",label:"发放人"}},[t("el-input",{model:{value:e.form.sendOperate,callback:function(t){e.$set(e.form,"sendOperate",t)},expression:"form.sendOperate"}})],1),t("el-form-item",{attrs:{prop:"createDateTime",label:"发放时间"}},[t("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss",clearable:""},model:{value:e.form.createDateTime,callback:function(t){e.$set(e.form,"createDateTime",t)},expression:"form.createDateTime"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("搜索")])],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.doReset}},[e._v("重置")])],1)],1),t("el-table",{attrs:{data:e.dataSource.records||[]}},[t("el-table-column",{attrs:{align:"center",prop:"reduceAmount",label:"减免金额"}}),t("el-table-column",{attrs:{align:"center",prop:"cashCondition",label:"使用门槛"}}),t("el-table-column",{attrs:{align:"center",prop:"sendOperate",label:"发放人"}}),t("el-table-column",{attrs:{align:"center",prop:"createTime",label:"发放时间"}}),t("el-table-column",{attrs:{align:"center",prop:"mark",label:"备注"}})],1),t("div",{staticClass:"g-pagination-container"},[t("el-pagination",{attrs:{"current-page":e.dataSource.pageNow,"page-sizes":[10,20,50],"page-size":e.dataSource.pageSize,layout:"sizes, prev, pager, next, jumper",background:"",total:e.dataSource.rowCount},on:{"size-change":function(t){return e.doPageChange(null,t)},"current-change":function(t){return e.doPageChange(t)}}})],1)],1)},o=[],n=(a(98992),a(3949),{data(){return{title:"发券统计",dataSource:{records:[]},pageNow:1,pageSize:20,form:{createDateTime:null,reduceAmount:null,cashCondition:null,sendOperate:null}}},mounted(){this.doSearch()},methods:{doSearch(){this.pageNow=1,this.getList()},getParams(){const{createDateTime:e,sendOperate:t,cashCondition:a,reduceAmount:r}=this.form,[o=null,n=null]=e||[],l={pageSize:this.pageSize,pageNow:this.pageNow,sendOperate:t,cashCondition:a,reduceAmount:r,receiveStart:o,receiveEnd:n};return Object.keys(l).forEach((e=>{l[e]||delete l[e]})),l},getList(){const e=this.getParams();this.$store.dispatch({type:"statistics/getDirectedCouponList",payload:e}).then((e=>{this.dataSource=e}))},doReset(){this.$refs.issuesCouponForm.resetFields()},doPageChange(e,t){e&&(this.pageNow=e),t&&(this.pageSize=t),this.getList()}}}),l=n,i=a(81656),s=(0,i.A)(l,r,o,!1,null,"0d05c37e",null),c=s.exports}}]);