data.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. import { BasicColumn } from '@/components/Table';
  2. import { FormSchema } from '/@/components/Form';
  3. import { listDictModel } from '@/api/common';
  4. export const BasicTab = [
  5. {
  6. key: '0',
  7. label: '全部',
  8. value: 128,
  9. hasValue: true,
  10. hasBracket: true,
  11. },
  12. {
  13. key: '1',
  14. label: '新患者',
  15. value: 12,
  16. hasValue: true,
  17. prefixColor: '#1BC1B3',
  18. // valueColor: 'red',
  19. hasBracket: true,
  20. },
  21. {
  22. key: '2',
  23. label: '无处方',
  24. value: 18,
  25. hasValue: true,
  26. prefixColor: '#D3D8DD',
  27. hasBracket: true,
  28. },
  29. {
  30. key: '3',
  31. label: '阳性',
  32. value: 18,
  33. hasValue: true,
  34. prefixColor: '#F7B500',
  35. hasBracket: true,
  36. },
  37. ];
  38. export const BasicTabActive = BasicTab[0].key;
  39. // 抽屉搜索条件
  40. export const siftFormSchema: FormSchema[] = [
  41. {
  42. label: '性别',
  43. field: 'gender',
  44. component: 'ApiRadioGroup',
  45. componentProps: {
  46. api: listDictModel,
  47. params: {
  48. dictCode: 'pb_sex',
  49. },
  50. },
  51. },
  52. {
  53. label: '年龄',
  54. field: 'code',
  55. component: 'Slider',
  56. componentProps: {
  57. placeholder: '请输入年龄',
  58. max: 99,
  59. min: 0,
  60. range: true,
  61. tooltipPlacement: 'bottom',
  62. tooltipVisible: true,
  63. tipFormatter: (value: number) => {
  64. return `${value}岁`;
  65. },
  66. marks: {
  67. 0: '0岁',
  68. 99: '99岁',
  69. },
  70. },
  71. },
  72. {
  73. label: '首次透析日期',
  74. field: 'firstDialysisTime',
  75. component: 'RangePicker',
  76. componentProps: {
  77. format: 'YYYY-MM-DD',
  78. valueFormat: 'YYYY-MM-DD',
  79. getPopupContainer: () => document.body,
  80. },
  81. },
  82. {
  83. label: '手术史',
  84. field: 'operationTime',
  85. component: 'RangePicker',
  86. componentProps: {
  87. format: 'YYYY-MM-DD',
  88. valueFormat: 'YYYY-MM-DD',
  89. getPopupContainer: () => document.body,
  90. },
  91. },
  92. {
  93. label: '传染病开始日期范围',
  94. field: 'contagiousStartTime',
  95. component: 'RangePicker',
  96. componentProps: {
  97. format: 'YYYY-MM-DD',
  98. valueFormat: 'YYYY-MM-DD',
  99. getPopupContainer: () => document.body,
  100. },
  101. },
  102. {
  103. label: '传染病结束日期范围',
  104. field: 'contagiousEndTime',
  105. component: 'RangePicker',
  106. componentProps: {
  107. format: 'YYYY-MM-DD',
  108. valueFormat: 'YYYY-MM-DD',
  109. getPopupContainer: () => document.body,
  110. },
  111. },
  112. ];
  113. export const columns: BasicColumn[] = [
  114. {
  115. title: '编号',
  116. dataIndex: 'uniqueNo',
  117. align: 'left',
  118. },
  119. {
  120. title: '姓名',
  121. dataIndex: 'name',
  122. align: 'left',
  123. },
  124. {
  125. title: '性别',
  126. dataIndex: 'gender',
  127. align: 'left',
  128. },
  129. {
  130. title: '出生日期',
  131. dataIndex: 'birthday',
  132. align: 'left',
  133. sorter: true,
  134. },
  135. {
  136. title: '年龄',
  137. dataIndex: 'age',
  138. align: 'left',
  139. },
  140. {
  141. title: '身高(cm)',
  142. dataIndex: 'height',
  143. align: 'left',
  144. },
  145. {
  146. title: '建档时间',
  147. dataIndex: 'createTime',
  148. align: 'left',
  149. width: 180,
  150. sorter: true,
  151. },
  152. {
  153. title: '类型',
  154. dataIndex: 'type',
  155. align: 'left',
  156. },
  157. {
  158. title: '首次透析日期',
  159. dataIndex: 'firstDialysisTime',
  160. align: 'left',
  161. },
  162. {
  163. title: '首次透析方式',
  164. dataIndex: 'firstDialysisType',
  165. align: 'left',
  166. },
  167. {
  168. title: '当前血管通路',
  169. dataIndex: 'vascularAccess',
  170. align: 'left',
  171. },
  172. {
  173. title: '传染标识',
  174. dataIndex: 'infectiousDiseases',
  175. align: 'left',
  176. },
  177. {
  178. title: '转归',
  179. dataIndex: 'patientReturn',
  180. align: 'left',
  181. },
  182. ];