(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-add"],{"036a":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0");var a=i(n("5904")),o=i(n("4f9a")),s=getApp(),r={components:{cpicker:a.default,wpicker:o.default},data:function(){return{flag:!1,start:"",startVisible:!1,contact:"",name:"",phone:"",ill:"",age:"",bed:"",gender:{id:1,title:"男"},genderShow:!1,genders:[{id:1,title:"男"},{id:2,title:"女"}],dep:{id:0,title:""},depShow:!1,deps:[],remark:""}},onLoad:function(t){var e=this.getUrlCode("orgId");e?(uni.setStorageSync(s.globalData.storagePre+"orgId",e),s.globalData.userinfo.orgId=e):(e=uni.getStorageSync(s.globalData.storagePre+"orgId"),e?s.globalData.userinfo.orgId=e:uni.showToast({title:"参数错误",icon:"none",duration:2e3}))},onShow:function(){var t=this;s.ajaxReadyCallback=function(e){var n=e.data.apiname;console.log(e),"dep"==n?t.deps=e.data.data:"order"==n&&uni.navigateTo({url:"/pages/index/success"})},this.getDep()},methods:{getUrlCode:function(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},selectGender:function(){this.genderShow=!0},selectedGenderVal:function(t){console.log(t),this.gender=t},selectDep:function(){this.depShow=!0},selectedDepVal:function(t){console.log(t),this.dep=t},getDep:function(){s.ajax({url:s.globalData.serverUrl+"common/dep",type:"POST",apiname:"dep"})},onConfirm:function(t,e){this.start=t.result},selectStart:function(){this.startVisible=!0},saveBtn:function(){if(this.contact)if(this.phone)if(this.name)if(this.age)if(this.bed)if(this.ill)if(this.start){var t={contact:this.contact,phone:this.phone,name:this.name,gender:this.gender.id,age:this.age,bed:this.bed,ill:this.ill,start:this.start,remark:this.remark,depId:this.dep.id};s.ajax({url:s.globalData.serverUrl+"worker/order",type:"POST",apiname:"order",data:t})}else uni.showToast({title:"请选择预约时间",icon:"none",duration:2e3});else uni.showToast({title:"请输入所患疾病",icon:"none",duration:2e3});else uni.showToast({title:"请输入床号",icon:"none",duration:2e3});else uni.showToast({title:"请输入年龄",icon:"none",duration:2e3});else uni.showToast({title:"请输入姓名",icon:"none",duration:2e3});else uni.showToast({title:"请输入手机号",icon:"none",duration:2e3});else uni.showToast({title:"请输入联系人",icon:"none",duration:2e3})}}};e.default=r},"26cc":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={cpicker:n("5904").default,wPicker:n("4f9a").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"container book-main"},[i("v-uni-view",{staticClass:"form-box"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("选择科室")]),i("v-uni-view",{staticClass:"form-box-content",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectDep.apply(void 0,arguments)}}},[t.dep.title?t._e():i("v-uni-view",{staticClass:"form-box-content-text"},[t._v("请选择")]),t.dep.title?i("v-uni-view",{staticClass:"form-box-content-text"},[t._v(t._s(t.dep.title))]):t._e(),i("v-uni-image",{attrs:{src:n("b853")}})],1)],1),i("v-uni-view",{staticClass:"form-box"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("联系人"),i("v-uni-text",{staticClass:"text-red"},[t._v("*")])],1),i("v-uni-view",{staticClass:"form-box-content"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请填写"},model:{value:t.contact,callback:function(e){t.contact=e},expression:"contact"}})],1)],1),i("v-uni-view",{staticClass:"form-box"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("联系手机号"),i("v-uni-text",{staticClass:"text-red"},[t._v("*")])],1),i("v-uni-view",{staticClass:"form-box-content"},[i("v-uni-input",{attrs:{type:"tel",placeholder:"请填写"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1)],1),i("v-uni-view",{staticClass:"form-box form-box2"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("被陪护人信息")]),i("v-uni-view",{staticClass:"form-box-sub"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("姓名"),i("v-uni-text",{staticClass:"text-red"},[t._v("*")])],1),i("v-uni-view",{staticClass:"form-box-content"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请填写"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1)],1),i("v-uni-view",{staticClass:"form-box-sub"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("性别"),i("v-uni-text",{staticClass:"text-red"},[t._v("*")])],1),i("v-uni-view",{staticClass:"form-box-content",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectGender.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"form-box-content-text"},[t._v(t._s(t.gender.title))]),i("v-uni-image",{attrs:{src:n("b853")}})],1)],1),i("v-uni-view",{staticClass:"form-box-sub"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("年龄"),i("v-uni-text",{staticClass:"text-red"},[t._v("*")])],1),i("v-uni-view",{staticClass:"form-box-content"},[i("v-uni-input",{attrs:{type:"number",placeholder:"请填写"},model:{value:t.age,callback:function(e){t.age=e},expression:"age"}})],1)],1),i("v-uni-view",{staticClass:"form-box-sub"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("床号"),i("v-uni-text",{staticClass:"text-red"},[t._v("*")])],1),i("v-uni-view",{staticClass:"form-box-content"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请填写"},model:{value:t.bed,callback:function(e){t.bed=e},expression:"bed"}})],1)],1),i("v-uni-view",{staticClass:"form-box-sub"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("所患疾病"),i("v-uni-text",{staticClass:"text-red"},[t._v("*")])],1),i("v-uni-view",{staticClass:"form-box-content"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请填写"},model:{value:t.ill,callback:function(e){t.ill=e},expression:"ill"}})],1)],1)],1),i("v-uni-view",{staticClass:"form-box"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("预约时间"),i("v-uni-text",{staticClass:"text-red"},[t._v("*")])],1),i("v-uni-view",{staticClass:"form-box-content"},[i("v-uni-view",{staticClass:"form-box-content",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectStart.apply(void 0,arguments)}}},[t.start?t._e():i("v-uni-view",{staticClass:"form-box-content-text"},[t._v("请选择")]),t.start?i("v-uni-view",{staticClass:"form-box-content-text"},[t._v(t._s(t.start))]):t._e(),i("v-uni-image",{attrs:{src:n("b853")}})],1)],1)],1),i("v-uni-view",{staticClass:"form-box form-box2"},[i("v-uni-view",{staticClass:"form-box-label"},[t._v("备注")]),i("v-uni-view",{staticClass:"form-box-textarea"},[i("v-uni-textarea",{staticStyle:{height:"120rpx"},attrs:{placeholder:"请填写"},model:{value:t.remark,callback:function(e){t.remark=e},expression:"remark"}})],1)],1),i("v-uni-view",{staticClass:"book-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.saveBtn()}}},[t._v("提交")])],1),t.genders.length>0?i("cpicker",{attrs:{list:t.genders,show:t.genderShow,did:t.gender.id},on:{"update:show":function(e){arguments[0]=e=t.$handleEvent(e),t.genderShow=e},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.selectedGenderVal.apply(void 0,arguments)}}}):t._e(),t.deps.length>0?i("cpicker",{attrs:{list:t.deps,show:t.depShow,did:t.dep.id},on:{"update:show":function(e){arguments[0]=e=t.$handleEvent(e),t.depShow=e},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.selectedDepVal.apply(void 0,arguments)}}}):t._e(),i("w-picker",{ref:"date",attrs:{visible:t.startVisible,mode:"date",startYear:"2021",endYear:"5000",themeColor:"#006489",value:t.start,current:!0,fields:"minute","disabled-after":!1},on:{"update:visible":function(e){arguments[0]=e=t.$handleEvent(e),t.startVisible=e},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm(e,"date")}}})],1)},o=[]},"73e9":function(t,e,n){var i=n("c395");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("2bac8505",i,!0,{sourceMap:!1,shadowMode:!1})},"821f":function(t,e,n){"use strict";var i=n("73e9"),a=n.n(i);a.a},"8b3e":function(t,e,n){"use strict";n.r(e);var i=n("036a"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},a0a7:function(t,e,n){"use strict";n.r(e);var i=n("26cc"),a=n("8b3e");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("821f");var s=n("f0c5"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"273da9d4",null,!1,i["a"],void 0);e["default"]=r.exports},b853:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACiklEQVRoQ+2ZPWsUQRjH/89GFBURxc8hiIWFWFgIgo2F4MtFDYadZ0mRRiFFmrNJkUKbwO3uRTG+e6AIYqGF+G2uu7sPYOaRgSk2Qw5yNy/HwU29s/x+8/yf2d1ZwpwPmnN+LARmXcFFBea+Ar1eb2k4HL4hou9Kqa+phbwiZOAHg8EeEbUA/BOR5aIovqSU8BKoquoVgCcN4H0ieqyU+pBKwkugrusVEdkFsNSUALDKzHspJLwEDGBd1y0RMbBNCQ2AmdnIRR3eAoauLMu7RPQewLEGrYjIWlEUZUyDIAJW4g4Rmewfb0oAWGfmnVgSwQQMYFVVtwGYXciVeMrML2NIBBWwErcAmOfBCQd4g5m3Q0sEF7BxuklE3wCcdIA3mXkrpEQUAStxwzydAZxygNvM/DyURDQBG6frAH4AOO0AbzHzZgiJqAIGsNvtXtNa/wRwxgHeZuYNX4noAgaw0+lczbLMSJxtAhPRizzPnxGRTCuSRMDG6QqAX64EgB2l1Pq0EskEbJwua61/AzjvVKLM83xtGomkAjZOl7IsMxIXnNjs9vt9brfb5j3qyCO5gK3ERa31XwDnHNLXzLx6ZHpgNqcSVVU9APDWfQ0XkdakH0TJKzAOnoiWlVKfJ1l9c21SgdDwSQViwCcTiAWfRKAsy/tE9M5t2Gkz7/ZI1B4YBy8iD4ui+DRpwx52fTSBFPDRIpQKPopASvjgAqnhgwrUdX1PRMzZ0IFTupANG62Jx8EDeMTMH0PsNuPu4b0LzRLeO0KzhvcWOOx4PUVsDnzN+eTT/uDYJaIVAPup4b0rYG5gJEajUSUif2I3bLRdyKeKvnO9dyFfAN/5CwHfFfSdv6iA7wr6zv8PFewYQB1TTzEAAAAASUVORK5CYII="},c395:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.navbg[data-v-273da9d4]{width:100%;height:%?300?%}.book-main[data-v-273da9d4]{width:%?710?%;overflow-y:auto;overflow-x:hidden}.book-btn[data-v-273da9d4]{width:%?710?%;height:%?90?%;line-height:%?90?%;background-color:var(--themeColor);color:#fff;font-size:%?34?%;font-weight:700;text-align:center;border-radius:%?10?%}',""]),t.exports=e}}]);