"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),r=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-popup-project-houer")+e.resolveComponent("hs-radio-cell-picker")+e.resolveComponent("hs-input")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-upload-id-card")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-popup-project-houer/hs-popup-project-houer.js")+(()=>"../../components/hs-radio-cell-picker/hs-radio-cell-picker.js")+(()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-upload-id-card/hs-upload-id-card.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup(a){const u={AddOccupant:{text:"添加住户",value:"AddOccupant"},AddOwner:{text:"添加产权人",value:"AddOwner"}},l={Tenant:{text:"租客",color:"#fa8c16",value:"Tenant"},Resident:{text:"住户",color:"#2db7f5",value:"Resident"},PrimaryTenant:{text:"主租人",color:"#87d068",value:"PrimaryTenant"}};return e.onLoad(e=>{r.useModel.formData.value.asset_houses_id=null==e?void 0:e.asset_houses_id,console.log(e,"222")}),e.onShow(()=>{var e;null==(e=o.method)||e.init()}),e.onUnload(()=>{r.useModel.formData.value={type:"AddOwner",card_type:"MainlandID",house_relation:"Owner"}}),(a,n)=>{var t,d,s,i,p,m,c;return e.e({a:e.o(null==(t=e.unref(o.method))?void 0:t.handleSelectProject),b:e.p({title:"选择房屋",defaultValueName:null==(i=null==(s=null==(d=e.unref(r.useModel))?void 0:d.formData)?void 0:s.value)?void 0:i.full_name}),c:e.o(o=>e.unref(r.useModel).formData.value.type=o),d:e.p({Enums:u,title:"类型",borderTop:!0,required:!0,valueModel:e.unref(r.useModel).formData.value.type}),e:"AddOccupant"===e.unref(r.useModel).formData.value.type},"AddOccupant"===e.unref(r.useModel).formData.value.type?{f:e.o(o=>e.unref(r.useModel).formData.value.residential_relation=o),g:e.p({Enums:l,title:"居住关系",borderTop:!0,required:!0,valueModel:e.unref(r.useModel).formData.value.residential_relation})}:{},{h:e.o(o=>e.unref(r.useModel).formData.value.name=o),i:e.p({textAlign:"right",valueModel:e.unref(r.useModel).formData.value.name}),j:e.p({title:"真实姓名",required:!0,borderTop:!0}),k:e.o(o=>e.unref(r.useModel).formData.value.phone=o),l:e.p({maxLength:"11",textAlign:"right",type:"number",valueModel:e.unref(r.useModel).formData.value.phone}),m:e.p({title:"手机号",required:!0,borderTop:!0}),n:e.o(o=>e.unref(r.useModel).formData.value.id_card=o),o:e.p({maxLength:"18",textAlign:"right",valueModel:e.unref(r.useModel).formData.value.id_card}),p:e.p({title:"身份证号",required:!0,borderTop:!0}),q:e.o(o=>e.unref(r.useModel).formData.value.card_front_image=o),r:e.o(o=>e.unref(r.useModel).formData.value.card_back_image=o),s:e.p({required:!0,valueFrontModel:e.unref(r.useModel).formData.value.card_front_image,valueBackModel:e.unref(r.useModel).formData.value.card_back_image}),t:"AddOwner"===e.unref(r.useModel).formData.value.type},"AddOwner"===e.unref(r.useModel).formData.value.type?{v:e.o(o=>e.unref(r.useModel).formData.value.ownership_info=o),w:e.p({title:"上传房产证",count:10,size:4,required:!0,borderTop:!0,valueModel:e.unref(r.useModel).formData.value.ownership_info})}:{},{x:e.o(null==(p=e.unref(o.method))?void 0:p.handleSubmit),y:e.p({btnParimaryName:"绑定房屋",loading:null==(c=null==(m=e.unref(r.useModel))?void 0:m.loading)?void 0:c.value})})}}});wx.createPage(a);
