chunk-2dc3f9d4.ea923553.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2dc3f9d4"],{"33d0":function(t,e,a){},9917:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bujiao"},[a("div",{staticClass:"bujiaos"},[a("div",{staticClass:"bujiao-city"},[t._v("\n 补缴城市 "),a("span",{staticStyle:{float:"right"}},[t._v(t._s(t.data.city_name))])]),a("div",{staticClass:"bujiao-hubie"},[t._v("\n 补缴户别 "),a("span",{staticStyle:{float:"right"}},[t._v(t._s(t.data.hubie))])]),a("div",{staticClass:"bujiao-leixing"},[t._v("\n 补缴类型 "),a("span",{staticStyle:{color:"#9B9B9B"}},[t._v("(单选)")]),a("div",{staticClass:"leixing-box"},t._l(t.data.menu,(function(e,n){return a("div",{staticClass:"box-con",class:{red:t.data.changeRed==n},on:{click:function(a){return t.change(n,e.type)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]),a("div",{staticClass:"bujiao-input"},[t._v("\n 社保基数 "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.data.jishu,expression:"data.jishu"}],staticClass:"input",attrs:{type:"text",placeholder:" 3613 "},domProps:{value:t.data.jishu},on:{input:function(e){e.target.composing||t.$set(t.data,"jishu",e.target.value)}}})]),t.data.jishusshow?a("div",{staticClass:"bujiao-input"},[t._v("\n 公积金基数 "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.data.jishus,expression:"data.jishus"}],staticClass:"input",attrs:{type:"text",placeholder:" 2500 "},domProps:{value:t.data.jishus},on:{input:function(e){e.target.composing||t.$set(t.data,"jishus",e.target.value)}}})]):t._e(),a("div",{staticClass:"bujiao-mothy"},[t._v("\n 补缴月份 "),a("span",{staticStyle:{color:"#9B9B9B"}},[t._v("(可多选)")]),a("div",{staticClass:"mothy-box"},t._l(t.data.nums,(function(e,n){return a("div",{staticClass:"num-yuan",class:1==e.check?"reds":"num-yuan",on:{click:function(a){return t.changemon(n,e.name)}}},[t._v(t._s(e.name))])})),0)])]),a("div",{staticClass:"btn-start"},[a("button",{on:{click:t.priceCalc}},[t._v("费用计算")])]),t.data.priceisShow?a("div",{staticClass:"bujiao-price"},[a("p",{staticClass:"line-1"},[t._v("费用计算")]),a("ul",t._l(t.data.list,(function(e){return a("li",[a("p",[t._v(" "+t._s(e.month)+"月社保费用 "),a("span",{staticStyle:{float:"right"}},[t._v("¥"+t._s(e.total))])])])})),0),a("p",{staticClass:"line-2"},[t._v("滞纳金 "),a("span",{staticStyle:{float:"right"}},[t._v("¥"+t._s(t.data.latefee))])]),a("p",{staticClass:"line-2"},[t._v("服务费 "),a("span",{staticStyle:{float:"right"}},[t._v("¥"+t._s(t.data.service_money))])]),a("p",{staticClass:"line-2"},[t._v("手续费 "),a("span",{staticStyle:{color:"#cccccc","font-size":"1.2rem"}},[t._v("(支付通道服务费0.6%)")]),a("span",{staticStyle:{float:"right"}},[t._v("¥"+t._s(t.data.service_charge))])]),a("p",{staticClass:"line-2"},[t._v("总计 "),a("span",{staticStyle:{float:"right",color:"#ed0000","font-size":"1.5rem"}},[t._v("¥"+t._s(t.data.zongtatal))])])]):t._e(),t.data.priceisShow?a("div",{staticClass:"btn-reset"},[a("button",{on:{click:t.reset}},[t._v("重 置")])]):t._e(),a("div",{staticClass:"white"}),a("div",{staticClass:"bujiao-bottom"},[a("p",[t._v("应付款:"),a("span",{staticStyle:{color:"#ed0000","font-size":"1.5rem"}},[t._v("¥"+t._s(t.data.zongtatal))])]),a("button",{on:{click:t.payment}},[t._v("去缴费")])])])},s=[],i=(a("2b45"),a("fc58"),a("f548"),a("ccd9"),a("a0f8"),a("baf1")),r=a.n(i),o=(a("e4f7"),a("a529")),c=a.n(o),u=(a("b449"),a("5d83")),l=a("3231"),d=a("064d"),f=a("46d7"),h=a("04e2"),p=a("52ce"),v=a("4a81"),m=a("b2e6"),y=a("f3cf"),_=a("afbc");function g(t){var e=b();return function(){var a,n=Object(p["a"])(t);if(e){var s=Object(p["a"])(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return Object(h["a"])(this,a)}}function b(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var C=function(t){Object(f["a"])(a,t);var e=g(a);function a(){var t;return Object(l["a"])(this,a),t=e.apply(this,arguments),t.data={menu:[{name:"社保",type:1},{name:"社保公积金",type:3}],nums:[],changeRed:0,checkboxGroup3:[""],month:[],priceisShow:!1,city_name:"",social_type:"",code:"",hubie:"",jishu:"3613",jishus:"2500",jishusshow:!1,type:1,list:"",latefee:"",service_charge:"",service_money:"",zongtatal:"0"},t}return Object(d["a"])(a,[{key:"created",value:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(){var e,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y["a"].getInstance().getIsrepairQual();case 2:e=t.sent,this.data.city_name=e.data.city_name,this.data.social_type=e.data.social_type,this.data.code=e.data.city_code,this.data.hubie=e.data.social_name,0==e.data.is_qualifications&&c.a.alert("您当月还未进行过代缴,无法进行补缴计算,请先支付汇缴账单","温馨提示",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定"}).then((function(t){a.$router.push("/social?is_fund=0")})).catch((function(){a.$router.push("/index")})),this.getRepairMonths();case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getRepairMonths",value:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y["a"].getInstance().getRepairMonth();case 2:e=t.sent,this.data.nums=e.data;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"payment",value:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!=this.data.zongtatal){t.next=3;break}return r()({message:"请先计算费用",duration:2e3,type:"warning"}),t.abrupt("return",!1);case 3:return e=JSON.stringify(this.data.month),t.next=6,y["a"].getInstance().createRepairOrder({social_type:this.data.social_type,code:this.data.code,social_basic:this.data.jishu,fund_basic:this.data.jishus,month:e,type:this.data.type});case 6:a=t.sent,localStorage.setItem("order_payings",JSON.stringify(a.data)),_["a"].replace({name:"opayment",params:{order_sn:a.data.order_sn,type:"2"}});case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"priceCalc",value:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(""!=this.data.jishu){t.next=3;break}return r()({message:"请填写社保基数",duration:2e3,type:"warning"}),t.abrupt("return",!1);case 3:if(3!=this.data.type||""!=this.data.jishus){t.next=6;break}return r()({message:"请填写公积金基数",duration:2e3,type:"warning"}),t.abrupt("return",!1);case 6:if(0!=this.data.month.length){t.next=9;break}return r()({message:"请选择补缴月份",duration:2e3,type:"warning"}),t.abrupt("return",!1);case 9:return this.data.priceisShow=!0,e=JSON.stringify(this.data.month),t.next=13,y["a"].getInstance().getmoth({social_type:this.data.social_type,code:this.data.code,type:this.data.type,social_basic:this.data.jishu,month:e});case 13:a=t.sent,this.data.list=a.data.monthdetail,this.data.latefee=a.data.latefee,this.data.service_charge=a.data.service_charge,this.data.service_money=a.data.service_money,this.data.zongtatal=a.data.zongtatal;case 19:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"reset",value:function(){this.data.priceisShow=!1,location.reload()}},{key:"change",value:function(t,e){console.log(this.data.jishusshow),this.data.changeRed=t,this.data.type=e,3==this.data.type?this.data.jishusshow=!0:this.data.jishusshow=!1}},{key:"changemon",value:function(t){for(var e=this,a=0;a<e.data.nums.length;a++)e.data.nums[a].check=t<=a;e.data.month=[];for(var n=e.data.nums.filter((function(t,e){return 1==t.check})),s=0;s<n.length;s++)e.data.month.push(n[s].value)}}]),a}(m["b"]);C=Object(v["a"])([Object(m["a"])({})],C);var w=C,j=w,x=(a("ce90"),a("4023")),S=Object(x["a"])(j,n,s,!1,null,"b428104e",null);e["default"]=S.exports},baf1:function(t,e,a){t.exports=function(t){var e={};function a(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)a.d(n,s,function(e){return t[e]}.bind(null,s));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="/dist/",a(a.s=75)}({0:function(t,e,a){"use strict";function n(t,e,a,n,s,i,r,o){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=a,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),r?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=c):s&&(c=o?function(){s.call(this,this.$root.$options.shadowRoot)}:s),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:u}}a.d(e,"a",(function(){return n}))},15:function(t,e){t.exports=a("d1a3")},23:function(t,e){t.exports=a("03d8")},7:function(t,e){t.exports=a("0261")},75:function(t,e,a){"use strict";a.r(e);var n=a(7),s=a.n(n),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":t.handleAfterLeave}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-message",t.type&&!t.iconClass?"el-message--"+t.type:"",t.center?"is-center":"",t.showClose?"is-closable":"",t.customClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:t.clearTimer,mouseleave:t.startTimer}},[t.iconClass?a("i",{class:t.iconClass}):a("i",{class:t.typeClass}),t._t("default",[t.dangerouslyUseHTMLString?a("p",{staticClass:"el-message__content",domProps:{innerHTML:t._s(t.message)}}):a("p",{staticClass:"el-message__content"},[t._v(t._s(t.message))])]),t.showClose?a("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:t.close}}):t._e()],2)])},r=[];i._withStripped=!0;var o={success:"success",info:"info",warning:"warning",error:"error"},c={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+o[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(t){t&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration))},keydown:function(t){27===t.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},u=c,l=a(0),d=Object(l["a"])(u,i,r,!1,null,null,null);d.options.__file="packages/message/src/main.vue";var f=d.exports,h=a(15),p=a(23),v=s.a.extend(f),m=void 0,y=[],_=1,g=function t(e){if(!s.a.prototype.$isServer){e=e||{},"string"===typeof e&&(e={message:e});var a=e.onClose,n="message_"+_++;e.onClose=function(){t.close(n,a)},m=new v({data:e}),m.id=n,Object(p["isVNode"])(m.message)&&(m.$slots.default=[m.message],m.message=null),m.$mount(),document.body.appendChild(m.$el);var i=e.offset||20;return y.forEach((function(t){i+=t.$el.offsetHeight+16})),m.verticalOffset=i,m.visible=!0,m.$el.style.zIndex=h["PopupManager"].nextZIndex(),y.push(m),m}};["success","warning","info","error"].forEach((function(t){g[t]=function(e){return"string"===typeof e&&(e={message:e}),e.type=t,g(e)}})),g.close=function(t,e){for(var a=y.length,n=-1,s=void 0,i=0;i<a;i++)if(t===y[i].id){s=y[i].$el.offsetHeight,n=i,"function"===typeof e&&e(y[i]),y.splice(i,1);break}if(!(a<=1||-1===n||n>y.length-1))for(var r=n;r<a-1;r++){var o=y[r].$el;o.style["top"]=parseInt(o.style["top"],10)-s-16+"px"}},g.closeAll=function(){for(var t=y.length-1;t>=0;t--)y[t].close()};var b=g;e["default"]=b}})},ccd9:function(t,e,a){},ce90:function(t,e,a){"use strict";var n=a("33d0"),s=a.n(n);s.a}}]);