(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2217bc"],{cb18:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("pageGenerator",{attrs:{apiConfig:e.apiConfig,columns:e.columns,pageConfig:e.pageConfig,filterConfig:e.filterConfig,actionConfig:e.actionConfig},scopedSlots:e._u([{key:"goods",fn:function(t){var o=t.row;return[i("div",{staticClass:"flex align-center"},[i("el-image",{staticStyle:{width:"30px",height:"30px"},attrs:{src:o.goods_image,alt:""}}),i("span",[e._v(e._s(o.goods_name))])],1)]}},{key:"status",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.status)+" ")]}}])})],1)},n=[],a={name:"pabonus",components:{},data:function(){return{detailDialogFormVisible:!1,id:"",pageConfig:{showAdd:!0,showRefresh:!0,showSelection:!1,showBatchDel:!1,showPagination:!0,showExport:!1,listQueryConfig:{page:1,limit:10},actionWidth:"280",actionAlign:"center"},filterConfig:[],apiConfig:{getList:"pabonus/goods/getList",del:"pabonus/goods/delete"},columns:[{label:"ID",prop:"id",align:"center",width:60},{label:"项目名称",prop:"name"},{label:"截止时间",prop:"edate"},{label:"绑定商品",prop:"goods",slot:"goods"},{label:"状态",prop:"status",slot:"status"},{label:"创建时间",prop:"createtime"}],actionConfig:[{label:"删除",type:"danger",size:"mini",icon:"el-icon-delete",click:"del",layout:"table"},{label:"编辑",type:"primary",size:"mini",icon:"el-icon-edit",click:"edit",layout:"table"},{label:"分红",type:"primary",size:"mini",icon:"el-icon-s-data",click:this.dividend,layout:"table"}]}},methods:{closeDetailDialog:function(){this.detailDialogFormVisible=!1},dividend:function(e){var t=this;this.$prompt("请输入分红金额","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^[0-9]+(\.[0-9]{1,2})?$/,inputErrorMessage:"分红金额格式不正确"}).then((function(i){var o=i.value;t.api.post("pabonus/goods/setAbonus",{id:e.id,abonus_money:o}).then((function(e){1==e.code?t.$message.success(e.message):t.$message.error(e.message)}))})).catch((function(){}))}}},s=a,l=i("3d7a"),c=Object(l["a"])(s,o,n,!1,null,"527814e2",null);t["default"]=c.exports}}]);