Your Name
2022-04-08 1f2a259f8cbb7eb0b12d12895116c309eb8cd609
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-fef3"],{"5gkZ":function(t,e,n){"use strict";var r=n("qO4Z");n.n(r).a},"6gsm":function(t,e,n){"use strict";n.r(e);var r=n("6ZY3"),i=n.n(r),o=n("cLjf"),a=n.n(o),u=n("hDQ3"),c=n.n(u),s=n("jJIE"),h=n.n(s),f=n("sZnh"),l={props:["basicInformation"],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,o,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(o in t.fileList=[],t.fileListOne=[],t.fileListTwo=[],t.fileListThree=[],t.fileList=r.data.result,t.fileList.map(function(t){return i()(t,{name:t.originalname})}),t.fileList)"事故救援预案"===t.fileList[o].type&&t.fileListOne.push(t.fileList[o]);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&&(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})})})},handleRemove:function(t,e){var n=this;return this.$confirm("确定移除 "+t.name+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){switch(e){case"one":n.riskAndDanger.splice(n.riskAndDanger.findIndex(function(e){return e.name===t.name}),1);break;case"two":n.safetyOrganizeAction.splice(n.safetyOrganizeAction.findIndex(function(e){return e.name===t.name}),1);break;case"three":n.workSecurityAction.splice(n.workSecurityAction.findIndex(function(e){return e.name===t.name}),1);break;case"four":n.operationQualification.splice(n.operationQualification.findIndex(function(e){return e.name===t.name}),1);break;case"five":n.escortCompany.splice(n.escortCompany.findIndex(function(e){return e.name===t.name}),1);break;case"six":n.insurance.splice(n.insurance.findIndex(function(e){return e.name===t.name}),1);break;case"seven":n.safetyProduction.splice(n.safetyProduction.findIndex(function(e){return e.name===t.name}),1)}})}}},d=(n("5gkZ"),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-preview":t.onPreview,"file-list":t.fileListOne}})],1)],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,"39a02e7c",null);p.options.__file="index.vue";e.default=p.exports},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 i(o,a){try{var u=e[o](a),c=u.value}catch(t){return void n(t)}if(!u.done)return r.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 n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.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 y=Object.getPrototypeOf,v=y&&y(y(I([])));v&&v!==r&&i.call(v,a)&&(g=v);var b=j.prototype=k.prototype=Object.create(g);L.prototype=b.constructor=j,j.constructor=L,j[c]=L.displayName="GeneratorFunction",h.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===L||"GeneratorFunction"===(e.displayName||e.name))},h.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,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 i=new z(w(t,e,n,r));return h.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.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=I,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(_),!t)for(var e in this)"t"===e.charAt(0)&&i.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,i){return u.type="throw",u.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.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&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(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 i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function w(t,e,n,r){var i=e&&e.prototype instanceof k?e:k,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){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),o}function O(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function k(){}function L(){}function j(){}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 o(){return new Promise(function(e,o){!function e(n,r,o,a){var u=O(t[n],t,r);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&i.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(s).then(function(t){c.value=t,o(c)},a)}a(u.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}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 i=O(r,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=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function F(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function I(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,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},qO4Z:function(t,e,n){},sZnh:function(t,e,n){"use strict";n.d(e,"h",function(){return o}),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 y}),n.d(e,"m",function(){return v}),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"),i=n("t3Un");function o(t){return Object(i.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(i.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(i.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(i.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(i.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(i.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(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/getSelfCheck",method:"get",params:t||{}})}function l(t){return Object(i.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(i.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(i.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(i.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(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/part/review",method:"post",data:t})}function y(t){return Object(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/involve/review",method:"post",data:t})}function v(t){return Object(i.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(i.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(i.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(i.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.21:8006/zhongtai/task/workCert-regenerate?code="+t,method:"get"})}},xOJF:function(t,e,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("k4Ii"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}}}]);