import{B as i}from"./BasicForm-dL_oCSPM.js";import{a3 as m}from"./template-rpthWlT9.js";import{V as p,d as r,f as d,aw as c,c as u,o as b,w as f,j as g,l as D,W as N}from"./index-9PRMimni.js";import{u as v}from"./useForm-CKmgcynv.js";import"./Render.vue_vue_type_script_lang-DKUYY0Zw.js";import"./SingleImageUpload-CNx4b9eC.js";import"./ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js";import"./componentSetting-DVhNDBTO.js";import"./ImageUpload-DUsnro3W.js";import"./vuedraggable.umd-Co2xEC3p.js";import"./BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js";import"./tabsView-BXskTdVh.js";import"./BasicForm.vue_vue_type_style_index_0_scoped_b9e995ec_lang-CEvcLwxD.js";import"./propTypes-CebMRUpe.js";import"./BasicSelect-C_uwzMkE.js";import"./BasicSelect.vue_vue_type_style_index_0_scoped_772d51cc_lang-Brp6PjEU.js";import"./dictionary-BRse4lkf.js";import"./index-DkvzUEqh.js";import"./index-kKnqLkWM.js";import"./AutoComplete-Dv1Bqed4.js";import"./TreeSelect-BZh2DeCh.js";import"./usePageCache-DluHn7Yy.js";const{t:e}=p(),h=[{field:"shipName",component:"NInput",label:e("mdm.vesselsDetail.vesselName"),componentProps:{disabled:!0}},{field:"shipNameEn",component:"NInput",label:e("mdm.vesselsDetail.vesselNameEn"),componentProps:{disabled:!0}},{field:"callSign",component:"NInput",label:e("mdm.vesselsDetail.callSign"),componentProps:{disabled:!0}},{field:"imo",component:"NInput",label:e("mdm.vesselsDetail.imo"),componentProps:{disabled:!0}},{field:"mmsi",component:"NInput",label:e("mdm.vesselsDetail.mmsi"),componentProps:{disabled:!0}},{field:"classLabel",component:"NInput",label:e("mdm.vesselsDetail.classLabel"),componentProps:{disabled:!0}},{field:"flagStateLabel",component:"NInput",label:e("mdm.vesselsDetail.flagStateLabel"),componentProps:{disabled:!0}},{field:"portOfRegistryLabel",component:"NInput",label:e("mdm.vesselsDetail.portOfRegistryLabel"),componentProps:{disabled:!0}},{field:"grossTonnage",component:"NInput",label:e("mdm.vesselsDetail.grossTonnage"),componentProps:{disabled:!0}},{field:"netTonnage",component:"NInput",label:e("mdm.vesselsDetail.netTonnage"),componentProps:{disabled:!0}},{field:"deadweightTonnage",component:"NInput",label:e("mdm.vesselsDetail.deadweightTonnage"),componentProps:{disabled:!0}},{field:"lengthOverall",component:"NInput",label:e("mdm.vesselsDetail.lengthOverall"),componentProps:{disabled:!0}},{field:"beam",component:"NInput",label:e("mdm.vesselsDetail.beam"),componentProps:{disabled:!0}},{field:"depth",component:"NInput",label:e("mdm.vesselsDetail.depth"),componentProps:{disabled:!0}},{field:"keelLayingDate",component:"NDatePicker",label:e("mdm.vesselsDetail.keelLayingDate"),componentProps:{disabled:!0}},{field:"completionDate",component:"NDatePicker",label:e("mdm.vesselsDetail.completionDate"),componentProps:{disabled:!0}},{field:"shipyard",component:"NSelect",label:e("mdm.vesselsDetail.shipyard"),componentProps:{disabled:!0}},{field:"eexi",component:"NInput",label:e("mdm.vesselsDetail.eexi"),componentProps:{disabled:!0}},{field:"eedi",component:"NSelect",label:e("mdm.vesselsDetail.eedi"),componentProps:{disabled:!0}},{field:"rightShipScore",component:"NSelect",label:e("mdm.vesselsDetail.rightShipScore"),componentProps:{disabled:!0}},{field:"rightshipGhgRatingLabel",component:"NSelect",label:e("mdm.vesselsDetail.rightShipGhgRatingLabel"),componentProps:{disabled:!0}},{field:"summerDraft",component:"NInput",label:e("mdm.vesselsDetail.summerDraft"),componentProps:{disabled:!0}},{field:"shipTypeLabel",component:"NSelect",label:e("mdm.vesselsDetail.shipTypeLabel"),componentProps:{disabled:!0}},{field:"lastYearCiiRating",component:"NInput",label:e("mdm.vesselsDetail.lastYearCiiRating"),componentProps:{disabled:!0}},{field:"iceClass",component:"NSelect",label:e("mdm.vesselsDetail.iceClass"),componentProps:{disabled:!0}}],W=r({__name:"index",setup(P){const t=d(),[l,{setFieldsValue:s}]=v({schemas:h,layout:"horizontal",gridProps:{cols:5,xGap:15},showActionButtonGroup:!1});return c(async()=>{if(t.query.id){const o=await m(Number(t.query.id));s(o)}}),(o,I)=>{const n=i,a=N;return b(),u(a,{bordered:!1,class:"proCard"},{default:f(()=>[g(n,{onRegister:D(l)},null,8,["onRegister"])]),_:1})}}});export{W as default};
