1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-medical-see-doctor-sl"],{"0839":function(t,e,a){var i=a("a155");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("5dd62e00",i,!0,{sourceMap:!1,shadowMode:!1})},"6eca":function(t,e,a){"use strict";var i=a("0839"),n=a.n(i);n.a},8197:function(t,e,a){"use strict";(function(t){a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("c223"),a("5c47"),a("a1c1"),a("aa9c");var n=i(a("39d8")),o=a("5ffc"),d=a("2352"),c=i(a("4c78")),r={data:function(){var t;return t={userInfo:(0,d.getStorage)("userInfo"),pos:0,isActive:-9,kindActive:0,barber1:0,barber2:1,barberActive:0,barberActive1:-1,part:"",name:"",tel:"",key:!0,date:(0,d.getDate)(),chooseDateIndex:0,detailList:[{deptName:"大数据事业部",code:"D302",userName:"刘晓明",tel:"15056771234",type:"心电图"}],fagtime:"",projectList:[],chooseProjectId:0,parent_id:"",callPhone:d.callPhone,currentTabIndex:0,page:1,pageSize:10,loadingType:0,contentText:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},user:(0,d.getStorage)("userInfo"),appointlist:[]},(0,n.default)(t,"date",(0,d.getNumDate)(7)),(0,n.default)(t,"formatDate",d.formatDate),(0,n.default)(t,"startDate",this.getDay(-7)),(0,n.default)(t,"endDate",this.getDay(0)),(0,n.default)(t,"areas",["","会议中心","科技楼"]),(0,n.default)(t,"count",""),t},components:{contentNone:c.default},onLoad:function(t){this.parent_id=t.parent_id||"",this.initData()},watch:{currentTabIndex:function(t,e){this.chooseProjectInfoId=0,1==t?(this.page=1,this.loadingType=0,this.getListYY()):this.initData()}},methods:{goEditPage:function(t,e){uni.redirectTo({url:"/pages/medical/see-doctor-edit?id="+t.id+"&type=2"})},getListYY:function(){var e=this,a={method:o.getAllSeekmedicalProjectRecord,data:{pageNum:this.page,pageSize:this.pageSize,startDate:this.startDate,endDate:this.endDate,userId:this.user.id}};t.log("222",a),(0,d.callbackRequest)(a).then((function(t){1==t.data.returnCode&&(1==e.page?(e.appointlist=t.data.returnData.list||[],e.count=t.data.returnData.count||0):t.data.returnData.length>0?(e.appointlist=e.appointlist.concat(t.data.returnData.list),e.loadingType=0):e.loadingType=2)}))},startDateChange:function(t){this.startDate=t.target.value,this.page=1,this.loadingType=0,this.getListYY()},endDateChange:function(t){this.endDate=t.target.value,this.page=1,this.loadingType=0,this.getListYY()},getDay:function(t){var e=new Date((new Date).getTime()+24*t*60*60*1e3),a=e.getFullYear(),i=e.getMonth()+1;i<10&&(i="0"+i);var n=e.getDate();return n<10&&(n="0"+n),a+"-"+i+"-"+n},getList:function(){var t=this,e={method:o.getSlSeekmedicalProjectRecord,data:{projectId:this.chooseProjectId,applyDate:this.date[this.chooseDateIndex].tiems}};(0,d.callbackRequest)(e).then((function(e){var a=e.data.returnData||[],i=[],n=t.date[0].tiems;n=n.replace(/-/g,"/");for(var o=new Date(n).getTime(),d=0;d<a.length;d++){var c=a[d],r=c.apply_date;r=r.replace(/-/g,"/");var s=new Date(r).getTime();c.editFlag=s>o,i.push(c)}1==e.data.returnCode&&(t.appointlist=i)}))},chooseProject:function(t){this.chooseProjectId=t.id,this.choseProject=t,this.getList()},initData:function(){var t=this,e={method:o.getSeekmedicalProjectSl,data:{userId:this.userInfo.id,applyDate:this.date[this.chooseDateIndex].tiems,parentId:this.parent_id}};(0,d.callbackRequest)(e).then((function(e){e=e.data,"1"===e.returnCode&&(t.projectList=e.returnData,t.chooseProjectId=e.returnData[0].id,t.choseProject=e.returnData[0],t.getList())}))},switchTab:function(t){this.chooseDateIndex=t,this.isActive="",this.initData()},checkItem:function(t){this.isActive=t},handle:function(t){this.kindActive=t},check:function(t){this.barberActive=t},cancel:function(t){if(confirm("是否取消")){t.id}},onNavigationBarButtonTap:function(t){var e=t.index;if(0==e){uni.navigateTo({url:"/pages/medical/see-doctor-history"})}},change:function(t){storage.set({id:t,openType:8}),window.location.href="./haircut
|