feat:【ele】【erp】stock 的迁移(20%)- warehouse
This commit is contained in:
@@ -75,6 +75,7 @@ async function handleDefaultStatusChange(
|
|||||||
await updateAccountDefaultStatus(row.id!, newStatus);
|
await updateAccountDefaultStatus(row.id!, newStatus);
|
||||||
// 提示并返回成功
|
// 提示并返回成功
|
||||||
message.success(`${text}默认成功`);
|
message.success(`${text}默认成功`);
|
||||||
|
handleRefresh();
|
||||||
resolve(true);
|
resolve(true);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ async function handleDefaultStatusChange(
|
|||||||
await updateWarehouseDefaultStatus(row.id!, newStatus);
|
await updateWarehouseDefaultStatus(row.id!, newStatus);
|
||||||
// 提示并返回成功
|
// 提示并返回成功
|
||||||
message.success(`${text}默认成功`);
|
message.success(`${text}默认成功`);
|
||||||
|
handleRefresh();
|
||||||
resolve(true);
|
resolve(true);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { requestClient } from '#/api/request';
|
import { requestClient } from '#/api/request';
|
||||||
|
|
||||||
export namespace ErpProductCategoryApi {
|
export namespace ErpProductCategoryApi {
|
||||||
/** ERP 产品分类信息 */
|
/** 产品分类信息 */
|
||||||
export interface ProductCategory {
|
export interface ProductCategory {
|
||||||
id?: number; // 分类编号
|
id?: number; // 分类编号
|
||||||
parentId?: number; // 父分类编号
|
parentId?: number; // 父分类编号
|
||||||
|
|||||||
@@ -3,24 +3,16 @@ import type { PageParam, PageResult } from '@vben/request';
|
|||||||
import { requestClient } from '#/api/request';
|
import { requestClient } from '#/api/request';
|
||||||
|
|
||||||
export namespace ErpProductUnitApi {
|
export namespace ErpProductUnitApi {
|
||||||
/** ERP 产品单位信息 */
|
/** 产品单位信息 */
|
||||||
export interface ProductUnit {
|
export interface ProductUnit {
|
||||||
id?: number; // 单位编号
|
id?: number; // 单位编号
|
||||||
name: string; // 单位名字
|
name: string; // 单位名字
|
||||||
status: number; // 单位状态
|
status: number; // 单位状态
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 产品单位分页查询参数 */
|
|
||||||
export interface ProductUnitPageParam extends PageParam {
|
|
||||||
name?: string;
|
|
||||||
status?: number;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 查询产品单位分页 */
|
/** 查询产品单位分页 */
|
||||||
export function getProductUnitPage(
|
export function getProductUnitPage(params: PageParam) {
|
||||||
params: ErpProductUnitApi.ProductUnitPageParam,
|
|
||||||
) {
|
|
||||||
return requestClient.get<PageResult<ErpProductUnitApi.ProductUnit>>(
|
return requestClient.get<PageResult<ErpProductUnitApi.ProductUnit>>(
|
||||||
'/erp/product-unit/page',
|
'/erp/product-unit/page',
|
||||||
{ params },
|
{ params },
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ async function handleDefaultStatusChange(
|
|||||||
await updateAccountDefaultStatus(row.id!, newStatus);
|
await updateAccountDefaultStatus(row.id!, newStatus);
|
||||||
// 提示并返回成功
|
// 提示并返回成功
|
||||||
ElMessage.success(`${text}默认成功`);
|
ElMessage.success(`${text}默认成功`);
|
||||||
|
handleRefresh();
|
||||||
resolve(true);
|
resolve(true);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ async function handleDefaultStatusChange(
|
|||||||
await updateWarehouseDefaultStatus(row.id!, newStatus);
|
await updateWarehouseDefaultStatus(row.id!, newStatus);
|
||||||
// 提示并返回成功
|
// 提示并返回成功
|
||||||
ElMessage.success(`${text}默认成功`);
|
ElMessage.success(`${text}默认成功`);
|
||||||
|
handleRefresh();
|
||||||
resolve(true);
|
resolve(true);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user