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 l, c as S, o as y, l as r, __tla as __tla_1 } from "./index-9PRMimni.js";
let D;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })()
]).then(async ()=>{
    let _;
    _ = {
        name: "OtherMasterEngineer"
    };
    D = C({
        ..._,
        props: {
            readonly: {
                type: Boolean,
                default: !1
            }
        },
        setup (m, { expose: u }) {
            const o = m, s = E(), { masterColumns: c, methods: i } = g(), e = l([
                {
                    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: "Trading pattern and cargo operation specification",
                    title: "各类检查情况描述",
                    titleEn: "Var.inspection description",
                    isInput: !0,
                    remark: "",
                    remark2: ""
                },
                {
                    nameContent: "安全管理和营运(主要工作情况)",
                    nameContentEn: "Safety management and operation (the main work report)",
                    title: "设备仪器情况,船舶维修保养状况和后续维修保养重点",
                    titleEn: "Equipment and apparatus,status of Maintenance and future focus",
                    remark: "",
                    remark2: ""
                },
                {
                    nameContent: "船员管理,培训/主要船员的表现(包括实习生)",
                    nameContentEn: "Crew management,training/Performance of officers and engineers,including Cadet",
                    title: "船舶存在的主要问题以及原因分析",
                    titleEn: "The main problems and causes of the ship",
                    isInput: !0,
                    remark: "",
                    remark2: ""
                },
                {
                    nameContent: "对加强船舶管理提出的建议",
                    nameContentEn: "Suggestions on strengthening the management of ship",
                    title: "其他",
                    titleEn: "Others",
                    isInput: !0,
                    remark: "",
                    remark2: ""
                }
            ]), a = l();
            async function f(n, t) {
                e.value[0].remark = s.getLocale === "en" ? t?.crewNameEn : t?.crewName, e.value[0].remark2 = s.getLocale === "en" ? n?.shipNameEn : n?.shipName, e.value[1].remark = t?.signOnDate, e.value[1].remark2 = t?.plannedSignOffDate, i.updateReadOnly(!o.readonly), a.value?.setBordered(!0), a.value?.setStriped(!1);
            }
            function p(n) {
                i.updateReadOnly(!o.readonly), e.value = n;
            }
            function d() {
                return a.value?.getDataSource();
            }
            return u({
                handleOpen: f,
                voList: d,
                initData: p
            }), (n, t)=>(y(), S(r(h), {
                    class: "isTitleTable",
                    ref_key: "masterTableRef",
                    ref: a,
                    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 { D as _, __tla };
