"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Enums.js"),t=require("./method.js"),l=require("./model.js");if(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-enum-tag")+e.resolveComponent("hs-up-rate")+e.resolveComponent("hs-button")+e.resolveComponent("cc-scroll-loading"))()}Math||(n+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-up-rate/hs-up-rate.js")+(()=>"../../components/hs-button/hs-button.js")+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const n=()=>"./components/header.js",u=e.defineComponent({__name:"index",setup:n=>(e.onShow(()=>{var e;l.useModel.formData.value.page=1,l.useModel.dataList.value=[],null==(e=t.method)||e.getList()}),(n,u)=>{var s,a,r,i,d;return{a:e.f(null==(a=null==(s=e.unref(l.useModel))?void 0:s.dataList)?void 0:a.value,(l,n,u)=>{var s,a;return e.e({a:"9ec83e52-2-"+u+",9ec83e52-1",b:e.p({value:null==l?void 0:l.type,Enums:e.unref(o.HouseWorkOrdersTypeEnum)}),c:null==l?void 0:l.location},(null==l?void 0:l.location)?{d:"9ec83e52-3-"+u+",9ec83e52-1",e:e.p({value:null==l?void 0:l.location,Enums:e.unref(o.HouseWorkOrdersLocationEnum)})}:{},{f:"9ec83e52-4-"+u+",9ec83e52-1",g:e.p({value:null==l?void 0:l.status,Enums:e.unref(o.HouseWorkOrdersStatusEnum)}),h:e.n(`btn_status btn_status_${null==l?void 0:l.status}`),i:e.t((null==(s=null==l?void 0:l.asset_house)?void 0:s.full_name)||(null==(a=null==l?void 0:l.asset_project)?void 0:a.name)),j:e.t(null==l?void 0:l.content),k:(null==l?void 0:l.expect_start_time)&&"Closed"!==(null==l?void 0:l.status)&&"Completed"!==(null==l?void 0:l.status)},(null==l?void 0:l.expect_start_time)&&"Closed"!==(null==l?void 0:l.status)&&"Completed"!==(null==l?void 0:l.status)?{l:e.t(null==l?void 0:l.expect_start_time)}:{},{m:"Completed"===(null==l?void 0:l.status)&&!(null==l?void 0:l.accept_time)},"Completed"!==(null==l?void 0:l.status)||(null==l?void 0:l.accept_time)?{o:e.t(null==l?void 0:l.created_at)}:{n:e.t(null==l?void 0:l.accept_time)},{p:null==l?void 0:l.evaluation_score},(null==l?void 0:l.evaluation_score)?{q:"9ec83e52-5-"+u+",9ec83e52-1",r:e.p({valueModel:null==l?void 0:l.evaluation_score})}:{},{s:e.o(o=>{var n;return null==(n=e.unref(t.method))?void 0:n.handleToDetail(l)},`items_${n}`),t:"MyHome"!==(null==l?void 0:l.location)&&"PendingAcceptance"===(null==l?void 0:l.status)},"MyHome"!==(null==l?void 0:l.location)&&"PendingAcceptance"===(null==l?void 0:l.status)?{v:e.o(o=>{var n;return null==(n=e.unref(t.method))?void 0:n.handleAssignEmployee(l)},`items_${n}`),w:"9ec83e52-6-"+u+",9ec83e52-1",x:e.p({type:"ghost",label:"验收工单"})}:{},{y:`items_${n}`})}),b:e.o(null==(r=e.unref(t.method))?void 0:r.handleLoad),c:e.p({meta:null==(d=null==(i=e.unref(l.useModel))?void 0:i.meta)?void 0:d.value})}})});wx.createPage(u);
