Ben Lin
2025-03-11 8e977a7ec92bc1845079eda2473e9c3fc4691c8d
src/api/tigerapi/model/basModel.ts
@@ -1,6 +1,9 @@
import { Ref } from 'vue';
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
import { ActionItem } from '/@/components/Table';
import { CustModalParams } from './systemModel';
import { EventDataNode } from 'ant-design-vue/lib/tree';
import { ContextMenuItem } from '/@/components/TigerTree';
//物料信息实体
export type MaterialInfoParams = {
  ITEM_CODE?: string;
@@ -109,32 +112,51 @@
  url: string;
  action: string;
  isStep: boolean;
  isCustEl: boolean;
}
export type MaterialInfoPageListGetResultModel = BasicFetchResult<MaterialInfoListItem>;
export type SupplierInfoPageListGetResultModel = BasicFetchResult<SupplierInfoListItem>;
export type PackageRulePageListGetResultModel = BasicFetchResult<PackageRuleListItem>;
/**
 * @description: 自定义方法接口
 * @return {*}
 */
export interface EntityCustFunctionType {
  CreateAction: (fnName: string) => {};
  CreateAction: (type: string, ...args) => {};
  ActionItem: (params: Recordable<any>, data, ...args) => ActionItem[];
  EditOperation: (data: Ref<any[]>, d, u) => void;
  EditOperation: (data: Ref<any[]>, d, u, item: string | undefined) => void;
  OpenSelectItem: (openItemModal: Fn, ...args) => void;
  GetSelectSuccess: (d, u, ...args) => {};
  GetHomeUrl: () => string;
  GetBaseColumns: () => [];
  GetSearchForm: () => [];
  GetCrudForm: (type: string) => [];
  GetBaseForm: () => [];
  GetBaseCards: () => [];
  OthersValues: (val: string, id: string) => {};
  GetTitle: (type: string) => {};
  GetHomeUrl: (params: {} | undefined) => string;
  GetBaseColumns: (type: string | undefined) => [] | {};
  GetSearchForm: (type: string | undefined) => [] | {};
  GetCrudForm: (type: string | undefined) => [] | {};
  GetBaseForm: () => [] | {};
  GetBaseCards: (type: string | undefined) => [];
  KeyFieldValues: (val: string, id: string) => {};
  GetTitle: (type: string | undefined) => {};
  GetCrudColSlots: () => [];
  nodeChange: ({}) => void;
  nodeChange: ({}) => Promise<any>;
  CreateIcon: (params: Recordable<any>) => string;
  SelectNode: (selectedNodes: Ref<any[]>) => {};
  GetNavItems: () => NavItem[];
  GetNavItems: (type: string) => NavItem[];
  navChangeItem: (action: any, ...args) => void;
  GetUseModals: () => {};
  GetUseDrawers: () => [];
  GetUseTables: (data: Ref<Recordable[]>, ...args) => {};
  GetUseForm: (...args) => {};
  SubmitFunc: (values: Recordable<any>, type: string, emit) => void;
  FormSearch: (d) => string | {};
  GetSlots: (type: string | undefined) => {};
  GenerateHtml: (type: string | null) => HTMLElement | null;
  CustFunc: (param: CustModalParams) => void | any;
  SubmitAll: (data: Ref<any[]>, keyFieldValues: Ref<{}>, ...args) => void | any;
  CustInitData: (data: Ref<any[]>, keyFieldValues: Ref<{}>, type: string) => void | any;
  CustEditEnd: ({ record, index, key, value }: Recordable, type, ...args) => void | any;
  GetCustData: () => {};
  GetRightMenuList: (node: EventDataNode, ...args) => ContextMenuItem[];
  GetNewRow: (type: string) => {};
  InitCrudFormSchema: (type: string, ...args) => {};
}