"use strict";const e=require("../../../common/vendor.js"),o=require("./method.js"),r=require("./model.js"),n=require("../../../common/libraries/getPageConfig.js"),u=require("../../../gen/Enums.js");if(require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/userUserLogin.js"),require("../../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("hs-input")+e.resolveComponent("hs-radio")+e.resolveComponent("uni-icons")+e.resolveComponent("u-input")+e.resolveComponent("u-number-box")+e.resolveComponent("hs-date-picker")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-cell/hs-cell.js")+(()=>"../../../components/hs-input/hs-input.js")+(()=>"../../../components/hs-radio/hs-radio.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../node-modules/uview-plus/components/u-input/u-input.js")+(()=>"../../../node-modules/uview-plus/components/u-number-box/u-number-box.js")+(()=>"../../../components/hs-date-picker/hs-date-picker.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const l=e.defineComponent({__name:"index",setup:l=>(e.onShow((()=>{var e;null==(e=o.method)||e.init()})),e.onUnload((()=>{r.useModel.formData.value={goods:[{name:"",number:1,remark:""}]}})),(l,s)=>{var a,t,i,d,m,p;return{a:e.o(null==(a=e.unref(o.method))?void 0:a.handleToSelectHouse),b:e.p({title:"房屋信息",required:!0,borderTop:!0,isLink:!0,value:null==(d=null==(i=null==(t=e.unref(r.useModel))?void 0:t.formData)?void 0:i.value)?void 0:d.full_name}),c:e.o((o=>e.unref(r.useModel).formData.value.apply_name=o)),d:e.p({textAlign:"right",valueModel:e.unref(r.useModel).formData.value.apply_name}),e:e.p({title:"申请人",required:!0}),f:e.o((o=>e.unref(r.useModel).formData.value.apply_phone=o)),g:e.p({maxLength:"11",type:"number",textAlign:"right",valueModel:e.unref(r.useModel).formData.value.apply_phone}),h:e.p({title:"申请人电话",required:!0,borderTop:!0}),i:e.o((o=>e.unref(r.useModel).formData.value.passed_type=o)),j:e.p({Enums:e.unref(u.GoodsReleasesPassedTypeEnum),required:!0,valueModel:e.unref(r.useModel).formData.value.passed_type}),k:e.p({title:"通行类型",borderTop:!0,required:!0}),l:e.p({type:"plusempty",size:"14",color:e.unref(n.getStyleColorValueInfo)()}),m:e.o(((...r)=>{var n,u;return(null==(n=e.unref(o.method))?void 0:n.handleAddGoods)&&(null==(u=e.unref(o.method))?void 0:u.handleAddGoods(...r))})),n:e.s(e.unref(n.getStyleColorInfo)()),o:e.f(null==(p=null==(m=e.unref(r.useModel))?void 0:m.formData)?void 0:p.value.goods,((r,n,u)=>e.e({a:"5274f3d6-8-"+u,b:e.o((e=>r.name=e),`input_${n}`),c:e.p({placeholder:"物品名称",modelValue:r.name}),d:"5274f3d6-9-"+u,e:e.o((e=>r.number=e),`input_${n}`),f:e.p({modelValue:r.number}),g:"5274f3d6-10-"+u,h:e.o((e=>r.remark=e),`input_${n}`),i:e.p({placeholder:"物品备注",valueModel:r.remark}),j:n>0},n>0?{k:"5274f3d6-11-"+u,l:e.p({type:"trash-filled",color:"#999",size:"25"}),m:e.o((r=>{var u;return null==(u=e.unref(o.method))?void 0:u.handleDeleteGoods(n)}),`input_${n}`)}:{},{n:`input_${n}`}))),p:e.o((o=>e.unref(r.useModel).formData.value.passed_time=o)),q:e.p({title:"放行日期",required:!0,isLink:!0,valueModel:e.unref(r.useModel).formData.value.passed_time}),r:e.unref(r.useModel).formData.value.remark,s:e.o((o=>e.unref(r.useModel).formData.value.remark=o.detail.value)),t:e.o(e.unref(o.method).handleSubmit),v:e.p({btnParimaryName:"提交申请"})}})});wx.createPage(l);
