| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841 |
- .quotation-editor {
- width: 100%;
- // 加载状态
- .loading-container {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 60px 24px;
- text-align: center;
- .spinner {
- margin-bottom: 16px;
- }
- p {
- color: var(--ion-color-medium);
- margin: 0;
- }
- }
- // 产品管理区域
- .product-management {
- margin-bottom: 20px;
- .product-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px 20px;
- background: var(--ion-color-light);
- border-radius: 12px;
- border: 1px solid var(--ion-color-light-shade);
- h3 {
- margin: 0;
- font-size: 18px;
- font-weight: 600;
- color: var(--ion-color-dark);
- }
- .product-actions {
- display: flex;
- gap: 12px;
- button {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 8px 16px;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 500;
- transition: all 0.2s ease;
- .icon {
- width: 16px;
- height: 16px;
- }
- }
- }
- }
- }
- // 空状态
- .empty-state {
- text-align: center;
- padding: 48px 24px;
- color: var(--ion-color-medium);
- .empty-icon {
- width: 80px;
- height: 80px;
- margin: 0 auto 16px;
- opacity: 0.3;
- }
- .empty-message {
- font-size: 16px;
- font-weight: 500;
- margin: 0 0 8px;
- color: var(--ion-color-dark);
- }
- .empty-hint {
- font-size: 14px;
- margin: 0;
- }
- }
- // 工具栏
- .quotation-toolbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px 16px;
- background: var(--ion-color-light);
- border-radius: 8px;
- margin-bottom: 16px;
- .toolbar-title {
- font-size: 16px;
- font-weight: 600;
- margin: 0;
- color: var(--ion-color-dark);
- }
- .toolbar-right {
- display: flex;
- gap: 8px;
- }
- .btn-icon {
- padding: 6px;
- background: transparent;
- border: 1px solid var(--ion-color-medium);
- border-radius: 4px;
- cursor: pointer;
- transition: all 0.2s;
- &:hover {
- background: var(--ion-color-light-shade);
- border-color: var(--ion-color-primary);
- }
- .icon {
- width: 18px;
- height: 18px;
- color: var(--ion-color-medium-shade);
- }
- }
- }
- // 卡片视图
- .quotation-spaces {
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .space-card {
- border: 1px solid var(--ion-color-light-shade);
- border-radius: 8px;
- background: white;
- overflow: hidden;
- transition: all 0.3s;
- &.expanded {
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
- .space-header {
- background: var(--ion-color-light);
- border-bottom: 1px solid var(--ion-color-light-shade);
- }
- .space-toggle .icon {
- transform: rotate(180deg);
- }
- }
- }
- .space-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px;
- cursor: pointer;
- transition: background 0.2s;
- &:hover {
- background: var(--ion-color-light-tint);
- }
- .space-info {
- flex: 1;
- }
- .space-name {
- font-size: 16px;
- font-weight: 600;
- margin: 0 0 4px;
- color: var(--ion-color-dark);
- }
- .space-subtotal {
- font-size: 14px;
- margin: 0;
- color: var(--ion-color-primary);
- font-weight: 500;
- }
- .space-toggle {
- .icon {
- width: 20px;
- height: 20px;
- color: var(--ion-color-medium);
- transition: transform 0.3s;
- }
- }
- }
- .space-content {
- padding: 16px;
- animation: slideDown 0.3s ease-out;
- }
- @keyframes slideDown {
- from {
- opacity: 0;
- transform: translateY(-10px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- // 工序网格
- .process-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
- gap: 12px;
- }
- .process-item {
- border: 1px solid var(--ion-color-light-shade);
- border-radius: 6px;
- padding: 12px;
- background: var(--ion-color-light-tint);
- transition: all 0.2s;
- &.enabled {
- border-color: var(--ion-color-primary);
- background: white;
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
- }
- .process-header {
- display: flex;
- align-items: center;
- gap: 8px;
- cursor: pointer;
- margin-bottom: 8px;
- .checkbox-wrapper {
- display: flex;
- align-items: center;
- .checkbox-input {
- display: none;
- &:checked + .checkbox-custom {
- background: var(--ion-color-primary);
- border-color: var(--ion-color-primary);
- &::after {
- opacity: 1;
- }
- }
- }
- .checkbox-custom {
- width: 18px;
- height: 18px;
- border: 2px solid var(--ion-color-medium);
- border-radius: 4px;
- position: relative;
- transition: all 0.2s;
- &::after {
- content: '';
- position: absolute;
- left: 4px;
- top: 1px;
- width: 5px;
- height: 9px;
- border: solid white;
- border-width: 0 2px 2px 0;
- transform: rotate(45deg);
- opacity: 0;
- transition: opacity 0.2s;
- }
- }
- }
- .badge {
- padding: 4px 12px;
- border-radius: 12px;
- font-size: 16px;
- font-weight: 700;
- background: white;
- &[data-color="primary"] {
- color: var(--ion-color-primary-tint);
- border: solid 1px var(--ion-color-primary-tint);
- }
- &[data-color="secondary"] {
- color: var(--ion-color-secondary-tint);
- border: solid 1px var(--ion-color-secondary-tint);
- }
- &[data-color="tertiary"] {
- color: var(--ion-color-tertiary-tint);
- border: solid 1px var(--ion-color-tertiary-tint);
- }
- &[data-color="success"] {
- color: var(--ion-color-success-tint);
- border: solid 1px var(--ion-color-success-tint);
- }
- }
- }
- .process-inputs {
- display: flex;
- flex-direction: column;
- gap: 8px;
- .input-group {
- display: flex;
- flex-direction: column;
- gap: 4px;
- .input-label {
- font-size: 12px;
- color: var(--ion-color-medium-shade);
- font-weight: 500;
- }
- .input-with-note {
- display: flex;
- align-items: center;
- gap: 4px;
- .input-field {
- flex: 1;
- padding: 6px 8px;
- border: 1px solid var(--ion-color-light-shade);
- border-radius: 4px;
- font-size: 14px;
- &:focus {
- outline: none;
- border-color: var(--ion-color-primary);
- }
- &:disabled {
- background: var(--ion-color-light);
- color: var(--ion-color-medium);
- }
- }
- .input-note {
- font-size: 12px;
- color: var(--ion-color-medium);
- white-space: nowrap;
- }
- }
- }
- .process-subtotal {
- padding: 6px 8px;
- background: var(--ion-color-light);
- border-radius: 4px;
- font-size: 13px;
- font-weight: 600;
- color: var(--ion-color-primary);
- text-align: right;
- }
- }
- }
- // 表格视图
- .quotation-table {
- display: flex;
- flex-direction: column;
- gap: 24px;
- }
- .table-section {
- border: 1px solid var(--ion-color-light-shade);
- border-radius: 8px;
- overflow: hidden;
- background: white;
- .table-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px 16px;
- background: var(--ion-color-light);
- border-bottom: 1px solid var(--ion-color-light-shade);
- .table-space-name {
- font-size: 16px;
- font-weight: 600;
- margin: 0;
- color: var(--ion-color-dark);
- }
- .table-space-subtotal {
- font-size: 14px;
- font-weight: 600;
- color: var(--ion-color-primary);
- }
- }
- }
- .process-table {
- width: 100%;
- border-collapse: collapse;
- thead {
- background: var(--ion-color-light-tint);
- th {
- padding: 10px 12px;
- text-align: left;
- font-size: 13px;
- font-weight: 600;
- color: var(--ion-color-medium-shade);
- border-bottom: 2px solid var(--ion-color-light-shade);
- &.col-checkbox {
- width: 40px;
- }
- &.col-process {
- width: auto;
- }
- &.col-price,
- &.col-quantity {
- width: 120px;
- }
- &.col-unit {
- width: 80px;
- }
- &.col-subtotal {
- width: 120px;
- text-align: right;
- }
- }
- }
- tbody {
- tr {
- border-bottom: 1px solid var(--ion-color-light-shade);
- transition: background 0.2s;
- &:hover {
- background: var(--ion-color-light-tint);
- }
- &.enabled {
- background: rgba(var(--ion-color-primary-rgb), 0.02);
- &:hover {
- background: rgba(var(--ion-color-primary-rgb), 0.05);
- }
- }
- td {
- padding: 12px;
- font-size: 14px;
- &.col-subtotal {
- text-align: right;
- }
- .checkbox-wrapper {
- display: flex;
- align-items: center;
- justify-content: center;
- .checkbox-input {
- display: none;
- &:checked + .checkbox-custom {
- background: var(--ion-color-primary);
- border-color: var(--ion-color-primary);
- &::after {
- opacity: 1;
- }
- }
- }
- .checkbox-custom {
- width: 18px;
- height: 18px;
- border: 2px solid var(--ion-color-medium);
- border-radius: 4px;
- position: relative;
- transition: all 0.2s;
- cursor: pointer;
- &::after {
- content: '';
- position: absolute;
- left: 4px;
- top: 1px;
- width: 5px;
- height: 9px;
- border: solid white;
- border-width: 0 2px 2px 0;
- transform: rotate(45deg);
- opacity: 0;
- transition: opacity 0.2s;
- }
- }
- }
- .table-input {
- width: 100%;
- padding: 6px 8px;
- border: 1px solid var(--ion-color-light-shade);
- border-radius: 4px;
- font-size: 14px;
- &:focus {
- outline: none;
- border-color: var(--ion-color-primary);
- }
- &:disabled {
- background: var(--ion-color-light);
- color: var(--ion-color-medium);
- }
- }
- .disabled-value {
- color: var(--ion-color-medium);
- }
- }
- }
- }
- }
- // 总价
- .quotation-total {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px 20px;
- background: linear-gradient(135deg, var(--ion-color-primary) 0%, var(--ion-color-primary-shade) 100%);
- border-radius: 8px;
- margin-top: 16px;
- .total-label {
- font-size: 16px;
- font-weight: 500;
- color: white;
- }
- .total-amount {
- font-size: 24px;
- font-weight: 700;
- color: white;
- }
- }
- // ============ 产品相关样式 ============
- // 产品卡片
- .quotation-products {
- .product-card {
- border: 1px solid var(--ion-color-light-shade);
- border-radius: 12px;
- margin-bottom: 16px;
- background: white;
- overflow: hidden;
- transition: all 0.3s ease;
- &.expanded {
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
- }
- .product-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px 20px;
- cursor: pointer;
- user-select: none;
- transition: background-color 0.2s;
- &:hover {
- background-color: var(--ion-color-light-tint);
- }
- .product-info {
- display: flex;
- align-items: center;
- gap: 16px;
- flex: 1;
- .product-title {
- display: flex;
- align-items: center;
- gap: 12px;
- .product-icon {
- width: 40px;
- height: 40px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: var(--ion-color-primary-tint);
- border-radius: 10px;
- color: var(--ion-color-primary);
- font-size: 20px;
- }
- .product-details {
- .product-name {
- font-size: 18px;
- font-weight: 600;
- color: var(--ion-color-dark);
- margin: 0 0 4px;
- }
- .product-meta {
- display: flex;
- align-items: center;
- gap: 8px;
- .badge {
- font-size: 12px;
- padding: 2px 8px;
- border-radius: 12px;
- font-weight: 500;
- }
- .designer-name {
- font-size: 13px;
- color: var(--ion-color-medium);
- }
- }
- }
- }
- .product-pricing {
- text-align: right;
- .product-subtotal {
- font-size: 20px;
- font-weight: 700;
- color: var(--ion-color-primary);
- margin: 0 0 2px;
- }
- .percentage {
- font-size: 13px;
- color: var(--ion-color-medium);
- }
- }
- }
- .product-actions {
- display: flex;
- align-items: center;
- gap: 8px;
- .btn-icon {
- width: 32px;
- height: 32px;
- border-radius: 8px;
- border: none;
- background: var(--ion-color-light-tint);
- color: var(--ion-color-medium);
- cursor: pointer;
- transition: all 0.2s;
- &:hover {
- background: var(--ion-color-light-shade);
- color: var(--ion-color-dark);
- }
- &.danger:hover {
- background: var(--ion-color-danger-tint);
- color: var(--ion-color-danger);
- }
- .icon {
- width: 16px;
- height: 16px;
- }
- }
- .product-toggle {
- margin-left: 8px;
- color: var(--ion-color-medium);
- transition: transform 0.3s ease;
- .icon {
- width: 20px;
- height: 20px;
- }
- }
- }
- }
- .product-card.expanded .product-toggle {
- transform: rotate(180deg);
- }
- .product-content {
- border-top: 1px solid var(--ion-color-light-shade);
- animation: slideDown 0.3s ease-out;
- }
- .product-details-section {
- padding: 16px 20px;
- background: var(--ion-color-light-tint);
- border-bottom: 1px solid var(--ion-color-light-shade);
- .detail-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8px;
- &:last-child {
- margin-bottom: 0;
- }
- .detail-label {
- font-size: 14px;
- color: var(--ion-color-medium);
- }
- .detail-value {
- font-size: 14px;
- font-weight: 500;
- color: var(--ion-color-dark);
- }
- }
- }
- }
- }
- // 报价汇总
- .quotation-summary {
- background: white;
- border: 1px solid var(--ion-color-light-shade);
- border-radius: 12px;
- padding: 20px;
- margin-top: 20px;
- .summary-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 16px;
- h4 {
- margin: 0;
- font-size: 18px;
- font-weight: 600;
- color: var(--ion-color-dark);
- }
- .breakdown-toggle {
- .btn-text {
- background: none;
- border: none;
- color: var(--ion-color-primary);
- font-size: 14px;
- cursor: pointer;
- padding: 4px 8px;
- border-radius: 4px;
- transition: background-color 0.2s;
- &:hover {
- background-color: var(--ion-color-primary-tint);
- }
- }
- }
- }
- // 内部执行分配区域
- .allocation-section {
- margin-top: 20px;
- padding-top: 20px;
- border-top: 1px solid var(--ion-color-light-shade);
- .allocation-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 16px;
- h4 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: var(--ion-color-dark);
- }
- .btn-text {
- background: none;
- border: none;
- color: var(--ion-color-primary);
- font-size: 14px;
- cursor: pointer;
- padding: 4px 8px;
- border-radius: 4px;
- transition: background-color 0.2s;
- &:hover {
- background-color: var(--ion-color-primary-tint);
- }
- }
- }
- .allocation-list {
- display: flex;
- flex-direction: column;
- gap: 12px;
- margin-bottom: 16px;
- .allocation-item {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 16px;
- border-radius: 10px;
- border-left: 4px solid;
- background: var(--ion-color-light-tint);
- transition: all 0.2s ease;
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
- }
- &.modeling {
- border-left-color: #8B5CF6; // 紫色 - 建模
- background: rgba(139, 92, 246, 0.05);
- .allocation-icon {
- background: rgba(139, 92, 246, 0.1);
- color: #8B5CF6;
- }
- }
- &.decoration {
- border-left-color: #F59E0B; // 橙色 - 软装渲染
- background: rgba(245, 158, 11, 0.05);
- .allocation-icon {
- background: rgba(245, 158, 11, 0.1);
- color: #F59E0B;
- }
- }
- &.company {
- border-left-color: #10B981; // 绿色 - 公司分配
- background: rgba(16, 185, 129, 0.05);
- .allocation-icon {
- background: rgba(16, 185, 129, 0.1);
- color: #10B981;
- }
- }
- .allocation-icon {
- width: 48px;
- height: 48px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 10px;
- flex-shrink: 0;
- .icon {
- width: 24px;
- height: 24px;
- }
- }
- .allocation-info {
- flex: 1;
- display: flex;
- flex-direction: column;
- gap: 4px;
- .allocation-name {
- font-size: 15px;
- font-weight: 600;
- color: var(--ion-color-dark);
- line-height: 1.2;
- }
- .allocation-desc {
- font-size: 12px;
- color: var(--ion-color-medium);
- line-height: 1.3;
- }
- }
- .allocation-values {
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- gap: 2px;
- .allocation-percentage {
- font-size: 13px;
- font-weight: 500;
- color: var(--ion-color-medium-shade);
- background: rgba(0, 0, 0, 0.04);
- padding: 2px 8px;
- border-radius: 12px;
- min-width: 45px;
- text-align: center;
- }
- .allocation-amount {
- font-size: 20px;
- font-weight: 700;
- color: var(--ion-color-dark);
- line-height: 1.2;
- }
- }
- }
- }
- .allocation-note {
- display: flex;
- align-items: flex-start;
- gap: 10px;
- padding: 12px 16px;
- background: rgba(56, 128, 255, 0.08);
- border-radius: 8px;
- border-left: 3px solid var(--ion-color-primary);
- .icon {
- width: 18px;
- height: 18px;
- color: var(--ion-color-primary);
- flex-shrink: 0;
- margin-top: 2px;
- }
- span {
- flex: 1;
- font-size: 13px;
- color: var(--ion-color-medium-shade);
- line-height: 1.5;
- }
- }
- }
- .breakdown-list {
- margin-bottom: 16px;
- .breakdown-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 8px 0;
- border-bottom: 1px solid var(--ion-color-light-tint);
- &:last-child {
- border-bottom: none;
- }
- .breakdown-name {
- flex: 1;
- font-size: 14px;
- color: var(--ion-color-dark);
- }
- .breakdown-amount {
- font-size: 15px;
- font-weight: 600;
- color: var(--ion-color-dark);
- margin: 0 16px;
- }
- .breakdown-percentage {
- font-size: 13px;
- color: var(--ion-color-medium);
- min-width: 50px;
- text-align: right;
- }
- }
- }
- .total-section {
- .total-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 16px 0;
- border-top: 2px solid var(--ion-color-primary);
- background: linear-gradient(135deg, var(--ion-color-primary) 0%, var(--ion-color-primary-shade) 100%);
- margin: 0 -20px 0px;
- padding: 16px 20px;
- .total-label {
- font-size: 16px;
- font-weight: 500;
- color: white;
- }
- .total-amount {
- font-size: 24px;
- font-weight: 700;
- color: white;
- }
- }
- .total-meta {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 8px;
- font-size: 12px;
- color: var(--ion-color-medium);
- .generate-info,
- .valid-info {
- display: flex;
- align-items: center;
- gap: 4px;
- }
- }
- }
- }
- // 兼容性 - 保持原有space类名
- .quotation-spaces {
- @extend .quotation-products;
- }
- .space-card {
- @extend .product-card;
- }
- .space-header {
- @extend .product-header;
- }
- .space-content {
- @extend .product-content;
- }
- // 移动端适配
- @media (max-width: 768px) {
- .allocation-section {
- .allocation-list {
- .allocation-item {
- flex-wrap: nowrap;
- padding: 14px;
- .allocation-icon {
- width: 40px;
- height: 40px;
- .icon {
- width: 20px;
- height: 20px;
- }
- }
- .allocation-info {
- flex: 1;
- min-width: 120px;
- .allocation-name {
- font-size: 14px;
- }
- .allocation-desc {
- font-size: 11px;
- }
- }
- .allocation-values {
- width: 100%;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- margin-top: 8px;
- padding-top: 8px;
- border-top: 1px solid rgba(0, 0, 0, 0.06);
- .allocation-percentage {
- font-size: 12px;
- }
- .allocation-amount {
- font-size: 18px;
- }
- }
- }
- }
- .allocation-note {
- padding: 10px 12px;
- .icon {
- width: 16px;
- height: 16px;
- }
- span {
- font-size: 12px;
- }
- }
- }
- .product-content .process-grid {
- grid-template-columns: 1fr;
- }
- }
- }
- // ============ 模态框样式 ============
- .modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.6);
- backdrop-filter: blur(4px);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 10000;
- padding: 20px;
- animation: fadeIn 0.2s ease-out;
- }
- @keyframes fadeIn {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- .modal-container {
- background: white;
- border-radius: 16px;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
- max-width: 600px;
- width: 100%;
- max-height: 90vh;
- display: flex;
- flex-direction: column;
- animation: slideUp 0.3s ease-out;
- }
- @keyframes slideUp {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- .modal-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20px 24px;
- border-bottom: 1px solid #e5e7eb;
- h3 {
- margin: 0;
- font-size: 20px;
- font-weight: 600;
- color: #111827;
- }
- .close-btn {
- width: 32px;
- height: 32px;
- border-radius: 8px;
- border: none;
- background: transparent;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.2s ease;
- color: #6b7280;
- &:hover {
- background: #f3f4f6;
- color: #111827;
- }
- &:active {
- transform: scale(0.95);
- }
- .icon {
- width: 20px;
- height: 20px;
- }
- }
- }
- .modal-body {
- flex: 1;
- overflow-y: auto;
- padding: 24px;
- &::-webkit-scrollbar {
- width: 8px;
- }
- &::-webkit-scrollbar-track {
- background: #f3f4f6;
- border-radius: 4px;
- }
- &::-webkit-scrollbar-thumb {
- background: #d1d5db;
- border-radius: 4px;
- &:hover {
- background: #9ca3af;
- }
- }
- }
- .modal-footer {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- gap: 12px;
- padding: 16px 24px;
- border-top: 1px solid #e5e7eb;
- button {
- padding: 10px 20px;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.2s ease;
- border: none;
- &.btn-secondary {
- background: #f3f4f6;
- color: #374151;
- &:hover {
- background: #e5e7eb;
- }
- }
- &.btn-primary {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- &:hover:not(:disabled) {
- transform: translateY(-1px);
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
- }
- &:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- }
- &:active:not(:disabled) {
- transform: scale(0.98);
- }
- }
- }
- // ============ 表单样式 ============
- .form-group {
- margin-bottom: 20px;
- .form-label {
- display: block;
- margin-bottom: 8px;
- font-size: 14px;
- font-weight: 500;
- color: #374151;
- }
- .form-input,
- .form-select {
- width: 100%;
- padding: 10px 14px;
- border: 1.5px solid #e5e7eb;
- border-radius: 8px;
- font-size: 14px;
- color: #111827;
- transition: all 0.2s ease;
- outline: none;
- background: white;
- &:focus {
- border-color: #667eea;
- box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
- }
- &::placeholder {
- color: #9ca3af;
- }
- }
- .form-select {
- cursor: pointer;
- }
- .input-with-hint {
- .input-hint {
- display: block;
- margin-top: 6px;
- font-size: 12px;
- color: #6b7280;
- }
- }
- .checkbox-label {
- display: flex;
- align-items: center;
- gap: 10px;
- cursor: pointer;
- padding: 12px;
- border-radius: 8px;
- transition: background 0.2s ease;
- &:hover {
- background: #f9fafb;
- }
- input[type="checkbox"] {
- width: 18px;
- height: 18px;
- cursor: pointer;
- accent-color: #667eea;
- }
- span {
- font-size: 14px;
- color: #374151;
- user-select: none;
- }
- }
- .radio-group {
- display: flex;
- gap: 12px;
- flex-wrap: wrap;
- .radio-label {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 10px 16px;
- border: 1.5px solid #e5e7eb;
- border-radius: 8px;
- cursor: pointer;
- transition: all 0.2s ease;
- background: white;
- &:hover {
- border-color: #667eea;
- background: #f5f7ff;
- }
- input[type="radio"] {
- cursor: pointer;
- accent-color: #667eea;
- }
- span {
- font-size: 14px;
- color: #374151;
- user-select: none;
- }
- &:has(input:checked) {
- border-color: #667eea;
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
- font-weight: 500;
- }
- }
- }
- }
- // ============ 场景选择网格 ============
- .scene-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
- gap: 12px;
- .scene-card {
- padding: 16px 12px;
- border: 1.5px solid #e5e7eb;
- border-radius: 10px;
- background: white;
- cursor: pointer;
- transition: all 0.2s ease;
- text-align: center;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 8px;
- &:hover {
- border-color: #667eea;
- background: #f5f7ff;
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
- }
- &:active {
- transform: translateY(0);
- }
- &.selected {
- border-color: #667eea;
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
- .scene-name {
- color: #667eea;
- font-weight: 600;
- }
- }
- &.custom {
- border-style: dashed;
- border-color: #9ca3af;
- color: #6b7280;
- &:hover {
- border-color: #667eea;
- border-style: solid;
- }
- &.selected {
- border-style: solid;
- border-color: #667eea;
- color: #667eea;
- }
- }
- .scene-name {
- font-size: 13px;
- font-weight: 500;
- color: #374151;
- transition: all 0.2s ease;
- }
- }
- }
- // ============ 加价规则配置 ============
- .pricing-adjustments {
- margin-top: 24px;
- padding: 20px;
- background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
- border-radius: 12px;
- border: 1px solid #e5e7eb;
- .section-title {
- margin: 0 0 16px 0;
- font-size: 15px;
- font-weight: 600;
- color: #374151;
- }
- .form-group {
- margin-bottom: 16px;
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- // ============ 价格预览 ============
- .price-preview {
- margin-top: 24px;
- padding: 20px;
- background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
- border-radius: 12px;
- border: 2px solid #fbbf24;
- .price-preview-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 8px 0;
- font-size: 14px;
- &.adjustment {
- color: #f59e0b;
- font-weight: 500;
- .price {
- color: #f59e0b;
- }
- }
- &.total {
- margin-top: 8px;
- padding-top: 12px;
- border-top: 2px solid rgba(251, 191, 36, 0.3);
- font-size: 16px;
- font-weight: 600;
- .price {
- font-size: 24px;
- color: #d97706;
- }
- }
- .label {
- color: #92400e;
- font-weight: 500;
- }
- .price {
- font-weight: 600;
- color: #92400e;
- }
- }
- }
- // ============ 内部分配小卡片 ============
- .allocation-mini {
- margin-top: 20px;
- padding: 16px;
- background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
- border-radius: 10px;
- border: 1px solid #86efac;
- .section-title {
- margin: 0 0 12px 0;
- font-size: 14px;
- font-weight: 600;
- color: #166534;
- }
- .allocation-mini-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
- gap: 10px;
- .allocation-mini-item {
- padding: 10px 12px;
- background: white;
- border-radius: 8px;
- border-left: 3px solid;
- display: flex;
- flex-direction: column;
- gap: 4px;
- &.modeling {
- border-left-color: #8b5cf6;
- }
- &.decoration {
- border-left-color: #f59e0b;
- }
- &.company {
- border-left-color: #10b981;
- }
- .label {
- font-size: 11px;
- color: #6b7280;
- font-weight: 500;
- }
- .value {
- font-size: 14px;
- font-weight: 600;
- color: #111827;
- }
- }
- }
- }
- // ============ 分配明细网格样式 ============
- .allocation-section-detail {
- margin-top: 20px;
- .section-title {
- margin: 0 0 16px 0;
- font-size: 16px;
- font-weight: 600;
- color: #111827;
- .section-subtitle {
- font-size: 13px;
- font-weight: 400;
- color: #6b7280;
- margin-left: 8px;
- }
- }
- .allocation-grid-detail {
- display: flex;
- flex-direction: column;
- gap: 12px;
- .allocation-item-detail {
- border: 1.5px solid #e5e7eb;
- border-radius: 10px;
- padding: 14px 16px;
- background: white;
- transition: all 0.2s ease;
- &:not(.enabled) {
- opacity: 0.5;
- background: #f9fafb;
- }
- &.enabled {
- border-left-width: 4px;
- }
- &[data-type="modeling"].enabled {
- border-left-color: #8b5cf6;
- background: linear-gradient(90deg, rgba(139, 92, 246, 0.03) 0%, white 100%);
- }
- &[data-type="decoration"].enabled {
- border-left-color: #f59e0b;
- background: linear-gradient(90deg, rgba(245, 158, 11, 0.03) 0%, white 100%);
- }
- &[data-type="company"].enabled {
- border-left-color: #10b981;
- background: linear-gradient(90deg, rgba(16, 185, 129, 0.03) 0%, white 100%);
- }
- .allocation-header-detail {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 12px;
- .allocation-left {
- display: flex;
- align-items: center;
- gap: 12px;
- flex: 1;
- .checkbox-wrapper {
- display: flex;
- align-items: center;
- .checkbox-input {
- width: 18px;
- height: 18px;
- cursor: pointer;
- accent-color: #667eea;
- }
- .checkbox-custom {
- display: none;
- }
- }
- .allocation-info-detail {
- display: flex;
- flex-direction: column;
- gap: 4px;
- .allocation-name-detail {
- font-size: 15px;
- font-weight: 600;
- color: #111827;
- }
- .allocation-desc-detail {
- font-size: 12px;
- color: #6b7280;
- }
- }
- }
- .allocation-percentage-badge {
- padding: 4px 12px;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- border-radius: 16px;
- font-size: 13px;
- font-weight: 600;
- }
- }
- .allocation-input-section {
- padding-left: 30px;
- .input-label-small {
- display: block;
- margin-bottom: 8px;
- font-size: 13px;
- font-weight: 500;
- color: #374151;
- }
- .input-with-currency {
- position: relative;
- display: flex;
- align-items: center;
- .currency-symbol {
- position: absolute;
- left: 14px;
- font-size: 14px;
- font-weight: 600;
- color: #6b7280;
- pointer-events: none;
- }
- .amount-input {
- width: 100%;
- padding: 10px 14px 10px 32px;
- border: 1.5px solid #e5e7eb;
- border-radius: 8px;
- font-size: 16px;
- font-weight: 600;
- color: #111827;
- transition: all 0.2s ease;
- outline: none;
- &:focus {
- border-color: #667eea;
- box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
- }
- &:disabled {
- background: #f3f4f6;
- cursor: not-allowed;
- }
- }
- }
- .allocation-hint {
- margin-top: 6px;
- font-size: 12px;
- color: #6b7280;
- padding-left: 2px;
- }
- }
- }
- }
- }
- // ============ 移动端适配(模态框) ============
- @media (max-width: 768px) {
- .modal-container {
- max-width: none;
- width: 100%;
- max-height: 95vh;
- margin: 0;
- border-radius: 16px 16px 0 0;
- }
- .modal-header {
- padding: 16px 20px;
- h3 {
- font-size: 18px;
- }
- }
- .modal-body {
- padding: 20px;
- }
- .modal-footer {
- padding: 12px 20px;
- button {
- flex: 1;
- padding: 12px;
- }
- }
- .scene-grid {
- grid-template-columns: repeat(3, 1fr);
- gap: 10px;
- .scene-card {
- padding: 12px 8px;
- .scene-name {
- font-size: 12px;
- }
- }
- }
- .form-group .radio-group {
- flex-direction: column;
- .radio-label {
- width: 100%;
- }
- }
- .allocation-mini .allocation-mini-grid {
- grid-template-columns: 1fr;
- }
- .price-preview {
- padding: 16px;
- .price-preview-row.total .price {
- font-size: 20px;
- }
- }
- }
|