1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7db4b724"],{5621:function(t,e,a){},"5be1":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"headStys"},[a("div",{staticClass:"formContent"},[a("div",{staticClass:"container"},[a("el-form",{ref:"query",staticClass:"demo-form-inline",attrs:{inline:!0,model:t.query,"label-width":"100px"}},[a("div",{staticClass:"house-detail"},[a("div",{staticClass:"grid-half"},[a("div",{staticClass:"cell"},[a("el-form-item",{attrs:{prop:"projectCode"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入项目名称",maxlength:"64"},model:{value:t.query.projectName,callback:function(e){t.$set(t.query,"projectName",e)},expression:"query.projectName"}})],1)],1)]),t._v(" "),a("div",{staticClass:"grid-half"},[a("div",{staticClass:"cell"},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.taskDate,callback:function(e){t.taskDate=e},expression:"taskDate"}})],1)]),t._v(" "),a("div",{staticClass:"grid-half"},[a("div",{staticClass:"cell"},[a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(e){return t.resetForm("query")}}},[t._v("重置")])],1),t._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1)])])])],1)]),t._v(" "),a("div",{staticClass:"contentStys"},[a("div",{staticClass:"planLsts2"},[a("el-radio-group",{staticStyle:{"margin-bottom":"30px"},on:{change:function(e){return t.butClick()}},model:{value:t.tabPosition,callback:function(e){t.tabPosition=e},expression:"tabPosition"}},[a("el-radio-button",{attrs:{label:"2"}},[t._v("非计划性工单")]),t._v(" "),a("el-radio-button",{attrs:{label:"3"}},[t._v("服务工单")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"96%","margin-left":"35px","padding-top":"20px"},attrs:{fit:"","highlight-current-row":"",data:t.listTable,"header-cell-style":t.headClass,"tooltip-effect":"dark","default-expand-all":""},on:{"row-click":t.rowClick}},[a("el-table-column",{attrs:{label:"#",align:"center",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1)+" ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"项目名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.projectName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"工单总数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.orderTotal))])]}}])}),t._v(" "),1==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"领取工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.taskTotal))])]}}],null,!1,2066781705)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"受理工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.acceptOrderTotal))])]}}],null,!1,453573386)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{width:"160",align:"center","show-overflow-tooltip":"",label:"规定受理耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.provisionAcceptTime))])]}}],null,!1,113243450)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"实际受理平均耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.actualAcceptTime))])]}}],null,!1,3436687005)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"处理工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.processOrderTotal))])]}}],null,!1,4174408513)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"规定处理耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.provisionProcessTime))])]}}],null,!1,2773276465)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center",width:"140","show-overflow-tooltip":"",label:"实际处理平均耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.actualProcessTime))])]}}],null,!1,819553270)}):t._e(),t._v(" "),2==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"已评价工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.finishOrderTotal))])]}}],null,!1,2071554169)}):t._e(),t._v(" "),1==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"领取平均耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.completedTaskNum))])]}}],null,!1,2634080016)}):t._e(),t._v(" "),1==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"完成工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.uncompletedTaskNum))])]}}],null,!1,2411997227)}):t._e(),t._v(" "),1==t.type||2==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"规定完成耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.provisionFinishTime))])]}}],null,!1,2408625257)}):t._e(),t._v(" "),1==t.type||2==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"实际完成平均耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.actualFinishTime))])]}}],null,!1,2442341038)}):t._e()],1),t._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{"current-page":t.query.pageNumber,"page-sizes":[10,20,30,100],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){return t.$set(t.query,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.query,"pageNumber",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1),t._v(" "),a("div",{staticClass:"container"}),t._v(" "),a("div",{staticClass:"contentStys"},[t._m(0),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.detailedLoading,expression:"detailedLoading"}],staticStyle:{width:"96%","margin-left":"35px","padding-top":"20px"},attrs:{data:t.orderDetailed,"header-cell-style":t.headClass,"tooltip-effect":"dark","default-expand-all":""}},[a("el-table-column",{attrs:{label:"#",align:"center",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1)+" ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"projectName",align:"center","show-overflow-tooltip":"",label:"项目名称"}},[t.orderDetailed.length>0?a("span",[t._v(t._s(t.projectName))]):t._e()]),t._v(" "),a("el-table-column",{attrs:{prop:"memberName",align:"center","show-overflow-tooltip":"",label:"员工名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"memberJobName",align:"center","show-overflow-tooltip":"",label:"岗位"}}),t._v(" "),a("el-table-column",{attrs:{prop:"orderTotal",align:"center","show-overflow-tooltip":"",label:"工单总数量"}}),t._v(" "),1==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"领取工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.processOrderTotal))])]}}],null,!1,4174408513)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"受理工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.acceptOrderTotal))])]}}],null,!1,453573386)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"规定受理耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.provisionAcceptTime))])]}}],null,!1,113243450)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center",width:"140","show-overflow-tooltip":"",label:"实际受理平均耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.actualAcceptTime))])]}}],null,!1,3436687005)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"处理工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.processOrderTotal))])]}}],null,!1,4174408513)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"规定处理耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.provisionProcessTime))])]}}],null,!1,2773276465)}):t._e(),t._v(" "),2==t.type||3==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"实际处理平均耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.actualProcessTime))])]}}],null,!1,819553270)}):t._e(),t._v(" "),2==t.type?a("el-table-column",{attrs:{align:"center",width:"120","show-overflow-tooltip":"",label:"已评价工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.finishOrderTotal))])]}}],null,!1,2071554169)}):t._e(),t._v(" "),1==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"领取平均耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.completedTaskNum))])]}}],null,!1,2634080016)}):t._e(),t._v(" "),1==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"完成工单数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.uncompletedTaskNum))])]}}],null,!1,2411997227)}):t._e(),t._v(" "),1==t.type||2==t.type?a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"规定完成耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.provisionFinishTime))])]}}],null,!1,2408625257)}):t._e(),t._v(" "),1==t.type||2==t.type?a("el-table-column",{attrs:{align:"center",width:"150","show-overflow-tooltip":"",label:"实际完成平均耗时"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.actualFinishTime))])]}}],null,!1,2442341038)}):t._e()],1),t._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{"current-page":t.detaile.pageNumber,"page-sizes":[10,20,30,100],"page-size":t.detaile.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.detaiTotal},on:{"update:currentPage":function(e){return t.$set(t.detaile,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.detaile,"pageNumber",e)},"size-change":t.handleSizeChangeDetai,"current-change":t.handleCurrentChangeDetai}})],1)],1)])},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"planLst"},[a("span",{staticStyle:{color:"#2f2c2c","font-size":"16px"}},[t._v("员工工单耗时明细表")])])}],n=(a("4057"),a("bfb7")),s=a("8975"),r={name:"configManageList",data:function(){return{pageTotal:0,detaiTotal:0,tabPosition:"2",listLoading:!1,detailedLoading:!1,autofocus:!0,taskDate:"",projectName:"",type:2,listTable:[],orderDetailed:[],detaile:{pageNumber:1,pageSize:10},query:{projectName:"",pageNumber:1,pageSize:10},projectUuid:""}},created:function(){this.headClass();var t=new Date,e=Object(s["formatDate"])(t,"Y-M-D"),a=this.getDate();this.taskDate=[a,e]},mounted:function(){this.getlistData()},methods:{getDate:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth();return a=this.doHandleZero(a+1),e+"-"+a+"-01"},doHandleZero:function(t){var e=t;return 1==t.toString().length&&(e="0"+t),e},butClick:function(){this.type=parseInt(this.tabPosition),this.getlistData()},rowClick:function(t,e,a){t.projectUuid&&(this.projectUuid=t.projectUuid,this.projectName=t.projectName,this.detaile.projectName=t.projectName),this.taskStatistic()},taskStatistic:function(){var t=this;this.detaile.projectUuid=this.projectUuid,this.detaile.companyId=JSON.parse(window.localStorage.getItem("companyInfo")).osId,this.detaile.type=this.type,this.taskDate?(this.detaile.taskStartDate=this.taskDate[0]+" 00:00:00",this.detaile.taskEndDate=this.taskDate[1]+" 23:59:59"):(delete this.detaile.taskStartDate,delete this.detaile.taskEndDate),this.detailedLoading=!0,Object(n["a"])(this.detaile).then((function(e){0==e.code&&(t.orderDetailed=e.data.records,t.detaiTotal=e.data.rowsCount,t.detailedLoading=!1)})).catch((function(){t.detailedLoading=!1}))},searchDetaile:function(){this.taskStatistic()},handleSizeChangeDetai:function(t){this.detaile.pageSize=t,this.taskStatistic()},handleCurrentChangeDetai:function(t){this.detaile.pageNumber=t,this.taskStatistic()},handleSizeChange:function(t){this.query.pageSize=t,this.getlistData()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getlistData()},getlistData:function(){var t=this;this.listLoading=!0,this.query.companyId=JSON.parse(window.localStorage.getItem("companyInfo")).osId,this.query.type=this.type,this.taskDate&&(this.query.taskStartDate=this.taskDate[0]+" 00:00:00",this.query.taskEndDate=this.taskDate[1]+" 23:59:59"),Object(n["b"])(this.query).then((function(e){0==e.code&&(t.listTable=e.data.records,t.pageTotal=e.data.rowsCount,t.listLoading=!1)})).catch((function(){t.listLoading=!1}))},onSearch:function(){this.query.pageNumber=1,this.getlistData()},resetForm:function(t){this.query.pageNumber=1,this.query.projectName="",this.taskDate="",this.query.taskStartDate="",this.query.taskEndDate="",delete this.detaile.taskStartDate,delete this.detaile.taskEndDate,this.$refs[t].resetFields(),this.getlistData()},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},i=r,u=(a("b2ce"),a("829d")),c=Object(u["a"])(i,l,o,!1,null,"08d16f31",null);e["default"]=c.exports},b2ce:function(t,e,a){"use strict";a("5621")},bfb7:function(t,e,a){"use strict";a.d(e,"d",(function(){return o})),a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return s})),a.d(e,"c",(function(){return r}));var l=a("b775");function o(t){return Object(l["a"])({url:"/hakocompany/Task/taskStatisticsPageList",method:"post",data:t})}function n(t){return Object(l["a"])({url:"/hakocompany/data/project/postponeOrderTimeStatistics",method:"post",data:t})}function s(t){return Object(l["a"])({url:"/hakocompany/data/project/postponeOrderStaffTimeStatistics",method:"post",data:t})}function r(t){return Object(l["a"])({url:"/data/data/project/propertyStatistics",method:"post",data:t})}}}]); |