"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),n=require("./method.js"),s=require("../../../gen/Enums.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("uni-icons")+e.resolveComponent("up-icon")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../components/hs-tabs/hs-tabs.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const t=e.defineComponent({__name:"index",setup(t){const l=[{label:"全部",value:""},{label:"已完成",value:"Completed"},{label:"进行中",value:"Processing"}];return e.onLoad(async()=>{var s,t;await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),o.useModel.dataList.value=[],null==(t=n.method)||t.getList()}),(t,u)=>{var r,i,a,c,m,d,v,p;return{a:e.o(null==(r=e.unref(n.method))?void 0:r.changeTab),b:e.p({list:l,current:null==(a=null==(i=e.unref(o.useModel))?void 0:i.tabCurrent)?void 0:a.value}),c:e.f(null==(m=null==(c=e.unref(o.useModel))?void 0:c.dataList)?void 0:m.value,(o,t,l)=>{var u;return e.e({a:e.t(null==o?void 0:o.task_name),b:"Processing"===(null==o?void 0:o.status)},"Processing"===(null==o?void 0:o.status)?{c:"9447b322-2-"+l+",9447b322-1",d:e.p({type:"refreshempty",size:"14",color:"#0082fa"})}:{},{e:"9447b322-3-"+l+",9447b322-1",f:e.t(null==(u=null==o?void 0:o.company_employee)?void 0:u.name),g:"9447b322-4-"+l+",9447b322-1",h:e.t(null==o?void 0:o.created_at),i:"9447b322-5-"+l+",9447b322-1",j:e.p({value:null==o?void 0:o.status,Enums:e.unref(s.HouseCollectionTasksStatusEnum)}),k:"9447b322-6-"+l+",9447b322-1",l:e.p({type:"right",size:"15",color:"Processing"===(null==o?void 0:o.status)?"#0082fa":"#67C23A"}),m:e.n(`status status_${null==o?void 0:o.status}`),n:`items_${t}`,o:e.n(`collection_record_item items_${null==o?void 0:o.status}`),p:e.o(s=>{var t;return null==(t=e.unref(n.method))?void 0:t.goDetail(o)},`items_${t}`)})}),d:e.p({type:"person",size:"15",color:"#C4C4C4"}),e:e.p({name:"clock",size:"15",color:"#C4C4C4"}),f:e.o(null==(d=e.unref(n.method))?void 0:d.load),g:e.p({meta:null==(p=null==(v=e.unref(o.useModel))?void 0:v.meta)?void 0:p.value})}}}});wx.createPage(t);
