Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

equipmentInfo.a3fd2981.js 3.4KB

před 3 měsíci
1
  1. import{c as N}from"./validate.167e08f8.js";import{d as j,r as C,A as E,f as r,g as a,c as l,e as t,w as e,F as D,s as p,p as h,b as v,h as w,t as y,x as Y,N as B}from"./index.551f5afa.js";const I={class:"equipmentInfo"},K={key:0,class:"mt-8"},q={class:"image-slot"},F={key:1},O={key:0,class:"mt-8"},A={class:"image-slot"},L={key:1},S={key:0,class:"mt-8"},T={class:"image-slot"},z={key:1},G={key:0},H={key:1},J=j({name:"equipmentInfo"}),W=Object.assign(J,{props:{detailData:{type:Object,default:()=>{}}},setup(i){const _=i,k=C({extinguisher:!1});function V(){k.value.extinguisher=N(_.detailData.extinguisherProdDate,_.detailData.extinguisherValidity)}return E(()=>_.detailData,P=>{P&&V()},{immediate:!0,deep:!0}),(P,Q)=>{const f=r("Picture"),g=r("el-icon"),x=r("el-image"),d=r("el-form-item"),c=r("el-col"),b=r("el-row"),M=r("el-badge");return a(),l("div",I,[t(b,{gutter:30},{default:e(()=>[t(c,{span:8},{default:e(()=>[t(d,{label:"\u4E09\u811A\u67B6\u7167\u7247"},{default:e(()=>{var s,n;return[(n=(s=i.detailData)==null?void 0:s.tripodPhoto)!=null&&n.length?(a(),l("div",K,[(a(!0),l(D,null,p(i.detailData.tripodPhoto,(u,o)=>(a(),h(x,{key:o,class:"imgBox mr-8",src:u.url,"initial-index":o,"preview-src-list":i.detailData.tripodPhoto.map(m=>m.url),fit:"cover"},{error:e(()=>[v("div",q,[t(g,null,{default:e(()=>[t(f)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(a(),l("span",F,"-"))]}),_:1})]),_:1}),t(c,{span:8},{default:e(()=>[t(d,{label:"\u533B\u7597\u5305\u7167\u7247"},{default:e(()=>{var s,n;return[(n=(s=i.detailData)==null?void 0:s.medicalKitPhoto)!=null&&n.length?(a(),l("div",O,[(a(!0),l(D,null,p(i.detailData.medicalKitPhoto,(u,o)=>(a(),h(x,{key:o,class:"imgBox mr-8",src:u.url,"initial-index":o,"preview-src-list":i.detailData.medicalKitPhoto.map(m=>m.url),fit:"cover"},{error:e(()=>[v("div",A,[t(g,null,{default:e(()=>[t(f)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(a(),l("span",L,"-"))]}),_:1})]),_:1})]),_:1}),t(b,{gutter:30},{default:e(()=>[t(c,{span:8},{default:e(()=>[t(d,{label:"\u706D\u706B\u5668\u7167\u7247"},{default:e(()=>{var s,n;return[(n=(s=i.detailData)==null?void 0:s.extinguisherPhoto)!=null&&n.length?(a(),l("div",S,[(a(!0),l(D,null,p(i.detailData.extinguisherPhoto,(u,o)=>(a(),h(x,{key:o,class:"imgBox mr-8",src:u.url,"initial-index":o,"preview-src-list":i.detailData.extinguisherPhoto.map(m=>m.url),fit:"cover"},{error:e(()=>[v("div",T,[t(g,null,{default:e(()=>[t(f)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(a(),l("span",z,"-"))]}),_:1})]),_:1}),k.value.extinguisher?(a(),h(c,{key:0,span:8},{default:e(()=>[t(M,{value:"\u5DF2\u8FC7\u6709\u6548\u671F",class:"item",style:{"background-color":"#f2f4f7",padding:"10px"}},{default:e(()=>[t(d,{label:"\u706D\u706B\u5668\u751F\u4EA7\u65E5\u671F"},{default:e(()=>[w(y(i.detailData.extinguisherProdDate?Y(B)(i.detailData.extinguisherProdDate).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})]),_:1})):(a(),h(c,{key:1,span:8},{default:e(()=>[t(d,{label:"\u706D\u706B\u5668\u751F\u4EA7\u65E5\u671F"},{default:e(()=>[w(y(i.detailData.extinguisherProdDate?Y(B)(i.detailData.extinguisherProdDate).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})),t(c,{span:8},{default:e(()=>[t(d,{label:"\u6709\u6548\u671F\u9650"},{default:e(()=>[i.detailData.extinguisherValidity?(a(),l("span",G,y(i.detailData.extinguisherValidity)+"\u5E74",1)):(a(),l("span",H,"-"))]),_:1})]),_:1})]),_:1})])}}});export{W as default};