"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),r=require("./model.js"),a=require("../../gen/Enums.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-radio-cell-picker")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-reservation-picker")+e.resolveComponent("hs-input")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-radio-cell-picker/hs-radio-cell-picker.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-cell-textarea/hs-cell-textarea.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-reservation-picker/hs-reservation-picker.js")+(()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const t=e.defineComponent({__name:"index",setup:t=>(e.onShow((()=>{var e;null==(e=o.method)||e.init()})),e.onLoad((e=>{r.useModel.formData.value.type=(null==e?void 0:e.type)||"",r.useModel.formData.value.location=(null==e?void 0:e.location)||""})),e.onUnload((()=>{r.useModel.formData.value={is_anonymous:!1}})),(t,l)=>{var u,n,s,m,i;return e.e({a:"Complaint"===e.unref(r.useModel).formData.value.type},"Complaint"===e.unref(r.useModel).formData.value.type?{b:e.o((o=>e.unref(r.useModel).formData.value.complaint_type=o)),c:e.p({Enums:e.unref(a.HouseWorkOrdersComplaintTypeEnum),title:"投诉类型",borderTop:!0,required:!0,valueModel:e.unref(r.useModel).formData.value.complaint_type})}:{},{d:"Complaint"!==e.unref(r.useModel).formData.value.type&&"MyHome"===e.unref(r.useModel).formData.value.location},"Complaint"!==e.unref(r.useModel).formData.value.type&&"MyHome"===e.unref(r.useModel).formData.value.location?{e:e.o(null==(u=e.unref(o.method))?void 0:u.handleToSelectHouse),f:e.p({title:"房屋信息",required:!0,borderTop:!0,isLink:!0,value:null==(m=null==(s=null==(n=e.unref(r.useModel))?void 0:n.formData)?void 0:s.value)?void 0:m.full_name})}:{},{g:e.o((o=>e.unref(r.useModel).formData.value.content=o)),h:e.p({borderTop:!0,required:!0,title:"问题描述",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(r.useModel).formData.value.content}),i:e.o((o=>e.unref(r.useModel).formData.value.attachments=o)),j:e.p({borderTop:!0,title:"上传图片",count:6,valueModel:e.unref(r.useModel).formData.value.attachments}),k:"Complaint"===e.unref(r.useModel).formData.value.type},"Complaint"===e.unref(r.useModel).formData.value.type?{l:e.o(((...r)=>e.unref(o.method).handleSwitchChange&&e.unref(o.method).handleSwitchChange(...r))),m:e.p({title:"匿名投诉"})}:{},{n:"MyHome"===e.unref(r.useModel).formData.value.location&&"Complaint"!==e.unref(r.useModel).formData.value.type},"MyHome"===e.unref(r.useModel).formData.value.location&&"Complaint"!==e.unref(r.useModel).formData.value.type?{o:e.o((o=>e.unref(r.useModel).formData.value.expect_start_time=o)),p:e.o((o=>e.unref(r.useModel).formData.value.expect_end_time=o)),q:e.p({title:"期望上门时间",required:!0,valueExpectStartTime:e.unref(r.useModel).formData.value.expect_start_time,valueExpectEndTime:e.unref(r.useModel).formData.value.expect_end_time})}:{},{r:"Complaint"!==e.unref(r.useModel).formData.value.type},"Complaint"!==e.unref(r.useModel).formData.value.type?{s:e.o((o=>e.unref(r.useModel).formData.value.reporter_name=o)),t:e.p({valueModel:e.unref(r.useModel).formData.value.reporter_name}),v:e.p({title:"联系人",required:!0}),w:e.o((o=>e.unref(r.useModel).formData.value.reporter_phone=o)),x:e.p({valueModel:e.unref(r.useModel).formData.value.reporter_phone}),y:e.p({title:"联系电话",required:!0,borderTop:!0})}:{},{z:e.o(null==(i=e.unref(o.method))?void 0:i.handleSubmit),A:e.p({btnParimaryName:"提交"})})})});wx.createPage(t);
