(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21e5d6"],{d4f6:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-list-content"},[a("cl-crud",{staticClass:"liu-crud-wrap",on:{load:t.onLoad},scopedSlots:t._u([{key:"table-column-addTime",fn:function(e){var l=e.scope;return[a("span",[t._v(t._s(t._f("formatTime")(l.row.addTime)))])]}},{key:"table-column-status",fn:function(e){var l=e.scope;return[a("span",[t._v(t._s(t._f("constantfilter")(l.row.status,"SASS_APPLY_STATUS")))])]}},{key:"slot-apply",fn:function(e){var l=e.scope;return[0==l.row.status||2==l.row.status?[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.showModalFn(l.row)}}},[t._v("审核")])]:t._e()]}}])}),a("el-dialog",{attrs:{title:"审核",visible:t.applyDialog,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(e){t.applyDialog=e}}},[a("div",{staticClass:"ad-modal-content"},[a("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:t.form,rules:t.rule,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:"1"}},[t._v("通过")]),a("el-radio",{attrs:{label:"2"}},[t._v("拒绝")])],1)],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:t.resetForm}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.applyFn}},[t._v("确认")])],1)])],1)},o=[],r={data:function(){return{app:null,applyDialog:!1,form:{id:"",status:"1",remark:""},rule:{}}},mounted:function(){},methods:{showModalFn:function(t){this.form.id=t.id,this.applyDialog=!0},applyFn:function(){var t=this;this.$service.sassShop.applyCheck(this.form).then((function(e){t.app.refresh(),t.$message.success("审核成功！"),t.resetForm()}))},resetForm:function(){this.$refs["form"].resetFields(),this.applyDialog=!1},onLoad:function(t){var e=this,a=t.ctx,l=t.app;this.app=l;var o=function(){return e.$service.sassShop.applyList()};a.service({page:o}).set("table",{columns:[{prop:"id",label:"ID",align:"center"},{prop:"name",label:"花店名称",align:"center"},{prop:"userName",label:"店长昵称",align:"center"},{prop:"mobile",label:"手机号",align:"center"},{prop:"province",label:"省份",align:"center",emptyText:"无"},{prop:"city",label:"城市",align:"center",emptyText:"无"},{prop:"oldName",label:"介绍人",align:"center",emptyText:"无"},{prop:"addTime",label:"申请时间",align:"center",emptyText:"无"},{prop:"status",label:"状态",align:"center",emptyText:"无"}],op:{visible:!0,props:{width:100,align:"center",fixed:"right",label:"操作"},layout:["slot-apply"]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).done(),l.refresh()}}},s=r,n=a("5511"),i=Object(n["a"])(s,l,o,!1,null,null,null);e["default"]=i.exports}}]);