"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-popup-project-houer")+e.resolveComponent("hs-input")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-popup-project-houer/hs-popup-project-houer.js")+(()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-cell-textarea/hs-cell-textarea.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const l=e.defineComponent({__name:"index",setup(l){const n=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,n.value=t,o.HouseWorkOrdersLocationEnum.MyHome.text="房屋",null==(e=r.method)||e.init()}),e.onUnload(()=>{var e;null==(e=r.method)||e.unInit()}),(o,l)=>{var n,u,a,s,i,m,p,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==(a=null==(u=null==(n=e.unref(t.useModel))?void 0:n.formData)?void 0:u.value)?void 0:a.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.o(null==(s=e.unref(r.method))?void 0:s.handleSelectProject),e:e.p({title:"选择房屋",defaultValueName:null==(p=null==(m=null==(i=e.unref(t.useModel))?void 0:i.formData)?void 0:m.value)?void 0:p.full_name}),f:e.o(o=>e.unref(t.useModel).formData.value.reporter_name=o),g:e.p({textAlign:"right",valueModel:e.unref(t.useModel).formData.value.reporter_name}),h:e.p({title:"客户姓名",required:!0,borderTop:!0}),i:e.o(o=>e.unref(t.useModel).formData.value.reporter_phone=o),j:e.p({maxLength:"11",textAlign:"right",valueModel:e.unref(t.useModel).formData.value.reporter_phone}),k:e.p({title:"客户电话",required:!0,borderTop:!0}),l:e.o(o=>e.unref(t.useModel).formData.value.contact_phone=o),m:e.p({maxLength:"11",textAlign:"right",valueModel:e.unref(t.useModel).formData.value.contact_phone}),n:e.p({title:"备用联系电话",borderTop:!0})}:{},{o:e.o(o=>e.unref(t.useModel).formData.value.content=o),p:e.p({borderTop:!0,required:!0,title:"问题描述",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(t.useModel).formData.value.content}),q:e.o(o=>e.unref(t.useModel).formData.value.attachments=o),r:e.p({borderTop:!0,title:"上传图片",count:6,valueModel:e.unref(t.useModel).formData.value.attachments}),s:e.o(null==(d=e.unref(r.method))?void 0:d.handleSubmit),t:e.p({btnParimaryName:"提交"})})}}});wx.createPage(l);
