+
@@ -191,7 +201,8 @@ export default {
weight: sku.weight,
cost: sku.cost,
price:sku.price,
- image: sku.thumbnail,
+ image: sku.goodsGalleryList,
+ quantity:sku.quantity
});
});
if (res.result.salesModel === "WHOLESALE" && res.result.wholesaleList) {
@@ -214,9 +225,12 @@ export default {
{
title: "价格",
key: "price",
- render: (h, params) => {
- return h("priceColorScheme", {props:{value:params.row.price,color:this.$mainColor}} );
+ render: (h, params) => {v
+ return h("priceColorScheme", {props:{alue:params.row.price,color:this.$mainColor}} );
},
+ },{
+ title: "库存",
+ key: "quantity",
}
);
}
diff --git a/manager/src/views/goods/goods-manage/brand.vue b/manager/src/views/goods/goods-manage/brand.vue
index 7438def2..26e792af 100644
--- a/manager/src/views/goods/goods-manage/brand.vue
+++ b/manager/src/views/goods/goods-manage/brand.vue
@@ -1,7 +1,7 @@
@@ -222,13 +223,14 @@ import {
} from "@/api/goods";
import { baseUrl } from "@/libs/axios.js";
import * as API_Shop from "@/api/shops";
-import Cookies from "js-cookie";
+
import {uploadGoodsExcel} from "../../../api/goods";
export default {
name: "goods",
data() {
return {
+ spinShow:false,
accessToken: {}, // 验证token
importModal: false,
action: baseUrl + "/goods/import/import", // 上传接口
@@ -546,15 +548,11 @@ export default {
async upload() {
let fd = new FormData();
fd.append("files", this.file);
+ this.spinShow = false
let res = await uploadGoodsExcel(fd);
if (res.success) {
- this.stepList.map((item) => {
- item.checked = false;
- this.$Message.success("导入成功")
- this.importModal = false
- });
-
- this.stepList[2].checked = true;
+ this.spinShow = true
+ this.$Message.success("导入成功")
}
},
openImportGoods(){
diff --git a/seller/src/views/promotion/coupon/coupon.vue b/seller/src/views/promotion/coupon/coupon.vue
index 7e61f22f..ecf49242 100644
--- a/seller/src/views/promotion/coupon/coupon.vue
+++ b/seller/src/views/promotion/coupon/coupon.vue
@@ -277,9 +277,14 @@ export default {
this.getDataList();
},
handleReset() {
- this.searchForm = {};
+ this.searchForm = {
+ // 搜索框初始化对象
+ pageNumber: 1, // 当前页数
+ pageSize: 10, // 页面大小
+ sort: "startTime", // 默认排序字段
+ order: "desc", // 默认排序方式
+ };
this.selectDate = "";
- this.searchForm.pageNumber = 1;
this.getDataList();
},
clearSelectAll() {
diff --git a/seller/src/views/promotion/full-discount/full-discount.vue b/seller/src/views/promotion/full-discount/full-discount.vue
index 012efdea..b7a9b1f4 100644
--- a/seller/src/views/promotion/full-discount/full-discount.vue
+++ b/seller/src/views/promotion/full-discount/full-discount.vue
@@ -168,9 +168,13 @@ export default {
// 重置
handleReset () {
this.selectDate = "";
- this.searchForm = {};
- this.searchForm.pageNumber = 1;
- this.searchForm.pageSize = 10;
+ this.searchForm = {
+ // 搜索框初始化对象
+ pageNumber: 1, // 当前页数
+ pageSize: 10, // 页面大小
+ sort: "startTime", // 默认排序字段
+ order: "desc", // 默认排序方式
+ };
this.getDataList();
},
// 编辑
diff --git a/seller/src/views/promotion/pintuan/pintuan.vue b/seller/src/views/promotion/pintuan/pintuan.vue
index 809f55d2..25f86bae 100644
--- a/seller/src/views/promotion/pintuan/pintuan.vue
+++ b/seller/src/views/promotion/pintuan/pintuan.vue
@@ -205,10 +205,15 @@ export default {
},
// 重置
handleReset() {
- this.searchForm = {};
+ this.searchForm = {
+ // 搜索框初始化对象
+ pageNumber: 0, // 当前页数
+ pageSize: 10, // 页面大小
+ sort: "startTime",
+ order: "desc", // 默认排序方式
+ };
this.selectDate = "";
- this.searchForm.pageNumber = 0;
- this.searchForm.pageSize = 10;
+
this.getDataList();
},
// 时间段分别赋值
diff --git a/seller/src/views/promotion/seckill/seckill.vue b/seller/src/views/promotion/seckill/seckill.vue
index 2e22a9d8..3314fa7f 100644
--- a/seller/src/views/promotion/seckill/seckill.vue
+++ b/seller/src/views/promotion/seckill/seckill.vue
@@ -145,10 +145,14 @@ export default {
},
// 重置
handleReset () {
- this.searchForm = {};
+ this.searchForm = {
+ // 搜索框初始化对象
+ pageNumber: 1, // 当前页数
+ pageSize: 10, // 页面大小
+ sort: "startTime",
+ order: "desc", // 默认排序方式
+ };
this.selectDate = "";
- this.searchForm.pageNumber = 1;
- this.searchForm.pageSize = 10;
this.getDataList();
},
// 管理