(window.webpackJsonp=window.webpackJsonp||[]).push([["bwXE"],{bwXE:function(t,e,a){"use strict";a.r(e);var n=a("QbLZ"),o=a.n(n),r=a("L2JU"),l={data:function(){return{customerNameValue:"",customerName:[],dateRange:"",contractStateValue:"",contractState:[{value:2,label:"未提交"},{value:1,label:"提交"}],loading:!1,total:0,tableData:[],pageCurrent:1,pageSize:100,orderName:"",order:""}},computed:o()({},Object(r.b)(["id","token"])),created:function(){this.fetchData()},methods:{fetchData:function(){this.getCustomer("")},getCustomer:function(t){var e=this;this.customerName=[];var a=[];a[0]=["客户名称",t];var n=this.CreateData("11","合同管理_客户信息_查询数据_bak",a);this.ExecDatabase(n).then(function(t){for(var a=0;a<t.data.length;a++)e.customerName.push({label:t.data[a].客户名称,value:t.data[a].客户流水号})})},searchTable:function(){var t=this,e=[];e[0]=["排序名称",this.orderName],e[1]=["排序方式",this.order],e[2]=["开始时间",this.dateRange[0]],e[3]=["结束时间",this.dateRange[1]];var a=this.CreateData("11","设备管理_设备状态统计_查询数据",e,this.pageSize,this.pageCurrent);this.ExecDatabase(a).then(function(e){for(var a=0;a<e.data.length;a++)t.tableData.push({"工位号":e.data[a].工位号,"设备名称":e.data[a].设备名称,"工作时长":e.data[a].工作时长,"关机时长":e.data[a].关机时长,"报警时长":e.data[a].报警时长,"空闲时长":e.data[a].空闲时长,edit:!1});t.tableData=e.data.rows,t.total=e.data.total})},sortChange:function(t){"工位号"===t.prop&&(this.orderName=1),"ascending"===t.order?this.order=1:"descending"===t.order?this.order=2:this.order="",this.searchTable()},handleSizeChanges:function(t){this.pageCurrent=1,this.pageSize=t,this.searchTable()},handleCurrentChanges:function(t){this.pageCurrent=t,this.searchTable()}}},s=a("KHd+"),i=Object(s.a)(l,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-card",[a("div",{staticStyle:{"margin-top":"7px","margin-bottom":"7px"}},[a("span",{staticStyle:{"font-size":"13px",color:"black"}},[t._v("日期")]),t._v(" "),a("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small",type:"daterange",align:"center","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","range-separator":"～","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(e){t.searchTable()}},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"771px"},attrs:{data:t.tableData,"highlight-current-row":"",border:"",stripe:"",size:"small",height:"748"},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{width:t.setColumnWidth("物料编号"),label:"工位号",align:"center",prop:"状态",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n          "+t._s(e.row.工位号)+"\n        ")]}}])}),t._v(" "),a("el-table-column",{attrs:{width:t.setColumnWidth("加工设备"),label:"设备名称",align:"center",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n          "+t._s(e.row.设备名称)+"\n        ")]}}])}),t._v(" "),a("el-table-column",{attrs:{width:t.setColumnWidth("加工设备"),label:"工作时长",align:"center",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n          "+t._s(e.row.工作时长)+"\n        ")]}}])}),t._v(" "),a("el-table-column",{attrs:{width:t.setColumnWidth("加工设备"),label:"关机时长",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n          "+t._s(e.row.关机时长)+"\n        ")]}}])}),t._v(" "),a("el-table-column",{attrs:{width:t.setColumnWidth("加工设备"),label:"报警时长",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n          "+t._s(e.row.报警时长)+"\n        ")]}}])}),t._v(" "),a("el-table-column",{attrs:{width:t.setColumnWidth("加工设备"),label:"空闲时长H",sortable:"custom",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n          "+t._s(e.row.空闲时长)+"\n        ")]}}])})],1)],1)],1)},[],!1,null,null,null);i.options.__file="index.vue";e.default=i.exports}}]);