chunk-604b0973.1cbfff37.js 23 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-604b0973"],{3624:function(e,t,a){},"668b":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("a4d3"),a("e01a"),a("b636"),a("d28b"),a("e260"),a("d3b7"),a("e6cf"),a("3ca3"),a("ddb0");function s(e){var t,a,s,n=2;for("undefined"!=typeof Symbol&&(a=Symbol.asyncIterator,s=Symbol.iterator);n--;){if(a&&null!=(t=e[a]))return t.call(e);if(s&&null!=(t=e[s]))return new i(t.call(e));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function i(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return i=function(e){this.s=e,this.n=e.next},i.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var a=this.s["return"];return void 0===a?Promise.resolve({value:e,done:!0}):t(a.apply(this.s,arguments))},throw:function(e){var a=this.s["return"];return void 0===a?Promise.reject(e):t(a.apply(this.s,arguments))}},new i(e)}},"7c01":function(e,t,a){"use strict";var s=a("d074"),i=a.n(s);i.a},"9cca":function(e,t,a){"use strict";var s,i,n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box"},[a("div",{staticClass:"canvaspanel"},[a("div",{staticClass:"buttongroup"},[a("div",{staticClass:"left",on:{click:e.reset}},[a("van-icon",{staticStyle:{"margin-right":"3px"},attrs:{name:"delete-o",size:"18"}}),a("span",{staticClass:"empty"},[e._v("清除")])],1),a("div",{staticClass:"right",on:{click:e.save}},[a("van-icon",{staticStyle:{"margin-right":"3px"},attrs:{name:"certificate",size:"18"}}),a("span",{staticClass:"empty"},[e._v("确认")])],1)]),a("div",{staticClass:"canvasborder"},[a("canvas",{attrs:{id:"canvas"},on:{touchstart:e.touchStart,touchmove:e.touchMove,touchend:e.touchEnd}})]),a("div",{staticStyle:{margin:"10px auto",width:"100px"}},[a("van-icon",{attrs:{name:"arrow-up",size:"20"},on:{click:function(t){e.$parent.isSign=!1}}})],1)])])},r=[],c=(a("d3b7"),a("e7e5"),a("d399")),o=function(e){return document.querySelector(e)},l={width:0,height:0,lineWidth:5,strokeStyle:"#000000",lineCap:"round",lineJoin:"round"},u={offsetX:0,offsetY:0},m={name:"Signature",components:{},data:function(){return{}},mounted:function(){this.drawingBoardInit()},methods:{handleReset:function(){},confirm:function(){var e=this;this.$refs.esign.generate().then((function(t){var a=e.rotateBase64(t);e.$emit("getSign",a),console.log(t)})).catch((function(e){c["a"].fail("请签名")}))},drawingBoardInit:function(){console.log(o(".canvasborder"),"$(canvasborder)");var e=o(".canvasborder").getBoundingClientRect(),t=e.width,a=e.height,n=e.left,r=e.top;l.width=t,l.height=a,u.offsetX=n,u.offsetY=r,s=o("#canvas"),s.width=l.width,s.height=l.height,i=s.getContext("2d"),i.fillStyle="transparent",i.fillRect(0,0,l.width,l.height)},touchStart:function(e){e.preventDefault();var t=e.changedTouches[0],a=t.clientX,s=t.clientY;i.beginPath(),i.lineWidth=l.lineWidth,i.strokeStyle=l.strokeStyle,i.lineCap=l.lineCap,i.lineJoin=l.lineJoin,i.moveTo(a-u.offsetX,s-u.offsetY)},touchMove:function(e){var t=e.changedTouches[0],a=t.clientX,s=t.clientY;i.lineTo(a-u.offsetX,s-u.offsetY),i.stroke()},touchEnd:function(){i.closePath(),window.removeEventListener("mousemove",this.draw)},reset:function(){i.clearRect(0,0,l.width,l.height)},save:function(){var e=this;return new Promise((function(t,a){e.isCanvasBlank(s)||e.rotateBase64(s.toDataURL("image/png")).then((function(a){var s=a;e.$emit("getSign",s),t(s)}))}))},isCanvasBlank:function(e){var t=document.createElement("canvas");return t.width=l.width,t.height=l.height,e.toDataURL()===t.toDataURL()},rotateBase64:function(e){return new Promise((function(t){var a=new Image;a.src=e;var s=document.createElement("canvas"),i=s.getContext("2d"),n={sx:0,sy:0,ex:0,ey:0};a.onload=function(){var e=a.width,r=a.height,c=r;s.width=2*c,s.height=2*c,n.sx=c,n.sy=c-e,n.ex=c+r,n.ey=c+e,i.translate(c,c),i.rotate(Math.PI/2*3),i.drawImage(a,0,0);for(var o=i.getImageData(n.sx,n.sy,n.ex,n.ey),l=0;l<o.data.length;l+=4)0===o.data[l+3]&&(o.data[l]=255,o.data[l+1]=255,o.data[l+2]=255,o.data[l+3]=255);s.width=r,s.height=e,i.putImageData(o,0,0),t(s.toDataURL("image/png"))}}))}}},d=m,v=(a("cdb8"),a("2877")),f=Object(v["a"])(d,n,r,!1,null,"286a4424",null);t["a"]=f.exports},b636:function(e,t,a){var s=a("e065");s("asyncIterator")},cdb8:function(e,t,a){"use strict";var s=a("3624"),i=a.n(s);i.a},d074:function(e,t,a){},e253:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("Header",{attrs:{title:"隐患详情"}}),a("van-tabs",{attrs:{color:"white",background:"#1c4990","title-active-color":"white","title-inactive-color":"#ccc",swipeable:"",animated:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("van-tab",{attrs:{title:"隐患信息",name:"a"}},[a("div",{staticClass:"tabMain"},[a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("隐患图片")]),a("p",{staticStyle:{color:"#1c4990"},on:{click:function(t){e.imageShow=!0}}},[a("van-icon",{attrs:{name:"photo",color:"#1c4990"}}),e._v("共 "+e._s(e.imageList.length)+" 张 ")],1)]),a("div",{staticClass:"right"},[a("span",[e._v("隐患编号")]),a("p",[e._v(e._s(e.itemForm.dangerNo))])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("发起人")]),a("p",[e._v(e._s(e.itemForm.createUserName))])]),a("div",{staticClass:"right"},[a("span",[e._v("发现时间")]),a("p",[e._v(e._s(e.itemForm.registTime))])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("隐患名称")]),a("p",[e._v(e._s(e.itemForm.dangerName))])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("所在区域")]),a("p",[e._v(e._s(e.itemForm.areaName))])]),a("div",{staticClass:"right"},[a("span",[e._v("隐患类型")]),a("p",[e._v(" "+e._s(e.$findItemById(e.dangerTypeList,e.itemForm.hazardDangerType))+" ")])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("隐患来源")]),a("p",[e._v(e._s(e.$findItemById(e.dangerSrcList,e.itemForm.dangerSrc)))])]),a("div",{staticClass:"right"},[a("span",[e._v("隐患等级")]),a("p",[e._v(e._s(e.itemForm.dangerLevel?"重大隐患":"一般隐患"))])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"center"},[a("span",[e._v("隐患描述")]),a("p",[e._v(e._s(e.itemForm.dangerDesc||"无"))])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("治理类型")]),a("p",[e._v(e._s(e.itemForm.dangerManageType?"限期整改":"即查即改"))])]),a("div",{staticClass:"right"},[a("span",[e._v("任务名称")]),a("p",[e._v(e._s(e.itemForm.controlMeasures||"无"))])])]),10===e.itemForm.dangerStatus&&e.itemForm.areaManageUserList.some((function(t){return t.userId===e.user.userId}))?a("div",{staticClass:"btns"},[a("van-button",{attrs:{type:"warning"},on:{click:e.turnDown}},[e._v("驳回")]),a("van-button",{attrs:{type:"primary"},on:{click:e.pass}},[e._v("通过")])],1):e._e(),20===e.itemForm.dangerStatus&&e.itemForm.manageUserId===e.user.userId?a("div",{staticClass:"btns"},[a("van-button",{attrs:{type:"primary"},on:{click:e.claim}},[e._v("领取")])],1):e._e(),60===e.itemForm.dangerStatus?a("div",{staticClass:"remark"},[a("p",[e._v("状态:已驳回")]),a("p",[e._v("驳回人:"+e._s(e.itemForm.rejectUserName))]),a("p",[e._v("驳回原因:"+e._s(e.itemForm.remarkInfo||"无"))])]):e._e()])]),a("van-tab",{attrs:{title:"整改信息",name:"b"}},[a("div",{staticClass:"tabMain"},[a("div",{staticClass:"textBox"},[a("p",{staticClass:"tabTitle"},[e._v("整改基本信息")]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("整改部门")]),a("p",[e._v(e._s(e.$findItemById(e.getDeptTree,e.itemForm.deptId)))])]),a("div",{staticClass:"right"},[a("span",[e._v("整改负责人")]),a("p",[e._v(" "+e._s(e.itemForm.manageUserName)+" ")])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"center"},[a("span",[e._v("整改期限")]),a("p",[e._v(e._s(e.itemForm.dangerManageDeaddline))])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"center"},[a("span",[e._v("整改建议")]),a("p",[e._v(e._s(e.itemForm.suggest||"无"))])])])]),40===e.itemForm.dangerStatus||50===e.itemForm.dangerStatus?a("div",{staticClass:"textBox"},[a("p",{staticClass:"tabTitle"},[e._v("整改措施")]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("添加时间")]),a("p",[e._v(e._s(e.itemForm.dangerManageDeaddline))])]),a("div",{staticClass:"right"},[a("span",[e._v("整改人")]),a("p",[e._v(e._s(e.itemForm.manageUserName))])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("整改措施")]),a("p",[e._v(e._s(e.itemForm.controlMeasures))])]),a("div",{staticClass:"right"},[a("span",[e._v("整改资金")]),a("p",[e._v(e._s(e.itemForm.cost))])])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("整改图片")]),a("p",{staticStyle:{color:"#1c4990"},on:{click:function(t){e.rectifyShow=!0}}},[a("van-icon",{attrs:{name:"photo",color:"#1c4990"}}),e._v(" 共"+e._s(e.rectifyImage.length)+"张 ")],1)])])]):e._e(),30===e.itemForm.dangerStatus&&e.itemForm.manageUserId===e.user.userId?a("div",{staticClass:"textBox"},[e.itemForm.checkSignature?a("div",{staticClass:"check"},[a("p",{staticStyle:{"font-size":"18px","margin-bottom":"30px"}},[e._v("验收已被驳回,请重新提交整改措施!")]),a("div",[a("p",[e._v("验收人签字:")]),a("img",{directives:[{name:"show",rawName:"v-show",value:e.itemForm.checkSignature,expression:"itemForm.checkSignature"}],attrs:{src:e.itemForm.checkSignature,alt:""}})]),a("p",[e._v("验收时间:"+e._s(e.itemForm.checkAcceptTime))]),a("p",[e._v("驳回原因:"+e._s(e.itemForm.checkAcceptComment))])]):e._e(),a("p",{staticClass:"tabTitle"},[e._v("整改措施")]),a("div",{staticClass:"module"},[a("div",{class:e.className},[a("span",{staticClass:"spanTitle1"},[e._v("添加整改时间")]),a("van-cell",{attrs:{value:e.internalValue},on:{click:e.focus}}),e.verify?a("b",{staticClass:"verify"},[e._v("*")]):e._e()],1),e.reminder?a("p",{staticClass:"reminder"},[e._v("当前项为必填项")]):e._e()]),a("Input",{attrs:{title:"整改措施",verify:!0},model:{value:e.rectify.measures,callback:function(t){e.$set(e.rectify,"measures",t)},expression:"rectify.measures"}}),a("Input",{attrs:{title:"整改资金",verify:!1},model:{value:e.cost,callback:function(t){e.cost=t},expression:"cost"}}),a("Uploader",{attrs:{title:"整改照片",verify:!0},model:{value:e.rectify.fileList,callback:function(t){e.$set(e.rectify,"fileList",t)},expression:"rectify.fileList"}}),a("div",{staticStyle:{"text-align":"center","margin-top":"25px"}},[a("van-button",{attrs:{type:"primary"},on:{click:e.add}},[e._v("提交")])],1)],1):e._e(),50===e.itemForm.dangerStatus?a("div",{staticClass:"textBox"},[a("p",{staticClass:"tabTitle"},[e._v("验收信息")]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("验收人签字")]),a("img",{attrs:{src:e.itemForm.checkSignature,alt:""}})])]),a("div",{staticClass:"textMain"},[a("div",{staticClass:"left"},[a("span",[e._v("验收时间")]),a("p",[e._v(e._s(e.itemForm.checkAcceptTime))])]),a("div",{staticClass:"right"},[a("span",[e._v("验收情况描述")]),a("p",[e._v(e._s(e.itemForm.checkAcceptComment))])])])]):e._e(),40===e.itemForm.dangerStatus&&e.itemForm.areaManageUserList.some((function(t){return t.userId===e.user.userId}))?a("div",{staticClass:"textBox"},[a("p",{staticClass:"tabTitle"},[e._v("验收信息")]),a("p",{staticClass:"textSign"},[e._v("验收人签字")]),a("div",{staticClass:"sign"},[a("div",{staticClass:"signImg"},[a("img",{directives:[{name:"show",rawName:"v-show",value:e.signImg,expression:"signImg"}],attrs:{src:e.signImg,alt:""}})]),a("div",{staticClass:"signBtn"},[a("p",{on:{click:e.delImg}},[a("van-icon",{attrs:{name:"delete-o"}}),a("span",{staticClass:"empty"},[e._v("清除")])],1),a("p",{on:{click:e.toSign}},[a("van-icon",{attrs:{name:"edit"}}),a("span",{staticClass:"empty"},[e._v("去签字")])],1)])]),a("div",{staticClass:"module"},[a("div",{class:e.className},[a("span",{staticClass:"spanTitle1"},[e._v("添加验收时间")]),a("van-cell",{attrs:{value:e.internalValue},on:{click:e.focus}}),e.verify?a("b",{staticClass:"verify"},[e._v("*")]):e._e()],1),e.reminder?a("p",{staticClass:"reminder"},[e._v("当前项为必填项")]):e._e()]),a("Input",{attrs:{title:"验收情况描述",verify:!1},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}}),a("div",{staticClass:"btns"},[a("van-button",{attrs:{type:"warning"},on:{click:e.checkDown}},[e._v("驳回")]),a("van-button",{attrs:{type:"primary"},on:{click:e.checkAdd}},[e._v("通过")])],1)],1):e._e()])]),a("van-tab",{attrs:{title:"流程信息",name:"c"}},[a("div",{staticClass:"tabMain"},e._l(e.dangerOperateRecordList,(function(t,s){return a("div",{key:s,staticClass:"flowText"},[a("div",{class:[t.operateNickName?"borderText":"borderText1"]},[a("p",[e._v(e._s(t.operateNickName+t.statusDesc))]),a("p",[e._v("完成时间:"+e._s(t.operateTime))])]),a("p",{directives:[{name:"show",rawName:"v-show",value:s!==e.dangerOperateRecordList.length-1,expression:"index !== dangerOperateRecordList.length - 1"}],staticClass:"flowText"},[a("b",[e._v("↑")])])])})),0)])],1),a("van-image-preview",{attrs:{images:e.imageList,closeable:!0,loop:!1,closeOnPopstate:!0},model:{value:e.imageShow,callback:function(t){e.imageShow=t},expression:"imageShow"}}),a("van-image-preview",{attrs:{images:e.rectifyImage,closeable:!0,loop:!1,closeOnPopstate:!0},model:{value:e.rectifyShow,callback:function(t){e.rectifyShow=t},expression:"rectifyShow"}}),a("van-calendar",{attrs:{color:"#1c4990","default-date":new Date,"min-date":new Date(2010,0,1),"max-date":new Date(2050,0,1)},on:{confirm:e.onConfirm,close:e.blur},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[a("template",{slot:"title"},[a("div",{staticClass:"calendar-title",on:{click:function(t){e.timerPicker=!0}}},[e._v(" "+e._s(e.selectTimeToSeconds)+" ")])])],2),a("van-overlay",{staticClass:"time-picker",attrs:{show:e.timerPicker,"close-on-click-overlay":!1}},[a("van-picker",{attrs:{"show-toolbar":"",title:"选择时间",columns:e.timeColumns},on:{cancel:function(t){e.timerPicker=!1},confirm:e.confirmTime}})],1),a("van-popup",{attrs:{round:"",position:"bottom"},model:{value:e.show1,callback:function(t){e.show1=t},expression:"show1"}},[a("van-cascader",{attrs:{title:"审核人",options:e.getDeptUserTree,"active-color":"#1c4990"},on:{close:e.blur1,finish:e.onFinish1},model:{value:e.cascaderValue,callback:function(t){e.cascaderValue=t},expression:"cascaderValue"}})],1),a("van-dialog",{attrs:{title:"驳回原因","show-cancel-button":"",confirmButtonColor:"#1c4990"},on:{cancel:function(t){e.turnValue=""},confirm:e.review},model:{value:e.showDia,callback:function(t){e.showDia=t},expression:"showDia"}},[a("van-field",e._b({attrs:{placeholder:"请输入驳回原因",rows:"1",autosize:"",type:"textarea"},model:{value:e.turnValue,callback:function(t){e.turnValue=t},expression:"turnValue"}},"van-field",e.$attrs,!1))],1),e.isSign?a("Signature",{on:{getSign:e.getSign}}):e._e()],1)},i=[],n=(a("99af"),a("4160"),a("d81d"),a("a9e3"),a("d3b7"),a("ac1f"),a("466d"),a("1276"),a("5cc6"),a("9a8c"),a("a975"),a("735e"),a("c1ac"),a("d139"),a("3a7b"),a("d5d6"),a("82f8"),a("e91f"),a("60bd"),a("5f96"),a("3280"),a("3fcc"),a("ca91"),a("25a1"),a("cd26"),a("3c5d"),a("2954"),a("649e"),a("219c"),a("170b"),a("b39a"),a("72f7"),a("159b"),a("96cf"),a("1da1")),r=a("5530"),c=a("668b"),o=a("3e48"),l=a("2f62"),u=a("9cca"),m=a("c1df"),d=a.n(m),v={name:"VueSkDangerDetails",computed:Object(r["a"])({},Object(l["b"])("baseUrl",["baseUrl"]),{},Object(l["b"])("login",["user"]),{},Object(l["b"])("dangerList",["dangerSrcList","dangerTypeList","getAreaTree","getDeptTree","getDeptUserTree"])),components:{Signature:u["a"]},data:function(){return{typeNum:1,isSign:!1,showDia:!1,turnValue:"",rectify:{measures:"",fileList:[]},remark:"",cascaderValue:"",internalValue:"",cost:"",signImg:"",timeColumns:[{values:this.createTimeList(23),defaultIndex:Number(d()().format("HH"))},{values:this.createTimeList(59),defaultIndex:Number(d()().format("mm"))},{values:this.createTimeList(59),defaultIndex:Number(d()().format("ss"))}],timerPicker:!1,selectTimeToSeconds:d()().format("HH:mm:ss"),verify:!0,verify1:!0,className:"el_input_focus",className1:"el_input_focus",internalValue1:"",show:!1,show1:!1,reminder:!1,reminder1:!1,addTime:"",activeName:"a",imageList:[],rectifyImage:[],rectifyShow:!1,imageShow:!1,itemForm:{},dangerOperateRecordList:[],dangerImage:""}},mounted:function(){var e=this;console.log(this.$route.query.id,"这是id"),Object(o["h"])(this.$route.query.id).then((function(t){var a=t.data;200===a.code&&(e.dangerOperateRecordList=[],console.log(a.data),e.itemForm=a.data,a.data.dangerImage&&(e.imageList=a.data.dangerImage.split(",,").map((function(t){return e.baseUrl+t}))),a.data.rectifyImage&&(e.rectifyImage=a.data.rectifyImage.split(",,").map((function(t){return e.baseUrl+t}))),e.itemForm.checkSignature&&(e.itemForm.checkSignature=e.baseUrl+e.itemForm.checkSignature),a.data.dangerOperateRecordList.forEach((function(t,a){e.dangerOperateRecordList.push({operateUserName:t.operateUserName||"",operateNickName:t.operateNickName||"",statusDesc:t.statusDesc,operateTime:t.operateTime?new Date(t.operateTime).toLocaleString():"待完成"})})))}))},methods:{delImg:function(){this.signImg=""},toSign:function(){this.isSign=!0},getSign:function(e){this.signImg=e,this.isSign=!1},claim:function(){var e=this;Object(o["n"])(this.itemForm.id).then((function(t){var a=t.data;200===a.code&&(e.$notify({type:"success",message:a.msg,duration:1e3}),e.$router.go(-1))}))},review:function(){var e=this;Object(o["d"])({dangerId:this.itemForm.id,remark:this.turnValue,type:1}).then((function(t){var a=t.data;200===a.code&&(e.$notify({type:"success",message:a.msg,duration:1e3}),e.$router.go(-1))}))},pass:function(){var e=this;Object(o["d"])({dangerId:this.itemForm.id,remark:"",type:2}).then((function(t){var a=t.data;200===a.code&&(e.$notify({type:"success",message:a.msg,duration:1e3}),e.$router.go(-1))}))},turnDown:function(){this.showDia=!0},add:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var a,s,i,n,l,u,m,d,v,f,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log("jinlaile",e.reminder),e.blur(),e.blur1(),!0!==e.$examine(e.rectify)){t.next=58;break}if(!e.reminder){t.next=6;break}return t.abrupt("return");case 6:e.dangerImage="",console.log("可以提交",e.rectify),a=!0,s=!1,t.prev=10,n=Object(c["a"])(e.rectify.fileList);case 12:return t.next=14,n.next();case 14:return l=t.sent,a=l.done,t.next=18,l.value;case 18:if(u=t.sent,a){t.next=38;break}return m=u,console.log(m.file),d=new FormData,d.append("file",m.file),t.next=26,Object(o["p"])(d);case 26:if(v=t.sent,f=v.data,console.log(f),200!==f.code){t.next=33;break}e.dangerImage?e.dangerImage+=",,"+f.fileName:e.dangerImage+=f.fileName,t.next=35;break;case 33:return e.$notify({type:"danger",message:f.msg,duration:1e3}),t.abrupt("return");case 35:a=!0,t.next=12;break;case 38:t.next=44;break;case 40:t.prev=40,t.t0=t["catch"](10),s=!0,i=t.t0;case 44:if(t.prev=44,t.prev=45,a||null==n.return){t.next=49;break}return t.next=49,n.return();case 49:if(t.prev=49,!s){t.next=52;break}throw i;case 52:return t.finish(49);case 53:return t.finish(44);case 54:console.log("走到这里了"),Object(o["o"])({rectificationTime:e.internalValue,controlMeasures:e.rectify.measures,cost:e.cost,dangerId:e.itemForm.id,rectifyImage:e.dangerImage}).then((function(t){var a=t.data;200===a.code&&(e.$notify({type:"success",message:a.msg,duration:1e3}),e.$router.go(0),e.activeName="b")})),t.next=62;break;case 58:h=e.$examine(e.rectify),console.log(h[1],"数据111111"),e.rectify=Object(r["a"])({},h[0]),setTimeout((function(){e.rectify=Object(r["a"])({},h[1])}),0);case 62:case"end":return t.stop()}}),t,null,[[10,40,44,54],[45,,49,53]])})))()},base64ToFile:function(e){var t=e.split(",");console.log(t),console.log(t[0].match(/:(.*?);/));var a=t[0].match(/:(.*?);/)[1],s=a.split("/")[1],i=atob(t[1]),n=i.length,r=new Uint8Array(n);while(n--)r[n]=i.charCodeAt(n);return new File([r],"签字.".concat(s),{type:s})},checkAdd:function(){this.typeNum=2,this.checks()},checks:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var a,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.blur(),e.signImg){t.next=4;break}return e.$notify({type:"danger",message:"请先签字!",duration:1e3}),t.abrupt("return");case 4:if(!e.reminder){t.next=6;break}return t.abrupt("return");case 6:return a=new FormData,console.log(e.base64ToFile(e.signImg)),a.append("file",e.base64ToFile(e.signImg)),t.next=11,Object(o["p"])(a);case 11:s=t.sent,i=s.data,console.log(i),200===i.code&&Object(o["b"])({dangerId:e.itemForm.id,remark:e.remark,checkAcceptTime:e.internalValue,type:e.typeNum,sign:i.fileName}).then((function(t){var a=t.data;200===a.code&&(e.$notify({type:"success",message:a.msg,duration:1e3}),e.$router.go(-1))}));case 15:case"end":return t.stop()}}),t)})))()},checkDown:function(){this.typeNum=1,this.checks()},createTimeList:function(e){for(var t=[],a=0;a<=e;a+=1)a<10?t.push("0".concat(a)):t.push(a);return t},confirmTime:function(e){this.selectTimeToSeconds="".concat(e[0],":").concat(e[1],":").concat(e[2]),this.timerPicker=!1},onConfirm:function(e){this.show=!1,this.internalValue="".concat(d()(e).format("YYYY-MM-DD")," ").concat(this.selectTimeToSeconds),this.verify?this.internalValue?(this.className="el_input_focus1",this.reminder=!1):(this.reminder=!0,this.className="el_input_focusTrue"):this.internalValue?this.className="el_input_focus1":this.className="el_input_focus"},focus:function(){this.show=!0,this.internalValue?this.className="el_input_focus1":this.className="el_input_blur"},blur:function(){this.show=!1,this.verify?this.internalValue?(this.className="el_input_focus1",this.reminder=!1):(this.reminder=!0,this.className="el_input_focusTrue"):this.internalValue?this.className="el_input_focus1":this.className="el_input_focus"},onFinish1:function(e){var t=e.selectedOptions;this.show1=!1,this.internalValue1=t[t.length-1].text,console.log(this.cascaderValue),this.verify1?this.internalValue1?(this.className1="el_input_focus1",this.reminder1=!1):(this.reminder1=!0,this.className1="el_input_focusTrue"):this.internalValue1?this.className1="el_input_focus1":(console.log("走着了"),this.className1="el_input_focus")},focus1:function(){this.show1=!0,this.internalValue1||(this.className1="el_input_blur")},blur1:function(){this.show1=!1,this.verify1?this.internalValue1?(this.className1="el_input_focus1",this.reminder1=!1):(this.reminder1=!0,this.className1="el_input_focusTrue"):this.internalValue1?this.className1="el_input_focus1":this.className1="el_input_focus"}}},f=v,h=(a("7c01"),a("2877")),p=Object(h["a"])(f,s,i,!1,null,"34cde2fe",null);t["default"]=p.exports}}]);