You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
26 KiB
1 lines
26 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e225e05"],{"24c4":function(t,e,a){},5599:function(t,e,a){"use strict";a("24c4")},6686:function(t,e,a){"use strict";a("9cda")},"75b7":function(t,e,a){"use strict";a("ff1a")},8492:function(t,e,a){"use strict";a.d(e,"M",(function(){return r})),a.d(e,"K",(function(){return i})),a.d(e,"N",(function(){return s})),a.d(e,"L",(function(){return c})),a.d(e,"I",(function(){return o})),a.d(e,"G",(function(){return l})),a.d(e,"E",(function(){return u})),a.d(e,"T",(function(){return d})),a.d(e,"F",(function(){return m})),a.d(e,"Q",(function(){return f})),a.d(e,"P",(function(){return p})),a.d(e,"g",(function(){return h})),a.d(e,"e",(function(){return v})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return y})),a.d(e,"C",(function(){return b})),a.d(e,"U",(function(){return _})),a.d(e,"X",(function(){return A})),a.d(e,"W",(function(){return C})),a.d(e,"V",(function(){return V})),a.d(e,"J",(function(){return w})),a.d(e,"q",(function(){return x})),a.d(e,"d",(function(){return D})),a.d(e,"p",(function(){return k})),a.d(e,"r",(function(){return F})),a.d(e,"i",(function(){return I})),a.d(e,"n",(function(){return B})),a.d(e,"o",(function(){return L})),a.d(e,"l",(function(){return Z})),a.d(e,"fb",(function(){return j})),a.d(e,"H",(function(){return E})),a.d(e,"D",(function(){return O})),a.d(e,"bb",(function(){return z})),a.d(e,"db",(function(){return G})),a.d(e,"ab",(function(){return Y})),a.d(e,"eb",(function(){return K})),a.d(e,"cb",(function(){return S})),a.d(e,"S",(function(){return N})),a.d(e,"R",(function(){return T})),a.d(e,"m",(function(){return U})),a.d(e,"k",(function(){return J})),a.d(e,"j",(function(){return P})),a.d(e,"c",(function(){return R})),a.d(e,"a",(function(){return M})),a.d(e,"b",(function(){return q})),a.d(e,"Y",(function(){return W})),a.d(e,"Z",(function(){return Q})),a.d(e,"s",(function(){return X})),a.d(e,"w",(function(){return H})),a.d(e,"v",(function(){return $})),a.d(e,"x",(function(){return tt})),a.d(e,"z",(function(){return et})),a.d(e,"B",(function(){return at})),a.d(e,"A",(function(){return nt})),a.d(e,"y",(function(){return rt})),a.d(e,"u",(function(){return it})),a.d(e,"t",(function(){return st})),a.d(e,"O",(function(){return ct}));var n=a("0c6d");function r(t){return n["a"].get("merchant/menu/lst",t)}function i(){return n["a"].get("merchant/menu/create/form")}function s(t){return n["a"].get("merchant/menu/update/form/".concat(t))}function c(t){return n["a"].delete("merchant/menu/delete/".concat(t))}function o(t){return n["a"].get("system/merchant/lst",t)}function l(t){return n["a"].get("system/merchant/detail/".concat(t))}function u(t){return n["a"].post("system/merchant/create",t)}function d(t,e){return n["a"].post("system/merchant/update/".concat(t),e)}function m(t){return n["a"].get("system/merchant/delete/".concat(t,"/form"))}function f(t,e){return n["a"].post("system/merchant/status/".concat(t),{status:e})}function p(t){return n["a"].get("system/merchant/password/form/".concat(t))}function h(t){return n["a"].get("system/merchant/category/lst",t)}function v(){return n["a"].get("system/merchant/category/form")}function g(t){return n["a"].get("system/merchant/category/form/".concat(t))}function y(t){return n["a"].delete("system/merchant/category/".concat(t))}function b(t,e){return n["a"].get("merchant/order/lst/".concat(t),e)}function _(t){return n["a"].get("merchant/order/mark/".concat(t,"/form"))}function A(t,e){return n["a"].get("merchant/order/refund/lst/".concat(t),e)}function C(t){return n["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function V(t,e){return n["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function w(t){return n["a"].post("system/merchant/login/".concat(t))}function x(t){return n["a"].get("merchant/intention/lst",t)}function D(t){return n["a"].get("merchant/intention/mark/".concat(t,"/form"))}function k(t){return n["a"].delete("merchant/intention/delete/".concat(t))}function F(t){return n["a"].get("merchant/intention/status/".concat(t,"/form"))}function I(t){return n["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function B(){return n["a"].get("agreement/sys_intention_agree")}function L(t){return n["a"].post("agreement/sys_intention_agree",t)}function Z(t){return n["a"].get("agreement/".concat(t))}function j(t,e){return n["a"].post("agreement/".concat(t),e)}function E(t,e){return n["a"].post("system/merchant/close/".concat(t),{status:e})}function O(){return n["a"].get("system/merchant/count")}function z(t){return n["a"].post("merchant/type/create",t)}function G(t){return n["a"].get("merchant/type/lst",t)}function Y(){return n["a"].get("merchant/mer_auth")}function K(t,e){return n["a"].post("merchant/type/update/".concat(t),e)}function S(t){return n["a"].delete("merchant/type/delete/".concat(t))}function N(t){return n["a"].get("merchant/type/mark/".concat(t))}function T(t){return n["a"].get("/merchant/type/detail/".concat(t))}function U(){return n["a"].get("merchant/type/options")}function J(){return n["a"].get("system/merchant/category/options")}function P(t){return n["a"].get("system/applyments/lst",t)}function R(t,e){return n["a"].post("system/applyments/status/".concat(t),e)}function M(t){return n["a"].get("system/applyments/detail/".concat(t))}function q(t){return n["a"].get("profitsharing/lst",t)}function W(t){return n["a"].post("profitsharing/again/".concat(t))}function Q(t){return n["a"].get("system/applyments/mark/".concat(t,"/form"))}function X(t){return n["a"].get("profitsharing/export",t)}function H(t){return n["a"].get("margin/lst",t)}function $(t){return n["a"].get("margin/make_up",t)}function tt(t){return n["a"].get("margin/local/".concat(t,"/form"))}function et(t){return n["a"].get("margin/refund/lst",t)}function at(t){return n["a"].get("margin/refund/status/".concat(t,"/form"))}function nt(t){return n["a"].get("margin/refund/mark/".concat(t,"/form"))}function rt(t){return n["a"].get("margin/refund/show/".concat(t))}function it(t,e){return n["a"].get("margin/list/".concat(t),e)}function st(t){return n["a"].get("margin/set/".concat(t,"/form"))}function ct(t,e){return n["a"].get("system/merchant/get_operate_list/".concat(t),e)}},"8c2f":function(t,e,a){"use strict";a("b9d0")},"9cda":function(t,e,a){},b9d0:function(t,e,a){},e572:function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return i}));var n=[{label:"开启",value:1},{label:"关闭",value:0}],r={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},i={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}},eb65:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",[a("div",{staticClass:"mb20"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加店铺类型\n ")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"switchTable",attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"mer_type_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"type_name",label:"店铺类型名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"店铺数量(个)",prop:"merchant_count","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"type_name",label:"店铺保证金","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"spBlock"},[t._v(t._s(e.row.is_margin?e.row.margin+"元":"无"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"type_info",label:"店铺类型要求","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"update_time",label:"最新修改时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDetail(e.row,!1)}}},[t._v("详情\n ")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDetail(e.row,!0)}}},[t._v("编辑\n ")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.mer_type_id,e.$index)}}},[t._v("删除\n ")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("type-detail",{ref:"typeDetail",attrs:{typeId:t.typeId,isCreate:t.isCreate,permissions:t.permissions,drawer:t.drawer},on:{getList:t.getList,closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer}})],1)},r=[],i=(a("ac6a"),a("8492")),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-drawer",{attrs:{"with-header":!1,size:1e3,visible:t.drawer,direction:t.direction,"before-close":t.handleClose},on:{"update:visible":function(e){t.drawer=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.create?a("div",{staticClass:"head",staticStyle:{padding:"20px 10px 15px"}},[a("div",{staticClass:"full"},[a("div",{staticClass:"text"},[a("div",{staticClass:"title"},[a("span",{staticClass:"bold"},[t._v("添加店铺类型")])])])])]):a("div",{staticClass:"head"},[a("div",{staticClass:"full"},[a("img",{staticClass:"order_icon",attrs:{src:t.orderImg,alt:""}}),t._v(" "),a("div",{staticClass:"text"},[a("div",{staticClass:"title"},[a("span",{staticClass:"bold"},[t._v(t._s(t.typeData.type_name))])]),t._v(" "),a("div",[a("span",{staticClass:"mr20"},[t._v("保证金:"+t._s(t.typeData.is_margin?t.typeData.margin+"元":"无"))])])]),t._v(" "),a("div",[t.isEdit?a("el-button",{attrs:{size:"small"},on:{click:t.cancel}},[t._v("取消")]):t._e(),t._v(" "),t.isEdit||t.create?t._e():a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.typeEdit}},[t._v("编辑")]),t._v(" "),t.isEdit&&!t.create?a("el-button",{attrs:{type:"success",size:"small"},on:{click:t.saveInfo}},[t._v("完成")]):t._e()],1)])]),t._v(" "),t.isEdit||t.create?a("typeEditForm",{ref:"editForm",attrs:{typeId:t.typeId,isCreate:t.create,activeName:t.activeName,permissions:t.permissions,formValidate:t.formValidate},on:{success:t.saveSuccess,handleClose:t.handleClose}}):a("type-info",{ref:"typeInfo",attrs:{typeData:t.typeData,activeName:t.activeName}})],1),t._v(" "),t.create?a("div",{staticClass:"footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.submitInfo}},[t._v("提交")])],1):t._e()])],1)},c=[],o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-tabs",{attrs:{type:"border-card"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[a("el-tab-pane",{attrs:{label:"基本信息",name:"basic"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("店铺类型详情")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("店铺类型名称:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.typeData.type_name)+"\n ")])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("店铺保证金:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.typeData.is_margin?t.typeData.margin+"元":"无"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("店铺类型要求:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.typeData.type_info))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("已有店铺数量:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.typeData.merchant_count))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("其他说明:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.typeData.description||"无"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("创建时间:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.typeData.create_time))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("最新修改时间:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.typeData.update_time))])])])])]),t._v(" "),a("el-tab-pane",{attrs:{label:"权限信息",name:"permission"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("权限管理")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("权限范围:")]),t._v(" "),a("div",{staticClass:"value"},[a("el-tree",{ref:"treeDetail",attrs:{data:t.typeData.options,props:{label:"title"}}})],1)])])])])],1)},l=[],u={props:{typeData:{type:Object,default:{}},activeName:{type:String,default:"basic"}},data:function(){return{loading:!0,typeId:"",direction:"rtl",name:this.activeName}},filters:{},methods:{}},d=u,m=(a("6686"),a("2877")),f=Object(m["a"])(d,o,l,!1,null,"1d069a55",null),p=f.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form",{ref:"formValidate",attrs:{size:"small",rules:t.ruleValidate,model:t.formValidate,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{type:"border-card"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[a("el-tab-pane",{attrs:{label:"基本信息",name:"basic"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("店铺类型详情")]),t._v(" "),a("el-row",{staticClass:"mt20"},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"店铺类型名称:",prop:"type_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请填写店铺类型名称"},model:{value:t.formValidate.type_name,callback:function(e){t.$set(t.formValidate,"type_name",e)},expression:"formValidate.type_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"店铺保证金:"}},[a("el-radio-group",{model:{value:t.formValidate.is_margin,callback:function(e){t.$set(t.formValidate,"is_margin",e)},expression:"formValidate.is_margin"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("无")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("有")])],1),t._v(" "),1==t.formValidate.is_margin?a("span",[a("el-input",{staticStyle:{width:"120px","margin-left":"8px"},attrs:{placeholder:"请填写保证金"},model:{value:t.formValidate.margin,callback:function(e){t.$set(t.formValidate,"margin",e)},expression:"formValidate.margin"}}),t._v(" 元\n ")],1):t._e()],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"店铺类型要求:"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"textarea",rows:3,placeholder:"请填写店铺类型要求"},model:{value:t.formValidate.type_info,callback:function(e){t.$set(t.formValidate,"type_info",e)},expression:"formValidate.type_info"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"其他说明:"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"textarea",rows:3,placeholder:"请填写其他说明"},model:{value:t.formValidate.description,callback:function(e){t.$set(t.formValidate,"description",e)},expression:"formValidate.description"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备注:"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"textarea",rows:3,placeholder:"请填写备注"},model:{value:t.formValidate.mark,callback:function(e){t.$set(t.formValidate,"mark",e)},expression:"formValidate.mark"}})],1)],1)],1),t._v(" "),a("el-row",[t.create?t._e():a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"已有店铺数量:"}},[a("span",[t._v(t._s(t.formValidate.merchant_count))])])],1)],1),t._v(" "),a("el-row",[t.create?t._e():a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"创建时间:"}},[a("span",[t._v(t._s(t.formValidate.create_time))])])],1)],1),t._v(" "),a("el-row",[t.create?t._e():a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"最新修改时间:"}},[a("span",[t._v(t._s(t.formValidate.update_time))])])],1)],1)],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"权限信息",name:"permission"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("权限管理")]),t._v(" "),a("el-form-item",{attrs:{prop:"auth"}},[a("el-tree",{ref:"tree",attrs:{data:t.permissions,"show-checkbox":"","node-key":"value","default-checked-keys":t.formValidate.auth||[]},on:{"hook:mounted":function(e){return t.$refs.tree.setCheckedKeys(t.formValidate.auth||[])},check:function(e){t.formValidate.auth=t.$refs.tree.getCheckedKeys(),t.$refs.formValidate.validateField("auth")}}})],1)],1)])],1)],1)},v=[],g=(a("7f7f"),a("c80c")),y=(a("96cf"),a("3b8d")),b={props:{formValidate:{type:Object,default:{}},permissions:{type:Array,default:[!1]},activeName:{type:String,default:"basic"},isCreate:{type:Boolean,default:!1}},data:function(){return{loading:!1,merId:"",direction:"rtl",name:"basic",create:this.isCreate,ruleValidate:{type_name:[{required:!0,message:"请输入店铺类型",trigger:"blur"}],auth:[{required:!0,message:"请选择店铺权限",trigger:"change"}]}}},filters:{},mounted:function(){},methods:{onSubmit:function(t){var e=this;this.$refs["formValidate"].validate((function(a){a&&(e.loading=!0,Object(i["eb"])(t,e.formValidate).then(function(){var t=Object(y["a"])(Object(g["a"])().mark((function t(a){return Object(g["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(a.message),e.loading=!1,e.$emit("success");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message),e.loading=!1})))}))},resetForm:function(){this.$refs.formValidate.resetFields()},addType:function(){this.loading=!1},editInit:function(){this.name="basic",this.setChecked()},setChecked:function(){this.$refs.tree&&this.$refs.tree.setCheckedKeys(this.formValidate.auth)},handleCreateType:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(i["bb"])(e.formValidate).then(function(){var t=Object(y["a"])(Object(g["a"])().mark((function t(a){return Object(g["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(a.message),e.$emit("success");case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))}))}}},_=b,A=(a("75b7"),Object(m["a"])(_,h,v,!1,null,"6946af70",null)),C=A.exports,V={props:{drawer:{type:Boolean,default:!1},isCreate:{type:Boolean,default:!1},permissions:{type:Array,default:[!1]}},components:{typeInfo:p,typeEditForm:C},data:function(){return{loading:!0,typeId:"",direction:"rtl",activeName:"basic",isEdit:!1,typeData:{},create:this.isCreate,orderImg:a("ef19"),formValidate:{type_name:"",type_info:"",is_margin:1,margin:0,auth:[],description:"",update_time:"",create_time:""}}},filters:{},methods:{handleClose:function(){this.$emit("closeDrawer")},saveSuccess:function(){var t=this;this.activeName="basic",this.$emit("closeDrawer"),setTimeout((function(){t.$emit("getList")}),100)},getInfo:function(t,e){var a=this;this.typeId=t,this.isEdit=e,this.create=!1,this.loading=!0,Object(i["R"])(t).then((function(t){a.loading=!1,a.isEdit&&a.$refs.editForm.resetForm(),a.typeData=t.data;var e=t.data;a.formValidate={type_name:e.type_name,type_info:e.type_info,mark:e.mark,is_margin:e.is_margin||0,margin:e.margin||0,auth:e.auth_ids,description:e.description,update_time:e.update_time,create_time:e.create_time,merchant_count:e.merchant_count||0},a.$nextTick((function(){a.$refs.editForm.name="basic",a.$refs.editForm.setChecked()}))})).catch((function(t){a.loading=!1,a.$message.error(t.message)}))},typeEdit:function(){this.isEdit=!0,this.$refs.editForm.editInit()},addType:function(){var t=this;this.loading=!1,this.create=!0,this.$nextTick((function(){t.$refs.editForm.name="basic",t.$refs.editForm.resetForm(),t.$refs.editForm.editInit()}))},cancel:function(){this.create?this.drawer=!1:this.isEdit=!1},saveInfo:function(){this.$refs.editForm.onSubmit(this.typeId)},submitInfo:function(){this.$refs.editForm.handleCreateType("formValidate")}}},w=V,x=(a("5599"),Object(m["a"])(w,s,c,!1,null,"4bfa7294",null)),D=x.exports,k=a("e572"),F=a("83d6"),I={name:"MerchantList",components:{typeDetail:D},data:function(){return{fromList:k["a"],roterPre:F["roterPre"],listLoading:!0,append:!0,permissions:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20},formValidate:{type_name:"",type_info:"",is_margin:1,margin:0,auth:[],description:""},isEdit:!1,isCreate:!1,typeId:"",drawer:!1}},mounted:function(){this.getList("")},methods:{getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["db"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1,e.jurisdiction()})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)},onAdd:function(){this.drawer=!0,this.$refs.typeDetail.isEdit=!0,this.isCreate=!0,this.$refs.typeDetail.addType(),this.$refs.tree&&this.$refs.tree.setCheckedKeys([])},jurisdiction:function(){var t=this;Object(i["ab"])().then((function(e){function a(t){return t.forEach((function(t){t.value=t.id,t.label=t.title,delete t.id,delete t.title,t.children&&(t.children.length?a(t.children):delete t.children)})),t}t.permissions=a(e.data)}))},handleDetail:function(t,e){this.typeId=t.mer_type_id,this.drawer=!0,this.isEdit=e,this.isCreate=!1,this.$refs.typeDetail.getInfo(this.typeId,e)},changeDrawer:function(t){this.drawer=t},closeDrawer:function(){this.drawer=!1},handleDelete:function(t){var e=this;this.$modalSure("确定删除该店铺类型吗").then((function(){Object(i["cb"])(t).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}))},handleMark:function(t){var e=this;this.$modalForm(Object(i["S"])(t)).then((function(){return e.getList()}))}}},B=I,L=(a("8c2f"),Object(m["a"])(B,n,r,!1,null,"6268efc3",null));e["default"]=L.exports},ef19:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoA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