| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a30de16e"],{"14c6":function(t,o,e){"use strict";e.d(o,"p",(function(){return a})),e.d(o,"z",(function(){return n})),e.d(o,"A",(function(){return r})),e.d(o,"w",(function(){return d})),e.d(o,"E",(function(){return i})),e.d(o,"x",(function(){return l})),e.d(o,"F",(function(){return u})),e.d(o,"D",(function(){return g})),e.d(o,"y",(function(){return c})),e.d(o,"B",(function(){return p})),e.d(o,"C",(function(){return f})),e.d(o,"c",(function(){return m})),e.d(o,"g",(function(){return h})),e.d(o,"h",(function(){return v})),e.d(o,"d",(function(){return _})),e.d(o,"e",(function(){return b})),e.d(o,"f",(function(){return y})),e.d(o,"H",(function(){return x})),e.d(o,"K",(function(){return w})),e.d(o,"I",(function(){return D})),e.d(o,"J",(function(){return C})),e.d(o,"G",(function(){return j})),e.d(o,"O",(function(){return O})),e.d(o,"L",(function(){return S})),e.d(o,"M",(function(){return L})),e.d(o,"N",(function(){return k})),e.d(o,"i",(function(){return $})),e.d(o,"n",(function(){return G})),e.d(o,"j",(function(){return T})),e.d(o,"o",(function(){return z})),e.d(o,"k",(function(){return E})),e.d(o,"m",(function(){return q})),e.d(o,"l",(function(){return A})),e.d(o,"P",(function(){return J})),e.d(o,"S",(function(){return B})),e.d(o,"Q",(function(){return H})),e.d(o,"R",(function(){return I})),e.d(o,"t",(function(){return K})),e.d(o,"s",(function(){return N})),e.d(o,"u",(function(){return P})),e.d(o,"v",(function(){return V})),e.d(o,"r",(function(){return F})),e.d(o,"q",(function(){return M})),e.d(o,"T",(function(){return Q})),e.d(o,"U",(function(){return R})),e.d(o,"V",(function(){return U})),e.d(o,"W",(function(){return W})),e.d(o,"a",(function(){return X})),e.d(o,"b",(function(){return Y})),e.d(o,"Y",(function(){return Z})),e.d(o,"X",(function(){return tt}));var s=e("f175");const a=t=>s.a.post("/goods.goods/add",t),n=t=>s.a.post("/goods.goods/edit",t),r=t=>s.a.get("/goods.goods/lists",{params:t}),d=t=>s.a.get("/goods.goods/commonLists",{params:t}),i=t=>s.a.post("/goods.goods/status",t),l=t=>s.a.post("/goods.goods/del",t),u=t=>s.a.post("/goods.goods/changeCategory",t),g=t=>s.a.post("/goods.goods/sort",t),c=t=>s.a.get("/goods.goods/detail",{params:{id:t}}),p=t=>s.a.get("/goods.goods/otherList",{params:t}),f=t=>s.a.post("goods.goods/rename ",t),m=t=>s.a.post("/goods.goods_brand/add",t),h=t=>s.a.get("/goods.goods_brand/lists",{params:t}),v=t=>s.a.post("/goods.goods_brand/status",t),_=t=>s.a.post("/goods.goods_brand/del",t),b=t=>s.a.get("/goods.goods_brand/detail",{params:{id:t}}),y=t=>s.a.post("/goods.goods_brand/edit",t),x=t=>s.a.post("/goods.goods_supplier_category/add",t),w=t=>s.a.get("goods.goods_supplier_category/lists",{params:t}),D=t=>s.a.post("goods.goods_supplier_category/del",{id:t}),C=t=>s.a.post("goods.goods_supplier_category/edit",t),j=t=>s.a.post("/goods.goods_supplier/add",t),O=t=>s.a.get("/goods.goods_supplier/lists",{params:t}),S=t=>s.a.post("goods.goods_supplier/del",{id:t}),L=t=>s.a.get("/goods.goods_supplier/detail",{params:{id:t}}),k=t=>s.a.post("/goods.goods_supplier/edit",t),$=t=>s.a.post("/goods.goods_category/add",t),G=t=>s.a.get("/goods.goods_category/lists",{params:t}),T=t=>s.a.get("/goods.goods_category/commonLists",{params:t}),z=t=>s.a.post("/goods.goods_category/status",t),E=t=>s.a.post("goods.goods_category/del",{id:t}),q=t=>s.a.post("/goods.goods_category/edit",t),A=t=>s.a.get("/goods.goods_category/detail",{params:{id:t}}),J=t=>s.a.post("/goods.goods_unit/add",t),B=t=>s.a.get("/goods.goods_unit/lists",{params:t}),H=t=>s.a.post("goods.goods_unit/del",{id:t}),I=t=>s.a.post("/goods.goods_unit/edit",t),K=t=>s.a.get("goods.goods_comment/lists",{params:t}),N=t=>s.a.post("goods.goods_comment/del",t),P=t=>s.a.post("goods.goods_comment/reply",t),V=t=>s.a.post("/goods.goods_comment/status",t),F=t=>s.a.get("goods.goods_comment_assistant/lists",{params:t}),M=t=>s.a.post("goods.goods_comment_assistant/add",t),Q=t=>s.a.get("goods.goodsServiceGuarantee/lists",t),R=t=>s.a.post("goods.goodsServiceGuarantee/add",t),U=t=>s.a.post("goods.goodsServiceGuarantee/delete",t),W=t=>s.a.post("goods.goodsServiceGuarantee/edit",t),X=()=>s.a.get("goods.GoodsDeliveryTemplate/lists"),Y=t=>s.a.post("goods.GoodsDeliveryTemplate/add",t),Z=t=>s.a.post("goods.GoodsDeliveryTemplate/edit",t),tt=t=>s.a.post("goods.GoodsDeliveryTemplate/delete",t)},a689:function(t,o,e){"use strict";e.r(o);var s=e("9ab4"),a=e("1b40"),n=e("0a6d"),r=e("3c50"),d=e("14c6");let i=class extends a.e{valueChange(){this.$nextTick(()=>{this.$refs.form.clearValidate()})}closeDialog(){this.$refs.lsDialog.close()}openDialog(){this.$refs.lsDialog.open()}handleSave(){this.$refs.form.validate((t,o)=>{if(!t)return!1;(this.value.id?Object(d.J)(this.value):Object(d.H)(this.value)).then(()=>{this.closeDialog(),this.$emit("refresh")})})}};Object(s.a)([Object(a.c)()],i.prototype,"value",void 0),Object(s.a)([Object(a.f)("value",{deep:!0})],i.prototype,"valueChange",null),i=Object(s.a)([Object(a.a)({components:{LsDialog:n.a}})],i);var l=i,u=e("2877"),g=Object(u.a)(l,(function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"add-supplier-category"},[e("ls-dialog",{ref:"lsDialog",attrs:{async:!0,width:"740px",top:"30vh",title:t.value.id?"编辑供应商分类":"新增供应商分类",confirmButtonText:"保存"},on:{cancel:t.closeDialog,confirm:t.handleSave}},[e("div",[e("el-form",{ref:"form",attrs:{model:t.value,"label-width":"120px",size:"small"}},[e("el-form-item",{attrs:{label:"分类名称",required:"",prop:"name",rules:[{required:!0,message:"请输入分类名称",trigger:["blur","change"]}]}},[e("el-input",{staticStyle:{width:"380px"},attrs:{placeholder:"请输入分类名称"},model:{value:t.value.name,callback:function(o){t.$set(t.value,"name",o)},expression:"value.name"}})],1),e("el-form-item",{attrs:{label:"排序"}},[e("el-input",{staticStyle:{width:"220px"},attrs:{placeholder:""},model:{value:t.value.sort,callback:function(o){t.$set(t.value,"sort",o)},expression:"value.sort"}}),e("div",{staticClass:"xs muted"},[t._v("排序值必须为整数;数值越小,越靠前")])],1)],1)],1)])],1)}),[],!1,null,null,null).exports,c=e("6ddb");let p=class extends a.e{constructor(){super(...arguments),this.loading=!1,this.pager=new c.a,this.form={name:"",sort:""},this.lists=[],this.count=0}handleAdd(){this.form={name:"",sort:""},this.$refs.addSupplierCategory.openDialog()}handleEdit({id:t,name:o,sort:e}){this.form={id:t,name:o,sort:e},this.$refs.addSupplierCategory.openDialog()}handleDelete(t){Object(d.I)(t).then(()=>{this.getList()})}getList(){this.pager.request({callback:d.K}).then(t=>{this.lists=null==t?void 0:t.lists,this.count=null==t?void 0:t.count})}created(){this.getList()}activated(){this.getList()}};p=Object(s.a)([Object(a.a)({components:{LsDialog:n.a,LsPagination:r.a,AddSupplierCategory:g}})],p);var f=p,m=Object(u.a)(f,(function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"ls-supplier-category"},[e("div",{staticClass:"ls-category__top ls-card"},[e("el-alert",{attrs:{title:"温馨提示:管理供应商分类;",type:"info","show-icon":"",closable:!1}})],1),e("div",{staticClass:"ls-category__content ls-card m-t-16"},[e("div",{staticClass:"ls-content__btns"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.handleAdd}},[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"}],attrs:{data:t.pager.lists,size:"mini"}},[e("el-table-column",{attrs:{prop:"name",label:"分类名称"}}),e("el-table-column",{attrs:{prop:"sort",label:"排序"}}),e("el-table-column",{attrs:{prop:"create_time",label:"创建时间"}}),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.handleEdit(o.row)}}},[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:t.getList},model:{value:t.pager,callback:function(o){t.pager=o},expression:"pager"}})],1)]),e("add-supplier-category",{ref:"addSupplierCategory",attrs:{value:t.form},on:{refresh:t.getList}})],1)}),[],!1,null,"a9fabefe",null);o.default=m.exports}}]);
|