import{B as R}from"./Table-0PViRYCf.js";import{V as y,Z as a,H as v,c9 as g,c8 as I,k as S,d as b,e as V,r as w,h as x,o as B,j as r,w as i,B as D,p as q,N as C,l as u,am as U}from"./index-9PRMimni.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:l}=y();function M(c){return{columns:[{title:l("hsqe.auditInspection.vesselInspection.shipVisitReport.certificateSMS.no"),key:"no",width:50,render:(e,n)=>n+1},{title:l("hsqe.auditInspection.vesselInspection.shipVisitReport.certificateSMS.content"),key:"content",width:150},{title:l("hsqe.auditInspection.vesselInspection.shipVisitReport.certificateSMS.result"),key:"result",width:150,render(e,n){return a(I,{value:e.result,onUpdateValue(t){e.result=t,c?.updateResult?.(e,n)}},()=>a(v,{},[{label:"是",value:1},{label:"否",value:2}].map(t=>a(g,{label:t.label,value:t.value}))))}},{title:l("hsqe.auditInspection.vesselInspection.shipVisitReport.certificateSMS.remark"),key:"remark",width:150,render(e,n){return a(S,{type:"textarea",maxlength:50,"show-count":!0,value:e.remark,onUpdateValue(t){e.remark=t}})}}]}}const ee=b({__name:"index",setup(c){const p=V(),{columns:e}=M({updateResult:d}),n=w();function t(o){console.log("rowKeys",o)}async function m(){return{list:[{content:"content",result:"result",remark:"remark"}],total:1}}function _(){console.log("getData",n.value?.getDataSource())}function d(o,s){console.log("onUpdateResult",o,s),o.result===2&&(console.log("去缺陷反馈页面"),p.push({name:"Add_HSQE_AuditInspection_ReportList_VesselInspection_DeficiencyReport"}))}return(o,s)=>{const f=C,h=D;return B(),x("div",null,[r(u(R),{ref_key:"tableRef",ref:n,columns:u(e),request:m,"row-key":k=>k.id,pagination:!1,"onUpdate:checkedRowKeys":t,autoScrollX:!0,"virtual-scroll":""},{tableTitle:i(()=>[r(h,{type:"primary",onClick:_},{icon:i(()=>[r(f,null,{default:i(()=>[r(u(U))]),_:1})]),default:i(()=>[s[0]||(s[0]=q(" Get Data "))]),_:1})]),_:1},8,["columns","row-key"])])}}});export{ee as default};
