"use strict";const l=require("../../../common/vendor.js"),e=require("../../../common/libraries/day.js"),o=require("../../../gen/Enums.js");if(!Array){(l.resolveComponent("hs-enum-tag")+l.resolveComponent("hs-level")+l.resolveComponent("up-icon"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../components/hs-level/hs-level.js")+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js"))();const n=l.defineComponent({__name:"TemplateWorkorder",props:["item"],setup(n){const i=n;return(n,d)=>{var u,t,v,m,s,r,a,p,c,_,y,g,f,h,k,E,x,T,j,O,W,C,H,M,S,b,q,$,w,P,R,z,A,B,D,I,K,F,G,J,L,N,Q,U,V,X,Y,Z,ll,el;return l.e({a:l.p({value:null==(u=null==i?void 0:i.item)?void 0:u.type,Enums:l.unref(o.CompanyEmployeeBacklogsTypeEnum)}),b:null==(v=null==(t=null==i?void 0:i.item)?void 0:t.model)?void 0:v.type},(null==(s=null==(m=null==i?void 0:i.item)?void 0:m.model)?void 0:s.type)?{c:l.p({value:null==(a=null==(r=null==i?void 0:i.item)?void 0:r.model)?void 0:a.type,Enums:l.unref(o.HouseWorkOrdersTypeEnum)})}:{},{d:null==(c=null==(p=null==i?void 0:i.item)?void 0:p.model)?void 0:c.level},(null==(y=null==(_=null==i?void 0:i.item)?void 0:_.model)?void 0:y.level)?{e:l.p({level:null==(f=null==(g=null==i?void 0:i.item)?void 0:g.model)?void 0:f.level})}:{},{f:l.p({value:null==(h=null==i?void 0:i.item)?void 0:h.status,Enums:l.unref(o.HouseWorkOrdersStatusEnum)}),g:l.n(`btn_status status_${null==(k=null==i?void 0:i.item)?void 0:k.status}`),h:"MyHome"===(null==(x=null==(E=null==i?void 0:i.item)?void 0:E.model)?void 0:x.location)},"MyHome"===(null==(j=null==(T=null==i?void 0:i.item)?void 0:T.model)?void 0:j.location)?{i:l.t(null==(C=null==(W=null==(O=null==i?void 0:i.item)?void 0:O.model)?void 0:W.asset_house)?void 0:C.full_name)}:{},{j:l.t(null==(M=null==(H=null==i?void 0:i.item)?void 0:H.model)?void 0:M.content),k:"WorkOrder"===(null==(S=null==i?void 0:i.item)?void 0:S.type)&&"Pending"===(null==(q=null==(b=null==i?void 0:i.item)?void 0:b.model)?void 0:q.status)&&"MyHome"===(null==(w=null==($=null==i?void 0:i.item)?void 0:$.model)?void 0:w.location)},"WorkOrder"===(null==(P=null==i?void 0:i.item)?void 0:P.type)&&"Pending"===(null==(z=null==(R=null==i?void 0:i.item)?void 0:R.model)?void 0:z.status)&&"MyHome"===(null==(B=null==(A=null==i?void 0:i.item)?void 0:A.model)?void 0:B.location)?{l:l.p({name:"clock",color:(null==(K=l.unref(e.getTimeStatus)(null==(I=null==(D=null==i?void 0:i.item)?void 0:D.model)?void 0:I.expect_end_time))?void 0:K.color)||"#000",size:"14"}),m:l.t(null==(J=l.unref(e.getTimeStatus)(null==(G=null==(F=null==i?void 0:i.item)?void 0:F.model)?void 0:G.expect_end_time))?void 0:J.label),n:l.n(`todo_done_card_footer status_${null==(Q=l.unref(e.getTimeStatus)(null==(N=null==(L=null==i?void 0:i.item)?void 0:L.model)?void 0:N.expect_end_time))?void 0:Q.status}`)}:{},{o:l.t(null==(U=null==i?void 0:i.item)?void 0:U.created_at),p:l.o(e=>(()=>{var e;l.index.navigateTo({url:`/WORKORDER/show/index?id=${null==(e=null==i?void 0:i.item)?void 0:e.model_id}`})})()),q:l.n("todo_done_card "+("WorkOrder"===(null==(V=null==i?void 0:i.item)?void 0:V.type)&&"Pending"===(null==(Y=null==(X=null==i?void 0:i.item)?void 0:X.model)?void 0:Y.status)?`card_status_${null==(el=l.unref(e.getTimeStatus)(null==(ll=null==(Z=null==i?void 0:i.item)?void 0:Z.model)?void 0:ll.expect_end_time))?void 0:el.status}`:""))})}}}),i=l._export_sfc(n,[["__scopeId","data-v-289d39de"]]);wx.createComponent(i);
