"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/day.js"),l=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 o,u;null==(o=l.method)||o.init(e),null==(u=l.method)||u.getShow(e)})),e.onUnload((()=>{u.useModel.formData.value={is_anonymous:!1}})),(a,r)=>{var n,t,s,i,d,m,v,f,h,c,p,M,D,_,j,g,q,w,y,b,k,x,S,A,C;return e.e({a:"WaterMeter"===(null==(s=null==(t=null==(n=e.unref(u.useModel))?void 0:n.showData)?void 0:t.value)?void 0:s.usage_type)},(null==(m=null==(d=null==(i=e.unref(u.useModel))?void 0:i.showData)?void 0:d.value)||m.usage_type,{}),{b:"ElectricMeter"===(null==(h=null==(f=null==(v=e.unref(u.useModel))?void 0:v.showData)?void 0:f.value)?void 0:h.usage_type)},(null==(M=null==(p=null==(c=e.unref(u.useModel))?void 0:c.showData)?void 0:p.value)||M.usage_type,{}),{c:e.f(null==(j=null==(_=null==(D=e.unref(u.useModel))?void 0:D.showData)?void 0:_.value)?void 0:j.house_meter_has_houses,((o,l,u)=>({a:e.t(null==o?void 0:o.full_name),b:`house_${l}`}))),d:e.t((null==(w=null==(q=null==(g=e.unref(u.useModel))?void 0:g.showData)?void 0:q.value)?void 0:w.name)||"-"),e:e.t((null==(k=null==(b=null==(y=e.unref(u.useModel))?void 0:y.showData)?void 0:b.value)?void 0:k.latest_value)||"-"),f:e.t(e.unref(o.showDay)(null==(A=null==(S=null==(x=e.unref(u.useModel))?void 0:x.showData)?void 0:S.value)?void 0:A.latest_time)),g:e.t(e.unref(o.getDay)()),h:e.unref(u.useModel).formData.value.current_reading,i:e.o((o=>e.unref(u.useModel).formData.value.current_reading=o.detail.value)),j:e.o((o=>e.unref(u.useModel).formData.value.image=o)),k:e.p({title:"上传图片",count:6,valueModel:e.unref(u.useModel).formData.value.image}),l:e.o((o=>e.unref(u.useModel).formData.value.remark=o)),m:e.p({borderTop:!0,title:"备注（选填）",placeholder:"请输入此次抄表的备注，选填",valueModel:e.unref(u.useModel).formData.value.remark}),n:e.o(null==(C=e.unref(l.method))?void 0:C.handleSubmit),o:e.p({btnParimaryName:"提交"})})})});wx.createPage(a);
