(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-379bd798"],{"67f2":function(n,t,o){"use strict";o.r(t);var i=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("div",[o("pageGenerator",{ref:"pageList",attrs:{apiConfig:n.apiConfig,columns:n.columns,pageConfig:n.pageConfig,filterConfig:n.filterConfig,actionConfig:n.actionConfig},scopedSlots:n._u([{key:"is_manual_abonus",fn:function(t){var i=t.row;return[o("el-tag",{attrs:{type:1==i.is_manual_abonus?"success":"info"}},[n._v(" "+n._s(1==i.is_manual_abonus?"已开启":"已关闭")+" ")])]}},{key:"goods",fn:function(t){var i=t.row;return n._l(i.goods,(function(t,i){return o("div",{key:i,staticClass:"goods-wrap"},[o("img",{staticStyle:{width:"40px",height:"40px"},attrs:{src:t.thumb,alt:""}}),o("div",{staticClass:"margin-left"},[n._v(" "+n._s(t.title)+" ")])])}))}}])})],1)},a=[],e={name:"CapitalpoolOrder",data:function(){return{pageConfig:{showAdd:!1,showRefresh:!0,showSelection:!1,showBatchDel:!1,showPagination:!0,showExport:!1,listQueryConfig:{page:1,keyword:"",limit:10},actionWidth:"200",actionAlign:"center"},filterConfig:[],apiConfig:{getList:"capitalpool/capitalpool/getOrderList"},columns:[{label:"ID",prop:"id",align:"center",width:60},{label:"订单号",prop:"order_no"},{label:"商品",prop:"goods",slot:"goods"},{label:"用户",prop:"nickname"},{label:"下单时间",prop:"createtime"},{label:"手动分红",prop:"is_manual_abonus",slot:"is_manual_abonus",align:"center",width:100}],actionConfig:[{label:"开启手动分红",type:"success",size:"mini",icon:"el-icon-check",click:this.setManualAbonus,layout:"table",show:function(n){return 1!=n.is_manual_abonus}},{label:"关闭手动分红",type:"danger",size:"mini",icon:"el-icon-close",click:this.setManualAbonus,layout:"table",show:function(n){return 1==n.is_manual_abonus}}]}},methods:{setManualAbonus:function(n){var t=this,o=1==n.is_manual_abonus?"关闭":"开启";this.$util.confirm("确定".concat(o,"手动分红吗？"),(function(o){o&&t.api.get("capitalpool/capitalpool/setManualAbonusOrder",{id:n.id}).then((function(n){1==n.code?(t.$util.success(n.message),t.$refs.pageList.getList()):t.$util.error(n.message)}))}))}}},s=e,l=(o("919b"),o("3d7a")),c=Object(l["a"])(s,i,a,!1,null,"0f3bf4d1",null);t["default"]=c.exports},"919b":function(n,t,o){"use strict";o("9981")},9981:function(n,t,o){}}]);