"use strict";const e=require("../../../common/vendor.js"),l=require("../../../common/libraries/apiLoading.js"),o=require("../../../gen/Apis.js"),a=require("./model.js"),t=require("../../../gen/Enums.js"),s=()=>{var e,l;o.Apis.Collection.HouseCollectionTasks.List(null==(l=null==(e=a.useModel)?void 0:e.formData)?void 0:l.value).then(e=>{a.useModel.dataList.value=[...a.useModel.dataList.value,...null==e?void 0:e.data],a.useModel.meta.value=null==e?void 0:e.meta,console.log("登录",null==e?void 0:e.data)})},i=e=>{l.getApiLoading(o.Apis.Collection.HouseCollectionRecords.GetTaskRecords,{collection_tasks_id:e}).then(e=>{a.useModel.showDataTable.value=null==e?void 0:e.data})},u={getList:s,changeTab(e,l){a.useModel.tabCurrent.value=e,a.useModel.formData.value.status=null==l?void 0:l.value,a.useModel.formData.value.page=1,a.useModel.dataList.value=[],s()},load(e){a.useModel.formData.value.page=null==e?void 0:e.page,s()},goDetail(l){e.index.navigateTo({url:`/BILL/collection_record/show?id=${null==l?void 0:l.id}`})},getShow(e){l.getApiLoading(o.Apis.Collection.HouseCollectionTasks.Show,{id:e}).then(e=>{var l;a.useModel.showData.value=null==e?void 0:e.data,i(null==(l=null==e?void 0:e.data)?void 0:l.id)})},getTaskRecords:i,getShowChannel(e){let l="";return null==e||e.map(e=>{var o;l+=e?`${null==(o=t.HouseCollectionTasksChannelEnum[e])?void 0:o.text} `:""}),l}};exports.method=u;
