-
-
-
收款详情
-
-
-
打包费:{{ 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
}
}
diff --git a/src/views/product/components/addGroup.vue b/src/views/product/components/addGroup.vue
index faceeee..e4906eb 100644
--- a/src/views/product/components/addGroup.vue
+++ b/src/views/product/components/addGroup.vue
@@ -27,7 +27,7 @@
禁用
-
+
启用
禁用
@@ -51,7 +51,7 @@
-
+
diff --git a/src/views/product/components/stockHistory.vue b/src/views/product/components/stockHistory.vue
index 1bd95c8..a07f500 100644
--- a/src/views/product/components/stockHistory.vue
+++ b/src/views/product/components/stockHistory.vue
@@ -42,6 +42,12 @@
import dayjs from 'dayjs'
import { tbProductStockDetailStock } from '@/api/shop.js'
export default {
+ props: {
+ query: {
+ type: Object,
+ default: {}
+ }
+ },
data() {
return {
dayjs,
@@ -77,7 +83,12 @@ export default {
page: this.tableData.page,
size: this.tableData.size,
shopId: localStorage.getItem('shopId'),
- column: this.key
+ column: this.key,
+ productName: this.query.name,
+ categoryId: this.query.categoryId,
+ type: this.query.typeEnum,
+ startTime: this.query.createdAt[0] || '',
+ endTime: this.query.createdAt[1] || '',
})
this.tableData.loading = false
this.tableData.data = res.content
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index e126c53..e8eeb76 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -1,26 +1,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
-
-
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 库存预警:{{ warnLine }}
+
@@ -56,8 +52,15 @@
{{ countInfo.addCountNumber || 0 }}
-
手动增加:
-
{{ countInfo.addNumber || 0 }}
+
+ 手动增加:
+ {{ countInfo.addNumber || 0 }}
+
+
+
+ 退货:
+ {{ countInfo.refundNumber || 0 }}
+
@@ -134,10 +137,12 @@