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