ERP/static/js/chunk-71f5.80180927.js
beyond e4cd916a0c beyond 8.1 version2
beyond 8.1 version2
2019-08-01 19:52:12 +08:00

1 line
29 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-71f5"],{"/o/u":function(e,t,a){"use strict";var l=a("0jLL");a.n(l).a},"0jLL":function(e,t,a){},A07f:function(e,t,a){},JnjV:function(e,t,a){"use strict";var l=a("A07f");a.n(l).a},j5pP:function(e,t,a){"use strict";a.r(t);var l=a("P2sY"),i=a.n(l),o=a("VG0r"),r=a("ZySA"),s=a("Mz3J"),n={components:{MyEmp:a("777i").a},props:{control:{type:Boolean,default:!1},editdata:{type:Object,default:null}},data:function(){return{editVisible:this.control,personalForm:this.editdata,picids:[],detailpicid:[],empcontrol:!1,picidsVisible:!1,picidsImageUrl:"",picidsData:{type:2},detailpicVisible:!1,detailpicImageUrl:"",detailpicData:{type:7},categorys:[],types:[],levels:[],supplierid:"",personalrules:{code:[{required:!0,message:"请输入物料编码",trigger:"blur"}],productName:[{required:!0,message:"请输入产品名称",trigger:"blur"}],valuation:[{required:!0,message:"请选择计价方式",trigger:"change"}],costPrice:[{required:!0,message:"请输入成本价",trigger:"blur"}],salePrice:[{required:!0,message:"请输入零售价",trigger:"blur"}],purchasePrice:[{required:!0,message:"请输入采购价",trigger:"blur"}]}}},watch:{control:function(){this.editVisible=this.control},editdata:function(){this.personalForm=this.editdata,this.buyerId=this.editdata.buyerName,console.log(this.editdata)}},created:function(){this.getcategorys()},methods:{getcategorys:function(){var e=this;Object(o.l)(1).then(function(t){console.log(t),200===t.data.ret?e.categorys=t.data.data.content.list:e.$notify.error({title:"错误",message:"出错了",offset:100})}),Object(o.l)(2).then(function(t){200===t.data.ret?e.types=t.data.data.content.list:e.$notify.error({title:"错误",message:"出错了",offset:100})}),Object(o.l)(3).then(function(t){200===t.data.ret?e.levels=t.data.data.content.list:e.$notify.error({title:"错误",message:"出错了",offset:100})})},submitUpload:function(){this.$refs.upload.submit()},handlepicRemove:function(e,t){console.log(e,t)},handlepicPreview:function(e){this.picidsImageUrl=e.url,this.picidsVisible=!0},handlepicsuccess:function(e){this.picids.push(e.data.content.picId),console.log(e.data.content.picId)},detailpicsubmitUpload:function(){this.$refs.detailpicupload.submit()},handledetailpicRemove:function(e,t){console.log(e,t)},handledetailpicPreview:function(e){this.picidsImageUrl=e.url,this.picidsVisible=!0},handledetailpicsuccess:function(e){this.detailpicid.push(e.data.content.picId),console.log(e.data.content.picId)},handlechoose:function(){this.empcontrol=!0},personName:function(e){console.log(e),this.supplierid=e.supplierName,this.personalForm.supplierid=e.id},handleEditok:function(){var e=this;this.personalForm.picids=this.picids,this.personalForm.detailpicid=this.detailpicid,console.log(this.personalForm),Object(o.h)(this.personalForm).then(function(t){200===t.data.ret?(e.$notify({title:"操作成功",message:"操作成功",type:"success",duration:1e3,offset:100}),e.$emit("rest",!0),e.restAllForm(),e.$refs.personalForm.clearValidate(),e.$refs.personalForm.resetFields(),e.$refs.personalForm2.clearValidate(),e.$refs.personalForm2.resetFields(),e.$refs.detailpicupload.clearFiles(),e.$refs.upload.clearFiles(),e.editVisible=!1):e.$notify.error({title:"错误",message:"出错了",offset:100})})},handlecancel:function(){this.restAllForm(),this.$refs.personalForm.clearValidate(),this.$refs.personalForm.resetFields(),this.$refs.personalForm2.clearValidate(),this.$refs.personalForm2.resetFields(),this.$refs.detailpicupload.clearFiles(),this.$refs.upload.clearFiles(),this.editVisible=!1},restAllForm:function(){this.personalForm={code:"",barcode:"",productname:"",typeid:"",categoryid:"",color:"",brand:"",kpigrade:"",point:"",zhibaoqi:"",weight:"",volume:"",costprice:"",tradeprice:"",saleprice:"",purchaseprice:"",lowerprice:"",supplierid:"",createid:"",level:"",purchasemeasurement:"",salemeasurement:"",stockmeasurement:"",producemeasurement:"",source:"",valuation:"",isactive:"",picids:[],detailpicid:[],memberprice:""},this.supplierid=""}}},c=(a("/o/u"),a("KHd+")),p=Object(c.a)(n,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.editVisible,control:e.control,editdata:e.editdata,"close-on-press-escape":!1,top:"10px",title:"修改供应商"},on:{"update:visible":function(t){e.editVisible=t},close:function(t){e.$emit("update:control",!1)}}},[a("h2",{ref:"geren",staticClass:"form-name"},[e._v("基本信息")]),e._v(" "),a("div",{staticClass:"container"},[a("el-form",{ref:"personalForm",staticClass:"demo-ruleForm",staticStyle:{"margin-left":"30px"},attrs:{model:e.personalForm,rules:e.personalrules,inline:!0,"status-icon":"","label-position":"top","label-width":"300px"}},[a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.code"),prop:"code"}},[a("el-input",{attrs:{placeholder:"请输入物料编码",disabled:""},model:{value:e.personalForm.code,callback:function(t){e.$set(e.personalForm,"code",t)},expression:"personalForm.code"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.productname"),prop:"productname"}},[a("el-input",{attrs:{placeholder:"请输入产品名称",disabled:""},model:{value:e.personalForm.productName,callback:function(t){e.$set(e.personalForm,"productName",t)},expression:"personalForm.productName"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.barcode")}},[a("el-input",{attrs:{placeholder:"请输入条码",disabled:""},model:{value:e.personalForm.barCode,callback:function(t){e.$set(e.personalForm,"barCode",t)},expression:"personalForm.barCode"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.categoryid")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择物品分类",disabled:""},model:{value:e.personalForm.categoryId,callback:function(t){e.$set(e.personalForm,"categoryId",t)},expression:"personalForm.categoryId"}},e._l(e.categorys,function(e,t){return a("el-option",{key:t,attrs:{label:e.categoryName,value:e.id}})}))],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.typeid")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择规格型号",disabled:""},model:{value:e.personalForm.typeId,callback:function(t){e.$set(e.personalForm,"typeId",t)},expression:"personalForm.typeId"}},e._l(e.types,function(e,t){return a("el-option",{key:t,attrs:{label:e.categoryName,value:e.id}})}))],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.purchasemeasurement")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择采购计量单位"},model:{value:e.personalForm.purchaseMeasurement,callback:function(t){e.$set(e.personalForm,"purchaseMeasurement",t)},expression:"personalForm.purchaseMeasurement"}},[a("el-option",{attrs:{value:"1",label:"类1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"类2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.salemeasurement")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择销售计量单位"},model:{value:e.personalForm.saleMeasurement,callback:function(t){e.$set(e.personalForm,"saleMeasurement",t)},expression:"personalForm.saleMeasurement"}},[a("el-option",{attrs:{value:"1",label:"类1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"类2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.stockmeasurement")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择库存计量单位"},model:{value:e.personalForm.stockMeasurement,callback:function(t){e.$set(e.personalForm,"stockMeasurement",t)},expression:"personalForm.stockMeasurement"}},[a("el-option",{attrs:{value:"1",label:"类1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"类2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.producemeasurement")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择生产计量单位"},model:{value:e.personalForm.produceMeasurement,callback:function(t){e.$set(e.personalForm,"produceMeasurement",t)},expression:"personalForm.produceMeasurement"}},[a("el-option",{attrs:{value:"1",label:"类1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"类2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.color")}},[a("el-input",{attrs:{placeholder:"请输入颜色",disabled:""},model:{value:e.personalForm.color,callback:function(t){e.$set(e.personalForm,"color",t)},expression:"personalForm.color"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.brand")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择品牌",disabled:""},model:{value:e.personalForm.brand,callback:function(t){e.$set(e.personalForm,"brand",t)},expression:"personalForm.brand"}},[a("el-option",{attrs:{value:"1",label:"类1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"类2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.level")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择档次级别"},model:{value:e.personalForm.level,callback:function(t){e.$set(e.personalForm,"level",t)},expression:"personalForm.level"}},e._l(e.levels,function(e,t){return a("el-option",{key:t,attrs:{label:e.categoryName,value:e.id}})}))],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.supplierid")}},[a("el-input",{attrs:{placeholder:"请选择供应商"},on:{focus:e.handlechoose},model:{value:e.supplierid,callback:function(t){e.supplierid=t},expression:"supplierid"}})],1),e._v(" "),a("my-emp",{attrs:{control:e.empcontrol},on:{"update:control":function(t){e.empcontrol=t},personName:e.personName}}),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.source")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择来源"},model:{value:e.personalForm.source,callback:function(t){e.$set(e.personalForm,"source",t)},expression:"personalForm.source"}},[a("el-option",{attrs:{value:"1",label:"类1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"类2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.kpigrade")}},[a("el-input",{attrs:{placeholder:"请输入绩效分",clearable:""},model:{value:e.personalForm.kpiGrade,callback:function(t){e.$set(e.personalForm,"kpiGrade",t)},expression:"personalForm.kpiGrade"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.point")}},[a("el-input",{attrs:{placeholder:"请输入商品积分",clearable:""},model:{value:e.personalForm.point,callback:function(t){e.$set(e.personalForm,"point",t)},expression:"personalForm.point"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.zhibaoqi")}},[a("el-input",{attrs:{placeholder:"请输入质保期",clearable:""},model:{value:e.personalForm.zhiBaoQi,callback:function(t){e.$set(e.personalForm,"zhiBaoQi",t)},expression:"personalForm.zhiBaoQi"}},[a("template",{slot:"append"},[e._v("天")])],2)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.weight")}},[a("el-input",{attrs:{placeholder:"请输入重量",clearable:""},model:{value:e.personalForm.weight,callback:function(t){e.$set(e.personalForm,"weight",t)},expression:"personalForm.weight"}},[a("template",{slot:"append"},[e._v("KG")])],2)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.volume")}},[a("el-input",{attrs:{placeholder:"请输入体积",clearable:""},model:{value:e.personalForm.volume,callback:function(t){e.$set(e.personalForm,"volume",t)},expression:"personalForm.volume"}},[a("template",{slot:"append"},[e._v("m³")])],2)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.isactive")}},[a("el-radio-group",{staticStyle:{width:"80%"},model:{value:e.personalForm.isActive,callback:function(t){e.$set(e.personalForm,"isActive",t)},expression:"personalForm.isActive"}},[a("el-radio",{staticStyle:{width:"50%"},attrs:{label:1}},[e._v("YES")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("NO")])],1)],1)],1)],1),e._v(" "),a("h2",{ref:"lianxi",staticClass:"form-name"},[e._v("价格信息")]),e._v(" "),a("div",{staticClass:"container"},[a("el-form",{ref:"personalForm2",staticClass:"demo-ruleForm",staticStyle:{"margin-left":"30px"},attrs:{model:e.personalForm,rules:e.personalrules,inline:!0,"status-icon":"","label-position":"top","label-width":"300px"}},[a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.valuation"),prop:"valuation"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.personalForm.valuation,callback:function(t){e.$set(e.personalForm,"valuation",t)},expression:"personalForm.valuation"}},[a("el-option",{attrs:{value:"1",label:"类1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"类2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.costprice"),prop:"costprice"}},[a("el-input",{attrs:{placeholder:"请输入成本价",clearable:""},model:{value:e.personalForm.costPrice,callback:function(t){e.$set(e.personalForm,"costPrice",t)},expression:"personalForm.costPrice"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.tradeprice")}},[a("el-input",{attrs:{placeholder:"请输入批发价",clearable:""},model:{value:e.personalForm.tradePrice,callback:function(t){e.$set(e.personalForm,"tradePrice",t)},expression:"personalForm.tradePrice"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.saleprice"),prop:"saleprice"}},[a("el-input",{attrs:{placeholder:"请输入零售价",clearable:""},model:{value:e.personalForm.salePrice,callback:function(t){e.$set(e.personalForm,"salePrice",t)},expression:"personalForm.salePrice"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.purchaseprice"),prop:"purchaseprice"}},[a("el-input",{attrs:{placeholder:"请输入采购价",clearable:""},model:{value:e.personalForm.purchasePrice,callback:function(t){e.$set(e.personalForm,"purchasePrice",t)},expression:"personalForm.purchasePrice"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.lowerprice")}},[a("el-input",{attrs:{placeholder:"请输入最低价",clearable:""},model:{value:e.personalForm.lowerPrice,callback:function(t){e.$set(e.personalForm,"lowerPrice",t)},expression:"personalForm.lowerPrice"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Product.memberprice")}},[a("el-input",{attrs:{placeholder:"请输入会员价",clearable:""},model:{value:e.personalForm.memberPrice,callback:function(t){e.$set(e.personalForm,"memberPrice",t)},expression:"personalForm.memberPrice"}})],1)],1)],1),e._v(" "),a("h2",{staticClass:"form-name"},[e._v("图片信息")]),e._v(" "),a("div",{staticClass:"container"},[a("el-form",{staticClass:"demo-ruleForm",staticStyle:{"margin-left":"30px"},attrs:{model:e.personalForm,inline:!0,"status-icon":"","label-position":"top","label-width":"300px"}},[a("el-form-item",{staticStyle:{width:"100%","margin-top":"1%"},attrs:{label:e.$t("Product.picids")}},[a("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"small",type:"success"},on:{click:e.submitUpload}},[e._v(e._s(e.$t("public.uploadimage")))]),e._v(" "),a("el-upload",{ref:"upload",attrs:{"on-preview":e.handlepicPreview,"on-remove":e.handlepicRemove,"on-success":e.handlepicsuccess,data:e.picidsData,"auto-upload":!1,action:"http://192.168.1.26:9090/upload/uploadpic","list-type":"picture-card"}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.picidsVisible},on:{"update:visible":function(t){e.picidsVisible=t}}},[a("img",{attrs:{src:e.picidsImageUrl,width:"100%",alt:""}})])],1),e._v(" "),a("el-form-item",{staticStyle:{width:"100%","margin-top":"1%"}},e._l(e.personalForm.picPaths,function(e,t){return a("el-col",{key:t,attrs:{span:8,offset:t>0?2:0}},[a("el-card",{attrs:{"body-style":{padding:"0px",height:"184px"}}},[a("img",{staticClass:"image",staticStyle:{width:"100%"},attrs:{src:e}})])],1)})),e._v(" "),a("el-form-item",{staticStyle:{width:"100%","margin-top":"1%"},attrs:{label:e.$t("Product.detailpicid")}},[a("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"small",type:"success"},on:{click:e.detailpicsubmitUpload}},[e._v(e._s(e.$t("public.uploadimage")))]),e._v(" "),a("el-upload",{ref:"detailpicupload",attrs:{"on-preview":e.handledetailpicPreview,"on-remove":e.handledetailpicRemove,"on-success":e.handledetailpicsuccess,data:e.detailpicData,"auto-upload":!1,action:"http://192.168.1.26:9090/upload/uploadpic","list-type":"picture-card"}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.detailpicVisible},on:{"update:visible":function(t){e.detailpicVisible=t}}},[a("img",{attrs:{src:e.detailpicImageUrl,width:"100%",alt:""}})])],1),e._v(" "),a("el-form-item",{staticStyle:{width:"100%","margin-top":"1%"}},e._l(e.personalForm.detailPicPaths,function(e,t){return a("el-col",{key:t,attrs:{span:8,offset:t>0?2:0}},[a("el-card",{attrs:{"body-style":{padding:"0px",height:"184px"}}},[a("img",{staticClass:"image",staticStyle:{width:"100%"},attrs:{src:e}})])],1)}))],1)],1),e._v(" "),a("div",{staticClass:"buttons",staticStyle:{"margin-top":"20px","margin-left":"30px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleEditok()}}},[e._v("修改")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handlecancel()}}},[e._v("取消")])],1)])},[],!1,null,"dd3b57b6",null);p.options.__file="MyDialog.vue";var d=p.exports,u={name:"ProductList",directives:{waves:r.a},components:{Pagination:s.a,MyDialog:d},filters:{genderFilter:function(e){return{1:"男",2:"女"}[e]}},data:function(){return{moreaction:"",downloadLoading:!1,list:[],total:0,tableKey:0,listLoading:!0,getemplist:{productid:"",code:"",productname:"",categoryid:"",typeid:"",isactive:"",Productid:"",pagenum:1,pagesize:10},personalForm:{},editVisible:!1}},mounted:function(){this.getlist()},methods:{getlist:function(){var e=this;this.listLoading=!0,Object(o.j)(this.getemplist).then(function(t){200===t.data.ret?(e.list=t.data.data.content.list,e.total=t.data.data.content.totalCount):e.$notify.error({title:"错误",message:"出错了",offset:100}),setTimeout(function(){e.listLoading=!1},50)})},handleFilter:function(){var e=this;this.getemplist.pagenum=1,Object(o.j)(this.getemplist).then(function(t){200===t.data.ret?(e.list=t.data.data.content.list,e.total=t.data.data.content.totalCount):e.$notify.error({title:"错误",message:"出错了",offset:100})})},handleEdit:function(e){console.log(e),this.editVisible=!0,this.personalForm=i()({},e),this.personalForm.source=String(e.source),this.personalForm.valuation=String(e.valuation)},refreshlist:function(e){!0===e&&this.getlist()},handleSelectionChange:function(e){this.moreaction=e},handleCommand:function(e){var t=this,a=this.moreaction.map(function(e){return e.id}).join();"delete"===e&&this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.g)(a).then(function(e){200===e.data.ret?(t.$notify({title:"删除成功",type:"success",offset:100}),t.getlist()):t.$notify.error({title:"错误",message:"出错了",offset:100})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},handleDelete:function(e){var t=this;this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.g)(e.id).then(function(e){200===e.data.ret?(t.$notify({title:"删除成功",type:"success",offset:100}),t.getlist()):t.$notify.error({title:"错误",message:"出错了",offset:100})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},handleAdd:function(){this.$router.push("/Product/NewProduct")},handleExport:function(){var e=this;this.downloadLoading=!0,Promise.all([a.e("chunk-ef4a"),a.e("chunk-6b3a")]).then(a.bind(null,"S/jZ")).then(function(t){var a=e.formatJson(["code","productName","category","productType","color","kpiGrade","point","costPrice","purchasePrice","createId","createTime"],e.list);t.export_json_to_excel({header:["物料编码","产品名称","物品分类","规格型号","颜色","绩效分","商品积分","成本价","采购价","创建者","创建时间"],data:a,filename:"物品资料表"}),e.downloadLoading=!1})},formatJson:function(e,t){return t.map(function(t){return e.map(function(e){return t[e]})})},handlePrint:function(){console.log(456)}}},m=(a("JnjV"),Object(c.a)(u,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ERP-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("Product.code"),clearable:""},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.getemplist.code,callback:function(t){e.$set(e.getemplist,"code",t)},expression:"getemplist.code"}}),e._v(" "),a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("Product.productname"),clearable:""},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.getemplist.productname,callback:function(t){e.$set(e.getemplist,"productname",t)},expression:"getemplist.productname"}}),e._v(" "),a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("Product.supplierid")},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.getemplist.supplierid,callback:function(t){e.$set(e.getemplist,"supplierid",t)},expression:"getemplist.supplierid"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{value:e.getemplist.categoryid,placeholder:"物品分类",clearable:""},model:{value:e.getemplist.categoryid,callback:function(t){e.$set(e.getemplist,"categoryid",t)},expression:"getemplist.categoryid"}},[a("el-option",{attrs:{value:"1",label:"类1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"类2"}})],1),e._v(" "),a("el-popover",{attrs:{placement:"bottom",width:"500",trigger:"click"}},[a("el-select",{staticStyle:{width:"40%",float:"left","margin-left":"20px"},attrs:{placeholder:"请选择规格型号",clearable:""},model:{value:e.getemplist.typeid,callback:function(t){e.$set(e.getemplist,"typeid",t)},expression:"getemplist.typeid"}},[a("el-option",{attrs:{value:"1",label:"类1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"类2"}})],1),e._v(" "),a("el-select",{staticStyle:{width:"40%",float:"right","margin-right":"20px"},attrs:{placeholder:"请选择上下架",clearable:""},model:{value:e.getemplist.isactive,callback:function(t){e.$set(e.getemplist,"isactive",t)},expression:"getemplist.isactive"}},[a("el-option",{attrs:{value:"1",label:"上1"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"下2"}})],1),e._v(" "),a("div",{staticClass:"seachbutton",staticStyle:{width:"100%",float:"right","margin-top":"20px"}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.handleFilter}},[e._v(e._s(e.$t("public.search")))])],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{slot:"reference",type:"primary"},slot:"reference"},[e._v(e._s(e.$t("public.filter"))),a("svg-icon",{staticStyle:{"margin-left":"4px"},attrs:{"icon-class":"shaixuan"}})],1)],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v(e._s(e.$t("public.search")))]),e._v(" "),a("el-dropdown",{on:{command:e.handleCommand}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary"}},[e._v("\n "+e._s(e.$t("public.batchoperation"))+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{staticStyle:{width:"140px"},attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticStyle:{"text-align":"left"},attrs:{command:"delete"}},[a("svg-icon",{staticStyle:{width:"40px"},attrs:{"icon-class":"shanchu"}}),e._v(e._s(e.$t("public.delete")))],1)],1)],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{loading:e.downloadLoading},on:{click:e.handleExport}},[a("svg-icon",{attrs:{"icon-class":"daochu"}}),e._v(e._s(e.$t("public.export")))],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{icon:"el-icon-printer"},on:{click:e.handlePrint}},[e._v(e._s(e.$t("public.print")))]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px",float:"right"},attrs:{icon:"el-icon-plus",type:"success"},on:{click:e.handleAdd}},[e._v(e._s(e.$t("public.add")))])],1),e._v(" "),a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.code"),resizable:!1,prop:"code",align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.code))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.productname"),resizable:!1,prop:"ProductName",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.productName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.categoryid"),resizable:!1,prop:"category",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.category))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.typeid"),resizable:!1,align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.productType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.color"),resizable:!1,prop:"color",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.color))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.kpigrade"),resizable:!1,prop:"kpiGrade",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.kpiGrade))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.point"),resizable:!1,prop:"point",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.point))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.costprice"),resizable:!1,prop:"costPrice",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.costPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.purchaseprice"),resizable:!1,prop:"purchasePrice",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purchasePrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.createid"),resizable:!1,prop:"createName",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Product.createTime"),resizable:!1,prop:"createTime",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("public.actions"),resizable:!1,align:"center","min-width":"230"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.handleEdit(t.row)}}},[e._v(e._s(e.$t("public.edit")))]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){e.handleDelete(t.row)}}},[e._v(e._s(e.$t("public.delete")))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getemplist.pagenum,limit:e.getemplist.pagesize},on:{"update:page":function(t){e.$set(e.getemplist,"pagenum",t)},"update:limit":function(t){e.$set(e.getemplist,"pagesize",t)},pagination:e.getlist}}),e._v(" "),a("my-dialog",{attrs:{control:e.editVisible,editdata:e.personalForm},on:{"update:control":function(t){e.editVisible=t},"update:editdata":function(t){e.personalForm=t},rest:e.refreshlist}})],1)])},[],!1,null,"38ccab18",null));m.options.__file="ProductList.vue";t.default=m.exports}}]);