2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
"use strict";(self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[5218],{5218:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});a(7658);var r=function(){var e=this,t=e._self._c;return t("div",[t("van-nav-bar",{attrs:{title:"添加档案","left-arrow":""},on:{"click-left":function(t){return e.$router.push("/my/archives")}}}),t("div",{staticClass:"addarchives"},[t("div",{staticClass:"archives_1"},[t("p",[e._v("[主要病症]")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.value1,expression:"value1"}],attrs:{type:"text",placeholder:"请输入您的主要症状"},domProps:{value:e.value1},on:{input:function(t){t.target.composing||(e.value1=t.target.value)}}})]),t("div",{staticClass:"archives_1"},[t("p",[e._v("[现病史]")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.value2,expression:"value2"}],attrs:{type:"text",placeholder:"请输入您的主要症状"},domProps:{value:e.value2},on:{input:function(t){t.target.composing||(e.value2=t.target.value)}}})]),t("div",{staticClass:"archives_1"},[t("p",[e._v("[既往病史]")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.value3,expression:"value3"}],attrs:{type:"text",placeholder:"请输入您的主要症状"},domProps:{value:e.value3},on:{input:function(t){t.target.composing||(e.value3=t.target.value)}}})]),t("div",{staticClass:"archives_1"},[t("p",[e._v("[最近一次治疗经历]")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.value4,expression:"value4"}],attrs:{type:"text",placeholder:"请输入您的主要症状"},domProps:{value:e.value4},on:{input:function(t){t.target.composing||(e.value4=t.target.value)}}})]),t("div",{staticClass:"archives_2",on:{click:function(t){e.show=!0}}},[e._v(" "+e._s(""==e.value5?"请选择治疗开始时间":e.value5)+" ")]),t("div",{staticClass:"archives_2",on:{click:function(t){e.show1=!0}}},[e._v(" "+e._s(""==e.value6?"请选择治疗结束时间":e.value6)+" ")]),t("div",{staticClass:"archives_2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.value7,expression:"value7"}],attrs:{type:"text",placeholder:"请输入治疗过程"},domProps:{value:e.value7},on:{input:function(t){t.target.composing||(e.value7=t.target.value)}}})]),t("van-uploader",{attrs:{"after-read":e.afterRead}}),t("button",{on:{click:e.addUserArchive}},[e._v("保存")])],1),t("van-overlay",{attrs:{show:e.show}},[t("van-datetime-picker",{staticClass:"picker",attrs:{type:"date",title:"选择年月日"},on:{confirm:e.confirm},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1),t("van-overlay",{attrs:{show:e.show1}},[t("van-datetime-picker",{staticClass:"picker",attrs:{type:"date",title:"选择年月日"},on:{confirm:e.confirms},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1)],1)},s=[],i=a(2900),n=a(340),o={mixins:[n.D],data(){return{show:!1,show1:!1,currentDate:new Date(2021,0,17),value1:"",value2:"",value3:"",value4:"",value5:"",value6:"",value7:"",archivesId:"",picture:""}},methods:{confirm(e){this.show=!1,console.log(e),this.value5=this.changeTime(e)},confirms(e){this.show1=!1,this.value6=this.changeTime(e)},afterRead(e){console.log(e),this.picture=e.file},async addUserArchive(){let e={diseaseMain:this.value1,diseaseNow:this.value2,diseaseBefore:this.value3,treatmentHospitalRecent:this.value4,treatmentProcess:this.value7,treatmentStartTime:this.value5,treatmentEndTime:this.value6},{data:t}=await(0,i.J2)(e);if(console.log(t),"0000"==t.status){let{data:e}=await(0,i.e9)();if(console.log(e),"0000"==e.status){this.archivesId=e.result[0].archivesId;let t={archivesId:this.archivesId,picture:this.picture},{data:a}=await(0,i.go)(t);console.log(a)}this.$router.push("/my/archives")}}},created(){}},l=o,u=a(1001),c=(0,u.Z)(l,r,s,!1,null,"2cecb01f",null),v=c.exports},2900:function(e,t,a){a.d(t,{H3:function(){return s},J2:function(){return n},Ky:function(){return d},bF:function(){return v},bS:function(){return u},e9:function(){return i},fH:function(){return c},go:function(){return o},sM:function(){return h},vf:function(){return l}});var r=a(9028);let s=async e=>(console.log(e),await(0,r.Z)({method:"post",url:"/health/user/verify/v1/recharge",data:{...e},headers:{"Content-Type":"application/x-www-form-urlencoded"}})),i=async e=>await(0,r.Z)({method:"get",url:"/health/user/verify/v1/findUserArchives",params:{...e}}),n=async e=>await(0,r.Z)({method:"post",url:"/health/user/verify/v1/addUserArchives",data:{...e}}),o=async e=>await(0,r.Z)({method:"post",url:"/health/user/verify/v1/uploadArchivesPicture",data:{...e},headers:{"Content-type":"multipart/form-data"}}),l=async e=>await(0,r.Z)({method:"delete",url:"/health/user/verify/v1/deleteUserArchives",params:{archivesId:e}}),u=async e=>await(0,r.Z)({method:"put",url:"/health/user/verify/v1/updateUserArchives",data:{...e},headers:{"Content-type":"application/json"}}),c=async e=>await(0,r.Z)({method:"get",url:"/health/user/verify/v1/findUserDoctorFollowList",params:{...e}}),v=async e=>await(0,r.Z)({method:"get",url:"/health/user/verify/v1/findUserInfoCollectionList",params:{...e}}),d=async e=>await(0,r.Z)({method:"get",url:"/health/user/verify/v1/findUserSickCollectionList",params:{...e}}),h=async e=>await(0,r.Z)({method:"get",url:"/health/user/verify/v1/findVideoCollectionList",params:{...e}})},340:function(e,t,a){a.d(t,{D:function(){return r}});const r={data(){return{}},methods:{changeTime(e){const t=e,a=new Date(t),r=a.getFullYear(),s=a.getMonth()+1,i=a.getDate(),n=a.getHours(),o=a.getMinutes(),l=a.getSeconds(),u=`${r}-${s}-${i} ${n}:${o}:${l}`;return u}}}}}]);
|
|
//# sourceMappingURL=5218.1020bbba.js.map
|