Newer
Older
casic-smartcity-well-front / smartwell / static / js / chunk-0488.2c34791a.js
wangxitong on 20 Jan 2021 9 KB 总览修改
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0488"],{"L+sa":function(e,t,a){"use strict";var o=a("L2wz");a.n(o).a},L2wz:function(e,t,a){},dv4G:function(e,t,a){"use strict";a.d(t,"f",function(){return r}),a.d(t,"e",function(){return l}),a.d(t,"g",function(){return i}),a.d(t,"h",function(){return n}),a.d(t,"i",function(){return s}),a.d(t,"d",function(){return m}),a.d(t,"a",function(){return u}),a.d(t,"b",function(){return d}),a.d(t,"c",function(){return c}),a.d(t,"j",function(){return b});var o=a("t3Un");function r(e){return Object(o.a)({url:"dict/code/jobStatus",method:"get",params:e})}function l(e){return Object(o.a)({url:"job/list",method:"get",params:e})}function i(e){return Object(o.a)({url:"job/overtimeGetList",method:"get",params:e})}function n(e){return Object(o.a)({url:"job/overtimeHandleList",method:"get",params:e})}function s(e){return Object(o.a)({url:"job/handleJob",method:"post",params:{id:e}})}function m(e){return Object(o.a)({url:"job/info",method:"get",params:{id:e}})}function u(e){return Object(o.a)({url:"job/export",method:"get",timeout:12e4,params:e,responseType:"blob"})}function d(e){return Object(o.a)({url:"job/exportOvertimeGetList",method:"get",timeout:12e4,params:e,responseType:"blob"})}function c(e){return Object(o.a)({url:"job/exportOvertimeHandleList",method:"get",timeout:12e4,params:e,responseType:"blob"})}function b(e){return Object(o.a)({url:"job/countByJobStatus",method:"get",params:e})}},pDGE:function(e,t,a){"use strict";a.r(t);var o=a("FyfS"),r=a.n(o),l=a("dv4G");function i(e,t){return-1!==e.indexOf(" ")&&-1!==t.indexOf(" ")?function(e,t){if(e.length>0&&t.length>0){var a=e.split(" "),o=t.split(" "),r=a[0].split("-"),l=o[0].split("-"),i=a[1].split(":"),n=o[1].split(":"),s=new Date(r[0],r[1],r[2],i[0],i[1],i[2]),m=new Date(l[0],l[1],l[2],n[0],n[1],n[2]);return s.getTime()>m.getTime()?-1:s.getTime()===m.getTime()?0:1}return-1}(e,t):function(e,t){var a=[],o=[];if(null!=e&&null!=t){a=e.split("-");var r=new Date(a[0],parseInt(a[1]-1),a[2]);o=t.split("-");var l=new Date(o[0],parseInt(o[1]-1),o[2]);return r>l?-1:r===l?0:1}}(e,t)}var n={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 a="http://111.198.10.15:11643/smartwell/static/";Object(l.d)(e).then(function(e){if(t.loading=!1,200===e.code){if(e.data.length<=0)return;var o=e.data[0];if(t.jobForm=o,""!==o.firstStatePhotos){t.firstImageList=[];var l=o.firstStatePhotos.split(";"),n=!0,s=!1,m=void 0;try{for(var u,d=r()(l);!(n=(u=d.next()).done);n=!0){var c=u.value;c&&t.firstImageList.push(a+c)}}catch(e){s=!0,m=e}finally{try{!n&&d.return&&d.return()}finally{if(s)throw m}}}else t.firstImageList=[];if(""!==o.handlePhotos.length){t.handleImageList=[];var b=o.handlePhotos.split(";"),f=!0,p=!1,h=void 0;try{for(var g,v=r()(b);!(f=(g=v.next()).done);f=!0){var j=g.value;j&&t.handleImageList.push(a+j)}}catch(e){p=!0,h=e}finally{try{!f&&v.return&&v.return()}finally{if(p)throw h}}}else t.handleImageList=[];var w=[],x=o;if(x.createTime&&"0000-00-00 00:00:00"!==x.createTime&&w.push({time:x.createTime,name:"创建工单",num:1}),x.getJobTime&&"0000-00-00 00:00:00"!==x.getJobTime){var y=x.getJobPerson?x.getJobPerson:"系统";y+="接单",w.push({time:x.getJobTime,name:y,num:2})}if(x.confirmJobTime&&"0000-00-00 00:00:00"!==x.confirmJobTime){var F=x.confirmJobPerson?x.confirmJobPerson:"系统";F+="确认工单",w.push({time:x.confirmJobTime,name:F,num:3})}if(x.handleJobTime&&"0000-00-00 00:00:00"!==x.handleJobTime)if("4"===x.jobStatus){var J=x.handleJobPerson?x.handleJobPerson:"系统";J+="取消工单",w.push({time:x.handleJobTime,name:J,num:4})}else{var T=x.handleJobPerson?x.handleJobPerson:"系统";T+="完成工单",w.push({time:x.handleJobTime,name:T,num:4})}if(x.flow&&x.flow.length>0){var _=!0,I=!1,L=void 0;try{for(var P,S=r()(x.flow);!(_=(P=S.next()).done);_=!0){var C=P.value,k=C.from+"转单给"+C.to;w.push({time:C.time,name:k,num:4})}}catch(e){I=!0,L=e}finally{try{!_&&S.return&&S.return()}finally{if(I)throw L}}}w.length>1&&w.sort(function(e,t){return 0===i(t.time,e.time)?t.num>e.num?-1:1:i(t.time,e.time)}),t.activities=w}})},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0}}},s=(a("L+sa"),a("KHd+")),m=Object(s.a)(n,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"job-form"},[a("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"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:9}},[a("el-form-item",{attrs:{label:"工单编号"}},[a("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(" "),a("el-col",{attrs:{span:9,offset:3}},[a("el-form-item",{attrs:{label:"井编号"}},[a("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(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:9}},[a("el-form-item",{attrs:{label:"设备编号"}},[a("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(" "),a("el-col",{attrs:{span:9,offset:3}},[a("el-form-item",{attrs:{label:"详细地址"}},[a("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(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:9}},[a("el-form-item",{attrs:{label:"告警类型"}},[a("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(" "),a("el-col",{attrs:{span:9,offset:3}},[a("el-form-item",{attrs:{label:"告警内容"}},[a("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(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:9}},[a("el-form-item",{attrs:{label:"告警详情"}},[a("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(" "),a("el-col",{attrs:{span:9,offset:3}},[a("el-form-item",{attrs:{label:"处理状态"}},[a("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?a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"现场情况"}},[a("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?a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"现场图片"}},e._l(e.firstImageList,function(t){return a("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?a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"维护情况"}},[a("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?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"维护图片"}},e._l(e.handleImageList,function(t){return a("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(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:14}},[a("div",[a("div",{staticClass:"table-label"},[e._v("\n            工单动态\n          ")]),e._v(" "),a("div",{staticClass:"table-content"},[a("el-timeline",e._l(e.activities,function(t,o){return a("el-timeline-item",{key:o,attrs:{timestamp:t.time,color:"#0bbd87"}},[e._v("\n                "+e._s(t.name)+"\n              ")])}))],1),e._v(" "),a("div",{staticClass:"clear-float"})])])],1)],1)],1)},[],!1,null,null,null);m.options.__file="detailJob.vue";t.default=m.exports}}]);