(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-house-house-examine"],{1135:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("c975"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2909")),o=(n(i("3403")),i("d24f")),c=i("fb8c"),f=n(i("474f")),d=(n(i("bb31")),n(i("28ef"))),r=n(i("4729")),s=n(i("b539")),l={data:function(){return{userId:(0,c.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:"没有更多数据了"},objList:[],paramsDataList:[],checkedListId:[],examineBatch:""}},components:{loadMore:f.default,contentNone:d.default,UniPopup:r.default,xflSelect:s.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.greenHouseExaminePage()}},onLoad:function(t){this.currentTabIndex=t.currentTabIndex||0,this.examineBatch=t.examineBatch||1},onShow:function(){this.greenHouseExaminePage()},methods:{detail:function(t){uni.navigateTo({url:"/pages/house/house-detail?id="+t.id+"&queryType=1&examineBatch="+this.examineBatch})},greenHouseExaminePage:function(){var t=this,e={};e=0==this.currentTabIndex?{userId:this.userId,pageNum:this.page0,pageSize:this.pageSize0,examineBatch:this.examineBatch,examineState:0,orgId:(0,c.getStorage)("userInfo").department_id}:{userId:this.userId,pageNum:this.page1,pageSize:this.pageSize1,examineBatch:this.examineBatch,examineState:1,orgId:(0,c.getStorage)("userInfo").department_id};var i={method:o.greenHouseExaminePage,data:e};(0,c.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,a.default)(t.reservationList0),[i]),t.loadingType0=0):t.loadingType0=2:1==t.page1?t.list1=i:i.length>0?(t.list1=[].concat((0,a.default)(t.reservationList1),[i]),t.loadingType1=0):t.loadingType1=2}else(0,c.alertTip)(e.data.returnMsg)}))},toDetail:function(t){uni.navigateTo({url:t})},checkBox:function(t,e){t.stopPropagation(),t.preventDefault();var i=this,n=(e.checkValue=!e.checkValue,[]);if(i.checkedListId.length>0&&i.checkedListId[0].appointmentType!=e.appointmentType){(0,c.alertTip)("请选择来访类型相同的数据进行审批!"),i.$set(e,"checkValue",!1);for(var a=0,o=0;o