mirror of
https://github.com/shawncai/ERP.git
synced 2024-11-14 20:56:32 +08:00
1 line
No EOL
28 KiB
JavaScript
1 line
No EOL
28 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-18ff"],{"5Ixk":function(e,t,a){"use strict";a.r(t);var i=a("P2sY"),r=a.n(i),o=a("VG0r"),n=a("ZySA"),l=a("Mz3J"),d={name:"ProductCategory",directives:{waves:n.a},components:{Pagination:l.a},filters:{typeFilter:function(e){return{1:"物品分类",2:"规格型号",3:"档次级别"}[e]},iseffectiveFilter:function(e){return{1:"启用",2:"停用"}[e]}},data:function(){return{moreaction:[],categoryVisible:!1,addCategoryForm:{categoryname:"",type:"",iseffective:""},addCategoryFormRules:{categoryname:[{required:!0,message:"请输入",trigger:"blur"}],type:[{required:!0,message:"请选择",trigger:"change"}],iseffective:[{required:!0,message:"请选择",trigger:"change"}]},editcategoryVisible:!1,editCategoryForm:{categoryName:"",type:"",isEffective:""},editCategoryFormRules:{categoryName:[{required:!0,message:"请输入",trigger:"blur"}],isEffective:[{required:!0,message:"请选择",trigger:"change"}]},downloadLoading:!1,list:[],total:0,tableKey:0,listLoading:!0,getemplist:{categoryname:"",type:"",iseffective:"",pagenum:1,pagesize:10}}},mounted:function(){this.getlist()},methods:{getlist:function(){var e=this;this.listLoading=!0,Object(o.k)(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.k)(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})})},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.e)(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.e)(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:"已取消删除"})})},handleEdit:function(e){console.log(e),this.editcategoryVisible=!0,this.editCategoryForm=r()({},e),this.editCategoryForm.type=String(e.type),this.editCategoryForm.isEffective=String(e.isEffective)},handleNo:function(){this.editcategoryVisible=!1},handleOk:function(){var e=this;this.$refs.editCategoryForm.validate(function(t){if(!t)return e.$notify.error({title:"错误",message:"信息未填完整",offset:100}),!1;Object(o.m)(e.editCategoryForm).then(function(t){200===t.data.ret?(e.$notify({title:"成功",message:"修改成功",type:"success",offset:100}),e.getlist(),e.$refs.editCategoryForm.clearValidate(),e.$refs.editCategoryForm.resetFields(),e.editcategoryVisible=!1):e.$notify.error({title:"错误",message:"出错了",offset:100})})})},handleAdd:function(){this.categoryVisible=!0},handlecancel:function(){this.categoryVisible=!1},restAddCategoryForm:function(){this.addCategoryForm={categoryname:"",type:"",iseffective:""}},handlesave:function(){var e=this;console.log(this.addCategoryForm),this.$refs.addCategoryForm.validate(function(t){if(!t)return e.$notify.error({title:"错误",message:"信息未填完整",offset:100}),!1;Object(o.a)(e.addCategoryForm).then(function(t){200===t.data.ret?(e.$notify({title:"成功",message:"新建成功",type:"success",offset:100}),e.getlist(),e.$refs.addCategoryForm.clearValidate(),e.$refs.addCategoryForm.resetFields(),e.restAddCategoryForm(),e.categoryVisible=!1):e.$notify.error({title:"错误",message:"出错了",offset:100})})})},handleContract:function(){console.log(123)},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(["id","jobNumber","account","firstName","gender","birthday","email","postName","deptName","regionName","repositoryName","createTime","dimissionTime","stat"],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)}}},s=(a("mt9N"),a("KHd+")),c=Object(s.a)(d,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("NewEmployeeInformation.categoryname"),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.categoryname,callback:function(t){e.$set(e.getemplist,"categoryname",t)},expression:"getemplist.categoryname"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{value:e.getemplist.type,placeholder:e.$t("NewEmployeeInformation.type"),clearable:""},model:{value:e.getemplist.type,callback:function(t){e.$set(e.getemplist,"type",t)},expression:"getemplist.type"}},[a("el-option",{attrs:{label:"物品分类",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"规格型号",value:"2"}}),e._v(" "),a("el-option",{attrs:{label:"档次级别",value:"3"}})],1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{value:e.getemplist.iseffective,placeholder:e.$t("NewEmployeeInformation.iseffective"),clearable:""},model:{value:e.getemplist.iseffective,callback:function(t){e.$set(e.getemplist,"iseffective",t)},expression:"getemplist.iseffective"}},[a("el-option",{attrs:{label:"active ",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],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")))]),e._v(" "),a("el-dialog",{attrs:{visible:e.categoryVisible,title:"新建分类属性",center:""},on:{"update:visible":function(t){e.categoryVisible=t}}},[a("el-form",{ref:"addCategoryForm",staticClass:"demo-ruleForm",staticStyle:{margin:"0 auto",width:"400px"},attrs:{rules:e.addCategoryFormRules,model:e.addCategoryForm}},[a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.type"),"label-width":"100px",prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择类别"},model:{value:e.addCategoryForm.type,callback:function(t){e.$set(e.addCategoryForm,"type",t)},expression:"addCategoryForm.type"}},[a("el-option",{attrs:{label:"物品分类",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"规格型号",value:"2"}}),e._v(" "),a("el-option",{attrs:{label:"档次级别",value:"3"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.categoryname"),"label-width":"100px",prop:"categoryname"}},[a("el-input",{attrs:{autocomplete:"off"},model:{value:e.addCategoryForm.categoryname,callback:function(t){e.$set(e.addCategoryForm,"categoryname",t)},expression:"addCategoryForm.categoryname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.iseffective"),"label-width":"100px",prop:"iseffective"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态"},model:{value:e.addCategoryForm.iseffective,callback:function(t){e.$set(e.addCategoryForm,"iseffective",t)},expression:"addCategoryForm.iseffective"}},[a("el-option",{attrs:{label:"active ",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handlesave()}}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handlecancel()}}},[e._v("取消")])],1)],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("NewEmployeeInformation.id"),resizable:!1,prop:"id",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.type"),resizable:!1,prop:"type",align:"center",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("typeFilter")(t.row.type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.categoryname"),resizable:!1,prop:"categoryName",align:"center",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.categoryName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.iseffective"),resizable:!1,prop:"isEffective",align:"center",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("iseffectiveFilter")(t.row.isEffective)))])]}}])}),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("el-dialog",{attrs:{visible:e.editcategoryVisible,title:"修改分类属性",center:""},on:{"update:visible":function(t){e.editcategoryVisible=t}}},[a("el-form",{ref:"editCategoryForm",staticClass:"demo-ruleForm",staticStyle:{margin:"0 auto",width:"400px"},attrs:{rules:e.editCategoryFormRules,model:e.editCategoryForm}},[a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.type"),"label-width":"100px"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择类别",disabled:""},model:{value:e.editCategoryForm.type,callback:function(t){e.$set(e.editCategoryForm,"type",t)},expression:"editCategoryForm.type"}},[a("el-option",{attrs:{label:"物品分类",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"规格型号",value:"2"}}),e._v(" "),a("el-option",{attrs:{label:"档次级别",value:"3"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.categoryname"),"label-width":"100px",prop:"categoryName"}},[a("el-input",{attrs:{autocomplete:"off"},model:{value:e.editCategoryForm.categoryName,callback:function(t){e.$set(e.editCategoryForm,"categoryName",t)},expression:"editCategoryForm.categoryName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.iseffective"),"label-width":"100px",prop:"isEffective"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态"},model:{value:e.editCategoryForm.isEffective,callback:function(t){e.$set(e.editCategoryForm,"isEffective",t)},expression:"editCategoryForm.isEffective"}},[a("el-option",{attrs:{label:"active ",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleOk()}}},[e._v("修改")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handleNo()}}},[e._v("取消")])],1)],1)],1)],1)])},[],!1,null,"371e82f3",null);c.options.__file="ProductCategory.vue";t.default=c.exports},VG0r:function(e,t,a){"use strict";a.d(t,"l",function(){return r}),a.d(t,"k",function(){return o}),a.d(t,"a",function(){return n}),a.d(t,"m",function(){return l}),a.d(t,"e",function(){return d}),a.d(t,"d",function(){return s}),a.d(t,"j",function(){return c}),a.d(t,"g",function(){return p}),a.d(t,"h",function(){return u}),a.d(t,"i",function(){return m}),a.d(t,"b",function(){return v}),a.d(t,"c",function(){return f}),a.d(t,"n",function(){return g}),a.d(t,"f",function(){return y});var i=a("t3Un");function r(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("type",e),t.append("pagenum",1),t.append("pagesize",99999),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/searchProCategory",method:"post",data:t})}function o(e){var t=new URLSearchParams;return""!==e.categoryname&&null!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.iseffective&&null!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.type&&null!==e.type&&t.append("type",e.type),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/searchProCategory",method:"post",data:t})}function n(e){var t=new URLSearchParams;return""!==e.categoryname&&null!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.category&&null!==e.category&&t.append("category",e.category),""!==e.iseffective&&null!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.type&&null!==e.type&&t.append("type",e.type),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/addProCategory",method:"post",data:t})}function l(e){var t=new URLSearchParams;return""!==e.categoryName&&null!==e.categoryName&&t.append("categoryname",e.categoryName),""!==e.isEffective&&null!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.id&&null!==e.id&&t.append("id",e.id),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/updateProCategory",method:"post",data:t})}function d(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("ids",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/delateProCategory",method:"post",data:t})}function s(e){var t=new URLSearchParams;return""!==e.code&&null!==e.code&&void 0!==e.code&&t.append("code",e.code),""!==e.barcode&&null!==e.barcode&&void 0!==e.barcode&&t.append("barcode",e.barcode),""!==e.productname&&null!==e.productname&&void 0!==e.productname&&t.append("productname",e.productname),""!==e.typeid&&null!==e.typeid&&void 0!==e.typeid&&t.append("typeid",e.typeid),""!==e.categoryid&&null!==e.categoryid&&void 0!==e.categoryid&&t.append("categoryid",e.categoryid),""!==e.color&&null!==e.color&&void 0!==e.color&&t.append("color",e.color),""!==e.brand&&null!==e.brand&&void 0!==e.brand&&t.append("brand",e.brand),""!==e.kpigrade&&null!==e.kpigrade&&void 0!==e.kpigrade&&t.append("kpigrade",e.kpigrade),""!==e.point&&null!==e.point&&void 0!==e.point&&t.append("point",e.point),""!==e.zhibaoqi&&null!==e.zhibaoqi&&void 0!==e.zhibaoqi&&t.append("zhibaoqi",e.zhibaoqi),""!==e.weight&&null!==e.weight&&void 0!==e.weight&&t.append("weight",e.weight),""!==e.volume&&null!==e.volume&&void 0!==e.volume&&t.append("volume",e.volume),""!==e.costprice&&null!==e.costprice&&void 0!==e.costprice&&t.append("costprice",e.costprice),""!==e.tradeprice&&null!==e.tradeprice&&void 0!==e.tradeprice&&t.append("tradeprice",e.tradeprice),""!==e.saleprice&&null!==e.saleprice&&void 0!==e.saleprice&&t.append("saleprice",e.saleprice),""!==e.purchaseprice&&null!==e.purchaseprice&&void 0!==e.purchaseprice&&t.append("purchaseprice",e.purchaseprice),""!==e.lowerprice&&null!==e.lowerprice&&void 0!==e.lowerprice&&t.append("lowerprice",e.lowerprice),""!==e.supplierid&&null!==e.supplierid&&void 0!==e.supplierid&&t.append("supplierid",e.supplierid),""!==e.createid&&null!==e.createid&&void 0!==e.createid&&t.append("createid",e.createid),""!==e.createid&&null!==e.createid&&void 0!==e.createid&&t.append("createid",e.createid),""!==e.level&&null!==e.level&&void 0!==e.level&&t.append("level",e.level),""!==e.purchasemeasurement&&null!==e.purchasemeasurement&&void 0!==e.purchasemeasurement&&t.append("purchasemeasurement",e.purchasemeasurement),""!==e.salemeasurement&&null!==e.salemeasurement&&void 0!==e.salemeasurement&&t.append("salemeasurement",e.salemeasurement),""!==e.stockmeasurement&&null!==e.stockmeasurement&&void 0!==e.stockmeasurement&&t.append("stockmeasurement",e.stockmeasurement),""!==e.producemeasurement&&null!==e.producemeasurement&&void 0!==e.producemeasurement&&t.append("producemeasurement",e.producemeasurement),""!==e.source&&null!==e.source&&void 0!==e.source&&t.append("source",e.source),""!==e.valuation&&null!==e.valuation&&void 0!==e.valuation&&t.append("valuation",e.valuation),""!==e.isactive&&null!==e.isactive&&void 0!==e.isactive&&t.append("isactive",e.isactive),""!==e.picids&&null!==e.picids&&void 0!==e.picids&&t.append("picids",e.picids),""!==e.detailpicid&&null!==e.detailpicid&&void 0!==e.detailpicid&&t.append("detailpicid",e.detailpicid),""!==e.memberprice&&null!==e.memberprice&&void 0!==e.memberprice&&t.append("memberprice",e.memberprice),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/createnewproduct",method:"post",data:t})}function c(e){var t=new URLSearchParams;return""!==e.productid&&null!==e.productid&&void 0!==e.productid&&t.append("productid",e.productid),""!==e.code&&null!==e.code&&void 0!==e.code&&t.append("code",e.code),""!==e.productname&&null!==e.productname&&void 0!==e.productname&&t.append("productname",e.productname),""!==e.categoryid&&null!==e.categoryid&&void 0!==e.categoryid&&t.append("categoryid",e.categoryid),""!==e.typeid&&null!==e.typeid&&void 0!==e.typeid&&t.append("typeid",e.typeid),""!==e.isactive&&null!==e.isactive&&void 0!==e.isactive&&t.append("isactive",e.isactive),""!==e.supplierid&&null!==e.supplierid&&void 0!==e.supplierid&&t.append("supplierid",e.supplierid),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/productlist",method:"post",data:t})}function p(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("productids",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/deleteproduct",method:"post",data:t})}function u(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("productid",e.id),""!==e.kpiGrade&&null!==e.kpiGrade&&void 0!==e.kpiGrade&&t.append("kpigrade",e.kpiGrade),""!==e.point&&null!==e.point&&void 0!==e.point&&t.append("point",e.point),""!==e.zhiBaoQi&&null!==e.zhiBaoQi&&void 0!==e.zhiBaoQi&&t.append("zhibaoqi",e.zhiBaoQi),""!==e.weight&&null!==e.weight&&void 0!==e.weight&&t.append("weight",e.weight),""!==e.volume&&null!==e.volume&&void 0!==e.volume&&t.append("volume",e.volume),""!==e.costPrice&&null!==e.costPrice&&void 0!==e.costPrice&&t.append("costprice",e.costPrice),""!==e.tradePrice&&null!==e.tradePrice&&void 0!==e.tradePrice&&t.append("tradeprice",e.tradePrice),""!==e.salePrice&&null!==e.salePrice&&void 0!==e.salePrice&&t.append("saleprice",e.salePrice),""!==e.purchasePrice&&null!==e.purchasePrice&&void 0!==e.purchasePrice&&t.append("purchaseprice",e.purchasePrice),""!==e.lowerPrice&&null!==e.lowerPrice&&void 0!==e.lowerPrice&&t.append("lowerprice",e.lowerPrice),""!==e.supplierid&&null!==e.supplierid&&void 0!==e.supplierid&&t.append("supplierid",e.supplierid),""!==e.level&&null!==e.level&&void 0!==e.level&&t.append("level",e.level),""!==e.purchaseMeasurement&&null!==e.purchaseMeasurement&&void 0!==e.purchaseMeasurement&&t.append("purchasemeasurement",e.purchaseMeasurement),""!==e.saleMeasurement&&null!==e.saleMeasurement&&void 0!==e.saleMeasurement&&t.append("salemeasurement",e.saleMeasurement),""!==e.stockMeasurement&&null!==e.stockMeasurement&&void 0!==e.stockMeasurement&&t.append("stockmeasurement",e.stockMeasurement),""!==e.produceMeasurement&&null!==e.produceMeasurement&&void 0!==e.produceMeasurement&&t.append("producemeasurement",e.produceMeasurement),""!==e.source&&null!==e.source&&void 0!==e.source&&t.append("source",e.source),""!==e.valuation&&null!==e.valuation&&void 0!==e.valuation&&t.append("valuation",e.valuation),""!==e.isActive&&null!==e.isActive&&void 0!==e.isActive&&t.append("isactive",e.isActive),""!==e.picids&&null!==e.picids&&void 0!==e.picids&&t.append("picids",e.picids),""!==e.detailpicid&&null!==e.detailpicid&&void 0!==e.detailpicid&&t.append("detailpicid",e.detailpicid),""!==e.memberPrice&&null!==e.memberPrice&&void 0!==e.memberPrice&&t.append("memberprice",e.memberPrice),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/editproduct",method:"post",data:t})}function m(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("productJson",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/product/manyinsert",method:"post",data:t})}function v(e){var t=new URLSearchParams;return""!==e.title&&null!==e.title&&void 0!==e.title&&t.append("title",e.title),""!==e.productname&&null!==e.productname&&void 0!==e.productname&&t.append("productname",e.productname),""!==e.productcode&&null!==e.productcode&&void 0!==e.productcode&&t.append("productcode",e.productcode),""!==e.costprice&&null!==e.costprice&&void 0!==e.costprice&&t.append("costprice",e.costprice),""!==e.tradeprice&&null!==e.tradeprice&&void 0!==e.tradeprice&&t.append("tradeprice",e.tradeprice),""!==e.saleprice&&null!==e.saleprice&&void 0!==e.saleprice&&t.append("saleprice",e.saleprice),""!==e.memberprice&&null!==e.memberprice&&void 0!==e.memberprice&&t.append("memberprice",e.memberprice),""!==e.lowerprice&&null!==e.lowerprice&&void 0!==e.lowerprice&&t.append("lowerprice",e.lowerprice),""!==e.adjustcostprice&&null!==e.adjustcostprice&&void 0!==e.adjustcostprice&&t.append("adjustcostprice",e.adjustcostprice),""!==e.adjusttradeprice&&null!==e.adjusttradeprice&&void 0!==e.adjusttradeprice&&t.append("adjusttradeprice",e.adjusttradeprice),""!==e.adjustsaleprice&&null!==e.adjustsaleprice&&void 0!==e.adjustsaleprice&&t.append("adjustsaleprice",e.adjustsaleprice),""!==e.adjustmemberprice&&null!==e.adjustmemberprice&&void 0!==e.adjustmemberprice&&t.append("adjustmemberprice",e.adjustmemberprice),""!==e.adjustlowerprice&&null!==e.adjustlowerprice&&void 0!==e.adjustlowerprice&&t.append("adjustlowerprice",e.adjustlowerprice),""!==e.adjustpersonid&&null!==e.adjustpersonid&&void 0!==e.adjustpersonid&&t.append("adjustpersonid",e.adjustpersonid),""!==e.adjustreason&&null!==e.adjustreason&&void 0!==e.adjustreason&&t.append("adjustreason",e.adjustreason),Object(i.a)({url:"http://192.168.1.45:8080/erp/adjustprice/addadjustprice",method:"post",data:t})}function f(e){var t=new URLSearchParams;return""!==e.adjustid&&null!==e.adjustid&&void 0!==e.adjustid&&t.append("adjustid",e.adjustid),""!==e.adjustnumber&&null!==e.adjustnumber&&void 0!==e.adjustnumber&&t.append("adjustnumber",e.adjustnumber),""!==e.productcode&&null!==e.productcode&&void 0!==e.productcode&&t.append("productcode",e.productcode),""!==e.productname&&null!==e.productname&&void 0!==e.productname&&t.append("productname",e.productname),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/erp/adjustprice/adjustpricelist",method:"post",data:t})}function g(e){var t=new URLSearchParams;return""!==e.title&&null!==e.title&&void 0!==e.title&&t.append("title",e.title),""!==e.adjustCostPrice&&null!==e.adjustCostPrice&&void 0!==e.adjustCostPrice&&t.append("adjustcostprice",e.adjustCostPrice),""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("adjustid",e.id),""!==e.adjustTradePrice&&null!==e.adjustTradePrice&&void 0!==e.adjustTradePrice&&t.append("adjusttradeprice",e.adjustTradePrice),""!==e.adjustSalePrice&&null!==e.adjustSalePrice&&void 0!==e.adjustSalePrice&&t.append("adjustsaleprice",e.adjustSalePrice),""!==e.adjustMemberPrice&&null!==e.adjustMemberPrice&&void 0!==e.adjustMemberPrice&&t.append("adjustmemberprice",e.adjustMemberPrice),""!==e.adjustLowerPrice&&null!==e.adjustLowerPrice&&void 0!==e.adjustLowerPrice&&t.append("adjustlowerprice",e.adjustLowerPrice),""!==e.adjustpersonid&&null!==e.adjustpersonid&&void 0!==e.adjustpersonid&&t.append("adjustpersonid",e.adjustpersonid),""!==e.adjustReason&&null!==e.adjustReason&&void 0!==e.adjustReason&&t.append("adjustreason",e.adjustReason),""!==e.stat&&null!==e.stat&&void 0!==e.stat&&t.append("stat",e.stat),""!==e.judgePersonId&&null!==e.judgePersonId&&void 0!==e.judgePersonId&&t.append("judgepersonid",e.judgePersonId),Object(i.a)({url:"http://192.168.1.45:8080/erp/adjustprice/updateadjustprice",method:"post",data:t})}function y(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("adjustids",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/adjustprice/deleteadjustprice",method:"post",data:t})}},Vky8:function(e,t,a){},Y5bG:function(e,t,a){"use strict";a.d(t,"a",function(){return r}),Math.easeInOutQuad=function(e,t,a,i){return(e/=i/2)<1?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function r(e,t,a){var r=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,o=e-r,n=0;t=void 0===t?500:t;!function e(){n+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(n,r,o,t)),n<t?i(e):a&&"function"==typeof a&&a()}()}},ZySA:function(e,t,a){"use strict";var i=a("P2sY"),r=a.n(i),o=(a("jUE0"),{bind:function(e,t){e.addEventListener("click",function(a){var i=r()({},t.value),o=r()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),n=o.ele;if(n){n.style.position="relative",n.style.overflow="hidden";var l=n.getBoundingClientRect(),d=n.querySelector(".waves-ripple");switch(d?d.className="waves-ripple":((d=document.createElement("span")).className="waves-ripple",d.style.height=d.style.width=Math.max(l.width,l.height)+"px",n.appendChild(d)),o.type){case"center":d.style.top=l.height/2-d.offsetHeight/2+"px",d.style.left=l.width/2-d.offsetWidth/2+"px";break;default:d.style.top=(a.pageY-l.top-d.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",d.style.left=(a.pageX-l.left-d.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return d.style.backgroundColor=o.color,d.className="waves-ripple z-active",!1}},!1)}}),n=function(e){e.directive("waves",o)};window.Vue&&(window.waves=o,Vue.use(n)),o.install=n;t.a=o},jUE0:function(e,t,a){},mt9N:function(e,t,a){"use strict";var i=a("Vky8");a.n(i).a}}]); |