import{h as f,a as _,f as m}from"./uploadAction.0d49f3ae.js";import{d as U,y as k,s as w,f as s,g as b,c as x,e as o,w as l,v as t,F,q as K,b as g}from"./index.2f2d2ba5.js";const M={class:"equipmentInfo"},q=g("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),z=g("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),B=g("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),C=U({name:"equipmentInfo"}),N=Object.assign(C,{props:{formData:{type:Object,default:()=>{}}},emits:["updata:formData"],setup(y,{emit:v}){const V=y,p=k.dictStore.uploadUrl,a=w({get(){return V.formData},set(h){v("updata:formData",h)}});return(h,i)=>{const d=s("Plus"),u=s("el-icon"),c=s("el-upload"),n=s("el-form-item"),r=s("el-col"),P=s("el-row"),D=s("el-date-picker"),j=s("el-option"),Y=s("el-select");return b(),x("div",M,[o(P,{gutter:30},{default:l(()=>[o(r,{span:8},{default:l(()=>[o(n,{label:"\u4E09\u811A\u67B6\u7167\u7247",prop:"tripodPhoto"},{default:l(()=>[o(c,{"file-list":t(a).tripodPhoto,"onUpdate:file-list":i[0]||(i[0]=e=>t(a).tripodPhoto=e),class:"picture-card",action:t(p),"list-type":"picture-card",limit:10,"on-success":e=>t(f)(e,t(a).tripodPhoto),"on-error":t(_),"before-upload":e=>t(m)(e,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[q]),default:l(()=>[o(u,{class:"avatar-uploader-icon"},{default:l(()=>[o(d)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1}),o(r,{span:8},{default:l(()=>[o(n,{label:"\u533B\u7597\u5305\u7167\u7247",prop:"medicalKitPhoto"},{default:l(()=>[o(c,{"file-list":t(a).medicalKitPhoto,"onUpdate:file-list":i[1]||(i[1]=e=>t(a).medicalKitPhoto=e),class:"picture-card",action:t(p),"list-type":"picture-card",limit:10,"on-success":e=>t(f)(e,t(a).medicalKitPhoto),"on-error":t(_),"before-upload":e=>t(m)(e,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[z]),default:l(()=>[o(u,{class:"avatar-uploader-icon"},{default:l(()=>[o(d)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1})]),_:1}),o(P,{gutter:30},{default:l(()=>[o(r,{span:8},{default:l(()=>[o(n,{label:"\u706D\u706B\u5668\u7167\u7247",prop:"extinguisherPhoto"},{default:l(()=>[o(c,{"file-list":t(a).extinguisherPhoto,"onUpdate:file-list":i[2]||(i[2]=e=>t(a).extinguisherPhoto=e),class:"picture-card",action:t(p),"list-type":"picture-card",limit:10,"on-success":e=>t(f)(e,t(a).extinguisherPhoto),"on-error":t(_),"before-upload":e=>t(m)(e,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[B]),default:l(()=>[o(u,{class:"avatar-uploader-icon"},{default:l(()=>[o(d)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1}),o(r,{span:8},{default:l(()=>[o(n,{label:"\u706D\u706B\u5668\u751F\u4EA7\u65E5\u671F",prop:"extinguisherProdDate"},{default:l(()=>[o(D,{modelValue:t(a).extinguisherProdDate,"onUpdate:modelValue":i[3]||(i[3]=e=>t(a).extinguisherProdDate=e),type:"date",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1})]),_:1}),o(r,{span:8},{default:l(()=>[o(n,{label:"\u6709\u6548\u671F\u9650",prop:"extinguisherValidity"},{default:l(()=>[o(Y,{modelValue:t(a).extinguisherValidity,"onUpdate:modelValue":i[4]||(i[4]=e=>t(a).extinguisherValidity=e),placeholder:"\u8BF7\u9009\u62E9\u6709\u6548\u671F\u9650",class:"w-full"},{default:l(()=>[(b(),x(F,null,K(6,e=>o(j,{key:e,label:`${e}\u5E74`,value:e},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])}}});export{N as default};
