Commit d70f0b3f by qinjianhui

feat: 左侧状态数结构替换

parent 59104af9
...@@ -11,11 +11,9 @@ import type { ...@@ -11,11 +11,9 @@ import type {
SearchForm, SearchForm,
StatusTreeNode, StatusTreeNode,
} from '@/types/api/factoryOrderNew' } from '@/types/api/factoryOrderNew'
export function getPodOrderStateGroupListApi() {
// 左侧状态树 - 先保留接口定义,实际数据在前端写死
export function getStatusTreeApi() {
return axios.get<never, BaseRespData<StatusTreeNode[]>>( return axios.get<never, BaseRespData<StatusTreeNode[]>>(
'factory/orderNew/getStatusTree', 'factory/podOrder/findStateGroupList',
) )
} }
...@@ -26,7 +24,7 @@ export function getFactoryOrderNewListApi( ...@@ -26,7 +24,7 @@ export function getFactoryOrderNewListApi(
statusCode?: string, statusCode?: string,
) { ) {
return axios.post<never, BasePaginationData<FactoryOrderNewListData>>( return axios.post<never, BasePaginationData<FactoryOrderNewListData>>(
'factory/orderNew/list_page', 'factory/podOrder/list_page',
{ {
...data, ...data,
currentPage, currentPage,
......
export interface StatusTreeNode { export interface StatusTreeNode {
code: string status: string
remark: string statusName: string
count: number quantity: number
children?: StatusTreeNode[] children: StatusTreeNode[] | null
} }
export interface SearchForm { export interface SearchForm {
......
...@@ -312,7 +312,6 @@ const handleDelete = () => { ...@@ -312,7 +312,6 @@ const handleDelete = () => {
} }
const handleReArrange = (row: BatchManageData) => { const handleReArrange = (row: BatchManageData) => {
// 后端未提供“批次 -> 商品ID列表”映射时,暂用行 id 作为占位
arrangeDialogRef.value?.open({ arrangeDialogRef.value?.open({
productIdList: [row.id], productIdList: [row.id],
title: '重排', title: '重排',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment