yxk_pc_mdh/gyhl/static/js/17.ee1e1a54c7d79ebc1187.js

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({eventId:s,userId:i}).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.getList()):t.$message({message:e.msg?"转派失败,请重试":e.msg,type:"error"})}).catch(function(e){t.$message({message:"转派失败,请重试",type:"error"})})})},send:function(){var e=this.rowIds[0];if(56===e.reventStatusId){e.id;this.chooseUserVisible=!0}else this.$alert("维修单已在处理进程中,您无法转派该维修单!","提示",{type:"warning"})},openDetails:function(e){146===e.reventStatusId?this.$router.push({path:"/wwbx/add",query:{id:e.reventId,t:Date.now()}}):this.$router.push({path:"/wwbx/detail",query:{id:e.reventId,t:Date.now(),type:371}})},complete:function(){var e=this.rowIds[0];if(58!==e.reventStatusId){var t=e.reventId;this.$router.push({path:"/wwbx/check",query:{id:t,t:Date.now()}})}else this.$alert("维修单已完成验收,您无法再次验收该维修单!","提示",{type:"warning"})},repair:function(){var e=this.rowIds[0];if(58!==e.reventStatusId){var t=e.reventId;this.$router.push({path:"/wwbx/handle",query:{id:t,t:Date.now()}})}else this.$alert("维修单已完成验收,您无法再次处理该维修单!","提示",{type:"warning"})},remove:function(){var e=this,t=[];this.rowIds.forEach(function(e){t.push(e.reventId)});var a={ids:t};this.$confirm("确认删除选中的维修单据吗?","提示",{type:"warning"}).then(function(){e.$api.repairCheckAPI.batchRemove(a).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})},handleSelectionChange:function(e){this.rowIds=e,this.setBtn(e)},setBtn:function(e){var t=!0,a=!0;e.length>0?(a=!1,1==e.length&&(t=!1)):(t=!0,a=!0),this.btnDelDisabled=a,this.btnOtherDisabled=t}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"repair-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{directives:[{name:"has",rawName:"v-has",value:"repair:repair:remove",expression:"'repair:repair:remove'"}],attrs:{type:"primary",disabled:e.btnDelDisabled},on:{click:function(t){return e.remove()}}},[e._v("删除")])],1),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"报修时间"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.repairTime,callback:function(t){e.repairTime=t},expression:"repairTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"23%"},attrs:{label:"设备名称"}},[a("el-input",{attrs:{placeholder:"设备名称"},model:{value:e.search_data.divceName,callback:function(t){e.$set(e.search_data,"divceName",t)},expression:"search_data.divceName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"故障等级"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.search_data.level,callback:function(t){e.$set(e.search_data,"level",t)},expression:"search_data.level"}},e._l(e.levels,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"任务状态"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.search_data.status,callback:function(t){e.$set(e.search_data,"status",t)},expression:"search_data.status"}},e._l(e.statusList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.moreSearch()}}},[e._v("高级查询")])],1)],1)])],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],ref:"tb",attrs:{border:"",data:e.tableData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"sort-change":e.sortChange,"row-click":e.clickRow,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"任务单号",width:"160px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.openDetails(t.row)}}},[e._v(e._s(t.row.workOrderNo))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"reventStatusName",align:"center",label:"任务状态"}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceSerialno",align:"center",label:"设备编号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceName",label:"设备名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceModel",align:"center",label:"规格型号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"reventLevelName",align:"center",label:"故障等级"}}),e._v(" "),a("el-table-column",{attrs:{prop:"reventTypeName",align:"center",label:"故障类型"}}),e._v(" "),a("el-table-column",{attrs:{prop:"createUserName",align:"center",label:"报修人","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"engineerDeptName",align:"center",label:"维修部门","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"engineerUserName",align:"center",label:"维修责任人","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"custom",prop:"createTime",align:"center",label:"报修时间",width:"124","show-overflow-tooltip":""}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.search_data.pageno,"page-sizes":e.pageSizes,"page-size":e.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("el-dialog",{attrs:{title:"高级查询",center:"",visible:e.advanceQueryDialogVisible,width:"670px"},on:{"update:visible":function(t){e.advanceQueryDialogVisible=t}}},[a("el-form",{ref:"form",staticClass:"dialog-form",staticStyle:{width:"620px"},attrs:{inline:!0,"label-width":"80px"}},[a("div",{staticClass:"dialog-line"},[a("el-form-item",{attrs:{label:"部门"}},[a("el-cascader",{attrs:{clearable:"",options:e.depOptions,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:e.handleChange},model:{value:e.selectDeptId,callback:function(t){e.selectDeptId=t},expression:"selectDeptId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"责任人"}},[a("el-select",{attrs:{clearable:e.clearEngineer,filterable:"",clearable:"",placeholder:"请选择"},model:{value:e.formData.engineerId,callback:function(t){e.$set(e.formData,"engineerId",t)},expression:"formData.engineerId"}},e._l(e.getUserList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1)]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确定")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.advanceQueryDialogVisible=!1}}},[e._v("关闭")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.clear}},[e._v("清空")])],1)],1),e._v(" "),a("DialogChooseSingleUser",{attrs:{visible:e.chooseUserVisible},on:{"update:visible":function(t){e.chooseUserVisible=t},change:e.getUser}})],1)},staticRenderFns:[]};var u=a("VU/8")(h,p,!1,function(e){a("8zzr"),a("tUME")},"data-v-7526f604",null).exports,v={components:{DialogChooseSingleUser:d.a},name:"repair_index_unhandle",data:function(){return{depOptions:[],selectDeptId:[],total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,startTime:"",endTime:"",time:"",status:"",heldPerson:"",createBy:"",title:"",singleStatus:56,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:{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),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({eventId:s,userId:i}).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.getList()):t.$message({message:e.msg?"转派失败,请重试":e.msg,type:"error"})}).catch(function(e){t.$message({message:"转派失败,请重试",type:"error"})})})},send:function(){var e=this.rowIds[0];if(56===e.reventStatusId){e.id;this.chooseUserVisible=!0}else this.$alert("维修单已在处理进程中,您无法转派该维修单!","提示",{type:"warning"})},openDetails:function(e){146===e.reventStatusId?this.$router.push({path:"/wwbx/add",query:{id:e.reventId,t:Date.now()}}):this.$router.push({path:"/wwbx/detail",query:{id:e.reventId,t:Date.now()}})},complete:function(){var e=this.rowIds[0];if(58!==e.reventStatusId){var t=e.reventId;this.$router.push({path:"/wwbx/check",query:{id:t,t:Date.now()}})}else this.$alert("维修单已完成验收,您无法再次验收该维修单!","提示",{type:"warning"})},repair:function(){var e=this.rowIds[0];if(58!==e.reventStatusId){var t=e.reventId;this.$router.push({path:"/wwbx/handle",query:{id:t,t:Date.now()}})}else this.$alert("维修单已完成验收,您无法再次处理该维修单!","提示",{type:"warning"})},remove:function(){var e=this,t=[];this.rowIds.forEach(function(e){t.push(e.reventId)});var a={ids:t};this.$confirm("确认删除选中的维修单据吗?","提示",{type:"warning"}).then(function(){e.$api.repairCheckAPI.batchRemove(a).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})},handleSelectionChange:function(e){this.rowIds=e,this.setBtn(e)},setBtn:function(e){var t=!0,a=!0;e.length>0?(a=!1,1==e.length&&(t=!1)):(t=!0,a=!0),this.btnDelDisabled=a,this.btnOtherDisabled=t}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"repair-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{directives:[{name:"has",rawName:"v-has",value:"repair:repair:send",expression:"'repair:repair:send'"}],attrs:{type:"primary",disabled:e.btnOtherDisabled},on:{click:function(t){return e.send()}}},[e._v("维修转派")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"repair:repair:repair",expression:"'repair:repair:repair'"}],attrs:{type:"primary",disabled:e.btnOtherDisabled},on:{click:function(t){return e.repair()}}},[e._v("维修处理")])],1),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"设备名称"}},[a("el-input",{attrs:{placeholder:"设备名称"},model:{value:e.search_data.divceName,callback:function(t){e.$set(e.search_data,"divceName",t)},expression:"search_data.divceName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"34%"},attrs:{label:"报修时间"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.repairTime,callback:function(t){e.repairTime=t},expression:"repairTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"故障等级"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.search_data.level,callback:function(t){e.$set(e.search_data,"level",t)},expression:"search_data.level"}},e._l(e.levels,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"部门"}},[a("el-cascader",{attrs:{clearable:"",options:e.depOptions,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:e.handleChange},model:{value:e.selectDeptId,callback:function(t){e.selectDeptId=t},expression:"selectDeptId"}})],1)],1),e._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1)],1)])],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],ref:"tb",attrs:{border:"",data:e.tableData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"sort-change":e.sortChange,"row-click":e.clickRow,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"任务单号",width:"160px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.openDetails(t.row)}}},[e._v(e._s(t.row.workOrderNo))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"reventStatusName",align:"center",label:"任务状态"}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceSerialno",align:"center",label:"设备编号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceName",label:"设备名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceModel",align:"center",label:"规格型号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"reventLevelName",align:"center",label:"故障等级"}}),e._v(" "),a("el-table-column",{attrs:{prop:"reventTypeName",align:"center",label:"故障类型"}}),e._v(" "),a("el-table-column",{attrs:{prop:"createUserName",align:"center",label:"报修人","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"engineerDeptName",align:"center",label:"维修部门","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"engineerUserName",align:"center",label:"维修责任人","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"custom",prop:"createTime",align:"center",label:"报修时间",width:"124","show-overflow-tooltip":""}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.search_data.pageno,"page-sizes":e.pageSizes,"page-size":e.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("DialogChooseSingleUser",{attrs:{visible:e.chooseUserVisible},on:{"update:visible":function(t){e.chooseUserVisible=t},change:e.getUser}})],1)},staticRenderFns:[]};var g=a("VU/8")(v,m,!1,function(e){a("iN3o"),a("0kSu")},"data-v-31b94213",null).exports,f={components:{DialogChooseSingleUser:d.a},name:"repair_index_unaccept",data:function(){return{depOptions:[],selectDeptId:[],total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,startTime:"",endTime:"",time:"",status:"",heldPerson:"",createBy:"",title:"",singleStatus:57,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:{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),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({eventId:s,userId:i}).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.getList()):t.$message({message:e.msg?"转派失败,请重试":e.msg,type:"error"})}).catch(function(e){t.$message({message:"转派失败,请重试",type:"error"})})})},send:function(){var e=this.rowIds[0];if(56===e.reventStatusId){e.id;this.chooseUserVisible=!0}else this.$alert("维修单已在处理进程中,您无法转派该维修单!","提示",{type:"warning"})},openDetails:function(e){146===e.reventStatusId?this.$router.push({path:"/wwbx/add",query:{id:e.reventId,t:Date.now()}}):this.$router.push({path:"/wwbx/detail",query:{id:e.reventId,t:Date.now()}})},complete:function(){var e=this.rowIds[0];if(58!==e.reventStatusId){var t=e.reventId;this.$router.push({path:"/wwbx/check",query:{id:t,t:Date.now()}})}else this.$alert("维修单已完成验收,您无法再次验收该维修单!","提示",{type:"warning"})},repair:function(){var e=this.rowIds[0];if(58!==e.reventStatusId){var t=e.reventId;this.$router.push({path:"/wwbx/handle",query:{id:t,t:Date.now()}})}else this.$alert("维修单已完成验收,您无法再次处理该维修单!","提示",{type:"warning"})},remove:function(){var e=this,t=[];this.rowIds.forEach(function(e){t.push(e.reventId)});var a={ids:t};this.$confirm("确认删除选中的维修单据吗?","提示",{type:"warning"}).then(function(){e.$api.repairCheckAPI.batchRemove(a).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})},handleSelectionChange:function(e){this.rowIds=e,this.setBtn(e)},setBtn:function(e){var t=!0,a=!0;e.length>0?(a=!1,1==e.length&&(t=!1)):(t=!0,a=!0),this.btnDelDisabled=a,this.btnOtherDisabled=t}}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"repair-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{directives:[{name:"has",rawName:"v-has",value:"repair:repair:complete",expression:"'repair:repair:complete'"}],attrs:{type:"primary",disabled:e.btnOtherDisabled},on:{click:function(t){return e.complete()}}},[e._v("完工验收")])],1),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"设备名称"}},[a("el-input",{attrs:{placeholder:"请输入设备名称"},model:{value:e.search_data.divceName,callback:function(t){e.$set(e.search_data,"divceName",t)},expression:"search_data.divceName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"34%"},attrs:{label:"报修时间"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.repairTime,callback:function(t){e.repairTime=t},expression:"repairTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"故障等级"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.search_data.level,callback:function(t){e.$set(e.search_data,"level",t)},expression:"search_data.level"}},e._l(e.levels,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"部门"}},[a("el-cascader",{attrs:{clearable:"",options:e.depOptions,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:e.handleChange},model:{value:e.selectDeptId,callback:function(t){e.selectDeptId=t},expression:"selectDeptId"}})],1)],1),e._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1)],1)])],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],ref:"tb",attrs:{border:"",data:e.tableData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"sort-change":e.sortChange,"row-click":e.clickRow,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"任务单号",width:"160px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.openDetails(t.row)}}},[e._v(e._s(t.row.workOrderNo))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"reventStatusName",align:"center",label:"任务状态"}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceSerialno",align:"center",label:"设备编号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceName",label:"设备名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceModel",align:"center",label:"规格型号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"reventLevelName",align:"center",label:"故障等级"}}),e._v(" "),a("el-table-column",{attrs:{prop:"reventTypeName",align:"center",label:"故障类型"}}),e._v(" "),a("el-table-column",{attrs:{prop:"createUserName",align:"center",label:"报修人","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"engineerDeptName",align:"center",label:"维修部门","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"engineerUserName",align:"center",label:"维修责任人","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"custom",prop:"createTime",align:"center",label:"报修时间",width:"124","show-overflow-tooltip":""}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.search_data.pageno,"page-sizes":e.pageSizes,"page-size":e.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("DialogChooseSingleUser",{attrs:{visible:e.chooseUserVisible},on:{"update:visible":function(t){e.chooseUserVisible=t},change:e.getUser}})],1)},staticRenderFns:[]};var _=a("VU/8")(f,b,!1,function(e){a("xW7Y"),a("L7mS")},"data-v-4eff3f8e",null).exports,y={components:{DialogChooseSingleUser:d.a},name:"repair_index_unhandle",data:function(){return{depOptions:[],selectDeptId:[],total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,startTime:"",endTime:"",time:"",reventStatus:"",heldPerson:"",createBy:"",tabType:0,title:"",weiwai:1},repairTime:"",typeList:[],levels:[],statusList:[{name:"待处理",value:0},{name:"待验收",value:1},{name:"已验收",value:2},{name:"超期未处理",value:3},{name:"暂存",value:4}],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:{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],a[4]),o=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.resultList=l.datas),0===o.code&&(e.depOptions=o.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({eventId:s,userId:i}).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.getList()):t.$message({message:e.msg?"转派失败,请重试":e.msg,type:"error"})}).catch(function(e){t.$message({message:"转派失败,请重试",type:"error"})})})},send:function(){var e=this.rowIds[0];if(56===e.reventStatusId){e.id;this.chooseUserVisible=!0}else this.$alert("维修单已在处理进程中,您无法转派该维修单!","提示",{type:"warning"})},openDetails:function(e){this.$router.push({path:"/wwbx/add",query:{id:e.reventId,t:Date.now(),status:e.reventStatusId}})},complete:function(){var e=this.rowIds[0];if(58!==e.reventStatusId){var t=e.reventId;this.$router.push({path:"/wwbx/check",query:{id:t,t:Date.now()}})}else this.$alert("维修单已完成验收,您无法再次验收该维修单!","提示",{type:"warning"})},repair:function(){var e=this.rowIds[0];if(58!==e.reventStatusId){var t=e.reventId;this.$router.push({path:"/wwbx/handle",query:{id:t,t:Date.now()}})}else this.$alert("维修单已完成验收,您无法再次处理该维修单!","提示",{type:"warning"})},remove:function(){var e=this,t=[];this.rowIds.forEach(function(e){t.push(e.reventId)});var a={ids:t};this.$confirm("确认删除选中的维修单据吗?","提示",{type:"warning"}).then(function(){e.$api.repairCheckAPI.batchRemove(a).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})},handleSelectionChange:function(e){this.rowIds=e,this.setBtn(e)},setBtn:function(e){var t=!0,a=!0;e.length>0?(a=!1,1==e.length&&(t=!1)):(t=!0,a=!0),this.btnDelDisabled=a,this.btnOtherDisabled=t}}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"repair-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{directives:[{name:"has",rawName:"v-has",value:"repair:repair:add",expression:"'repair:repair:add'"}],attrs:{type:"primary"},on:{click:function(t){return e.add()}}},[e._v("新增")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"repair:repair:remove",expression:"'repair:repair:remove'"}],attrs:{type:"primary",disabled:e.btnDelDisabled},on:{click:function(t){return e.remove()}}},[e._v("删除")])],1),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"设备名称"}},[a("el-input",{attrs:{placeholder:"设备名称"},model:{value:e.search_data.divceName,callback:function(t){e.$set(e.search_data,"divceName",t)},expression:"search_data.divceName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"34%"},attrs:{label:"报修时间"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.repairTime,callback:function(t){e.repairTime=t},expression:"repairTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"故障等级"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.search_data.level,callback:function(t){e.$set(e.search_data,"level",t)},expression:"search_data.level"}},e._l(e.levels,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"任务状态"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.search_data.reventStatus,callback:function(t){e.$set(e.search_data,"reventStatus",t)},expression:"search_data.reventStatus"}},e._l(e.statusList,function(e){return a("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1)],1)])],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],ref:"tb",attrs:{border:"",data:e.tableData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"sort-change":e.sortChange,"row-click":e.clickRow,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"任务单号",width:"160px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.openDetails(t.row)}}},[e._v(e._s(t.row.workOrderNo))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"reventStatusName",align:"center",label:"任务状态"}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceSerialno",align:"center",label:"设备编号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceName",label:"设备名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"deviceModel",align:"center",label:"规格型号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"reventLevelName",align:"center",label:"故障等级"}}),e._v(" "),a("el-table-column",{attrs:{prop:"reventTypeName",align:"center",label:"故障类型"}}),e._v(" "),a("el-table-column",{attrs:{prop:"createUserName",align:"center",label:"报修人","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"engineerDeptName",align:"center",label:"维修部门","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"engineerUserName",align:"center",label:"维修责任人","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"custom",prop:"createTime",align:"center",label:"报修时间",width:"124","show-overflow-tooltip":""}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.search_data.pageno,"page-sizes":e.pageSizes,"page-size":e.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("DialogChooseSingleUser",{attrs:{visible:e.chooseUserVisible},on:{"update:visible":function(t){e.chooseUserVisible=t},change:e.getUser}})],1)},staticRenderFns:[]};var D={name:"upkeep_execution",components:{MainPage:u,HandlePage:g,AcceptPage:_,CreatedPage:a("VU/8")(y,w,!1,function(e){a("6TWz"),a("7W79")},"data-v-8feb0d16",null).exports},data:function(){return{firstShow:!1,secondShow:!1,threeShow:!1,fourthShow:!1,activeName:"first"}},mounted:function(){var e=this;this.$nextTick(function(t){e.$route.query.activeName?e.activeName=e.$route.query.activeName:(e.activeName="first",e.firstShow=!0)})},watch:{activeName:function(e){switch(e){case"first":this.firstShow=!0;break;case"second":this.secondShow=!0;break;case"three":this.threeShow=!0;break;case"four":this.fourthShow=!0}}},methods:{}},I={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box approve-box"},[a("div",{staticClass:"sys-tabs"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"",name:"first"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-badge",{staticClass:"item"},[e._v("我发起的")])],1),e._v(" "),e.firstShow?a("CreatedPage"):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"",name:"second"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-badge",{staticClass:"item"},[e._v("待处理")])],1),e._v(" "),e.secondShow?a("HandlePage"):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"",name:"three"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-badge",{staticClass:"item"},[e._v("待验收")])],1),e._v(" "),e.threeShow?a("AcceptPage"):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"",name:"four"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-badge",{staticClass:"item"},[e._v("所有的")])],1),e._v(" "),e.fourthShow?a("MainPage"):e._e()],1)],1)],1)])},staticRenderFns:[]};var $=a("VU/8")(D,I,!1,function(e){a("BDnT"),a("uJy8")},"data-v-cffe6ef0",null);t.default=$.exports},iN3o:function(e,t){},tUME:function(e,t){},uJy8:function(e,t){},xW7Y:function(e,t){}});