"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),s=require("../../gen/Apis.js"),r=require("./model.js"),i=require("../../common/libraries/naviHelper.js");require("../../common/libraries/request.js");const u=require("../../common/store/useWeAppAuthStore.js"),t=require("../../common/store/useWorkStore.js");require("../../common/libraries/userUserLogin.js"),t.useWorkStore(),u.useWeAppAuthStore();const a=()=>{o.getApiLoading(s.Apis.Archive.HouseOccupants.List,{}).then((e=>{r.useModel.dataList.value=null==e?void 0:e.data,r.useModel.metaData.value=null==e?void 0:e.meta,console.log(e)}))},l={getHouseList:a,handleTableChange(e){r.useModel.current.value=e,e?r.useModel.dataList.value=[]:a(),console.log(e,"eee")},toNext(){var o,s,u;if(!(null==(u=null==(s=null==(o=r.useModel)?void 0:o.formData)?void 0:s.value)?void 0:u.asset_houses_id))return i.showToastBack("请选择房屋！");e.index.navigateTo({url:"/INDEX/collection/confirm"})},handleSelect(e){r.useModel.formData.value.asset_houses_id=null==e?void 0:e.asset_houses_id}};exports.method=l;
