styles.css 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. /* 全局样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. body {
  8. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  9. line-height: 1.6;
  10. color: #333;
  11. background-color: #f5f5f5;
  12. }
  13. /* 容器样式 */
  14. .container {
  15. max-width: 1400px;
  16. margin: 0 auto;
  17. padding: 20px;
  18. background-color: white;
  19. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  20. border-radius: 8px;
  21. margin-top: 50px;
  22. }
  23. /* 标题样式 */
  24. h1 {
  25. color: #2c3e50;
  26. margin-bottom: 30px;
  27. text-align: center;
  28. font-size: 2.2rem;
  29. }
  30. h2 {
  31. color: #34495e;
  32. margin: 20px 0;
  33. font-size: 1.5rem;
  34. border-bottom: 2px solid #ecf0f1;
  35. padding-bottom: 10px;
  36. }
  37. /* 文件上传区域样式 */
  38. .upload-section {
  39. text-align: center;
  40. margin-bottom: 40px;
  41. padding: 20px;
  42. background-color: #f8f9fa;
  43. border-radius: 8px;
  44. }
  45. .upload-section > * {
  46. display: inline-block;
  47. margin: 0 10px;
  48. vertical-align: middle;
  49. }
  50. .upload-btn {
  51. padding: 12px 24px;
  52. background-color: #3498db;
  53. color: white;
  54. border: none;
  55. border-radius: 6px;
  56. cursor: pointer;
  57. font-size: 16px;
  58. transition: background-color 0.3s ease;
  59. }
  60. .upload-btn:hover {
  61. background-color: #2980b9;
  62. }
  63. .file-name {
  64. color: #666;
  65. min-width: 150px;
  66. text-align: left;
  67. }
  68. .analyze-btn {
  69. padding: 12px 24px;
  70. background-color: #2ecc71;
  71. color: white;
  72. border: none;
  73. border-radius: 6px;
  74. cursor: pointer;
  75. font-size: 16px;
  76. transition: background-color 0.3s ease;
  77. }
  78. .analyze-btn:hover:not(:disabled) {
  79. background-color: #27ae60;
  80. }
  81. .analyze-btn:disabled {
  82. background-color: #95a5a6;
  83. cursor: not-allowed;
  84. opacity: 0.6;
  85. }
  86. /* 分析结果区域样式 */
  87. .analysis-section,
  88. .preview-section {
  89. margin-bottom: 40px;
  90. }
  91. .field-analysis,
  92. .data-preview {
  93. background-color: #f8f9fa;
  94. border-radius: 8px;
  95. padding: 20px;
  96. min-height: 200px;
  97. overflow-x: auto;
  98. }
  99. .field-analysis .placeholder,
  100. .data-preview .placeholder {
  101. text-align: center;
  102. color: #95a5a6;
  103. font-style: italic;
  104. margin: 20px 0;
  105. padding: 40px;
  106. background-color: #f8f9fa;
  107. border-radius: 8px;
  108. }
  109. /* 字段卡片样式 */
  110. .field-card {
  111. background-color: white;
  112. padding: 15px;
  113. margin-bottom: 15px;
  114. border-radius: 6px;
  115. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  116. }
  117. .field-card h3 {
  118. color: #2c3e50;
  119. margin-bottom: 10px;
  120. font-size: 1.2rem;
  121. }
  122. .field-details {
  123. margin-left: 20px;
  124. }
  125. .field-detail {
  126. margin-bottom: 5px;
  127. color: #555;
  128. }
  129. /* 表格样式 */
  130. .data-table {
  131. width: 100%;
  132. border-collapse: collapse;
  133. margin-top: 20px;
  134. }
  135. .data-table th,
  136. .data-table td {
  137. padding: 12px;
  138. text-align: left;
  139. border-bottom: 1px solid #ddd;
  140. }
  141. .data-table th {
  142. background-color: #34495e;
  143. color: white;
  144. font-weight: 500;
  145. }
  146. .data-table tr:nth-child(even) {
  147. background-color: #f9f9f9;
  148. }
  149. .data-table tr:hover {
  150. background-color: #f1f1f1;
  151. }
  152. /* 过滤区域样式 */
  153. .filter-section {
  154. margin-bottom: 30px;
  155. }
  156. .filter-controls {
  157. display: flex;
  158. gap: 15px;
  159. align-items: center;
  160. flex-wrap: wrap;
  161. }
  162. .filter-input {
  163. padding: 10px 15px;
  164. border: 1px solid #ddd;
  165. border-radius: 6px;
  166. font-size: 14px;
  167. min-width: 150px;
  168. }
  169. .filter-input:focus {
  170. outline: none;
  171. border-color: #3498db;
  172. box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  173. }
  174. /* 交货计划区域样式 */
  175. .delivery-plan-section {
  176. margin-bottom: 40px;
  177. }
  178. .delivery-plan-table-container {
  179. overflow-x: auto;
  180. background-color: #f8f9fa;
  181. border-radius: 8px;
  182. padding: 20px;
  183. }
  184. /* 交货计划表格样式 */
  185. .delivery-plan-table {
  186. width: 100%;
  187. border-collapse: collapse;
  188. margin-top: 20px;
  189. background-color: #fff;
  190. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  191. overflow-x: auto;
  192. display: block;
  193. }
  194. .delivery-plan-table th,
  195. .delivery-plan-table td {
  196. border: 1px solid #ddd;
  197. padding: 10px;
  198. text-align: left;
  199. min-width: 100px;
  200. }
  201. /* 特定列的宽度调整 */
  202. .delivery-plan-table th:nth-child(1),
  203. .delivery-plan-table td:nth-child(1) { min-width: 80px; } /* 工厂代码 */
  204. .delivery-plan-table th:nth-child(2),
  205. .delivery-plan-table td:nth-child(2) { min-width: 100px; } /* 物料编码 */
  206. .delivery-plan-table th:nth-child(3),
  207. .delivery-plan-table td:nth-child(3) { min-width: 150px; } /* 物料描述 */
  208. .delivery-plan-table th:nth-child(4),
  209. .delivery-plan-table td:nth-child(4) { min-width: 100px; } /* 图号 */
  210. .delivery-plan-table th:nth-child(5),
  211. .delivery-plan-table td:nth-child(5) { min-width: 80px; } /* 版本 */
  212. .delivery-plan-table th:nth-child(6),
  213. .delivery-plan-table td:nth-child(6) { min-width: 120px; } /* 采购订单号 */
  214. .delivery-plan-table th:nth-child(7),
  215. .delivery-plan-table td:nth-child(7) { min-width: 80px; } /* 订单行 */
  216. .delivery-plan-table th:nth-child(8),
  217. .delivery-plan-table td:nth-child(8) { min-width: 100px; } /* 供应商代码 */
  218. .delivery-plan-table th:nth-child(9),
  219. .delivery-plan-table td:nth-child(9) { min-width: 80px; } /* 采购员 */
  220. .delivery-plan-table th:nth-child(10),
  221. .delivery-plan-table td:nth-child(10) { min-width: 100px; } /* 供应类型 */
  222. .delivery-plan-table th:nth-child(11),
  223. .delivery-plan-table td:nth-child(11) { min-width: 100px; } /* 订单数量 */
  224. .delivery-plan-table th:nth-child(12),
  225. .delivery-plan-table td:nth-child(12) { min-width: 100px; } /* 入库数量 */
  226. .delivery-plan-table th:nth-child(13),
  227. .delivery-plan-table td:nth-child(13) { min-width: 100px; } /* 在途数量 */
  228. .delivery-plan-table th:nth-child(14),
  229. .delivery-plan-table td:nth-child(14) { min-width: 100px; } /* 待交数量 */
  230. .delivery-plan-table th:nth-child(15),
  231. .delivery-plan-table td:nth-child(15) { min-width: 100px; } /* 交货数量 */
  232. .delivery-plan-table th:nth-child(16),
  233. .delivery-plan-table td:nth-child(16) { min-width: 120px; } /* 交货日期 */
  234. .delivery-plan-table th:nth-child(17),
  235. .delivery-plan-table td:nth-child(17) { min-width: 120px; } /* 供应商回复数量 */
  236. .delivery-plan-table th:nth-child(18),
  237. .delivery-plan-table td:nth-child(18) { min-width: 120px; } /* 供应商回复交期 */
  238. .delivery-plan-table th:nth-child(19),
  239. .delivery-plan-table td:nth-child(19) { min-width: 150px; } /* 备注 */
  240. .delivery-plan-table th:nth-child(20),
  241. .delivery-plan-table td:nth-child(20) { min-width: 120px; } /* 操作 */
  242. .editable-input {
  243. padding: 6px 10px;
  244. border: 1px solid #ddd;
  245. border-radius: 4px;
  246. width: 100%;
  247. box-sizing: border-box;
  248. }
  249. /* 供应商回复数量输入框样式 - 确保能显示3位数 */
  250. .supplier-reply-quantity {
  251. width: 60px; /* 足够显示3位数字的宽度 */
  252. text-align: center;
  253. }
  254. .editable-input:focus {
  255. outline: none;
  256. border-color: #3498db;
  257. box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  258. }
  259. /* 操作按钮样式 */
  260. .action-btn {
  261. padding: 6px 12px;
  262. border: none;
  263. border-radius: 4px;
  264. cursor: pointer;
  265. font-size: 12px;
  266. margin-right: 5px;
  267. transition: background-color 0.3s ease;
  268. }
  269. .save-btn {
  270. background-color: #2ecc71;
  271. color: white;
  272. }
  273. .save-btn:hover {
  274. background-color: #27ae60;
  275. }
  276. .cancel-btn {
  277. background-color: #e74c3c;
  278. color: white;
  279. }
  280. .cancel-btn:hover {
  281. background-color: #c0392b;
  282. }
  283. /* 修改行高亮样式 */
  284. .modified-row {
  285. background-color: #fff3cd !important;
  286. }
  287. .modified-row:hover {
  288. background-color: #ffeaa7 !important;
  289. }
  290. /* 表格底部样式 */
  291. .table-footer {
  292. margin-top: 20px;
  293. text-align: right;
  294. color: #666;
  295. font-size: 14px;
  296. }
  297. /* 统计信息区域样式 */
  298. .stats-section {
  299. margin-bottom: 40px;
  300. }
  301. .stats-cards {
  302. display: flex;
  303. gap: 20px;
  304. flex-wrap: wrap;
  305. }
  306. .stat-card {
  307. flex: 1;
  308. min-width: 150px;
  309. background-color: white;
  310. padding: 20px;
  311. border-radius: 8px;
  312. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  313. text-align: center;
  314. }
  315. .stat-value {
  316. font-size: 2rem;
  317. font-weight: bold;
  318. color: #3498db;
  319. margin-bottom: 10px;
  320. }
  321. .stat-label {
  322. color: #666;
  323. font-size: 14px;
  324. }
  325. .stat-formula {
  326. font-size: 12px;
  327. color: #95a5a6;
  328. margin-top: 5px;
  329. font-style: italic;
  330. }
  331. /* 加载指示器样式 */
  332. .loading-indicator {
  333. text-align: center;
  334. padding: 40px;
  335. color: #666;
  336. font-style: italic;
  337. }
  338. /* 响应式设计 */
  339. @media (max-width: 768px) {
  340. .container {
  341. margin-top: 20px;
  342. padding: 15px;
  343. }
  344. h1 {
  345. font-size: 1.8rem;
  346. }
  347. h2 {
  348. font-size: 1.3rem;
  349. }
  350. .upload-btn {
  351. padding: 10px 20px;
  352. font-size: 14px;
  353. }
  354. .filter-controls {
  355. flex-direction: column;
  356. align-items: stretch;
  357. }
  358. .filter-input {
  359. width: 100%;
  360. }
  361. .stats-cards {
  362. flex-direction: column;
  363. }
  364. .stat-card {
  365. width: 100%;
  366. }
  367. }