"use strict";const e=require("../../../common/vendor.js"),l=require("../../../common/libraries/day.js"),o=require("./method.js"),u=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../common/libraries/naviHelper.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-upload")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-upload/hs-upload.js")+(()=>"../../../components/hs-cell-textarea/hs-cell-textarea.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup:a=>(e.onLoad(e=>{var l,u;null==(l=o.method)||l.init(e),null==(u=o.method)||u.getShow(e)}),e.onUnload(()=>{u.useModel.formData.value={is_anonymous:!1}}),(a,n)=>{var r,s,t,d,i,v,m,f,h,p,M,c,D,_,g,j,w,y,q,b,k,x,S,A,C,W,H,L,P,E,G,N,T,U,$,z,B;return e.e({a:"WaterMeter"===(null==(t=null==(s=null==(r=e.unref(u.useModel))?void 0:r.showData)?void 0:s.value)?void 0:t.usage_type)},(null==(v=null==(i=null==(d=e.unref(u.useModel))?void 0:d.showData)?void 0:i.value)||v.usage_type,{}),{b:"ElectricMeter"===(null==(h=null==(f=null==(m=e.unref(u.useModel))?void 0:m.showData)?void 0:f.value)?void 0:h.usage_type)},(null==(c=null==(M=null==(p=e.unref(u.useModel))?void 0:p.showData)?void 0:M.value)||c.usage_type,{}),{c:"GasMeter"===(null==(g=null==(_=null==(D=e.unref(u.useModel))?void 0:D.showData)?void 0:_.value)?void 0:g.usage_type)},(null==(y=null==(w=null==(j=e.unref(u.useModel))?void 0:j.showData)?void 0:w.value)||y.usage_type,{}),{d:"HeatingMeter"===(null==(k=null==(b=null==(q=e.unref(u.useModel))?void 0:q.showData)?void 0:b.value)?void 0:k.usage_type)},(null==(A=null==(S=null==(x=e.unref(u.useModel))?void 0:x.showData)?void 0:S.value)||A.usage_type,{}),{e:e.f(null==(H=null==(W=null==(C=e.unref(u.useModel))?void 0:C.showData)?void 0:W.value)?void 0:H.house_meter_has_houses,(l,o,u)=>({a:e.t(null==l?void 0:l.full_name),b:`house_${o}`})),f:e.t((null==(E=null==(P=null==(L=e.unref(u.useModel))?void 0:L.showData)?void 0:P.value)?void 0:E.name)||"-"),g:e.t((null==(T=null==(N=null==(G=e.unref(u.useModel))?void 0:G.showData)?void 0:N.value)?void 0:T.latest_value)||"-"),h:e.t(e.unref(l.showDay)(null==(z=null==($=null==(U=e.unref(u.useModel))?void 0:U.showData)?void 0:$.value)?void 0:z.latest_time)),i:e.t(e.unref(l.getDay)()),j:e.unref(u.useModel).formData.value.current_reading,k:e.o(l=>e.unref(u.useModel).formData.value.current_reading=l.detail.value),l:e.o(l=>e.unref(u.useModel).formData.value.image=l),m:e.p({title:"上传图片",count:6,valueModel:e.unref(u.useModel).formData.value.image}),n:e.o(l=>e.unref(u.useModel).formData.value.remark=l),o:e.p({borderTop:!0,title:"备注（选填）",placeholder:"请输入此次抄表的备注，选填",valueModel:e.unref(u.useModel).formData.value.remark}),p:e.o(null==(B=e.unref(o.method))?void 0:B.handleSubmit),q:e.p({btnParimaryName:"提交"})})})});wx.createPage(a);
