(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f75a97b0"],{"00fd":function(t,e,i){var n=i("9e69"),r=Object.prototype,a=r.hasOwnProperty,o=r.toString,s=n?n.toStringTag:void 0;function c(t){var e=a.call(t,s),i=t[s];try{t[s]=void 0;var n=!0}catch(c){}var r=o.call(t);return n&&(e?t[s]=i:delete t[s]),r}t.exports=c},1095:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("Header",{attrs:{title:"作业许可列表"}}),i("div",{staticClass:"main"},[i("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[i("van-list",{attrs:{finished:t.finished,"finished-text":t.list.length>0?"没有更多了":""},on:{load:t.onLoad},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.list,(function(e,n){return i("van-swipe-cell",{key:n,scopedSlots:t._u(["10"===e.workTicketStatus?{key:"right",fn:function(){return[i("button",{staticClass:"editBtn",on:{click:function(i){return t.editJob(e.id)}}},[t._v("编辑")])]},proxy:!0}:null],null,!0)},[i("div",{staticClass:"l-list",on:{click:function(i){return t.handleDetails(e.id)}}},[i("div",{staticClass:"l-list-cell-bh"},[i("h4",{staticClass:"l-list-cell-bh-title"},[t._v(" "+t._s(e.workTicketContent)+" ")]),i("div",{staticClass:"l-list-cell-status"},[i("van-tag",{attrs:{type:"primary",size:"large",color:t.colorList[e.workTicketStatus]}},[t._v(t._s(t.ticketStaus[e.workTicketStatus]))]),i("van-icon",{attrs:{name:"arrow"}})],1)]),i("div",{staticClass:"l-list-cell"},[i("span",[t._v("作业类型:")]),t._v(t._s(t.workType(t.type,e.workTicketType))+" ")]),i("div",{staticClass:"l-list-cell"},[i("span",[t._v("作业申请人:")]),t._v(t._s(t.$findItemById(t.getDeptUserTree,e.applicantUserId))+" ")]),i("div",{staticClass:"l-list-cell"},[i("span",[t._v("作业开始时间:")]),t._v(t._s(e.workPlanStartTime)+" ")]),i("div",{staticClass:"l-list-cell"},[i("span",[t._v("作业结束时间:")]),t._v(t._s(e.workPlanEndTime)+" ")])])])})),1)],1),0===t.list.length&&t.saveLading?i("div",{staticClass:"van-loading-list"},[i("van-loading",{attrs:{size:"50px",vertical:""}},[t._v("加载中...")])],1):0!==t.list.length||t.saveLading||t.refreshing?t._e():i("van-empty",{attrs:{description:"暂无预约"}})],1)],1)},r=[],a=(i("13d5"),i("b0c0"),i("d3b7"),i("2909")),o=i("ade3"),s=i("5530"),c=i("2f62"),u=i("8500"),l=i("b047"),f=i.n(l),d={name:"LicenseList",data:function(){return{isLoading:!1,finished:!1,saveLading:!0,refreshing:!1,pageNum:1,pageSize:10,list:[],ticketStaus:{10:"待交底",20:"待接受",30:"审核中",40:"作业中",50:"已验收"},colorList:{10:"#1c4990",20:"#1c4990",30:"#1c4990",40:"#07c160",50:"#07c160"},type:[{code:"10",name:"动火作业",icon:i("f323")},{code:"20",name:"受限作业",icon:i("f323")},{code:"30",name:"盲板抽堵",icon:i("f323")},{code:"40",name:"高处作业",icon:i("f323")},{code:"50",name:"吊装作业",icon:i("f323")},{code:"60",name:"临时用电",icon:i("f323")},{code:"70",name:"动土作业",icon:i("f323")},{code:"80",name:"断路作业",icon:i("f323")}]}},computed:Object(s["a"])({},Object(c["b"])("dangerList",["dangerSrcList","dangerTypeList","getAreaTree","getDeptTree","getDeptUserTree","contractorList","contractorUserList","workticketData"]),{workType:function(){return function(t,e){var i=t.reduce((function(t,e){return Object(s["a"])({},t,Object(o["a"])({},e.code,e.name))}),{});return i[e]}}}),mounted:function(){this.getList({pageNum:this.pageNum,pageSize:this.pageSize})},methods:{onLoad:f()((function(){if(this.isLoading=!1,!(this.pageNum<=1)){var t=this.pageSize,e=this.pageNum,i={pageSize:t,pageNum:e};this.getList(i)}}),300,{trailing:!1,leading:!0}),onRefresh:function(){this.finished=!1,this.isLoading=!0,this.refreshing&&(this.list=[],this.refreshing=!1),this.pageNum=1,this.getList({pageNum:this.pageNum,pageSize:this.pageSize})},getList:function(t){var e=this;Object(u["g"])(t).then((function(i){var n=i.data;if(e.isLoading=!1,200===n.code){var r,o=Math.ceil(n.total/e.pageSize);if(0===n.total)return e.finished=!0,!1;if(t.pageNum>1)(r=e.list).push.apply(r,Object(a["a"])(n.rows));else e.list=n.rows;e.pageNum+=1,o===t.pageNum?e.finished=!0:e.finished=!1}else e.$notify({type:"danger",message:n.msg,duration:2e3})})).catch((function(t){e.$notify({type:"danger",message:"网络异常,请稍后重试",duration:2e3})})).finally((function(){setTimeout((function(){e.saveLading=!1}),100)}))},editJob:function(t){var e=this,i={name:this.workType(this.type,this.workticketData.workTicketType),code:this.workticketData.workTicketType,id:t};this.$store.dispatch("dangerList/getWorkticketData",t),setTimeout((function(){e.$router.push({path:"/jobReservationFrom",query:i})}),100)},handleDetails:function(t){var e=this;this.$store.dispatch("dangerList/getWorkticketData",t),setTimeout((function(){e.$router.push({path:"/licenseDetails",query:{id:t}})}),100)}}},p=d,v=(i("2c18"),i("2877")),g=Object(v["a"])(p,n,r,!1,null,"2381b6ee",null);e["default"]=g.exports},1310:function(t,e){function i(t){return null!=t&&"object"==typeof t}t.exports=i},"13d5":function(t,e,i){"use strict";var n=i("23e7"),r=i("d58f").left,a=i("a640"),o=i("2d00"),s=i("605d"),c=!s&&o>79&&o<83,u=c||!a("reduce");n({target:"Array",proto:!0,forced:u},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},"1a8c":function(t,e){function i(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=i},"29f3":function(t,e){var i=Object.prototype,n=i.toString;function r(t){return n.call(t)}t.exports=r},"2b3e":function(t,e,i){var n=i("585a"),r="object"==typeof self&&self&&self.Object===Object&&self,a=n||r||Function("return this")();t.exports=a},"2c18":function(t,e,i){"use strict";var n=i("f977"),r=i.n(n);r.a},3729:function(t,e,i){var n=i("9e69"),r=i("00fd"),a=i("29f3"),o="[object Null]",s="[object Undefined]",c=n?n.toStringTag:void 0;function u(t){return null==t?void 0===t?s:o:c&&c in Object(t)?r(t):a(t)}t.exports=u},"408c":function(t,e,i){var n=i("2b3e"),r=function(){return n.Date.now()};t.exports=r},"4cef":function(t,e){var i=/\s/;function n(t){var e=t.length;while(e--&&i.test(t.charAt(e)));return e}t.exports=n},"585a":function(t,e,i){(function(e){var i="object"==typeof e&&e&&e.Object===Object&&e;t.exports=i}).call(this,i("c8ba"))},"8d74":function(t,e,i){var n=i("4cef"),r=/^\s+/;function a(t){return t?t.slice(0,n(t)+1).replace(r,""):t}t.exports=a},"9e69":function(t,e,i){var n=i("2b3e"),r=n.Symbol;t.exports=r},b047:function(t,e,i){var n=i("1a8c"),r=i("408c"),a=i("b4b0"),o="Expected a function",s=Math.max,c=Math.min;function u(t,e,i){var u,l,f,d,p,v,g=0,h=!1,m=!1,b=!0;if("function"!=typeof t)throw new TypeError(o);function y(e){var i=u,n=l;return u=l=void 0,g=e,d=t.apply(n,i),d}function k(t){return g=t,p=setTimeout(L,e),h?y(t):d}function T(t){var i=t-v,n=t-g,r=e-i;return m?c(r,f-n):r}function w(t){var i=t-v,n=t-g;return void 0===v||i>=e||i<0||m&&n>=f}function L(){var t=r();if(w(t))return x(t);p=setTimeout(L,T(t))}function x(t){return p=void 0,b&&u?y(t):(u=l=void 0,d)}function _(){void 0!==p&&clearTimeout(p),g=0,u=v=l=p=void 0}function j(){return void 0===p?d:x(r())}function S(){var t=r(),i=w(t);if(u=arguments,l=this,v=t,i){if(void 0===p)return k(v);if(m)return clearTimeout(p),p=setTimeout(L,e),y(v)}return void 0===p&&(p=setTimeout(L,e)),d}return e=a(e)||0,n(i)&&(h=!!i.leading,m="maxWait"in i,f=m?s(a(i.maxWait)||0,e):f,b="trailing"in i?!!i.trailing:b),S.cancel=_,S.flush=j,S}t.exports=u},b4b0:function(t,e,i){var n=i("8d74"),r=i("1a8c"),a=i("ffd6"),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;function f(t){if("number"==typeof t)return t;if(a(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var i=c.test(t);return i||u.test(t)?l(t.slice(2),i?2:8):s.test(t)?o:+t}t.exports=f},f323:function(t,e,i){t.exports=i.p+"assets/img/icon11.0b57d809.png"},f977:function(t,e,i){},ffd6:function(t,e,i){var n=i("3729"),r=i("1310"),a="[object Symbol]";function o(t){return"symbol"==typeof t||r(t)&&n(t)==a}t.exports=o}}]);