(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/insuranceApplication/insuranceApplication"],{249:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var i=o(t(250));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},250:function(e,n,t){"use strict";t.r(n);var o=t(251),i=t(253);for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t(256),t(258);var u,a=t(32),c=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"3c4224c6",null,!1,o["components"],u);c.options.__file="pages/insuranceApplication/insuranceApplication.vue",n["default"]=c.exports},251:function(e,n,t){"use strict";t.r(n);var o=t(252);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},252:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return o}));try{o={"u-Form":function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u--form/u--form")]).then(t.bind(null,493))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,499))},"u-Input":function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u--input/u--input")]).then(t.bind(null,507))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,450))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,459))},uPicker:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(t.bind(null,469))},uDatetimePicker:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-datetime-picker/u-datetime-picker")]).then(t.bind(null,513))}}}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 i=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.show=!0},e.e1=function(n){e.show=!1},e.e2=function(n){e.show1=!1})},r=!1,u=[];i._withStripped=!0},253:function(e,n,t){"use strict";t.r(n);var o=t(254),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},254:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{show:!1,show1:!1,columns:[],backgroundImg:t(255),validType:null,validTypeNum:null,minDate:"",model:{programmeId:"",programmeName:"",startDate:"",endDate:"",cyclePrice:""},rules:{programmeName:{type:"string",required:!0,message:"请选择保险方案",trigger:["blur","change"]},startDate:{type:"string",required:!0,message:"请选择保险生效开始日期",trigger:["blur","change"]}}}},onLoad:function(){this.getSolutionsList()},methods:{getSolutionsList:function(){var e=this;this.$u.api.solutionsList().then((function(n){if(200===n.code){var t=n.data.map((function(e){return{label:e.name,id:e.id,validType:e.validType,validTypeNum:e.validTypeNum}}));e.columns.push(t)}}))},openDate:function(){if(!this.model.programmeId)return e.showToast({title:"请先选择保险方案",icon:"none"});this.show1=!0},confirm:function(e){this.model.programmeId=e.value[0].id,this.model.programmeName=e.value[0].label,this.model.startDate="",this.model.endDate="",1===e.value[0].validType?this.minDate=new Date(this.getFirstDayOfNextMonth()).getTime():0===e.value[0].validType&&(this.minDate=new Date(this.getFutureDate(e.value[0].validTypeNum)).getTime()),this.show=!1},getFutureDate:function(e){var n=new Date;n.setDate(n.getDate()+e);var t=n.getFullYear(),o=n.getMonth()+1,i=n.getDate();return o=("0"+o).slice(-2),i=("0"+i).slice(-2),"".concat(t,"-").concat(o,"-").concat(i)},getFirstDayOfNextMonth:function(){var e=new Date;return e.setDate(1),e.setMonth(e.getMonth()+1),e},confirm1:function(n){var t=this;this.model.startDate=e.$u.timeFormat(n.value,"yyyy-mm-dd")+" 00:00:00",this.$u.api.getCountCyclePriceVO({solutionsId:this.model.programmeId,startDate:this.model.startDate+" 00:00:00"}).then((function(e){200===e.code&&(t.model.cyclePrice=e.data.cyclePrice,t.model.endDate=e.data.endDate)})).finally((function(){t.show1=!1}))},submit:function(){var n=this;this.$refs.uForm.validate().then((function(t){e.navigateTo({url:"/pages/addPersonnel/addPersonnel?model=".concat(JSON.stringify(n.model))})})).catch((function(e){}))}}};n.default=o}).call(this,t(2)["default"])},256:function(e,n,t){"use strict";t.r(n);var o=t(257),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},257:function(e,n,t){},258:function(e,n,t){"use strict";t.r(n);var o=t(259),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},259:function(e,n,t){}},[[249,"common/runtime","common/vendor"]]]);
|