Ben Lin
2024-06-27 b4496ad2462843c575a3902c94a87694426f29a3
src/api/tigerapi/model/basModel.ts
@@ -1,4 +1,6 @@
import { Ref } from 'vue';
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
import { ActionItem } from '/@/components/Table';
//物料信息实体
export type MaterialInfoParams = {
  ITEM_CODE?: string;
@@ -100,6 +102,38 @@
  REMARK: string;
}
export interface NavItem {
  title: string;
  icon: string;
  color: string;
  url: string;
  action: string;
  isStep: boolean;
}
export type MaterialInfoPageListGetResultModel = BasicFetchResult<MaterialInfoListItem>;
export type SupplierInfoPageListGetResultModel = BasicFetchResult<SupplierInfoListItem>;
export type PackageRulePageListGetResultModel = BasicFetchResult<PackageRuleListItem>;
export interface EntityCustFunctionType {
  CreateAction: (fnName: string) => {};
  ActionItem: (params: Recordable<any>, data, ...args) => ActionItem[];
  EditOperation: (data: Ref<any[]>, d, u) => void;
  OpenSelectItem: (openItemModal: Fn, ...args) => void;
  GetSelectSuccess: (d, u, ...args) => {};
  GetHomeUrl: () => string;
  GetBaseColumns: () => [];
  GetSearchForm: () => [];
  GetCrudForm: () => [];
  GetBaseForm: () => [];
  GetBaseCards: () => [];
  OthersValues: (val: string, id: string) => {}
  GetTitle: () => {};
  GetCrudColSlots: () => [];
  nodeChange: ({}) => void,
  CreateIcon: (params: Recordable<any>) => string;
  SelectNode: (selectedNodes: Ref<any[]>) => {};
  GetNavItems: () => NavItem[];
  navChangeItem: (action: any, ...args) => void;
  GetUseModals: () => {};
}