| 1 |
- import{ak as t}from"./index.js";import{a as i}from"./index-b614de6b.js";import{l as r}from"./antd-ecb53b14.js";const p=e=>t.get({url:"/archives/diagnosisHistory/query/list/single/"+e}),s=e=>t.get({url:"/archives/diagnosisHistory/query/list/multi/"+e}),c=e=>t.post({url:"/archives/diagnosisHistory/single/addOrEdit",params:e}),u=e=>t.post({url:"/archives/diagnosisHistory/multi/addOrEdit",params:e}),m=e=>t.post({url:"/archives/diagnosisHistory/multi/removeByIds",params:e});var d=(e=>(e.firstDialysis="首次透析",e.firstDialysis_field="firstDialysis",e.operation="手术史",e.operation_field="operation",e.allergic="过敏史",e.allergic_field="allergic",e.contagious="传染病史",e.contagious_field="contagious",e.complications="治疗前合并症",e.complications_field="complications",e.clinic="临床诊断",e.clinic_field="clinic",e.pathological="病理诊断",e.pathological_field="pathological",e.ckd="CKD/AKI",e.ckd_field="ckd",e.elseRemark="其他",e.elseRemark_field="elseRemark",e))(d||{});const h=[{label:"type",field:"type",component:"PlainText",show:!1},{label:"记录日期",field:"recordTime",component:"PlainText"},{label:"记录人",field:"name",component:"PlainText"},{label:"首次透析时间",field:"firstDialysisDate",required:!0,component:"DatePicker",componentProps:{format:"YYYY-MM-DD",placeholder:"请输入记录日期",getPopupContainer:()=>document.body,valueFormat:"YYYY-MM-DD"},ifShow:({values:e})=>e.type=="firstDialysis"},{label:"首次透析方式",field:"firstDialysisType",required:!0,component:"ApiSelect",itemProps:{validateTrigger:"blur"},componentProps:{api:i,params:{dictCode:"dt"},getPopupContainer:()=>document.body},ifShow:({values:e})=>e.type=="firstDialysis"}],f=[{title:"过敏名称数组",dataIndex:"nameOptions",ifShow:!1},{title:"诊断类型字典默认值",dataIndex:"typeOptions",ifShow:!1},{title:"过敏原",dataIndex:"contentType",width:150,edit:!0,editable:!0,editComponent:"Select",editRule:!0,editComponentProps:({record:e})=>({options:e.typeOptions,showSearch:!0,placeholder:"请选择",getPopupContainer:()=>document.body,filterOption:!1})},{title:"名称",dataIndex:"name",width:220,edit:!0,editable:!0,editComponent:"Select",editComponentProps({record:e}){return{options:e.nameOptions,mode:"multiple",showSearch:!0}}}],y=[{title:"手术时间",dataIndex:"recordTime",width:120,edit:!0,editable:!0,editComponent:"DatePicker",editRule:!0,editComponentProps:{placeholder:"请选择时间",format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",getPopupContainer:()=>document.body}},{title:"名称",dataIndex:"singleName",width:100,edit:!0,editable:!0,editComponent:"Input",editRule:!0,editComponentProps:{placeholder:"请输入手术名称"}},{title:"备注",dataIndex:"remark",width:200,edit:!0,editable:!0,editComponent:"Input",editRule:!0,editComponentProps:{placeholder:"请输入备注"}}],C=[{title:"诊断名称",dataIndex:"contentType",width:90,edit:!0,editable:!0,editComponent:"ApiSelect",editRule:!0,editComponentProps:{api:i,params:{dictCode:"pb_epidemic"},placeholder:"请选择",getPopupContainer:()=>document.body,filterOption:!1,showSearch:!1}},{title:"开始时间",dataIndex:"startTime",width:100,edit:!0,editable:!0,editComponent:"DatePicker",editRule:!0,editComponentProps:{placeholder:"请选择时间",format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",getPopupContainer:()=>document.body}},{title:"结束时间",dataIndex:"endTime",width:100,edit:!0,editable:!0,editComponent:"DatePicker",editRule:!0,editComponentProps:({record:e})=>({placeholder:"请选择时间",format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",getPopupContainer:()=>document.body,disabledDate:o=>o<r(e.startTime).subtract(1,"day").endOf("day")})},{title:"当前状态",dataIndex:"status",width:90,edit:!0,editable:!0,editComponent:"ApiSelect",editRule:!0,editComponentProps:{api:i,params:{dictCode:"contagious"},placeholder:"请选择",getPopupContainer:()=>document.body}},{title:"备注",dataIndex:"remark",width:100,edit:!0,editable:!0,editComponent:"Input"}],b=[{title:"诊断类型",dataIndex:"type",ifShow:!1},{title:"名称数组",dataIndex:"nameOptions",ifShow:!1},{title:"诊断类型字典默认值",dataIndex:"typeDict",ifShow:!1},{title:"诊断类型",dataIndex:"contentType",width:80,edit:!0,editable:!0,editComponent:"Select",editRule:!0,editComponentProps:({record:e})=>({options:e.typeOptions,placeholder:"请选择",getPopupContainer:()=>document.body,filterOption:!1,showSearch:!1})},{title:"名称",dataIndex:"name",width:180,edit:!0,editable:!0,editComponent:"Select",editComponentProps({record:e}){return{options:e.nameOptions,mode:"multiple"}}}],Y=[{title:"诊断结果",dataIndex:"remark",width:220,edit:!0,editable:!0,editComponent:"Input",editComponentProps:{placeholder:"请输入诊断结果"}}];export{d as D,s as a,p as b,m as c,h as d,f as e,C as f,y as g,b as h,Y as i,c as j,u as k};
|