You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

policyInfo.7fce6863.js 7.6KB

3 月之前
1
  1. import{c as T}from"./validate.167e08f8.js";import{d as B,r as N,A as j,f as _,g as l,c,e,w as a,h as r,t as d,F as x,s as M,p as s,b as P,x as I,N as h}from"./index.551f5afa.js";const C={class:"policyInfo"},E={key:0,class:"mt-8"},A={class:"image-slot"},F={key:1},O={key:0,class:"mt-8"},L={class:"image-slot"},p={key:1},q={key:0,class:"mt-8"},z={class:"image-slot"},G={key:1},H={key:0,class:"mt-8"},J={class:"image-slot"},K={key:1},Q=B({name:"policyInfo"}),X=Object.assign(Q,{props:{detailData:{type:Object,default:()=>{}}},setup(t){const m=t,D=N({forcedInsurance:!1,commercialInsurance:!1,drivingInsurance:!1,thirdInsurance:!1});function V(){D.value.forcedInsurance=T(m.detailData.forcedInsuranceStartTime,m.detailData.forcedInsuranceValidity),D.value.commercialInsurance=T(m.detailData.commercialInsuranceStartTime,m.detailData.commercialInsuranceValidity),D.value.drivingInsurance=T(m.detailData.drivingInsuranceStartTime,m.detailData.drivingInsuranceValidity),D.value.thirdInsurance=T(m.detailData.thirdInsuranceStartTime,m.detailData.thirdInsuranceValidity)}return j(()=>m.detailData,w=>{w&&V()},{immediate:!0,deep:!0}),(w,R)=>{const i=_("el-form-item"),n=_("el-col"),y=_("el-row"),Y=_("Picture"),b=_("el-icon"),k=_("el-image"),S=_("el-badge");return l(),c("div",C,[e(y,{gutter:30},{default:a(()=>[e(n,{span:12},{default:a(()=>[e(i,{label:"\u4FDD\u9669\u91D1\u989D"},{default:a(()=>[r(d(t.detailData.insuredAmount||"-"),1)]),_:1})]),_:1})]),_:1}),e(y,{gutter:30},{default:a(()=>[e(n,{span:8},{default:a(()=>[e(i,{label:"\u7B2C\u4E09\u8005\u8D23\u4EFB\u9669"},{default:a(()=>[r(d({1:"\u226550\u4E07\u5143",2:"<50\u4E07\u5143"}[t.detailData.thirdInsurance]||"-"),1)]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(i,{label:"\u8F66\u4E0A\u4EBA\u5458\u8D23\u4EFB\u9669"},{default:a(()=>[r(d({1:"\u22652\u4E07\u5143/\u5EA7",2:"<2\u4E07\u5143/\u5EA7"}[t.detailData.personnelInsurance]||"-"),1)]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(i,{label:"\u4EA4\u5F3A\u9669"},{default:a(()=>[r(d(t.detailData.forcedInsurance?"\u5DF2\u8D2D\u4E70":"\u672A\u8D2D\u4E70"),1)]),_:1})]),_:1})]),_:1}),e(y,{gutter:30},{default:a(()=>[e(n,{span:8},{default:a(()=>[e(i,{label:"\u4EA4\u5F3A\u9669\u4FDD\u5355\u7167\u7247"},{default:a(()=>{var u,o;return[(o=(u=t.detailData)==null?void 0:u.forcedInsurancePhoto)!=null&&o.length?(l(),c("div",E,[(l(!0),c(x,null,M(t.detailData.forcedInsurancePhoto,(g,f)=>(l(),s(k,{key:f,class:"imgBox mr-8",src:g.url,"initial-index":f,"preview-src-list":t.detailData.forcedInsurancePhoto.map(v=>v.url),fit:"cover"},{error:a(()=>[P("div",A,[e(b,null,{default:a(()=>[e(Y)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(l(),c("span",F,"-"))]}),_:1})]),_:1}),D.value.forcedInsurance?(l(),s(n,{key:0,span:8},{default:a(()=>[e(S,{value:"\u5DF2\u8FC7\u6709\u6548\u671F",class:"item",style:{"background-color":"#f2f4f7",padding:"10px"}},{default:a(()=>[e(i,{label:"\u4FDD\u5355\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[r(d(t.detailData.forcedInsuranceStartTime?I(h)(t.detailData.forcedInsuranceStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})]),_:1})):(l(),s(n,{key:1,span:8},{default:a(()=>[e(i,{label:"\u4FDD\u5355\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[r(d(t.detailData.forcedInsuranceStartTime?I(h)(t.detailData.forcedInsuranceStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})),e(n,{span:8},{default:a(()=>[e(i,{label:"\u6709\u6548\u671F\u9650"},{default:a(()=>[r(d(t.detailData.forcedInsuranceValidity===1?"1\u5E74":"-"),1)]),_:1})]),_:1})]),_:1}),e(y,{gutter:30},{default:a(()=>[e(n,{span:8},{default:a(()=>[e(i,{label:"\u5546\u4E1A\u9669\u4FDD\u5355\u7167\u7247"},{default:a(()=>{var u,o;return[(o=(u=t.detailData)==null?void 0:u.commercialInsurancePhoto)!=null&&o.length?(l(),c("div",O,[(l(!0),c(x,null,M(t.detailData.commercialInsurancePhoto,(g,f)=>(l(),s(k,{key:f,class:"imgBox mr-8",src:g.url,"initial-index":f,"preview-src-list":t.detailData.commercialInsurancePhoto.map(v=>v.url),fit:"cover"},{error:a(()=>[P("div",L,[e(b,null,{default:a(()=>[e(Y)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(l(),c("span",p,"-"))]}),_:1})]),_:1}),D.value.commercialInsurance?(l(),s(n,{key:0,span:8},{default:a(()=>[e(S,{value:"\u5DF2\u8FC7\u6709\u6548\u671F",class:"item",style:{"background-color":"#f2f4f7",padding:"10px"}},{default:a(()=>[e(i,{label:"\u4FDD\u5355\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[r(d(t.detailData.commercialInsuranceStartTime?I(h)(t.detailData.commercialInsuranceStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})]),_:1})):(l(),s(n,{key:1,span:8},{default:a(()=>[e(i,{label:"\u4FDD\u5355\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[r(d(t.detailData.commercialInsuranceStartTime?I(h)(t.detailData.commercialInsuranceStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})),e(n,{span:8},{default:a(()=>[e(i,{label:"\u6709\u6548\u671F\u9650"},{default:a(()=>[r(d(t.detailData.commercialInsuranceValidity===1?"1\u5E74":"-"),1)]),_:1})]),_:1})]),_:1}),e(y,{gutter:30},{default:a(()=>[e(n,{span:8},{default:a(()=>[e(i,{label:"\u67B6\u4E58\u9669\u7167\u7247"},{default:a(()=>{var u,o;return[(o=(u=t.detailData)==null?void 0:u.drivingInsurancePhoto)!=null&&o.length?(l(),c("div",q,[(l(!0),c(x,null,M(t.detailData.drivingInsurancePhoto,(g,f)=>(l(),s(k,{key:f,class:"imgBox mr-8",src:g.url,"initial-index":f,"preview-src-list":t.detailData.drivingInsurancePhoto.map(v=>v.url),fit:"cover"},{error:a(()=>[P("div",z,[e(b,null,{default:a(()=>[e(Y)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(l(),c("span",G,"-"))]}),_:1})]),_:1}),D.value.drivingInsurance?(l(),s(n,{key:0,span:8},{default:a(()=>[e(S,{value:"\u5DF2\u8FC7\u6709\u6548\u671F",class:"item",style:{"background-color":"#f2f4f7",padding:"10px"}},{default:a(()=>[e(i,{label:"\u4FDD\u5355\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[r(d(t.detailData.drivingInsuranceStartTime?I(h)(t.detailData.drivingInsuranceStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})]),_:1})):(l(),s(n,{key:1,span:8},{default:a(()=>[e(i,{label:"\u4FDD\u5355\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[r(d(t.detailData.drivingInsuranceStartTime?I(h)(t.detailData.drivingInsuranceStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})),e(n,{span:8},{default:a(()=>[e(i,{label:"\u6709\u6548\u671F\u9650"},{default:a(()=>[r(d(t.detailData.drivingInsuranceValidity===1?"1\u5E74":"-"),1)]),_:1})]),_:1})]),_:1}),e(y,{gutter:30},{default:a(()=>[e(n,{span:8},{default:a(()=>[e(i,{label:"\u7B2C\u4E09\u65B9\u8D23\u4EFB\u9669\u7167\u7247"},{default:a(()=>{var u,o;return[(o=(u=t.detailData)==null?void 0:u.thirdInsurancePhoto)!=null&&o.length?(l(),c("div",H,[(l(!0),c(x,null,M(t.detailData.thirdInsurancePhoto,(g,f)=>(l(),s(k,{key:f,class:"imgBox mr-8",src:g.url,"initial-index":f,"preview-src-list":t.detailData.thirdInsurancePhoto.map(v=>v.url),fit:"cover"},{error:a(()=>[P("div",J,[e(b,null,{default:a(()=>[e(Y)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(l(),c("span",K,"-"))]}),_:1})]),_:1}),D.value.thirdInsurance?(l(),s(n,{key:0,span:8},{default:a(()=>[e(S,{value:"\u5DF2\u8FC7\u6709\u6548\u671F",class:"item",style:{"background-color":"#f2f4f7",padding:"10px"}},{default:a(()=>[e(i,{label:"\u4FDD\u5355\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[r(d(t.detailData.thirdInsuranceStartTime?I(h)(t.detailData.thirdInsuranceStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})]),_:1})):(l(),s(n,{key:1,span:8},{default:a(()=>[e(i,{label:"\u4FDD\u5355\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[r(d(t.detailData.thirdInsuranceStartTime?I(h)(t.detailData.thirdInsuranceStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})),e(n,{span:8},{default:a(()=>[e(i,{label:"\u6709\u6548\u671F\u9650"},{default:a(()=>[r(d(t.detailData.thirdInsuranceValidity===1?"1\u5E74":"-"),1)]),_:1})]),_:1})]),_:1})])}}});export{X as default};