style.less 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. .check-unit-mana {
  2. .check-unit-container {
  3. display: flex;
  4. height: 100%;
  5. padding: 16px;
  6. }
  7. // 左侧科室树样式
  8. .dept-tree {
  9. display: flex;
  10. flex-direction: column;
  11. width: 220px;
  12. min-width: 220px;
  13. max-width: 220px;
  14. background: #fff;
  15. height: calc(100vh - 80px);
  16. overflow: hidden;
  17. .search-wrapper {
  18. display: flex;
  19. align-items: center;
  20. padding: 12px;
  21. padding-bottom: 8px;
  22. flex-shrink: 0; // 防止搜索栏被压缩
  23. .search-input {
  24. flex: 1;
  25. border-radius: 4px;
  26. border: 1px solid #d9d9d9;
  27. .ant-input {
  28. border: none;
  29. box-shadow: none;
  30. }
  31. &:hover,
  32. &:focus-within {
  33. border-color: #3377ff;
  34. }
  35. }
  36. .add-button {
  37. margin-left: 8px;
  38. width: 24px;
  39. height: 24px;
  40. background: #fafcff;
  41. border-radius: 4px;
  42. border: 1px solid #dae2f2;
  43. padding: 0;
  44. display: flex;
  45. align-items: center;
  46. justify-content: center;
  47. }
  48. }
  49. .dept-list {
  50. flex: 1;
  51. overflow-y: auto;
  52. .dept-group {
  53. margin-bottom: 0;
  54. .dept-parent {
  55. display: flex;
  56. align-items: center;
  57. padding: 6px 12px 6px 8px;
  58. margin: 0 8px;
  59. cursor: pointer;
  60. height: 32px;
  61. box-sizing: border-box;
  62. border-radius: 4px;
  63. justify-content: space-between;
  64. .toggle-button {
  65. padding: 0;
  66. width: 16px;
  67. height: 16px;
  68. margin-right: 4px;
  69. border: none;
  70. line-height: 1;
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. color: #999;
  75. background: transparent;
  76. .anticon {
  77. font-size: 16px;
  78. }
  79. &:hover {
  80. background: transparent;
  81. color: #333;
  82. }
  83. }
  84. .dept-title {
  85. flex: 1;
  86. font-size: 14px;
  87. color: #17181A;
  88. }
  89. .more-button {
  90. padding: 0;
  91. width: 16px;
  92. height: 16px;
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. color: #999;
  97. border-radius: 4px;
  98. background: #fff;
  99. border: 1px solid #e8e8e8;
  100. .anticon {
  101. transform: rotate(90deg);
  102. }
  103. &:hover {
  104. background: #fff;
  105. }
  106. }
  107. &:hover {
  108. background-color: #f0f2f5;
  109. }
  110. &.selected {
  111. background: #f0f2f5;
  112. border: none;
  113. .dept-title {
  114. color: #17181A;
  115. font-weight: 500;
  116. }
  117. }
  118. }
  119. .dept-leaf {
  120. display: flex;
  121. align-items: center;
  122. justify-content: space-between;
  123. padding: 0 12px 0 20px; // 左侧缩进,区别于父节点
  124. margin: 0 8px;
  125. cursor: pointer;
  126. height: 32px;
  127. box-sizing: border-box;
  128. border-radius: 4px;
  129. span {
  130. flex: 1;
  131. font-size: 14px;
  132. color: #17181A; // 统一颜色
  133. }
  134. &:hover {
  135. background-color: #f0f2f5;
  136. }
  137. &.selected {
  138. background: #f0f2f5;
  139. border: none;
  140. span {
  141. color: #17181A;
  142. font-weight: 500;
  143. }
  144. }
  145. .more-button {
  146. padding: 0;
  147. width: 16px;
  148. height: 16px;
  149. display: flex;
  150. align-items: center;
  151. justify-content: center;
  152. color: #999;
  153. border-radius: 4px;
  154. background: #fff;
  155. border: 1px solid #e8e8e8;
  156. .anticon {
  157. transform: rotate(90deg);
  158. }
  159. &:hover {
  160. background: #fff;
  161. }
  162. }
  163. .dept-title {
  164. flex: 1;
  165. font-size: 14px;
  166. color: #17181A;
  167. }
  168. &:hover {
  169. background-color: #f0f2f5;
  170. }
  171. }
  172. .dept-children {
  173. padding: 4px 0;
  174. .dept-item {
  175. display: flex;
  176. align-items: center;
  177. justify-content: space-between;
  178. padding: 0 12px 0 36px;
  179. margin: 0 8px;
  180. cursor: pointer;
  181. height: 32px;
  182. box-sizing: border-box;
  183. border-radius: 4px;
  184. span {
  185. flex: 1;
  186. font-size: 14px;
  187. color: #17181A;
  188. }
  189. &:hover {
  190. background-color: #f0f2f5;
  191. }
  192. &.selected {
  193. background: #f0f2f5;
  194. border: none;
  195. span {
  196. color: #17181A;
  197. font-weight: 500;
  198. }
  199. }
  200. .more-button {
  201. padding: 0;
  202. width: 16px;
  203. height: 16px;
  204. display: flex;
  205. align-items: center;
  206. justify-content: center;
  207. color: #999;
  208. border-radius: 4px;
  209. background: #fff;
  210. .anticon {
  211. transform: rotate(90deg);
  212. }
  213. &:hover {
  214. background: #fff;
  215. }
  216. }
  217. }
  218. }
  219. .dept-empty {
  220. padding: 6px 10px 6px 30px;
  221. margin: 0 8px;
  222. color: #999;
  223. font-size: 13px;
  224. }
  225. }
  226. // 叶子节点样式(临床诊疗、后勤支援等)
  227. .dept-leaf-node {
  228. display: flex;
  229. align-items: center;
  230. padding: 6px 8px;
  231. margin: 4px 8px;
  232. cursor: pointer;
  233. height: 32px;
  234. box-sizing: border-box;
  235. background: transparent;
  236. border-radius: 0;
  237. .leaf-button {
  238. padding: 0;
  239. width: 20px;
  240. height: 20px;
  241. margin-right: 8px;
  242. border: none;
  243. display: flex;
  244. align-items: center;
  245. justify-content: center;
  246. color: #666;
  247. .anticon {
  248. font-size: 12px;
  249. }
  250. }
  251. .leaf-title {
  252. flex: 1;
  253. font-size: 14px;
  254. color: #17181A;
  255. }
  256. &:hover {
  257. background: #f5f5f5;
  258. }
  259. }
  260. }
  261. }
  262. // 右侧内容区样式
  263. .dept-content {
  264. flex: 1;
  265. padding-left: 16px;
  266. height: 100%;
  267. overflow: auto;
  268. .pfm-ant-card {
  269. box-shadow: none;
  270. background: #fff;
  271. border-radius: 4px;
  272. .pfm-ant-card-body {
  273. padding: 16px;
  274. }
  275. }
  276. .dept-header {
  277. padding: 0 0 16px;
  278. border-bottom: 1px solid #e6eaf2;
  279. display: flex;
  280. align-items: baseline;
  281. gap: 8px;
  282. .dept-title {
  283. font-size: 20px;
  284. font-weight: 600;
  285. color: #17181A;
  286. }
  287. .dept-info {
  288. font-size: 14px;
  289. color: #515866;
  290. }
  291. }
  292. .pfm-ant-tabs-nav {
  293. margin-bottom: 16px;
  294. }
  295. .tab-content {
  296. .toolbar {
  297. display: flex;
  298. justify-content: space-between;
  299. align-items: center;
  300. margin-bottom: 16px;
  301. }
  302. .add-btn {
  303. background-color: #3377ff;
  304. border-color: #3377ff;
  305. border-radius: 4px;
  306. height: 24px;
  307. box-shadow: none;
  308. font-weight: 400;
  309. font-size: 14px;
  310. color: #ffffff;
  311. width: 56px;
  312. padding: 0;
  313. line-height: 22px;
  314. &:hover {
  315. background-color: #5591ff;
  316. border-color: #5591ff;
  317. }
  318. &:active {
  319. background-color: #1b5ee6;
  320. border-color: #1b5ee6;
  321. }
  322. }
  323. }
  324. }
  325. // 表格样式
  326. /* 表格样式已统一至 KCIMTable/style.less */
  327. .delete-btn {
  328. color: #3377ff;
  329. }
  330. // 员工选择相关样式
  331. .employee-select-modal {
  332. .pfm-ant-modal-header {
  333. border-bottom: 1px solid #f0f0f0;
  334. padding: 12px 16px;
  335. .pfm-ant-modal-title {
  336. font-size: 14px;
  337. font-weight: 500;
  338. color: #17181A;
  339. }
  340. }
  341. .pfm-ant-modal-close {
  342. top: 12px;
  343. }
  344. .pfm-ant-modal-body {
  345. padding: 16px;
  346. padding-bottom: 8px;
  347. }
  348. .pfm-ant-modal-footer {
  349. border-top: 1px solid #f0f0f0;
  350. padding: 12px 16px;
  351. }
  352. .blue-checkbox {
  353. .pfm-ant-checkbox-inner {
  354. border-color: #3377ff;
  355. border-radius: 2px;
  356. }
  357. &.pfm-ant-checkbox-checked .pfm-ant-checkbox-inner {
  358. background-color: #3377ff;
  359. border-color: #3377ff;
  360. }
  361. }
  362. .pfm-ant-btn-primary {
  363. border-radius: 2px;
  364. }
  365. }
  366. // 复选框样式调整
  367. .pfm-ant-checkbox-checked .pfm-ant-checkbox-inner {
  368. background-color: #3377ff;
  369. border-color: #3377ff;
  370. }
  371. .pfm-ant-checkbox-wrapper:hover .pfm-ant-checkbox-inner,
  372. .pfm-ant-checkbox:hover .pfm-ant-checkbox-inner,
  373. .pfm-ant-checkbox-input:focus + .pfm-ant-checkbox-inner {
  374. border-color: #3377ff;
  375. }
  376. // 按钮样式调整
  377. .pfm-ant-btn-primary {
  378. &:hover,
  379. &:focus {
  380. background-color: #5591ff;
  381. border-color: #5591ff;
  382. }
  383. &:active {
  384. background-color: #1b5ee6;
  385. border-color: #1b5ee6;
  386. }
  387. }
  388. }
  389. // 为新增按钮的下拉菜单设置特定样式
  390. .check-unit-add-dropdown {
  391. .pfm-ant-dropdown-menu {
  392. border-radius: 4px;
  393. overflow: hidden;
  394. padding: 4px;
  395. }
  396. .pfm-ant-dropdown-menu-item {
  397. &:hover,
  398. &.pfm-ant-dropdown-menu-item-selected {
  399. background: rgba(51, 119, 255, 0.08);
  400. color: #17181a;
  401. border-radius: 4px;
  402. }
  403. }
  404. }
  405. .content-padding {
  406. padding-left: 16px;
  407. padding-right: 16px;
  408. }
  409. .dept-title-text {
  410. display: inline-block;
  411. max-width: 180px;
  412. overflow: hidden;
  413. text-overflow: ellipsis;
  414. white-space: nowrap;
  415. vertical-align: middle;
  416. }