mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 02:47:29 +08:00
refactor: 移除未使用的商品规格相关 API 接口与组件,优化用户管理与物流功能
- 删除了与商品规格相关的 API 接口和组件,简化代码结构。 - 更新用户管理功能,确保表单字段与验证规则一致。 - 优化物流添加与编辑功能,确保请求参数的正确性与一致性。
This commit is contained in:
@@ -67,11 +67,6 @@ export const getCategoryBrandListData = (category_id, params) => {
|
||||
export const saveCategoryBrand = (category_id, params) => {
|
||||
return postRequest(`/category/brand/${category_id}`, params);
|
||||
};
|
||||
//保存获取关联规格
|
||||
export const saveCategorySpec = (category_id, params) => {
|
||||
return postRequest(`/goods/categorySpec/${category_id}`, params);
|
||||
};
|
||||
|
||||
//获取所有可用品牌
|
||||
export const getBrandListData = params => {
|
||||
return getRequest("/goods/brand/all", params);
|
||||
@@ -115,10 +110,6 @@ export const getSpecListData = params => {
|
||||
export const insertOrUpdateSpec = params => {
|
||||
return postRequest("/goods/spec/edit", params);
|
||||
};
|
||||
//根据分类id获取关联规格
|
||||
export const getCategorySpecListData = (category_id, params) => {
|
||||
return getRequest(`/goods/categorySpec/${category_id}`, params);
|
||||
};
|
||||
//删除gUI个
|
||||
export const delSpec = (id, params) => {
|
||||
return deleteRequest(`/goods/spec/del/${id}`, params);
|
||||
@@ -335,11 +326,6 @@ export const getCategoryParamsListDataSeller = (id, params) => {
|
||||
return getRequest(`/goods/categoryParameters/${id}`, params);
|
||||
};
|
||||
|
||||
//保存获取关联规格
|
||||
export const getGoodsSpecInfoSeller = (category_id) => {
|
||||
return getRequest(`/goods/spec/${category_id}`);
|
||||
};
|
||||
|
||||
//批量设置运费模板
|
||||
export const batchShipTemplate = params => {
|
||||
return putRequest(`/goods/goods/freight`, params);
|
||||
|
||||
@@ -1211,8 +1211,6 @@ export default {
|
||||
this.baseInfoForm.weight = response.result.skuList[0].weight;
|
||||
}
|
||||
|
||||
this.Get_SkuInfoByCategory(this.categoryId);
|
||||
|
||||
this.renderGoodsDetailSku(response.result.skuList);
|
||||
|
||||
/** 查询品牌列表 */
|
||||
@@ -2000,20 +1998,6 @@ export default {
|
||||
return generateCombinations(0, []);
|
||||
},
|
||||
|
||||
/** 根据分类id获取系统设置规格信息*/
|
||||
Get_SkuInfoByCategory(categoryId) {
|
||||
if (categoryId) {
|
||||
API_GOODS.getGoodsSpecInfoSeller(categoryId).then((res) => {
|
||||
if (res.length) {
|
||||
res.forEach((e) => {
|
||||
this.skuData.push(e.specName);
|
||||
const vals = e.specValue ? e.specValue.split(",") : [];
|
||||
this.skuVals.push(Array.from(new Set(vals)));
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
// 判断相同数组的值
|
||||
scalarArrayEquals(array1, array2) {
|
||||
return (
|
||||
@@ -2307,8 +2291,6 @@ export default {
|
||||
this.GET_GoodsParams();
|
||||
/** 查询品牌列表 */
|
||||
this.getGoodsBrandList();
|
||||
/** 查询分类绑定的规格信息 */
|
||||
this.Get_SkuInfoByCategory(this.categoryId);
|
||||
// 获取商品单位
|
||||
this.GET_GoodsUnit();
|
||||
// 获取当前店铺分类
|
||||
|
||||
Reference in New Issue
Block a user