@@ -330,8 +336,8 @@
orderInfo.order.priceDetailDTO.discountPrice > 0
">
优惠金额:
-
- {{ $filters.unitPrice(orderInfo.order.priceDetailDTO.discountPrice, "¥") }}
+
+ -¥{{ $filters.unitPrice(orderInfo.order.priceDetailDTO.discountPrice) }}
优惠券金额:
-
-
+
+ -¥{{ $filters.unitPrice(orderInfo.order.priceDetailDTO.couponPrice) }}
-
-
-
-
- ⓘ
-
-
-
-
-
- | 优惠详情: |
-
-
-
-
- | {{ item.promotionName }}: |
- ¥{{ $filters.unitPrice(item.discountPrice) }} |
-
-
-
-
-
-
优惠详情:
-
+
+ {{ item.promotionName }}:
+ -¥{{ $filters.unitPrice(item.discountPrice) }}
-
-
运费:
{{
@@ -396,7 +369,7 @@
orderInfo.order.priceDetailDTO.payPoint
}}
-
+
应付金额:
¥{{ $filters.unitPrice(orderInfo.order.flowPrice) }}
@@ -922,7 +895,6 @@ const fulfillTable = ref(null);
const map = ref(null);
const typeList = ref([]);
-const showPrices = ref(false);
const printHiddenFlag = ref(false);
const loading = ref(false);
const logisticsType = ref("KUAIDINIAO");
@@ -1148,6 +1120,23 @@ onBeforeRouteLeave((to, from, next) => {
function lineCardKeyRows(line) {
return line.cardKeys || [];
}
+function copySn() {
+ const text = orderInfo.value?.order?.sn || "";
+ if (!text) return;
+ if (navigator.clipboard && navigator.clipboard.writeText) {
+ navigator.clipboard.writeText(text).then(() => {
+ Message.success("订单号已复制");
+ });
+ } else {
+ const ta = document.createElement("textarea");
+ ta.value = text;
+ document.body.appendChild(ta);
+ ta.select();
+ document.execCommand("copy");
+ document.body.removeChild(ta);
+ Message.success("订单号已复制");
+ }
+}
function copyCardKey(row) {
const text = `卡号:${row.cardNo || ""}\n卡密:${row.cardSecret || ""}`;
if (navigator.clipboard && navigator.clipboard.writeText) {
@@ -1261,7 +1250,6 @@ function refreshFulfillAfterSubmit() {
? JSON.parse(JSON.stringify(res.result.order.priceDetailDTO.discountPriceDetail))
: [];
getContentPrice();
- getOrderPrice();
}
}),
getOrderPackages(),
@@ -1423,7 +1411,6 @@ function getDataDetail () {
? JSON.parse(JSON.stringify(discountDetail))
: [];
getContentPrice();
- getOrderPrice();
if (isAppointmentOrder.value) {
loadAppointmentVerification();
}
@@ -1572,13 +1559,6 @@ function getLogisticsSetting () {
}
});
}
-function getOrderPrice () {
- if (showPrices.value) {
- showPrices.value = false
- } else if (!showPrices.value) {
- showPrices.value = true
- }
-}
function getContentPrice () {
for (let i = 0; i < typeList.value.length; i++) {
for (let j = i + 1; j < typeList.value.length; j++) {
@@ -2096,6 +2076,86 @@ function editAddressSubmit () {
font-size: 22px;
}
}
+
+ .el-card {
+ border: none;
+ border-radius: 8px;
+ box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 2px 8px rgba(17, 24, 39, 0.06);
+ }
+
+ .div-item > .div-item-left {
+ color: #909399;
+ }
+
+ .order-toolbar {
+ display: flex;
+ align-items: center;
+
+ .toolbar-right {
+ margin-left: auto;
+ }
+ }
+
+ .info-group-title {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ margin-bottom: 6px;
+ font-size: 14px;
+ font-weight: 600;
+ color: #303133;
+
+ &::before {
+ content: "";
+ width: 3px;
+ height: 13px;
+ border-radius: 2px;
+ background: var(--el-color-primary);
+ }
+ }
+
+ .order-fit-table tbody tr:hover td {
+ background: #f7f8fa;
+ }
+
+ .order-goods-img {
+ border: 1px solid #f0f0f0;
+ border-radius: 6px;
+ }
+
+ .order-goods-spec {
+ padding: 1px 6px;
+ margin-right: 6px;
+ background: #f4f4f5;
+ border-radius: 4px;
+ }
+
+ .total-row {
+ margin-top: 8px;
+ padding: 6px 10px;
+ background: #fef0f0;
+ border-radius: 6px;
+ }
+
+ .discount-detail-row {
+ .label,
+ .txt {
+ font-size: 12px;
+ color: #909399;
+ }
+
+ .label {
+ padding-left: 16px;
+ position: relative;
+
+ &::before {
+ content: "└";
+ position: absolute;
+ left: 4px;
+ color: #c0c4cc;
+ }
+ }
+ }
}
.f14 {