| | |
| | | <text class="info-value">{{ item.unit || "-" }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">数量</text> |
| | | <text class="info-value">{{ item.quantity || "-" }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">单价</text> |
| | | <text class="info-value">{{ formatAmount(item.unitPrice) }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">金额</text> |
| | | <text class="info-value highlight">{{ formatAmount(item.amount) }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | |
| | | const loadDetailFromStorage = () => { |
| | | const cachedData = uni.getStorageSync("salesQuotationDetail"); |
| | | if (cachedData && (cachedData.id === quotationId.value || cachedData.id === Number(quotationId.value))) { |
| | | if ( |
| | | cachedData && |
| | | (cachedData.id === quotationId.value || |
| | | cachedData.id === Number(quotationId.value)) |
| | | ) { |
| | | detailData.value = cachedData; |
| | | } else { |
| | | detailData.value = cachedData || {}; |