"use strict";const e=require("../../common/vendor.js"),i=require("./model.js"),l=require("../../gen/Apis.js"),d=require("../../common/libraries/apiLoading.js");require("../../common/libraries/userUserLogin.js");const a=()=>{var e,a;d.getApiLoading(l.Apis.Grid.Grids.GridAssetHouse,null==(a=null==(e=i.useModel)?void 0:e.formData)?void 0:a.value).then(e=>{i.useModel.listData.value=(null==e?void 0:e.data)||[],i.useModel.metaData.value=(null==e?void 0:e.meta)||{},console.log(e)})},o=()=>{i.useModel.formData.value.page=1,i.useModel.listData.value=[],a()},s={handleChangeBuilding(e){(null==e?void 0:e.id)!==i.useModel.formData.value.asset_buildings_id&&(i.useModel.formData.value.asset_buildings_id=null==e?void 0:e.id,o()),console.log(e,"e")},getGridAssetBuilding(){d.getApiLoading(l.Apis.Grid.Grids.GridAssetBuilding,{}).then(e=>{var l,d;i.useModel.buildingData.value=(null==e?void 0:e.data)||[],(null==(l=null==e?void 0:e.data)?void 0:l.length)&&(i.useModel.formData.value.asset_buildings_id=null==(d=null==e?void 0:e.data[0])?void 0:d.id,a()),console.log(e)})},handleSearch:o,toDetaile(i){e.index.navigateTo({url:`/BILL/outstanding_fee/show/index?id=${null==i?void 0:i.id}`})}};exports.method=s;
