1 line
42 KiB
JavaScript
1 line
42 KiB
JavaScript
webpackJsonp([18],{BpBn:function(e,t){},CNVo:function(e,t){},JI3j:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("d7EF"),i=a.n(s),r=a("//Fk"),n=a.n(r),l=a("BO1k"),o=a.n(l),c=a("GKmE"),h=a("3MlD"),d="/apis/hl/ahgl/xcjc/pageList",p="/apis/hl/ahgl/xcjc/unAudit",u={components:{DialogChooseSingleUser:h.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,type:0},repairTime:"",typeList:[],levels:[],statusList:[{name:"待处理",value:0},{name:"待审批",value:1},{name:"已完成",value:2}],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:{unpass:function(){var e=this,t=this.rowIds;if(!(t.length>0&&t.map(function(e){if("已完成"!==e.rwzt)return!1})))return this.$message({type:"warning",message:"没选择数据/选择的数据中包含未完成的数据"}),!1;var a=[];t.forEach(function(e){a.push(e.id)}),this.$api.yxkAPI.yxkPost(p,a).then(function(t){0==t.code&&e.getList()})},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 s=!0,i=!1,r=void 0;try{for(var n,l=o()(e);!(s=(n=l.next()).done);s=!0){var c=n.value;if(a.push(c.id),t(c))return a;if(c.children){var h=this.treeFindPath(c.children,t,a);if(h.length)return h}a.pop()}}catch(e){i=!0,r=e}finally{try{!s&&l.return&&l.return()}finally{if(i)throw r}}return[]},setDeptList:function(e){var t=!0,a=!1,s=void 0;try{for(var i,r=o()(e);!(t=(i=r.next()).done);t=!0){var n=i.value;n.hasChildren?this.setDeptList(n.children):n.children=void 0}}catch(e){a=!0,s=e}finally{try{!t&&r.return&&r.return()}finally{if(a)throw s}}},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("cj"),this.$api.dictAPI.getDictsByType("task_status"),this.$api.dictAPI.getDictsByType("acceptance_result"),this.$api.commonAPI.getDeptsTree()]).then(function(t){var a=i()(t,6),s=a[0],r=a[1],n=a[2],l=a[3],o=a[4],c=a[5];0===s.code&&(e.getUserList=s.datas),0===r.code&&(e.typeList=r.datas),0===n.code&&(e.levels=n.datas),l.code,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.yxkAPI.yxkPost(d,this.search_data).then(function(t){e.pictLoading=!1,t.data?(e.total=t.data.total,e.tableData=t.data.records?t.data.records:[]):(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],s=e.id,i=a.reventId;this.$confirm("确认将维修单转派给"+e.name+"吗?","提示",{type:"warning"}).then(function(){t.$api.repairCheckAPI.reventTurnToSend({eventId:i,userId:s}).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:"/ahgl/add",query:{id:e.id,t:Date.now()}}):this.$router.push({path:"/ahgl/detail",query:{id:e.id,t:Date.now(),type:e.rwzt}})},complete:function(){var e=this.rowIds[0];if(58!==e.reventStatusId){var t=e.reventId;this.$router.push({path:"/ahgl/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:"/ahgl/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}}},g={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:"xcjc:fsh",expression:"'xcjc:fsh'"}],attrs:{type:"primary",disabled:e.btnDelDisabled},on:{click:function(t){return e.unpass()}}},[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.xcjcd,callback:function(t){e.$set(e.search_data,"xcjcd",t)},expression:"search_data.xcjcd"}})],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.rwzt,callback:function(t){e.$set(e.search_data,"rwzt",t)},expression:"search_data.rwzt"}},e._l(e.statusList,function(e){return a("el-option",{key:e.value,attrs:{label:e.name,value:e.name}})}),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.cj,callback:function(t){e.$set(e.search_data,"cj",t)},expression:"search_data.cj"}},e._l(e.levels,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}),1)],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)],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.xcjcd))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"rwzt",align:"center",label:"任务状态"}}),e._v(" "),a("el-table-column",{attrs:{prop:"jcrq",align:"center",label:"检查日期",width:"220","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"jcry",label:"检查人员",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"cj",align:"center",label:"车间","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"jclb",align:"center",label:"检查类别"}}),e._v(" "),a("el-table-column",{attrs:{prop:"zrr",align:"center",label:"责任人"}}),e._v(" "),a("el-table-column",{attrs:{prop:"yqwcrq",align:"center",label:"要求完成日期",width:"220","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"wtms",align:"center",label:"问题描述","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"bz",align:"center",label:"备注","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 m=a("VU/8")(u,g,!1,function(e){a("MoEN"),a("CNVo")},"data-v-9b0a781a",null).exports,f="/apis/hl/ahgl/xcjc/pageList",v="/apis/hl/ahgl/xcjc/tran",b={components:{DialogChooseSingleUser:h.a},name:"repair_index_unhandle",data:function(){return{depOptions:[],selectDeptId:[],total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,startTime:"",endTime:"",type:2},repairTime:"",typeList:[],levels:[],statusList:[{name:"待处理",value:0},{name:"待审批",value:1},{name:"已完成",value:2}],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 s=!0,i=!1,r=void 0;try{for(var n,l=o()(e);!(s=(n=l.next()).done);s=!0){var c=n.value;if(a.push(c.id),t(c))return a;if(c.children){var h=this.treeFindPath(c.children,t,a);if(h.length)return h}a.pop()}}catch(e){i=!0,r=e}finally{try{!s&&l.return&&l.return()}finally{if(i)throw r}}return[]},setDeptList:function(e){var t=!0,a=!1,s=void 0;try{for(var i,r=o()(e);!(t=(i=r.next()).done);t=!0){var n=i.value;n.hasChildren?this.setDeptList(n.children):n.children=void 0}}catch(e){a=!0,s=e}finally{try{!t&&r.return&&r.return()}finally{if(a)throw s}}},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("cj"),this.$api.dictAPI.getDictsByType("task_status"),this.$api.dictAPI.getDictsByType("acceptance_result"),this.$api.commonAPI.getDeptsTree()]).then(function(t){var a=i()(t,6),s=a[0],r=a[1],n=a[2],l=a[3],o=a[4],c=a[5];0===s.code&&(e.getUserList=s.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.yxkAPI.yxkPost(f,this.search_data).then(function(t){e.pictLoading=!1,t.data?(e.total=t.data.total,e.tableData=t.data.records?t.data.records:[]):(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],s=e.id,i=a.id;this.$confirm("确认将稽查单转派给"+e.name+"吗?","提示",{type:"warning"}).then(function(){t.$api.yxkAPI.yxkPost(v+"?id="+i+"&userId="+s).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("待处理"===e.rwzt){e.id;this.chooseUserVisible=!0}else this.$alert("稽查单已在处理进程中,您无法转派该稽查单!","提示",{type:"warning"})},openDetails:function(e){146===e.reventStatusId?this.$router.push({path:"/ahgl/add",query:{id:e.reventId,t:Date.now()}}):this.$router.push({path:"/ahgl/detail",query:{id:e.id,type:e.rwzt,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.id;this.$router.push({path:"/ahgl/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}}},y={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:"xcjc:wtzp",expression:"'xcjc:wtzp'"}],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:"xcjc:wtcl",expression:"'xcjc:wtcl'"}],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.xcjcd,callback:function(t){e.$set(e.search_data,"xcjcd",t)},expression:"search_data.xcjcd"}})],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.cj,callback:function(t){e.$set(e.search_data,"cj",t)},expression:"search_data.cj"}},e._l(e.levels,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}),1)],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)],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.xcjcd))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"rwzt",align:"center",label:"任务状态"}}),e._v(" "),a("el-table-column",{attrs:{prop:"jcrq",align:"center",label:"检查日期",width:"220","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"jcry",label:"检查人员",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"cj",align:"center",label:"车间","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"jclb",align:"center",label:"检查类别"}}),e._v(" "),a("el-table-column",{attrs:{prop:"zrr",align:"center",label:"责任人"}}),e._v(" "),a("el-table-column",{attrs:{prop:"yqwcrq",align:"center",label:"要求完成日期",width:"220","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"wtms",align:"center",label:"问题描述","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"bz",align:"center",label:"备注","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")(b,y,!1,function(e){a("PA5p"),a("kCCB")},"data-v-8f4c7922",null).exports,w="/apis/hl/ahgl/xcjc/pageList",D={components:{DialogChooseSingleUser:h.a},name:"repair_index_unaccept",data:function(){return{depOptions:[],selectDeptId:[],total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,type:3},statusList:[{name:"待处理",value:0},{name:"待审批",value:1},{name:"已完成",value:2}],repairTime:"",typeList:[],levels:[],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:{unpass:function(){console.log("反审核")},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 s=!0,i=!1,r=void 0;try{for(var n,l=o()(e);!(s=(n=l.next()).done);s=!0){var c=n.value;if(a.push(c.id),t(c))return a;if(c.children){var h=this.treeFindPath(c.children,t,a);if(h.length)return h}a.pop()}}catch(e){i=!0,r=e}finally{try{!s&&l.return&&l.return()}finally{if(i)throw r}}return[]},setDeptList:function(e){var t=!0,a=!1,s=void 0;try{for(var i,r=o()(e);!(t=(i=r.next()).done);t=!0){var n=i.value;n.hasChildren?this.setDeptList(n.children):n.children=void 0}}catch(e){a=!0,s=e}finally{try{!t&&r.return&&r.return()}finally{if(a)throw s}}},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("cj"),this.$api.dictAPI.getDictsByType("task_status"),this.$api.dictAPI.getDictsByType("acceptance_result"),this.$api.commonAPI.getDeptsTree()]).then(function(t){var a=i()(t,6),s=a[0],r=a[1],n=a[2],l=a[3],o=a[4],c=a[5];0===s.code&&(e.getUserList=s.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.yxkAPI.yxkPost(w,this.search_data).then(function(t){e.pictLoading=!1,t.data?(e.total=t.data.total,e.tableData=t.data.records?t.data.records:[]):(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],s=e.id,i=a.reventId;this.$confirm("确认将维修单转派给"+e.name+"吗?","提示",{type:"warning"}).then(function(){t.$api.repairCheckAPI.reventTurnToSend({eventId:i,userId:s}).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:"/ahgl/add",query:{id:e.id,t:Date.now()}}):this.$router.push({path:"/ahgl/detail",query:{id:e.id,type:e.rwzt,t:Date.now()}})},complete:function(){var e=this.rowIds[0];if("待审批"===e.rwzt){var t=e.id;this.$router.push({path:"/ahgl/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}}},$={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:"xcjc:sh",expression:"'xcjc:sh'"}],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.xcjcd,callback:function(t){e.$set(e.search_data,"xcjcd",t)},expression:"search_data.xcjcd"}})],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.cj,callback:function(t){e.$set(e.search_data,"cj",t)},expression:"search_data.cj"}},e._l(e.levels,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}),1)],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)],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.xcjcd))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"rwzt",align:"center",label:"任务状态"}}),e._v(" "),a("el-table-column",{attrs:{prop:"jcrq",align:"center",label:"检查日期",width:"220","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"jcry",label:"检查人员",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"cj",align:"center",label:"车间","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"jclb",align:"center",label:"检查类别"}}),e._v(" "),a("el-table-column",{attrs:{prop:"zrr",align:"center",label:"责任人"}}),e._v(" "),a("el-table-column",{attrs:{prop:"yqwcrq",align:"center",label:"要求完成日期",width:"220","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"wtms",align:"center",label:"问题描述","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"bz",align:"center",label:"备注","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 C=a("VU/8")(D,$,!1,function(e){a("VAgv"),a("BpBn")},"data-v-1a4e6edb",null).exports,x="/apis/hl/ahgl/xcjc/pageList",k="/apis/hl/ahgl/xcjc/del",I={components:{DialogChooseSingleUser:h.a},name:"repair_index_unhandle",data:function(){return{depOptions:[],selectDeptId:[],total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,startTime:null,endTime:null,type:1},repairTime:"",typeList:[],levels:[],statusList:[{name:"待处理",value:0},{name:"待审批",value:1},{name:"已完成",value:2}],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 s=!0,i=!1,r=void 0;try{for(var n,l=o()(e);!(s=(n=l.next()).done);s=!0){var c=n.value;if(a.push(c.id),t(c))return a;if(c.children){var h=this.treeFindPath(c.children,t,a);if(h.length)return h}a.pop()}}catch(e){i=!0,r=e}finally{try{!s&&l.return&&l.return()}finally{if(i)throw r}}return[]},setDeptList:function(e){var t=!0,a=!1,s=void 0;try{for(var i,r=o()(e);!(t=(i=r.next()).done);t=!0){var n=i.value;n.hasChildren?this.setDeptList(n.children):n.children=void 0}}catch(e){a=!0,s=e}finally{try{!t&&r.return&&r.return()}finally{if(a)throw s}}},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("cj"),this.$api.dictAPI.getDictsByType("task_status"),this.$api.dictAPI.getDictsByType("acceptance_result"),this.$api.commonAPI.getDeptsTree()]).then(function(t){var a=i()(t,6),s=a[0],r=a[1],n=a[2],l=(a[3],a[4]),o=a[5];0===s.code&&(e.getUserList=s.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.yxkAPI.yxkPost(x,this.search_data).then(function(t){e.pictLoading=!1,t.data?(e.total=t.data.total,e.tableData=t.data.records?t.data.records:[]):(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:"/ahgl/add",query:{s:this.$route.path,t:Date.now()}})},getUser:function(e){var t=this,a=this.rowIds[0],s=e.id,i=a.reventId;this.$confirm("确认将维修单转派给"+e.name+"吗?","提示",{type:"warning"}).then(function(){t.$api.repairCheckAPI.reventTurnToSend({eventId:i,userId:s}).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){"待处理"==e.rwzt?this.$router.push({path:"/ahgl/add",query:{id:e.id,t:Date.now(),status:e.reventStatusId}}):this.$router.push({path:"/ahgl/detail",query:{id:e.id,type:e.rwzt,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.id)}),this.$confirm("确认删除选中的数据吗?","提示",{type:"warning"}).then(function(){e.$api.yxkAPI.yxkPost(k,t).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}}},L={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:"xcjc:xz",expression:"'xcjc:xz'"}],attrs:{type:"primary"},on:{click:function(t){return e.add()}}},[e._v("新增")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"xcjc:sc",expression:"'xcjc:sc'"}],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.xcjcd,callback:function(t){e.$set(e.search_data,"xcjcd",t)},expression:"search_data.xcjcd"}})],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.rwzt,callback:function(t){e.$set(e.search_data,"rwzt",t)},expression:"search_data.rwzt"}},e._l(e.statusList,function(e){return a("el-option",{key:e.value,attrs:{label:e.name,value:e.name}})}),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.cj,callback:function(t){e.$set(e.search_data,"cj",t)},expression:"search_data.cj"}},e._l(e.levels,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}),1)],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)],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.xcjcd))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"rwzt",align:"center",label:"任务状态"}}),e._v(" "),a("el-table-column",{attrs:{prop:"jcrq",align:"center",label:"检查日期",width:"220","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"jcry",label:"检查人员",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"cj",align:"center",label:"车间","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"jclb",align:"center",label:"检查类别"}}),e._v(" "),a("el-table-column",{attrs:{prop:"zrr",align:"center",label:"责任人"}}),e._v(" "),a("el-table-column",{attrs:{prop:"yqwcrq",align:"center",label:"要求完成日期",width:"220","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"wtms",align:"center",label:"问题描述","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"bz",align:"center",label:"备注","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 S={name:"upkeep_execution",components:{MainPage:m,HandlePage:_,AcceptPage:C,CreatedPage:a("VU/8")(I,L,!1,function(e){a("f7YV"),a("KS4O")},"data-v-477f44f4",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:{handleClick:function(){this.$refs[this.activeName].getList()}}},j={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",{on:{"tab-click":e.handleClick},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",{ref:"first"}):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",{ref:"second"}):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",{ref:"three"}):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",{ref:"four"}):e._e()],1)],1)],1)])},staticRenderFns:[]};var T=a("VU/8")(S,j,!1,function(e){a("ZGQM"),a("rncQ")},"data-v-179c006f",null);t.default=T.exports},KS4O:function(e,t){},MoEN:function(e,t){},PA5p:function(e,t){},VAgv:function(e,t){},ZGQM:function(e,t){},f7YV:function(e,t){},kCCB:function(e,t){},rncQ:function(e,t){}}); |