"use strict";const e=require("../../../../common/vendor.js"),o=require("../../../../gen/Enums.js"),l=require("../model.js"),n=require("../../../../common/libraries/day.js"),u=require("../method.js");if(require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../gen/Apis.js"),require("../../../../common/store/useWatermarkStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/apiLoading.js"),require("../../../../common/libraries/naviHelper.js"),require("../../../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-level")+e.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 t=e.defineComponent({__name:"WorkOrderList",setup(t){let s=[{label:"全部",value:void 0},{label:"待处理",value:"Pending"},{label:"处理中",value:"Processing"},{label:"已完成",value:"Completed"}];return(t,r)=>{var i,a;return{a:e.f(e.unref(s),(o,n,t)=>{var s,r,i;return{a:e.t(null==o?void 0:o.label),b:`tab_${n}`,c:e.n("items "+((null==(i=null==(r=null==(s=e.unref(l.useModel))?void 0:s.formData)?void 0:r.value)?void 0:i.status)===(null==o?void 0:o.value)?"active":"")),d:e.o(e=>(e=>{var o;l.useModel.formData.value.status=null==e?void 0:e.value,l.useModel.listData.value=[],null==(o=u.method)||o.loadMore(1)})(o),`tab_${n}`)}}),b:e.f(null==(a=null==(i=e.unref(l.useModel))?void 0:i.listData)?void 0:a.value,(l,u,t)=>{var s,r,i,a,d;return e.e({a:"08c86bd8-0-"+t,b:e.p({value:null==l?void 0:l.type,Enums:e.unref(o.HouseWorkOrdersTypeEnum)}),c:"08c86bd8-1-"+t,d:e.p({level:null==l?void 0:l.level}),e:"08c86bd8-2-"+t,f:e.p({value:null==l?void 0:l.status,Enums:e.unref(o.HouseWorkOrdersStatusEnum)}),g:e.n(`btn_status status_${null==l?void 0:l.status}`),h:e.t(null==(s=null==l?void 0:l.asset_house)?void 0:s.full_name),i:e.t(null==l?void 0:l.content),j:e.f(null==l?void 0:l.attachments,(e,o,l)=>({a:null==e?void 0:e.url,b:`img_${o}`})),k:"Pending"===(null==l?void 0:l.status)},"Pending"===(null==l?void 0:l.status)?{l:"08c86bd8-3-"+t,m:e.p({name:"clock",color:(null==(r=e.unref(n.getTimeStatus)(null==l?void 0:l.expect_end_time))?void 0:r.color)||"#000",size:"14"}),n:e.t(null==(i=e.unref(n.getTimeStatus)(null==l?void 0:l.expect_end_time))?void 0:i.label),o:e.n(`todo_done_card_footer status_${null==(a=e.unref(n.getTimeStatus)(null==l?void 0:l.expect_end_time))?void 0:a.status}`)}:{},{p:e.t(null==l?void 0:l.created_at),q:`items_${u}`,r:e.o(o=>{return n=l,void e.index.navigateTo({url:`/WORKORDER/show/index?id=${null==n?void 0:n.id}`});var n},`items_${u}`),s:e.n("todo_done_card "+("Pending"===(null==l?void 0:l.status)?`card_status_${null==(d=e.unref(n.getTimeStatus)(null==l?void 0:l.expect_end_time))?void 0:d.status}`:""))})})}}}}),s=e._export_sfc(t,[["__scopeId","data-v-08c86bd8"]]);wx.createComponent(s);
