| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-02a828f1"],{"14c6":function(t,e,o){"use strict";o.d(e,"p",(function(){return s})),o.d(e,"z",(function(){return r})),o.d(e,"A",(function(){return n})),o.d(e,"w",(function(){return i})),o.d(e,"E",(function(){return d})),o.d(e,"x",(function(){return l})),o.d(e,"F",(function(){return u})),o.d(e,"D",(function(){return c})),o.d(e,"y",(function(){return p})),o.d(e,"B",(function(){return g})),o.d(e,"C",(function(){return f})),o.d(e,"c",(function(){return m})),o.d(e,"g",(function(){return _})),o.d(e,"h",(function(){return b})),o.d(e,"d",(function(){return h})),o.d(e,"e",(function(){return y})),o.d(e,"f",(function(){return v})),o.d(e,"H",(function(){return x})),o.d(e,"K",(function(){return D})),o.d(e,"I",(function(){return w})),o.d(e,"J",(function(){return O})),o.d(e,"G",(function(){return j})),o.d(e,"O",(function(){return k})),o.d(e,"L",(function(){return z})),o.d(e,"M",(function(){return S})),o.d(e,"N",(function(){return C})),o.d(e,"i",(function(){return L})),o.d(e,"n",(function(){return q})),o.d(e,"j",(function(){return $})),o.d(e,"o",(function(){return G})),o.d(e,"k",(function(){return T})),o.d(e,"m",(function(){return I})),o.d(e,"l",(function(){return P})),o.d(e,"P",(function(){return B})),o.d(e,"S",(function(){return J})),o.d(e,"Q",(function(){return R})),o.d(e,"R",(function(){return E})),o.d(e,"t",(function(){return N})),o.d(e,"s",(function(){return A})),o.d(e,"u",(function(){return F})),o.d(e,"v",(function(){return H})),o.d(e,"r",(function(){return K})),o.d(e,"q",(function(){return M})),o.d(e,"T",(function(){return Q})),o.d(e,"U",(function(){return U})),o.d(e,"V",(function(){return V})),o.d(e,"W",(function(){return W})),o.d(e,"a",(function(){return X})),o.d(e,"b",(function(){return Y})),o.d(e,"Y",(function(){return Z})),o.d(e,"X",(function(){return tt}));var a=o("f175");const s=t=>a.a.post("/goods.goods/add",t),r=t=>a.a.post("/goods.goods/edit",t),n=t=>a.a.get("/goods.goods/lists",{params:t}),i=t=>a.a.get("/goods.goods/commonLists",{params:t}),d=t=>a.a.post("/goods.goods/status",t),l=t=>a.a.post("/goods.goods/del",t),u=t=>a.a.post("/goods.goods/changeCategory",t),c=t=>a.a.post("/goods.goods/sort",t),p=t=>a.a.get("/goods.goods/detail",{params:{id:t}}),g=t=>a.a.get("/goods.goods/otherList",{params:t}),f=t=>a.a.post("goods.goods/rename ",t),m=t=>a.a.post("/goods.goods_brand/add",t),_=t=>a.a.get("/goods.goods_brand/lists",{params:t}),b=t=>a.a.post("/goods.goods_brand/status",t),h=t=>a.a.post("/goods.goods_brand/del",t),y=t=>a.a.get("/goods.goods_brand/detail",{params:{id:t}}),v=t=>a.a.post("/goods.goods_brand/edit",t),x=t=>a.a.post("/goods.goods_supplier_category/add",t),D=t=>a.a.get("goods.goods_supplier_category/lists",{params:t}),w=t=>a.a.post("goods.goods_supplier_category/del",{id:t}),O=t=>a.a.post("goods.goods_supplier_category/edit",t),j=t=>a.a.post("/goods.goods_supplier/add",t),k=t=>a.a.get("/goods.goods_supplier/lists",{params:t}),z=t=>a.a.post("goods.goods_supplier/del",{id:t}),S=t=>a.a.get("/goods.goods_supplier/detail",{params:{id:t}}),C=t=>a.a.post("/goods.goods_supplier/edit",t),L=t=>a.a.post("/goods.goods_category/add",t),q=t=>a.a.get("/goods.goods_category/lists",{params:t}),$=t=>a.a.get("/goods.goods_category/commonLists",{params:t}),G=t=>a.a.post("/goods.goods_category/status",t),T=t=>a.a.post("goods.goods_category/del",{id:t}),I=t=>a.a.post("/goods.goods_category/edit",t),P=t=>a.a.get("/goods.goods_category/detail",{params:{id:t}}),B=t=>a.a.post("/goods.goods_unit/add",t),J=t=>a.a.get("/goods.goods_unit/lists",{params:t}),R=t=>a.a.post("goods.goods_unit/del",{id:t}),E=t=>a.a.post("/goods.goods_unit/edit",t),N=t=>a.a.get("goods.goods_comment/lists",{params:t}),A=t=>a.a.post("goods.goods_comment/del",t),F=t=>a.a.post("goods.goods_comment/reply",t),H=t=>a.a.post("/goods.goods_comment/status",t),K=t=>a.a.get("goods.goods_comment_assistant/lists",{params:t}),M=t=>a.a.post("goods.goods_comment_assistant/add",t),Q=t=>a.a.get("goods.goodsServiceGuarantee/lists",t),U=t=>a.a.post("goods.goodsServiceGuarantee/add",t),V=t=>a.a.post("goods.goodsServiceGuarantee/delete",t),W=t=>a.a.post("goods.goodsServiceGuarantee/edit",t),X=()=>a.a.get("goods.GoodsDeliveryTemplate/lists"),Y=t=>a.a.post("goods.GoodsDeliveryTemplate/add",t),Z=t=>a.a.post("goods.GoodsDeliveryTemplate/edit",t),tt=t=>a.a.post("goods.GoodsDeliveryTemplate/delete",t)},"4ae1":function(t,e,o){"use strict";var a=o("9ab4"),s=o("1b40"),r=o("0a6d");let n=class extends s.e{constructor(){super(...arguments),this.exportData={},this.formData={page_type:0,page_start:1,page_end:200,file_name:""}}handleOpen(){this.getData()}handleConfirm(){const t=this.$loading({lock:!0,text:"正在导出中...",spinner:"el-icon-loading"});this.method({export:2,...this.param,...this.formData,user_id:this.userId,type:this.type,...this.status,page_size:this.pageSize}).then(()=>{this.$refs.dialog.close()}).finally(()=>{t.close()})}getData(){this.method({...this.param,export:1,user_id:this.userId,type:this.type,page_size:this.pageSize,...this.status}).then(t=>{this.exportData=t,this.formData.file_name=t.file_name,this.formData.page_end=t.page_end,this.formData.page_start=t.page_start})}created(){}};Object(a.a)([Object(s.c)()],n.prototype,"method",void 0),Object(a.a)([Object(s.c)()],n.prototype,"param",void 0),Object(a.a)([Object(s.c)()],n.prototype,"status",void 0),Object(a.a)([Object(s.c)()],n.prototype,"userId",void 0),Object(a.a)([Object(s.c)()],n.prototype,"type",void 0),Object(a.a)([Object(s.c)()],n.prototype,"pageSize",void 0),n=Object(a.a)([Object(s.a)({components:{LsDialog:r.a}})],n);var i=n,d=o("2877"),l=Object(d.a)(i,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"export-data inline"},[e("ls-dialog",{ref:"dialog",attrs:{title:"导出设置",width:"500px",top:"35vh","confirm-button-text":"确认导出",async:!0},on:{confirm:t.handleConfirm,open:t.handleOpen}},[e("div",{attrs:{slot:"trigger"},slot:"trigger"},[e("el-button",{attrs:{size:"small"}},[t._v("导出")])],1),e("div",[e("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"120px",size:"small"}},[e("el-form-item",{attrs:{label:"数据量:"}},[t._v(" 预计导出"+t._s(t.exportData.count)+"条数据,共"+t._s(t.exportData.sum_page)+"页,每页"+t._s(t.exportData.page_size)+"条数据 ")]),e("el-form-item",{attrs:{label:"导出限制:"}},[t._v(" 每次导出最大允许"+t._s(t.exportData.max_page)+"页,共"+t._s(t.exportData.all_max_size)+"条数据 ")]),e("el-form-item",{attrs:{label:"导出范围:",required:""}},[e("el-radio-group",{model:{value:t.formData.page_type,callback:function(e){t.$set(t.formData,"page_type",e)},expression:"formData.page_type"}},[e("el-radio",{attrs:{label:0}},[t._v("全部导出")]),e("el-radio",{attrs:{label:1}},[t._v("分页导出")])],1)],1),1==t.formData.page_type?e("el-form-item",{attrs:{label:"分页范围:",required:""}},[e("div",{staticClass:"flex"},[e("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:""},model:{value:t.formData.page_start,callback:function(e){t.$set(t.formData,"page_start",e)},expression:"formData.page_start"}}),e("span",{staticClass:"flex-none m-l-8 m-r-8"},[t._v("页,至")]),e("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:""},model:{value:t.formData.page_end,callback:function(e){t.$set(t.formData,"page_end",e)},expression:"formData.page_end"}})],1)]):t._e(),e("el-form-item",{attrs:{label:"导出文件名称:",prop:"file_name"}},[e("el-input",{attrs:{placeholder:"请输入导出文件名称"},model:{value:t.formData.file_name,callback:function(e){t.$set(t.formData,"file_name",e)},expression:"formData.file_name"}})],1)],1)],1)])],1)}),[],!1,null,null,null);e.a=l.exports},6813:function(t,e,o){"use strict";o("bb88")},9796:function(t,e,o){"use strict";o.r(e);o("14d9");var a=o("9ab4"),s=o("14c6"),r=o("6ddb"),n=o("1b40"),i=o("0a6d"),d=o("3c50"),l=o("4ae1");let u=class extends n.e{constructor(){super(...arguments),this.queryObj={name:""},this.pager=new r.a,this.apiBrandLists=s.g}getList(t){t&&(this.pager.page=t),this.pager.request({callback:s.g,params:{...this.queryObj}})}handleReset(){this.queryObj={name:""},this.getList()}handleStatus(t,e){Object(s.h)({id:e,is_show:t}).then(()=>{this.getList()})}handleDelete(t){Object(s.d)({id:t}).then(()=>{this.getList()})}created(){this.getList()}activated(){this.getList()}};u=Object(a.a)([Object(n.a)({components:{LsDialog:i.a,LsPagination:d.a,ExportData:l.a}})],u);var c=u,p=(o("6813"),o("2877")),g=Object(p.a)(c,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"ls-brand"},[e("div",{staticClass:"ls-brand__top ls-card"},[e("el-alert",{attrs:{title:"温馨提示:1.用户可以根据商品品牌搜索商品;2.发布商品时可以选择商品对应的品牌。",type:"info","show-icon":"",closable:!1}}),e("div",{staticClass:"ls-top__search m-t-16"},[e("el-form",{ref:"form",attrs:{inline:"",model:t.queryObj,"label-width":"80px",size:"small"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"品牌名称"}},[e("el-input",{staticStyle:{width:"280px"},attrs:{placeholder:"请输入品牌名称"},model:{value:t.queryObj.name,callback:function(e){t.$set(t.queryObj,"name",e)},expression:"queryObj.name"}})],1),e("el-form-item",{staticClass:"m-l-20",attrs:{label:""}},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.getList(1)}}},[t._v("查询")]),e("el-button",{attrs:{size:"small"},on:{click:t.handleReset}},[t._v("重置")]),e("export-data",{staticClass:"m-l-10",attrs:{pageSize:t.pager.size,method:t.apiBrandLists,param:t.queryObj}})],1)],1)],1)],1),e("div",{staticClass:"ls-brand__content ls-card m-t-16"},[e("div",{staticClass:"ls-content__btns"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.$router.push("/goods/brand_edit")}}},[t._v("新增品牌")])],1),e("div",{staticClass:"ls-content__table m-t-16"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticStyle:{width:"100%"},attrs:{data:t.pager.lists,size:"mini"}},[e("el-table-column",{attrs:{prop:"name",label:"品牌名称"}}),e("el-table-column",{attrs:{prop:"city",label:"品牌图片"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("el-image",{staticClass:"flex-none",staticStyle:{width:"58px",height:"58px"},attrs:{fit:"cover",src:t.row.image}})]}}])}),e("el-table-column",{attrs:{label:"排序",prop:"sort"}}),e("el-table-column",{attrs:{prop:"city",label:"显示状态"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(e){return t.handleStatus(e,o.row.id)}},model:{value:o.row.is_show,callback:function(e){t.$set(o.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),e("el-table-column",{attrs:{fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.$router.push({path:"/goods/brand_edit",query:{id:o.row.id}})}}},[t._v("编辑")]),e("ls-dialog",{staticClass:"m-l-10 inline",attrs:{content:`确定删除:${o.row.name}?请谨慎操作。`},on:{confirm:function(e){return t.handleDelete(o.row.id)}}},[e("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[t._v("删除")])],1)]}}])})],1)],1),e("div",{staticClass:"flex row-right m-t-16"},[e("ls-pagination",{on:{change:function(e){return t.getList()}},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)])])}),[],!1,null,"293cf8f9",null);e.default=g.exports},bb88:function(t,e,o){}}]);
|