1 line
43 KiB
JavaScript
1 line
43 KiB
JavaScript
|
webpackJsonp([17],{"0kSu":function(e,t){},"6TWz":function(e,t){},"7W79":function(e,t){},"8zzr":function(e,t){},BDnT:function(e,t){},L7mS:function(e,t){},TowF:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("d7EF"),s=a.n(i),r=a("//Fk"),n=a.n(r),l=a("BO1k"),o=a.n(l),c=a("GKmE"),d=a("3MlD"),h={components:{DialogChooseSingleUser:d.a},name:"repair_index_all",data:function(){return{advanceQueryDialogVisible:!1,formData:{},depOptions:[],selectDeptId:[],total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,startTime:"",endTime:"",time:"",status:"",heldPerson:"",createBy:"",title:"",weiwai:1},repairTime:"",typeList:[],levels:[],statusList:[],getUserList:[],resultList:[],depts:[],btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],tableData:[],dialogVisible:!1,pictLoading:!1,chooseUserVisible:!1}},created:function(){var e=this;document.onkeydown=function(t){"Enter"===t.key&&e.search()}},mounted:function(){this.getList(),this.initData()},methods:{clearEngineer:function(){this.selectDeptId=""},moreSearch:function(){this.advanceQueryDialogVisible=!0},save:function(){for(var e in this.formData)this.search_data[e]=this.formData[e];this.search_data.pageno=1,this.$nextTick(function(){this.advanceQueryDialogVisible=!1,this.getList()})},clear:function(){for(var e in this.formData)this.formData[e]="";this.selectDeptId="",this.$forceUpdate()},sortChange:function(e){var t={column:e.column,prop:e.prop,order:e.order},a="ascending"==t.order?"asc":"desc";this.$set(this.search_data,"sort",t.prop),this.$set(this.search_data,"order",a),this.getList()},treeFindPath:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,r=void 0;try{for(var n,l=o()(e);!(i=(n=l.next()).done);i=!0){var c=n.value;if(a.push(c.id),t(c))return a;if(c.children){var d=this.treeFindPath(c.children,t,a);if(d.length)return d}a.pop()}}catch(e){s=!0,r=e}finally{try{!i&&l.return&&l.return()}finally{if(s)throw r}}return[]},setDeptList:function(e){var t=!0,a=!1,i=void 0;try{for(var s,r=o()(e);!(t=(s=r.next()).done);t=!0){var n=s.value;n.hasChildren?this.setDeptList(n.children):n.children=void 0}}catch(e){a=!0,i=e}finally{try{!t&&r.return&&r.return()}finally{if(a)throw i}}},handleChange:function(e){this.search_data.deptIdQuery=e.length>=1?e[e.length-1]:"",this.selectDeptId=e},clickRow:function(e){this.$refs.tb.toggleRowSelection(e)},initData:function(){var e=this;n.a.all([this.$api.commonAPI.getUsers(),this.$api.dictAPI.getDictsByType("task_type"),this.$api.dictAPI.getDictsByType("task_level"),this.$api.dictAPI.getDictsByType("task_status"),this.$api.dictAPI.getDictsByType("acceptance_result"),this.$api.commonAPI.getDeptsTree()]).then(function(t){var a=s()(t,6),i=a[0],r=a[1],n=a[2],l=a[3],o=a[4],c=a[5];0===i.code&&(e.getUserList=i.datas),0===r.code&&(e.typeList=r.datas),0===n.code&&(e.levels=n.datas),0===l.code&&(e.statusList=l.datas,e.statusList.push({id:999,name:"超时未处理"})),0===o.code&&(e.resultList=o.datas),0===c.code&&(e.depOptions=c.data.children,e.setDeptList(e.depOptions))}).catch(function(e){console.log(e)})},getList:function(){var e=this;this.repairTime?(this.search_data.startTime=Object(c.b)(this.repairTime[0]),this.search_data.endTime=Object(c.b)(this.repairTime[1])):(this.search_data.startTime="",this.search_data.endTime=""),this.pictLoading=!0,this.$api.repairCheckAPI.eventList(this.search_data).then(function(t){e.pictLoading=!1,t.data?(e.total=t.data.totalRows,e.tableData=t.data.datas?t.data.datas:[]):(e.total=0,e.tableData=[])}).catch(function(e){console.log(e)})},search:function(){this.search_data.pageno=1,this.getList()},handleCurrentChange:function(e){this.search_data.pageno=e,this.getList()},handleSizeChange:function(e){this.search_data.pagesize=e,this.getList()},add:function(){this.$router.push({path:"/wwbx/add",query:{s:this.$route.path,t:Date.now()}})},getUser:function(e){var t=this,a=this.rowIds[0],i=e.id,s=a.reventId;this.$confirm("确认将维修单转派给"+e.name+"吗?","提示",{type:"warning"}).then(function(){t.$api.repairCheckAPI.reventTurnToSend({ev
|