(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-a2cd"],{XVnn:function(t,e,n){},cLjf:function(t,e,n){t.exports=n("xOJF")},hDQ3:function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n("Asgo"));e.default=function(t){return function(){var e=t.apply(this,arguments);return new r.default(function(t,n){return function o(i,a){try{var u=e[i](a),c=u.value}catch(t){return void n(t)}if(!u.done)return r.default.resolve(c).then(function(t){o("next",t)},function(t){o("throw",t)});t(c)}("next")})}}},k4Ii:function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"==typeof t,h=e.regeneratorRuntime;if(h)s&&(t.exports=h);else{(h=e.regeneratorRuntime=s?t.exports:{}).wrap=w;var f="suspendedStart",l="suspendedYield",d="executing",p="completed",m={},g={};g[a]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(R([])));y&&y!==r&&o.call(y,a)&&(g=y);var b=k.prototype=L.prototype=Object.create(g);j.prototype=b.constructor=k,k.constructor=j,k[c]=j.displayName="GeneratorFunction",h.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},h.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},h.awrap=function(t){return{__await:t}},x(z.prototype),z.prototype[u]=function(){return this},h.AsyncIterator=z,h.async=function(t,e,n,r){var o=new z(w(t,e,n,r));return h.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},x(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},h.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},h.values=R,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(F),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},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 r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),F(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;F(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function w(t,e,n,r){var o=e&&e.prototype instanceof L?e:L,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=A(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=O(t,e,n);if("normal"===c.type){if(r=n.done?p:l,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function O(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function L(){}function j(){}function k(){}function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function z(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,a){var u=O(t[n],t,r);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},a)}a(u.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function A(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,A(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 o=O(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function _(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 F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function R(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 r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},n1aR:function(t,e,n){"use strict";var r=n("XVnn");n.n(r).a},sZnh:function(t,e,n){"use strict";n.d(e,"h",function(){return i}),n.d(e,"j",function(){return a}),n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c}),n.d(e,"p",function(){return s}),n.d(e,"q",function(){return h}),n.d(e,"g",function(){return f}),n.d(e,"f",function(){return l}),n.d(e,"e",function(){return d}),n.d(e,"o",function(){return p}),n.d(e,"n",function(){return m}),n.d(e,"k",function(){return g}),n.d(e,"i",function(){return v}),n.d(e,"m",function(){return y}),n.d(e,"c",function(){return b}),n.d(e,"d",function(){return w}),n.d(e,"l",function(){return O});var r=n("X4fA"),o=n("t3Un");function i(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/info/review",method:"get",params:t||{}})}function a(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/info/viewable",method:"get",params:t||{}})}function u(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/create",method:"post",data:t})}function c(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/create/second",method:"post",data:t})}function s(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/update",method:"post",data:t})}function h(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/update/second",method:"post",data:t})}function f(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/getSelfCheck",method:"get",params:t||{}})}function l(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/getFiles",method:"post",params:t||{}})}function d(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/deleteFile",method:"post",params:t||{}})}function p(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/submit",method:"post",params:t||{}})}function m(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/construction/review",method:"post",data:t})}function g(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/part/review",method:"post",data:t})}function v(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/involve/review",method:"post",data:t})}function y(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/security/review",method:"post",data:t})}function b(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/changeSupervisor",method:"post",data:t})}function w(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/changeWorker",method:"post",data:t})}function O(t){return Object(o.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/workCert-regenerate?code="+t,method:"get"})}},wprD:function(t,e,n){"use strict";n.r(e);var r=n("6ZY3"),o=n.n(r),i=n("cLjf"),a=n.n(i),u=n("hDQ3"),c=n.n(u),s=n("jJIE"),h=n.n(s),f=n("sZnh"),l={props:["basicInformation","title"],name:"index",data:function(){return{ifApply:"",ifCompany:"",ifApplyButton:"",ifCompanyButton:"",disabled:"",fileForm:{},header:{Authorization:""},fileRoad:"http://222.92.213.21:8006/zhongtai/task/upload",dialogVisible:!1,dialogImageUrl:"",riskAndDanger:[],safetyOrganizeAction:[],workSecurityAction:[],fileList:[],fileListOne:[],fileListTwo:[],fileListThree:[],uploadForm:{taskcode:"",type:""}}},mounted:function(){this.getFileList()},methods:{onPreview:function(t){var e=this;return c()(a.a.mark(function n(){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:window.open("http://222.92.213.21:8006/zhongtai/upload/"+t.fileurl,"_blank");case 1:case"end":return e.stop()}},n,e)}))()},getFileList:function(){var t=this;return c()(a.a.mark(function e(){var n,r,i,u,c;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n={}).taskCode=t.basicInformation.code,e.next=4,Object(f.f)(n);case 4:if("200"===(r=e.sent).data.code){for(i in t.fileList=[],t.fileListOne=[],t.fileListTwo=[],t.fileListThree=[],t.fileList=r.data.result,t.fileList.map(function(t){return o()(t,{name:t.originalname})}),t.fileList)"事故救援预案"===t.fileList[i].type&&t.fileListOne.push(t.fileList[i]);for(u in t.fileList)"作业人员身体健康"===t.fileList[u].type&&t.fileListTwo.push(t.fileList[u]);for(c in t.fileList)"作业资质证书"===t.fileList[c].type&&t.fileListThree.push(t.fileList[c])}case 6:case"end":return e.stop()}},e,t)}))()},submit:function(){this.uploadForm.type="事故救援预案",this.uploadForm.taskcode=this.basicInformation.code,this.header.Authorization=h.a.get("token"),this.$refs.upload.submit()},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleChangeOne:function(t,e){this.uploadForm.type="事故救援预案",this.uploadForm.taskcode=this.basicInformation.code,this.header.Authorization=h.a.get("token")},handleChangeTwo:function(t,e){this.uploadForm.type="作业人员身体健康",this.uploadForm.taskcode=this.basicInformation.code,this.header.Authorization=h.a.get("token")},handleChangeThree:function(t,e){this.uploadForm.type="作业资质证书",this.uploadForm.taskcode=this.basicInformation.code,this.header.Authorization=h.a.get("token")},onSuccess:function(t){"200"===t.code&&(console.log(this.fileListOne),this.$notify({type:"success",duration:2e3,message:"上传成功",title:"成功"}),this.getFileList())},onRemove:function(t,e){var n=this;return this.$confirm("确定移除 "+t.name+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={};e.id=t.id,Object(f.e)(e).then(function(t){"200"===t.data.code?(n.$notify({type:"success",duration:2e3,message:"删除成功",title:"成功"}),n.getFileList()):n.$message({type:"warning",message:t.data.message})})})},goNext:function(){"施工单位确认"===this.title?this.$emit("changeToConstructionConfirm"):"施工单位信息填写"===this.title||this.$emit("confirm")}}},d=(n("n1aR"),n("ZrdR")),p=Object(d.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{ref:"form",attrs:{model:t.fileForm,"label-width":"160px","label-position":"right"}},[n("el-form-item",{attrs:{label:"事故救援预案:"}},[n("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".pdf,.jpg,.png",action:t.fileRoad,headers:t.header,data:t.uploadForm,"on-change":t.handleChangeOne,"auto-upload":!0,"on-remove":t.onRemove,"on-success":t.onSuccess,"on-preview":t.onPreview,"file-list":t.fileListOne}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1)],1)],1),t._v(" "),n("div",{staticStyle:{"padding-top":"20px"},attrs:{align:"center"}},[n("el-button",{attrs:{type:"primary"},on:{click:t.goNext}},[t._v("下一步")])],1),t._v(" "),n("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},[],!1,null,"073c36ce",null);p.options.__file="index.vue";e.default=p.exports},xOJF:function(t,e,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("k4Ii"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}}}]);
|