diff --git a/resources/frontend/dist.zip b/resources/frontend/dist.zip
index 8f37a50..66abe54 100644
Binary files a/resources/frontend/dist.zip and b/resources/frontend/dist.zip differ
diff --git a/resources/frontend/src/api/shop.js b/resources/frontend/src/api/shop.js
index 9056e8c..ab329b6 100644
--- a/resources/frontend/src/api/shop.js
+++ b/resources/frontend/src/api/shop.js
@@ -18,10 +18,17 @@ export function shopAdd(data) {
});
}
// 店铺列表
-export function storeList(data) {
+export function storeList() {
return http({
url: "/api/shops",
method: "get",
- data,
+ });
+}
+
+// 下载商品
+export function downloadGoods(id) {
+ return http({
+ url: `/api/download/${id}/goods`,
+ method: "get",
});
}
diff --git a/resources/frontend/src/util/http.js b/resources/frontend/src/util/http.js
index fd16e48..7c588a4 100644
--- a/resources/frontend/src/util/http.js
+++ b/resources/frontend/src/util/http.js
@@ -55,12 +55,13 @@ instance.interceptors.response.use(
}
},
(error) => {
+ console.log(error);
// 对响应错误做点什么
Message({
message: error,
type: "error",
});
- console.log(error, "44444"); // for debug
+ // console.log(error, "44444"); // for debug
// if (error.response.status === 401) {
// Message({
// message: '账户登录过期,请重新登录',
diff --git a/resources/frontend/src/views/store/store.vue b/resources/frontend/src/views/store/store.vue
index cd47a82..6536ac2 100644
--- a/resources/frontend/src/views/store/store.vue
+++ b/resources/frontend/src/views/store/store.vue
@@ -21,17 +21,19 @@
> 授 权
- 重新授权
- {{
- scope.row.status
- }}
+
+
+
+ {{ scope.row.status }}
+ 下载商品
+
@@ -82,7 +84,7 @@
diff --git a/resources/frontend/src/views/yingyeting/addgoods/addgoods.vue b/resources/frontend/src/views/yingyeting/addgoods/addgoods.vue
index e8168b8..79009df 100644
--- a/resources/frontend/src/views/yingyeting/addgoods/addgoods.vue
+++ b/resources/frontend/src/views/yingyeting/addgoods/addgoods.vue
@@ -286,8 +286,8 @@ export default {
title: "",
sku_code: "",
status: "0",
- num: "",
- cost: "",
+ num: "0",
+ cost: "0",
},
],
@@ -388,7 +388,6 @@ export default {
},
...this.goodschoose,
];
- console.log(this.goodschoose);
});
},
@@ -401,7 +400,6 @@ export default {
goods_id: this.lid,
skus: skus,
};
- console.log(updata);
addGoods(updata).then((res) => {
if (res.statusText === "OK") {
this.$message({
@@ -410,11 +408,6 @@ export default {
});
this.updateForm();
this.$router.push("/GOODS_LIST");
- } else {
- this.$message({
- message: "商品添加失败!",
- type: "error",
- });
}
});
},
@@ -472,16 +465,6 @@ export default {
// 商品列表页进入带数据表单
getgoodsidData() {
let id = this.bigID;
- // let token = localStorage.getItem("token");
- // axios
- // .get(`/api/goods_skus/${id}`, {
- // headers: {
- // Authorization: `Bearer ${token}`,
- // },
- // })
- // .then((res) => {
- // this.goodsData = res.data.data;
- // });
checkGoods(id).then((res) => {
this.goodsData = res.data.data;
});
@@ -497,7 +480,7 @@ export default {
// console.log("goodsid", this.goodsData.goods_id);
let goods = {
title: this.goodsData.goods.title,
- img_url: this.from.img_url,
+ img_url: this.goodsData.goods.img_url,
type_id: this.goodsData.goods.type_id,
brand_id: this.goodsData.goods.brand_id,
goods_code: this.goodsData.goods.goods_code,
@@ -522,11 +505,11 @@ export default {
sku,
};
updateGoods(id, updateData).then((res) => {
+ this.$router.push("/GOODS_LIST");
this.$message({
message: "商品编辑成功!",
type: "success",
});
- this.$router.push("/GOODS_LIST");
});
},
@@ -615,8 +598,8 @@ export default {
text-align: center;
}
.avatar {
- width: 178px;
- height: 178px;
+ width: 148px;
+ height: 148px;
display: block;
}
diff --git a/resources/frontend/src/views/yingyeting/yingyeting.vue b/resources/frontend/src/views/yingyeting/yingyeting.vue
index 155cb14..13567ea 100644
--- a/resources/frontend/src/views/yingyeting/yingyeting.vue
+++ b/resources/frontend/src/views/yingyeting/yingyeting.vue
@@ -203,15 +203,14 @@
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange"
+ max-height="500"
>
-

+
{{ scope.row.goods.title }}
@@ -247,16 +246,10 @@
-
+
- {{
- scope.row.daily != null
- ? scope.row.daily.arrived_today_num
- : 0
- }}
+ {{ scope.row.daily.arrived_today_num }}
@@ -393,10 +386,14 @@
-
+