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