index-legacy.f7213479.js 5.3 KB

1
  1. !function(){function e(e,t,n,a,r,i,o){try{var c=e[i](o),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(a,r)}function t(t){return function(){var n=this,a=arguments;return new Promise((function(r,i){var o=t.apply(n,a);function c(t){e(o,r,i,c,u,"next",t)}function u(t){e(o,r,i,c,u,"throw",t)}c(void 0)}))}}var n=document.createElement("style");n.innerHTML='._cashProtocol_1ufde_1{position:relative}._cashProtocol_1ufde_1 ._submit_1ufde_4{width:85%;margin-left:5%;margin-bottom:.4rem;position:absolute;bottom:0;height:1.17333rem;line-height:1.17333rem;z-index:99}._dialogPopup_1ufde_14{width:84%;border-radius:.21333rem}._dialogSection_1ufde_18{padding:.48rem}._dialogSection_1ufde_18 ._dialogTitle_1ufde_21{display:flex;align-items:center;font-size:.48rem;font-weight:500;color:#333;line-height:.8rem}._dialogSection_1ufde_18 ._dialogTitle_1ufde_21:before{content:"";width:.10667rem;height:.45333rem;background:linear-gradient(180deg,#59E5D5 0%,#2DC7AA 100%);border-radius:.08rem;margin-right:.18667rem}._dialogSection_1ufde_18 ._dialogContent_1ufde_37{padding-top:.53333rem;padding-bottom:.85333rem;font-size:.37333rem;color:#666;line-height:.53333rem}._dialogSection_1ufde_18 ._dialogBtn_1ufde_44{display:block;width:3.04rem;height:1.06667rem;font-size:.42667rem;margin:0 auto}\n',document.head.appendChild(n),System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.163278e2.js","./index-legacy.6ac2a941.js","./index-legacy.9696a579.js","./index-legacy.56fd22af.js","./index-legacy.ff44e6c0.js","./index-legacy.7e687ee8.js","./index-legacy.39123961.js","./index-legacy.23131301.js","./index-legacy.c8c5bc4e.js","./index-legacy.cae55a25.js","./use-id-legacy.ef8b5e97.js","./icon_checkbox-legacy.6421631e.js","./icon_checkbox_default-legacy.9f3738fd.js","./icon_checkbox-tenant-legacy.b4d3b7a3.js","./index-legacy.e21472a8.js","./index-legacy.b20da433.js","./index-legacy.4bad5b90.js"],(function(e){"use strict";var n,a,r,i,o,c,u,s,d,l,f,g,h;return{setters:[function(e){n=e.d,a=e.y,r=e.g,i=e.f,o=e.n,c=e.j,u=e.F,s=e.B,d=e.A,l=e.aS},function(e){f=e.U},function(e){g=e.C},function(e){h=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var _="_cashProtocol_1ufde_1",m="_submit_1ufde_4",p="_dialogPopup_1ufde_14",y="_dialogSection_1ufde_18",b="_dialogTitle_1ufde_21",v="_dialogContent_1ufde_37",x="_dialogBtn_1ufde_44";e("default",n({name:"cash-protocol",data:function(){return{dialogStatus:!1,realStatus:!0,url:"",signStatus:""}},mounted:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n,i,o;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/checkContractSignV2?contractType=WITHDRAW");case 3:n=t.sent,i=n.data,e.signStatus=i,(o=r.user.data).realName&&o.idCardNo?e.getDetail():e.realStatus=!1,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])})))()},methods:{getDetail:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,"SUCCESS"!==e.signStatus){t.next=8;break}return t.next=4,a.get("/api-teacher/sysUserContractRecord/querySignContract",{params:{contractType:"WITHDRAW"}});case 4:n=t.sent,e.url=window.location.origin+window.location.pathname+"/pdf/web/viewer.html?file="+encodeURIComponent(n.data)+"&btn=1",t.next=12;break;case 8:return t.next=10,a.get("/api-teacher/sysUserContractRecord/queryLatestContractTemplate",{params:{contractType:"WITHDRAW"}});case 10:r=t.sent,e.url=window.location.origin+window.location.pathname+"/pdf/web/viewer.html?file="+encodeURIComponent(r.data.origanalFileUrl)+"&btn=1";case 12:t.next=16;break;case 14:t.prev=14,t.t0=t.catch(0);case 16:case"end":return t.stop()}}),t,null,[[0,14]])})))()},onSubmit:function(){var e=this;return t(regeneratorRuntime.mark((function t(){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/sign",{params:{contractType:"WITHDRAW"}});case 3:e.dialogStatus=!0,t.next=8;break;case 6:t.prev=6,t.t0=t.catch(0);case 8:case"end":return t.stop()}}),t,null,[[0,6]])})))()},onSuccess:function(){this.realStatus=!0,this.getDetail()},onBack:function(){i().isApp?o({api:"goBack"}):this.$router.back()}},render:function(){var e=this;return c("div",{class:_},[c(h,{position:"top"},{default:function(){return[c(g,null,null)]}}),this.realStatus?c(u,null,[c("iframe",{src:this.url,frameborder:"0",style:{width:"100%",height:"calc(100vh - var(--header-height))",border:"none"}},null),"NOT_SIGN"===this.signStatus?c(s,{type:"primary",size:"large",block:!0,round:!0,class:m,onClick:this.onSubmit},{default:function(){return[d("我已阅读并同意")]}}):""]):c(f,{hideHeader:!0,onSuccess:this.onSuccess},null),c(l,{show:this.dialogStatus,"onUpdate:show":function(t){return e.dialogStatus=t},round:!0,class:p},{default:function(){return[c("div",{class:y},[c("div",{class:b},[d("提示")]),c("div",{class:v},[d("结算协议签署中,签署成功后即可申请结算")]),c(s,{round:!0,type:"primary",class:x,onClick:function(){return e.onBack()}},{default:function(){return[d("我知道了")]}})])]}})])}}))}}}))}();