Newer
Older
smartwell_front_dz / smartwell / static / js / 8811.c3782157.js
wangxitong on 11 Sep 2023 8 KB first commit
(self["webpackChunknewfront"]=self["webpackChunknewfront"]||[]).push([[8811],{58811:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});i(68309);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"job-form"},[t("el-descriptions",{staticClass:"margin-top",attrs:{title:"",size:"medium",column:2,border:""}},[e._l(e.formConfig,(function(i){return t("el-descriptions-item",{directives:[{name:"show",rawName:"v-show",value:i.hidden&&e.jobForm[i.value],expression:"config.hidden&&jobForm[config.value]"}],key:i.value,attrs:{span:i.span,"label-class-name":"job-label","content-style":"job-content"}},[t("template",{slot:"label"},[e._v(" "+e._s(i.label)+" ")]),"text"==i.type?[e._v(" "+e._s(e.jobForm[i.value]?e.jobForm[i.value]:i.placeholder)+" ")]:e._e(),"timeline"==i.type?[t("div",{staticClass:"table-content"},[t("el-timeline",e._l(e.activities,(function(i,a){return t("el-timeline-item",{key:a,attrs:{timestamp:i.time,color:"#0bbd87"}},[e._v(" "+e._s(i.name)+" ")])})),1)],1)]:e._e()],2)})),e.jobForm.firstState?t("el-descriptions-item",{attrs:{label:"现场情况",span:5}},[e._v(" "+e._s(e.jobForm.firstState)+" ")]):e._e(),e.firstImageList.length>0?t("el-descriptions-item",{attrs:{label:"现场照片",span:5}},[[0==e.firstImageList.length?t("div",[e._v(" 无 ")]):t("div",e._l(e.firstImageList,(function(i){return t("el-image",{key:i,staticStyle:{width:"100px",height:"100px"},attrs:{src:i,"preview-src-list":e.firstImageList}})})),1)]],2):e._e(),e.jobForm.handleMessage?t("el-descriptions-item",{attrs:{label:"维护情况",span:5}},[e._v(" "+e._s(e.jobForm.handleMessage)+" ")]):e._e(),e.handleImageList.length>0?t("el-descriptions-item",{attrs:{label:"维护图片",span:5}},[[0==e.handleImageList.length?t("div",[e._v(" 无 ")]):t("div",e._l(e.handleImageList,(function(i){return t("el-image",{key:i,staticStyle:{width:"100px",height:"100px"},attrs:{src:i,"preview-src-list":e.handleImageList}})})),1)]],2):e._e()],2)],1)},r=[],o=i(66347),n=(i(74916),i(23123),i(2707),i(80064));i(82772),i(83710),i(91058);function s(e,t){return-1!==e.indexOf(" ")&&-1!==t.indexOf(" ")?m(e,t):l(e,t)}function l(e,t){var i=[],a=[];if(null!=e&&null!=t){i=e.split("-");var r=new Date(i[0],parseInt(i[1]-1),i[2]);a=t.split("-");var o=new Date(a[0],parseInt(a[1]-1),a[2]);return r>o?-1:r===o?0:1}}function m(e,t){if(e.length>0&&t.length>0){var i=e.split(" "),a=t.split(" "),r=i[0].split("-"),o=a[0].split("-"),n=i[1].split(":"),s=a[1].split(":"),l=new Date(r[0],r[1],r[2],n[0],n[1],n[2]),m=new Date(o[0],o[1],o[2],s[0],s[1],s[2]);return l.getTime()>m.getTime()?-1:l.getTime()===m.getTime()?0:1}return-1}const u={name:"DetailJob",data:function(){return{dialogFormVisible:!1,dialogStatus:"",formConfig:[{type:"text",label:"工单编号",value:"jobCode",placeholder:"未知"},{type:"text",label:"点位编号",value:"wellCode",placeholder:"未知"},{type:"text",label:"设备编号",value:"devcode",placeholder:"未知"},{type:"text",label:"详细地址",value:"position",placeholder:"未知"},{type:"text",label:"告警详情",value:"alarmMessage",placeholder:"未知"},{type:"text",label:"工单状态",value:"jobStatusName",placeholder:"未知"},{type:"timeline",label:"工单动态",value:"",placeholder:"暂无",span:5}],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 i=this.baseConfig.baseUrl+"/static/";(0,n.Z7)(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 r,n=a.firstStatePhotos.split(/,|;/),l=(0,o.Z)(n);try{for(l.s();!(r=l.n()).done;){var m=r.value;m&&t.firstImageList.push(i+m)}}catch(T){l.e(T)}finally{l.f()}}else t.firstImageList=[];if(""!==a.handlePhotos.length){t.handleImageList=[];var u,d=a.handlePhotos.split(/,|;/),h=(0,o.Z)(d);try{for(h.s();!(u=h.n()).done;){var c=u.value;c&&t.handleImageList.push(i+c)}}catch(T){h.e(T)}finally{h.f()}}else t.handleImageList=[];var f=[],p=a;if(p.createTime&&"0000-00-00 00:00:00"!==p.createTime&&f.push({time:p.createTime,name:"创建工单",num:1}),p.getJobTime&&"0000-00-00 00:00:00"!==p.getJobTime){var b=p.getJobPerson?p.getJobPerson:"系统";b+="接单",f.push({time:p.getJobTime,name:b,num:2})}if(p.confirmJobTime&&"0000-00-00 00:00:00"!==p.confirmJobTime){var v=p.confirmJobPerson?p.confirmJobPerson:"系统";v+="确认工单",f.push({time:p.confirmJobTime,name:v,num:3})}if(p.handleJobTime&&"0000-00-00 00:00:00"!==p.handleJobTime)if("4"===p.jobStatus){var g=p.handleJobPerson?p.handleJobPerson:"系统";g+="取消工单",f.push({time:p.handleJobTime,name:g,num:4})}else{var y=p.handleJobPerson?p.handleJobPerson:"系统";y+="完成工单",f.push({time:p.handleJobTime,name:y,num:4})}if(p.flow&&p.flow.length>0){var J,j=(0,o.Z)(p.flow);try{for(j.s();!(J=j.n()).done;){var w=J.value,I=w.from+"转单给"+w.to;f.push({time:w.time,name:I,num:4})}}catch(T){j.e(T)}finally{j.f()}}f.length>1&&f.sort((function(e,t){var i=s(t.time,e.time);return 0===i?t.num>e.num?-1:1:s(t.time,e.time)})),t.activities=f}}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0}}},d=u;var h=i(1001),c=(0,h.Z)(d,a,r,!1,null,null,null);const f=c.exports},94362:(e,t,i)=>{var a=i(41589),r=Math.floor,o=function(e,t){var i=e.length,l=r(i/2);return i<8?n(e,t):s(e,o(a(e,0,l),t),o(a(e,l),t),t)},n=function(e,t){var i,a,r=e.length,o=1;while(o<r){a=o,i=e[o];while(a&&t(e[a-1],i)>0)e[a]=e[--a];a!==o++&&(e[a]=i)}return e},s=function(e,t,i,a){var r=t.length,o=i.length,n=0,s=0;while(n<r||s<o)e[n+s]=n<r&&s<o?a(t[n],i[s])<=0?t[n++]:i[s++]:n<r?t[n++]:i[s++];return e};e.exports=o},68886:(e,t,i)=>{var a=i(88113),r=a.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},30256:(e,t,i)=>{var a=i(88113);e.exports=/MSIE|Trident/.test(a)},98008:(e,t,i)=>{var a=i(88113),r=a.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},2707:(e,t,i)=>{"use strict";var a=i(82109),r=i(1702),o=i(19662),n=i(47908),s=i(26244),l=i(85117),m=i(41340),u=i(47293),d=i(94362),h=i(9341),c=i(68886),f=i(30256),p=i(7392),b=i(98008),v=[],g=r(v.sort),y=r(v.push),J=u((function(){v.sort(void 0)})),j=u((function(){v.sort(null)})),w=h("sort"),I=!u((function(){if(p)return p<70;if(!(c&&c>3)){if(f)return!0;if(b)return b<603;var e,t,i,a,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(a=0;a<47;a++)v.push({k:t+a,v:i})}for(v.sort((function(e,t){return t.v-e.v})),a=0;a<v.length;a++)t=v[a].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}})),T=J||!j||!w||!I,_=function(e){return function(t,i){return void 0===i?-1:void 0===t?1:void 0!==e?+e(t,i)||0:m(t)>m(i)?1:-1}};a({target:"Array",proto:!0,forced:T},{sort:function(e){void 0!==e&&o(e);var t=n(this);if(I)return void 0===e?g(t):g(t,e);var i,a,r=[],m=s(t);for(a=0;a<m;a++)a in t&&y(r,t[a]);d(r,_(e)),i=s(r),a=0;while(a<i)t[a]=r[a++];while(a<m)l(t,a++);return t}})},80064:(e,t,i)=>{"use strict";i.d(t,{$$:()=>s,FD:()=>u,Go:()=>o,Ho:()=>h,Km:()=>n,PP:()=>l,TK:()=>d,Z7:()=>m,eB:()=>c,jW:()=>r});var a=i(84471);function r(e){return(0,a.Z)({url:"sys/dict/code/jobStatus",method:"get",params:e})}function o(e){return(0,a.Z)({url:"job/list",method:"get",params:e})}function n(e){return(0,a.Z)({url:"job/overtimeGetList",method:"get",params:e})}function s(e){return(0,a.Z)({url:"job/overtimeHandleList",method:"get",params:e})}function l(e){return(0,a.Z)({url:"job/handleJob",method:"post",params:{id:e}})}function m(e){return(0,a.Z)({url:"job/info",method:"get",params:{id:e}})}function u(e){return(0,a.Z)({url:"job/export",method:"get",timeout:12e4,params:e,responseType:"blob"})}function d(e){return(0,a.Z)({url:"job/exportOvertimeGetList",method:"get",timeout:12e4,params:e,responseType:"blob"})}function h(e){return(0,a.Z)({url:"job/exportOvertimeHandleList",method:"get",timeout:12e4,params:e,responseType:"blob"})}function c(e){return(0,a.Z)({url:"job/countByJobStatus",method:"get",params:e})}}}]);