order-creation-form.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. /* 订单分配表单样式 */
  2. .order-creation-form {
  3. background: #ffffff;
  4. border-radius: 16px;
  5. box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  6. overflow: hidden;
  7. margin-bottom: 24px;
  8. border: 1px solid #e8e8e8;
  9. transition: all 0.3s ease;
  10. &:hover {
  11. box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  12. }
  13. }
  14. /* 订单分配头部 */
  15. .order-assignment-header {
  16. display: flex;
  17. justify-content: space-between;
  18. align-items: center;
  19. padding: 20px 24px;
  20. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  21. color: white;
  22. .assignment-title {
  23. margin: 0;
  24. font-size: 18px;
  25. font-weight: 600;
  26. }
  27. .assignment-actions {
  28. .create-order-btn {
  29. background: rgba(255, 255, 255, 0.2);
  30. border: 1px solid rgba(255, 255, 255, 0.3);
  31. color: white;
  32. padding: 8px 16px;
  33. border-radius: 6px;
  34. cursor: pointer;
  35. font-size: 14px;
  36. font-weight: 500;
  37. transition: all 0.3s ease;
  38. &:hover:not(.disabled) {
  39. background: rgba(255, 255, 255, 0.3);
  40. border-color: rgba(255, 255, 255, 0.5);
  41. }
  42. &.disabled {
  43. opacity: 0.5;
  44. cursor: not-allowed;
  45. }
  46. }
  47. }
  48. }
  49. /* 可滚动表单内容 */
  50. .scrollable-form-content {
  51. max-height: 70vh;
  52. overflow-y: auto;
  53. padding: 0;
  54. /* 自定义滚动条 */
  55. &::-webkit-scrollbar {
  56. width: 6px;
  57. }
  58. &::-webkit-scrollbar-track {
  59. background: #f1f1f1;
  60. }
  61. &::-webkit-scrollbar-thumb {
  62. background: #c1c1c1;
  63. border-radius: 3px;
  64. &:hover {
  65. background: #a8a8a8;
  66. }
  67. }
  68. }
  69. /* 表单区域通用样式 */
  70. section {
  71. padding: 24px;
  72. border-bottom: 1px solid #f0f0f0;
  73. &:last-child {
  74. border-bottom: none;
  75. }
  76. .form-title {
  77. margin: 0 0 20px 0;
  78. font-size: 16px;
  79. font-weight: 600;
  80. color: #333;
  81. display: flex;
  82. align-items: center;
  83. gap: 8px;
  84. .required-note {
  85. font-size: 12px;
  86. color: #666;
  87. font-weight: normal;
  88. }
  89. .optional-note {
  90. font-size: 12px;
  91. color: #999;
  92. font-weight: normal;
  93. }
  94. }
  95. }
  96. /* 已同步客户信息显示 */
  97. .synced-customer-info {
  98. background: #f8f9ff;
  99. .customer-info-display {
  100. .info-row {
  101. display: flex;
  102. gap: 32px;
  103. margin-bottom: 12px;
  104. &:last-child {
  105. margin-bottom: 0;
  106. }
  107. .info-item {
  108. flex: 1;
  109. display: flex;
  110. align-items: center;
  111. gap: 8px;
  112. label {
  113. font-weight: 500;
  114. color: #666;
  115. min-width: 80px;
  116. }
  117. span {
  118. color: #333;
  119. font-weight: 500;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. /* 核心必填信息表单 */
  126. .core-requirements-form {
  127. background: #fff;
  128. .order-form {
  129. .form-row {
  130. display: flex;
  131. gap: 24px;
  132. margin-bottom: 24px;
  133. &:last-child {
  134. margin-bottom: 0;
  135. }
  136. .form-field {
  137. flex: 1;
  138. &.full-width {
  139. flex: 1 1 100%;
  140. }
  141. .field-label {
  142. display: block;
  143. margin-bottom: 8px;
  144. font-weight: 500;
  145. color: #333;
  146. font-size: 14px;
  147. .required {
  148. color: #ff4d4f;
  149. margin-left: 2px;
  150. }
  151. }
  152. .field-input,
  153. .field-select,
  154. .field-textarea {
  155. width: 100%;
  156. padding: 10px 12px;
  157. border: 1px solid #d9d9d9;
  158. border-radius: 6px;
  159. font-size: 14px;
  160. transition: all 0.3s ease;
  161. &:focus {
  162. outline: none;
  163. border-color: #1890ff;
  164. box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  165. }
  166. &::placeholder {
  167. color: #bfbfbf;
  168. }
  169. }
  170. .field-textarea {
  171. resize: vertical;
  172. min-height: 80px;
  173. }
  174. .input-with-unit {
  175. position: relative;
  176. display: flex;
  177. align-items: center;
  178. .field-input {
  179. padding-right: 40px;
  180. }
  181. .input-unit {
  182. position: absolute;
  183. right: 12px;
  184. color: #666;
  185. font-size: 14px;
  186. pointer-events: none;
  187. }
  188. }
  189. .field-error {
  190. margin-top: 4px;
  191. color: #ff4d4f;
  192. font-size: 12px;
  193. }
  194. .field-hint {
  195. margin-top: 4px;
  196. color: #999;
  197. font-size: 12px;
  198. line-height: 1.4;
  199. }
  200. .checkbox-group {
  201. .checkbox-item {
  202. display: flex;
  203. align-items: center;
  204. gap: 8px;
  205. cursor: pointer;
  206. .checkbox-input {
  207. width: 16px;
  208. height: 16px;
  209. accent-color: #1890ff;
  210. }
  211. .checkbox-label {
  212. font-size: 14px;
  213. color: #333;
  214. }
  215. }
  216. }
  217. }
  218. }
  219. }
  220. }
  221. /* 报价明细和设计师分配区域 */
  222. .quotation-section,
  223. .designer-assignment-section {
  224. background: #fafafa;
  225. .designer-assignment-container {
  226. background: white;
  227. border-radius: 8px;
  228. padding: 16px;
  229. border: 1px solid #f0f0f0;
  230. }
  231. }
  232. /* 可选信息表单 */
  233. .optional-requirements-form {
  234. background: #f8f9fa;
  235. .card-header {
  236. display: flex;
  237. justify-content: space-between;
  238. align-items: center;
  239. cursor: pointer;
  240. padding: 16px 0;
  241. border-bottom: 1px solid #e9ecef;
  242. margin-bottom: 0;
  243. .card-title {
  244. margin: 0;
  245. font-size: 16px;
  246. font-weight: 600;
  247. color: #333;
  248. }
  249. .toggle-icon {
  250. font-size: 12px;
  251. color: #666;
  252. transition: transform 0.3s ease;
  253. &.expanded {
  254. transform: rotate(180deg);
  255. }
  256. }
  257. &:hover {
  258. background: rgba(0, 0, 0, 0.02);
  259. }
  260. }
  261. .card-content {
  262. padding-top: 20px;
  263. .optional-form {
  264. .form-row {
  265. display: flex;
  266. gap: 24px;
  267. margin-bottom: 20px;
  268. &:last-child {
  269. margin-bottom: 0;
  270. }
  271. .form-field {
  272. flex: 1;
  273. &.full-width {
  274. flex: 1 1 100%;
  275. }
  276. .field-label {
  277. display: block;
  278. margin-bottom: 8px;
  279. font-weight: 500;
  280. color: #555;
  281. font-size: 14px;
  282. }
  283. .field-input,
  284. .field-textarea {
  285. width: 100%;
  286. padding: 10px 12px;
  287. border: 1px solid #d9d9d9;
  288. border-radius: 6px;
  289. font-size: 14px;
  290. background: white;
  291. transition: all 0.3s ease;
  292. &:focus {
  293. outline: none;
  294. border-color: #1890ff;
  295. box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  296. }
  297. &::placeholder {
  298. color: #bfbfbf;
  299. }
  300. }
  301. .field-textarea {
  302. resize: vertical;
  303. min-height: 80px;
  304. }
  305. }
  306. }
  307. }
  308. }
  309. }
  310. /* 响应式设计 */
  311. @media (max-width: 768px) {
  312. .order-assignment-header {
  313. flex-direction: column;
  314. gap: 12px;
  315. text-align: center;
  316. }
  317. .scrollable-form-content {
  318. max-height: 60vh;
  319. }
  320. section {
  321. padding: 16px;
  322. }
  323. .core-requirements-form .order-form .form-row,
  324. .optional-requirements-form .optional-form .form-row {
  325. flex-direction: column;
  326. gap: 16px;
  327. }
  328. .synced-customer-info .customer-info-display .info-row {
  329. flex-direction: column;
  330. gap: 12px;
  331. }
  332. }
  333. /* 动画效果 */
  334. .card-content {
  335. animation: slideDown 0.3s ease-out;
  336. }
  337. @keyframes slideDown {
  338. from {
  339. opacity: 0;
  340. transform: translateY(-10px);
  341. }
  342. to {
  343. opacity: 1;
  344. transform: translateY(0);
  345. }
  346. }
  347. /* 表单验证状态 */
  348. .field-input.ng-invalid.ng-touched,
  349. .field-select.ng-invalid.ng-touched,
  350. .field-textarea.ng-invalid.ng-touched {
  351. border-color: #ff4d4f;
  352. box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
  353. }
  354. .field-input.ng-valid.ng-touched,
  355. .field-select.ng-valid.ng-touched,
  356. .field-textarea.ng-valid.ng-touched {
  357. border-color: #52c41a;
  358. }