| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22502b"],{e329:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-list-content"},[e("x-crud",{staticClass:"liu-crud-wrap",on:{load:t.onLoad},scopedSlots:t._u([{key:"table-column-status",fn:function(a){var l=a.scope;return[e("span",[t._v(t._s(t._f("constantfilter")(l.row.status,"SAAS_APPLY_STATUS")))])]}},{key:"table-column-all",fn:function(a){var l=a.scope;return[e("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.modifyAll(l.row)}}},[t._v(" "+t._s(1==l.row.all?"全品":"单品")+" "),e("i",{staticClass:"el-icon-edit",staticStyle:{"font-size":"14px","margin-left":"3px"},on:{click:function(e){return t.pleaseOpen()}}})])]}},{key:"slot-apply",fn:function(a){var l=a.scope;return[1==l.row.status?[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.showModalFn(l.row)}}},[t._v("审核")])]:t._e(),3==l.row.status?[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.showModalFn(l.row)}}},[t._v("重审")])]:t._e()]}}])}),e("el-dialog",{attrs:{title:"审核",visible:t.applyDialog,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(e){t.applyDialog=e}}},[e("div",{staticClass:"ad-modal-content"},[e("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:t.form,rules:t.rule,"label-width":"100px"}},[e("el-form-item",{attrs:{label:"状态",prop:"status"}},[e("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[e("el-radio",{attrs:{label:"1"}},[t._v("通过")]),e("el-radio",{attrs:{label:"3"}},[t._v("拒绝")])],1)],1),e("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e("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),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:t.resetForm}},[t._v("取 消")]),e("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:{modifyAll:function(t){var e=this;this.$service.apply.changeAll({id:t.id}).then((function(t){e.$message.success("修改成功"),e.app.refresh()}))},showModalFn:function(t){this.form.id=t.id,this.applyDialog=!0},applyFn:function(){var t=this;this.$service.saasShop.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.saasShop.applyList()};a.service({page:o}).set("table",{columns:[{prop:"id",label:"ID",align:"center"},{prop:"name",label:"花店名称",align:"center"},{prop:"adminName",label:"店长",align:"center"},{prop:"mobile",label:"手机号",align:"center"},{prop:"all",label:"品类",align:"center",width:100},{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:150,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("1805"),i=Object(n["a"])(s,l,o,!1,null,null,null);e["default"]=i.exports}}]);
|