(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-medical-drugsApproval"],{1240:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={hzHeader:i("9437").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"hzIndex"},[a("hzHeader",{attrs:{title:"就诊预约受理"}}),a("v-uni-view",{staticClass:"container hzContent"},[a("v-uni-view",{staticClass:"main"},[a("v-uni-view",{staticClass:"tab-box"},[a("v-uni-view",{staticClass:"tab-item",class:0==t.currentTabIndex?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.currentTabIndex=0}}},[t._v("未审批"),0==t.currentTabIndex?a("v-uni-view",{staticClass:"tabBottom"}):t._e()],1),a("v-uni-view",{staticClass:"tab-item",class:1==t.currentTabIndex?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.currentTabIndex=1}}},[t._v("已审批"),1==t.currentTabIndex?a("v-uni-view",{staticClass:"tabBottom"}):t._e()],1)],1),0==t.currentTabIndex?a("v-uni-view",{staticClass:"list-box"},t._l(t.list0,(function(e,n){return a("v-uni-view",{key:n,staticClass:"detail-box"},[a("v-uni-view",{staticClass:"detail_header",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-image",{staticClass:"blueSign",attrs:{src:i("595e"),mode:""}}),a("v-uni-text",{staticClass:"font-tilte"},[t._v("药品预定")])],1),a("v-uni-view",{staticClass:"detail_msg"},[a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("姓名:")]),a("v-uni-text",{staticClass:"infoSpan"},[t._v(t._s(e.user_name))])],1),a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("联系电话:")]),a("v-uni-text",{staticClass:"infoSpan"},[t._v(t._s(e.tel_number))])],1),a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("部门:")]),a("v-uni-text",{staticClass:"infoSpan"},[t._v(t._s(e.dept_name))])],1),a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("预计到货时间:")]),a("v-uni-text",{staticClass:"infoSpan"},[t._v(t._s(e.pickDate))])],1),a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("详情:")]),a("v-uni-text",{staticClass:"infoSpan"},t._l(e.detailList,(function(e,i){return a("v-uni-text",{key:i},[0!=i?a("v-uni-text",[t._v(",")]):t._e(),t._v(t._s(e.drugs_name)+"x"+t._s(e.drugs_num))],1)})),1)],1)],1)],1)})),1):t._e(),1==t.currentTabIndex?a("v-uni-view",{staticClass:"list-box"},t._l(t.list1,(function(e,n){return a("v-uni-view",{key:n,staticClass:"detail-box"},[a("v-uni-view",{staticClass:"detail_header",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-image",{staticClass:"blueSign",attrs:{src:i("595e"),mode:""}}),a("v-uni-text",{staticClass:"font-tilte"},[t._v("药品预定")]),1==e.status?a("v-uni-text",{staticClass:"font-result"},[t._v("已同意")]):t._e(),2==e.status?a("v-uni-text",{staticClass:"font-result",staticStyle:{color:"red"}},[t._v("已拒绝")]):t._e()],1),a("v-uni-view",{staticClass:"detail_msg"},[a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("姓名:")]),a("v-uni-text",{staticClass:"infoSpan"},[t._v(t._s(e.user_name))])],1),a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("联系电话:")]),a("v-uni-text",{staticClass:"infoSpan"},[t._v(t._s(e.tel_number))])],1),a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("部门:")]),a("v-uni-text",{staticClass:"infoSpan"},[t._v(t._s(e.dept_name))])],1),a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("预计到货时间:")]),a("v-uni-text",{staticClass:"infoSpan"},[t._v(t._s(e.pickDate))])],1),a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("详情:")]),a("v-uni-text",{staticClass:"infoSpan"},t._l(e.detailList,(function(e,i){return a("v-uni-text",{key:i},[0!=i?a("v-uni-text",[t._v(",")]):t._e(),t._v(t._s(e.drugs_name)+"x"+t._s(e.drugs_num))],1)})),1)],1),a("v-uni-view",{staticClass:"info-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.detail(e)}}},[a("v-uni-text",[t._v("预定时间:")]),a("v-uni-text",{staticClass:"infoSpan"},[t._v(t._s(e.createTime))])],1)],1)],1)})),1):t._e(),0==t.currentTabIndex&&0==t.list0.length?a("content-none",{attrs:{padTop:20}}):t._e(),1==t.currentTabIndex&&0==t.list1.length?a("content-none",{attrs:{padTop:20}}):t._e()],1),a("load-more",{directives:[{name:"show",rawName:"v-show",value:0==t.currentTabIndex,expression:"currentTabIndex == 0 "}],attrs:{loadingType:t.loadingType0,contentText:t.contentText0}}),a("load-more",{directives:[{name:"show",rawName:"v-show",value:1==t.currentTabIndex,expression:"currentTabIndex == 1 "}],attrs:{loadingType:t.loadingType1,contentText:t.contentText1}})],1)],1)},o=[]},"22f8":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223"),i("aa9c"),i("5ef2");var n=a(i("b7c7")),o=(a(i("ec41")),i("5ffc")),d=i("2352"),c=a(i("144a")),r=(a(i("3c81")),a(i("4c78"))),s=a(i("e39e")),l=a(i("5d94")),u={data:function(){return{userId:(0,d.getStorage)("userInfo").userId,currentTabIndex:0,page0:1,pageSize0:10,loadingType0:2,page1:1,pageSize1:10,loadingType1:2,list0:[],list1:[],stateList:["待审核","已通过","已拒绝"],contentText0:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},contentText1:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},items:[{value:"0",name:"全选",checked:!1},{value:"1",name:"取消选择",checked:!1}],objList:[],paramsDataList:[],checkedListId:[]}},components:{loadMore:c.default,contentNone:r.default,UniPopup:s.default,xflSelect:l.default},watch:{currentTabIndex:function(t,e){this.currentTabIndex=t,0==this.currentTabIndex?(this.page0=1,this.loadingType0=0):1==this.currentTabIndex&&(this.page1=1,this.loadingType1=0),this.getDrugsApplyList()}},onLoad:function(t){this.currentTabIndex=t.currentTabIndex||0},onShow:function(){this.getDrugsApplyList()},methods:{detail:function(t){uni.navigateTo({url:"/pages/medical/drugsApprovalDetail?id="+t.id})},getDrugsApplyList:function(){var t=this,e={};e=0==this.currentTabIndex?{userId:this.userId,page:this.page0,pageSize0:this.pageSize,status:0}:{userId:this.userId,page:this.page1,pageSize1:this.pageSize,status:3};var i={method:o.getDrugsApplyList,data:e};(0,d.callbackRequest)(i).then((function(e){if(1==e.data.returnCode){var i=e.data.returnData||[];0==t.currentTabIndex?1==t.page0?t.list0=i:i.length>0?(t.list0=[].concat((0,n.default)(t.reservationList0),[i]),t.loadingType0=0):t.loadingType0=2:1==t.page1?t.list1=i:i.length>0?(t.list1=[].concat((0,n.default)(t.reservationList1),[i]),t.loadingType1=0):t.loadingType1=2}else(0,d.alertTip)(e.data.returnMsg)}))},toDetail:function(t){uni.navigateTo({url:t})},checkBox:function(t,e){t.stopPropagation(),t.preventDefault();e.checkValue=!e.checkValue;var i=[];if(this.checkedListId.length>0&&this.checkedListId[0].appointmentType!=e.appointmentType){(0,d.alertTip)("请选择来访类型相同的数据进行审批!"),this.$set(e,"checkValue",!1);for(var a=0,n=0;n