提交 cc496fda 作者: 龚洪江

修复:产品目录更改

上级 a45a3c3a
......@@ -66,3 +66,12 @@ export type directoryListType = InterFunction<
type: number;
}[]
>;
//目录列表-产品指定
export type directoryProductType = InterFunction<
any,
{
id: number;
directoryName: string;
type: number;
}[]
>;
......@@ -14,6 +14,7 @@ import {
ProductSpecListType,
productSpecPriceType,
} from '~/api/interface/produceManageType';
import { directoryProductType } from '~/api/interface/categoryManage';
export class ProduceManageAPI {
// 产品管理-分页列表
......@@ -70,4 +71,8 @@ export class ProduceManageAPI {
static getCooperationListTag: cooperationTagType = () => {
return axios.get('/userapp/cooperation/listTag');
};
// 产品-目录
static getProductDirectoryList: directoryProductType = () => {
return axios.get('/pms/product/spec/productDirectoryList');
};
}
......@@ -189,7 +189,7 @@ function ProduceManage() {
};
// 目录列表
const getDirectoryList = () => {
CategoryManageAPI.getDirectoryListClone({ type: 4 }).then(({ result }) => {
ProduceManageAPI.getProductDirectoryList().then(({ result }) => {
setDecList(result || []);
});
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论