(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/factory_change_insurance/factory_change_insurance"],{378:function(n,t,e){"use strict";(function(n,t){var r=e(4);e(26);r(e(25));var o=r(e(379));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e(1)["default"],e(2)["createPage"])},379:function(n,t,e){"use strict";e.r(t);var r=e(380),o=e(382);for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);e(384),e(386);var u,a=e(32),c=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"0c10b086",null,!1,r["components"],u);c.options.__file="pages/factory_change_insurance/factory_change_insurance.vue",t["default"]=c.exports},380:function(n,t,e){"use strict";e.r(t);var r=e(381);e.d(t,"render",(function(){return r["render"]})),e.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),e.d(t,"components",(function(){return r["components"]}))},381:function(n,t,e){"use strict";var r;e.r(t),e.d(t,"render",(function(){return o})),e.d(t,"staticRenderFns",(function(){return u})),e.d(t,"recyclableRender",(function(){return i})),e.d(t,"components",(function(){return r}));try{r={uButton:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-button/u-button")]).then(e.bind(null,459))},uPopup:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(e.bind(null,529))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,t=n.$createElement,e=(n._self._c,n.__map(n.user,(function(t,e){var r=n.__get_orig(t),o=n.IdCard(t.idcardNo,2),i=n.IdCard(t.idcardNo,3);return{$orig:r,m0:o,m1:i}}))),r=n.user.length;n._isMounted||(n.e0=function(t){n.show=!0},n.e1=function(t){n.show=!1}),n.$mp.data=Object.assign({},{$root:{l0:e,g0:r}})},i=!1,u=[];o._withStripped=!0},382:function(n,t,e){"use strict";e.r(t);var r=e(383),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(i);t["default"]=o.a},383:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{id:null,codeId:null,code:null,startDate:null,cyclePrice:null,info:null,user:[],show:!1,fangan:{}}},onLoad:function(t){var e=this;this.id=t.id,this.codeId=t.codeId,this.code=t.code,this.startDate=t.startDate,this.cyclePrice=t.cyclePrice,this.getDetails(),n.$on("data",(function(n){e.user.unshift(n)}))},methods:{jump:function(){n.navigateTo({url:"/pages/factory_change_personnel/factory_change_personnel?validTime=".concat(this.startDate,"&insuranceApplyId=").concat(this.codeId,"&solutionId=").concat(this.id)})},dele:function(n){this.user.splice(n,1)},submit:function(){if(0===this.user.length)return n.showToast({title:"至少选择一名人员",icon:"none"});this.$u.api.applyChangeCreate({applyId:this.codeId,changeDetailList:this.user,validTime:this.startDate,type:1}).then((function(t){200===t.code&&(n.showToast({title:"提交成功",icon:"success"}),setTimeout((function(){n.navigateBack({delta:2})}),1500))}))},IdCard:function(n,t){var e=n.toString();if(1==t)return birth=e.substring(6,10)+"-"+e.substring(10,12)+"-"+e.substring(12,14),birth;if(2==t)return parseInt(e.substr(16,1))%2==1?"男":"女";if(3==t){var r=new Date,o=r.getMonth()+1,i=r.getDate(),u=r.getFullYear()-e.substring(6,10)-1;return(e.substring(10,12)<o||e.substring(10,12)==o&&e.substring(12,14)<=i)&&u++,u}},getDetails:function(){var n=this;n.$u.api.insuranceApplyById(n.codeId).then((function(t){n.info=t.data,n.$u.api.solutionsById(t.data.newVersionSolutionId).then((function(t){n.fangan=t.data}))}))}}};t.default=e}).call(this,e(2)["default"])},384:function(n,t,e){"use strict";e.r(t);var r=e(385),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(i);t["default"]=o.a},385:function(n,t,e){},386:function(n,t,e){"use strict";e.r(t);var r=e(387),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(i);t["default"]=o.a},387:function(n,t,e){}},[[378,"common/runtime","common/vendor"]]]);
|