import{a as S,r as j,w as g,f as x,aj as o,J as c,o as p,K as e,S as t,M as z,b as h,Q as A,c as E,R as F,a9 as I,P as J}from"./vue.D1BjjNmv.js";import{_ as K}from"./_plugin-vue_export-helper.DlAUqK2U.js";const L={class:"dialog-footer"},M=S({__name:"index",props:{visible:{type:Boolean},abnormalData:{}},emits:["update:visible"],setup(V,{expose:w,emit:y}){const d=V,_=y,i=j(d.visible);g(()=>d.visible,a=>{i.value=a}),g(()=>i.value,a=>{_("update:visible",a)});const l=x(()=>d.abnormalData??{condition:"",photos:[],damage_type:0}),k=()=>l.value.photos.map(a=>a),v=()=>{_("update:visible",!1)},C=x(()=>k());return w({dialogVisible:i}),(a,n)=>{const m=o("el-form-item"),u=o("el-option"),B=o("el-select"),D=o("el-image"),N=o("el-form"),U=o("el-button"),P=o("el-dialog");return p(),c(P,{modelValue:i.value,"onUpdate:modelValue":n[1]||(n[1]=r=>i.value=r),title:"查看异常",width:"500px","close-on-click-modal":!1,onClose:v},{footer:e(()=>[h("span",L,[t(U,{onClick:v},{default:e(()=>n[2]||(n[2]=[J("关闭")])),_:1})])]),default:e(()=>[t(N,{"label-width":"80px"},{default:e(()=>{var r,f;return[t(m,{label:"异常说明"},{default:e(()=>{var s;return[h("div",null,A(((s=l.value)==null?void 0:s.condition)||"暂无异常说明"),1)]}),_:1}),t(m,{label:"异常类型"},{default:e(()=>[t(B,{modelValue:l.value.damage_type,"onUpdate:modelValue":n[0]||(n[0]=s=>l.value.damage_type=s),disabled:!0,placeholder:"请选择异常类型"},{default:e(()=>[t(u,{label:"严重损坏",value:0}),t(u,{label:"中度损坏",value:1}),t(u,{label:"轻度损坏",value:2})]),_:1},8,["modelValue"])]),_:1}),(f=(r=l.value)==null?void 0:r.photos)!=null&&f.length?(p(),c(m,{key:0,label:"照片"},{default:e(()=>[(p(!0),E(F,null,I(l.value.photos,(s,b)=>(p(),c(D,{key:b,style:{width:"100px",height:"100px","margin-right":"10px"},src:s,"preview-src-list":C.value,"initial-index":b,"preview-teleported":!0,"z-index":3e3,fit:"cover"},null,8,["src","preview-src-list","initial-index"]))),128))]),_:1})):z("",!0)]}),_:1})]),_:1},8,["modelValue"])}}}),T=K(M,[["__scopeId","data-v-a744ea82"]]);export{T as default};
