(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-f4de8fdc"],{"7e7f":function(t,e,a){"use strict";a.r(e);var n=a("c8a2"),r={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null}}),methods:{handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t,this.getData(this.table.pageSizes[0],this.table.currentPage)},getData(t,e){Object(n.n)({page:e}).then(t=>{this.table.currentPage=e,this.table.total=t.data.length,this.table.data=t.data})},jumpAdd(){this.$router.push({path:"/application/my/merchant/createGoods",query:{}})},edit(t){this.$router.push({path:"/application/my/merchant/editGoods",query:{id:t}})},del(t){this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(n.l)({id:t}).then(t=>{1==t.code?(this.$message.success("删除成功!"),this.getData(this.table.pageSizes[0],this.table.currentPage)):this.$message.error(t.msg)})}).catch(()=>{})}},mounted(){this.getData(this.table.pageSizes[0],this.table.currentPage)}},c=a("2877"),l=Object(c.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ls-card m-b-12"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpAdd}},[t._v("创建商品")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),a("el-table-column",{attrs:{label:"商品图片",width:"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:t.row.image}})]}}])}),a("el-table-column",{attrs:{prop:"price",label:"价格"}}),a("el-table-column",{attrs:{prop:"stock",label:"库存"}}),a("el-table-column",{attrs:{prop:"limit_per_user",label:"限购"}}),a("el-table-column",{attrs:{prop:"created_time",label:"创建时间"}}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:"","active-value":1,"inactive-value":0},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.edit(e.row.id)}}},[t._v("编辑")]),a("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(a){return t.del(e.row.id)}}},[t._v("删除")])]}}])})],1)],1)}),[],!1,null,null,null);e.default=l.exports},c8a2:function(t,e,a){"use strict";a.d(e,"p",(function(){return r})),a.d(e,"j",(function(){return c})),a.d(e,"i",(function(){return l})),a.d(e,"b",(function(){return o})),a.d(e,"w",(function(){return s})),a.d(e,"g",(function(){return i})),a.d(e,"a",(function(){return u})),a.d(e,"d",(function(){return d})),a.d(e,"f",(function(){return m})),a.d(e,"x",(function(){return h})),a.d(e,"h",(function(){return p})),a.d(e,"z",(function(){return g})),a.d(e,"v",(function(){return f})),a.d(e,"c",(function(){return b})),a.d(e,"e",(function(){return v})),a.d(e,"t",(function(){return y})),a.d(e,"y",(function(){return w})),a.d(e,"u",(function(){return _})),a.d(e,"n",(function(){return k})),a.d(e,"m",(function(){return S})),a.d(e,"o",(function(){return x})),a.d(e,"k",(function(){return C})),a.d(e,"l",(function(){return j})),a.d(e,"s",(function(){return z})),a.d(e,"q",(function(){return G})),a.d(e,"r",(function(){return L}));var n=a("6b2d");const r=t=>n.a.get("/merchant.merchant/list",{params:t}),c=t=>n.a.get("/merchant.merchant/detail",{params:t}),l=t=>n.a.get("/merchant.merchant/del",{params:t}),o=t=>n.a.get("/merchant.merchant/agree",{params:t}),s=t=>n.a.post("/merchant.merchant/reject",t),i=t=>n.a.get("/merchant.merchantCategory/list",{params:t}),u=t=>n.a.post("/merchant.merchantCategory/create",t),d=t=>n.a.get("/merchant.merchantCategory/del",{params:t}),m=t=>n.a.get("/merchant.merchantCategory/detail",{params:t}),h=t=>n.a.post("/merchant.merchantCategory/update",t),p=t=>n.a.post("/merchant.config/edit",t),g=t=>n.a.get("/merchant.config/list",{params:t}),f=t=>n.a.get("/merchant.vipLevel/list",{params:t}),b=t=>n.a.post("/merchant.vipLevel/create",t),v=t=>n.a.get("/merchant.vipLevel/del",{params:t}),y=t=>n.a.get("/merchant.vipLevel/detail",{params:t}),w=t=>n.a.post("/merchant.vipLevel/update",t),_=t=>n.a.get("/merchant.VipLevel/vipAuthList",{params:t}),k=t=>n.a.get("/merchant_goods.MerchantGoods/list",{params:t}),S=t=>n.a.get("/merchant_goods.MerchantGoods/detail",{params:t}),x=t=>n.a.post("/merchant_goods.MerchantGoods/update",t),C=t=>n.a.post("/merchant_goods.MerchantGoods/create",t),j=t=>n.a.get("/merchant_goods.MerchantGoods/del",{params:t}),z=t=>n.a.post("/merchant.template/set",t),G=t=>n.a.get("/merchant.template/del",{params:t}),L=t=>n.a.get("/merchant.template/info",{params:t})}}]);