import{V as r,d as g,e as v,c as b,o as y,w as e,j as t,W as h,l as a,H as S,B as k,p as B,N as w,h3 as A,X as N}from"./index-9PRMimni.js";import{B as C}from"./BasicForm-dL_oCSPM.js";import{B as I}from"./Table-0PViRYCf.js";import{u as P}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.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"./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";import"./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";import"./useModal-CO65vga3.js";import"./useTimeout-BxFilWvD.js";import"./usePageCache-DluHn7Yy.js";import"./Flex-CTSf12gq.js";const{t:l}=r(),T=[{field:"category",label:l("drill.manage.formCategory"),component:"NSelect",componentProps:{options:[{name:"All",value:1},{name:"Single Vissel Drill",value:2},{name:"Ship-Shore Joint Drill",value:3}],"label-field":"name","value-field":"value"}},{field:"Status",label:l("drill.manage.formStatus"),component:"NSelect",componentProps:{options:[{name:"All",value:1},{name:"Active",value:2},{name:"Inactive",value:3}],"label-field":"name","value-field":"value"}},{field:"Group",label:l("drill.manage.formStatus"),component:"NSelect",componentProps:{options:[{name:"All",value:1},{name:"Group1",value:2},{name:"Group2",value:3}],"label-field":"name","value-field":"value"}},{field:"Type",label:l("drill.manage.formType"),component:"NSelect",componentProps:{options:[{name:"All",value:1},{name:"Dry Bulk",value:2},{name:"Oil & CHEMICALS",value:3}],"label-field":"name","value-field":"value"}},{field:"Item",label:l("drill.manage.formItem"),component:"NInput",componentProps:{}}],{t:o}=r(),x=[{type:"selection",key:"selection"},{title:o("drill.manage.tableItem"),key:"item",width:140},{title:o("drill.manage.tableStatus"),key:"status",width:140},{title:o("drill.manage.tableGroup"),key:"severity",width:140},{title:o("drill.manage.tableCategory"),key:"expirationTime",width:140},{title:o("drill.manage.tablePeroid"),key:"vesselPositionName",width:140},{title:o("drill.manage.tableOperation"),key:"dispReportType",width:140}],_e=g({__name:"manage",setup(G){const m=v(),[p]=P({schemas:T,labelWidth:"auto",gridProps:{cols:4,xGap:15},showAdvancedButton:!1});function s(){m.push({path:"/drill/drillItem"})}return(R,n)=>{const u=C,i=h,c=w,d=k,_=S,f=N;return y(),b(f,null,{default:e(()=>[t(i,{bordered:!1,class:"mt-3 proCard"},{default:e(()=>[t(u,{onRegister:a(p)},null,8,["onRegister"])]),_:1}),t(i,{bordered:!1,class:"mt-3 py-3 proCard"},{default:e(()=>[t(a(I),{ref:"tableRef",columns:a(x),pagination:!1,immediate:!0,showTableSetting:!1,autoScrollX:!0},{tableTitle:e(()=>[t(_,null,{default:e(()=>[t(d,{type:"primary",onClick:s},{icon:e(()=>[t(c,null,{default:e(()=>[t(a(A))]),_:1})]),default:e(()=>[n[0]||(n[0]=B(" Add "))]),_:1})]),_:1})]),_:1},8,["columns"])]),_:1})]),_:1})}}});export{_e as default};
