"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),l=require("./model.js"),n=require("../../gen/Enums.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/setTabBar.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")+e.resolveComponent("hs-popup-evaluate"))()}Math||(t+(()=>"../../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")+(()=>"../../components/hs-popup-evaluate/hs-popup-evaluate.js"))();const t=()=>"./components/header.js",u=e.defineComponent({__name:"index",setup:t=>(e.onShow((()=>{var e;l.useModel.formData.value.page=1,l.useModel.dataList.value=[],null==(e=o.method)||e.getList()})),e.onUnload((()=>{l.useModel.currentTabs.value=0})),e.onHide((()=>{l.useModel.showEvaluate.value=!1})),(t,u)=>{var s,a,i,d,r,v,m,p,c,h;return{a:e.f(null==(a=null==(s=e.unref(l.useModel))?void 0:s.dataList)?void 0:a.value,((l,t,u)=>{var s;return e.e({a:"550638e2-2-"+u+",550638e2-1",b:e.p({value:null==l?void 0:l.type,Enums:e.unref(n.HouseWorkOrdersTypeEnum)}),c:null==l?void 0:l.location},(null==l?void 0:l.location)?{d:"550638e2-3-"+u+",550638e2-1",e:e.p({value:null==l?void 0:l.location,Enums:e.unref(n.HouseWorkOrdersLocationEnum)})}:{},{f:"550638e2-4-"+u+",550638e2-1",g:e.p({value:null==l?void 0:l.status,Enums:e.unref(n.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),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:"550638e2-5-"+u+",550638e2-1",r:e.p({valueModel:null==l?void 0:l.evaluation_score})}:{},{s:parseFloat(null==l?void 0:l.amount)>0},parseFloat(null==l?void 0:l.amount)>0?{t:e.t(null==l?void 0:l.amount)}:{},{v:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.handleToDetail(l)}),`items_${t}`),w:"Pending"!==(null==l?void 0:l.status)&&"Closed"!==(null==l?void 0:l.status)&&!(null==l?void 0:l.evaluation_score)},"Pending"===(null==l?void 0:l.status)||"Closed"===(null==l?void 0:l.status)||(null==l?void 0:l.evaluation_score)?{}:e.e({x:"Completed"===(null==l?void 0:l.status)&&!(null==l?void 0:l.evaluation_score)},"Completed"!==(null==l?void 0:l.status)||(null==l?void 0:l.evaluation_score)?{}:{y:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.handleAssignEmployee(l)}),`items_${t}`),z:"550638e2-6-"+u+",550638e2-1",A:e.p({type:"ghost",label:"工单评价"})},{B:"PendingPayment"===(null==l?void 0:l.status)},"PendingPayment"===(null==l?void 0:l.status)?{C:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.handleAssignEmployee(l)}),`items_${t}`),D:"550638e2-7-"+u+",550638e2-1",E:e.p({type:"ghost",label:"支付费用"})}:{},{F:"PendingAcceptance"===(null==l?void 0:l.status)},"PendingAcceptance"===(null==l?void 0:l.status)?{G:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.handleAssignEmployee(l)}),`items_${t}`),H:"550638e2-8-"+u+",550638e2-1",I:e.p({type:"ghost",label:"验收工单"})}:{},{J:"Processing"===(null==l?void 0:l.status)},"Processing"===(null==l?void 0:l.status)?{K:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.handleAssignEmployee(l)}),`items_${t}`),L:"550638e2-9-"+u+",550638e2-1",M:e.p({type:"ghost",label:"联系处理人"})}:{}),{N:`items_${t}`})})),b:e.o(null==(i=e.unref(o.method))?void 0:i.handleLoad),c:e.p({meta:null==(r=null==(d=e.unref(l.useModel))?void 0:d.meta)?void 0:r.value}),d:e.o(null==(v=e.unref(o.method))?void 0:v.handlepopupClose),e:e.o((o=>e.unref(l.useModel).showEvaluate.value=!1)),f:e.p({show:null==(p=null==(m=e.unref(l.useModel))?void 0:m.showEvaluate)?void 0:p.value,mode:"bottom",closeable:!0,round:20,params:null==(h=null==(c=e.unref(l.useModel))?void 0:c.evaluateParams)?void 0:h.value})}})});wx.createPage(u);
