text: webpackJsonp([1],{100:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ERR_OK0=0,t.ERR_OK1=1,t.ERR_OK2=2,t.SYS_ERROR_MSG="系统错误，请重新刷新页面！   "},218:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(284),n=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=n.default},219:function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(568),o=r(n),i=a(566),l=r(i),s=a(567),d=r(s),u=a(569),c=r(u),m=a(572),p=r(m),f=a(571),b=r(f),g=a(573),h=r(g),v=a(575),_=r(v),y=a(574),O=r(y),w=a(576),x=r(w),k=a(570),F=r(k),$=[{path:"/login",component:o.default,name:"",hidden:!0},{path:"/404",component:l.default,name:"",hidden:!0},{path:"/",component:d.default,name:"办公用品库",iconCls:"el-icon-message",children:[{path:"/main",component:c.default,name:"办公用品采购（暂时不用）",hidden:!0},{path:"/buyThingApply",component:p.default,name:"采购申请表"},{path:"/table",component:b.default,name:"办公用品申领表"},{path:"/user",component:h.default,name:"列表"}]},{path:"/",component:d.default,name:"库存",iconCls:"fa fa-id-card-o",children:[{path:"/enterWarehouseRecord",component:_.default,name:"入库报表"},{path:"/page5",component:O.default,name:"库存表"}]},{path:"/",component:d.default,name:"",iconCls:"fa fa-address-card",leaf:!0,children:[{path:"/page6",component:x.default,name:"申领记录"}]},{path:"/",component:d.default,name:"附录",iconCls:"fa fa-bar-chart",children:[{path:"/sorts",component:F.default,name:"种类管理"}]},{path:"*",hidden:!0,redirect:{path:"/404"}}];t.default=$},220:function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(19),i=n(o),l=a(148),s=n(l),d=a(285),u=r(d),c=a(286),m=r(c);i.default.use(s.default);var p={count:10},f={INCREMENT:function(e){e.count++},DECREMENT:function(e){e.count--}};t.default=new s.default.Store({actions:u,getters:m,state:p,mutations:f})},223:function(e,t){},224:function(e,t){},226:function(e,t,a){a(560);var r=a(24)(a(272),a(585),null,null);e.exports=r.exports},272:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"app",components:{}}},273:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{sysName:"办公用品仓库管理",collapsed:!1,sysUserName:"",sysUserAvatar:"",form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""}}},methods:{onSubmit:function(){console.log("submit!")},handleopen:function(){},handleclose:function(){},handleselect:function(e,t){},logout:function(){var e=this;this.$confirm("确认退出吗?","提示",{}).then(function(){sessionStorage.removeItem("user"),e.$router.push("/login")}).catch(function(){})},collapse:function(){this.collapsed=!this.collapsed},showMenu:function(e,t){this.$refs.menuCollapsed.getElementsByClassName("submenu-hook-"+e)[0].style.display=t?"block":"none"}},mounted:function(){var e=sessionStorage.getItem("user");e&&(e=JSON.parse(e),this.sysUserName=e.name||"",this.sysUserAvatar=e.avatar||"")}}},274:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(101),n=function(e){return e&&e.__esModule?e:{default:e}}(r),o=a(59);t.default={data:function(){return{logining:!1,ruleForm2:{account:"admin",checkPass:"123456"},rules2:{account:[{required:!0,message:"请输入账号",trigger:"blur"}],checkPass:[{required:!0,message:"请输入密码",trigger:"blur"}]},checked:!0}},methods:{getInitData:function(){var e=[],t=[],a=[];this.$http.get("/api/admin/config/getInitData").then(function(r){if(0===r.data.code){var o=r.data.data.allSorts,i=r.data.data.allDepartments,l=r.data.data.allUsers;for(var s in o){var d={value:o[s].name,label:o[s].name};d=(0,n.default)(d),e.push(d)}i.forEach(function(e){var a=(0,n.default)(e);t.push(a)}),l.forEach(function(e){var t=(0,n.default)(e);a.push(t)}),sessionStorage.sortGroup=e,sessionStorage.departmentsGroup=t,sessionStorage.usersGroup=a}else{var u=r.msg;alert(u)}},function(e){alert("系统错误，请重新刷新页面！  "+e)})},handleReset2:function(){this.$refs.ruleForm2.resetFields()},handleSubmit2:function(e){var t=this;this.$refs.ruleForm2.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.logining=!0;var a={username:t.ruleForm2.account,password:t.ruleForm2.checkPass};(0,o.requestLogin)(a).then(function(e){t.logining=!1;var a=e.msg,r=e.code,o=e.user;200!==r?t.$message({message:a,type:"error"}):(sessionStorage.setItem("user",(0,n.default)(o)),t.getInitData(),t.$router.push({path:"/buyThingApply"}))})})}}}},275:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},276:function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(101),o=r(n),i=a(100),l=a(73),s=r(l);t.default={data:function(){return{listLoading:!1,addFormVisible:!1,addObj:{name:""},addFormRules:{name:[{required:!0,message:"请输入种类名称",trigger:"blur"}]},sortList:[],editFormVisible:!1,editObj:{id:"",name:""},editFormRules:{name:[{required:!0,message:"请输入种类名称",trigger:"blur"}]},sels:[]}},methods:{getAllSorts:function(){var e=this;this.$http.get("/api/admin/good/findAllSorts").then(function(t){if(t.data.code===i.ERR_OK0){var a=t.data.data;e.sortList=a;var r=[];for(var n in a){var l={value:a[n].name,label:a[n].name};l=(0,o.default)(l),r.push(l)}sessionStorage.sortGroup=r}},function(e){alert(i.SYS_ERROR_MSG+e)})},selsChange:function(e){this.sels=e},handleAdd:function(){this.addFormVisible=!0,s.default.emptyObj(this.addObj)},closeAddDialog:function(e){this.$refs[e].clearValidate()},handleAddFormSubmit:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;t.$confirm("确认提交吗？","提示",{}).then(function(){t.listLoading=!0;var e=t.addObj;t.$http.post("/api/admin/good/addSortItem",e).then(function(e){if(e.data.code===i.ERR_OK0)alert("种类添加成功！"),t.listLoading=!1,t.addFormVisible=!1,t.getAllSorts();else{var a=e.msg;alert(a)}},function(e){alert(i.SYS_ERROR_MSG+e)})})})},closeEditDialog:function(e){this.$refs[e].clearValidate()},handleEdit:function(e,t){this.editObj.id=t.id,this.editObj.name=t.name,this.editFormVisible=!0},handleEditFormSubmit:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;t.$confirm("确认提交吗？","提示",{}).then(function(){t.listLoading=!0;var e=t.editObj;t.$http.post("/api/admin/good/updateSortItem",e).then(function(e){if(e.data.code===i.ERR_OK0)t.editFormVisible=!1,alert("编辑成功！"),t.listLoading=!1,t.getAllSorts();else{var a=e.msg;alert(a)}},function(e){alert(i.SYS_ERROR_MSG+e)})})})},handleDel:function(e,t){var a=this;this.$confirm("确认删除吗？","提示",{}).then(function(){a.listLoading=!0;var e={id:t.id};a.$http.post("/api/admin/good/deleteSortItem",e).then(function(e){if(e.data.code===i.ERR_OK0)alert("删除成功！"),a.listLoading=!1,a.getAllSorts();else{var t=e.msg;alert(t)}},function(e){})})}},mounted:function(){this.getAllSorts()}}},277:function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(102),o=r(n),i=a(73),l=r(i),s=a(59);t.default={data:function(){return{filters:{name:""},users:[],total:0,page:1,listLoading:!1,sels:[],editFormVisible:!1,editLoading:!1,editFormRules:{name:[{required:!0,message:"请输入姓名",trigger:"blur"}]},editForm:{id:0,name:"",sex:-1,age:0,birth:"",addr:""},addFormVisible:!1,addLoading:!1,addFormRules:{name:[{required:!0,message:"请输入姓名",trigger:"blur"}]},addForm:{name:"",sex:-1,age:0,birth:"",addr:""}}},methods:{formatSex:function(e,t){return 1==e.sex?"男":0==e.sex?"女":"未知"},handleCurrentChange:function(e){this.page=e,this.getUsers()},getUsers:function(){var e=this,t={page:this.page,name:this.filters.name};this.listLoading=!0,(0,s.getUserListPage)(t).then(function(t){e.total=t.data.total,e.users=t.data.users,e.listLoading=!1})},handleDel:function(e,t){var a=this;this.$confirm("确认删除该记录吗?","提示",{type:"warning"}).then(function(){a.listLoading=!0;var e={id:t.id};(0,s.removeUser)(e).then(function(e){a.listLoading=!1,a.$message({message:"删除成功",type:"success"}),a.getUsers()})}).catch(function(){})},handleEdit:function(e,t){this.editFormVisible=!0,this.editForm=(0,o.default)({},t)},handleAdd:function(){this.addFormVisible=!0,this.addForm={name:"",sex:-1,age:0,birth:"",addr:""}},editSubmit:function(){var e=this;this.$refs.editForm.validate(function(t){t&&e.$confirm("确认提交吗？","提示",{}).then(function(){e.editLoading=!0;var t=(0,o.default)({},e.editForm);t.birth=t.birth&&""!=t.birth?l.default.formatDate.format(new Date(t.birth),"yyyy-MM-dd"):"",(0,s.editUser)(t).then(function(t){e.editLoading=!1,e.$message({message:"提交成功",type:"success"}),e.$refs.editForm.resetFields(),e.editFormVisible=!1,e.getUsers()})})})},addSubmit:function(){var e=this;this.$refs.addForm.validate(function(t){t&&e.$confirm("确认提交吗？","提示",{}).then(function(){e.addLoading=!0;var t=(0,o.default)({},e.addForm);t.birth=t.birth&&""!=t.birth?l.default.formatDate.format(new Date(t.birth),"yyyy-MM-dd"):"",(0,s.addUser)(t).then(function(t){e.addLoading=!1,e.$message({message:"提交成功",type:"success"}),e.$refs.addForm.resetFields(),e.addFormVisible=!1,e.getUsers()})})})},selsChange:function(e){this.sels=e},batchRemove:function(){var e=this,t=this.sels.map(function(e){return e.id}).toString();this.$confirm("确认删除选中记录吗？","提示",{type:"warning"}).then(function(){e.listLoading=!0;var a={ids:t};(0,s.batchRemoveUser)(a).then(function(t){e.listLoading=!1,e.$message({message:"删除成功",type:"success"}),e.getUsers()})}).catch(function(){})}},mounted:function(){this.getUsers()}}},278:function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(288),o=r(n),i=(a(59),a(73)),l=r(i),s=a(281),d=a(100);t.default={data:function(){var e=this,t=function(e,t,a){if(!t)return a(new Error("请输入单价！"));var r=/^[0-9]+(.[0-9]{1,2})?$/;setTimeout(function(){r.test(t)?a():a("单价格式不正确！")},1e3)},a=function(t,a,r){var n=e.editObj.buyOrderItems,o=/^[0-9]+(.[0-9]{1,2})?$/,i=/^[1-9]\d*$/,l=!0;n.forEach(function(t){for(var a in t)"price"===a&&(o.test(t[a])||(e.err_msg="单价格式不正确，至多保留两位以内小数！",l=!1)),"number"===a&&(i.test(t[a])||(e.err_msg="请在数量一列中输入整数！",l=!1)),""===t[a]&&(e.err_msg="物品明细数据不能为空！",l=!1)}),l&&(e.err_msg=""),r()},r=function(t,a,r){var n=e.addObj.buyOrderItems,o=/^[0-9]+(.[0-9]{1,2})?$/,i=/^[1-9]\d*$/,l=!0;n.forEach(function(t){for(var a in t)"price"===a&&(o.test(t[a])||(e.err_msg="单价格式不正确，至多保留两位以内小数！",l=!1)),"number"===a&&(i.test(t[a])||(e.err_msg="请在数量一列中输入整数！",l=!1)),""===t[a]&&(e.err_msg="物品明细数据不能为空！",l=!1)}),l&&(e.err_msg=""),r()};return{state2:"",visible2:!1,listLoading:!1,allDepartments:[],allUsers:[],warehouseManagers:[],enterWarehouseLoading:!1,buyOrdersList:[],orderItemsNum:[],rowIndex1:0,approvalLoading:!1,sels:[],batchApprovalLoading:!1,pagenation:{totalElements:0,currentPage:0,pageSizes:[10,20,50,100],pageSize:20},editObj:{},editRequestors:[],editFormVisible:!1,editLoading:!1,timeOptions:{shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"昨天",onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},sortGroup:[],nameBool:!1,err_msg:"",editFormRules:{departmentId:[{required:!0,message:"请选择部门名称",trigger:"change"}],requestorId:[{required:!0,message:"请选择部门名称",trigger:"change"}],createAdmin:[{required:!0,message:"请输入物品名称",trigger:"blur"}],createTime:[{required:!0,message:"请输入创建时间",trigger:"blur"}],updateAdmin:[{required:!0,message:"请输入更新人",trigger:"blur"}],updateTime:[{required:!0,message:"请输入更新时间",trigger:"blur"}],requestTime:[{required:!0,message:"请输入申请时间",trigger:"blur"}],buyOrderItems:[{required:!0,message:"物品明细不能为空",trigger:"blur"},{validator:a,trigger:"blur"}],price:[{validator:t,trigger:"blur"},{required:!0,message:"请输入数量",trigger:"blur"}],sort:[{required:!0,message:"请输入物品种类",trigger:"change"}],spec:[{required:!0,message:"请输入物品名称",trigger:"blur"}],unit:[{required:!0,message:"请输入物品名称",trigger:"blur"}]},errMsg:!1,errMsg1:!1,addFormVisible:!1,addLoading:!1,addObj:{departmentId:"",requestTime:"",requestorId:"",description:"",buyOrderItems:[]},addRequestors:[],addFormRules:{departmentId:[{required:!0,message:"请选择部门名称",trigger:"change"}],requestorId:[{required:!0,message:"请选择部门名称",trigger:"change"}],createAdmin:[{required:!0,message:"请输入物品名称",trigger:"blur"}],createTime:[{required:!0,message:"请输入创建时间",trigger:"blur"}],updateAdmin:[{required:!0,message:"请输入更新人",trigger:"blur"}],updateTime:[{required:!0,message:"请输入更新时间",trigger:"blur"}],requestTime:[{required:!0,message:"请输入申请时间",trigger:"blur"}],buyOrderItems:[{required:!0,message:"物品明细不能为空",trigger:"blur"},{validator:r,trigger:"blur"}]}}},computed:{computeEditTotalPrice:{set:function(e){this.editObj.totalPrice=e},get:function(){var e=this.editObj.buyOrderItems,t=0;return e&&e.forEach(function(e){var a=100*e.price*e.number/100;t+=a}),this.editObj.totalPrice=t,this.editObj.totalPrice}},computeAddTotalPrice:{set:function(e){this.addObj.totalPrice=e},get:function(){var e=this.addObj.buyOrderItems,t=0;return e&&e.forEach(function(e){var a=100*e.price*e.number/100;t+=a}),(0,o.default)(t)?this.addObj.totalPrice=0:this.addObj.totalPrice=t,this.addObj.totalPrice}}},methods:{getBuyOrderList:function(e,t){var a=this;this.$http.get("/api/admin/buyOrder/findAllBuyOrders?page="+e+"&size="+t).then(function(e){var t=e.data.code;if(d.ERR_OK0===t){var r=e.data.data.content,n=e.data.data.numberOfElements;a.pagenation.totalElements=n,a.buyOrdersList=(0,s.getNewDataAndMap)("buyOrderItems",r).data,a.orderItemsNum=(0,s.getNewDataAndMap)("buyOrderItems",r).map}else{var o=e.msg;alert(o)}},function(e){alert("系统错误，请重新刷新页面 "+e)})},clearValidate:function(e){this.$refs[e].clearValidate(),this.err_msg=""},arraySpanMethod:function(e){var t=(e.row,e.column,e.rowIndex),a=e.columnIndex,r=this.orderItemsNum;if(0===a||1===a||2===a||9===a||10===a||11===a||12===a||13===a||14===a||15===a||16===a||17===a)return null!=r[t]?{rowspan:r[t],colspan:1}:{rowspan:0,colspan:0}},handleAdd:function(){this.addFormVisible=!0,l.default.emptyObj(this.addObj)},selectAddDepartment:function(e){var t=this,a={departmentId:e};this.addRequestors=[],this.$http.post("/api/admin/user/findUsersByDepartmentId",a,{emulateJSON:!0}).then(function(e){e.data.forEach(function(e){var a={id:e.id,name:e.name};t.addRequestors.push(a)})},function(e){alert("系统错误，请重新刷新页面   "+e)})},handleAddFormDelGoodItems:function(e){this.addObj.buyOrderItems.splice(e,1),this.checkBuyOrderItems(this.addObj.buyOrderItems)},handleAddFormAddGoodItems:function(e){var t={name:"",sort:"",spec:"",unit:"",number:"",price:""};e.push(t)},handleAddFormSubmit:function(e){var t=this;this.$refs[e].validate(function(e){return!!e&&(""===t.err_msg&&void t.$confirm("确认提交吗？","提示",{}).then(function(){t.addLoading=!0;var e=t.addObj;console.log(e),t.$http.post("/api/admin/buyOrder/addBuyOrder",e).then(function(e){if(e.data.code===d.ERR_OK0){alert("采购单添加成功！"),t.addFormVisible=!1,t.addLoading=!1;var a=t.pagenation.currentPage,r=t.pagenation.pageSize;t.getBuyOrderList(a,r)}else alert(e.msg)},function(e){alert("系统错误，请重新刷新页面！")})}))})},quickAdd:function(){var e=this,t=[],a=!0;if(this.sels.forEach(function(e){0!==e.approvalResult?a=!1:t.push(e.id)}),!a)return alert("有部分或全部采购单未审核通过，请选择审核通过的采购单！"),!1;this.$confirm("确认入库吗？","提示",{type:"warning"}).then(function(){e.listLoading=!0,e.$http.post("/api/admin/buyOrder/quickInput",t).then(function(t){if(t.data.code===d.ERR_OK0){alert("入库成功！"),e.listLoading=!1;var a=e.pagenation.currentPage,r=e.pagenation.pageSize;e.getBuyOrderList(a,r)}else{var n=t.msg;alert(n)}},function(e){alert("系统错误，请重新刷新页面   "+e)})})},showPopover:function(e){return 2!==e},appoval:function(e,t){var a=this,r={id:e,approvalResult:t},n=[];n.push(r),this.$confirm("确认提交吗？","提示",{}).then(function(){a.listLoading=!0,a.$http.post("/api/admin/buyOrder/approve",n).then(function(e){if(e.data.code===d.ERR_OK0){alert("审批成功！"),a.listLoading=!1;var t=a.pagenation.currentPage,r=a.pagenation.pageSize;a.getBuyOrderList(t,r)}else{var n=e.msg;alert(n)}},function(e){alert("系统错误，请重新刷新页面！   "+e)})})},checkInApproval:function(e){return 2!==e},handleSizeChange:function(e){var t=this;this.pagenation.pageSize=e;var a=this.pagenation.currentPage,r=this.pagenation.pageSize;this.listLoading=!0,this.$http.get("/api/admin/buyOrder/findAllBuyOrders?page="+a+"&size="+r).then(function(e){if(t.listLoading=!1,e.data.code===d.ERR_OK0){var a=e.data.data.content;t.buyOrdersList=(0,s.getNewDataAndMap)("buyOrderItems",a).data,t.orderItemsNum=(0,s.getNewDataAndMap)("buyOrderItems",a).map}else{var r=e.msg;alert(r)}},function(e){alert("系统错误，请重新刷新页面！  "+e)})},handleCurrentChange:function(e){var t=this,a=e-1;this.pagenation.currentPage=a;var r=this.pagenation.pageSize;this.listLoading=!0,this.$http.get("/api/admin/buyOrder/findAllBuyOrders?page="+a+"&size="+r).then(function(e){t.listLoading=!1;var a=e.data.code;if(d.ERR_OK0===a){var r=e.data.data.content;t.buyOrdersList=(0,s.getNewDataAndMap)("buyOrderItems",r).data,t.orderItemsNum=(0,s.getNewDataAndMap)("buyOrderItems",r).map}else{var n=e.msg;alert(n)}},function(e){alert("系统错误，请重新刷新页面！  "+e)})},selsChange:function(e){this.sels=e},batchApproval:function(e){var t=this,a=[],r=!0;if(this.sels.forEach(function(t){if(2===t.approvalResult){var n={id:t.id,approvalResult:e};a.push(n)}else r=!1}),!1===r)return alert("存在已审核的采购记录！"),!1;var n="";n=0===e?"确认审核通过？":"确认审核不通过？",this.$confirm(n,"提示",{type:"warning"}).then(function(){t.listLoading=!0,t.$http.post("/api/admin/buyOrder/approve",a).then(function(e){if(e.data.code===d.ERR_OK0){alert("批量审核成功！"),t.listLoading=!1;var a=t.pagenation.currentPage,r=t.pagenation.pageSize;t.getBuyOrderList(a,r)}else{var n=e.msg;alert(n)}},function(e){alert("系统错误，请重新刷新页面   "+e)})})},batchRemove:function(){var e=this,t=this.sels.map(function(e){return{id:e.id}});this.$confirm("确认删除选中记录吗？","提示",{type:"warning"}).then(function(){e.listLoading=!0,e.$http.post("/api/admin/buyOrder/deleteBuyOrders",t).then(function(t){if(t.data.code===d.ERR_OK0){alert("批量删除成功！"),e.listLoading=!1;var a=e.pagenation.currentPage,r=e.pagenation.pageSize;e.getBuyOrderList(a,r)}else{var n=t.msg;alert(n)}},function(e){alert("系统错误，请重新刷新页面   "+e)})})},checkBuyOrderItems:function(e){var t=this,e=e,a=/^[0-9]+(.[0-9]{1,2})?$/,r=/^[1-9]\d*$/,n=!0;e.forEach(function(e){for(var o in e)"price"===o&&(a.test(e[o])||(t.err_msg="单价格式不正确，至多保留两位以内小数！",n=!1)),"number"===o&&(r.test(e[o])||(t.err_msg="请在数量一列中输入整数！",n=!1)),""===e[o]&&(t.err_msg="物品明细数据不能为空！",n=!1)}),n&&(this.err_msg="")},handleEdit:function(e,t){var a=this;this.editFormVisible=!0;var r={buyOrderId:t.id},n={departmentId:t.departmentId};this.editRequestors=[],this.$http.post("/api/admin/user/findUsersByDepartmentId",n,{emulateJSON:!0}).then(function(e){e.data.forEach(function(e){var t={id:e.id,name:e.name};a.editRequestors.push(t)})},function(e){alert("系统错误，请重新刷新页面！  "+e)}),this.$http.post("/api/admin/buyOrder/findBuyOrderById",r,{emulateJSON:!0}).then(function(e){if(200===e.status)a.editObj=e.body;else{var t=e.msg;alert(t)}},function(e){alert("系统错误，请重新刷新页面！  "+e)})},selectEditDepartment:function(e){var t=this,a={departmentId:e};this.editRequestors=[],this.$http.post("/api/admin/user/findUsersByDepartmentId",a,{emulateJSON:!0}).then(function(e){e.data.forEach(function(e){var a={id:e.id,name:e.name};t.editRequestors.push(a)})},function(e){alert("系统错误，请重新刷新页面   "+e)})},handleEditDelGoodItems:function(e){this.editObj.buyOrderItems.splice(e,1),this.checkBuyOrderItems(this.editObj.buyOrderItems)},handleEditAddGoodItems:function(){var e={name:"",sort:"",spec:"",unit:"",number:"",price:""};this.editObj.buyOrderItems.push(e)},handleEditFormSubmit:function(e){var t=this;this.$refs[e].validate(function(e){return!!e&&(""===t.err_msg&&void t.$confirm("确认提交吗？","提示",{}).then(function(){t.listLoading=!1,t.editLoading=!0;var e={id:t.editObj.id,departmentId:t.editObj.departmentId,delFlag:t.editObj.delFlag,createTime:t.editObj.createTime,createAdmin:t.editObj.createAdmin,updateAdmin:t.editObj.updateAdmin,requestTime:t.editObj.requestTime,requestTotalPrice:t.editObj.requestTotalPrice,requestorId:t.editObj.requestorId,description:t.editObj.description,approvalTaskId:t.editObj.approvalTaskId,approvalResult:t.editObj.approvalResult,approvalTime:t.editObj.approvalTime,bills:t.editObj.bills,buyOrderItems:t.editObj.buyOrderItems};t.$http.post("/api/admin/buyOrder/updateBuyOrder",e).then(function(e){if(t.editLoading=!1,e.data.code===d.ERR_OK0){t.editFormVisible=!1,alert("采购单修改成功！"),t.listLoading=!1;var a=t.pagenation.currentPage,r=t.pagenation.pageSize;t.getBuyOrderList(a,r)}else alert(e.msg)},function(e){alert("系统错误，请重新刷新页面！")})}))})},handleDel:function(e,t){var a=this;this.$confirm("确认删除该记录吗?","提示",{type:"warning"}).then(function(){a.listLoading=!0;var e={id:t.id};a.$http.post("/api/admin/buyOrder/deleteBuyOrder",e).then(function(e){a.listLoading=!1;var t=e.data.code;if(d.ERR_OK0===t){alert("删除成功！");var r=a.pagenation.currentPage,n=a.pagenation.pageSize;a.getBuyOrderList(r,n)}else{var o=e.msg;alert(o)}},function(e){alert("系统错误，请重新刷新页面！   "+e)})})},filterTag:function(e,t){t.approvalResult},tagChange:function(e){switch(e.row.approvalResult){case 0:return e.row.tag="已通过","success";case 1:return e.row.tag="未通过","danger";case 2:default:return e.row.tag="审核中","primary"}}},created:function(){var e=this,t="["+sessionStorage.sortGroup+"]",a="["+sessionStorage.departmentsGroup+"]";t=JSON.parse(t),a=JSON.parse(a),a.forEach(function(t){var a={id:t.id,name:t.name};e.allDepartments.push(a)}),this.sortGroup=t,this.$http.get("/api/admin/buyOrder/findAllBuyOrders?page=0&size=20").then(function(t){var a=t.data.code;if(d.ERR_OK0===a){var r=t.data.data.content,n=t.data.data.numberOfElements;e.pagenation.totalElements=n,console.log(r),e.buyOrdersList=(0,s.getNewDataAndMap)("buyOrderItems",r).data,e.orderItemsNum=(0,s.getNewDataAndMap)("buyOrderItems",r).map}else{var o=t.msg;alert(o)}},function(e){alert("系统错误，请重新刷新页面 "+e)})}}},279:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(59);t.default={data:function(){return{filters:{name:""},loading:!1,users:[]}},methods:{formatSex:function(e,t){return 1==e.sex?"男":0==e.sex?"女":"未知"},getUser:function(){var e=this,t={name:this.filters.name};this.loading=!0,(0,r.getUserList)(t).then(function(t){e.users=t.data.users,e.loading=!1})}},mounted:function(){this.getUser()}}},280:function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(102),o=r(n),i=a(73),l=(r(i),a(59),a(100)),s=(a(59),a(66));r(s);t.default={data:function(){var e=function(e,t,a){var r=/^[1-9]\d*$/;setTimeout(function(){r.test(t)?a():a("\t数量格式不正确！")},1e3)},t=function(e,t,a){if(!t)return a(new Error("请输入单价！"));var r=/^[0-9]+(.[0-9]{1,2})?$/;setTimeout(function(){r.test(t)?a():a("单价格式不正确！")},1e3)},a=function(e,t,a){var r=/^[0-9]+(.[0-9]{1,2})?$/;console.log(t),setTimeout(function(){r.test(t)?a():a("单价格式不正确！")},1e3)};return{goods:[],queryObj:{page:0,size:20,name:"",price_start:"",price_end:"",sort:""},queryRules:{price_start:[{validator:a,trigger:"blur"}],price_end:[{validator:a,trigger:"blur"}]},newGoodItem:{},editGoodItem:{},editFormVisible:!1,editLoading:!1,editFormRules:{name:[{required:!0,message:"请输入物品名称",trigger:"blur"}],number:[{validator:e,trigger:"blur"}],price:[{validator:t,trigger:"blur"},{required:!0,message:"请输入数量",trigger:"blur"}],sort:[{required:!0,message:"请输入物品种类",trigger:"change"}],spec:[{required:!0,message:"请输入物品名称",trigger:"blur"}],unit:[{required:!0,message:"请输入物品名称",trigger:"blur"}]},sortNames:[],queryValueSelected:"",dateShow:!1,inputShow:!1,queryKeyDefault:"",enterWarehouseQueryKeyGroup:[],enterWarehouseRecords:[],pagenation:{totalElements:0,currentPage:1,pageSizes:[10,20,50,100],pageSize:20},listLoading:!1,sels:[],addFormVisible:!1,addLoading:!1,addFormRules:{name:[{required:!0,message:"请输入物品名称",trigger:"blur"}],number:[{validator:e,trigger:"blur"}],price:[{validator:t,trigger:"blur"},{required:!0,message:"请输入单价",trigger:"blur"}],sort:[{required:!0,message:"请输入物品种类",trigger:"change"}],spec:[{required:!0,message:"请输入物品规格",trigger:"blur"}],unit:[{required:!0,message:"请输入物品单位",trigger:"blur"}]}}},methods:{querySearch:function(e,t){var a=this.goods,r=e?a.filter(this.createFilter(e)):a;console.log(r),t(r)},createFilter:function(e){return function(t){return 0===t.value.toLowerCase().indexOf(e.toLowerCase())}},handleNameSelect:function(e){this.queryObj.name=e.value},handleSortSelect:function(e){this.queryObj.sort=e},handleQuery:function(e){var t=this;e.preventDefault();var a=this.queryObj;this.$http.post("/api/admin/good/findGoodItemsBySearchParams",a,{emulateJSON:!0}).then(function(e){var a=e.code;if(console.log(e),a===l.ERR_OK0){var r=e.data.data;t.enterWarehouseRecords=r,t.pagenation.totalElements=r.length}},function(e){console.log(e)})},handleSizeChange:function(e){var t=this;this.pagenation.pageSize=e;var a=this.pagenation.currentPage,r=this.pagenation.pageSize,n=this.queryObj;this.queryObj.size=r;var o={page:a,size:r,name:n.name,price_start:n.price_start,price_end:n.price_end,sort:n.sort};this.$http.post("/api/admin/good/findGoodItemsBySearchParams",o,{emulateJSON:!0}).then(function(e){if(e.code===l.ERR_OK0)t.enterWarehouseRecords=e.data.data;else{var a=e.msg;alert(a)}},function(e){alert("系统错误，请重新刷新页面！  "+e)})},handleCurrentChange:function(e){var t=this,a=e,r=this.pagenation.pageSize,n=this.queryObj;this.queryObj.page=a;var o={page:a,size:r,name:n.name,price_start:n.price_start,price_end:n.price_end,sort:n.sort};this.$http.post("/api/admin/good/findGoodItemsBySearchParams",o,{emulateJSON:!0}).then(function(e){var a=e.code;if(l.ERR_OK0===a)t.enterWarehouseRecords=e.data.data;else{var r=e.msg;alert(r)}},function(e){alert("系统错误，请重新刷新页面！  "+e)})},handleAdd:function(){this.addFormVisible=!0,this.addForm={name:"",number:0,price:0,sort:"",spec:"",unit:""}},addFormSortSelected:function(e){this.newGoodItem.sort=e},submitAddForm:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;t.$confirm("确认提交吗？","提示",{}).then(function(){t.addLoading=!0;var e=t.newGoodItem;t.$http.post("/api/admin/good/addGoodItem",e).then(function(e){e.code===l.ERR_OK0?(alert("物品添加成功！"),history.go(0)):alert(e.msg)},function(e){alert("系统错误，请重新刷新页面！")})})})},handleEdit:function(e,t){this.editFormVisible=!0,this.editGoodItem=(0,o.default)({},t)},submitEditForm:function(){var e=this;this.$refs.editForm.validate(function(t){t&&e.$confirm("确认提交吗？","提示",{}).then(function(){e.editLoading=!0;var t={};t.id=e.editGoodItem.id,t.name=e.editGoodItem.name,t.sort=e.editGoodItem.sort,t.unit=e.editGoodItem.unit,t.price=e.editGoodItem.price,t.spec=e.editGoodItem.spec,t.number=e.editGoodItem.number,e.$http.post("/api/admin/good/updateGoodItem",t).then(function(e){var t=e.code;if(l.ERR_OK0===t)alert("编辑成功！"),setTimeout(function(){history.go(0)},200);else{var a=e.msg;alert(a)}},function(e){alert("系统错误，请重新刷新页面！   "+e)})})})},handleDel:function(e,t){var a=this;this.$confirm("确认删除该记录吗?","提示",{type:"warning"}).then(function(){a.listLoading=!0;var e={id:t.id};a.$http.post("/api/admin/good/deleteGoodItem",e).then(function(e){var t=e.code;if(l.ERR_OK0===t)alert("删除成功！"),setTimeout(function(){history.go(0)},200);else{var a=e.msg;alert(a)}},function(e){alert("系统错误，请重新刷新页面！   "+e)})})},selsChange:function(e){this.sels=e},batchRemove:function(){var e=this,t=this.sels.map(function(e){return{id:e.id}});this.$confirm("确认删除选中记录吗？","提示",{type:"warning"}).then(function(){e.listLoading=!0,e.$http.post("/api/admin/good/deleteGoodItems",t).then(function(t){if(e.listLoading=!1,t.code===l.ERR_OK0)alert("删除成功！"),history.go(0);else{var a=t.msg;alert(a)}},function(e){alert("系统错误，请重新刷新页面   "+e)})})}},mounted:function(){var e=this,t=(this.queryKey,"["+sessionStorage.sortGroup+"]");t=JSON.parse(t),this.sortNames=t,console.log(this.sortNames),this.queryObj.page=0,this.queryObj.size=20,this.$http.get("/api/admin/good/findAllGoodItems?page=0").then(function(t){var a=t.code,r=t.data.data.totalElements;if(e.pagenation.totalElements=r,a===l.ERR_OK0){var n=t.data.data.content;e.enterWarehouseRecords=n}if(0===t.code){t.data}},function(e){console.log(e)}),this.enterWarehouseQueryKeyGroup=[{value:"name",label:"物品名称"},{value:"price",label:"单价"},{value:"sort",label:"种类"}]}}},281:function(e,t,a){"use strict";function r(e){var t=Object.prototype.toString,a={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":a[t.call(e)]}function n(e){var t,a=r(e);if("array"===a)t=[];else{if("object"!==a)return e;t={}}if("array"===a)for(var o=0,i=e.length;o<i;o++)t.push(n(e[o]));else if("object"===a)for(var l in e)t[l]=n(e[l]);return t}Object.defineProperty(t,"__esModule",{value:!0});t.getNewDataAndMap=function(e,t){for(var a=[],r={},o=0,i=0;i<t.length;i++){var l=t[i][e];if(null!=l){for(var s=l.length,d=0;d<l.length;d++){var u=n(t[i]);for(var c in l[d])u[e+"_"+c]=l[d][c];u.items=null,a.push(u)}r[o]=s,o+=s}}return{data:a,map:r}}},282:function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var n=a(221),o=(r(n),a(19)),i=r(o),l=a(226),s=r(l),d=a(222),u=r(d);a(223);var c=a(228),m=r(c),p=a(220),f=r(p),b=a(148),g=r(b),h=a(219),v=r(h),_=a(218),y=r(_),O=a(66);r(O);a(224);var w=a(225),x=(r(w),a(227)),k=r(x);y.default.bootstrap(),i.default.use(u.default),i.default.use(m.default),i.default.use(k.default),i.default.use(g.default);var F=new m.default({routes:v.default});F.beforeEach(function(e,t,a){"/login"==e.path&&sessionStorage.removeItem("user"),JSON.parse(sessionStorage.getItem("user"))||"/login"==e.path?a():a({path:"/login"})}),new i.default({router:F,store:f.default,render:function(e){return e(s.default)}}).$mount("#app")},283:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enterWarehouseRecords=t.Things=t.WarehouseManager=t.Users=t.LoginUsers=void 0;for(var r=a(563),n=function(e){return e&&e.__esModule?e:{default:e}}(r),o=[{id:1,username:"admin",password:"123456",avatar:"https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png",name:"张某某"}],i=[],l=[],s=["铅笔","橡皮擦","刀"],d=[],u=0;u<86;u++)i.push(n.default.mock({id:n.default.Random.guid(),name:n.default.Random.cname(),addr:n.default.mock("@county(true)"),"age|18-60":1,birth:n.default.Random.date(),sex:n.default.Random.integer(0,1)}));for(var c=0;c<10;c++)l.push(n.default.mock({id:n.default.Random.guid(),warehouseManagerName:n.default.Random.cname()}));for(var m=0;m<100;m++)d.push(n.default.mock({id:n.default.Random.guid(),thingName:n.default.Random.cname(),type:n.default.Random.cname(),size:n.default.Random.cname(),unit:n.default.Random.cword(1,1),total:n.default.Random.natural(1,1e4),unitPrice:n.default.Random.float(1,1e6,2,2),totalPrice:n.default.Random.float(1,9007199254740992,2,2),personInCharge:n.default.Random.cname(),enterTime:n.default.Random.date(),updateTime:n.default.Random.date(),submitTime:n.default.Random.date(),submitPerson:n.default.Random.cname()}));t.LoginUsers=o,t.Users=i,t.WarehouseManager=l,t.Things=s,t.enterWarehouseRecords=d},284:function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(101),o=r(n),i=a(289),l=r(i),s=a(66),d=r(s),u=a(252),c=r(u),m=a(283),p=m.Users,f=m.WarehouseManager,b=m.Things,g=m.enterWarehouseRecords;t.default={bootstrap:function(){var e=new c.default(d.default);e.onGet("/success").reply(200,{msg:"success"}),e.onGet("/error").reply(500,{msg:"failure"}),e.onPost("/login").reply(function(e){var t=JSON.parse(e.data),a=t.username,r=t.password;return new l.default(function(e,t){var n=null;setTimeout(function(){var t=m.LoginUsers.some(function(e){if(e.username===a&&e.password===r)return n=JSON.parse((0,o.default)(e)),n.password=void 0,!0});e(t?[200,{code:200,msg:"请求成功",user:n}]:[200,{code:500,msg:"账号或密码错误"}])},1e3)})}),e.onGet("/user/list").reply(function(e){var t=e.params.name,a=p.filter(function(e){return!t||-1!=e.name.indexOf(t)});return new l.default(function(e,t){setTimeout(function(){e([200,{users:a}])},1e3)})}),e.onGet("/warehouse/enterWarehouseRecord").reply(function(e){var t=!1,a=e.params;for(var r in a)if(""!==a[r]){t=!0;break}if(t)return new l.default(function(e,t){setTimeout(function(){e([200,{enterWarehouseRecords:g}])},1e3)})}),e.onGet("/warehouse/enterWarehouseRecordListpage").reply(function(e){var t=e.params,a=t.tableId,r=t.currentPage,n=t.pageSize,o=t.queryKey,i=[],s=[{label:"全部",value:"all"},{label:"名称",value:"thingName"},{label:"种类",value:"type"},{label:"规格",value:"size"},{label:"单位",value:"unit"},{label:"数量",value:"total"},{label:"单价",value:"unitPrice"},{label:"总价",value:"totalPrice"},{label:"负责人",value:"personInCharge"},{label:"入库时间",value:"enterTime"},{label:"更新时间",value:"updateTime"},{label:"提交时间",value:"submitTime"},{label:"提交人",value:"submitPerson"}],d=0;if("enterWarehouseRecords"===a&&""!==r&&""!==n)switch(o){case"all":d=g.length,i=g.filter(function(e,t){return t<n*r&&t>=n*(r-1)})}return new l.default(function(e,t){setTimeout(function(){e([200,{enterWarehouseKey:s,total:d,enterWarehouseRecordsList:i}])},1e3)})}),e.onGet("/user/listpage").reply(function(e){var t=e.params,a=t.page,r=t.name,n=p.filter(function(e){return!r||-1!=e.name.indexOf(r)}),o=n.length;return n=n.filter(function(e,t){return t<20*a&&t>=20*(a-1)}),new l.default(function(e,t){setTimeout(function(){e([200,{total:o,users:n}])},1e3)})}),e.onGet("/user/remove").reply(function(e){var t=e.params.id;return p=p.filter(function(e){return e.id!==t}),new l.default(function(e,t){setTimeout(function(){e([200,{code:200,msg:"删除成功"}])},500)})}),e.onGet("/user/batchremove").reply(function(e){var t=e.params.ids;return t=t.split(","),p=p.filter(function(e){return!t.includes(e.id)}),new l.default(function(e,t){setTimeout(function(){e([200,{code:200,msg:"删除成功"}])},500)})}),e.onGet("/user/edit").reply(function(e){var t=e.params,a=t.id,r=t.name,n=t.addr,o=t.age,i=t.birth,s=t.sex;return p.some(function(e){if(e.id===a)return e.name=r,e.addr=n,e.age=o,e.birth=i,e.sex=s,!0}),new l.default(function(e,t){setTimeout(function(){e([200,{code:200,msg:"编辑成功"}])},500)})}),e.onGet("/user/add").reply(function(e){var t=e.params,a=t.name,r=t.addr,n=t.age,o=t.birth,i=t.sex;return p.push({name:a,addr:r,age:n,birth:o,sex:i}),new l.default(function(e,t){setTimeout(function(){e([200,{code:200,msg:"新增成功"}])},500)})}),e.onGet("/warehouseManager/list").reply(function(){return new l.default(function(e,t){setTimeout(function(){e([200,{code:200,warehouseManager:f}])},1e3)})}),e.onGet("/warehouse/things").reply(function(){return new l.default(function(e,t){setTimeout(function(){e([200,{code:200,things:b}])},1e3)})})}}},285:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.increment=function(e){(0,e.commit)("INCREMENT")},t.decrement=function(e){(0,e.commit)("DECREMENT")}},286:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getCount=function(e){return e.count}},553:function(e,t){},554:function(e,t){},555:function(e,t){},556:function(e,t){},557:function(e,t){},558:function(e,t){},559:function(e,t){},560:function(e,t){},561:function(e,t){},562:function(e,t){},566:function(e,t,a){a(555);var r=a(24)(null,a(580),"data-v-45882a42",null);e.exports=r.exports},567:function(e,t,a){a(554);var r=a(24)(a(273),a(579),"data-v-1c307036",null);e.exports=r.exports},568:function(e,t,a){a(558);var r=a(24)(a(274),a(583),"data-v-68f61b53",null);e.exports=r.exports},569:function(e,t,a){a(553);var r=a(24)(a(275),a(577),"data-v-0e61dbbf",null);e.exports=r.exports},570:function(e,t,a){a(556);var r=a(24)(a(276),a(581),null,null);e.exports=r.exports},571:function(e,t,a){a(559);var r=a(24)(a(277),a(584),"data-v-8be1119a",null);e.exports=r.exports},572:function(e,t,a){a(562);var r=a(24)(a(278),a(587),null,null);e.exports=r.exports},573:function(e,t,a){a(561);var r=a(24)(a(279),a(586),"data-v-b91ce154",null);e.exports=r.exports},574:function(e,t,a){var r=a(24)(null,a(578),null,null);e.exports=r.exports},575:function(e,t,a){a(557);var r=a(24)(a(280),a(582),"data-v-4d460b26",null);e.exports=r.exports},576:function(e,t,a){var r=a(24)(null,a(588),null,null);e.exports=r.exports},577:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("section",[e._v("\n\tmain\n")])},staticRenderFns:[]}},578:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("section",[e._v("page5...\n")])},staticRenderFns:[]}},579:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticClass:"container"},[a("el-col",{staticClass:"header",attrs:{span:24}},[a("el-col",{staticClass:"logo",class:e.collapsed?"logo-collapse-width":"logo-width",attrs:{span:10}},[e._v("\n\t\t\t"+e._s(e.collapsed?"":e.sysName)+"\n\t\t")]),e._v(" "),a("el-col",{attrs:{span:10}},[a("div",{staticClass:"tools",on:{click:function(t){t.preventDefault(),e.collapse(t)}}},[a("i",{staticClass:"fa fa-align-justify"})])]),e._v(" "),a("el-col",{staticClass:"userinfo",attrs:{span:4}},[a("el-dropdown",{attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link userinfo-inner"},[a("img",{attrs:{src:this.sysUserAvatar}}),e._v(" "+e._s(e.sysUserName))]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[e._v("我的消息")]),e._v(" "),a("el-dropdown-item",[e._v("设置")]),e._v(" "),a("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){e.logout(t)}}},[e._v("退出登录")])],1)],1)],1)],1),e._v(" "),a("el-col",{staticClass:"main",attrs:{span:24}},[a("aside",{class:e.collapsed?"menu-collapsed":"menu-expanded"},[a("el-menu",{directives:[{name:"show",rawName:"v-show",value:!e.collapsed,expression:"!collapsed"}],staticClass:"el-menu-vertical-demo",attrs:{"default-active":e.$route.path,"unique-opened":"",router:""},on:{open:e.handleopen,close:e.handleclose,select:e.handleselect}},[e._l(e.$router.options.routes,function(t,r){return t.hidden?e._e():[t.leaf?e._e():a("el-submenu",{attrs:{index:r+""}},[a("template",{slot:"title"},[a("i",{class:t.iconCls}),e._v(e._s(t.name))]),e._v(" "),e._l(t.children,function(t){return t.hidden?e._e():a("el-menu-item",{key:t.path,attrs:{index:t.path}},[e._v(e._s(t.name))])})],2),e._v(" "),t.leaf&&t.children.length>0?a("el-menu-item",{attrs:{index:t.children[0].path}},[a("i",{class:t.iconCls}),e._v(e._s(t.children[0].name))]):e._e()]})],2),e._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:e.collapsed,expression:"collapsed"}],ref:"menuCollapsed",staticClass:"el-menu el-menu-vertical-demo collapsed"},e._l(e.$router.options.routes,function(t,r){return t.hidden?e._e():a("li",{staticClass:"el-submenu item"},[t.leaf?[a("li",{staticClass:"el-submenu"},[a("div",{staticClass:"el-submenu__title el-menu-item",class:e.$route.path==t.children[0].path?"is-active":"",staticStyle:{"padding-left":"20px",height:"56px","line-height":"56px",padding:"0 20px"},on:{click:function(a){e.$router.push(t.children[0].path)}}},[a("i",{class:t.iconCls})])])]:[a("div",{staticClass:"el-submenu__title",staticStyle:{"padding-left":"20px"},on:{mouseover:function(t){e.showMenu(r,!0)},mouseout:function(t){e.showMenu(r,!1)}}},[a("i",{class:t.iconCls})]),e._v(" "),a("ul",{staticClass:"el-menu submenu",class:"submenu-hook-"+r,on:{mouseover:function(t){e.showMenu(r,!0)},mouseout:function(t){e.showMenu(r,!1)}}},e._l(t.children,function(t){return t.hidden?e._e():a("li",{key:t.path,staticClass:"el-menu-item",class:e.$route.path==t.path?"is-active":"",staticStyle:{"padding-left":"40px"},on:{click:function(a){e.$router.push(t.path)}}},[e._v(e._s(t.name))])}))]],2)}))],1),e._v(" "),a("section",{staticClass:"content-container"},[a("div",{staticClass:"grid-content bg-purple-light"},[a("el-col",{staticClass:"breadcrumb-container",attrs:{span:24}},[a("strong",{staticClass:"title"},[e._v(e._s(e.$route.name))]),e._v(" "),a("el-breadcrumb",{staticClass:"breadcrumb-inner",attrs:{separator:"/"}},e._l(e.$route.matched,function(t){return a("el-breadcrumb-item",{key:t.path},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t\t")])}))],1),e._v(" "),a("el-col",{staticClass:"content-wrapper",attrs:{span:24}},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)],1)])])],1)},staticRenderFns:[]}},580:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("p",{staticClass:"page-container"},[e._v("404 page not found")])},staticRenderFns:[]}},581:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-col",{staticClass:"toolbar",attrs:{span:24}},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"sortListTable",staticStyle:{width:"100%"},attrs:{data:e.sortList},on:{"selection-change":e.selsChange}},[a("el-table-column",{attrs:{label:"创建人",prop:"createAdmin"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"种类名称",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"更新人",prop:"updateAdmin"}}),e._v(" "),a("el-table-column",{attrs:{label:"更新时间",prop:"updateTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:"编辑",visible:e.editFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.editFormVisible=t},close:function(t){e.closeEditDialog("editForm")}}},[a("el-form",{ref:"editForm",attrs:{model:e.editObj,rules:e.editFormRules}},[a("el-form-item",{attrs:{label:"种类名称",prop:"name","label-width":"80px"}},[a("el-input",{attrs:{placeholder:"请输入种类名称","auto-complete":"off"},model:{value:e.editObj.name,callback:function(t){e.$set(e.editObj,"name",t)},expression:"editObj.name"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleEditFormSubmit("editForm")}}},[e._v("提交")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"新增",visible:e.addFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.addFormVisible=t},close:function(t){e.closeAddDialog("addForm")}}},[a("el-form",{ref:"addForm",attrs:{model:e.addObj,rules:e.addFormRules}},[a("el-form-item",{attrs:{label:"种类名称",prop:"name","label-width":"80px"}},[a("el-input",{attrs:{placeholder:"请输入种类名称","auto-complete":"off"},model:{value:e.addObj.name,callback:function(t){e.$set(e.addObj,"name",t)},expression:"addObj.name"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleAddFormSubmit("addForm")}}},[e._v("提交")])],1)],1)],1)},staticRenderFns:[]}},582:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("el-col",{staticClass:"toolbar",staticStyle:{"padding-bottom":"0px"},attrs:{span:24}},[a("el-form",{attrs:{inline:!0,rules:e.queryRules,model:e.queryObj}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearch,placeholder:"请输入物品名称","trigger-on-focus":!1},on:{select:e.handleNameSelect},model:{value:e.queryObj.name,callback:function(t){e.$set(e.queryObj,"name",t)},expression:"queryObj.name"}})],1),e._v(" "),a("el-form-item",[a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{prop:"price_start"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入最小单价"},model:{value:e.queryObj.price_start,callback:function(t){e.$set(e.queryObj,"price_start",t)},expression:"queryObj.price_start"}})],1)],1),e._v(" "),a("el-col",{staticClass:"line",staticStyle:{"margin-left":"2px"},attrs:{span:1}},[e._v("-")]),e._v(" "),a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{prop:"price_end"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入最大单价"},model:{value:e.queryObj.price_end,callback:function(t){e.$set(e.queryObj,"price_end",t)},expression:"queryObj.price_end"}})],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"sort"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},on:{change:e.handleSortSelect},model:{value:e.queryObj.sort,callback:function(t){e.$set(e.queryObj,"sort",t)},expression:"queryObj.sort"}},e._l(e.sortNames,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[e._v("查询")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.enterWarehouseRecords,"highlight-current-row":""},on:{"selection-change":e.selsChange}},[a("el-table-column",{attrs:{type:"selection",width:"55","column-key":"id",fixed:"left"}}),e._v(" "),a("el-table-column",{attrs:{type:"index",width:"60",fixed:"left"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库明细",width:"600"}},[a("el-table-column",{attrs:{prop:"name",label:"名称",width:"100","column-key":"id"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"种类",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"spec",label:"规格",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"unit",label:"单位",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"number",label:"数量",width:"100",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"price",label:"单价",width:"100",sortable:""}})],1),e._v(" "),a("el-table-column",{attrs:{prop:"createAdmin",label:" 创建者",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{type:"date",prop:"createTime",label:"创建时间",width:"160",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{type:"date",prop:"updateTime",label:"更新时间","min-width":"160",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"updateAdmin",label:"提交人","min-width":"130"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-col",{staticClass:"toolbar",attrs:{span:24}},[a("el-button",{attrs:{type:"danger",disabled:0===this.sels.length},on:{click:e.batchRemove}},[e._v("批量删除")]),e._v(" "),a("el-pagination",{staticClass:"pagenation",attrs:{"current-page":e.pagenation.currentPage,"page-sizes":e.pagenation.pageSizes,"page-size":e.pagenation.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.pagenation.totalElements},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("el-dialog",{attrs:{title:"编辑",visible:e.editFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.editFormVisible=t}}},[a("el-form",{ref:"editForm",attrs:{model:e.editGoodItem,"label-width":"80px",rules:e.editFormRules}},[a("el-form-item",{attrs:{label:"物品名称",prop:"name"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editGoodItem.name,callback:function(t){e.$set(e.editGoodItem,"name",t)},expression:"editGoodItem.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"入库数量",prop:"number"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editGoodItem.number,callback:function(t){e.$set(e.editGoodItem,"number",t)},expression:"editGoodItem.number"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"价格",prop:"price"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editGoodItem.price,callback:function(t){e.$set(e.editGoodItem,"price",t)},expression:"editGoodItem.price"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"种类",prop:"sort"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.editGoodItem.sort,callback:function(t){e.$set(e.editGoodItem,"sort",t)},expression:"editGoodItem.sort"}},e._l(e.sortNames,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"规格",prop:"spec"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editGoodItem.spec,callback:function(t){e.$set(e.editGoodItem,"spec",t)},expression:"editGoodItem.spec"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"单位",prop:"unit"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editGoodItem.unit,callback:function(t){e.$set(e.editGoodItem,"unit",t)},expression:"editGoodItem.unit"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.editLoading},on:{click:function(t){e.submitEditForm("editForm")}}},[e._v("提交")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"新增",visible:e.addFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.addFormVisible=t}}},[a("el-form",{ref:"addForm",attrs:{model:e.newGoodItem,"label-width":"80px",rules:e.addFormRules}},[a("el-form-item",{attrs:{label:"物品名称",prop:"name"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.newGoodItem.name,callback:function(t){e.$set(e.newGoodItem,"name",t)},expression:"newGoodItem.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"入库数量",prop:"number"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.newGoodItem.number,callback:function(t){e.$set(e.newGoodItem,"number",t)},expression:"newGoodItem.number"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"价格",prop:"price"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.newGoodItem.price,callback:function(t){e.$set(e.newGoodItem,"price",t)},expression:"newGoodItem.price"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"种类",prop:"sort"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.addFormSortSelected},model:{value:e.newGoodItem.sort,callback:function(t){e.$set(e.newGoodItem,"sort",t)},expression:"newGoodItem.sort"}},e._l(e.sortNames,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"规格",prop:"spec"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.newGoodItem.spec,callback:function(t){e.$set(e.newGoodItem,"spec",t)},expression:"newGoodItem.spec"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"单位",prop:"unit"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.newGoodItem.unit,callback:function(t){e.$set(e.newGoodItem,"unit",t)},expression:"newGoodItem.unit"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.addLoading},on:{click:function(t){e.submitAddForm("addForm")}}},[e._v("提交")])],1)],1)],1)},staticRenderFns:[]}},583:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"ruleForm2",staticClass:"demo-ruleForm login-container",attrs:{model:e.ruleForm2,rules:e.rules2,"label-position":"left","label-width":"0px"}},[a("h3",{staticClass:"title"},[e._v("系统登录")]),e._v(" "),a("el-form-item",{attrs:{prop:"account"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"账号"},model:{value:e.ruleForm2.account,callback:function(t){e.$set(e.ruleForm2,"account",t)},expression:"ruleForm2.account"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"checkPass"}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码"},model:{value:e.ruleForm2.checkPass,callback:function(t){e.$set(e.ruleForm2,"checkPass",t)},expression:"ruleForm2.checkPass"}})],1),e._v(" "),a("el-checkbox",{staticClass:"remember",attrs:{checked:""},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("记住密码")]),e._v(" "),a("el-form-item",{staticStyle:{width:"100%"}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",loading:e.logining},nativeOn:{click:function(t){t.preventDefault(),e.handleSubmit2(t)}}},[e._v("登录")])],1)],1)},staticRenderFns:[]}},584:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("el-col",{staticClass:"toolbar",staticStyle:{"padding-bottom":"0px"},attrs:{span:24}},[a("el-form",{attrs:{inline:!0,model:e.filters}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"姓名"},model:{value:e.filters.name,callback:function(t){e.$set(e.filters,"name",t)},expression:"filters.name"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getUsers}},[e._v("查询")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.users,"highlight-current-row":""},on:{"selection-change":e.selsChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"姓名",width:"120",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"sex",label:"性别",width:"100",formatter:e.formatSex,sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"age",label:"年龄",width:"100",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"birth",label:"生日",width:"120",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"addr",label:"地址","min-width":"180",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-col",{staticClass:"toolbar",attrs:{span:24}},[a("el-button",{attrs:{type:"danger",disabled:0===this.sels.length},on:{click:e.batchRemove}},[e._v("批量删除")]),e._v(" "),a("el-pagination",{staticStyle:{float:"right"},attrs:{layout:"prev, pager, next","page-size":20,total:e.total},on:{"current-change":e.handleCurrentChange}})],1),e._v(" "),a("el-dialog",{attrs:{title:"编辑","close-on-click-modal":!1},model:{value:e.editFormVisible,callback:function(t){e.editFormVisible=t},expression:"editFormVisible"}},[a("el-form",{ref:"editForm",attrs:{model:e.editForm,"label-width":"80px",rules:e.editFormRules}},[a("el-form-item",{attrs:{label:"姓名",prop:"name"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editForm.name,callback:function(t){e.$set(e.editForm,"name",t)},expression:"editForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"性别"}},[a("el-radio-group",{model:{value:e.editForm.sex,callback:function(t){e.$set(e.editForm,"sex",t)},expression:"editForm.sex"}},[a("el-radio",{staticClass:"radio",attrs:{label:1}},[e._v("男")]),e._v(" "),a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("女")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"年龄"}},[a("el-input-number",{attrs:{min:0,max:200},model:{value:e.editForm.age,callback:function(t){e.$set(e.editForm,"age",t)},expression:"editForm.age"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"生日"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.editForm.birth,callback:function(t){e.$set(e.editForm,"birth",t)},expression:"editForm.birth"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.editForm.addr,callback:function(t){e.$set(e.editForm,"addr",t)},expression:"editForm.addr"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{nativeOn:{click:function(t){e.editFormVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.editLoading},nativeOn:{click:function(t){e.editSubmit(t)}}},[e._v("提交")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"新增","close-on-click-modal":!1},model:{value:e.addFormVisible,callback:function(t){e.addFormVisible=t},expression:"addFormVisible"}},[a("el-form",{ref:"addForm",attrs:{model:e.addForm,"label-width":"80px",rules:e.addFormRules}},[a("el-form-item",{attrs:{label:"姓名",prop:"name"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.addForm.name,callback:function(t){e.$set(e.addForm,"name",t)},expression:"addForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"性别"}},[a("el-radio-group",{model:{value:e.addForm.sex,callback:function(t){e.$set(e.addForm,"sex",t)},expression:"addForm.sex"}},[a("el-radio",{staticClass:"radio",attrs:{label:1}},[e._v("男")]),e._v(" "),a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("女")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"年龄"}},[a("el-input-number",{attrs:{min:0,max:200},model:{value:e.addForm.age,callback:function(t){e.$set(e.addForm,"age",t)},expression:"addForm.age"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"生日"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.addForm.birth,callback:function(t){e.$set(e.addForm,"birth",t)},expression:"addForm.birth"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.addForm.addr,callback:function(t){e.$set(e.addForm,"addr",t)},expression:"addForm.addr"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{nativeOn:{click:function(t){e.addFormVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.addLoading},nativeOn:{click:function(t){e.addSubmit(t)}}},[e._v("提交")])],1)],1)],1)},staticRenderFns:[]}},585:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)},staticRenderFns:[]}},586:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("el-col",{staticClass:"toolbar",staticStyle:{"padding-bottom":"0px"},attrs:{span:24}},[a("el-form",{attrs:{inline:!0,model:e.filters}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"姓名"},model:{value:e.filters.name,callback:function(t){e.$set(e.filters,"name",t)},expression:"filters.name"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getUser}},[e._v("查询")])],1)],1)],1),e._v(" "),[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.users,"highlight-current-row":""}},[a("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"姓名",width:"120",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"sex",label:"性别",width:"100",formatter:e.formatSex,sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"age",label:"年龄",width:"100",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"birth",label:"生日",width:"120",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"addr",label:"地址","min-width":"180",sortable:""}})],1)]],2)},staticRenderFns:[]}},587:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-col",{staticClass:"toolbar",attrs:{span:24}},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[e._v("新增")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"small",disabled:0===this.sels.length},on:{click:e.quickAdd}},[e._v("快速入库")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"buyOrderTable",staticStyle:{width:"100%"},attrs:{data:e.buyOrdersList,"span-method":e.arraySpanMethod},on:{"selection-change":e.selsChange}},[a("el-table-column",{attrs:{type:"selection"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"createAdmin"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库明细"}},[a("el-table-column",{attrs:{label:"名称",prop:"buyOrderItems_name"}}),e._v(" "),a("el-table-column",{attrs:{label:"种类",prop:"buyOrderItems_sort"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",prop:"buyOrderItems_spec"}}),e._v(" "),a("el-table-column",{attrs:{label:"单位",prop:"buyOrderItems_unit"}}),e._v(" "),a("el-table-column",{attrs:{label:"数量",prop:"buyOrderItems_number"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际单价",prop:"buyOrderItems_price"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"审核进度",prop:"approvalResult",filters:[{text:"已通过",value:"0"},{text:"审核中",value:1},{text:"未通过",value:2}],"filter-method":e.filterTag},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{trigger:"hover",placement:"top",disabled:e.showPopover(t.row.approvalResult)}},[a("el-button",{attrs:{type:"primary",round:"",size:"small"},on:{click:function(a){e.appoval(t.row.id,0)}}},[e._v("批准通过")]),e._v(" "),a("el-button",{attrs:{type:"danger",round:"",size:"small"},on:{click:function(a){e.appoval(t.row.id,1)}}},[e._v("不通过")]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("el-tag",{attrs:{type:e.tagChange(t)}},[e._v(e._s(t.row.tag))])],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库总价",prop:"requestTotalPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"申请时间",prop:"requestTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"发票上传",prop:"bills"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核时间",prop:"approvalTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"提交人",prop:"updateAdmin"}}),e._v(" "),a("el-table-column",{attrs:{label:"更新时间",prop:"updateTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"描述",prop:"description"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",disabled:e.checkInApproval(t.row.approvalResult)},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-col",{staticClass:"toolbar",attrs:{span:24}},[a("el-button",{attrs:{type:"danger",disabled:0===this.sels.length},on:{click:e.batchRemove}},[e._v("批量删除")]),e._v(" "),a("el-popover",{ref:"batchApprovalPopover",attrs:{trigger:"click",placement:"top-start"}},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){e.batchApproval(0)}}},[e._v("批准通过")]),e._v(" "),a("el-button",{staticStyle:{float:"right"},attrs:{type:"danger",size:"mini"},on:{click:function(t){e.batchApproval(1)}}},[e._v("未通过")])],1),e._v(" "),a("el-button",{directives:[{name:"popover",rawName:"v-popover:batchApprovalPopover",arg:"batchApprovalPopover"}],attrs:{type:"primary",disabled:0===this.sels.length}},[e._v("批量审核")]),e._v(" "),a("el-pagination",{staticClass:"pagenation",attrs:{"current-page":e.pagenation.currentPage,"page-sizes":e.pagenation.pageSizes,"page-size":e.pagenation.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.pagenation.totalElements},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("el-dialog",{attrs:{fullscreen:"",title:"编辑",visible:e.editFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.editFormVisible=t},close:function(t){e.clearValidate("editForm")}}},[a("el-form",{ref:"editForm",attrs:{model:e.editObj,"label-width":"80px",rules:e.editFormRules}},[a("el-form-item",{attrs:{label:"所属部门",prop:"departmentId"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.selectEditDepartment},model:{value:e.editObj.departmentId,callback:function(t){e.$set(e.editObj,"departmentId",t)},expression:"editObj.departmentId"}},e._l(e.allDepartments,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"requestorId"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.editObj.requestorId,callback:function(t){e.$set(e.editObj,"requestorId",t)},expression:"editObj.requestorId"}},e._l(e.editRequestors,function(e){return a("el-option",{key:e.index,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"创建人",prop:"createAdmin"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editObj.createAdmin,callback:function(t){e.$set(e.editObj,"createAdmin",t)},expression:"editObj.createAdmin"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"创建时间",prop:"createTime"}},[a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",align:"right","picker-options":e.timeOptions},model:{value:e.editObj.createTime,callback:function(t){e.$set(e.editObj,"createTime",t)},expression:"editObj.createTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更新人",prop:"updateAdmin"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editObj.updateAdmin,callback:function(t){e.$set(e.editObj,"updateAdmin",t)},expression:"editObj.updateAdmin"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更新时间",prop:"updateTime"}},[a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",align:"right","picker-options":e.timeOptions},model:{value:e.editObj.updateTime,callback:function(t){e.$set(e.editObj,"updateTime",t)},expression:"editObj.updateTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"申请时间",prop:"requestTime"}},[a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",align:"right","picker-options":e.timeOptions},model:{value:e.editObj.requestTime,callback:function(t){e.$set(e.editObj,"requestTime",t)},expression:"editObj.requestTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"物品明细",prop:"buyOrderItems"}},[a("el-table",{attrs:{border:"",data:e.editObj.buyOrderItems,"max-height":"200px"}},[a("el-table-column",{attrs:{label:"物品名称",prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"种类",prop:"sort"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",a)},expression:"scope.row.sort"}},e._l(e.sortGroup,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格",prop:"spec"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.spec,callback:function(a){e.$set(t.row,"spec",a)},expression:"scope.row.spec"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"price"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"数量",prop:"number"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.number,callback:function(a){e.$set(t.row,"number",a)},expression:"scope.row.number"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单位",prop:"unit"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.unit,callback:function(a){e.$set(t.row,"unit",a)},expression:"scope.row.unit"}})]}}])}),e._v(" "),a("el-table-column",{staticStyle:{"text-align":"center"},attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleEditDelGoodItems(t.$index,e.editObj.buyOrderItems)}}},[a("i",{staticClass:"el-icon-close"})])]}}])})],1),e._v(" "),a("div",{staticStyle:{color:"red"}},[e._v("\n                    "+e._s(e.err_msg)+"\n                ")]),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"10px"}},[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:e.handleEditAddGoodItems}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"入库总价",prop:"requestTotalPrice"}},[a("el-input",{attrs:{readonly:"","auto-complete":"off"},model:{value:e.computeEditTotalPrice,callback:function(t){e.computeEditTotalPrice=t},expression:"computeEditTotalPrice"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"描述",prop:"description"}},[a("el-input",{attrs:{type:"textarea",rows:2,autosize:""},model:{value:e.editObj.description,callback:function(t){e.$set(e.editObj,"description",t)},expression:"editObj.description"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",loading:e.editLoading},on:{click:function(t){e.handleEditFormSubmit("editForm")}}},[e._v("提交")])],1)],1),e._v(" "),a("el-dialog",{attrs:{fullscreen:"",title:"新增",visible:e.addFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.addFormVisible=t},close:function(t){e.clearValidate("addForm")}}},[a("el-form",{ref:"addForm",attrs:{model:e.addObj,"label-width":"80px",rules:e.addFormRules}},[a("el-form-item",{attrs:{label:"所属部门",prop:"departmentId"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.selectAddDepartment},model:{value:e.addObj.departmentId,callback:function(t){e.$set(e.addObj,"departmentId",t)},expression:"addObj.departmentId"}},e._l(e.allDepartments,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"requestorId"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.addObj.requestorId,callback:function(t){e.$set(e.addObj,"requestorId",t)},expression:"addObj.requestorId"}},e._l(e.addRequestors,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"申请时间",prop:"requestTime"}},[a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",align:"right","picker-options":e.timeOptions},model:{value:e.addObj.requestTime,callback:function(t){e.$set(e.addObj,"requestTime",t)},expression:"addObj.requestTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"物品明细",prop:"buyOrderItems"}},[a("el-table",{attrs:{border:"",data:e.addObj.buyOrderItems,"max-height":"200px"}},[a("el-table-column",{attrs:{label:"物品名称",prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"种类",prop:"sort"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",a)},expression:"scope.row.sort"}},e._l(e.sortGroup,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格",prop:"spec"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.spec,callback:function(a){e.$set(t.row,"spec",a)},expression:"scope.row.spec"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"price"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"数量",prop:"number"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.number,callback:function(a){e.$set(t.row,"number",a)},expression:"scope.row.number"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单位",prop:"unit"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.unit,callback:function(a){e.$set(t.row,"unit",a)},expression:"scope.row.unit"}})]}}])}),e._v(" "),a("el-table-column",{staticStyle:{"text-align":"center"},attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleAddFormDelGoodItems(t.$index,e.addObj.buyOrderItems)}}},[a("i",{staticClass:"el-icon-close"})])]}}])})],1),e._v(" "),a("div",{staticStyle:{color:"red"}},[e._v("\n                    "+e._s(e.err_msg)+"\n                ")]),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"10px"}},[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:function(t){e.handleAddFormAddGoodItems(e.addObj.buyOrderItems)}}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"入库总价",prop:"requestTotalPrice"}},[a("el-input",{attrs:{readonly:"","auto-complete":"off"},model:{value:e.computeAddTotalPrice,callback:function(t){e.computeAddTotalPrice=t},expression:"computeAddTotalPrice"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"描述",prop:"description"}},[a("el-input",{attrs:{type:"textarea",rows:2,autosize:""},model:{value:e.addObj.description,callback:function(t){e.$set(e.addObj,"description",t)},expression:"addObj.description"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",loading:e.addLoading},on:{click:function(t){e.handleAddFormSubmit("addForm")}}},[e._v("提交")])],1)],1)],1)},staticRenderFns:[]}},588:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("section",[e._v("page6...\n")])},staticRenderFns:[]}},59:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnterWarehouseRecordListpage=t.getEnterWarehouseRecord=t.getWarehouseThings=t.getWarehouseManager=t.addNewThing=t.editUser=t.batchRemoveUser=t.removeUser=t.getUserListPage=t.getUserList=t.requestLogin=void 0;var r=a(66),n=function(e){return e&&e.__esModule?e:{default:e}}(r);t.requestLogin=function(e){return n.default.post("/login",e).then(function(e){return e.data})},t.getUserList=function(e){return n.default.get("/user/list",{params:e})},t.getUserListPage=function(e){return n.default.get("/user/listpage",{params:e})},t.removeUser=function(e){return n.default.get("/user/remove",{params:e})},t.batchRemoveUser=function(e){return n.default.get("/user/batchremove",{params:e})},t.editUser=function(e){return n.default.get("/user/edit",{params:e})},t.addNewThing=function(e){return n.default.post("/api/admin/good/addGoodItem",{params:e})},t.getWarehouseManager=function(e){return n.default.get("/warehouseManager/list",{params:e})},t.getWarehouseThings=function(e){return n.default.get("/warehouse/things",{params:e})},t.getEnterWarehouseRecord=function(e){return n.default.get("/warehouse/enterWarehouseRecord",{params:e})},t.getEnterWarehouseRecordListpage=function(e){return n.default.get("/api/schoolStore/admin/storeOperation/findAllStoreOperations",{params:e})}},590:function(e,t){},73:function(e,t,a){"use strict";function r(e,t){for(var t=t-(e+"").length,a=0;a<t;a++)e="0"+e;return e}Object.defineProperty(t,"__esModule",{value:!0});var n=/([yMdhsm])(\1*)/g;t.default={getQueryStringByName:function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),a=window.location.search.substr(1).match(t),r="";return null!=a&&(r=a[2]),t=null,a=null,null==r||""==r||"undefined"==r?"":r},formatDate:{format:function(e,t){return t=t||"yyyy-MM-dd",t.replace(n,function(t){switch(t.charAt(0)){case"y":return r(e.getFullYear(),t.length);case"M":return r(e.getMonth()+1,t.length);case"d":return r(e.getDate(),t.length);case"w":return e.getDay()+1;case"h":return r(e.getHours(),t.length);case"m":return r(e.getMinutes(),t.length);case"s":return r(e.getSeconds(),t.length)}})},parse:function(e,t){var a=t.match(n),r=e.match(/(\d)+/g);if(a.length==r.length){for(var o=new Date(1970,0,1),i=0;i<a.length;i++){var l=parseInt(r[i]);switch(a[i].charAt(0)){case"y":o.setFullYear(l);break;case"M":o.setMonth(l-1);break;case"d":o.setDate(l);break;case"h":o.setHours(l);break;case"m":o.setMinutes(l);break;case"s":o.setSeconds(l)}}return o}return null}},emptyObj:function(e){for(var t in e)Array.isArray(e[t])?e[t]=[]:e[t]=""}}}},[282]);
  //# sourceMappingURL=app.694eb4c4082e520c79cc.js.map