import{V as d,bk as _,Z as f,n as b,d as h,r as k,c as y,o as w,w as n,j as m,W as T,l,X as C}from"./index-9PRMimni.js";import{B as N}from"./Table-0PViRYCf.js";import{d as g}from"./jobPlanDetails-5wu16ZE_.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 F=_(),{t:a}=d();function x(){return[{title:"No.",key:"num",width:60,render:(e,t)=>t+1},{title:a("jobPlan.viewDetails.smsFormsTab.smsFileCode"),key:"smsCode",width:100},{title:a("jobPlan.viewDetails.smsFormsTab.smsFileName"),key:"formName",width:200,render:e=>F.getLocale==="en"?e.formNameEn:e.formName},{title:a("jobPlan.viewDetails.smsFormsTab.mandatory"),key:"mandatory",width:100,render:e=>{const{mandatory:t}=e;return f(b,{style:{cursor:"default"},readonly:!0,checked:t,checkedValue:1,uncheckedValue:0})}}]}const K=h({__name:"index",props:{data:{}},setup(e){const t=e,i=k();async function c(s){try{return await g({...t.data,...s})}catch(o){return console.error("加载表格数据失败:",o),{list:[],total:0}}}return(s,o)=>{const u=T,p=C;return w(),y(p,null,{default:n(()=>[m(u,{bordered:!1,class:"proCard mt-2"},{default:n(()=>[m(l(N),{ref_key:"basicTableRef",ref:i,columns:l(x)(),request:r=>c(r),"row-key":r=>r.id,autoScrollX:!0,showTableSetting:!1,"virtual-scroll":""},null,8,["columns","request","row-key"])]),_:1})]),_:1})}}});export{K as default};
