From 1f2a259f8cbb7eb0b12d12895116c309eb8cd609 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期五, 08 四月 2022 16:16:28 +0800 Subject: [PATCH] 'lct' --- zhongtaiweb/static/js/chunk-30a1.17c59b29.1649389078721.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dist/static/js/chunk-30a1.2f5b83df.1649386022791.js b/zhongtaiweb/static/js/chunk-30a1.17c59b29.1649389078721.js similarity index 74% rename from dist/static/js/chunk-30a1.2f5b83df.1649386022791.js rename to zhongtaiweb/static/js/chunk-30a1.17c59b29.1649389078721.js index 9729abf..41c8941 100644 --- a/dist/static/js/chunk-30a1.2f5b83df.1649386022791.js +++ b/zhongtaiweb/static/js/chunk-30a1.17c59b29.1649389078721.js @@ -1 +1 @@ -(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-30a1"],{"1JKd":function(t,e,r){},VqS0:function(t,e,r){"use strict";var n=r("1JKd");r.n(n).a},cLjf:function(t,e,r){t.exports=r("xOJF")},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 o(a,i){try{var u=e[a](i),c=u.value}catch(t){return void r(t)}if(!u.done)return n.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 r,n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",s="object"==typeof t,l=e.regeneratorRuntime;if(l)s&&(t.exports=l);else{(l=e.regeneratorRuntime=s?t.exports:{}).wrap=w;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",m={},g={};g[i]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(W([])));v&&v!==n&&o.call(v,i)&&(g=v);var b=O.prototype=_.prototype=Object.create(g);x.prototype=b.constructor=O,O.constructor=x,O[c]=x.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},j(L.prototype),L.prototype[u]=function(){return this},l.AsyncIterator=L,l.async=function(t,e,r,n){var o=new L(w(t,e,r,n));return l.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},j(b),b[c]="Generator",b[i]=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=W,S.prototype={constructor:S,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(A),!t)for(var e in this)"t"===e.charAt(0)&&o.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,o){return u.type="throw",u.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.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&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},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),A(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 o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:W(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),m}}}function w(t,e,r,n){var o=e&&e.prototype instanceof _?e:_,a=Object.create(o.prototype),i=new S(n||[]);return a._invoke=function(t,e,r){var n=h;return function(o,a){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw a;return N()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=z(i,r);if(u){if(u===m)continue;return u}}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 c=k(t,e,r);if("normal"===c.type){if(n=r.done?p:f,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,i),a}function k(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function _(){}function x(){}function O(){}function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function L(t){var e;this._invoke=function(r,n){function a(){return new Promise(function(e,a){!function e(r,n,a,i){var u=k(t[r],t,n);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,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(s).then(function(t){c.value=t,a(c)},i)}i(u.arg)}(r,n,e,a)})}return e=e?e.then(a,a):a()}}function z(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,z(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=k(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function E(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function W(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},"sg/T":function(t,e,r){"use strict";r.r(e);var n=r("cLjf"),o=r.n(n),a=r("hDQ3"),i=r.n(a),u=r("wk8/"),c={props:["basicInformation","title"],name:"index",data:function(){return{taskWorkers:[],workerList:[],taskTypeList:[{id:0,name:"受限空间作业"},{id:1,name:"吊装作业"},{id:2,name:"动土作业"},{id:3,name:"断路作业"},{id:4,name:"高处作业"},{id:5,name:"临时用电作业"},{id:6,name:"盲板抽堵作业"},{id:7,name:"动火作业"}]}},created:function(){this.getWorker()},methods:{addTaskWorker:function(){this.taskWorkers.push({createdat:"",createdby:"",flag:0,id:0,modifiedat:"",modifiedby:"",taskcode:this.basicInformation.code,unit:"",worker:"",branch:"",number:"",tasktype:""})},deleteWorker:function(t){this.taskWorkers.splice(t,1)},goNext:function(){this.$emit("confirmConstruction")},getWorker:function(){var t=this;return i()(o.a.mark(function e(){var r,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r={}).pageIndex=1,r.pageSize=1e3,e.next=5,Object(u.q)(r);case 5:"200"===(n=e.sent).data.code&&(t.workerList=n.data.result.result);case 7:case"end":return e.stop()}},e,t)}))()}}},s=(r("VqS0"),r("ZrdR")),l=Object(s.a)(c,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticStyle:{"padding-bottom":"10px"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.addTaskWorker}},[t._v("添加作业人")])],1),t._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.taskWorkers,border:"",fit:"","highlight-current-row":"","header-cell-style":{"text-align":"center"}}},[r("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"60"}}),t._v(" "),r("el-table-column",{attrs:{prop:"taskcode",label:"作业编号",align:"left"}}),t._v(" "),r("el-table-column",{attrs:{prop:"unit",label:"作业类型",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-select",{model:{value:e.row.tasktype,callback:function(r){t.$set(e.row,"tasktype",r)},expression:"scope.row.tasktype"}},t._l(t.taskTypeList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})}))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"unit",label:"施工单位",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{model:{value:e.row.unit,callback:function(r){t.$set(e.row,"unit",r)},expression:"scope.row.unit"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"worker",label:"作业人姓名",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-select",{model:{value:e.row.worker,callback:function(r){t.$set(e.row,"worker",r)},expression:"scope.row.worker"}},t._l(t.workerList,function(t){return r("el-option",{key:t.id,attrs:{value:t.realname,label:t.realname}})}))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"branch",label:"特种作业工种",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{model:{value:e.row.branch,callback:function(r){t.$set(e.row,"branch",r)},expression:"scope.row.branch"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"number",label:"特种作业证号",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{model:{value:e.row.number,callback:function(r){t.$set(e.row,"number",r)},expression:"scope.row.number"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){t.deleteWorker(e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),"新增"===t.title||"编辑"===t.title||"施工单位确认"===t.title||"施工单位信息填写"===t.title||"复制"===t.title?r("div",{staticStyle:{"padding-top":"20px"},attrs:{align:"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.goNext}},[t._v("下一步")])],1):t._e()],1)},[],!1,null,"dc9ac644",null);l.options.__file="index.vue";e.default=l.exports},"wk8/":function(t,e,r){"use strict";r.d(e,"q",function(){return a}),r.d(e,"d",function(){return i}),r.d(e,"e",function(){return u}),r.d(e,"n",function(){return c}),r.d(e,"o",function(){return s}),r.d(e,"k",function(){return l}),r.d(e,"l",function(){return h}),r.d(e,"g",function(){return f}),r.d(e,"h",function(){return d}),r.d(e,"c",function(){return p}),r.d(e,"i",function(){return m}),r.d(e,"a",function(){return g}),r.d(e,"p",function(){return y}),r.d(e,"f",function(){return v}),r.d(e,"m",function(){return b}),r.d(e,"b",function(){return w}),r.d(e,"j",function(){return k});var n=r("t3Un"),o=r("X4fA");function a(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/user",method:"get",params:t||{}})}function i(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/adduser",method:"post",data:t})}function u(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/deluser",method:"post",data:t})}function c(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/putuser",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/userroles",method:"post",data:t})}function l(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/importUser",method:"post",data:t})}function h(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/importUserCode",method:"post",data:t})}function f(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/district",method:"get",params:t||{}})}function d(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/districtByName",method:"get",params:t||{}})}function p(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/userList",method:"get",params:t||{}})}function m(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/getWorkCert?mobile="+t,method:"get"})}function g(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/addWorkCert",method:"post",data:t})}function y(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/editWorkCert",method:"post",data:t})}function v(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/delWorkCert",method:"post",data:t})}function b(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/setInvalidDel",method:"post",data:t})}function w(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/bindCard",method:"post",data:t})}function k(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai_demo/importSupplierUser",method:"post",data:t})}},xOJF:function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("k4Ii"),o)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}}}]); \ No newline at end of file +(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-30a1"],{"1JKd":function(t,e,r){},VqS0:function(t,e,r){"use strict";var n=r("1JKd");r.n(n).a},cLjf:function(t,e,r){t.exports=r("xOJF")},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 o(a,i){try{var u=e[a](i),c=u.value}catch(t){return void r(t)}if(!u.done)return n.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 r,n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",s="object"==typeof t,l=e.regeneratorRuntime;if(l)s&&(t.exports=l);else{(l=e.regeneratorRuntime=s?t.exports:{}).wrap=w;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",m={},g={};g[i]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(W([])));v&&v!==n&&o.call(v,i)&&(g=v);var b=j.prototype=x.prototype=Object.create(g);O.prototype=b.constructor=j,j.constructor=O,j[c]=O.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},l.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},l.awrap=function(t){return{__await:t}},_(L.prototype),L.prototype[u]=function(){return this},l.AsyncIterator=L,l.async=function(t,e,r,n){var o=new L(w(t,e,r,n));return l.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},_(b),b[c]="Generator",b[i]=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=W,S.prototype={constructor:S,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(A),!t)for(var e in this)"t"===e.charAt(0)&&o.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,o){return u.type="throw",u.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.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&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},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),A(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 o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:W(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),m}}}function w(t,e,r,n){var o=e&&e.prototype instanceof x?e:x,a=Object.create(o.prototype),i=new S(n||[]);return a._invoke=function(t,e,r){var n=h;return function(o,a){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw a;return N()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=z(i,r);if(u){if(u===m)continue;return u}}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 c=k(t,e,r);if("normal"===c.type){if(n=r.done?p:f,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,i),a}function k(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function x(){}function O(){}function j(){}function _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function L(t){var e;this._invoke=function(r,n){function a(){return new Promise(function(e,a){!function e(r,n,a,i){var u=k(t[r],t,n);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,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(s).then(function(t){c.value=t,a(c)},i)}i(u.arg)}(r,n,e,a)})}return e=e?e.then(a,a):a()}}function z(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,z(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=k(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function E(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function W(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},"sg/T":function(t,e,r){"use strict";r.r(e);var n=r("cLjf"),o=r.n(n),a=r("hDQ3"),i=r.n(a),u=r("wk8/"),c={props:["basicInformation","title"],name:"index",data:function(){return{taskWorkers:[],workerList:[],taskTypeList:[{id:0,name:"受限空间作业"},{id:1,name:"吊装作业"},{id:2,name:"动土作业"},{id:3,name:"断路作业"},{id:4,name:"高处作业"},{id:5,name:"临时用电作业"},{id:6,name:"盲板抽堵作业"},{id:7,name:"动火作业"}]}},created:function(){this.getWorker()},methods:{addTaskWorker:function(){this.taskWorkers.push({createdat:"",createdby:"",flag:0,id:0,modifiedat:"",modifiedby:"",taskcode:this.basicInformation.code,unit:"",worker:"",branch:"",number:"",tasktype:""})},deleteWorker:function(t){this.taskWorkers.splice(t,1)},goNext:function(){this.$emit("confirmConstruction")},getWorker:function(){var t=this;return i()(o.a.mark(function e(){var r,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r={}).pageIndex=1,r.pageSize=1e3,e.next=5,Object(u.q)(r);case 5:"200"===(n=e.sent).data.code&&(t.workerList=n.data.result.result);case 7:case"end":return e.stop()}},e,t)}))()}}},s=(r("VqS0"),r("ZrdR")),l=Object(s.a)(c,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticStyle:{"padding-bottom":"10px"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.addTaskWorker}},[t._v("添加作业人")])],1),t._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.taskWorkers,border:"",fit:"","highlight-current-row":"","header-cell-style":{"text-align":"center"}}},[r("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"60"}}),t._v(" "),r("el-table-column",{attrs:{prop:"taskcode",label:"作业编号",align:"left"}}),t._v(" "),r("el-table-column",{attrs:{prop:"unit",label:"作业类型",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-select",{model:{value:e.row.tasktype,callback:function(r){t.$set(e.row,"tasktype",r)},expression:"scope.row.tasktype"}},t._l(t.taskTypeList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})}))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"unit",label:"施工单位",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{model:{value:e.row.unit,callback:function(r){t.$set(e.row,"unit",r)},expression:"scope.row.unit"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"worker",label:"作业人姓名",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-select",{model:{value:e.row.worker,callback:function(r){t.$set(e.row,"worker",r)},expression:"scope.row.worker"}},t._l(t.workerList,function(t){return r("el-option",{key:t.id,attrs:{value:t.realname,label:t.realname}})}))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"branch",label:"特种作业工种",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{model:{value:e.row.branch,callback:function(r){t.$set(e.row,"branch",r)},expression:"scope.row.branch"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"number",label:"特种作业证号",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-input",{model:{value:e.row.number,callback:function(r){t.$set(e.row,"number",r)},expression:"scope.row.number"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){t.deleteWorker(e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),"新增"===t.title||"编辑"===t.title||"施工单位确认"===t.title||"施工单位信息填写"===t.title||"复制"===t.title?r("div",{staticStyle:{"padding-top":"20px"},attrs:{align:"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.goNext}},[t._v("下一步")])],1):t._e()],1)},[],!1,null,"dc9ac644",null);l.options.__file="index.vue";e.default=l.exports},"wk8/":function(t,e,r){"use strict";r.d(e,"q",function(){return a}),r.d(e,"d",function(){return i}),r.d(e,"e",function(){return u}),r.d(e,"n",function(){return c}),r.d(e,"o",function(){return s}),r.d(e,"k",function(){return l}),r.d(e,"l",function(){return h}),r.d(e,"g",function(){return f}),r.d(e,"h",function(){return d}),r.d(e,"c",function(){return p}),r.d(e,"i",function(){return m}),r.d(e,"a",function(){return g}),r.d(e,"p",function(){return y}),r.d(e,"f",function(){return v}),r.d(e,"m",function(){return b}),r.d(e,"b",function(){return w}),r.d(e,"j",function(){return k});var n=r("t3Un"),o=r("X4fA");function a(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/user",method:"get",params:t||{}})}function i(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/adduser",method:"post",data:t})}function u(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/deluser",method:"post",data:t})}function c(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/putuser",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/userroles",method:"post",data:t})}function l(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/importUser",method:"post",data:t})}function h(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/importUserCode",method:"post",data:t})}function f(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/district",method:"get",params:t||{}})}function d(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/districtByName",method:"get",params:t||{}})}function p(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/userList",method:"get",params:t||{}})}function m(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/getWorkCert?mobile="+t,method:"get"})}function g(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/addWorkCert",method:"post",data:t})}function y(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/editWorkCert",method:"post",data:t})}function v(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/delWorkCert",method:"post",data:t})}function b(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/setInvalidDel",method:"post",data:t})}function w(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/bindCard",method:"post",data:t})}function k(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.21:8006/zhongtai/importSupplierUser",method:"post",data:t})}},xOJF:function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("k4Ii"),o)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}}}]); \ No newline at end of file -- Gitblit v1.9.2