"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Enums.js"),r=require("./method.js"),t=require("./model.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"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("hs-input")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-reservation-picker")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-input/hs-input.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-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup(a){const l=e.ref({});return e.onLoad((e=>{t.useModel.formData.value.type=(null==e?void 0:e.type)||"",t.useModel.formData.value.location=(null==e?void 0:e.location)||"",console.log(e,"2222")})),e.onShow((()=>{var e;let t=JSON.parse(JSON.stringify(o.HouseWorkOrdersTypeEnum));null==t||delete t.Complaint,l.value=t,o.HouseWorkOrdersLocationEnum.MyHome.text="房屋",null==(e=r.method)||e.init()})),e.onUnload((()=>{t.useModel.formData.value={is_anonymous:!1}})),(o,a)=>{var l,u,n,s,i,m,d;return e.e({a:"MyHome"!==e.unref(t.useModel).formData.value.location},"MyHome"!==e.unref(t.useModel).formData.value.location?{b:e.p({title:"选择项目",required:!0,borderTop:!0,isLink:!0,value:null==(n=null==(u=null==(l=e.unref(t.useModel))?void 0:l.formData)?void 0:u.value)?void 0:n.project_name,isPlaceholder:"请选择项目",url:"/pages/public/select_project/index?source=work_add"})}:{},{c:"MyHome"===e.unref(t.useModel).formData.value.location},"MyHome"===e.unref(t.useModel).formData.value.location?{d:e.p({title:"房屋信息",required:!0,borderTop:!0,isLink:!0,value:null==(m=null==(i=null==(s=e.unref(t.useModel))?void 0:s.formData)?void 0:i.value)?void 0:m.full_name,isPlaceholder:"请选择房屋",url:"/pages/public/asset_houses/index?type=work_add"}),e:e.o((o=>e.unref(t.useModel).formData.value.reporter_name=o)),f:e.p({textAlign:"right",valueModel:e.unref(t.useModel).formData.value.reporter_name}),g:e.p({title:"客户姓名",required:!0,borderTop:!0}),h:e.o((o=>e.unref(t.useModel).formData.value.reporter_phone=o)),i:e.p({maxLength:"11",textAlign:"right",valueModel:e.unref(t.useModel).formData.value.reporter_phone}),j:e.p({title:"客户电话",required:!0,borderTop:!0}),k:e.o((o=>e.unref(t.useModel).formData.value.contact_phone=o)),l:e.p({maxLength:"11",textAlign:"right",valueModel:e.unref(t.useModel).formData.value.contact_phone}),m:e.p({title:"备用联系电话",borderTop:!0})}:{},{n:e.o((o=>e.unref(t.useModel).formData.value.content=o)),o:e.p({borderTop:!0,required:!0,title:"问题描述",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(t.useModel).formData.value.content}),p:e.o((o=>e.unref(t.useModel).formData.value.attachments=o)),q:e.p({borderTop:!0,title:"上传图片",count:6,valueModel:e.unref(t.useModel).formData.value.attachments}),r:"MyHome"===e.unref(t.useModel).formData.value.location},"MyHome"===e.unref(t.useModel).formData.value.location?{s:e.o((o=>e.unref(t.useModel).formData.value.expect_start_time=o)),t:e.o((o=>e.unref(t.useModel).formData.value.expect_end_time=o)),v:e.p({title:"期望上门时间",required:!0,valueExpectStartTime:e.unref(t.useModel).formData.value.expect_start_time,valueExpectEndTime:e.unref(t.useModel).formData.value.expect_end_time})}:{},{w:e.o(null==(d=e.unref(r.method))?void 0:d.handleSubmit),x:e.p({btnParimaryName:"提交"})})}}});wx.createPage(a);
