Your Name
2022-09-26 bb455cebea17349a2f5ed0d4e86eac3905b24585
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-1b25","chunk-1c22"],{"2cGd":function(t,e,r){"use strict";r.r(e);var n=r("cLjf"),a=r.n(n),i=r("hDQ3"),o=r.n(i),c=r("omC7"),s=r.n(c),u=r("PcP2"),l=(r("X4fA"),r("jJIE")),h=r.n(l),f={name:"acceptDialog",data:function(){return{disabled:!1,fileRoad:"http://222.92.213.22:8006/zhongtai/task/web/upload",uploadForm:{},header:{Authorization:""},imgUrls:[],imgUrls2:[],fileList:[],imgPreviewUrls:[],imgPreviewUrls2:[],isView:!1,isReject:!1,submiting:!1,levels:[{key:"URGENT",value:"重大隐患"},{key:"COMMON",value:"一般隐患"}],dataForm:{id:"",note:"",level:"",rejectnote:""},dialogFormVisible:!1,dialogStatus:"",dataFormRules:{},checkTypeList:[],rectifyTypeList:[{id:1,name:"即查即改"},{id:2,name:"限期整改"}],departmentList:[],userList:[],isShowCheckDialog:!1,isShowCheckInfoDialog:!1,checkForm:{id:null,dangerManagerId:null,checkAcceptDesc:null},checkInfoForm:{rectifyDepId:null,liablePersonId:null,acceptImages:[]},checkFormRules:{checkAcceptDesc:[{required:!0,message:"请填写整改说明",trigger:"blur"}]}}},methods:{showDialog:function(t){this.isShowCheckDialog=!0;var e=JSON.parse(s()(t));this.checkForm.id=e.id,this.checkForm.dangerManagerId=e.dangerManagerId},submitCheck:function(){var t=this;this.$refs.checkFormRef.validate(function(){var e=o()(a.a.mark(function e(r){var n;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=8;break}return t.checkForm.acceptImages=t.fileList.map(function(t){return t.url.substring("http://222.92.213.22:8006/zhongtai/upload/".length)}),e.next=4,Object(u.a)(t.checkForm);case 4:"200"===(n=e.sent).data.code?(t.$message({type:"success",message:"验收成功",duration:2e3}),t.isShowCheckDialog=!1,t.$emit("refreshCheck")):t.$message({type:"warning",message:n.data.message}),e.next=9;break;case 8:t.$message({type:"warning",message:"请完善基本信息"});case 9:case"end":return e.stop()}},e,t)}));return function(t){return e.apply(this,arguments)}}())},rejectSubmit:function(){var t={};t.id=this.dataForm.id,t.rejectnote=this.dataForm.rectifynote,this.submit(t,u.g)},submit:function(t,e){var r=this;this.submiting=!0,e(t).then(function(t){"200"===t.data.code?(r.dialogFormVisible=!1,r.$message({message:"操作成功",type:"success"}),r.$emit("refresh")):r.$message({message:t.data.message,type:"success"}),r.fileList=[]}).catch(function(t){console.log(t),r.$message({message:"接口错误",type:"warning"})}).finally(function(){r.submiting=!1})},handleChangeFile:function(){this.header.Authorization=h.a.get("token")},onFileSuccess:function(t){"200"===t.code?(this.fileList.push({url:"http://222.92.213.22:8006/zhongtai/upload/"+t.result.path}),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},showImg:function(t){window.open(t,"_blank")},handleRemove:function(t,e){var r=this;return this.$confirm("确定移除 "+t.uid+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.fileList.splice(e,1)})}}},d=(r("fAw3"),r("ZrdR")),p=Object(d.a)(f,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{title:"验收",visible:t.isShowCheckDialog,width:"600px"},on:{"update:visible":function(e){t.isShowCheckDialog=e}}},[r("el-form",{ref:"checkFormRef",attrs:{model:t.checkForm,rules:t.checkFormRules,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:"checkAcceptDesc"}},[r("el-input",{staticClass:"input-add",attrs:{type:"textarea",rows:2,placeholder:"请输入验收意见",clearable:""},model:{value:t.checkForm.checkAcceptDesc,callback:function(e){t.$set(t.checkForm,"checkAcceptDesc","string"==typeof e?e.trim():e)},expression:"checkForm.checkAcceptDesc"}})],1)],1),t._v(" "),r("el-col",{staticClass:"mb20",attrs:{xs:24,sm:24,md:24,lg:24,xl:24}},[r("el-form-item",{attrs:{label:"隐患验收图",prop:"img"}},[r("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".pdf,.jpg,.png",action:t.fileRoad,headers:t.header,data:t.uploadForm,"list-type":"picture-card","file-list":t.fileList,"on-change":t.handleChangeFile,"on-success":t.onFileSuccess,multiple:!1,"auto-upload":!0},scopedSlots:t._u([{key:"file",fn:function(e){var n=e.file;return r("div",{},[r("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),t._v(" "),r("span",{staticClass:"el-upload-list__item-actions"},[r("span",{staticClass:"el-upload-list__item-preview",on:{click:function(e){t.handleFile(n)}}},[r("i",{staticClass:"el-icon-zoom-in"})]),t._v(" "),t.disabled?t._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(e){t.handleRemove(n,n.$index)}}},[r("i",{staticClass:"el-icon-delete"})])])])}}]),model:{value:t.dataForm.paths,callback:function(e){t.$set(t.dataForm,"paths",e)},expression:"dataForm.paths"}},[r("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],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.isShowCheckDialog=!t.isShowCheckDialog}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary",size:"default"},on:{click:t.submitCheck}},[t._v("确 定")])],1)],1)},[],!1,null,"7363caa6",null);p.options.__file="acceptDialog.vue";e.default=p.exports},"8QSr":function(t,e,r){},PcP2:function(t,e,r){"use strict";r.d(e,"h",function(){return i}),r.d(e,"k",function(){return o}),r.d(e,"c",function(){return c}),r.d(e,"e",function(){return s}),r.d(e,"g",function(){return u}),r.d(e,"i",function(){return l}),r.d(e,"b",function(){return h}),r.d(e,"l",function(){return f}),r.d(e,"a",function(){return d}),r.d(e,"d",function(){return p}),r.d(e,"f",function(){return g}),r.d(e,"j",function(){return m});var n=r("X4fA"),a=r("t3Un");function i(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/dangerManage/insert/saveDangerManage",method:"post",data:t})}function o(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/dangerManage/update/updateDangerManage",method:"post",data:t})}function c(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/dangerManage/delete/deleteDangerManage",method:"post",data:t})}function s(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/hiddenDanger/rectify",method:"post",data:t})}function u(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/hiddenDanger/reject",method:"post",data:t})}function l(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/dangerManage/select/getDangerManagePage",method:"post",data:t})}function h(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/dangerRectify/update/timeOutRectify",method:"post",data:t})}function f(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/dangerRectify/update/applyReport",method:"post",data:t})}function d(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/dangerRectify/update/reportRectify",method:"post",data:t})}function p(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/dangerRectify/select/getRectifyOverPage",method:"post",data:t})}function g(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/dangerRectify/select/getDangerRectifyPage",method:"post",data:t})}function m(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/riskEvent/statistics/page",method:"post",data:t})}},cLjf:function(t,e,r){t.exports=r("xOJF")},fAw3:function(t,e,r){"use strict";var n=r("8QSr");r.n(n).a},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 a(i,o){try{var c=e[i](o),s=c.value}catch(t){return void r(t)}if(!c.done)return n.default.resolve(s).then(function(t){a("next",t)},function(t){a("throw",t)});t(s)}("next")})}}},k4Ii:function(t,e){!function(e){"use strict";var r,n=Object.prototype,a=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",u="object"==typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{(l=e.regeneratorRuntime=u?t.exports:{}).wrap=w;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",g={},m={};m[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(C([])));y&&y!==n&&a.call(y,o)&&(m=y);var b=O.prototype=x.prototype=Object.create(m);j.prototype=b.constructor=O,O.constructor=j,O[s]=j.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},_(F.prototype),F.prototype[c]=function(){return this},l.AsyncIterator=F,l.async=function(t,e,r,n){var a=new F(w(t,e,r,n));return l.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},_(b),b[s]="Generator",b[o]=function(){return this},b.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=C,A.prototype={constructor:A,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(R),!t)for(var e in this)"t"===e.charAt(0)&&a.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,a){return c.type="throw",c.arg=t,e.next=n,a&&(e.method="next",e.arg=r),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.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&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},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),g},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),R(r),g}},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 a=n.arg;R(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}}}function w(t,e,r,n){var a=e&&e.prototype instanceof x?e:x,i=Object.create(a.prototype),o=new A(n||[]);return i._invoke=function(t,e,r){var n=h;return function(a,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===a)throw i;return D()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var c=L(o,r);if(c){if(c===g)continue;return c}}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=d;var s=k(t,e,r);if("normal"===s.type){if(n=r.done?p:f,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}(t,r,o),i}function k(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function x(){}function j(){}function O(){}function _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function F(t){var e;this._invoke=function(r,n){function i(){return new Promise(function(e,i){!function e(r,n,i,o){var c=k(t[r],t,n);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&a.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,i,o)},function(t){e("throw",t,i,o)}):Promise.resolve(u).then(function(t){s.value=t,i(s)},o)}o(c.arg)}(r,n,e,i)})}return e=e?e.then(i,i):i()}}function L(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,L(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var a=k(n,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function z(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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(z,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:D}}function D(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},xOJF:function(t,e,r){var n=function(){return this}()||Function("return this")(),a=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=a&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("k4Ii"),a)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}}}]);