"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-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.onShow(()=>{var e;null==(e=o.method)||e.init()}),e.onUnload(()=>{r.useModel.formData.value={}}),(l,a)=>{var t,u,s,n;return{a:e.p({title:"选择项目",required:!0,borderTop:!0,isLink:!0,value:null==(s=null==(u=null==(t=e.unref(r.useModel))?void 0:t.formData)?void 0:u.value)?void 0:s.project_name,isPlaceholder:"请选择项目",url:"/pages/public/select_project/index?source=emergency_add"}),b:e.o(o=>e.unref(r.useModel).formData.value.name=o),c:e.p({placeholder:"请输入事件名称",textAlign:"right",valueModel:e.unref(r.useModel).formData.value.name}),d:e.p({title:"事件名称",required:!0,borderTop:!0}),e:e.o(o=>e.unref(r.useModel).formData.value.two_emergency_categories_id=o),f:e.p({title:"事件分类",required:!0,borderTop:!0,valueModel:e.unref(r.useModel).formData.value.two_emergency_categories_id}),g:e.o(o=>e.unref(r.useModel).formData.value.emergency_event_levels_id=o),h:e.p({title:"事件等级",required:!0,borderTop:!0,valueModel:e.unref(r.useModel).formData.value.emergency_event_levels_id}),i:e.o(o=>e.unref(r.useModel).formData.value.emergency_time=o),j:e.p({title:"发生时间",required:!0,borderTop:!0,valueModel:e.unref(r.useModel).formData.value.emergency_time}),k:e.o(o=>e.unref(r.useModel).formData.value.emergency_location=o),l:e.p({required:!0,title:"事发地点",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(r.useModel).formData.value.emergency_location}),m:e.o(o=>e.unref(r.useModel).formData.value.emergency_description=o),n:e.p({required:!0,title:"事件描述",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(r.useModel).formData.value.emergency_description}),o:e.o(o=>e.unref(r.useModel).formData.value.emergency_cause=o),p:e.p({required:!0,title:"发生原因",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(r.useModel).formData.value.emergency_cause}),q:e.o(o=>e.unref(r.useModel).formData.value.cause_result=o),r:e.p({required:!0,title:"造成结果",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(r.useModel).formData.value.cause_result}),s:e.o(o=>e.unref(r.useModel).formData.value.emergency_images=o),t:e.p({title:"事件相关图片",count:10,borderTop:!0,valueModel:e.unref(r.useModel).formData.value.emergency_images}),v:e.o(o=>e.unref(r.useModel).formData.value.related_person=o),w:e.p({title:"相关人物",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(r.useModel).formData.value.related_person}),x:e.o(o=>e.unref(r.useModel).formData.value.supplement=o),y:e.p({title:"补充信息",placeholder:"请详细描述问题情况，包括具体位置现象等",valueModel:e.unref(r.useModel).formData.value.supplement}),z:e.o(null==(n=e.unref(o.method))?void 0:n.handleSubmit),A:e.p({btnParimaryName:"提交"})}})});wx.createPage(l);
