(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-09fa","chunk-1c22"],{"+coM":function(t,e,r){"use strict";var n=r("Le5a");r.n(n).a},"6Mdz":function(t,e,r){"use strict";r.d(e,"h",function(){return o}),r.d(e,"b",function(){return a}),r.d(e,"m",function(){return s}),r.d(e,"c",function(){return c}),r.d(e,"e",function(){return u}),r.d(e,"g",function(){return l}),r.d(e,"j",function(){return h}),r.d(e,"l",function(){return d}),r.d(e,"a",function(){return f}),r.d(e,"d",function(){return p}),r.d(e,"f",function(){return m}),r.d(e,"k",function(){return g}),r.d(e,"i",function(){return v});var n=r("X4fA"),i=r("t3Un");function o(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/select/getCheckWorkPage",method:"post",data:t})}function a(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/insert/saveCheckWork",method:"post",data:t})}function s(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/update/updateCheckWork",method:"post",data:t})}function c(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/close?workId="+t,method:"post"})}function u(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/delete/deleteCheckWork",method:"post",data:t})}function l(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkTask/select/getTaskPage",method:"post",data:t})}function h(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkTask/update/updateTask",method:"post",data:t})}function d(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkTask/update/taskToUser",method:"post",data:t})}function f(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/content/add?workId="+t.workId+"&measureId="+t.measureId,method:"post"})}function p(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/content/del?workId="+t.workId+"&measureId="+t.measureId,method:"post"})}function m(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/get/id?workId="+t,method:"post"})}function g(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/task/exec/unitOne",method:"post",data:t})}function v(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/task/exec/submit",method:"post",data:t})}},Le5a:function(t,e,r){},cLjf:function(t,e,r){t.exports=r("xOJF")},"d8E+":function(t,e,r){"use strict";r.r(e);var n=r("cLjf"),i=r.n(n),o=r("hDQ3"),a=r.n(o),s=r("omC7"),c=r.n(s),u=r("jJIE"),l=r.n(u),h=r("6Mdz"),d={name:"detail",data:function(){var t=this;return{fileRoad:"http://222.92.213.22:8006/zhongtai/task/web/upload",uploadForm:{},disabled:!1,header:{Authorization:""},dialogImageUrl:!1,dialogVisible:!1,titleDetail:"",inspectionRecordForm:{},inspectionRecordFormVisible:!1,inspectionRecordDetailForm:{execUid:null,fixTime:null,fixUid:null,imgInfoList:[],info:null,noticeUid:null,result:null,taskId:null,unitId:null,fixDepId:null,noticeDepId:null},inspectionRecordDetailFormRules:{img:[{required:!0,validator:function(e,r,n){t.inspectionRecordDetailForm.img?n():n(new Error("请上传图片"))},trigger:"blur"}],result:[{required:!0,message:"巡检结果不能为空",trigger:"blur"}],noticeUid:[{required:!0,message:"异常通知人员不能为空",trigger:"change"}],fixTime:[{required:!0,message:"整改时间不能为空",trigger:"change"}],fixUid:[{required:!0,message:"描整改人员不能为空",trigger:"change"}],info:[{required:!0,message:"巡检结果备注不能为空",trigger:"blur"}],fixDepId:[{required:!0,message:"异常整改部门不能为空",trigger:"blur"}],noticeDepId:[{required:!0,message:"异常通知部门不能为空",trigger:"blur"}]},inspectionRecordDetailFormVisible:!1,ifShow:!0,ifNormal:!1,ifLook:!1,ifConfirm:!1,userList:[],noticeUserList:[],fixUserList:[],departmentList:[],fileList:[],typeList:[{id:1,name:"日常检查"},{id:2,name:"周期检查"}],statusList:[{id:1,name:"待巡检"},{id:2,name:"巡检中"},{id:3,name:"已完成"},{id:4,name:"超时未巡检"},{id:5,name:"已取消"}],isShowSubmitDialog:!1,isShowRecordDialog:!1,recordForm:{taskCode:null,checkContent:null,checkResult:null,checkTaskId:null,classify1:null,classify2:null,classify3:null,controlMeasureCode:null,controlMeasureId:null,controlType:null,measureDesc:null},submitForm:{id:null,execUserId:null,checkResults:[]},checkResults:{id:null,controlMeasureId:null,checkResult:null},resultList:[{id:1,name:"正常"},{id:2,name:"不正常"}]}},components:{},methods:{showInspectionRecordForm:function(t,e){if("查看"===t){this.isShowRecordDialog=!0;var r=JSON.parse(c()(e));this.recordForm.taskCode=r.taskCode,this.recordForm.checkContent=r.checkContent}else this.title="提交",this.isShowSubmitDialog=!0,this.submitForm.id=JSON.parse(c()(e)).checkTaskId,this.checkResults.id=JSON.parse(c()(e)).id,this.checkResults.controlMeasureId=JSON.parse(c()(e)).controlMeasureId},submitRecord:function(){var t=this;return a()(i.a.mark(function e(){var r;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null===t.checkResults.checkResult){e.next=8;break}return t.submitForm.checkResults.push(t.checkResults),e.next=4,Object(h.j)(t.submitForm);case 4:"200"===(r=e.sent).data.code?(t.$message({type:"success",message:"排查记录提交成功",duration:2e3}),t.isShowSubmitDialog=!1,t.$emit("refreshRecord")):t.$message({type:"warning",message:r.data.msg}),e.next=9;break;case 8:t.$message({type:"warning",message:"请完善基本信息"});case 9:case"end":return e.stop()}},e,t)}))()},submitInspectionRecordDetail:function(){var t=this;!1===this.ifNormal&&(this.inspectionRecordDetailForm.noticeUid=null,this.inspectionRecordDetailForm.fixTime=null,this.inspectionRecordDetailForm.fixUid=null,this.inspectionRecordDetailForm.info=null,this.inspectionRecordDetailForm.imgInfoList=[],this.inspectionRecordDetailForm.noticeDepId=null,this.inspectionRecordDetailForm.fixDepId=null),this.$refs.inspectionRecordDetailForm.validate(function(e){if(e){if(0===t.inspectionRecordDetailForm.result)return void t.$message({type:"warning",message:"请选择正确的巡检结果"});t.inspectionRecordDetailForm.imgInfoList=t.inspectionRecordDetailForm.imgInfoList.map(function(t){return{imagePath:t.imagePath}}),Object(h.k)(t.inspectionRecordDetailForm).then(function(e){"200"===e.data.code?(t.inspectionRecordDetailFormVisible=!1,t.$emit("getList"),t.$message({type:"success",message:"上报成功",duration:2e3,title:"成功"})):t.$message({message:e.data.message,type:"warning"})})}else t.$message({message:"请完善基本信息",type:"warning"})})},changeDepartment:function(t){var e=this;if("notice"===t)if(""===this.inspectionRecordDetailForm.noticeDepId)this.noticeUserList=[];else{var r=this.departmentList.find(function(t){return t.id===e.inspectionRecordDetailForm.noticeDepId}).department;this.noticeUserList=this.userList.filter(function(t){return t.department===r})}else if(""===this.inspectionRecordDetailForm.fixDepId)this.fixUserList=[];else{var n=this.departmentList.find(function(t){return t.id===e.inspectionRecordDetailForm.fixDepId}).department;this.fixUserList=this.userList.filter(function(t){return t.department===n})}},handleChangeFile:function(){this.header.Authorization=l.a.get("token")},onFileSuccess:function(t){"200"===t.code?(this.inspectionRecordDetailForm.imgInfoList.push({imagePath:t.result.path,name:t.result.name}),this.fileList.push({url:"http://222.92.213.22:8006/zhongtai/upload/"+t.result.path,name:t.result.name}),this.$notify({type:"success",duration:2e3,message:"上传成功",title:"成功"})):this.$message({message:res.data.message,type:"warning"})},handleFile:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleRemove:function(t){var e=this;return this.$confirm("确定移除 "+t.name+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.inspectionRecordDetailForm.imgInfoList.splice(e.inspectionRecordDetailForm.imgInfoList.findIndex(function(e){return e.name===t.name}),1),e.fileList.splice(e.inspectionRecordDetailForm.imgInfoList.findIndex(function(e){return e.name===t.name}),1)})}}},f=(r("+coM"),r("ZrdR")),p=Object(f.a)(d,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("el-dialog",{attrs:{title:"查看",visible:t.isShowRecordDialog,"append-to-body":"","close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(e){t.isShowRecordDialog=e}}},[r("div",{staticClass:"record-form"},[r("el-form",{ref:"recordFormRef",attrs:{model:t.recordForm,size:"default","label-width":"100px"}},[r("el-row",{attrs:{gutter:35}},[r("el-col",{staticClass:"mb20",attrs:{xs:24,sm:24,md:24,lg:24,xl:24}},[r("el-form-item",{attrs:{label:"检查内容",prop:"checkContent"}},[r("el-input",{staticClass:"analyseUnit_input",attrs:{type:"textarea",rows:3,placeholder:"检查内容"},model:{value:t.recordForm.checkContent,callback:function(e){t.$set(t.recordForm,"checkContent","string"==typeof e?e.trim():e)},expression:"recordForm.checkContent"}})],1)],1)],1)],1)],1)]),t._v(" "),r("el-dialog",{attrs:{title:"提交",visible:t.isShowSubmitDialog,width:"600px"},on:{"update:visible":function(e){t.isShowSubmitDialog=e}}},[r("el-form",{ref:"rectifyFormRef",attrs:{model:t.submitForm,size:"default","label-width":"120px"}},[r("el-row",{attrs:{gutter:35}},[r("el-col",{staticClass:"mb20",attrs:{xs:24,sm:24,md:24,lg:24,xl:24}},[r("el-form-item",{attrs:{label:"处理结果",prop:"checkResult"}},[r("el-select",{staticClass:"analyseUnit_input",attrs:{placeholder:"请输入处理结果"},model:{value:t.checkResults.checkResult,callback:function(e){t.$set(t.checkResults,"checkResult",e)},expression:"checkResults.checkResult"}},t._l(t.resultList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1)],1)],1)],1),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{align:"right"}},[r("el-button",{attrs:{size:"default"},on:{click:function(e){t.isShowSubmitDialog=!t.isShowSubmitDialog}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary",size:"default"},on:{click:t.submitRecord}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"48c15ca9",null);p.options.__file="detail.vue";e.default=p.exports},hDQ3:function(t,e,r){"use strict";e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(r("Asgo"));e.default=function(t){return function(){var e=t.apply(this,arguments);return new n.default(function(t,r){return function i(o,a){try{var s=e[o](a),c=s.value}catch(t){return void r(t)}if(!s.done)return n.default.resolve(c).then(function(t){i("next",t)},function(t){i("throw",t)});t(c)}("next")})}}},k4Ii:function(t,e){!function(e){"use strict";var r,n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"==typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{(l=e.regeneratorRuntime=u?t.exports:{}).wrap=b;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",m={},g={};g[a]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(_([])));y&&y!==n&&i.call(y,a)&&(g=y);var k=L.prototype=x.prototype=Object.create(g);R.prototype=k.constructor=L,L.constructor=R,L[c]=R.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===R||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(k),t},l.awrap=function(t){return{__await:t}},F(D.prototype),D.prototype[s]=function(){return this},l.AsyncIterator=D,l.async=function(t,e,r,n){var i=new D(b(t,e,r,n));return l.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},F(k),k[c]="Generator",k[a]=function(){return this},k.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},l.values=_,z.prototype={constructor:z,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return s.type="throw",s.arg=t,e.next=n,i&&(e.method="next",e.arg=r),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),m}}}function b(t,e,r,n){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),a=new z(n||[]);return o._invoke=function(t,e,r){var n=h;return function(i,o){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var c=w(t,e,r);if("normal"===c.type){if(n=r.done?p:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}(t,r,a),o}function w(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function x(){}function R(){}function L(){}function F(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function D(t){var e;this._invoke=function(r,n){function o(){return new Promise(function(e,o){!function e(r,n,o,a){var s=w(t[r],t,n);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(u).then(function(t){c.value=t,o(c)},a)}a(s.arg)}(r,n,e,o)})}return e=e?e.then(o,o):o()}}function O(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,O(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=w(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function _(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},xOJF:function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("k4Ii"),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}}}]);
|