diff --git a/src/api/customer/index.js b/src/api/customer/index.js new file mode 100644 index 0000000..4fdcd60 --- /dev/null +++ b/src/api/customer/index.js @@ -0,0 +1,49 @@ +import request from "@/utils/request"; + +// 获取内容列表 +export function getCustomerPage(query) { + return request({ + url: "/goods/customer/customerPage", + method: "get", + params: query, + }); +} +//新增 +export function addCustomer(data) { + return request({ + url: "/goods/customer/customerAdd", + method: "post", + data: data, + }); +} +//编辑 +export function updateCustomer(data) { + return request({ + url: "/goods/customer/customerEdit", + method: "PUT", + data: data, + }); +} +// 删除 +export function deleteCustomer(id) { + return request({ + url: '/goods/customer/customerDelete?id=' + id, + method: "delete", + }); +} +//启用停用 +export function updateCustomerEnable(data) { + return request({ + url: "/goods/customer/customerEnable", + method: "put", + data: data, + }); +} + +// 获取内容信息(id) +export function getInfo(id) { + return request({ + url: `/goods/customer/customerInfo/${id}`, + method: "get", + }); +} \ No newline at end of file diff --git a/src/views/brand/applicationReview/index.vue b/src/views/brand/applicationReview/index.vue index 707b777..5ca2885 100644 --- a/src/views/brand/applicationReview/index.vue +++ b/src/views/brand/applicationReview/index.vue @@ -198,7 +198,7 @@ let nowClickRow = ref({}); // 列配置 const columns = ref([ { prop: "id", label: "ID" }, - { prop: "brandUrl", label: "品牌LOGO", slotName:'brandUrl', width: "120", align: "left" }, + { prop: "brandUrl", label: "品牌LOGO", slotName:'brandUrl', width: "120",}, { prop: "brandTitle", label: "品牌名称" }, { prop: "brandCode", label: "品牌编码", }, // { prop: "code", label: "申请账号名称", width: "120" }, diff --git a/src/views/brand/informationManagement/index.vue b/src/views/brand/informationManagement/index.vue index 444adb7..45cdd7a 100644 --- a/src/views/brand/informationManagement/index.vue +++ b/src/views/brand/informationManagement/index.vue @@ -256,7 +256,7 @@ let nowClickRow = ref({}); // 列配置 const columns = ref([ { prop: "id", label: "ID" }, - { prop: "imgPath", label: "品牌LOGO", slotName:'imgPath', width: "120", align: "left" }, + { prop: "imgPath", label: "品牌LOGO", slotName:'imgPath', width: "120",}, { prop: "title", label: "品牌名称" }, { prop: "code", label: "品牌编码", width: "120" }, { prop: "createTime", label: "时间", width: "120" }, diff --git a/src/views/brand/renewal/index.vue b/src/views/brand/renewal/index.vue index c6f1b0b..dae0d3c 100644 --- a/src/views/brand/renewal/index.vue +++ b/src/views/brand/renewal/index.vue @@ -204,7 +204,7 @@ let nowClickRow = ref({}); // 列配置 const columns = ref([ { prop: "id", label: "ID" }, - { prop: "brandUrl", label: "品牌LOGO", slotName:'brandUrl', width: "120", align: "left" }, + { prop: "brandUrl", label: "品牌LOGO", slotName:'brandUrl', width: "120",}, { prop: "brandTitle", label: "品牌名称" }, { prop: "brandCode", label: "品牌编码", }, // { prop: "code", label: "申请账号名称", width: "120" }, diff --git a/src/views/customer/customerCategory.vue b/src/views/customer/customerCategory.vue index 6be82f2..d401d94 100644 --- a/src/views/customer/customerCategory.vue +++ b/src/views/customer/customerCategory.vue @@ -12,54 +12,33 @@ class="demo-form-inline" :label-width="'auto'" > - - - - - - - + + + + - - - - - @@ -78,35 +57,55 @@
- - - - + diff --git a/src/views/goods/goodsManage/addGoods.vue b/src/views/goods/goodsManage/addGoods.vue index fc79aec..68da65f 100644 --- a/src/views/goods/goodsManage/addGoods.vue +++ b/src/views/goods/goodsManage/addGoods.vue @@ -67,6 +67,11 @@ + + + + + @@ -100,6 +105,7 @@
商品规格
销售价格
库存数量
+
预警库存
净含量
@@ -111,6 +117,9 @@
+
+ +
@@ -241,11 +250,13 @@ const formInline = reactive({ goodSpecs: "", salePrice: 1,//销售价格-单规格 stock: 1,//库存数量-单规格 + stockWarnCount:1,//库存预警数量-单规格 netContent: 1,//净含量-单规格 unit: "kg",//净含量单位-单规格 netWeight: [ //多规格集合 { goodSpecs: "", + stockWarnCount:1, //库存预警数量-多规格 goodPrice: 1, goodStock: 1, netContent: 1, diff --git a/src/views/goods/goodsManage/editGoods.vue b/src/views/goods/goodsManage/editGoods.vue index bbe92be..e8b9dfe 100644 --- a/src/views/goods/goodsManage/editGoods.vue +++ b/src/views/goods/goodsManage/editGoods.vue @@ -67,6 +67,11 @@ + + + + + @@ -100,6 +105,7 @@
商品规格
销售价格
库存数量
+
预警库存
净含量
@@ -111,6 +117,9 @@
+
+ +
@@ -241,11 +250,13 @@ const formInline = reactive({ goodSpecs: "", salePrice: 1,//销售价格-单规格 stock: 1,//库存数量-单规格 + stockWarnCount: 1,//库存预警数量-单规格 netContent: 1,//净含量-单规格 unit: "kg",//净含量单位-单规格 netWeight: [ //多规格集合 { goodSpecs: "", + stockWarnCount:1, //库存预警数量-多规格 goodPrice: 1, goodStock: 1, netContent: 1, diff --git a/src/views/goods/goodsManage/index.vue b/src/views/goods/goodsManage/index.vue index 1d4b9c4..dfdf5d3 100644 --- a/src/views/goods/goodsManage/index.vue +++ b/src/views/goods/goodsManage/index.vue @@ -135,20 +135,27 @@ const resetForm = () => { let activeCurrent = ref("1"); let bottomList = reactive([ { title: "全部", id: "1", value: "" }, + { title: "待上架", id: "0", value: "" }, { title: "已上架", id: "2", value: "" }, { title: "已下架", id: "3", value: "" }, + { title: "库存告急", id: "4", value: "" }, ]); const tabChange = (Event) => { - if (Event.index == "0") { - // 请求全部 - formInline.type = "1"; - } else if (Event.index == "1") { - // 请求已上架 - formInline.type = "2"; - } else if (Event.index == "2") { - // 请求已下架 - formInline.type = "3"; - } + console.log(Event.index); + formInline.type = bottomList[Event.index].id; + // if (Event.index == "0") { + // // 请求全部 + // formInline.type = "1"; + // } else if (Event.index == "1") { + // // 请求待上架 + // formInline.type = "0"; + // } else if (Event.index == "2") { + // // 请求已下架 + // formInline.type = "3"; + // } else if (Event.index == "3") { + // // 请求库存告急 + // formInline.type = "4"; + // } loadData(); }; @@ -364,8 +371,10 @@ const getGoodsManageCount = async () => { let response = await getGoodManageCount(); if (response.code == 200) { bottomList[0].value = `(${response.data?.allGoodCount ?? ""})`; - bottomList[1].value = `(${response.data?.alreadyListedCount ?? ""})`; - bottomList[2].value = `(${response.data?.removedCount ?? ""})`; + bottomList[1].value = `(${response.data?.readyListedCount ?? ""})`; + bottomList[2].value = `(${response.data?.alreadyListedCount ?? ""})`; + bottomList[3].value = `(${response.data?.removedCount ?? ""})`; + bottomList[4].value = `(${response.data?.stockWaringCount ?? ""})`; } } catch (error) { } };