chunk-aefb64d6.9f48d089.js 11 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-aefb64d6"],{"14c6":function(t,e,o){"use strict";o.d(e,"p",(function(){return r})),o.d(e,"z",(function(){return a})),o.d(e,"A",(function(){return i})),o.d(e,"w",(function(){return n})),o.d(e,"E",(function(){return d})),o.d(e,"x",(function(){return l})),o.d(e,"F",(function(){return c})),o.d(e,"D",(function(){return u})),o.d(e,"y",(function(){return p})),o.d(e,"B",(function(){return g})),o.d(e,"C",(function(){return m})),o.d(e,"c",(function(){return f})),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 v})),o.d(e,"f",(function(){return y})),o.d(e,"H",(function(){return k})),o.d(e,"K",(function(){return x})),o.d(e,"I",(function(){return $})),o.d(e,"J",(function(){return C})),o.d(e,"G",(function(){return j})),o.d(e,"O",(function(){return O})),o.d(e,"L",(function(){return w})),o.d(e,"M",(function(){return S})),o.d(e,"N",(function(){return G})),o.d(e,"i",(function(){return q})),o.d(e,"n",(function(){return D})),o.d(e,"j",(function(){return L})),o.d(e,"o",(function(){return V})),o.d(e,"k",(function(){return T})),o.d(e,"m",(function(){return z})),o.d(e,"l",(function(){return E})),o.d(e,"P",(function(){return J})),o.d(e,"S",(function(){return N})),o.d(e,"Q",(function(){return A})),o.d(e,"R",(function(){return K})),o.d(e,"t",(function(){return M})),o.d(e,"s",(function(){return B})),o.d(e,"u",(function(){return F})),o.d(e,"v",(function(){return H})),o.d(e,"r",(function(){return I})),o.d(e,"q",(function(){return P})),o.d(e,"T",(function(){return Q})),o.d(e,"U",(function(){return R})),o.d(e,"V",(function(){return U})),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 s=o("f175");const r=t=>s.a.post("/goods.goods/add",t),a=t=>s.a.post("/goods.goods/edit",t),i=t=>s.a.get("/goods.goods/lists",{params:t}),n=t=>s.a.get("/goods.goods/commonLists",{params:t}),d=t=>s.a.post("/goods.goods/status",t),l=t=>s.a.post("/goods.goods/del",t),c=t=>s.a.post("/goods.goods/changeCategory",t),u=t=>s.a.post("/goods.goods/sort",t),p=t=>s.a.get("/goods.goods/detail",{params:{id:t}}),g=t=>s.a.get("/goods.goods/otherList",{params:t}),m=t=>s.a.post("goods.goods/rename ",t),f=t=>s.a.post("/goods.goods_brand/add",t),_=t=>s.a.get("/goods.goods_brand/lists",{params:t}),b=t=>s.a.post("/goods.goods_brand/status",t),h=t=>s.a.post("/goods.goods_brand/del",t),v=t=>s.a.get("/goods.goods_brand/detail",{params:{id:t}}),y=t=>s.a.post("/goods.goods_brand/edit",t),k=t=>s.a.post("/goods.goods_supplier_category/add",t),x=t=>s.a.get("goods.goods_supplier_category/lists",{params:t}),$=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}),w=t=>s.a.post("goods.goods_supplier/del",{id:t}),S=t=>s.a.get("/goods.goods_supplier/detail",{params:{id:t}}),G=t=>s.a.post("/goods.goods_supplier/edit",t),q=t=>s.a.post("/goods.goods_category/add",t),D=t=>s.a.get("/goods.goods_category/lists",{params:t}),L=t=>s.a.get("/goods.goods_category/commonLists",{params:t}),V=t=>s.a.post("/goods.goods_category/status",t),T=t=>s.a.post("goods.goods_category/del",{id:t}),z=t=>s.a.post("/goods.goods_category/edit",t),E=t=>s.a.get("/goods.goods_category/detail",{params:{id:t}}),J=t=>s.a.post("/goods.goods_unit/add",t),N=t=>s.a.get("/goods.goods_unit/lists",{params:t}),A=t=>s.a.post("goods.goods_unit/del",{id:t}),K=t=>s.a.post("/goods.goods_unit/edit",t),M=t=>s.a.get("goods.goods_comment/lists",{params:t}),B=t=>s.a.post("goods.goods_comment/del",t),F=t=>s.a.post("goods.goods_comment/reply",t),H=t=>s.a.post("/goods.goods_comment/status",t),I=t=>s.a.get("goods.goods_comment_assistant/lists",{params:t}),P=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)},"3d6f":function(t,e,o){"use strict";o("7034")},"5cf7":function(t,e,o){"use strict";var s=o("9ab4"),r=o("0463"),a=o("1b40");let i=class extends a.e{constructor(){super(...arguments),this.options=r.a}get areaValue(){return[this.province,this.city,this.district]}set areaValue(t){this.$emit("update:province",t[0]),this.$emit("update:city",t[1]),this.$emit("update:district",t[2])}};Object(s.a)([Object(a.c)()],i.prototype,"province",void 0),Object(s.a)([Object(a.c)()],i.prototype,"city",void 0),Object(s.a)([Object(a.c)()],i.prototype,"district",void 0),Object(s.a)([Object(a.c)({default:"380px"})],i.prototype,"width",void 0),i=Object(s.a)([a.a],i);var n=i,d=o("2877"),l=Object(d.a)(n,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"area-select"},[o("el-cascader",{style:{width:t.width},attrs:{options:t.options},model:{value:t.areaValue,callback:function(e){t.areaValue=e},expression:"areaValue"}})],1)}),[],!1,null,null,null);e.a=l.exports},"5fb9":function(t,e,o){"use strict";o.r(e);var s=o("9ab4"),r=o("1b40"),a=o("5cf7"),i=o("14c6");let n=class extends r.e{constructor(){super(...arguments),this.loading=!1,this.form={code:"",name:"",supplier_category_id:"",contact:"",mobile:"",landline:"",email:"",city_id:"",district_id:"",province_id:"",address:"",bank_account:"",bank:"",cardholder_name:"",tax_id:"",sort:""},this.rules={code:[{required:!0,message:"请输入供应商编号",trigger:["blur","change"]}],name:[{required:!0,message:"请输入供应商名称",trigger:["blur","change"]}],supplier_category_id:[{required:!0,message:"请选择供应商分类",trigger:["blur","change"]}]},this.categoryLists=[]}handleSave(){this.$refs.form.validate(t=>{if(!t)return!1;(this.id?Object(i.N)(this.form):Object(i.G)(this.form)).then(()=>{this.$router.go(-1)})})}getSupplierCategory(){Object(i.K)({}).then(t=>{this.categoryLists=null==t?void 0:t.lists})}getSupplierDetail(){this.loading=!0,Object(i.M)(this.id).then(t=>{this.form=t,this.loading=!1})}created(){this.id=this.$route.query.id,this.id&&this.getSupplierDetail(),this.getSupplierCategory()}};n=Object(s.a)([Object(r.a)({components:{AreaSelect:a.a}})],n);var d=n,l=(o("3d6f"),o("2877")),c=Object(l.a)(d,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ls-supplier-edit"},[o("div",{staticClass:"ls-card ls-supplier-edit__header"},[o("el-page-header",{attrs:{content:t.id?"编辑供应商":"新增供应商"},on:{back:function(e){return t.$router.go(-1)}}})],1),o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ls-card ls-supplier-edit__form m-t-10"},[o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px",size:"small",rules:t.rules}},[o("el-form-item",{attrs:{label:"供应商编号",prop:"code",required:""}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:"请输入供应商编号"},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}})],1),o("el-form-item",{attrs:{label:"供应商名称",required:"",prop:"name"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:"请输入供应商名称"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),o("el-form-item",{attrs:{label:"供应商分类",required:"",prop:"supplier_category_id"}},[o("el-select",{staticClass:"ls-input",attrs:{placeholder:"请选择供应商分类"},model:{value:t.form.supplier_category_id,callback:function(e){t.$set(t.form,"supplier_category_id",e)},expression:"form.supplier_category_id"}},t._l(t.categoryLists,(function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),o("el-form-item",{attrs:{label:"联系人"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:"请输入联系人"},model:{value:t.form.contact,callback:function(e){t.$set(t.form,"contact",e)},expression:"form.contact"}})],1),o("el-form-item",{attrs:{label:"联系人手机"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:"请输入联系人手机"},model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}})],1),o("el-form-item",{attrs:{label:"座机号码"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:"请输入座机号码"},model:{value:t.form.landline,callback:function(e){t.$set(t.form,"landline",e)},expression:"form.landline"}})],1),o("el-form-item",{attrs:{label:"邮箱"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:""},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1),o("el-form-item",{attrs:{label:"所属地区"}},[o("area-select",{attrs:{province:t.form.province_id,city:t.form.city_id,district:t.form.district_id},on:{"update:province":function(e){return t.$set(t.form,"province_id",e)},"update:city":function(e){return t.$set(t.form,"city_id",e)},"update:district":function(e){return t.$set(t.form,"district_id",e)}}})],1),o("el-form-item",{attrs:{label:"详细地址"}},[o("el-input",{staticClass:"ls-input",attrs:{type:"textarea",rows:"3",placeholder:"请输入详细地址"},model:{value:t.form.address,callback:function(e){t.$set(t.form,"address",e)},expression:"form.address"}})],1),o("el-form-item",{attrs:{label:"银行账号"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:""},model:{value:t.form.bank_account,callback:function(e){t.$set(t.form,"bank_account",e)},expression:"form.bank_account"}})],1),o("el-form-item",{attrs:{label:"开户银行"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:""},model:{value:t.form.bank,callback:function(e){t.$set(t.form,"bank",e)},expression:"form.bank"}})],1),o("el-form-item",{attrs:{label:"持卡人姓名"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:""},model:{value:t.form.cardholder_name,callback:function(e){t.$set(t.form,"cardholder_name",e)},expression:"form.cardholder_name"}})],1),o("el-form-item",{attrs:{label:"税务登记号"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:""},model:{value:t.form.tax_id,callback:function(e){t.$set(t.form,"tax_id",e)},expression:"form.tax_id"}})],1),o("el-form-item",{attrs:{label:"排序"}},[o("el-input",{staticClass:"ls-input",attrs:{placeholder:""},model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort",e)},expression:"form.sort"}})],1)],1)],1),o("div",{staticClass:"ls-supplier-edit__footer bg-white ls-fixed-footer"},[o("div",{staticClass:"btns row-center flex",staticStyle:{height:"100%"}},[o("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.handleSave}},[t._v("保存")])],1)])])}),[],!1,null,"1f60b1ed",null);e.default=c.exports},7034:function(t,e,o){}}]);