import{V as u,Z as d,n as _,d as f,c as h,o as b,w as n,j as s,W as k,l,X as y}from"./index-9PRMimni.js";import{B as w}from"./Table-0PViRYCf.js";import{c as g}from"./jobPlanDetails-5wu16ZE_.js";import{p as C}from"./pick-Cg3anC-c.js";import"./Table.vue_vue_type_style_index_0_scoped_7b9e6ece_lang-BoW2DV_e.js";import"./vuedraggable.umd-Co2xEC3p.js";import"./Render.vue_vue_type_script_lang-DKUYY0Zw.js";import"./componentMap-CElCaWis.js";import"./propTypes-CebMRUpe.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"./componentSetting-DVhNDBTO.js";import"./useTimeout-BxFilWvD.js";import"./usePageCache-DluHn7Yy.js";import"./tabsView-BXskTdVh.js";import"./Flex-CTSf12gq.js";const{t:i}=u(),x=[{title:"No.",key:"num",width:60,render:(o,t)=>t+1},{title:i("jobPlan.viewDetails.proceduresTab.procedureDetails"),key:"procedureDetail"},{title:i("jobPlan.viewDetails.proceduresTab.mandatory"),key:"mandatory",width:200,render:o=>{const{mandatory:t}=o;return d(_,{style:{cursor:"default"},readonly:!0,checked:t,checkedValue:!0,uncheckedValue:!1})}}],L=f({__name:"index",props:{data:{}},setup(o){const t=o;async function c(p){const a=C(t.data,["shipId","serialNumber","productCode","model","jobCode"]);try{const e=await g({...a});return{list:e??[],total:e?.length??0}}catch(e){return console.error("加载表格数据失败:",e),{list:[],total:0}}}return(p,a)=>{const e=k,m=y;return b(),h(m,null,{default:n(()=>[s(e,{bordered:!1,class:"proCard mt-2"},{default:n(()=>[s(l(w),{columns:l(x),request:r=>c(r),"row-key":r=>r.id,autoScrollX:!0,showTableSetting:!1,"virtual-scroll":"",pagination:!1},null,8,["columns","request","row-key"])]),_:1})]),_:1})}}});export{L as default};
