You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
20 KiB

6 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["package-packagecarer-pages-createcarer-createcarer"],{3440:function(t,i,a){var e=a("b231");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("967d").default;n("532f83c9",e,!0,{sourceMap:!1,shadowMode:!1})},3471:function(t,i,a){"use strict";a("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,i){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=(0,e.default)(t))||i&&t&&"number"===typeof t.length){a&&(t=a);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,o=!0,c=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){c=!0,l=t},f:function(){try{o||null==a["return"]||a["return"]()}finally{if(c)throw l}}}},a("01a2"),a("e39c"),a("bf0f"),a("844d"),a("18f7"),a("de6c"),a("7a76"),a("c9b5");var e=function(t){return t&&t.__esModule?t:{default:t}}(a("5d6b"))},"37f4":function(t,i,a){"use strict";a("6a54");var e=a("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,a("aa9c");var n=e(a("3471")),s=a("8f30"),l=getApp(),o={data:function(){return{pageTitle:"护工录入",sdate:"",pindex:0,lindex:0,project:[],projectArr:[],levels:[],levelsArr:[],idcard:"",idcardImgCover:"",idcardImgBack:"",imgCover:"",imgBack:"",iconFace:"",isCopy:0,submitData:{project_id:"",name:"",id_card_number:"",mobile:"",join_at:"",work_years:"",paramedic_level_id:"",account:"",bank:"",idcard_front:"",idcard_back:"",has_health_certificate:"",has_work_certificate:"",avatar:""},windowHeight:720,windowWidth:720}},onLoad:function(t){this.loadhospital(),this.windowHeight=l.globalData.winHeight,this.windowWidth=l.globalData.winWidth,s.isNull(t.id)||this.loadInfo(t.id)},methods:{tohome:function(){uni.navigateTo({url:"../../../../pages/index/index"})},open:function(){this.$refs.popup.open()},close:function(){this.$refs.popup.close()},bindChangeInfo:function(t){var i=t.currentTarget.dataset.type;switch(i){case"name":this.submitData.name=t.detail.value;break;case"mobile":this.submitData.mobile=t.detail.value;break;case"idcard":this.submitData.id_card_number=t.detail.value;break;case"workyears":this.submitData.work_years=t.detail.value;break;case"bank":this.submitData.bank=t.detail.value;break;case"account":this.submitData.account=t.detail.value;break}},radioChange:function(t){var i=t.currentTarget.dataset.type;switch(i){case"sex":this.submitData.sex=t.detail.value;break;case"jiankan":this.submitData.has_health_certificate=t.detail.value;break;case"jineng":this.submitData.has_work_certificate=t.detail.value;break}},bindDateChange:function(t){this.sdate=t.detail.value,this.submitData.join_at=t.detail.value},bindProjectChange:function(t){this.pindex=t.detail.value,this.submitData.project_id=this.project[this.pindex].id,this.loadhospitalLevels(this.project[this.pindex].id)},bindLevelChange:function(t){this.lindex=t.detail.value,this.submitData.paramedic_level_id=this.levels[t.detail.value].id},loadhospital:function(){var t=this,i=uni.getStorageSync("currentProject");s.request({api:"manager/get-projects",utilSuccess:function(a){var e,s=[],l=(0,n.default)(a);try{for(l.s();!(e=l.n()).done;){var o=e.value;s.push(o.name)}}catch(c){l.e(c)}finally{l.f()}t.projectArr=s,t.project=a,t.submitData.project_id=i.id,t.loadhospitalLevels(i.id)},utilFail:function(t){s.alert(t)}})},loadhospitalLevels:function(t){var i=this;s.request({api:"manager/get-project-paramedic-levels/"+t,data:{project_id:t},utilSuccess:function(t){var a,e=[],s=(0,n.default)(t);try{for(s.s();!(a=s.n()).done;){var l=a.value;e.push(l.name)}}catch(o){s.e(o)}finally{s.f()}i.levelsArr=e,i.levels=t,i.submitData.paramedic_level_id=t[0].id},utilFail:function(t){s.alert(t)}})},bindsubmitFun:function(){var t=this;if(s.isLogin())if(s.isNull