@kengic/vue 0.16.6 → 0.16.7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +21 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +3479 -2941
- package/dist/src/apis/WMS/Controllers/VarContextController/Add.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/Delete.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/DeleteBatch.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/Edit.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +24 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/ImportExcel.d.ts +15 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +31 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/QueryById.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/index.d.ts +8 -0
- package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Add.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +30 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +15 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/List.d.ts +37 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/index.d.ts +8 -0
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +52 -0
- package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +6 -0
- package/dist/src/apis/WMS/index.d.ts +2 -0
- package/dist/src/apis/WMS/models.d.ts +728 -0
- package/dist/src/apis/api.d.ts +1 -0
- package/dist/src/apis/def.d.ts +1 -0
- package/dist/src/apis/index.d.ts +2 -0
- package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +47 -0
- package/dist/src/components/KgAppSelect/index.d.ts +3 -0
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +41 -0
- package/dist/src/components/KgAppSelect/index.store.d.ts +73 -0
- package/dist/src/components/KgButton/KgButton.Item.d.ts +41 -0
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +31 -0
- package/dist/src/components/KgButton/KgButton.d.ts +34 -0
- package/dist/src/components/KgButton/KgButton.hooks.d.ts +61 -0
- package/dist/src/components/KgButton/KgButton.store.d.ts +89 -0
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +39 -0
- package/dist/src/components/KgButton/index.d.ts +62 -0
- package/dist/src/components/KgForm/KgForm.d.ts +414 -0
- package/dist/src/components/KgForm/index.d.ts +604 -0
- package/dist/src/components/KgForm/index.hooks.d.ts +42 -0
- package/dist/src/components/KgForm/index.store.d.ts +107 -0
- package/dist/src/components/KgForm/index.vm.d.ts +9 -0
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +100 -0
- package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +17 -0
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +17 -0
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +32 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +103 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +102 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +100 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +100 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +104 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +27 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +99 -0
- package/dist/src/components/KgForm.Item/index.d.ts +2 -0
- package/dist/src/components/KgForm.Item/index.vm.d.ts +104 -0
- package/dist/src/components/KgModal/KgModal.d.ts +395 -0
- package/dist/src/components/KgModal/components/KgModal.Close.d.ts +41 -0
- package/dist/src/components/KgModal/index.d.ts +2 -0
- package/dist/src/components/KgModal/index.vm.d.ts +194 -0
- package/dist/src/components/KgProgressA/KgProgressA.d.ts +85 -0
- package/dist/src/components/KgProgressA/index.d.ts +1 -0
- package/dist/src/components/KgResizable/KgResizable.d.ts +143 -0
- package/dist/src/components/KgResizable/index.d.ts +1 -0
- package/dist/src/components/KgSearch/KgSearch.d.ts +42 -0
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +39 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +22 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +8 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +24 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +7 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +32 -0
- package/dist/src/components/KgSearch/index.d.ts +3 -0
- package/dist/src/components/KgSearch/index.hooks.d.ts +41 -0
- package/dist/src/components/KgSearch/index.store.d.ts +86 -0
- package/dist/src/components/KgSearch/index.vm.d.ts +1 -0
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +41 -0
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +20 -0
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +28 -0
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +82 -0
- package/dist/src/components/KgSubmit/index.d.ts +4 -0
- package/dist/src/components/KgSubmit/index.hooks.d.ts +74 -0
- package/dist/src/components/KgSubmit/index.store.d.ts +130 -0
- package/dist/src/components/KgSubmit/index.vm.d.ts +10 -0
- package/dist/src/components/KgTable/KgTable.d.ts +39 -0
- package/dist/src/components/KgTable/KgTable.hooks.d.ts +43 -0
- package/dist/src/components/KgTable/components/KgTable.Cell.d.ts +61 -0
- package/dist/src/components/KgTable/components/KgTable.Info.d.ts +58 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +22 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.hooks.d.ts +14 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +22 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +21 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +24 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts +23 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +33 -0
- package/dist/src/components/KgTable/index.d.ts +4 -0
- package/dist/src/components/KgTable/index.hooks.d.ts +84 -0
- package/dist/src/components/KgTable/index.store.d.ts +157 -0
- package/dist/src/components/KgTable/index.vm.d.ts +66 -0
- package/dist/src/components/KgVar/KgVar.d.ts +28 -0
- package/dist/src/components/KgVar/index.d.ts +4 -0
- package/dist/src/components/KgVar/index.hooks.d.ts +242 -0
- package/dist/src/components/KgVar/index.store.d.ts +315 -0
- package/dist/src/components/KgVar/index.store.service.d.ts +21 -0
- package/dist/src/components/KgVar/index.vm.d.ts +47 -0
- package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +24 -0
- package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +17 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +25 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +29 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +22 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +25 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +22 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +33 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.data.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +3 -0
- package/dist/src/components/KgVarConfig/index.d.ts +2 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +20 -0
- package/dist/src/components/KgVarConfig/index.vm.d.ts +3 -0
- package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +38 -0
- package/dist/src/components/KgWarehouse/index.d.ts +4 -0
- package/dist/src/components/KgWarehouse/index.guard.d.ts +8 -0
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +27 -0
- package/dist/src/components/KgWarehouse/index.store.d.ts +63 -0
- package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +60 -0
- package/dist/src/components/KgYesOrNo/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +16 -0
- package/dist/src/components/util.d.ts +14 -0
- package/dist/src/config/index.d.ts +3 -0
- package/dist/src/config/index.hooks.d.ts +43 -0
- package/dist/src/config/index.store.d.ts +192 -0
- package/dist/src/config/setup.d.ts +45 -0
- package/dist/src/consts/i18n/en.d.ts +228 -0
- package/dist/src/consts/i18n/index.d.ts +2 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +227 -0
- package/dist/src/consts/index.d.ts +253 -0
- package/dist/src/consts/index.vm.d.ts +170 -0
- package/dist/src/consts/injection-keys.const.d.ts +9 -0
- package/dist/src/helpers/ant-design-vue.d.ts +316 -0
- package/dist/src/helpers/tsx.helper.d.ts +13 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/pages/KgPageDda/KgPageDda.d.ts +8 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +8 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Child.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +29 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +26 -0
- package/dist/src/pages/KgPageDda/index.const.d.ts +11 -0
- package/dist/src/pages/KgPageDda/index.d.ts +5 -0
- package/dist/src/pages/index.d.ts +2 -0
- package/dist/src/services/http-client.d.ts +46 -0
- package/dist/src/services/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts +6 -0
- package/dist/src/utils/kg-auth.util.d.ts +26 -0
- package/dist/src/utils/kg-dom.util.d.ts +12 -0
- package/dist/src/utils/kg-logger.util.d.ts +65 -0
- package/dist/src/utils/kg-route.util.d.ts +54 -0
- package/dist/src/utils/kg-var.util.d.ts +36 -0
- package/dist/src/utils/kg.util.d.ts +114 -0
- package/package.json +6 -5
@@ -0,0 +1,242 @@
|
|
1
|
+
import { ComputedRef } from 'vue';
|
2
|
+
import { VarProfileDetail, VarSubmitField } from '../../apis/WMS/models';
|
3
|
+
import { IKgVarRetrieveCb, IKgVarStore } from './index.store';
|
4
|
+
export declare type IUseKgVar = {
|
5
|
+
/** 状态数据. */
|
6
|
+
store: IKgVarStore;
|
7
|
+
/** 正在查询变量配置. */
|
8
|
+
isRetrieving: ComputedRef<ReturnType<IKgVarStore['isRetrieving']>>;
|
9
|
+
/** 正在查询 VarProfileMaster. */
|
10
|
+
isRetrievingVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarProfileMaster']>>;
|
11
|
+
/** 正在查询 VarGridMaster. */
|
12
|
+
isRetrievingVarGridMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarGridMaster']>>;
|
13
|
+
/** 变量配置是否查询完成. */
|
14
|
+
isSearched: ComputedRef<ReturnType<IKgVarStore['isSearched']>>;
|
15
|
+
/** 正在创建. */
|
16
|
+
isCreating: ComputedRef<ReturnType<IKgVarStore['isCreating']>>;
|
17
|
+
/** 正在创建:正在调用接口. */
|
18
|
+
isCreatingRequesting: ComputedRef<ReturnType<IKgVarStore['isCreatingRequesting']>>;
|
19
|
+
/** 正在更新. */
|
20
|
+
isUpdating: ComputedRef<ReturnType<IKgVarStore['isUpdating']>>;
|
21
|
+
/** 正在更新:正在调用接口. */
|
22
|
+
isUpdatingRequesting: ComputedRef<ReturnType<IKgVarStore['isUpdatingRequesting']>>;
|
23
|
+
/** 正在复制. */
|
24
|
+
isCopying: ComputedRef<ReturnType<IKgVarStore['isCopying']>>;
|
25
|
+
/** 正在复制:正在调用接口. */
|
26
|
+
isCopyingRequesting: ComputedRef<ReturnType<IKgVarStore['isCopyingRequesting']>>;
|
27
|
+
/** 正在删除. */
|
28
|
+
isDeleting: ComputedRef<ReturnType<IKgVarStore['isDeleting']>>;
|
29
|
+
/** 正在删除:正在调用接口. */
|
30
|
+
isDeletingRequesting: ComputedRef<ReturnType<IKgVarStore['isDeletingRequesting']>>;
|
31
|
+
/** 其他按钮:正在调用接口. */
|
32
|
+
isOtherRequesting: ComputedRef<ReturnType<IKgVarStore['isOtherRequesting']>>;
|
33
|
+
/** 所有的 VarButton 列表. */
|
34
|
+
varButtons: ComputedRef<ReturnType<IKgVarStore['getVarButtons']>>;
|
35
|
+
varButtonSearch: ComputedRef<ReturnType<IKgVarStore['getVarButtonSearch']>>;
|
36
|
+
varButtonCreate: ComputedRef<ReturnType<IKgVarStore['getVarButtonCreate']>>;
|
37
|
+
varButtonUpdate: ComputedRef<ReturnType<IKgVarStore['getVarButtonUpdate']>>;
|
38
|
+
varButtonCopy: ComputedRef<ReturnType<IKgVarStore['getVarButtonCopy']>>;
|
39
|
+
varButtonDelete: ComputedRef<ReturnType<IKgVarStore['getVarButtonDelete']>>;
|
40
|
+
/** 所有的 VarProfileMaster 列表. */
|
41
|
+
varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
|
42
|
+
/** 当前的 VarProfileMaster ID. */
|
43
|
+
currentVarProfileMasterID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMasterID']>>;
|
44
|
+
/** 当前的 VarProfileMaster. */
|
45
|
+
currentVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMaster']>>;
|
46
|
+
/** 当前的 VarProfileDetail 列表. */
|
47
|
+
currentVarProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
|
48
|
+
varGridConfig: ComputedRef<ReturnType<IKgVarStore['getVarGridConfig']>>;
|
49
|
+
/** 所有的 VarGridMaster 列表. */
|
50
|
+
varGridMasters: ComputedRef<ReturnType<IKgVarStore['getVarGridMasters']>>;
|
51
|
+
/** 当前的 VarGridMaster ID. */
|
52
|
+
currentVarGridMasteID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMasterID']>>;
|
53
|
+
/** 当前的 VarGridMaster. */
|
54
|
+
currentVarGridMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMaster']>>;
|
55
|
+
/** 系统的 VarGridDetail 列表. */
|
56
|
+
systemVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getSystemVarGridDetails']>>;
|
57
|
+
/** 当前的 VarGridDetail 列表. */
|
58
|
+
currentVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridDetails']>>;
|
59
|
+
};
|
60
|
+
/**
|
61
|
+
* <p>使用变量配置.</p>
|
62
|
+
* <ol>
|
63
|
+
* <li>在下级组件中调用时, 可以不传该参数, 此时会通过依赖注入获取.</li>
|
64
|
+
* <li>在任意页面中, 想要访问其他界面标识对应的页面的数据, 需要传入该'界面标识'.</li>
|
65
|
+
* <li>在组件外(setup 外面)调用时, 必须传入'界面标识'.</li>
|
66
|
+
* </ol>
|
67
|
+
* @param formID 界面标识.
|
68
|
+
* @param init 是否要初始化界面. 在'宿主页面'第一次调用时, 需要传 true, 对该页面做初始化. 默认为 undefined.
|
69
|
+
* @param level 层级. 默认为 0.
|
70
|
+
*/
|
71
|
+
export declare function useKgVar(formID?: string | null, init?: boolean, level?: number): {
|
72
|
+
/**
|
73
|
+
* 界面标识.
|
74
|
+
*/
|
75
|
+
formID: string;
|
76
|
+
store: import("pinia").Store<"KgVar", import("./index.store").IKgVarState, {
|
77
|
+
getTopFormIDs(): string[];
|
78
|
+
getFormLevel(): (frm_id: string | null | undefined) => number;
|
79
|
+
t(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => string;
|
80
|
+
isRetrieving(): (frm_id: string | null | undefined) => boolean | null;
|
81
|
+
isRetrievingVarProfileMaster(): (frm_id: string | null | undefined) => boolean | null;
|
82
|
+
isRetrievingVarGridMaster(): (frm_id: string | null | undefined) => boolean | null;
|
83
|
+
isSearched(): (frm_id: string | null | undefined) => boolean;
|
84
|
+
isCreating(): (frm_id: string | null | undefined) => boolean | null;
|
85
|
+
isUpdating(): (frm_id: string | null | undefined) => boolean | null;
|
86
|
+
isCopying(): (frm_id: string | null | undefined) => boolean | null;
|
87
|
+
isDeleting(): (frm_id: string | null | undefined) => boolean | null;
|
88
|
+
isCreatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
89
|
+
isUpdatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
90
|
+
isCopyingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
91
|
+
isDeletingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
92
|
+
isOtherRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
93
|
+
getVarCatalogs(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog[] | null;
|
94
|
+
getVarCatalog(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableCatalog | null;
|
95
|
+
getVarLookup(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableLookup | null;
|
96
|
+
getVarPossibility(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariablePossibility | null;
|
97
|
+
getVarVariableConfig(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableConfig | null;
|
98
|
+
getVarVariableInput(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarVariableInput | null;
|
99
|
+
getVarButtons(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton[] | null;
|
100
|
+
getVarSubmitConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarSubmitConfig | null;
|
101
|
+
getVarSubmitConfigProps(): (frm_id: string | null | undefined) => import("../../consts").IKgSubmitConfigProps;
|
102
|
+
getVarSubmitFields(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
103
|
+
getVarSubmitFieldsForCreate(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
104
|
+
getVarSubmitFieldsForCreateKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
105
|
+
getVarSubmitFieldsForCreateNotKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
106
|
+
getVarSubmitFieldsForCreateKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
107
|
+
getVarSubmitFieldsForCreateNotKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
108
|
+
getVarSubmitFieldsForUpdate(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
109
|
+
getVarSubmitFieldsForUpdateKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
110
|
+
getVarSubmitFieldsForUpdateNotKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
111
|
+
getVarSubmitFieldsForUpdateKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
112
|
+
getVarSubmitFieldsForUpdateNotKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
113
|
+
getVarSubmitFieldsForCopy(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
114
|
+
getVarSubmitFieldsForCopyKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
115
|
+
getVarSubmitFieldsForCopyNotKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
116
|
+
getVarSubmitFieldsForCopyKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
117
|
+
getVarSubmitFieldsForCopyNotKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
118
|
+
getVarSubmitFieldsForDelete(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
119
|
+
getVarSubmitFieldsForDeleteKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
120
|
+
getVarSubmitFieldsForDeleteNotKey(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
121
|
+
getVarSubmitFieldsForDeleteKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
122
|
+
getVarSubmitFieldsForDeleteNotKeyVisible(): (frm_id: string | null | undefined) => VarSubmitField[] | null;
|
123
|
+
getVarSubmitField(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarSubmitField | null;
|
124
|
+
getVarButton(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
125
|
+
getVarButtonConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButtonConfig | null;
|
126
|
+
getVarButtonSearch(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
127
|
+
getVarButtonCreate(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
128
|
+
getVarButtonUpdate(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
129
|
+
getVarButtonCopy(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
130
|
+
getVarButtonDelete(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarButton | null;
|
131
|
+
getVarProfileConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileConfig | null;
|
132
|
+
getVarProfileMasters(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO[] | null;
|
133
|
+
getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarProfileDetail | null;
|
134
|
+
getVarProfileDetails(): (frm_id: string | null | undefined) => VarProfileDetail[] | null;
|
135
|
+
getSystemVarProfileDetails(): (frm_id: string | null | undefined) => VarProfileDetail[] | null;
|
136
|
+
getCurrentVarProfileMasterID(): (frm_id: string | null | undefined) => string | null;
|
137
|
+
getCurrentVarProfileMaster(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarProfileMasterDTO | null;
|
138
|
+
getVarGridConfigMap(): Map<string, import("../../apis/WMS/models").VarGridConfig | null>;
|
139
|
+
getVarGridConfig(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarGridConfig | null;
|
140
|
+
getVarGridMasters(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarGridMasterDTO[] | null;
|
141
|
+
getVarGridDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => import("../../apis/WMS/models").VarGridDetail | null;
|
142
|
+
getCurrentVarGridMasterID(): (frm_id: string | null | undefined) => string | null;
|
143
|
+
getCurrentVarGridMaster(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarGridMasterDTO | null;
|
144
|
+
getCurrentVarGridDetails(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarGridDetail[] | null;
|
145
|
+
getSystemVarGridDetails(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarGridDetail[] | null;
|
146
|
+
getCurrentVisibleVarGridDetails(): (frm_id: string | null | undefined) => import("../../apis/WMS/models").VarGridDetail[] | null;
|
147
|
+
getCurrentVisibleVarGridDetailsTotalWidth(): (frm_id: string | null | undefined) => number | null;
|
148
|
+
}, {
|
149
|
+
dispose(frm_id: string): void;
|
150
|
+
addEventListener(frm_id: string, event: "retrieve", cb: IKgVarRetrieveCb): void;
|
151
|
+
removeEventListener(frm_id: string, event: "retrieve", cb?: IKgVarRetrieveCb | undefined): void;
|
152
|
+
emit(frm_id: string, event: "retrieve", args?: any): void;
|
153
|
+
enter(frm_id: import("./index.store").IFormID): Promise<void>;
|
154
|
+
retrieve(frm_id: string | null | undefined): Promise<void>;
|
155
|
+
setIsCreating(frm_id: string, value: boolean): void;
|
156
|
+
setIsUpdating(frm_id: string, value: boolean): void;
|
157
|
+
setIsCopying(frm_id: string, value: boolean): void;
|
158
|
+
setIsDeleting(frm_id: string, deleting: boolean): void;
|
159
|
+
setIsCreatingRequesting(frm_id: string, value: boolean): void;
|
160
|
+
setIsUpdatingRequesting(frm_id: string, value: boolean): void;
|
161
|
+
setIsCopyingRequesting(frm_id: string, value: boolean): void;
|
162
|
+
setIsDeletingRequesting(frm_id: string, deleting: boolean): void;
|
163
|
+
setIsOtherRequesting(frm_id: string, value: boolean): void;
|
164
|
+
setCurrentVarProfileMasterID(frm_id: string, currentVarProfileMasterID: string): Promise<void>;
|
165
|
+
setVarProfileDetailEnable(frm_id: string, var_nam: string | null | undefined, enable: number): void;
|
166
|
+
setCurrentVarGridMasterID(frm_id: string, currentVarGridMasterID: string): Promise<void>;
|
167
|
+
setVarGridDetailWidth(frm_id: string, var_nam: string | null | undefined, width: number): void;
|
168
|
+
patchVarGridDetail(frm_id: string, var_nam: string | null | undefined, properties: import("../../apis/WMS/models").VarGridDetail): Promise<void>;
|
169
|
+
patchVarProfileDetail(frm_id: string, var_nam: string | null | undefined, properties: VarProfileDetail): Promise<void>;
|
170
|
+
setVarPossibility(frm_id: string | null | undefined, var_nam: string | null | undefined, varPossibility: import("../../apis/WMS/models").VarVariablePossibility): void;
|
171
|
+
patchVarSubmitField(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: VarSubmitField, isTriggerEvent?: boolean | undefined): void;
|
172
|
+
patchVarPossibilityCommandParameter(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
|
173
|
+
dragSortCurrentVarGridDetails(frm_id: string | null | undefined, from_var_nam: string | null | undefined, to_var_nam: string | null | undefined): void;
|
174
|
+
}>;
|
175
|
+
isRetrieving: ComputedRef<boolean | null>;
|
176
|
+
isRetrievingVarProfileMaster: ComputedRef<boolean | null>;
|
177
|
+
isRetrievingVarGridMaster: ComputedRef<boolean | null>;
|
178
|
+
isSearched: ComputedRef<boolean>;
|
179
|
+
isCreating: ComputedRef<boolean | null>;
|
180
|
+
isCreatingRequesting: ComputedRef<boolean | null>;
|
181
|
+
isUpdating: ComputedRef<boolean | null>;
|
182
|
+
isUpdatingRequesting: ComputedRef<boolean | null>;
|
183
|
+
isCopying: ComputedRef<boolean | null>;
|
184
|
+
isCopyingRequesting: ComputedRef<boolean | null>;
|
185
|
+
isDeleting: ComputedRef<boolean | null>;
|
186
|
+
isDeletingRequesting: ComputedRef<boolean | null>;
|
187
|
+
isOtherRequesting: ComputedRef<boolean | null>;
|
188
|
+
varButtons: ComputedRef<import("../../apis/WMS/models").VarButton[] | null>;
|
189
|
+
varButtonSearch: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
190
|
+
varButtonCreate: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
191
|
+
varButtonUpdate: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
192
|
+
varButtonCopy: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
193
|
+
varButtonDelete: ComputedRef<import("../../apis/WMS/models").VarButton | null>;
|
194
|
+
varProfileMasters: ComputedRef<import("../../apis/WMS/models").VarProfileMasterDTO[] | null>;
|
195
|
+
currentVarProfileMasterID: ComputedRef<string | null>;
|
196
|
+
currentVarProfileMaster: ComputedRef<import("../../apis/WMS/models").VarProfileMasterDTO | null>;
|
197
|
+
currentVarProfileDetails: ComputedRef<VarProfileDetail[] | null>;
|
198
|
+
varGridConfig: ComputedRef<import("../../apis/WMS/models").VarGridConfig | null>;
|
199
|
+
varGridMasters: ComputedRef<import("../../apis/WMS/models").VarGridMasterDTO[] | null>;
|
200
|
+
currentVarGridMasteID: ComputedRef<string | null>;
|
201
|
+
currentVarGridMaster: ComputedRef<import("../../apis/WMS/models").VarGridMasterDTO | null>;
|
202
|
+
systemVarGridDetails: ComputedRef<import("../../apis/WMS/models").VarGridDetail[] | null>;
|
203
|
+
currentVarGridDetails: ComputedRef<import("../../apis/WMS/models").VarGridDetail[] | null>;
|
204
|
+
/**
|
205
|
+
* 设置'是否正在创建'.
|
206
|
+
* @param value 是否正在创建.
|
207
|
+
*/
|
208
|
+
setIsCreating(value: boolean): void;
|
209
|
+
/**
|
210
|
+
* 设置'是否正在更新'.
|
211
|
+
* @param value 是否正在更新.
|
212
|
+
*/
|
213
|
+
setIsUpdating(value: boolean): void;
|
214
|
+
/**
|
215
|
+
* 设置'是否正在复制'.
|
216
|
+
* @param value 是否正在复制.
|
217
|
+
*/
|
218
|
+
setIsCopying(value: boolean): void;
|
219
|
+
/**
|
220
|
+
* 设置'是否正在删除'.
|
221
|
+
* @param value 是否正在删除.
|
222
|
+
*/
|
223
|
+
setIsDeleting(value: boolean): void;
|
224
|
+
/**
|
225
|
+
* 修改 VarSubmitField 的部分属性.
|
226
|
+
* @param variableName 变量名称
|
227
|
+
* @param properties 要修改的部分属性.
|
228
|
+
* @param isTriggerEvent 是否触发变更事件.
|
229
|
+
*/
|
230
|
+
patchVarSubmitField(variableName: string | null | undefined, properties: VarSubmitField, isTriggerEvent?: boolean): void;
|
231
|
+
/**
|
232
|
+
* 事件: 变量配置查询完成.
|
233
|
+
* @param cb 回调函数.
|
234
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
235
|
+
*/
|
236
|
+
onRetrieve: (cb: IKgVarRetrieveCb) => import("../../consts").IRemoveEventListenerHandler;
|
237
|
+
/**
|
238
|
+
* 翻译变量. 响应式的.
|
239
|
+
* @param variableName 变量名称.
|
240
|
+
*/
|
241
|
+
t(variableName: string | null | undefined): ComputedRef<string>;
|
242
|
+
};
|
@@ -0,0 +1,315 @@
|
|
1
|
+
import { type StoreDefinition } from 'pinia';
|
2
|
+
import { VarButton, VarButtonConfig, VarVariableCatalog, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarVariableLookup, VarVariablePossibility, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField, VarVariableConfig, VarVariableInput } from '../../apis/WMS/models';
|
3
|
+
import { IKgEventCb, IKgSubmitConfigProps } from '../../consts';
|
4
|
+
/**
|
5
|
+
* 事件类型.
|
6
|
+
* 'retrieve': 变量配置查询完成
|
7
|
+
*/
|
8
|
+
export declare type IKgVarEvent = 'retrieve';
|
9
|
+
/** 事件监听函数: 'retrieve'. */
|
10
|
+
export declare type IKgVarRetrieveCb = (() => void) & IKgEventCb;
|
11
|
+
export declare type IKgVarCb = IKgVarRetrieveCb;
|
12
|
+
export declare type IFormID = {
|
13
|
+
formID: string;
|
14
|
+
/**
|
15
|
+
* 页面所处的模态框(弹出框)的层级.
|
16
|
+
*
|
17
|
+
* - 普通页面中该属性值为 0
|
18
|
+
* - 第一级弹出框中该属性值为 1
|
19
|
+
* - 第二级弹出框中该属性值为 2
|
20
|
+
* - 依次类推...
|
21
|
+
*/
|
22
|
+
level: number;
|
23
|
+
};
|
24
|
+
export interface IKgVarState {
|
25
|
+
/**
|
26
|
+
* 当前打开的所有界面.
|
27
|
+
* 当前可能打开了多个界面, 需要把它们的界面标识和层级都记录下来.
|
28
|
+
*/
|
29
|
+
formIDs: Array<IFormID>;
|
30
|
+
/** 正在查询变量配置. */
|
31
|
+
isRetrievingMap: Map<string, boolean>;
|
32
|
+
/** 变量配置是否查询完成. */
|
33
|
+
isSearchedMap: Map<string, boolean>;
|
34
|
+
/** 正在查询 VarProfileMaster. */
|
35
|
+
isRetrievingVarProfileMasterMap: Map<string, boolean>;
|
36
|
+
/** 正在查询 VarGridMaster. */
|
37
|
+
isRetrievingVarGridMasterMap: Map<string, boolean>;
|
38
|
+
/** 正在创建. */
|
39
|
+
isCreatingMap: Map<string, boolean>;
|
40
|
+
/** 正在创建: 正在调用接口. */
|
41
|
+
isCreatingRequestingMap: Map<string, boolean>;
|
42
|
+
/** 正在更新. */
|
43
|
+
isUpdatingMap: Map<string, boolean>;
|
44
|
+
/** 正在更新: 正在调用接口. */
|
45
|
+
isUpdatingRequestingMap: Map<string, boolean>;
|
46
|
+
/** 正在复制. */
|
47
|
+
isCopyingMap: Map<string, boolean>;
|
48
|
+
/** 正在复制: 正在调用接口. */
|
49
|
+
isCopyingRequestingMap: Map<string, boolean>;
|
50
|
+
/** 正在删除. */
|
51
|
+
isDeletingMap: Map<string, boolean>;
|
52
|
+
/** 正在删除: 正在调用接口. */
|
53
|
+
isDeletingRequestingMap: Map<string, boolean>;
|
54
|
+
/** 其他按钮: 正在调用接口. */
|
55
|
+
isOtherRequestingMap: Map<string, boolean>;
|
56
|
+
varCatalogMap: Map<string, Array<VarVariableCatalog>>;
|
57
|
+
varLookupMap: Map<string, Array<VarVariableLookup>>;
|
58
|
+
varPossibilityMap: Map<string, Array<VarVariablePossibility>>;
|
59
|
+
varVariableConfigMap: Map<string, Array<VarVariableConfig>>;
|
60
|
+
varVariableInputMap: Map<string, Array<VarVariableInput>>;
|
61
|
+
varButtonMap: Map<string, Array<VarButton>>;
|
62
|
+
varButtonConfigMap: Map<string, VarButtonConfig | null>;
|
63
|
+
varSubmitConfigMap: Map<string, VarSubmitConfig | null>;
|
64
|
+
varSubmitFieldMap: Map<string, Array<VarSubmitField>>;
|
65
|
+
varProfileConfigMap: Map<string, VarProfileConfig | null>;
|
66
|
+
varProfileMasterMap: Map<string, {
|
67
|
+
varProfileMasters: Array<VarProfileMasterDTO> | null;
|
68
|
+
/** 当前选中的 VarProfileMaster ID. */
|
69
|
+
currentVarProfileMasterID: string | null;
|
70
|
+
}>;
|
71
|
+
varGridConfigMap: Map<string, VarGridConfig | null>;
|
72
|
+
varGridMasterMap: Map<string, {
|
73
|
+
varGridMasters: Array<VarGridMasterDTO> | null;
|
74
|
+
/** 当前表格视图. */
|
75
|
+
currentVarGridMasterID: string | null;
|
76
|
+
}>;
|
77
|
+
/** 事件监听函数列表: retrieve. */
|
78
|
+
onRetrieveListenersMap: Map<string, Array<IKgVarRetrieveCb>>;
|
79
|
+
}
|
80
|
+
export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState, {
|
81
|
+
/** 获取最顶层的界面标识, 即 level 最大的界面, 可能包含多个. */
|
82
|
+
getTopFormIDs(): Array<string>;
|
83
|
+
/** 获取界面层级. */
|
84
|
+
getFormLevel(): (frm_id: string | null | undefined) => number;
|
85
|
+
/**
|
86
|
+
* 翻译变量.
|
87
|
+
*/
|
88
|
+
t(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => string;
|
89
|
+
isRetrieving(): (frm_id: string | null | undefined) => boolean | null;
|
90
|
+
isRetrievingVarProfileMaster(): (frm_id: string | null | undefined) => boolean | null;
|
91
|
+
isRetrievingVarGridMaster(): (frm_id: string | null | undefined) => boolean | null;
|
92
|
+
/** 变量配置是否查询完成. */
|
93
|
+
isSearched(): (frm_id: string | null | undefined) => boolean;
|
94
|
+
isCreating(): (frm_id: string | null | undefined) => boolean | null;
|
95
|
+
isUpdating(): (frm_id: string | null | undefined) => boolean | null;
|
96
|
+
isCopying(): (frm_id: string | null | undefined) => boolean | null;
|
97
|
+
isDeleting(): (frm_id: string | null | undefined) => boolean | null;
|
98
|
+
isCreatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
99
|
+
isUpdatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
100
|
+
isCopyingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
101
|
+
isDeletingRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
102
|
+
isOtherRequesting(): (frm_id: string | null | undefined) => boolean | null;
|
103
|
+
getVarCatalogs(): (frm_id: string | null | undefined) => Array<VarVariableCatalog> | null;
|
104
|
+
/**
|
105
|
+
* 根据 frm_id 和 var_nam 获取 VarVariableCatalog.
|
106
|
+
*/
|
107
|
+
getVarCatalog(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariableCatalog | null;
|
108
|
+
getVarLookup(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariableLookup | null;
|
109
|
+
getVarPossibility(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariablePossibility | null;
|
110
|
+
getVarVariableConfig(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariableConfig | null;
|
111
|
+
getVarVariableInput(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariableInput | null;
|
112
|
+
getVarButtons(): (frm_id: string | null | undefined) => Array<VarButton> | null;
|
113
|
+
getVarSubmitConfig(): (frm_id: string | null | undefined) => VarSubmitConfig | null;
|
114
|
+
getVarSubmitConfigProps(): (frm_id: string | null | undefined) => IKgSubmitConfigProps;
|
115
|
+
/** 获取所有提交字段. */
|
116
|
+
getVarSubmitFields(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
117
|
+
/** 获取创建时的提交字段. */
|
118
|
+
getVarSubmitFieldsForCreate(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
119
|
+
/** 获取创建时的提交字段: 关键字段. */
|
120
|
+
getVarSubmitFieldsForCreateKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
121
|
+
/** 获取创建时的提交字段: 普通字段. */
|
122
|
+
getVarSubmitFieldsForCreateNotKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
123
|
+
/** 获取创建时的提交字段: 关键字段, 并且可见. */
|
124
|
+
getVarSubmitFieldsForCreateKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
125
|
+
/** 获取创建时的提交字段: 普通字段, 并且可见. */
|
126
|
+
getVarSubmitFieldsForCreateNotKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
127
|
+
/** 获取更新时的提交字段. */
|
128
|
+
getVarSubmitFieldsForUpdate(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
129
|
+
/** 获取更新时的提交字段: 关键字段. */
|
130
|
+
getVarSubmitFieldsForUpdateKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
131
|
+
/** 获取更新时的提交字段: 普通字段. */
|
132
|
+
getVarSubmitFieldsForUpdateNotKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
133
|
+
/** 获取更新时的提交字段: 关键字段, 并且可见. */
|
134
|
+
getVarSubmitFieldsForUpdateKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
135
|
+
/** 获取更新时的提交字段: 普通字段, 并且可见. */
|
136
|
+
getVarSubmitFieldsForUpdateNotKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
137
|
+
/** 获取复制时的提交字段. */
|
138
|
+
getVarSubmitFieldsForCopy(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
139
|
+
/** 获取复制时的提交字段: 关键字段. */
|
140
|
+
getVarSubmitFieldsForCopyKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
141
|
+
/** 获取复制时的提交字段: 普通字段. */
|
142
|
+
getVarSubmitFieldsForCopyNotKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
143
|
+
/** 获取复制时的提交字段: 关键字段, 并且可见. */
|
144
|
+
getVarSubmitFieldsForCopyKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
145
|
+
/** 获取复制时的提交字段: 普通字段, 并且可见. */
|
146
|
+
getVarSubmitFieldsForCopyNotKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
147
|
+
/** 获取删除时的提交字段. */
|
148
|
+
getVarSubmitFieldsForDelete(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
149
|
+
/** 获取删除时的提交字段: 关键字段. */
|
150
|
+
getVarSubmitFieldsForDeleteKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
151
|
+
/** 获取删除时的提交字段: 普通字段. */
|
152
|
+
getVarSubmitFieldsForDeleteNotKey(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
153
|
+
/** 获取删除时的提交字段: 关键字段, 并且可见. */
|
154
|
+
getVarSubmitFieldsForDeleteKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
155
|
+
/** 获取删除时的提交字段: 普通字段, 并且可见. */
|
156
|
+
getVarSubmitFieldsForDeleteNotKeyVisible(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
157
|
+
getVarSubmitField(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarSubmitField | null;
|
158
|
+
getVarButton(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarButton | null;
|
159
|
+
getVarButtonConfig(): (frm_id: string | null | undefined) => VarButtonConfig | null;
|
160
|
+
getVarButtonSearch(): (frm_id: string | null | undefined) => VarButton | null;
|
161
|
+
getVarButtonCreate(): (frm_id: string | null | undefined) => VarButton | null;
|
162
|
+
getVarButtonUpdate(): (frm_id: string | null | undefined) => VarButton | null;
|
163
|
+
getVarButtonCopy(): (frm_id: string | null | undefined) => VarButton | null;
|
164
|
+
getVarButtonDelete(): (frm_id: string | null | undefined) => VarButton | null;
|
165
|
+
getVarProfileConfig(): (frm_id: string | null | undefined) => VarProfileConfig | null;
|
166
|
+
getVarProfileMasters(): (frm_id: string | null | undefined) => Array<VarProfileMasterDTO> | null;
|
167
|
+
/**
|
168
|
+
* 根据 frm_id 和 var_nam 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
|
169
|
+
*/
|
170
|
+
getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarProfileDetail | null;
|
171
|
+
/**
|
172
|
+
* 根据 frm_id 获取 VarProfileDetail 列表.
|
173
|
+
*/
|
174
|
+
getVarProfileDetails(): (frm_id: string | null | undefined) => Array<VarProfileDetail> | null;
|
175
|
+
/**
|
176
|
+
* 根据 frm_id 获取系统的 VarProfileDetail 列表, 即 customLevel 为 0 的 VarProfileMaster 下面的所有 VarProfileDetail.
|
177
|
+
*/
|
178
|
+
getSystemVarProfileDetails(): (frm_id: string | null | undefined) => Array<VarProfileDetail> | null;
|
179
|
+
/** 获取当前 VarProfileMaster 的 ID. */
|
180
|
+
getCurrentVarProfileMasterID(): (frm_id: string | null | undefined) => string | null;
|
181
|
+
getCurrentVarProfileMaster(): (frm_id: string | null | undefined) => VarProfileMasterDTO | null;
|
182
|
+
/** 获取所有的 VarGridConfig. */
|
183
|
+
getVarGridConfigMap(): Map<string, VarGridConfig | null>;
|
184
|
+
getVarGridConfig(): (frm_id: string | null | undefined) => VarGridConfig | null;
|
185
|
+
getVarGridMasters(): (frm_id: string | null | undefined) => Array<VarGridMasterDTO> | null;
|
186
|
+
getVarGridDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarGridDetail | null;
|
187
|
+
/** 获取当前'表格视图'的 ID. */
|
188
|
+
getCurrentVarGridMasterID(): (frm_id: string | null | undefined) => string | null;
|
189
|
+
getCurrentVarGridMaster(): (frm_id: string | null | undefined) => VarGridMasterDTO | null;
|
190
|
+
getCurrentVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
|
191
|
+
/**
|
192
|
+
* 根据 frm_id 获取系统的 VarGridDetail 列表, 即 customLevel 为 0 的 VarGridMaster 下面的所有 VarGridDetail.
|
193
|
+
*/
|
194
|
+
getSystemVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
|
195
|
+
getCurrentVisibleVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
|
196
|
+
getCurrentVisibleVarGridDetailsTotalWidth(): (frm_id: string | null | undefined) => number | null;
|
197
|
+
}, {
|
198
|
+
/**
|
199
|
+
* 清理数据.
|
200
|
+
* @param frm_id 页面标识.
|
201
|
+
*/
|
202
|
+
dispose(frm_id: string): void;
|
203
|
+
/**
|
204
|
+
* 注册事件监听.
|
205
|
+
* @param frm_id 界面标识.
|
206
|
+
* @param event 事件名称.
|
207
|
+
* @param cb 回调函数.
|
208
|
+
*/
|
209
|
+
addEventListener(frm_id: string, event: IKgVarEvent, cb: IKgVarCb): void;
|
210
|
+
/**
|
211
|
+
* 退订事件监听.
|
212
|
+
* @param frm_id 界面标识.
|
213
|
+
* @param event 事件名称.
|
214
|
+
* @param cb 回调函数.
|
215
|
+
*/
|
216
|
+
removeEventListener(frm_id: string, event: IKgVarEvent, cb?: IKgVarCb): void;
|
217
|
+
/**
|
218
|
+
* 触发事件.
|
219
|
+
* @param frm_id 界面标识.
|
220
|
+
* @param event 事件名称.
|
221
|
+
* @param args 事件参数.
|
222
|
+
*/
|
223
|
+
emit(frm_id: string, event: IKgVarEvent, args?: any): void;
|
224
|
+
enter(frm_id: IFormID): Promise<void>;
|
225
|
+
/**
|
226
|
+
* 查询所有变量配置.
|
227
|
+
* @param frm_id 界面标识.
|
228
|
+
*/
|
229
|
+
retrieve(frm_id: string | null | undefined): Promise<void>;
|
230
|
+
setIsCreating(frm_id: string, value: boolean): void;
|
231
|
+
/**
|
232
|
+
*
|
233
|
+
* @param frm_id
|
234
|
+
* @param value
|
235
|
+
*/
|
236
|
+
setIsUpdating(frm_id: string, value: boolean): void;
|
237
|
+
setIsCopying(frm_id: string, value: boolean): void;
|
238
|
+
setIsDeleting(frm_id: string, deleting: boolean): void;
|
239
|
+
setIsCreatingRequesting(frm_id: string, value: boolean): void;
|
240
|
+
setIsUpdatingRequesting(frm_id: string, value: boolean): void;
|
241
|
+
setIsCopyingRequesting(frm_id: string, value: boolean): void;
|
242
|
+
setIsDeletingRequesting(frm_id: string, deleting: boolean): void;
|
243
|
+
setIsOtherRequesting(frm_id: string, value: boolean): void;
|
244
|
+
/**
|
245
|
+
* 设置当前选择的查询条件的 ID.
|
246
|
+
* @param frm_id 界面标识.
|
247
|
+
* @param currentVarProfileMasterID 当前选择的查询条件的 ID.
|
248
|
+
*/
|
249
|
+
setCurrentVarProfileMasterID(frm_id: string, currentVarProfileMasterID: string): Promise<void>;
|
250
|
+
/**
|
251
|
+
* 设置查询字段是否启用.
|
252
|
+
* @param frm_id 界面标识.
|
253
|
+
* @param var_nam 变量名称.
|
254
|
+
* @param enable 是否启用.
|
255
|
+
*/
|
256
|
+
setVarProfileDetailEnable(frm_id: string, var_nam: string | null | undefined, enable: number): void;
|
257
|
+
/**
|
258
|
+
* 设置当前选择的表格视图的 ID.
|
259
|
+
* @param frm_id 界面标识.
|
260
|
+
* @param currentVarGridMasterID 当前选择的表格视图的 ID.
|
261
|
+
*/
|
262
|
+
setCurrentVarGridMasterID(frm_id: string, currentVarGridMasterID: string): Promise<void>;
|
263
|
+
/**
|
264
|
+
* 设置列的宽度.
|
265
|
+
* @param frm_id 界面标识.
|
266
|
+
* @param var_nam 变量名称.
|
267
|
+
* @param width 新的宽度.
|
268
|
+
*/
|
269
|
+
setVarGridDetailWidth(frm_id: string, var_nam: string | null | undefined, width: number): void;
|
270
|
+
/**
|
271
|
+
* 修改 VarGridDetail 的部分属性.
|
272
|
+
* @param frm_id 界面标识.
|
273
|
+
* @param var_nam 变量名称.
|
274
|
+
* @param properties 要修改的部分属性.
|
275
|
+
*/
|
276
|
+
patchVarGridDetail(frm_id: string, var_nam: string | null | undefined, properties: VarGridDetail): Promise<void>;
|
277
|
+
/**
|
278
|
+
* 修改 VarProfileDetail 的部分属性.
|
279
|
+
* @param frm_id 界面标识.
|
280
|
+
* @param var_nam 变量名称.
|
281
|
+
* @param properties 要修改的部分属性.
|
282
|
+
*/
|
283
|
+
patchVarProfileDetail(frm_id: string, var_nam: string | null | undefined, properties: VarProfileDetail): Promise<void>;
|
284
|
+
/**
|
285
|
+
* 设置某个 VarVariablePossibility 配置.
|
286
|
+
* @param frm_id 界面标识.
|
287
|
+
* @param var_nam 变量名称
|
288
|
+
* @param varPossibility 配置.
|
289
|
+
*/
|
290
|
+
setVarPossibility(frm_id: string | null | undefined, var_nam: string | null | undefined, varPossibility: VarVariablePossibility): void;
|
291
|
+
/**
|
292
|
+
* 修改 VarSubmitField 的部分属性.
|
293
|
+
* @param frm_id 界面标识.
|
294
|
+
* @param var_nam 变量名称
|
295
|
+
* @param properties 要修改的部分属性.
|
296
|
+
* @param isTriggerEvent 是否触发变更事件.
|
297
|
+
*/
|
298
|
+
patchVarSubmitField(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: VarSubmitField, isTriggerEvent?: boolean): void;
|
299
|
+
/**
|
300
|
+
* 修改 VarVariablePossibility 的接口参数 cmd_prm 的部分属性.
|
301
|
+
* @param frm_id 界面标识.
|
302
|
+
* @param var_nam 变量名称
|
303
|
+
* @param properties 要修改的部分属性.
|
304
|
+
*/
|
305
|
+
patchVarPossibilityCommandParameter(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
|
306
|
+
/**
|
307
|
+
* 拖拽排序 VarGridDetail 列表.
|
308
|
+
* @param frm_id 界面标识.
|
309
|
+
* @param from_var_nam 被拽起的变量名称
|
310
|
+
* @param to_var_nam 被放下的变量名称.
|
311
|
+
*/
|
312
|
+
dragSortCurrentVarGridDetails(frm_id: string | null | undefined, from_var_nam: string | null | undefined, to_var_nam: string | null | undefined): void;
|
313
|
+
}>;
|
314
|
+
export declare type IKgVarStore = ReturnType<IKgVarStoreDefinition>;
|
315
|
+
export declare const useKgVarStore: () => IKgVarStoreDefinition;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField } from '../../apis/WMS/models';
|
2
|
+
export declare function transformVarProfileConfig(varProfileConfig?: VarProfileConfig | null): VarProfileConfig | null;
|
3
|
+
export declare function transformVarGridConfig(varGridConfig?: VarGridConfig | null): VarGridConfig | null;
|
4
|
+
export declare function transformVarGridMasterDTOs(varGridMasterDTOs?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
|
5
|
+
export declare function transformVarProfileMasterDTOs(varProfileMasterDTOs?: Array<VarProfileMasterDTO> | null): Array<VarProfileMasterDTO>;
|
6
|
+
export declare function transformVarSubmitConfig(varSubmitConfig?: VarSubmitConfig | null): VarSubmitConfig | null;
|
7
|
+
export declare function transformVarSubmitFields(varSubmitFields?: Array<VarSubmitField> | null): Array<VarSubmitField>;
|
8
|
+
export declare function transformVarButtons(varButtons?: Array<VarButton> | null): Array<VarButton>;
|
9
|
+
export declare function transformVarButtonConfig(varButtonConfig?: VarButtonConfig | null): VarButtonConfig | null;
|
10
|
+
/**
|
11
|
+
* 处理 VarGridDetail 数据.
|
12
|
+
*
|
13
|
+
* @param varGridDetails 原始数据.
|
14
|
+
*/
|
15
|
+
export declare function transformVarGridDetails(varGridDetails?: Array<VarGridDetail> | null): Array<VarGridDetail>;
|
16
|
+
/**
|
17
|
+
* 处理 VarProfileDetail 数据.
|
18
|
+
*
|
19
|
+
* @param varProfileDetails 原始数据.
|
20
|
+
*/
|
21
|
+
export declare function transformVarProfileDetails(varProfileDetails?: Array<VarProfileDetail> | null): Array<VarProfileDetail>;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
2
|
+
import { IKgButtonProps } from '../KgButton';
|
3
|
+
import { IKgFormItemSlotControlParam, IKgFormItemSlotControlRightParam } from '../KgForm.Item/index.vm';
|
4
|
+
import { IKgSearchProps } from '../KgSearch';
|
5
|
+
import { IKgSubmitProps } from '../KgSubmit';
|
6
|
+
import { IKgTableSlotParams } from '../KgTable';
|
7
|
+
import { IKgTableProps } from '../KgTable/KgTable';
|
8
|
+
export declare type IKgSlots = {
|
9
|
+
/** KgTable 下面. */
|
10
|
+
afterKgTable?: () => any;
|
11
|
+
KgSearch?: {
|
12
|
+
/** 左侧. */
|
13
|
+
left?: () => any;
|
14
|
+
};
|
15
|
+
KgButton?: {
|
16
|
+
/** 右侧. */
|
17
|
+
right?: () => any;
|
18
|
+
};
|
19
|
+
KgSubmit?: {
|
20
|
+
/** 某个表单控件. */
|
21
|
+
'KgForm.Item.control'?: {
|
22
|
+
[variable: string]: (param: IKgFormItemSlotControlParam) => any;
|
23
|
+
};
|
24
|
+
/** 某个表单控件右侧. */
|
25
|
+
'KgForm.Item.controlRight'?: {
|
26
|
+
[variable: string]: (param: IKgFormItemSlotControlRightParam) => any;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
KgTable?: {
|
30
|
+
/** 单元格. */
|
31
|
+
bodyCell?: (param: IKgTableSlotParams['bodyCell']) => any;
|
32
|
+
/** 展开行. */
|
33
|
+
expandedRowRender?: (param: IKgTableSlotParams['expandedRowRender']) => any;
|
34
|
+
/** 表格底部的汇总行.单元格. */
|
35
|
+
'summary.bodyCell'?: (param: IKgTableSlotParams['summary.bodyCell']) => any;
|
36
|
+
};
|
37
|
+
};
|
38
|
+
/** 注入 kgSlots 参数. */
|
39
|
+
export declare const DI_KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
|
40
|
+
export declare type IKgProps = {
|
41
|
+
KgSearch?: IKgSearchProps;
|
42
|
+
KgButton?: IKgButtonProps;
|
43
|
+
KgSubmit?: IKgSubmitProps;
|
44
|
+
KgTable?: IKgTableProps;
|
45
|
+
};
|
46
|
+
/** 注入 kgProps 参数. */
|
47
|
+
export declare const DI_KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
2
|
+
export default _default;
|