import { e as g, __tla as __tla_0 } from "./columns--0qKB6VJ.js";
import { B as h } from "./Table-0PViRYCf.js";
import { d as C, bk as E, r as s, c as y, o as S, l as r, ac as v, __tla as __tla_1 } from "./index-9PRMimni.js";
let T;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })()
]).then(async ()=>{
    let _;
    _ = {
        name: "OtherMasterEngineer"
    };
    T = C({
        ..._,
        props: {
            readonly: {
                type: Boolean,
                default: !1
            }
        },
        setup (u, { expose: m }) {
            const o = u, i = E(), { chiefColumns: c, methods: l } = g(), e = s([
                {
                    nameContent: "姓名",
                    nameContentEn: "Name",
                    title: "船名",
                    titleEn: "Vessel",
                    remark: "",
                    remark2: ""
                },
                {
                    nameContent: "上船时间",
                    nameContentEn: "Date of Sign-on",
                    title: "下船时间",
                    titleEn: "Date of Sign-off",
                    isDate: !0,
                    remark: null,
                    remark2: null
                },
                {
                    nameContent: "机电设备工况，船舶维修保养状况",
                    nameContentEn: "Condition of Machinery & Equipments,Status of Maintenance",
                    title: "船舶机电存在的主要问题以及原因分析",
                    titleEn: "The main problems and causes of the machinery and equipments",
                    isInput: !0,
                    remark: "",
                    remark2: ""
                },
                {
                    nameContent: "遗留的各类缺陷描述",
                    nameContentEn: "Outstanding Deficiency description",
                    title: "后续维修保养重点以及修理计划",
                    titleEn: "Future focus and repair plan",
                    remark: "",
                    remark2: ""
                },
                {
                    nameContent: "轮机部船员管理,培训/主要船员的表现(包括实习生)",
                    nameContentEn: "E/R Crew management,training/Performance of engineers,including Cadet",
                    title: "对加强船舶管理提出的建议",
                    titleEn: "Suggestions on strengthening the management of ship",
                    isInput: !0,
                    remark: "",
                    remark2: ""
                },
                {
                    nameContent: "其他",
                    nameContentEn: "Others",
                    title: "",
                    titleEn: "",
                    isInput: !0,
                    remark: "",
                    remark2: ""
                }
            ]), n = s();
            async function f(t, a) {
                e.value[0].remark = i.getLocale === "en" ? a?.crewNameEn : a?.crewName, e.value[0].remark2 = i.getLocale === "en" ? t?.shipNameEn : t?.shipName, e.value[1].remark = a?.signOnDate, e.value[1].remark2 = a?.plannedSignOffDate, l.updateReadOnly(!o.readonly), n.value?.setBordered(!0), n.value?.setStriped(!1);
            }
            function d(t) {
                l.updateReadOnly(!o.readonly), e.value = t, v(()=>{
                    n.value?.reload();
                });
            }
            function p() {
                return n.value?.getDataSource();
            }
            return m({
                handleOpen: f,
                voList: p,
                initData: d
            }), (t, a)=>(S(), y(r(h), {
                    class: "isTitleTable",
                    ref_key: "ceTableRef",
                    ref: n,
                    columns: r(c),
                    dataSource: r(e),
                    "row-key": (k)=>k.id,
                    autoScrollX: !0,
                    immediate: !1,
                    pagination: !1,
                    "show-table-setting": !1,
                    "can-resize": !1
                }, null, 8, [
                    "columns",
                    "dataSource",
                    "row-key"
                ]));
        }
    });
});
export { T as _, __tla };
