From b6163e1bed94b4d02d1b6f01fdc2eb3f15ca22e3 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期一, 07 十月 2024 15:47:46 +0800 Subject: [PATCH] 保存默认工艺路线,工单批次优化 --- src/api/tigerapi/model/basModel.ts | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/api/tigerapi/model/basModel.ts b/src/api/tigerapi/model/basModel.ts index c2a9d7e..b659876 100644 --- a/src/api/tigerapi/model/basModel.ts +++ b/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,6 +112,7 @@ url: string; action: string; isStep: boolean; + isCustEl: boolean; } export type MaterialInfoPageListGetResultModel = BasicFetchResult<MaterialInfoListItem>; @@ -120,31 +124,39 @@ * @return {*} */ export interface EntityCustFunctionType { - CreateAction: (fnName: string) => {}; + CreateAction: (type: string, ...args) => {}; ActionItem: (params: Recordable<any>, data, ...args) => ActionItem[]; EditOperation: (data: Ref<any[]>, d, u, item: string | undefined) => void; OpenSelectItem: (openItemModal: Fn, ...args) => void; GetSelectSuccess: (d, u, ...args) => {}; - GetHomeUrl: () => string; + GetHomeUrl: (params: {} | undefined) => string; GetBaseColumns: (type: string | undefined) => [] | {}; GetSearchForm: (type: string | undefined) => [] | {}; - GetCrudForm: (type: string | undefined,) => [] | {}; + GetCrudForm: (type: string | undefined) => [] | {}; GetBaseForm: () => [] | {}; GetBaseCards: (type: string | undefined) => []; - OthersValues: (val: string, id: string) => {}; + 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: (type: string) => NavItem[]; navChangeItem: (action: any, ...args) => void; GetUseModals: () => {}; GetUseDrawers: () => []; - GetUseTables: (data: Ref<Recordable[]>, ...args) => []; + 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: (type: string | undefined, ...args) => void | any; + 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) => {}; } -- Gitblit v1.9.3