mirror of
https://github.com/shawncai/ERP.git
synced 2024-11-14 20:56:32 +08:00
1 line
No EOL
50 KiB
JavaScript
1 line
No EOL
50 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-76f5"],{"0zGY":function(e,t,a){"use strict";a.d(t,"g",function(){return n}),a.d(t,"l",function(){return r}),a.d(t,"e",function(){return o}),a.d(t,"h",function(){return l}),a.d(t,"o",function(){return s}),a.d(t,"j",function(){return p}),a.d(t,"i",function(){return d}),a.d(t,"b",function(){return c}),a.d(t,"c",function(){return m}),a.d(t,"n",function(){return u}),a.d(t,"f",function(){return g}),a.d(t,"k",function(){return y}),a.d(t,"a",function(){return f}),a.d(t,"m",function(){return h}),a.d(t,"d",function(){return v});var i=a("t3Un");function n(e){return Object(i.a)({url:"http://192.168.1.45:8080/erp/country/getdeptlist",method:"post",params:e})}function r(e,t){var a=new URLSearchParams;return""!==e&&null!==e&&a.append("empids",e),""!==t&&null!==t&&a.append("stat",t),Object(i.a)({url:"http://192.168.1.45:8080/erp/employee/startorendemp",method:"post",data:a})}function o(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("empids",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/employee/deleteemp",method:"post",data:t})}function l(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("id",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/employee/getempinfo",method:"post",data:t})}function s(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("employeeid",e.id),""!==e.firstName&&null!==e.firstName&&void 0!==e.firstName&&t.append("firstname",e.firstName),""!==e.middleName&&null!==e.middleName&&void 0!==e.middleName&&t.append("middlename",e.middleName),""!==e.lastName&&null!==e.lastName&&void 0!==e.lastName&&t.append("lastname",e.lastName),""!==e.password&&null!==e.password&&void 0!==e.password&&t.append("passwd",e.password),""!==e.email&&null!==e.email&&void 0!==e.email&&t.append("email",e.email),""!==e.phone&&null!==e.phone&&void 0!==e.phone&&t.append("phone",e.phone),""!==e.gender&&null!==e.gender&&void 0!==e.gender&&t.append("gender",e.gender),""!==e.countryid&&null!==e.countryid&&void 0!==e.countryid&&t.append("countryid",e.countryid),""!==e.provinceid&&null!==e.provinceid&&void 0!==e.provinceid&&t.append("provinceid",e.provinceid),""!==e.cityid&&null!==e.cityid&&void 0!==e.cityid&&t.append("cityid",e.cityid),""!==e.address&&null!==e.address&&void 0!==e.address&&t.append("address",e.address),""!==e.birthday&&null!==e.birthday&&void 0!==e.birthday&&t.append("birthday",e.birthday),""!==e.deptId&&null!==e.deptId&&void 0!==e.deptId&&t.append("deptid",e.deptId),""!==e.postId&&null!==e.postId&&void 0!==e.postId&&t.append("postid",e.postId),""!==e.repositoryid2&&null!==e.repositoryid2&&void 0!==e.repositoryid2&&t.append("repositoryid",e.repositoryid2),""!==e.regionId&&null!==e.regionId&&void 0!==e.regionId&&t.append("regionid",e.regionId),""!==e.certificateType&&null!==e.certificateType&&void 0!==e.certificateType&&t.append("certificatetype",e.certificateType),""!==e.certificateNumber&&null!==e.certificateNumber&&void 0!==e.certificateNumber&&t.append("certificatenumber",e.certificateNumber),Object(i.a)({url:"http://192.168.1.45:8080/erp/employee/updateemp",method:"post",data:t})}function p(e){var t=new URLSearchParams;return t.append("firstname",e.firstname),t.append("middlename",e.middlename),t.append("lastname",e.lastname),t.append("passwd",e.passwd),t.append("email",e.email),t.append("phone",e.phone),t.append("gender",e.gender),t.append("countryid",e.country),t.append("provinceid",e.provinceid),t.append("cityid",e.cityid),t.append("address",e.address),""===e.birthday&&null===e.birthday||t.append("birthday",e.birthday),t.append("account",e.account),t.append("jobnumber",e.jobnumber),t.append("deptid",e.deptid),t.append("roleid",e.roleid),t.append("postid",e.postid),t.append("repositoryid",e.repositoryid),t.append("regionid",e.regionid1),t.append("certificatetype",e.certificatetype),t.append("certificatenumber",e.certificatenumber),Object(i.a)({url:"http://192.168.1.45:8080/erp/employee/register",method:"post",data:t})}function d(e){var t=new URLSearchParams;return""!==e.repositoryid&&t.append("repositoryid",e.repositoryid),""!==e.regionid&&void 0!==e.regionid&&t.append("regionid",e.regionid),""!==e.postid&&t.append("postid",e.postid),""!==e.deptid&&t.append("deptid",e.deptid),""!==e.employeename&&t.append("employeename",e.employeename),""!==e.stat&&t.append("stat",e.stat),""!==e.time&&null!==e.time&&t.append("time",e.time),""!==e.jobnumber&&t.append("jobnumber",e.jobnumber),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/erp/employee/getemplist",method:"post",data:t})}function c(e){var t=new URLSearchParams;return""!==e.employeeid&&t.append("employeeid",e.employeeid),""!==e.contractname&&t.append("contractname",e.contractname),""!==e.signtime&&null!==e.signtime&&t.append("signtime",e.signtime),""!==e.expiredtime&&null!==e.expiredtime&&t.append("expiredtime",e.expiredtime),""!==e.effectivetime&&null!==e.effectivetime&&t.append("effectivetime",e.effectivetime),""!==e.typeid&&t.append("typeid",e.typeid),""!==e.attribute&&t.append("attribute",e.attribute),""!==e.period&&t.append("period",e.period),""!==e.iscorrection&&t.append("iscorrection",e.iscorrection),""!==e.stat&&t.append("stat",e.stat),""!==e.advanceday&&t.append("advanceday",e.advanceday),""!==e.trialsalary&&t.append("trialsalary",e.trialsalary),""!==e.correctionsalary&&t.append("correctionsalary",e.correctionsalary),""!==e.remindpersonid&&t.append("remindpersonid",e.remindpersonid),Object(i.a)({url:"http://192.168.1.45:8080/erp/contract/addcontract",method:"post",data:t})}function m(e){var t=new URLSearchParams;return""!==e.contractname&&t.append("contractname",e.contractname),""!==e.contractnumber&&t.append("contractnumber",e.contractnumber),""!==e.empnumber&&t.append("empnumber",e.empnumber),""!==e.empname&&t.append("empname",e.empname),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/erp/contract/contractlist",method:"post",data:t})}function u(e){var t=new URLSearchParams;return""!==e.id&&t.append("contractid",e.id),""!==e.contractName&&t.append("contractname",e.contractName),""!==e.signTime&&t.append("signtime",e.signTime),""!==e.expiredTime&&t.append("expiredtime",e.expiredTime),""!==e.effectiveTime&&t.append("effectivetime",e.effectiveTime),""!==e.type&&t.append("typeid",e.type),""!==e.contractAttribute&&t.append("attribute",e.contractAttribute),""!==e.contractAttribute&&t.append("period",e.period),""!==e.isCorrection&&t.append("iscorrection",e.isCorrection),""!==e.stat&&t.append("stat",e.stat),""!==e.advanceDay&&t.append("advanceday",e.advanceDay),""!==e.trialSalary&&t.append("trialsalary",e.trialSalary),""!==e.correctionSalary&&t.append("correctionsalary",e.correctionSalary),""!==e.expiredRemindPersonId&&null!==e.expiredRemindPersonId&&t.append("remindpersonid",e.expiredRemindPersonId),Object(i.a)({url:"http://192.168.1.45:8080/erp/contract/updatecontract",method:"post",data:t})}function g(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("empcontractids",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/contract/deleteempcontract",method:"post",data:t})}function y(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/employee/searchEmpCategory",method:"post",data:t})}function f(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/employee/addEmpCategory",method:"post",data:t})}function h(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/employee/updateEmpCategory",method:"post",data:t})}function v(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("ids",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/employee/delateEmpCategory",method:"post",data:t})}},"2H35":function(e,t,a){"use strict";a.d(t,"f",function(){return n}),a.d(t,"b",function(){return r}),a.d(t,"h",function(){return o}),a.d(t,"j",function(){return l}),a.d(t,"g",function(){return s}),a.d(t,"a",function(){return p}),a.d(t,"k",function(){return d}),a.d(t,"c",function(){return c}),a.d(t,"d",function(){return m}),a.d(t,"i",function(){return u}),a.d(t,"e",function(){return g});var i=a("t3Un");function n(){var e=new URLSearchParams;return e.append("pagenum",1),e.append("pagesize",99999),Object(i.a)({url:"http://192.168.1.45:8080/erp/repository/searchRepCategory",method:"post",data:e})}function r(e){var t=new URLSearchParams;return""!==e.repositoryName&&null!==e.repositoryName&&t.append("repositoryName",e.repositoryName),""!==e.address&&null!==e.address&&t.append("address",e.address),""!==e.longitude&&null!==e.longitude&&t.append("longitude",e.longitude),""!==e.latitude&&null!==e.latitude&&t.append("latitude",e.latitude),""!==e.managerPeopleId&&null!==e.managerPeopleId&&t.append("managerPeopleId",e.managerPeopleId),""!==e.createTime&&null!==e.createTime&&t.append("createTime",e.createTime),""!==e.stat&&null!==e.stat&&t.append("stat",e.stat),""!==e.description&&null!==e.description&&t.append("description",e.description),""!==e.regionId&&null!==e.regionId&&t.append("regionId",e.regionId),""!==e.type&&null!==e.type&&t.append("type",e.type),""!==e.regionManagerId&&null!==e.regionManagerId&&t.append("regionManagerId",e.regionManagerId),""!==e.attributes&&null!==e.attributes&&t.append("attributes",e.attributes),""!==e.countryId&&null!==e.countryId&&t.append("countryId",e.countryId),Object(i.a)({url:"http://192.168.1.45:8080/erp/repository/create",method:"post",data:t})}function o(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("id",e.id),""!==e.repositoryName&&null!==e.repositoryName&&void 0!==e.repositoryName&&t.append("repositoryName",e.repositoryName),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.regionId&&null!==e.regionId&&void 0!==e.regionId&&t.append("regionId",e.regionId),""!==e.countyrId&&null!==e.countyrId&&void 0!==e.countyrId&&t.append("countyrId",e.countyrId),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/erp/repository/searchRepository",method:"post",data:t})}function l(e){var t=new URLSearchParams;return""!==e.repositoryName&&null!==e.repositoryName&&void 0!==e.repositoryName&&t.append("repositoryName",e.repositoryName),""!==e.address&&null!==e.address&&void 0!==e.address&&t.append("address",e.address),""!==e.longitude&&null!==e.longitude&&void 0!==e.longitude&&t.append("longitude",e.longitude),""!==e.latitude&&null!==e.latitude&&void 0!==e.latitude&&t.append("latitude",e.latitude),""!==e.createTime&&null!==e.createTime&&void 0!==e.createTime&&t.append("createTime",e.createTime),""!==e.managerPeopleId&&null!==e.managerPeopleId&&void 0!==e.managerPeopleId&&t.append("managerPeopleId",e.managerPeopleId),""!==e.stat&&null!==e.stat&&void 0!==e.stat&&t.append("stat",e.stat),""!==e.description&&null!==e.description&&void 0!==e.description&&t.append("description",e.description),""!==e.regionId&&null!==e.regionId&&void 0!==e.regionId&&t.append("regionId",e.regionId),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.regionManagerId&&null!==e.regionManagerId&&void 0!==e.regionManagerId&&t.append("regionManagerId",e.regionManagerId),""!==e.attributes&&null!==e.attributes&&void 0!==e.attributes&&t.append("attributes",e.attributes),""!==e.countryId&&null!==e.countryId&&void 0!==e.countryId&&t.append("countryId",e.countryId),""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("id",e.id),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/erp/repository/update",method:"post",data:t})}function s(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/repository/searchRepCategory",method:"post",data:t})}function p(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/repository/addRepCategory",method:"post",data:t})}function d(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/repository/updateRepCategory",method:"post",data:t})}function c(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("modelids",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/repository/delateRepCategory",method:"post",data:t})}function m(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("modelids",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/repository/deleteRepository",method:"post",data:t})}function u(e,t){var a=new URLSearchParams;return""!==e&&null!==e&&a.append("modelids",e),""!==t&&null!==t&&a.append("iseffective",t),Object(i.a)({url:"http://192.168.1.45:8080/erp/repository/startorend",method:"post",data:a})}function g(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("repositoryJson",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/repository/manyinsert",method:"post",data:t})}},"6HaC":function(e,t,a){"use strict";a.d(t,"b",function(){return n}),a.d(t,"d",function(){return r}),a.d(t,"e",function(){return o}),a.d(t,"c",function(){return l}),a.d(t,"a",function(){return s});var i=a("t3Un");function n(e){return Object(i.a)({url:"http://192.168.1.45:8080/erp/country/getcountrylist",method:"post",params:e})}function r(e){return Object(i.a)({url:"http://192.168.1.45:8080/erp/region/detaillist",method:"post",params:e})}function o(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("regionId",e),t.append("pagenum",1),t.append("pagesize",99999),Object(i.a)({url:"http://192.168.1.45:8080/erp/repository/searchRepository",method:"post",data:t})}function l(e){var t=new URLSearchParams;return t.append("countryid",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/country/getprovincelist",method:"post",data:t})}function s(e){var t=new URLSearchParams;return t.append("provinceid",e),Object(i.a)({url:"http://192.168.1.45:8080/erp/country/getcitylist",method:"post",data:t})}},EjVB:function(e,t,a){"use strict";a.r(t);var i=a("P2sY"),n=a.n(i),r=a("6HaC"),o=a("2H35"),l=a("0zGY"),s=a("ZySA"),p=a("Mz3J"),d={name:"RepositoryList",directives:{waves:s.a},components:{Pagination:p.a},filters:{iseffectiveFilter:function(e){return{1:"启用",2:"停用"}[e]},genderFilter:function(e){return{1:"男",2:"女"}[e]}},data:function(){return{moreaction:"",editVisible:!1,types:[],nations:[],downloadLoading:!1,list:[],total:0,tableKey:0,listLoading:!0,getemplist:{repositoryName:"",type:"",iseffective:"",regionId:"",countyrId:"",id:"",pagenum:1,pagesize:10},depts:[],props:{value:"id",label:"regionName",children:"regionListVos"},regions:[],getemplistregions:[],getemplistregions0:[],regionname:"",managerPeople:"",regionManagerId:"",RepositoryForm:{},regionId:[],Repositoryrules:{longitude:[{required:!0,message:"请输入经度",trigger:"blur"},{type:"number",message:"经度必须为数字值"}],repositoryName:[{required:!0,message:"请输入仓库名称",trigger:"blur"}],latitude:[{required:!0,message:"请输入维度",trigger:"blur"},{type:"number",message:"维度必须为数字值"}],lastname:[{required:!0,message:"请输入名",trigger:"blur"}],address:[{required:!0,message:"请输入地址",trigger:"blur"}],countryId:[{required:!0,message:"请选择国家",trigger:"change"}]},currentRow:null,list2:[],total2:0,tableKey2:0,listLoading2:!0,getemplist2:{repositoryid:"",regionid:"",postid:"",deptid:"",employeename:"",pagenum:1,pagesize:10,stat:1,time:"",jobnumber:""},depts2:[],props2:{value:"id",label:"regionName",children:"regionListVos"},regions2:[],getemplistregions2:[],repositories:[],employeeVisible:!1,regionManagerVisible:!1}},mounted:function(){this.getlist()},methods:{getlist:function(){var e=this;Object(r.b)().then(function(t){200===t.data.ret?e.nations=t.data.data.content:e.$notify.error({title:"错误",message:"出错了",offset:100})}),this.listLoading=!0,Object(o.h)(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)}),Object(o.f)().then(function(t){200===t.data.ret?(console.log(t),e.types=t.data.data.content.list):e.$notify.error({title:"错误",message:"出错了",offset:100})}),Object(r.d)().then(function(t){200===t.data.ret&&(e.regions=e.tranKTree(t.data.data.content))})},handleFilter:function(){var e=this;this.getemplist.pagenum=1,this.getemplist.regionId=this.getemplistregions[this.getemplistregions.length-1],console.log(this.getemplist),Object(o.h)(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();"disable"===e?Object(o.i)(a,2).then(function(e){200===e.data.ret?(t.$notify({title:"操作成功",message:"操作成功",type:"success",duration:1e3,offset:100}),t.getlist()):t.$message.error("出错了")}):"delete"===e&&this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.d)(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.d)(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:"已取消删除"})})},handleDisable:function(e){var t=this;Object(o.i)(e.id,2).then(function(e){200===e.data.ret?(t.$notify({title:"操作成功",message:"操作成功",type:"success",duration:1e3,offset:100}),t.getlist()):t.$message.error("出错了")})},handleEnable:function(e){var t=this;Object(o.i)(e.id,1).then(function(e){200===e.data.ret?(t.$notify({title:"操作成功",message:"操作成功",duration:1e3,type:"success",offset:100}),t.getlist()):t.$message.error("出错了")})},handleAdd:function(){this.$router.push("/Repository/NewRepository")},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)},tranKTree:function(e){var t=this;if(e&&e.length)return e.map(function(e){return{id:e.id,regionName:e.regionName,regionListVos:t.tranKTree(e.regionListVos)}})},handleEdit:function(e){console.log(e),this.RepositoryForm=n()({},e),this.regionname=e.regionName,this.RepositoryForm.stat=String(e.stat),this.managerPeople=e.managerName,this.regionManagerId=e.regionPersonName,this.RepositoryForm.attributes=String(e.attributes),this.editVisible=!0},handleEditok:function(){var e=this;this.RepositoryForm.regionId=this.regionId[this.regionId.length-1],this.$refs.RepositoryForm.validate(function(t){if(!t)return e.$notify.error({title:"错误",message:"信息未填完整",offset:100}),!1;Object(o.j)(e.RepositoryForm).then(function(t){200===t.data.ret?(e.$notify({title:"成功",message:"修改成功",type:"success",offset:100}),e.getlist(),e.$refs.RepositoryForm.clearValidate(),e.$refs.RepositoryForm.resetFields(),e.editVisible=!1):e.$notify.error({title:"错误",message:"出错了",offset:100})})})},handlecancel:function(){this.$refs.RepositoryForm.clearValidate(),this.$refs.RepositoryForm.resetFields(),this.editVisible=!1},gitemplist:function(){var e=this;this.listLoading=!0,console.log(this.getemplist),Object(l.i)(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)}),Object(l.g)().then(function(t){200===t.data.ret?e.depts=t.data.data.content:e.$notify.error({title:"错误",message:"出错了",offset:100})}),Object(r.d)().then(function(t){200===t.data.ret&&(e.regions2=e.tranKTree(t.data.data.content))})},handleFilter2:function(){var e=this;this.getemplist.regionid=this.getemplistregions[this.getemplistregions.length-1],Object(l.i)(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})})},handleAdd2:function(){this.employeeVisible=!1,this.$router.push("/EmployeeInformation/NewEmployeeInformation")},handlechange4:function(e){var t=this;console.log(e);var a=e[e.length-1];Object(r.e)(a).then(function(e){200===e.data.ret?(console.log(e),t.repositories=e.data.data.content.list):t.$message.error("出错了")})},restemplist:function(){this.getemplist={repositoryid:"",regionid:"",postid:"",deptid:"",employeename:"",pagenum:1,pagesize:10,stat:1,time:"",jobnumber:""},this.getemplistregions=[]},handlechoose:function(){this.restemplist(),this.employeeVisible=!0,this.gitemplist()},handleCurrentChange:function(e){this.managerPeople=e.personName,this.RepositoryForm.managerPeopleId=e.id,this.employeeVisible=!1},handlechoose2:function(){this.restemplist(),this.regionManagerVisible=!0,this.gitemplist()},handleAdd3:function(){this.regionManagerVisible=!1,this.$router.push("/EmployeeInformation/NewEmployeeInformation")},handleCurrentChange2:function(e){console.log(e),this.regionManagerId=e.personName,this.RepositoryForm.regionManagerId=e.id,this.regionManagerVisible=!1}}},c=(a("zKoW"),a("KHd+")),m=Object(c.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("Repository.id"),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.id,callback:function(t){e.$set(e.getemplist,"id",t)},expression:"getemplist.id"}}),e._v(" "),a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("Repository.repositoryname"),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.repositoryName,callback:function(t){e.$set(e.getemplist,"repositoryName",t)},expression:"getemplist.repositoryName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{value:e.getemplist.type,placeholder:e.$t("Repository.type2"),clearable:""},model:{value:e.getemplist.type,callback:function(t){e.$set(e.getemplist,"type",t)},expression:"getemplist.type"}},e._l(e.types,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.categoryName}})})),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{value:e.getemplist.iseffective,placeholder:e.$t("Repository.iseffective"),clearable:""},model:{value:e.getemplist.iseffective,callback:function(t){e.$set(e.getemplist,"iseffective",t)},expression:"getemplist.iseffective"}},[a("el-option",{attrs:{label:"启用",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"停用",value:"2"}})],1),e._v(" "),a("el-cascader",{staticClass:"filter-item",attrs:{options:e.regions,props:e.props,"show-all-levels":!1,placeholder:"请选择区域","change-on-select":"",filterable:"",clearable:""},on:{change:e.handlechange4},model:{value:e.getemplistregions,callback:function(t){e.getemplistregions=t},expression:"getemplistregions"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"请选择国家",clearable:""},model:{value:e.getemplist.countyrId,callback:function(t){e.$set(e.getemplist,"countyrId",t)},expression:"getemplist.countyrId"}},e._l(e.nations,function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),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:"disable"}},[a("svg-icon",{staticStyle:{width:"40px"},attrs:{"icon-class":"tingyong"}}),e._v(e._s(e.$t("public.disable")))],1),e._v(" "),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("Repository.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("Repository.repositoryname"),resizable:!1,prop:"repositoryName",align:"center",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repositoryName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Repository.type2"),resizable:!1,prop:"categoryName",align:"center",width:"230"},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("Repository.iseffective"),resizable:!1,prop:"stat",align:"center",width:"230"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("iseffectiveFilter")(t.row.stat)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Repository.managerPeople"),resizable:!1,align:"center",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.managerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("Repository.regionId"),resizable:!1,prop:"regionName",align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.regionName))])]}}])}),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(" "),1===t.row.stat?a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){e.handleDisable(t.row)}}},[e._v(e._s(e.$t("public.disable")))]):e._e(),e._v(" "),2===t.row.stat?a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(a){e.handleEnable(t.row)}}},[e._v(e._s(e.$t("public.enable")))]):e._e(),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.editVisible,top:"10px",title:"修改仓库"},on:{"update:visible":function(t){e.editVisible=t}}},[a("h2",{ref:"geren",staticClass:"form-name"},[e._v("基本信息")]),e._v(" "),a("div",{staticClass:"container"},[a("el-form",{ref:"RepositoryForm",staticClass:"demo-ruleForm",staticStyle:{"margin-left":"30px"},attrs:{model:e.RepositoryForm,rules:e.Repositoryrules,inline:!0,"status-icon":"","label-position":"top","label-width":"300px"}},[a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.repositoryName"),prop:"repositoryName"}},[a("el-input",{attrs:{placeholder:"请输入门店名称",clearable:""},model:{value:e.RepositoryForm.repositoryName,callback:function(t){e.$set(e.RepositoryForm,"repositoryName",t)},expression:"RepositoryForm.repositoryName"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.longitude"),prop:"longitude"}},[a("el-input",{attrs:{placeholder:"请输入经度",autocomplete:"new-password",clearable:""},model:{value:e.RepositoryForm.longitude,callback:function(t){e.$set(e.RepositoryForm,"longitude",e._n(t))},expression:"RepositoryForm.longitude"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%"},attrs:{label:e.$t("Repository.latitude"),prop:"latitude"}},[a("el-input",{attrs:{placeholder:"请输入纬度",clearable:""},model:{value:e.RepositoryForm.latitude,callback:function(t){e.$set(e.RepositoryForm,"latitude",e._n(t))},expression:"RepositoryForm.latitude"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%"},attrs:{label:e.$t("public.address"),prop:"address"}},[a("el-input",{attrs:{placeholder:"请输入详细门店地址",clearable:""},model:{value:e.RepositoryForm.address,callback:function(t){e.$set(e.RepositoryForm,"address",t)},expression:"RepositoryForm.address"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.regionId")}},[a("el-input",{attrs:{autocomplete:"new-password",disabled:"",clearable:""},model:{value:e.regionname,callback:function(t){e.regionname=t},expression:"regionname"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.editregionId")}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.regions,props:e.props,"show-all-levels":!1,placeholder:"请选择区域","change-on-select":"",filterable:"",clearable:""},model:{value:e.regionId,callback:function(t){e.regionId=t},expression:"regionId"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.stat")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{value:e.RepositoryForm.stat,placeholder:"请选择"},model:{value:e.RepositoryForm.stat,callback:function(t){e.$set(e.RepositoryForm,"stat",t)},expression:"RepositoryForm.stat"}},[a("el-option",{attrs:{label:"active",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.type")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{value:e.RepositoryForm.type,placeholder:"请选择"},model:{value:e.RepositoryForm.type,callback:function(t){e.$set(e.RepositoryForm,"type",t)},expression:"RepositoryForm.type"}},e._l(e.types,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.categoryName}})}))],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.managerPeople")}},[a("el-input",{attrs:{value:e.managerPeople,placeholder:"请选择"},on:{focus:e.handlechoose},model:{value:e.managerPeople,callback:function(t){e.managerPeople=t},expression:"managerPeople"}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.employeeVisible,"append-to-body":"",top:"10px",title:"选择员工"},on:{"update:visible":function(t){e.employeeVisible=t}}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("NewEmployeeInformation.employeename"),clearable:""},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter2(t):null}},model:{value:e.getemplist.employeename,callback:function(t){e.$set(e.getemplist,"employeename",t)},expression:"getemplist.employeename"}}),e._v(" "),a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("NewEmployeeInformation.jobnumber2"),clearable:""},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter2(t):null}},model:{value:e.getemplist.jobnumber,callback:function(t){e.$set(e.getemplist,"jobnumber",t)},expression:"getemplist.jobnumber"}}),e._v(" "),a("el-date-picker",{staticClass:"filter-item",attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:e.getemplist.time,callback:function(t){e.$set(e.getemplist,"time",t)},expression:"getemplist.time"}}),e._v(" "),a("el-popover",{attrs:{placement:"bottom",width:"500",trigger:"click"}},[a("el-cascader",{staticStyle:{width:"40%",float:"left","margin-left":"20px"},attrs:{options:e.regions2,props:e.props2,"show-all-levels":!1,placeholder:"请选择区域","change-on-select":"",filterable:"",clearable:""},on:{change:e.handlechange4},model:{value:e.getemplistregions,callback:function(t){e.getemplistregions=t},expression:"getemplistregions"}}),e._v(" "),a("el-select",{staticStyle:{width:"40%",float:"right","margin-right":"20px"},attrs:{placeholder:"请选择门店",filterable:"",clearable:""},model:{value:e.getemplist.repositoryid,callback:function(t){e.$set(e.getemplist,"repositoryid",t)},expression:"getemplist.repositoryid"}},e._l(e.repositories,function(e,t){return a("el-option",{key:t,attrs:{label:e.repositoryName,value:e.id}})})),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"40%",float:"left","margin-top":"10px","margin-left":"20px"},attrs:{value:e.getemplist.postid,placeholder:e.$t("NewEmployeeInformation.postid2"),clearable:""},model:{value:e.getemplist.postid,callback:function(t){e.$set(e.getemplist,"postid",t)},expression:"getemplist.postid"}},[a("el-option",{attrs:{label:"xxx",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"xxx",value:"2"}})],1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"40%",float:"right","margin-top":"10px","margin-right":"20px"},attrs:{placeholder:e.$t("NewEmployeeInformation.deptid2"),clearable:""},model:{value:e.getemplist.deptid,callback:function(t){e.$set(e.getemplist,"deptid",t)},expression:"getemplist.deptid"}},e._l(e.depts,function(e,t){return a("el-option",{key:t,attrs:{label:e.deptName,value:e.id}})})),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.handleFilter2}},[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.handleFilter2}},[e._v(e._s(e.$t("public.search")))]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{icon:"el-icon-plus",type:"success"},on:{click:e.handleAdd2}},[e._v(e._s(e.$t("public.add")))])],1),e._v(" "),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:{"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.id"),resizable:!1,property:"id",align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.jobNumber"),resizable:!1,property:"jobNumber",align:"center",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.account"),resizable:!1,property:"account",width:"150",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.name"),resizable:!1,align:"center",width:"109"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.firstName)+" "+e._s(t.row.middleName)+" "+e._s(t.row.lastName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.gender"),resizable:!1,prop:"gender",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("genderFilter")(t.row.gender)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.deptName"),resizable:!1,prop:"deptName",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.regionName"),resizable:!1,prop:"regionName",align:"center",width:"230"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.regionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.repositoryName"),resizable:!1,prop:"repositoryName",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repositoryName))])]}}])})],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.gitemplist}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.createTime")}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择开业时间","value-format":"yyyy-MM-dd",clearable:"",disabled:""},model:{value:e.RepositoryForm.createTime,callback:function(t){e.$set(e.RepositoryForm,"createTime",t)},expression:"RepositoryForm.createTime"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.regionManager")}},[a("el-input",{attrs:{value:e.regionManagerId,placeholder:"请选择",clearable:""},on:{focus:e.handlechoose2},model:{value:e.regionManagerId,callback:function(t){e.regionManagerId=t},expression:"regionManagerId"}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.regionManagerVisible,"append-to-body":"",top:"10px",title:"选择员工"},on:{"update:visible":function(t){e.regionManagerVisible=t}}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("NewEmployeeInformation.employeename"),clearable:""},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter2(t):null}},model:{value:e.getemplist.employeename,callback:function(t){e.$set(e.getemplist,"employeename",t)},expression:"getemplist.employeename"}}),e._v(" "),a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("NewEmployeeInformation.jobnumber2"),clearable:""},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter2(t):null}},model:{value:e.getemplist.jobnumber,callback:function(t){e.$set(e.getemplist,"jobnumber",t)},expression:"getemplist.jobnumber"}}),e._v(" "),a("el-date-picker",{staticClass:"filter-item",attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:e.getemplist.time,callback:function(t){e.$set(e.getemplist,"time",t)},expression:"getemplist.time"}}),e._v(" "),a("el-popover",{attrs:{placement:"bottom",width:"500",trigger:"click"}},[a("el-cascader",{staticStyle:{width:"40%",float:"left","margin-left":"20px"},attrs:{options:e.regions2,props:e.props2,"show-all-levels":!1,placeholder:"请选择区域","change-on-select":"",filterable:"",clearable:""},on:{change:e.handlechange4},model:{value:e.getemplistregions,callback:function(t){e.getemplistregions=t},expression:"getemplistregions"}}),e._v(" "),a("el-select",{staticStyle:{width:"40%",float:"right","margin-right":"20px"},attrs:{placeholder:"请选择门店",filterable:"",clearable:""},model:{value:e.getemplist.repositoryid,callback:function(t){e.$set(e.getemplist,"repositoryid",t)},expression:"getemplist.repositoryid"}},e._l(e.repositories,function(e,t){return a("el-option",{key:t,attrs:{label:e.repositoryName,value:e.id}})})),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"40%",float:"left","margin-top":"10px","margin-left":"20px"},attrs:{value:e.getemplist.postid,placeholder:e.$t("NewEmployeeInformation.postid2"),clearable:""},model:{value:e.getemplist.postid,callback:function(t){e.$set(e.getemplist,"postid",t)},expression:"getemplist.postid"}},[a("el-option",{attrs:{label:"xxx",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"xxx",value:"2"}})],1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"40%",float:"right","margin-top":"10px","margin-right":"20px"},attrs:{placeholder:e.$t("NewEmployeeInformation.deptid2"),clearable:""},model:{value:e.getemplist.deptid,callback:function(t){e.$set(e.getemplist,"deptid",t)},expression:"getemplist.deptid"}},e._l(e.depts,function(e,t){return a("el-option",{key:t,attrs:{label:e.deptName,value:e.id}})})),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.handleFilter2}},[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.handleFilter2}},[e._v(e._s(e.$t("public.search")))]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{icon:"el-icon-plus",type:"success"},on:{click:e.handleAdd3}},[e._v(e._s(e.$t("public.add")))])],1),e._v(" "),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:{"current-change":e.handleCurrentChange2}},[a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.id"),resizable:!1,property:"id",align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.jobNumber"),resizable:!1,property:"jobNumber",align:"center",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.account"),resizable:!1,property:"account",width:"150",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.name"),resizable:!1,align:"center",width:"109"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.firstName)+" "+e._s(t.row.middleName)+" "+e._s(t.row.lastName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.gender"),resizable:!1,prop:"gender",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("genderFilter")(t.row.gender)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.deptName"),resizable:!1,prop:"deptName",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.regionName"),resizable:!1,prop:"regionName",align:"center",width:"230"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.regionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.repositoryName"),resizable:!1,prop:"repositoryName",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repositoryName))])]}}])})],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.gitemplist}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.attributes")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{value:e.RepositoryForm.attributes,placeholder:"请选择",clearable:""},model:{value:e.RepositoryForm.attributes,callback:function(t){e.$set(e.RepositoryForm,"attributes",t)},expression:"RepositoryForm.attributes"}},[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",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.countryId"),prop:"countryId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择国家",disabled:""},model:{value:e.RepositoryForm.countryId,callback:function(t){e.$set(e.RepositoryForm,"countryId",t)},expression:"RepositoryForm.countryId"}},e._l(e.nations,function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Repository.description")}},[a("el-input",{attrs:{type:"textarea",clearable:""},model:{value:e.RepositoryForm.description,callback:function(t){e.$set(e.RepositoryForm,"description",t)},expression:"RepositoryForm.description"}})],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)])},[],!1,null,"74258422",null);m.options.__file="RepositoryList.vue";t.default=m.exports},Y5bG:function(e,t,a){"use strict";a.d(t,"a",function(){return n}),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 n(e,t,a){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,r=e-n,o=0;t=void 0===t?500:t;!function e(){o+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(o,n,r,t)),o<t?i(e):a&&"function"==typeof a&&a()}()}},ZySA:function(e,t,a){"use strict";var i=a("P2sY"),n=a.n(i),r=(a("jUE0"),{bind:function(e,t){e.addEventListener("click",function(a){var i=n()({},t.value),r=n()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=r.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var l=o.getBoundingClientRect(),s=o.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":((s=document.createElement("span")).className="waves-ripple",s.style.height=s.style.width=Math.max(l.width,l.height)+"px",o.appendChild(s)),r.type){case"center":s.style.top=l.height/2-s.offsetHeight/2+"px",s.style.left=l.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(a.pageY-l.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(a.pageX-l.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=r.color,s.className="waves-ripple z-active",!1}},!1)}}),o=function(e){e.directive("waves",r)};window.Vue&&(window.waves=r,Vue.use(o)),r.install=o;t.a=r},jUE0:function(e,t,a){},p1l9:function(e,t,a){},zKoW:function(e,t,a){"use strict";var i=a("p1l9");a.n(i).a}}]); |