-
-
-
收款详情
-
-
-
打包费:{{ detail.packFee || "-" }}
-
-
-
订单原价:¥{{ detail.originAmount }}
-
优惠金额:¥{{ detail.userCouponAmount || "-" }}
-
- 实收金额:¥{{ detail.payAmount }}
-
-
-
-
- 退款金额:¥{{ detail.refundAmount }}
- 退款详情>
-
-
支付方式:{{ detail.payType }}
-
-
-
-
订单信息
-
-
订单编号:{{ detail.orderNo }}
-
订单类型:{{ detail.sendType | sendTypeFilter }}
-
创建时间:{{ detail.createdAt | timeFilter }}
-
-
-
设备名称:-
-
支付时间:{{ detail.paidTime | timeFilter }}
-
更新时间:{{ detail.updatedAt | timeFilter }}
-
+
+
+
+
+
+
收款详情
+
+
+
打包费:{{ detail.packFee || "-" }}
+
订单原价:¥{{ detail.originAmount }}
+
优惠金额:¥{{ detail.userCouponAmount || "-" }}
+
+ 实收金额:¥{{ detail.payAmount }}
-
-
+
+
+ 退款金额:¥{{ detail.refundAmount }}
+ 退款详情>
+
+
支付方式:{{ detail.payType }}
+
+
+
+
+
+
商品信息
+
+
+
+
+
+
+ {{ scope.row.productName }}
+ {{
+ scope.row.productSkuName
+ }}
+
+
+
+
+
+
+ x{{ scope.row.num }}
+
+
+
+
+ ¥{{ scope.row.price }}/
+
+
+
+
+ ¥{{ scope.row.priceAmount }}
+
+
+
+
+
+
+
@@ -294,7 +358,7 @@ export default {
padding-top: 20px;
div {
- width: 33.333%;
+ width: 25%;
}
}
}
diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue
index 72d9d6e..8c460c2 100644
--- a/src/views/product/add_shop.vue
+++ b/src/views/product/add_shop.vue
@@ -750,7 +750,8 @@ export default {
console.log(this.form.skuList)
const hasUndefined = this.form.skuList.some(obj => {
for (const key in obj) {
- if (obj[key] === undefined) {
+ console.log(key, obj)
+ if (obj['salePrice'] === undefined || obj['memberPrice'] === undefined || obj['costPrice'] === undefined || obj['originPrice'] === undefined) {
return true; // 如果找到undefined,立即停止搜索并返回true
}
}
From 477906d4c5dc90c173094018ed49d817b208472a Mon Sep 17 00:00:00 2001
From: gyq <875626088@qq.com>
Date: Tue, 8 Oct 2024 15:25:33 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81?=
=?UTF-8?q?=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/shop.js | 9 ++++++
src/views/product/index.vue | 56 +++++++++++++++++++++++++++++++++----
2 files changed, 60 insertions(+), 5 deletions(-)
diff --git a/src/api/shop.js b/src/api/shop.js
index 6e99bf6..00a4a48 100644
--- a/src/api/shop.js
+++ b/src/api/shop.js
@@ -770,3 +770,12 @@ export function tbProductStockDetailStock(data) {
data
});
}
+
+// 商品库存记录列表
+export function stockWarnLine(data) {
+ return request({
+ url: `/api/stock/warnLine`,
+ method: "PUT",
+ data
+ });
+}
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index e126c53..a45cd77 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -19,6 +19,7 @@
查询
重置
+ 库存预警:{{ warnLine }}
@@ -42,7 +43,7 @@