"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),r=require("./method.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/day.js"),require("../../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("hs-input")+e.resolveComponent("hs-radio-picker-categories-tree")+e.resolveComponent("hs-radio-picker-levels")+e.resolveComponent("hs-date-picker")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-cell/hs-cell.js")+(()=>"../../../components/hs-input/hs-input.js")+(()=>"../../../components/hs-radio-picker-categories-tree/hs-radio-picker-categories-tree.js")+(()=>"../../../components/hs-radio-picker-levels/hs-radio-picker-levels.js")+(()=>"../../../components/hs-date-picker/hs-date-picker.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=>(e.onLoad(e=>{var l;o.useModel.formData.value={id:null==e?void 0:e.id},null==(l=r.method)||l.getShow()}),e.onShow(()=>{var e;null==(e=r.method)||e.init()}),(l,a)=>{var u,t,n,s,i,d,m,c,p,v,f,h,_;return{a:e.p({title:"选择项目",required:!0,borderTop:!0,isLink:!0,value:null==(n=null==(t=null==(u=e.unref(o.useModel))?void 0:u.formData)?void 0:t.value)?void 0:n.project_name,isPlaceholder:"请选择项目",url:"/pages/public/select_project/index?source=emergency_add"}),b:e.o(r=>e.unref(o.useModel).formData.value.name=r),c:e.p({maxLength:"11",textAlign:"right",valueModel:e.unref(o.useModel).formData.value.name}),d:e.p({title:"事件名称",required:!0,borderTop:!0}),e:e.o(r=>e.unref(o.useModel).formData.value.two_emergency_categories_id=r),f:e.p({title:"事件分类",required:!0,borderTop:!0,defaultValue:`${null==(d=null==(i=null==(s=e.unref(o.useModel))?void 0:s.formData)?void 0:i.value)?void 0:d.one_emergency_categories_name}/${null==(p=null==(c=null==(m=e.unref(o.useModel))?void 0:m.formData)?void 0:c.value)?void 0:p.two_emergency_categories_name}`,valueModel:e.unref(o.useModel).formData.value.two_emergency_categories_id}),g:e.o(r=>e.unref(o.useModel).formData.value.emergency_event_levels_id=r),h:e.p({title:"事件等级",required:!0,borderTop:!0,defaultValue:null==(h=null==(f=null==(v=e.unref(o.useModel))?void 0:v.formData)?void 0:f.value)?void 0:h.emergency_event_levels_name,valueModel:e.unref(o.useModel).formData.value.emergency_event_levels_id}),i:e.o(r=>e.unref(o.useModel).formData.value.emergency_time=r),j:e.p({title:"发生时间",required:!0,borderTop:!0,valueModel:e.unref(o.useModel).formData.value.emergency_time}),k:e.o(r=>e.unref(o.useModel).formData.value.emergency_location=r),l:e.p({required:!0,title:"事发地点",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(o.useModel).formData.value.emergency_location}),m:e.o(r=>e.unref(o.useModel).formData.value.emergency_description=r),n:e.p({required:!0,title:"事件描述",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(o.useModel).formData.value.emergency_description}),o:e.o(r=>e.unref(o.useModel).formData.value.emergency_cause=r),p:e.p({required:!0,title:"发生原因",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(o.useModel).formData.value.emergency_cause}),q:e.o(r=>e.unref(o.useModel).formData.value.cause_result=r),r:e.p({required:!0,title:"造成结果",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(o.useModel).formData.value.cause_result}),s:e.o(r=>e.unref(o.useModel).formData.value.emergency_images=r),t:e.p({title:"事件相关图片",count:10,borderTop:!0,valueModel:e.unref(o.useModel).formData.value.emergency_images}),v:e.o(r=>e.unref(o.useModel).formData.value.related_person=r),w:e.p({title:"相关人物",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(o.useModel).formData.value.related_person}),x:e.o(r=>e.unref(o.useModel).formData.value.supplement=r),y:e.p({title:"补充信息",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(o.useModel).formData.value.supplement}),z:e.o(null==(_=e.unref(r.method))?void 0:_.handleSubmit),A:e.p({btnParimaryName:"提交"})}})});wx.createPage(l);
