import{j as i,B as D}from"./vendor-mui-CBBEb17G.js";import{bJ as C,aX as o,z as c}from"./index-IP_FWtso.js";import{u as I}from"./vendor-react-BBazpZul.js";const R=()=>{const{states:{taminDeliverPrescribeList:a,loading:d,patientInfo:t},handlers:{setSelectedItem:s}}=C(),n=I(),l=e=>{if(t!=null&&t.id){s(e);return}n(`${e.EPRSC_ID}/${e.PARTYPECODE}`)},r=[{key:"EPRSC_ID",dataIndex:"EPRSC_ID",title:"شناسه نسخه",width:100,render:e=>c(e)??"-"},{key:"PRESCDATE",dataIndex:"PRESCDATE",title:"تاریخ ثبت",width:100,render:e=>`${e.slice(0,4)}/${e.slice(4,6)}/${e.slice(6)}`},{key:"PARTYPEDESC",dataIndex:"PARTYPEDESC",title:"نوع پاراکلینیک",width:100},{key:"NATIONALCODE",dataIndex:"NATIONALCODE",title:"کد ملی بیمار",width:100},{key:"DOC_MDID",dataIndex:"DOC_MDID",title:"کد نظام پزشک معالج",width:150},{key:"DOC_NAME",dataIndex:"DOC_NAME",title:"نام پزشک معالج",width:150},{key:"DOC_SPEC",dataIndex:"DOC_SPEC",title:"تخصص پزشک معالج",width:150},{key:"COMMENTS",dataIndex:"COMMENTS",title:"توضیحات",width:150},{key:"REFER_REASON",dataIndex:"REFER_REASON",title:"دلیل ارجاع",width:100},{key:"details",dataIndex:"details",title:"جزئیات",width:120,render:(e,E)=>i.jsx(D,{size:"small",color:"info",variant:"contained",onClick:()=>l(E),children:"جزییات"})}];return i.jsx(o,{rowKey:"EPRSC_ID",loading:d,columns:r,data:a||[],boxProps:{sx:{height:"75vh"}}})};export{R as D};
