(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3b42"],{"L+sa":function(e,t,r){"use strict";var a=r("L2wz");r.n(a).a},L2wz:function(e,t,r){},dv4G:function(e,t,r){"use strict";r.d(t,"g",function(){return o}),r.d(t,"f",function(){return i}),r.d(t,"j",function(){return n}),r.d(t,"k",function(){return l}),r.d(t,"l",function(){return s}),r.d(t,"e",function(){return m}),r.d(t,"a",function(){return u}),r.d(t,"b",function(){return d}),r.d(t,"c",function(){return c}),r.d(t,"i",function(){return b}),r.d(t,"d",function(){return f}),r.d(t,"n",function(){return p}),r.d(t,"m",function(){return h}),r.d(t,"h",function(){return g}),r.d(t,"p",function(){return v}),r.d(t,"o",function(){return j});var a=r("t3Un");function o(e){return Object(a.a)({url:"dict/code/jobStatus",method:"get",params:e})}function i(e){return Object(a.a)({url:"job/list",method:"get",params:e})}function n(e){return Object(a.a)({url:"job/overtimeGetList",method:"get",params:e})}function l(e){return Object(a.a)({url:"job/overtimeHandleList",method:"get",params:e})}function s(e){return Object(a.a)({url:"job/handleJob",method:"post",params:{id:e}})}function m(e){return Object(a.a)({url:"job/info",method:"get",params:{id:e}})}function u(e){return Object(a.a)({url:"job/export",method:"get",timeout:12e4,params:e,responseType:"blob"})}function d(e){return Object(a.a)({url:"job/exportOvertimeGetList",method:"get",timeout:12e4,params:e,responseType:"blob"})}function c(e){return Object(a.a)({url:"job/exportOvertimeHandleList",method:"get",timeout:12e4,params:e,responseType:"blob"})}function b(e){return Object(a.a)({url:"/user/getMaintainer",method:"get",params:{deptId:e}})}function f(e){return Object(a.a)({url:"/inspection/list",method:"get",params:e})}function p(e,t){return Object(a.a)({url:"/inspection/distribute",method:"get",params:{ids:e,account:t},paramsSerializer:function(e){return qs.stringify(e,{indices:!1})}})}function h(e){return Object(a.a)({url:"/inspection/delete",method:"get",params:{ids:e},paramsSerializer:function(e){return qs.stringify(e,{indices:!1})}})}function g(e){return Object(a.a)({url:"/maintain/list",method:"get",params:e})}function v(e,t){return Object(a.a)({url:"/maintain/distribute",method:"get",params:{ids:e,account:t},paramsSerializer:function(e){return qs.stringify(e,{indices:!1})}})}function j(e){return Object(a.a)({url:"/maintain/delete",method:"get",params:{ids:e},paramsSerializer:function(e){return qs.stringify(e,{indices:!1})}})}},pDGE:function(e,t,r){"use strict";r.r(t);var a=r("FyfS"),o=r.n(a),i=r("dv4G");function n(e,t){return-1!==e.indexOf(" ")&&-1!==t.indexOf(" ")?function(e,t){if(e.length>0&&t.length>0){var r=e.split(" "),a=t.split(" "),o=r[0].split("-"),i=a[0].split("-"),n=r[1].split(":"),l=a[1].split(":"),s=new Date(o[0],o[1],o[2],n[0],n[1],n[2]),m=new Date(i[0],i[1],i[2],l[0],l[1],l[2]);return s.getTime()>m.getTime()?-1:s.getTime()===m.getTime()?0:1}return-1}(e,t):function(e,t){var r=[],a=[];if(null!=e&&null!=t){r=e.split("-");var o=new Date(r[0],parseInt(r[1]-1),r[2]);a=t.split("-");var i=new Date(a[0],parseInt(a[1]-1),a[2]);return o>i?-1:o===i?0:1}}(e,t)}var l={name:"DetailJob",data:function(){return{dialogFormVisible:!1,dialogStatus:"",jobForm:{jobCode:"",wellCode:"",devcode:"",position:"",coordinateX:"",coordinateY:"",latBaidu:"",lngBaidu:"",latGaode:"",lngGaode:"",alarmType:"",alarmTypeName:"",alarmContentName:"",alarmMessage:"",jobStatusName:"",firstState:"",firstStatePhotos:"",handleMessage:"",handleStatePhotos:"",getJobPerson:"",getJobTime:"",confirmJobPerson:"",confirmJobTime:"",handleJobPerson:"",handleJobTime:"",flow:""},deptProps:{parent:"pid",value:"id",label:"name",children:"children"},activeStep:0,activities:[],hideUpload:!0,firstImageList:[],handleImageList:[],dialogImageUrl:"",dialogVisible:!1,labelPosition:"right",mapShow:!1,loading:!0}},created:function(){var e=this.$route.query.jobId;e?this.getJobInfo(e):this.$message.error("参数加载错误")},activated:function(){var e=this.$route.query.jobId;e?this.getJobInfo(e):this.$message.error("参数加载错误")},methods:{initDialog:function(e){this.getJobInfo(e)},getJobInfo:function(e){var t=this;this.loading=!0;var r="http://192.168.8.102:11643/static/";Object(i.e)(e).then(function(e){if(t.loading=!1,200===e.code){if(e.data.length<=0)return;var a=e.data[0];if(t.jobForm=a,""!==a.firstStatePhotos){t.firstImageList=[];var i=a.firstStatePhotos.split(";"),l=!0,s=!1,m=void 0;try{for(var u,d=o()(i);!(l=(u=d.next()).done);l=!0){var c=u.value;c&&t.firstImageList.push(r+c)}}catch(e){s=!0,m=e}finally{try{!l&&d.return&&d.return()}finally{if(s)throw m}}}else t.firstImageList=[];if(""!==a.handlePhotos.length){t.handleImageList=[];var b=a.handlePhotos.split(";"),f=!0,p=!1,h=void 0;try{for(var g,v=o()(b);!(f=(g=v.next()).done);f=!0){var j=g.value;j&&t.handleImageList.push(r+j)}}catch(e){p=!0,h=e}finally{try{!f&&v.return&&v.return()}finally{if(p)throw h}}}else t.handleImageList=[];var w=[],y=a;if(y.createTime&&"0000-00-00 00:00:00"!==y.createTime&&w.push({time:y.createTime,name:"创建工单",num:1}),y.getJobTime&&"0000-00-00 00:00:00"!==y.getJobTime){var x=y.getJobPerson?y.getJobPerson:"系统";x+="接单",w.push({time:y.getJobTime,name:x,num:2})}if(y.confirmJobTime&&"0000-00-00 00:00:00"!==y.confirmJobTime){var F=y.confirmJobPerson?y.confirmJobPerson:"系统";F+="确认工单",w.push({time:y.confirmJobTime,name:F,num:3})}if(y.handleJobTime&&"0000-00-00 00:00:00"!==y.handleJobTime)if("4"===y.jobStatus){var J=y.handleJobPerson?y.handleJobPerson:"系统";J+="取消工单",w.push({time:y.handleJobTime,name:J,num:4})}else{var T=y.handleJobPerson?y.handleJobPerson:"系统";T+="完成工单",w.push({time:y.handleJobTime,name:T,num:4})}if(y.flow&&y.flow.length>0){var _=!0,I=!1,S=void 0;try{for(var L,O=o()(y.flow);!(_=(L=O.next()).done);_=!0){var P=L.value,k=P.from+"转单给"+P.to;w.push({time:P.time,name:k,num:4})}}catch(e){I=!0,S=e}finally{try{!_&&O.return&&O.return()}finally{if(I)throw S}}}w.length>1&&w.sort(function(e,t){return 0===n(t.time,e.time)?t.num>e.num?-1:1:n(t.time,e.time)}),t.activities=w}})},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0}}},s=(r("L+sa"),r("KHd+")),m=Object(s.a)(l,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"job-form"},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"dataForm",attrs:{"label-position":e.labelPosition,model:e.jobForm,"label-width":"120px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"工单编号"}},[r("el-input",{attrs:{type:"text",placeholder:"未知",disabled:""},model:{value:e.jobForm.jobCode,callback:function(t){e.$set(e.jobForm,"jobCode",t)},expression:"jobForm.jobCode"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:9,offset:3}},[r("el-form-item",{attrs:{label:"井编号"}},[r("el-input",{attrs:{type:"text",placeholder:"未知",disabled:""},model:{value:e.jobForm.wellCode,callback:function(t){e.$set(e.jobForm,"wellCode",t)},expression:"jobForm.wellCode"}})],1)],1)],1),e._v(" "),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"设备编号"}},[r("el-input",{attrs:{type:"text",placeholder:"未知",disabled:""},model:{value:e.jobForm.devcode,callback:function(t){e.$set(e.jobForm,"devcode",t)},expression:"jobForm.devcode"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:9,offset:3}},[r("el-form-item",{attrs:{label:"详细地址"}},[r("el-input",{attrs:{type:"text",placeholder:"未知",disabled:""},model:{value:e.jobForm.position,callback:function(t){e.$set(e.jobForm,"position",t)},expression:"jobForm.position"}})],1)],1)],1),e._v(" "),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"告警类型"}},[r("el-input",{attrs:{type:"text",placeholder:"未知",disabled:""},model:{value:e.jobForm.alarmTypeName,callback:function(t){e.$set(e.jobForm,"alarmTypeName",t)},expression:"jobForm.alarmTypeName"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:9,offset:3}},[r("el-form-item",{attrs:{label:"告警内容"}},[r("el-input",{attrs:{type:"text",placeholder:"未知",disabled:""},model:{value:e.jobForm.alarmContentName,callback:function(t){e.$set(e.jobForm,"alarmContentName",t)},expression:"jobForm.alarmContentName"}})],1)],1)],1),e._v(" "),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"告警详情"}},[r("el-input",{attrs:{type:"text",placeholder:"未知",disabled:""},model:{value:e.jobForm.alarmMessage,callback:function(t){e.$set(e.jobForm,"alarmMessage",t)},expression:"jobForm.alarmMessage"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:9,offset:3}},[r("el-form-item",{attrs:{label:"处理状态"}},[r("el-input",{attrs:{type:"text",placeholder:"未知",disabled:""},model:{value:e.jobForm.jobStatusName,callback:function(t){e.$set(e.jobForm,"jobStatusName",t)},expression:"jobForm.jobStatusName"}})],1)],1)],1),e._v(" "),e.jobForm.firstState?r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"现场情况"}},[r("el-input",{attrs:{rows:3,type:"textarea",placeholder:"未知",disabled:""},model:{value:e.jobForm.firstState,callback:function(t){e.$set(e.jobForm,"firstState",t)},expression:"jobForm.firstState"}})],1)],1)],1):e._e(),e._v(" "),e.firstImageList.length>0?r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"现场图片"}},e._l(e.firstImageList,function(t){return r("el-image",{key:t,staticStyle:{width:"150px",height:"150px","border-radius":"5px","margin-right":"10px"},attrs:{src:t,"preview-src-list":e.firstImageList,fit:"fill"}})}))],1)],1):e._e(),e._v(" "),e.jobForm.handleMessage?r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"维护情况"}},[r("el-input",{attrs:{rows:3,type:"textarea",placeholder:"未知",disabled:""},model:{value:e.jobForm.handleMessage,callback:function(t){e.$set(e.jobForm,"handleMessage",t)},expression:"jobForm.handleMessage"}})],1)],1)],1):e._e(),e._v(" "),e.handleImageList.length>0?r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"维护图片"}},e._l(e.handleImageList,function(t){return r("el-image",{key:t,staticStyle:{width:"150px",height:"150px","border-radius":"5px","margin-right":"10px"},attrs:{src:t,"preview-src-list":e.firstImageList,fit:"fill"}})}))],1)],1):e._e(),e._v(" "),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:14}},[r("div",[r("div",{staticClass:"table-label"},[e._v("\n 工单动态\n ")]),e._v(" "),r("div",{staticClass:"table-content"},[r("el-timeline",e._l(e.activities,function(t,a){return r("el-timeline-item",{key:a,attrs:{timestamp:t.time,color:"#0bbd87"}},[e._v("\n "+e._s(t.name)+"\n ")])}))],1),e._v(" "),r("div",{staticClass:"clear-float"})])])],1)],1)],1)},[],!1,null,null,null);m.options.__file="detailJob.vue";t.default=m.exports}}]);