!function(){function e(e,t,n,r,a,c,i){try{var o=e[c](i),s=o.value}catch(u){return void n(u)}o.done?t(s):Promise.resolve(s).then(r,a)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(a,c){var i=t.apply(n,r);function o(t){e(i,a,c,o,s,"next",t)}function s(t){e(i,a,c,o,s,"throw",t)}o(void 0)}))}}var n=document.createElement("style");n.innerHTML="._cashProtocol_12q0m_1{position:relative}._cashProtocol_12q0m_1 ._submit_12q0m_4{width:85%;margin-left:5%;margin-bottom:.4rem;position:absolute;bottom:0;height:1.17333rem;line-height:1.17333rem;z-index:99}\n",document.head.appendChild(n),System.register(["./index-legacy.77fd7daf.js","./index-legacy.4a9eab36.js","./index-legacy.6d038ac6.js","./index-legacy.140ee8f4.js","./index-legacy.c8e04a6c.js","./index-legacy.8792d9c7.js","./index-legacy.74c71eea.js","./index-legacy.8742752a.js","./index-legacy.2393a936.js","./index-legacy.33c6b81d.js","./use-id-legacy.4a1010a1.js","./icon_checkbox_default-legacy.e33240bc.js","./icon_checkbox-tenant-legacy.b4d3b7a3.js","./index-legacy.9dfac9c6.js","./index-legacy.3aa427b0.js"],(function(e){"use strict";var n,r,a,c,i,o,s,u,l,d,f,h;return{setters:[function(e){n=e.d,r=e.g,a=e.w,c=e.T,i=e.n,o=e.j,s=e.F,u=e.B,l=e.z},function(e){d=e.U},function(e){f=e.C},function(e){h=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var g="_cashProtocol_12q0m_1",m="_submit_12q0m_4";e("default",n({name:"cash-protocol",data:function(){return{realStatus:!0,url:"",signStatus:""}},mounted:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n,c,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,console.log(r.user),(n=r.user.data).realName&&n.idCardNo?e.getDetail():e.realStatus=!1,t.next=6,a.get("/api-teacher/sysUserContractRecord/checkContractSignV2?contractType=WITHDRAW");case 6:c=t.sent,i=c.data,e.signStatus=i,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),t,null,[[0,11]])})))()},methods:{getDetail:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a.get("/api-teacher/sysUserContractRecord/queryLatestContractTemplate",{params:{contractType:"WITHDRAW"}});case 3:n=t.sent,e.url=window.location.origin+window.location.pathname+"/pdf/web/viewer.html?file="+encodeURIComponent(n.data.origanalFileUrl)+"&btn=1",t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])})))()},onSubmit:function(){return t(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a.get("/api-teacher/sysUserContractRecord/sign",{params:{contractType:"WITHDRAW"}});case 3:setTimeout((function(){c("签署成功")}),100),setTimeout((function(){i({api:"openPageSuccess",content:{page:"WITHDRAW"}})}),1e3),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})))()},onSuccess:function(){this.realStatus=!0,this.getDetail()}},render:function(){return o("div",{class:g},[o(h,{position:"top"},{default:function(){return[o(f,null,null)]}}),this.realStatus?o(s,null,[o("iframe",{src:this.url,frameborder:"0",style:{width:"100%",height:"calc(100vh - var(--header-height))",border:"none"}},null),"NOT_SIGN"===this.signStatus?o(u,{type:"primary",size:"large",block:!0,round:!0,class:m,onClick:this.onSubmit},{default:function(){return[l("我已阅读并同意")]}}):""]):o(d,{hideHeader:!0,onSuccess:this.onSuccess},null)])}}))}}}))}();
