chunk-857ba1fe.f58bebf2.js 7.2 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-857ba1fe"],{"14c6":function(o,t,e){"use strict";e.d(t,"p",(function(){return n})),e.d(t,"z",(function(){return a})),e.d(t,"A",(function(){return d})),e.d(t,"w",(function(){return r})),e.d(t,"E",(function(){return i})),e.d(t,"x",(function(){return u})),e.d(t,"F",(function(){return g})),e.d(t,"D",(function(){return c})),e.d(t,"y",(function(){return l})),e.d(t,"B",(function(){return p})),e.d(t,"C",(function(){return f})),e.d(t,"c",(function(){return m})),e.d(t,"g",(function(){return _})),e.d(t,"h",(function(){return b})),e.d(t,"d",(function(){return v})),e.d(t,"e",(function(){return h})),e.d(t,"f",(function(){return y})),e.d(t,"H",(function(){return w})),e.d(t,"K",(function(){return x})),e.d(t,"I",(function(){return k})),e.d(t,"J",(function(){return L})),e.d(t,"G",(function(){return S})),e.d(t,"O",(function(){return C})),e.d(t,"L",(function(){return G})),e.d(t,"M",(function(){return D})),e.d(t,"N",(function(){return T})),e.d(t,"i",(function(){return j})),e.d(t,"n",(function(){return O})),e.d(t,"j",(function(){return z})),e.d(t,"o",(function(){return $})),e.d(t,"k",(function(){return q})),e.d(t,"m",(function(){return J})),e.d(t,"l",(function(){return A})),e.d(t,"P",(function(){return E})),e.d(t,"S",(function(){return N})),e.d(t,"Q",(function(){return P})),e.d(t,"R",(function(){return B})),e.d(t,"t",(function(){return F})),e.d(t,"s",(function(){return H})),e.d(t,"u",(function(){return I})),e.d(t,"v",(function(){return K})),e.d(t,"r",(function(){return M})),e.d(t,"q",(function(){return Q})),e.d(t,"T",(function(){return R})),e.d(t,"U",(function(){return U})),e.d(t,"V",(function(){return V})),e.d(t,"W",(function(){return W})),e.d(t,"a",(function(){return X})),e.d(t,"b",(function(){return Y})),e.d(t,"Y",(function(){return Z})),e.d(t,"X",(function(){return oo}));var s=e("f175");const n=o=>s.a.post("/goods.goods/add",o),a=o=>s.a.post("/goods.goods/edit",o),d=o=>s.a.get("/goods.goods/lists",{params:o}),r=o=>s.a.get("/goods.goods/commonLists",{params:o}),i=o=>s.a.post("/goods.goods/status",o),u=o=>s.a.post("/goods.goods/del",o),g=o=>s.a.post("/goods.goods/changeCategory",o),c=o=>s.a.post("/goods.goods/sort",o),l=o=>s.a.get("/goods.goods/detail",{params:{id:o}}),p=o=>s.a.get("/goods.goods/otherList",{params:o}),f=o=>s.a.post("goods.goods/rename ",o),m=o=>s.a.post("/goods.goods_brand/add",o),_=o=>s.a.get("/goods.goods_brand/lists",{params:o}),b=o=>s.a.post("/goods.goods_brand/status",o),v=o=>s.a.post("/goods.goods_brand/del",o),h=o=>s.a.get("/goods.goods_brand/detail",{params:{id:o}}),y=o=>s.a.post("/goods.goods_brand/edit",o),w=o=>s.a.post("/goods.goods_supplier_category/add",o),x=o=>s.a.get("goods.goods_supplier_category/lists",{params:o}),k=o=>s.a.post("goods.goods_supplier_category/del",{id:o}),L=o=>s.a.post("goods.goods_supplier_category/edit",o),S=o=>s.a.post("/goods.goods_supplier/add",o),C=o=>s.a.get("/goods.goods_supplier/lists",{params:o}),G=o=>s.a.post("goods.goods_supplier/del",{id:o}),D=o=>s.a.get("/goods.goods_supplier/detail",{params:{id:o}}),T=o=>s.a.post("/goods.goods_supplier/edit",o),j=o=>s.a.post("/goods.goods_category/add",o),O=o=>s.a.get("/goods.goods_category/lists",{params:o}),z=o=>s.a.get("/goods.goods_category/commonLists",{params:o}),$=o=>s.a.post("/goods.goods_category/status",o),q=o=>s.a.post("goods.goods_category/del",{id:o}),J=o=>s.a.post("/goods.goods_category/edit",o),A=o=>s.a.get("/goods.goods_category/detail",{params:{id:o}}),E=o=>s.a.post("/goods.goods_unit/add",o),N=o=>s.a.get("/goods.goods_unit/lists",{params:o}),P=o=>s.a.post("goods.goods_unit/del",{id:o}),B=o=>s.a.post("/goods.goods_unit/edit",o),F=o=>s.a.get("goods.goods_comment/lists",{params:o}),H=o=>s.a.post("goods.goods_comment/del",o),I=o=>s.a.post("goods.goods_comment/reply",o),K=o=>s.a.post("/goods.goods_comment/status",o),M=o=>s.a.get("goods.goods_comment_assistant/lists",{params:o}),Q=o=>s.a.post("goods.goods_comment_assistant/add",o),R=o=>s.a.get("goods.goodsServiceGuarantee/lists",o),U=o=>s.a.post("goods.goodsServiceGuarantee/add",o),V=o=>s.a.post("goods.goodsServiceGuarantee/delete",o),W=o=>s.a.post("goods.goodsServiceGuarantee/edit",o),X=()=>s.a.get("goods.GoodsDeliveryTemplate/lists"),Y=o=>s.a.post("goods.GoodsDeliveryTemplate/add",o),Z=o=>s.a.post("goods.GoodsDeliveryTemplate/edit",o),oo=o=>s.a.post("goods.GoodsDeliveryTemplate/delete",o)},a17e:function(o,t,e){"use strict";e.r(t);var s=e("9ab4"),n=e("6ddb"),a=e("1b40"),d=e("0a6d"),r=e("3c50"),i=e("14c6");let u=class extends a.e{constructor(){super(...arguments),this.pager=new n.a}getList(){this.pager.request({callback:i.n,params:{pager_type:1}}).then(o=>{})}handleStatus(o,t){Object(i.o)({id:t,is_show:o}).then(()=>{this.getList()})}handleDelete(o){Object(i.k)(o).then(()=>{this.getList()})}created(){this.getList()}activated(){this.getList()}};u=Object(s.a)([Object(a.a)({components:{LsDialog:d.a,LsPagination:r.a}})],u);var g=u,c=e("2877"),l=Object(c.a)(g,(function(){var o=this,t=o.$createElement,e=o._self._c||t;return e("div",{staticClass:"ls-category"},[e("div",{staticClass:"ls-category__top ls-card"},[e("el-alert",{attrs:{title:"温馨提示:1.用户可以根据商品分类搜索商品,请正确创建分类;2.点击分类名称前符号,显示该商品分类的下级分类。",type:"info","show-icon":"",closable:!1}})],1),e("div",{staticClass:"ls-category__content m-t-16 ls-card"},[e("div",{staticClass:"ls-content__btns"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return o.$router.push("/goods/category_edit")}}},[o._v("新增商品分类")])],1),e("div",{directives:[{name:"loading",rawName:"v-loading",value:o.pager.loading,expression:"pager.loading"}],staticClass:"ls-content__table m-t-16"},[e("u-table",{ref:"plTreeTable",attrs:{data:o.pager.lists,"fixed-columns-roll":"",height:800,treeConfig:{children:"sons",expandAll:!1},"use-virtual":"","row-id":"id",border:!1,size:"mini"}},[e("u-table-column",{attrs:{"tree-node":!0,prop:"name",label:"分类名称"}}),e("u-table-column",{attrs:{label:"分类图片"},scopedSlots:o._u([{key:"default",fn:function(t){return[t.row.image?e("div",{staticClass:"flex"},[e("el-image",{staticStyle:{width:"58px",height:"58px"},attrs:{fit:"cover",src:t.row.image}})],1):o._e()]}}])}),e("u-table-column",{attrs:{label:"是否显示"},scopedSlots:o._u([{key:"default",fn:function(t){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(e){return o.handleStatus(e,t.row.id)}},model:{value:t.row.is_show,callback:function(e){o.$set(t.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),e("u-table-column",{attrs:{prop:"goods_num",label:"商品数量"}}),e("u-table-column",{attrs:{prop:"sort",label:"排序"}}),e("u-table-column",{attrs:{label:"操作"},scopedSlots:o._u([{key:"default",fn:function(t){return[e("div",{staticClass:"flex"},[e("div",[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return o.$router.push({path:"/goods/category_edit",query:{id:t.row.id}})}}},[o._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}})],1),e("ls-dialog",{attrs:{content:"确定删除:"+t.row.name+"?请谨慎操作。"},on:{confirm:function(e){return o.handleDelete(t.row.id)}}},[e("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[o._v("删除")])],1)],1)]}}])})],1)],1)])])}),[],!1,null,"14478f9e",null);t.default=l.exports}}]);