diff --git a/frontend/src/views/Projects.vue b/frontend/src/views/Projects.vue index 1127791..b03393b 100644 --- a/frontend/src/views/Projects.vue +++ b/frontend/src/views/Projects.vue @@ -57,7 +57,7 @@ class="proj-name-input" @blur="saveProject" /> - + @@ -145,23 +145,23 @@

💰 价格计算

原料成本 - {{ oils.fmtPrice(materialCost) }} + {{ oils.fmtPrice(materialCost) }}
包装费用 -
¥
+
¥
人工费用 -
¥
+
¥
其他成本 -
¥
+
¥
总成本 - {{ oils.fmtPrice(totalCost) }} + {{ oils.fmtPrice(totalCost) }}
售价 @@ -466,6 +466,10 @@ const maxSessions = computed(() => { return Math.min(...data.map(c => c.sessions)) }) +function clearZero(e) { + if (e.target.value === '0' || e.target.value === 0) e.target.value = '' +} + function formatDate(d) { if (!d) return '' return new Date(d).toLocaleDateString('zh-CN') @@ -709,6 +713,7 @@ function formatDate(d) { } .price-row .price-label { color: #6b6375; } .price-row .price-value { text-align: right; font-weight: 600; } +.price-val-box { width: 70px; text-align: right; font-weight: 600; color: #4a9d7e; font-size: 13px; } .price-row .price-input-wrap { display: flex; align-items: center; gap: 2px; } .price-row .form-input-inline, .price-row input[type="number"] { width: 70px; text-align: right; padding: 4px 6px; border: 1px solid #d4cfc7; border-radius: 6px; font-size: 13px; font-family: inherit; outline: none; } .price-row .form-input-inline:focus, .price-row input[type="number"]:focus { border-color: #7ec6a4; }