import { r as g, V as Z, bk as qe, d as xe, e as Ie, f as ke, a as we, aw as Te, ac as j, d9 as Pe, c as y, o as b, w as r, j as i, W as Ce, D as C, l as s, H as Re, aI as Me, p as v, A as h, aE as X, B as je, i as x, ao as Ne, ap as De, t as Se, _ as Ae, k as Ee, ds as Oe, X as Be, cZ as $e, c_ as Le, v as Ve, __tla as __tla_0 } from "./index-9PRMimni.js";
import { _ as ze } from "./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";
import "./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";
import { B as We } from "./BasicForm-dL_oCSPM.js";
import { s as Fe, c as Y, t as He, f as Ge, r as Ue, h as Ke, i as Xe, j as Ye } from "./riskAssessment-BQgT9XET.js";
import { O as Ze, Y as Je } from "./template-rpthWlT9.js";
import { _ as Qe } from "./index.vue_vue_type_script_setup_true_lang-Cz3h2QSy.js";
import { _ as et } from "./operate.vue_vue_type_script_setup_true_lang-BZDBnVKd.js";
import { _ as tt, __tla as __tla_1 } from "./historyModal.vue_vue_type_script_setup_true_lang-Cjsz5Jbz.js";
import { u as ot } from "./useTags-C1thGhjF.js";
import { u as st } from "./useModal-CO65vga3.js";
import { u as rt } 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 "./Table-0PViRYCf.js";
import "./Table.vue_vue_type_style_index_0_scoped_7b9e6ece_lang-BoW2DV_e.js";
import "./componentMap-CElCaWis.js";
import "./format-DgF6KtHk.js";
import "./omit-B2_8Y6O_.js";
import "./_flatRest-DBrd2CHT.js";
import "./flatten-DeoUZLdb.js";
import "./print-CT_2hrjP.js";
import "./useTimeout-BxFilWvD.js";
import "./usePageCache-DluHn7Yy.js";
import "./Flex-CTSf12gq.js";
import "./index-CSS06GDa.js";
import "./includes-DdMWPj0t.js";
import "./toInteger-DQeH-nF-.js";
import "./head-aneRfQQJ.js";
import "./find-D_h_aJYR.js";
import "./findIndex-BgUIH3i1.js";
import "./TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js";
import "./Modal.vue_vue_type_script_setup_true_lang-kToXZ5AC.js";
import { __tla as __tla_2 } from "./index.vue_vue_type_style_index_0_scoped_b974e5ec_lang-_0QwzFKM.js";
import "./jobOrder-CGbsc7bp.js";
import "./has-CjqcrIOV.js";
import { __tla as __tla_3 } from "./index-8tHZJCCW.js";
import "./TimelineItem-Bkds7ZW8.js";
import "./schemas-BmKi-UM9.js";
import "./props-CLtNejQT.js";
let co;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_2;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_3;
        } catch  {}
    })()
]).then(async ()=>{
    const at = qe(), nt = await Ze(), { t: e } = Z();
    function it() {
        const c = g(!1), k = [
            {
                label: e("hsqe.ra.routinework"),
                value: 0
            },
            {
                label: e("hsqe.ra.nonroutinework"),
                value: 1
            }
        ], l = [
            {
                field: "shipId",
                component: "NSelect",
                label: e("hsqe.nc.name"),
                componentProps: {
                    options: nt,
                    "value-field": "id",
                    "label-field": at.getLocale === "en" ? "shipNameEn" : "shipName",
                    disabled: !0
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null,
                        message: `${e("hsqe.nc.name")} ${e("common.required")}`,
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "workType",
                label: e("hsqe.ra.workProjectType"),
                component: "NSelect",
                componentProps: {
                    disabled: c,
                    options: k
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null && t !== "",
                        message: `${e("hsqe.ra.workProjectType")} ${e("common.required")}`,
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "shipPosition",
                label: e("hsqe.ra.vesselPosition"),
                component: "NInput",
                componentProps: {
                    disabled: c
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null,
                        message: `${e("hsqe.ra.vesselPosition")} ${e("common.required")}`,
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "estimatedTime",
                label: e("hsqe.ra.estimatedTime"),
                component: "NDatePicker",
                componentProps: {
                    disabled: c,
                    type: "datetime",
                    valueFormat: "yyyy-MM-dd HH:mm:ss"
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null,
                        message: `${e("hsqe.ra.estimatedTime")} ${e("common.required")}`,
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "description",
                label: e("hsqe.ra.WorkProjectDescription"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    disabled: c,
                    maxlength: 300,
                    showCount: !0
                },
                giProps: {
                    span: 2
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null,
                        message: `${e("hsqe.ra.WorkProjectDescription")} ${e("common.required")}`,
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "note",
                label: e("hsqe.ra.Notes"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    disabled: c,
                    maxlength: 300,
                    showCount: !0
                },
                giProps: {
                    span: 2
                }
            },
            {
                field: "id",
                hidden: !0
            },
            {
                field: "subModuleCode",
                hidden: !0
            }
        ], a = [
            {
                field: "shipName",
                label: e("Vessel"),
                component: "NInput",
                componentProps: ()=>({
                        disabled: !0
                    })
            },
            {
                field: "workType",
                label: e("Type of Work/Project"),
                component: "NInput",
                componentProps: {
                    disabled: c
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null && t !== "",
                        message: e("common.inputText") + " " + e("hsqe.cdi.inspectionId"),
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "workType",
                label: e("Item"),
                component: "NInput",
                componentProps: {
                    disabled: c
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null && t !== "",
                        message: e("common.inputText") + " " + e("hsqe.cdi.inspectionId"),
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "type",
                component: "NSelect",
                label: e("Dept/Ship"),
                componentProps: {
                    options: [
                        {
                            label: e("Deck Department"),
                            value: 1
                        },
                        {
                            label: e("Engine Department"),
                            value: 2
                        }
                    ]
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null && t !== "",
                        message: e("common.inputText") + " " + e("hsqe.cdi.inspectionId"),
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "shipPosition",
                label: e("Vessel Position"),
                component: "NInput",
                componentProps: {
                    disabled: c
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null,
                        message: e("common.inputText") + " " + e("hsqe.rs.inspectorName"),
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "estimatedTime",
                label: e("Estimated Time need to complete Work / Project"),
                component: "NDatePicker",
                componentProps: {
                    disabled: c,
                    type: "date",
                    valueFormat: "yyyy-MM-dd"
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null,
                        message: e("common.inputText") + " " + e("hsqe.rs.inspectorName"),
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ],
                giProps: {
                    span: 2
                }
            },
            {
                field: "description",
                label: e("Description of Work/Project"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    disabled: c,
                    maxlength: 300,
                    showCount: !0
                },
                giProps: {
                    span: 2
                },
                rules: [
                    {
                        required: !0,
                        validator: (p, t)=>t != null,
                        message: e("common.inputText") + " " + e("hsqe.rs.inspectorName"),
                        trigger: [
                            "blur",
                            "change"
                        ]
                    }
                ]
            },
            {
                field: "note",
                label: e("Notes"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    disabled: c,
                    maxlength: 300,
                    showCount: !0
                },
                giProps: {
                    span: 2
                }
            },
            {
                field: "id",
                hidden: !0
            },
            {
                field: "subModuleCode",
                hidden: !0
            }
        ];
        return {
            schemas: l,
            schemasOther: a,
            methods: {
                setReadOnly: (p)=>{
                    c.value = p;
                }
            }
        };
    }
    let lt, pt;
    lt = {
        class: "flex flex-wrap items-center"
    };
    pt = xe({
        __name: "index",
        setup (c) {
            const k = Ie(), l = ke(), { t: a } = Z(), L = Le(), p = $e(), { schemas: t, schemasOther: J, methods: Q } = it(), { setReadOnly: V } = Q, { closeCurrentTabToBack: ee } = ot(), u = g({}), q = g(""), N = g(""), z = g(""), R = g(""), w = g(""), I = g([]), _ = g({}), T = g(), W = g(), F = g(), M = we({
                operationMemo: ""
            }), te = {
                operationMemo: {
                    required: !0,
                    message: a("hsqe.planner.modal.reasonHint"),
                    trigger: "blur"
                }
            }, [oe, { openModal: se, closeModal: re, setSubLoading: D }] = st({
                title: a("hsqe.deficiency.captainReject"),
                closable: !1,
                maskClosable: !0,
                width: 680,
                subBtuText: a("common.okText"),
                cancelText: a("common.cancelText")
            }), [ae, { setProps: ne, getFieldsValue: S, setFieldsValue: A, submit: ie }] = rt({
                schemas: [],
                labelWidth: "auto",
                layout: "horizontal",
                collapsed: !0,
                gridProps: {
                    cols: 4,
                    xGap: 15
                },
                showActionButtonGroup: !1
            });
            async function H(n) {
                let o = T.value.getAllRiskDataList(), m = {
                    report: {
                        id: l.query.riskAssessmentId,
                        ...S(),
                        baseId: l.query.baseId,
                        projectId: u.value.projectId,
                        status: 0,
                        deptType: u.value.deptType
                    },
                    hazardsList: o
                }, f = await Fe(m);
                q.value, R.value = f.id;
                const d = await Y({
                    reportId: R.value
                });
                if (w.value = d?.report?.subModuleCode || "", _.value = d?.report || {}, T.value.setAllRiskDataList(d?.hazardsList || []), f && l.query.type === "add" && !n) {
                    const P = new URL(window.location.href);
                    P.searchParams.set("id", f.toString()), P.searchParams.set("type", "edit"), window.history.replaceState({
                        ...window.history.state
                    }, "", P.toString()), A({
                        id: f.id
                    });
                }
                n ? await le(o) : p.success(a("common.saveSuccessText"));
            }
            async function le(n) {
                const o = S();
                if (n && n.length > 0) {
                    const m = await ie(), f = n.every((d)=>d.shipPrecaution && d.shipExistingPersonal !== void 0 && d.shipExistingPersonal !== null && d.shipExistingEnvironment !== void 0 && d.shipExistingEnvironment !== null && d.shipExistingProperty !== void 0 && d.shipExistingProperty !== null);
                    if (m) f ? (w.value === "non" ? await He({
                        shipId: o.shipId,
                        busId: _.value.id,
                        subModuleCode: w.value,
                        moduleCode: "riskAssessment"
                    }) : await Ge({
                        shipId: o.shipId,
                        busId: _.value.id,
                        subModuleCode: w.value,
                        moduleCode: "riskAssessment"
                    }), E()) : p.error(a("hsqe.ra.submitErrorText"));
                    else return !1;
                }
            }
            async function pe() {
                let n = O();
                await Ue({
                    shipId: n.shipId,
                    busId: n.id,
                    moduleCode: "riskAssessment",
                    subModuleCode: n.subModuleCode
                }), E();
            }
            async function de() {
                W.value.validate(async (n)=>{
                    if (n) D(!1);
                    else try {
                        let o = O();
                        await Ke({
                            shipId: o.shipId,
                            busId: o.id,
                            moduleCode: "riskAssessment",
                            subModuleCode: o.subModuleCode,
                            comment: M.operationMemo
                        }), D(!1), re(), E();
                    } catch  {
                        D(!1);
                    }
                });
            }
            function E() {
                p.success(a("hsqe.deficiency.operationSuccessful")), k.push({
                    name: "RiskAssessment_OnBoard",
                    query: {
                        projectId: u.value.projectId || l.query.projectId
                    }
                });
            }
            function ue() {
                let n = O();
                F.value?.showModal({
                    id: n.id,
                    moduleCode: "riskAssessment",
                    subModuleCode: n.subModuleCode
                });
            }
            function ce() {
                l.query.type === "add" || l.query.type === "edit" ? L.info({
                    title: a("hsqe.auditInspection.back.title"),
                    content: a("hsqe.auditInspection.back.cont"),
                    positiveText: a("common.okText"),
                    negativeText: a("common.cancelText"),
                    onPositiveClick: async ()=>{
                        k.push({
                            name: "RiskAssessment_OnBoard",
                            query: {
                                projectId: u.value.projectId || l.query.projectId
                            }
                        });
                    }
                }) : q.value === "view" ? k.push({
                    name: "RiskAssessment_OnBoard",
                    query: {
                        projectId: u.value.projectId || l.query.projectId
                    }
                }) : ee();
            }
            function G(n) {
                n({
                    data: I.value
                });
            }
            function O() {
                return S();
            }
            function me(n) {
                switch(n){
                    case 1:
                        return a("hsqe.ra.DeckDepartment");
                    case 2:
                        return a("hsqe.ra.EngineDepartment");
                    case 3:
                        return a("hsqe.ra.SecurityAndHealthSafety");
                    case 4:
                        return a("hsqe.ra.CyberSecurity");
                    default:
                        return "";
                }
            }
            async function fe() {
                N.value = l.query.projectType, q.value = l.query.type || "", z.value = l.query.baseId || "", R.value = l.query.id || "";
                const n = l.query.description;
                if (q.value === "add") {
                    const o = await Je();
                    u.value = await Xe(l.query.projectId), u.value.vesselCategory = u.value.type;
                    const m = await Ye({
                        baseId: z.value
                    });
                    await j(), T.value.setTreeData(m || []), I.value = m || [], setTimeout(()=>{
                        A({
                            shipId: o.vesselId,
                            workType: u.value?.workType,
                            description: n
                        });
                    }, 400);
                } else {
                    const o = await Y({
                        reportId: R.value
                    });
                    u.value = o?.report || {}, _.value = o?.report || {}, w.value = o?.report?.subModuleCode || "", await j(), T.value.setTreeData(o?.hazardsList || []), I.value = o?.hazardsList || [], setTimeout(()=>{
                        A(o?.report);
                    }, 200);
                }
                q.value === "add" || q.value === "edit" && _.value.canEdit ? V(!1) : V(!0), await j(), ne({
                    schemas: N.value === "other" ? J : t
                }), console.log(u.value, "dataInfo.value---");
            }
            return Te(async ()=>{
                await j(), fe();
            }), (n, o)=>{
                const m = je, f = Me, d = De, P = Ne, B = Re, U = Ce, ge = We, he = Ee, _e = Ae, ye = Se, be = ze, ve = Be, K = Pe("debounce");
                return b(), y(ve, null, {
                    default: r(()=>[
                            i(U, {
                                bordered: !1,
                                class: "py-3 proCard",
                                size: "small",
                                segmented: {
                                    content: !0
                                },
                                "content-style": "padding: 20px 15px 0 15px;"
                            }, {
                                header: r(()=>[
                                        i(B, null, {
                                            default: r(()=>[
                                                    i(f, {
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: r(()=>[
                                                                i(m, {
                                                                    type: "text",
                                                                    class: "size-8",
                                                                    onClick: ce
                                                                }, {
                                                                    icon: r(()=>o[2] || (o[2] = [
                                                                            x("i", {
                                                                                class: "iconfont icon-a-shangyibu2 text-[16px]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        default: r(()=>[
                                                                v(" " + h(s(a)("common.backToList")), 1)
                                                            ]),
                                                        _: 1
                                                    }),
                                                    x("div", lt, [
                                                        x("h1", null, h(s(a)("common.menu.riskAssessment")), 1),
                                                        i(P, {
                                                            "label-placement": "left",
                                                            column: 4,
                                                            class: "ml-[20px]",
                                                            "label-align": "right",
                                                            "label-style": {
                                                                fontWeight: 400
                                                            },
                                                            "content-style": {
                                                                fontWeight: 500,
                                                                paddingRight: "20px"
                                                            }
                                                        }, {
                                                            default: r(()=>[
                                                                    i(d, {
                                                                        class: "ml-[10px]",
                                                                        label: s(a)("hsqe.ra.No"),
                                                                        span: 1
                                                                    }, {
                                                                        default: r(()=>[
                                                                                v(h(s(u)?.projectNo || ""), 1)
                                                                            ]),
                                                                        _: 1
                                                                    }, 8, [
                                                                        "label"
                                                                    ]),
                                                                    i(d, {
                                                                        class: "ml-[10px]",
                                                                        label: s(a)("hsqe.ra.deptOrShip"),
                                                                        span: 1
                                                                    }, {
                                                                        default: r(()=>[
                                                                                v(h(me(s(u).deptType)), 1)
                                                                            ]),
                                                                        _: 1
                                                                    }, 8, [
                                                                        "label"
                                                                    ]),
                                                                    i(d, {
                                                                        class: "ml-[10px]",
                                                                        label: s(a)("hsqe.ra.VesselType"),
                                                                        span: 1
                                                                    }, {
                                                                        default: r(()=>[
                                                                                v(h(s(u).vesselCategory == 1 ? s(a)("hsqe.ra.drybulk") : s(a)("hsqe.ra.OILCHEMICALSTANKER")), 1)
                                                                            ]),
                                                                        _: 1
                                                                    }, 8, [
                                                                        "label"
                                                                    ]),
                                                                    i(d, {
                                                                        class: "ml-[10px]",
                                                                        label: s(a)("hsqe.ra.ReportNo"),
                                                                        span: 1
                                                                    }, {
                                                                        default: r(()=>[
                                                                                v(h(s(_)?.reportNo || ""), 1)
                                                                            ]),
                                                                        _: 1
                                                                    }, 8, [
                                                                        "label"
                                                                    ])
                                                                ]),
                                                            _: 1
                                                        })
                                                    ])
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                "header-extra": r(()=>[
                                        s(q).indexOf("view") === -1 ? (b(), y(B, {
                                            key: 0
                                        }, {
                                            default: r(()=>[
                                                    s(_).canEdit || s(q) === "add" ? (b(), y(f, {
                                                        key: 0,
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: r(()=>[
                                                                X((b(), y(m, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    bordered: "",
                                                                    secondary: "",
                                                                    class: "size-7"
                                                                }, {
                                                                    icon: r(()=>o[3] || (o[3] = [
                                                                            x("i", {
                                                                                class: "iconfont icon-Save"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })), [
                                                                    [
                                                                        K,
                                                                        ()=>H(!1),
                                                                        "1000"
                                                                    ]
                                                                ])
                                                            ]),
                                                        default: r(()=>[
                                                                v(" " + h(s(a)("common.saveText")), 1)
                                                            ]),
                                                        _: 1
                                                    })) : C("", !0),
                                                    s(_).canEdit || s(q) === "add" ? (b(), y(f, {
                                                        key: 1,
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: r(()=>[
                                                                X((b(), y(m, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    bordered: "",
                                                                    secondary: "",
                                                                    class: "size-7"
                                                                }, {
                                                                    icon: r(()=>o[4] || (o[4] = [
                                                                            x("i", {
                                                                                class: "iconfont icon-Submit text-[16px]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })), [
                                                                    [
                                                                        K,
                                                                        ()=>H(!0),
                                                                        "1000"
                                                                    ]
                                                                ])
                                                            ]),
                                                        default: r(()=>[
                                                                v(" " + h(s(a)("common.submit")), 1)
                                                            ]),
                                                        _: 1
                                                    })) : C("", !0),
                                                    s(_).canApprove ? (b(), y(f, {
                                                        key: 2,
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: r(()=>[
                                                                i(m, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    secondary: "",
                                                                    bordered: "",
                                                                    class: "size-8",
                                                                    onClick: pe
                                                                }, {
                                                                    icon: r(()=>o[5] || (o[5] = [
                                                                            x("i", {
                                                                                class: "iconfont icon-Approve text-[16px]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        default: r(()=>[
                                                                v(" " + h(s(a)("hsqe.ra.pass")), 1)
                                                            ]),
                                                        _: 1
                                                    })) : C("", !0),
                                                    s(_).canApprove ? (b(), y(f, {
                                                        key: 3,
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: r(()=>[
                                                                i(m, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    secondary: "",
                                                                    bordered: "",
                                                                    class: "size-8",
                                                                    onClick: s(se)
                                                                }, {
                                                                    icon: r(()=>o[6] || (o[6] = [
                                                                            x("i", {
                                                                                class: "iconfont icon-Returned text-[16px]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                }, 8, [
                                                                    "onClick"
                                                                ])
                                                            ]),
                                                        default: r(()=>[
                                                                v(" " + h(s(a)("hsqe.ra.reject")), 1)
                                                            ]),
                                                        _: 1
                                                    })) : C("", !0)
                                                ]),
                                            _: 1
                                        })) : C("", !0),
                                        i(B, {
                                            style: {
                                                "margin-left": "10px"
                                            }
                                        }, {
                                            default: r(()=>[
                                                    i(f, {
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: r(()=>[
                                                                i(m, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    secondary: "",
                                                                    bordered: "",
                                                                    class: "size-8",
                                                                    onClick: ue
                                                                }, {
                                                                    icon: r(()=>o[7] || (o[7] = [
                                                                            x("i", {
                                                                                class: "iconfont icon-Log text-[16px]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        default: r(()=>[
                                                                v(" " + h(s(a)("hsqe.deficiency.historicalRecords")), 1)
                                                            ]),
                                                        _: 1
                                                    })
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                _: 1
                            }),
                            i(U, {
                                bordered: !1,
                                class: "py-3 proCard mt-[10px]",
                                size: "small",
                                segmented: {
                                    content: !0
                                },
                                "content-style": "padding: 20px 15px 0 15px;"
                            }, {
                                default: r(()=>[
                                        i(ge, {
                                            onRegister: s(ae)
                                        }, null, 8, [
                                            "onRegister"
                                        ])
                                    ]),
                                _: 1
                            }),
                            i(be, {
                                onRegister: s(oe),
                                ref: "rejectModalRef",
                                onOnOk: de
                            }, {
                                default: r(()=>[
                                        i(ye, {
                                            model: s(M),
                                            rules: te,
                                            ref_key: "formRef",
                                            ref: W
                                        }, {
                                            default: r(()=>[
                                                    i(_e, {
                                                        label: s(a)("hsqe.planner.modal.reason"),
                                                        path: "operationMemo"
                                                    }, {
                                                        default: r(()=>[
                                                                i(he, {
                                                                    "show-count": "",
                                                                    type: "textarea",
                                                                    maxlength: "300",
                                                                    value: s(M).operationMemo,
                                                                    "onUpdate:value": o[0] || (o[0] = ($)=>s(M).operationMemo = $),
                                                                    class: "h-[80px]"
                                                                }, null, 8, [
                                                                    "value"
                                                                ])
                                                            ]),
                                                        _: 1
                                                    }, 8, [
                                                        "label"
                                                    ])
                                                ]),
                                            _: 1
                                        }, 8, [
                                            "model"
                                        ])
                                    ]),
                                _: 1
                            }, 8, [
                                "onRegister"
                            ]),
                            s(N) === "other" ? (b(), y(et, {
                                key: 0,
                                ref: "otherRef",
                                onGetData: G
                            }, null, 512)) : (b(), y(Qe, {
                                key: 1,
                                modelValue: s(I),
                                "onUpdate:modelValue": o[1] || (o[1] = ($)=>Oe(I) ? I.value = $ : null),
                                dataInfo: s(u),
                                ref_key: "dailyRef",
                                ref: T,
                                onGetData: G
                            }, null, 8, [
                                "modelValue",
                                "dataInfo"
                            ])),
                            i(tt, {
                                ref_key: "historyModalRef",
                                ref: F
                            }, null, 512)
                        ]),
                    _: 1
                });
            };
        }
    });
    co = Ve(pt, [
        [
            "__scopeId",
            "data-v-1239f30c"
        ]
    ]);
});
export { co as default, __tla };
