(window.webpackJsonp=window.webpackJsonp||[]).push([["D3Wo"],{D3Wo:function(e,t,a){"use strict";a.r(t);var l={data:function(){return{equipmentNo:"",equipmentName:"",dateRange:"",tableData:[],total:0,pageCurrent:1,pageSize:20}},created:function(){this.searchTable()},methods:{searchTable:function(){var e=this,t=[];t[0]=["设备号",this.equipmentNo],t[1]=["设备名",this.equipmentName],t[2]=["开始时间",this.dateRange?this.dateRange[0]:""],t[3]=["结束时间",this.dateRange?this.dateRange[1]:""];var a=this.CreateData("11","设备管理_整修记录_查询",t,this.pageSize,this.pageCurrent);this.ExecDatabase(a).then(function(t){e.tableData=t.data.rows,e.total=t.data.total})},handleSizeChange:function(e){this.pageCurrent=1,this.pageSize=e,this.searchTable()},handleCurrentChange:function(e){this.pageCurrent=e,this.searchTable()},exportExcel:function(){var e=[];e[0]=["设备号",this.equipmentNo],e[1]=["设备名",this.equipmentName],e[2]=["开始时间",this.dateRange?this.dateRange[0]:""],e[3]=["结束时间",this.dateRange?this.dateRange[1]:""];var t=this.CreateData("2001","设备管理_整修记录_查询",e);this.exportExcel_NPOI(t)}}},n=a("KHd+"),i=Object(n.a)(l,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{staticStyle:{height:"850px"}},[a("div",{staticStyle:{"margin-top":"7px","margin-bottom":"7px"}},[a("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"设备号",size:"small",clearable:""},model:{value:e.equipmentNo,callback:function(t){e.equipmentNo=t},expression:"equipmentNo"}}),e._v(" "),a("el-input",{staticStyle:{width:"160px","margin-left":"10px"},attrs:{placeholder:"设备名",size:"small",clearable:""},model:{value:e.equipmentName,callback:function(t){e.equipmentName=t},expression:"equipmentName"}}),e._v(" "),a("span",{staticStyle:{"font-size":"13px",color:"black","margin-left":"10px"}},[e._v("整修时间")]),e._v(" "),a("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small",type:"daterange",align:"center","value-format":"yyyy-MM-dd","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}}),e._v(" "),a("el-button",{staticStyle:{"margin-left":"15px"},attrs:{type:"primary",icon:"el-icon-search",size:"small",plain:""},on:{click:function(t){e.pageSize=20,e.pageCurrent=1,e.searchTable()}}},[e._v("查询")]),e._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-download",size:"small"},on:{click:function(t){e.exportExcel()}}},[e._v("导出")])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:"mini",stripe:"","highlight-current-row":"",height:"750px"}},[a("el-table-column",{attrs:{label:"项次",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备号",prop:"设备号",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名",prop:"设备名",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"开始时间",prop:"整修开始时间",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"结束时间",prop:"整修结束时间",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"工时",prop:"工时",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"报备人",prop:"操作者",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"整修状态",prop:"整修状态",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.整修状态||"0"===t.row.整修状态?a("span",[e._v("整修中")]):1===t.row.整修状态||"1"===t.row.整修状态?a("span",[e._v("整修结束")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"原因",prop:"整修原因",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"整修方案",prop:"整修方案",align:"center","show-overflow-tooltip":""}})],1),e._v(" "),a("div",{staticClass:"block",staticStyle:{"margin-top":"10px"}},[a("el-pagination",{attrs:{"current-page":e.pageCurrent,"page-sizes":[20,50,100,200],"page-size":e.pageSize,total:e.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)},[],!1,null,null,null);i.options.__file="index.vue";t.default=i.exports}}]);