@kengic/vue 0.23.0 → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +9391 -8199
  4. package/dist/project/build/script/buildConf.ts +1 -2
  5. package/dist/project/build/script/postBuild.ts +1 -1
  6. package/dist/project/src/api/sys/model/userModel.ts +1 -0
  7. package/dist/setting-outlined.7f72790b.mjs +8 -0
  8. package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +2 -0
  9. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
  10. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  11. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  12. package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +2 -0
  13. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  14. package/dist/src/apis/WMS/models.d.ts +27 -11
  15. package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
  16. package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
  17. package/dist/src/components/KgButton/KgButton.Item.d.ts +15 -15
  18. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +15 -15
  19. package/dist/src/components/KgButton/KgButton.d.ts +18 -12
  20. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +14 -14
  21. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +14 -14
  22. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +15 -15
  23. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +14 -14
  24. package/dist/src/components/KgButton/components/KgButton.ExportTemplate.d.ts +14 -14
  25. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +14 -14
  26. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +15 -15
  27. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +15 -15
  28. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +14 -14
  29. package/dist/src/components/KgButton/index.d.ts +4 -4
  30. package/dist/src/components/KgButton/index.hooks.d.ts +7 -5
  31. package/dist/src/components/KgButton/index.store.d.ts +19 -16
  32. package/dist/src/components/KgForm/KgForm.d.ts +3 -3
  33. package/dist/src/components/KgForm/index.d.ts +4 -4
  34. package/dist/src/components/KgForm/index.hooks.d.ts +21 -8
  35. package/dist/src/components/KgForm/index.store.d.ts +74 -34
  36. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
  37. package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +3 -3
  38. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
  39. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -7
  40. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
  41. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
  42. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
  43. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
  44. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
  45. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -5
  46. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -3
  47. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +16 -13
  48. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
  49. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
  50. package/dist/src/components/KgForm.Item/index.d.ts +1 -1
  51. package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
  52. package/dist/src/components/KgModal/KgModal.d.ts +105 -21
  53. package/dist/src/components/KgModal/KgModal.service.d.ts +1 -1
  54. package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +18 -0
  55. package/dist/src/components/KgResizable/KgResizable.d.ts +55 -55
  56. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
  57. package/dist/src/components/KgSearch/KgSearch.service.d.ts +20 -16
  58. package/dist/src/components/KgSearch/index.hooks.d.ts +30 -12
  59. package/dist/src/components/KgSearch/index.store.d.ts +44 -37
  60. package/dist/src/components/KgSubmit/index.hooks.d.ts +48 -15
  61. package/dist/src/components/KgSubmit/index.store.d.ts +53 -47
  62. package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
  63. package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
  64. package/dist/src/components/KgTable/index.hooks.d.ts +23 -8
  65. package/dist/src/components/KgTable/index.store.d.ts +48 -34
  66. package/dist/src/components/KgTable/index.vm.d.ts +1 -1
  67. package/dist/src/components/KgVar/index.hooks.d.ts +15 -11
  68. package/dist/src/components/KgVar/index.store.d.ts +55 -60
  69. package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
  70. package/dist/src/components/KgVar/index.vm.d.ts +7 -7
  71. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +1 -1
  72. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +6 -23
  73. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -16
  74. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +4 -21
  75. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  76. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  77. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  78. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  79. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  80. package/dist/src/components/KgVarConfig/index.d.ts +1 -0
  81. package/dist/src/components/KgVarConfig/index.hooks.d.ts +17 -0
  82. package/dist/src/components/KgVarConfig/index.store.d.ts +29 -16
  83. package/dist/src/components/KgVarConfig/index.vm.d.ts +40 -0
  84. package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
  85. package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
  86. package/dist/src/components/util.d.ts +7 -7
  87. package/dist/src/consts/i18n/en.d.ts +31 -11
  88. package/dist/src/consts/i18n/zh_CN.d.ts +31 -11
  89. package/dist/src/consts/index.d.ts +0 -284
  90. package/dist/src/consts/index.vm.d.ts +435 -24
  91. package/dist/src/helpers/ant-design-vue.d.ts +1 -1
  92. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -1
  93. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +117 -192
  94. package/dist/src/pages/KgPageDda/{index.const.d.ts → index.vm.d.ts} +1 -0
  95. package/dist/src/services/http-client.d.ts +2 -2
  96. package/dist/src/utils/kg-var.util.d.ts +4 -3
  97. package/dist/src/utils/kg.util.d.ts +42 -25
  98. package/package.json +2 -2
  99. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
  100. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
  101. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
  102. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
  103. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
  104. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
  105. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
  106. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
  107. /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
  108. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
@@ -1,12 +1,12 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { VarProfileDetail } from '../../apis/WMS/models';
3
2
  import { IRemoveEventListenerHandler, KG_BUTTON_TYPE } from '../../consts';
4
3
  import { IUseKgButton } from '../KgButton';
5
4
  import { IUseKgForm } from '../KgForm';
6
5
  import { type IUseKgSearch } from '../KgSearch';
7
6
  import { IUseKgSubmit } from '../KgSubmit';
8
7
  import { IUseKgTable } from '../KgTable';
9
- import { IKgVarRetrieveCb, IKgVarStore } from './index.store';
8
+ import { IUseKgVarConfig } from '../KgVarConfig';
9
+ import { IKgVarRetrieveEventListener, IKgVarStore } from './index.store';
10
10
  export declare type IUseKgVar = {
11
11
  /** 当前的 VarGridDetail 列表. */
12
12
  currentVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridDetails']>>;
@@ -14,10 +14,6 @@ export declare type IUseKgVar = {
14
14
  currentVarGridMasteID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMasterID']>>;
15
15
  /** 当前的 VarGridMaster. */
16
16
  currentVarGridMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMaster']>>;
17
- /** 当前的 VarProfileDetail 列表. */
18
- currentVarProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
19
- /** 当前的 VarProfileMaster. */
20
- currentVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMaster']>>;
21
17
  /** 当前的 VarProfileMaster ID. */
22
18
  currentVarProfileMasterID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMasterID']>>;
23
19
  /**
@@ -90,6 +86,7 @@ export declare type IUseKgVar = {
90
86
  kgSearch: IUseKgSearch;
91
87
  kgSubmit: IUseKgSubmit;
92
88
  kgTable: IUseKgTable;
89
+ kgVarConfig: IUseKgVarConfig;
93
90
  /**
94
91
  * 界面层级.
95
92
  */
@@ -100,7 +97,15 @@ export declare type IUseKgVar = {
100
97
  * @param cb 回调函数.
101
98
  * @param once 是否只会触发一次. 默认为 undefined.
102
99
  */
103
- onRetrieve(cb: IKgVarRetrieveCb, once?: boolean): IRemoveEventListenerHandler;
100
+ onRetrieve(cb: IKgVarRetrieveEventListener, once?: boolean): IRemoveEventListenerHandler;
101
+ /**
102
+ * 查询所有变量配置.
103
+ *
104
+ * @param param.isForceRequest 是否强制查询. 默认为 false, 即如果该界面的变量配置已经查询过了, 则不再查询; 否则, 重新查询所有变量配置.
105
+ */
106
+ requestAll(param?: {
107
+ isForceRequest?: boolean;
108
+ }): Promise<void>;
104
109
  /** 状态数据. */
105
110
  store: IKgVarStore;
106
111
  /** 系统的 VarGridDetail 列表. */
@@ -108,18 +113,17 @@ export declare type IUseKgVar = {
108
113
  /**
109
114
  * 翻译变量. 响应式的.
110
115
  *
111
- * @param variableName 变量名称.
116
+ * @param varName 变量名称.
112
117
  */
113
- t(variableName: string | null | undefined): ComputedRef<string>;
118
+ t(varName: string | null | undefined): ComputedRef<string>;
114
119
  varButtonCopy: ComputedRef<ReturnType<IKgVarStore['getVarButtonCopy']>>;
115
120
  varButtonCreate: ComputedRef<ReturnType<IKgVarStore['getVarButtonCreate']>>;
116
121
  varButtonDelete: ComputedRef<ReturnType<IKgVarStore['getVarButtonDelete']>>;
117
122
  varButtonUpdate: ComputedRef<ReturnType<IKgVarStore['getVarButtonUpdate']>>;
118
- /** 所有的 VarButton 列表. */
119
- varButtons: ComputedRef<ReturnType<IKgVarStore['getVarButtons']>>;
120
123
  varGridConfig: ComputedRef<ReturnType<IKgVarStore['getVarGridConfig']>>;
121
124
  /** 所有的 VarGridMaster 列表. */
122
125
  varGridMasters: ComputedRef<ReturnType<IKgVarStore['getVarGridMasters']>>;
126
+ varProfileConfig: ComputedRef<ReturnType<IKgVarStore['getVarProfileConfig']>>;
123
127
  /** 所有的 VarProfileMaster 列表. */
124
128
  varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
125
129
  };
@@ -1,14 +1,14 @@
1
1
  import { StoreDefinition } from 'pinia';
2
2
  import { VarButton, VarButtonConfig, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
3
- import { IKgEventCb, KG_BUTTON_TYPE } from '../../consts';
3
+ import { IKgEventListener, KG_BUTTON_TYPE } from '../../consts';
4
4
  /**
5
5
  * 事件类型.
6
6
  * 'retrieve': 变量配置查询完成
7
7
  */
8
8
  export declare type IKgVarEvent = 'retrieve';
9
- /** 事件监听函数: 'retrieve'. */
10
- export declare type IKgVarRetrieveCb = (() => void) & IKgEventCb;
11
- export declare type IKgVarCb = IKgVarRetrieveCb;
9
+ export declare type IKgVarRetrieveEventListener = (() => void) & IKgEventListener;
10
+ export declare type IKgVarEventListenerParameter = any;
11
+ export declare type IKgVarEventListener = IKgVarRetrieveEventListener;
12
12
  export interface IUseKgVarStoreState {
13
13
  /** 正在复制: 正在调用接口. */
14
14
  isCopyingRequestingMap: Map<string, boolean>;
@@ -20,8 +20,10 @@ export interface IUseKgVarStoreState {
20
20
  isOtherRequestingMap: Map<string, boolean>;
21
21
  /** 变量配置是否查询完成. */
22
22
  isRequestedMap: Map<string, boolean>;
23
- /** 正在查询变量配置. */
24
- isRetrievingMap: Map<string, boolean>;
23
+ /**
24
+ * 正在查询所有变量配置.
25
+ */
26
+ isRequestingAllMap: Map<string, boolean>;
25
27
  /** 正在查询 VarGridMaster. */
26
28
  isRetrievingVarGridMasterMap: Map<string, boolean>;
27
29
  /** 正在查询 VarProfileMaster. */
@@ -33,7 +35,7 @@ export interface IUseKgVarStoreState {
33
35
  */
34
36
  levelMap: Map<string, number>;
35
37
  /** 事件监听函数列表: retrieve. */
36
- onRetrieveListenersMap: Map<string, Array<IKgVarRetrieveCb>>;
38
+ onRetrieveEventListenersMap: Map<string, Array<IKgVarRetrieveEventListener>>;
37
39
  varButtonConfigMap: Map<string, VarButtonConfig | null>;
38
40
  varButtonMap: Map<string, Array<VarButton>>;
39
41
  varConfigControlMap: Map<string, Array<VarConfigControl>>;
@@ -61,24 +63,24 @@ export interface IUseKgVarStoreGetters {
61
63
  /**
62
64
  * 获取当前的 VarGridDetail 列表.
63
65
  */
64
- getCurrentVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
65
- getCurrentVarGridMaster(): (frm_id: string | null | undefined) => VarGridMasterDTO | null;
66
+ getCurrentVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
67
+ getCurrentVarGridMaster(): (formID: string | null | undefined) => VarGridMasterDTO | null;
66
68
  /** 获取当前'表格视图'的 ID. */
67
- getCurrentVarGridMasterID(): (frm_id: string | null | undefined) => string | null;
69
+ getCurrentVarGridMasterID(): (formID: string | null | undefined) => string | null;
68
70
  /**
69
71
  * 获取当前的 VarProfileMaster.
70
72
  */
71
- getCurrentVarProfileMaster(): (frm_id: string | null | undefined) => VarProfileMasterDTO | null;
73
+ getCurrentVarProfileMaster(): (formID: string | null | undefined) => VarProfileMasterDTO | null;
72
74
  /** 获取当前 VarProfileMaster 的 ID. */
73
- getCurrentVarProfileMasterID(): (frm_id: string | null | undefined) => string | null;
75
+ getCurrentVarProfileMasterID(): (formID: string | null | undefined) => string | null;
74
76
  /**
75
77
  * 获取当前视图下可显示的 VarGridDetail 列表.
76
78
  */
77
- getCurrentVisibleVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
79
+ getCurrentVisibleVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
78
80
  /**
79
81
  * 获取当前视图下可显示的 VarGridDetail 的宽度之和.
80
82
  */
81
- getCurrentVisibleVarGridDetailsTotalWidth(): (frm_id: string | null | undefined) => number | null;
83
+ getCurrentVisibleVarGridDetailsTotalWidth(): (formID: string | null | undefined) => number | null;
82
84
  /**
83
85
  * 获取界面层级.
84
86
  */
@@ -86,75 +88,63 @@ export interface IUseKgVarStoreGetters {
86
88
  /**
87
89
  * 获取系统的 VarGridDetail 列表, 即 customLevel 为 0 的 VarGridMaster 下面的所有 VarGridDetail.
88
90
  */
89
- getSystemVarGridDetails(): (frm_id: string | null | undefined) => Array<VarGridDetail> | null;
91
+ getSystemVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
90
92
  /**
91
93
  * 获取系统的 VarProfileDetail 列表, 即 customLevel 为 0 的 VarProfileMaster 下面的所有 VarProfileDetail.
92
94
  */
93
- getSystemVarProfileDetails(): (frm_id: string | null | undefined) => Array<VarProfileDetail> | null;
95
+ getSystemVarProfileDetails(): (formID: string | null | undefined) => Array<VarProfileDetail> | null;
94
96
  /**
95
97
  * 和 var_nam 获取 VarButton.
96
98
  */
97
99
  getVarButton(): (formID: string | null | undefined, varName: string | null | undefined) => VarButton | null;
98
- getVarButtonConfig(): (frm_id: string | null | undefined) => VarButtonConfig | null;
99
- getVarButtonCopy(): (frm_id: string | null | undefined) => VarButton | null;
100
- getVarButtonCreate(): (frm_id: string | null | undefined) => VarButton | null;
101
- getVarButtonDelete(): (frm_id: string | null | undefined) => VarButton | null;
102
- getVarButtonUpdate(): (frm_id: string | null | undefined) => VarButton | null;
103
- /**
104
- * 获取 VarButton 列表.
105
- */
106
- getVarButtons(): (frm_id: string | null | undefined) => Array<VarButton> | null;
100
+ getVarButtonConfig(): (formID: string | null | undefined) => VarButtonConfig | null;
101
+ getVarButtonCopy(): (formID: string | null | undefined) => VarButton | null;
102
+ getVarButtonCreate(): (formID: string | null | undefined) => VarButton | null;
103
+ getVarButtonDelete(): (formID: string | null | undefined) => VarButton | null;
104
+ getVarButtonUpdate(): (formID: string | null | undefined) => VarButton | null;
107
105
  getVarConfigControl(): (formID: string | null | undefined, param: {
108
106
  buttonType?: KG_BUTTON_TYPE;
109
107
  buttonVarName?: string | null;
110
108
  varName: string | null | undefined;
111
109
  }) => VarConfigControl | null;
112
- getVarConfigInput(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarConfigInput | null;
110
+ getVarConfigInput(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigInput | null;
111
+ getVarConfigLookup(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigLookup | null;
112
+ getVarConfigPossibility(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigPossibility | null;
113
+ getVarConfigTip(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigTip | null;
113
114
  /**
114
115
  * 获取'表格配置'.
115
116
  */
116
- getVarGridConfig(): (frm_id: string | null | undefined) => VarGridConfig | null;
117
+ getVarGridConfig(): (formID: string | null | undefined) => VarGridConfig | null;
117
118
  /** 获取所有的 VarGridConfig. */
118
119
  getVarGridConfigMap(): Map<string, VarGridConfig | null>;
119
- /**
120
- * 和 var_nam 获取 VarGridDetail.
121
- */
122
- getVarGridDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarGridDetail | null;
120
+ getVarGridDetail(): (formID: string | null | undefined, varName: string | null | undefined) => VarGridDetail | null;
123
121
  /**
124
122
  * 获取 VarGridMaster 列表.
125
123
  */
126
- getVarGridMasters(): (frm_id: string | null | undefined) => Array<VarGridMasterDTO> | null;
127
- /**
128
- * 和 var_nam 获取 VarConfigLookup.
129
- */
130
- getVarLookup(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarConfigLookup | null;
131
- /**
132
- * 和 var_nam 获取 VarConfigPossibility.
133
- */
134
- getVarPossibility(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarConfigPossibility | null;
135
- getVarProfileConfig(): (frm_id: string | null | undefined) => VarProfileConfig | null;
124
+ getVarGridMasters(): (formID: string | null | undefined) => Array<VarGridMasterDTO> | null;
125
+ getVarProfileConfig(): (formID: string | null | undefined) => VarProfileConfig | null;
136
126
  /**
137
127
  * 和 var_nam 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
138
128
  */
139
- getVarProfileDetail(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarProfileDetail | null;
129
+ getVarProfileDetail(): (formID: string | null | undefined, varName: string | null | undefined) => VarProfileDetail | null;
140
130
  /**
141
131
  * 获取 VarProfileMasterDTO 列表.
142
132
  */
143
- getVarProfileMasters(): (frm_id: string | null | undefined) => Array<VarProfileMasterDTO> | null;
144
- isCopyingRequesting(): (frm_id: string | null | undefined) => boolean | null;
145
- isCreatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
146
- isDeletingRequesting(): (frm_id: string | null | undefined) => boolean | null;
147
- isOtherRequesting(): (frm_id: string | null | undefined) => boolean | null;
148
- isRetrieving(): (frm_id: string | null | undefined) => boolean | null;
149
- isRetrievingVarGridMaster(): (frm_id: string | null | undefined) => boolean | null;
150
- isRetrievingVarProfileMaster(): (frm_id: string | null | undefined) => boolean | null;
133
+ getVarProfileMasters(): (formID: string | null | undefined) => Array<VarProfileMasterDTO> | null;
134
+ isCopyingRequesting(): (formID: string | null | undefined) => boolean | null;
135
+ isCreatingRequesting(): (formID: string | null | undefined) => boolean | null;
136
+ isDeletingRequesting(): (formID: string | null | undefined) => boolean | null;
137
+ isOtherRequesting(): (formID: string | null | undefined) => boolean | null;
138
+ isRetrieving(): (formID: string | null | undefined) => boolean | null;
139
+ isRetrievingVarGridMaster(): (formID: string | null | undefined) => boolean | null;
140
+ isRetrievingVarProfileMaster(): (formID: string | null | undefined) => boolean | null;
151
141
  /** 变量配置是否查询完成. */
152
- isSearched(): (frm_id: string | null | undefined) => boolean;
153
- isUpdatingRequesting(): (frm_id: string | null | undefined) => boolean | null;
142
+ isSearched(): (formID: string | null | undefined) => boolean;
143
+ isUpdatingRequesting(): (formID: string | null | undefined) => boolean | null;
154
144
  /**
155
145
  * 翻译变量.
156
146
  */
157
- t(): (frmId: string | null | undefined, var_nam: string | null | undefined) => string;
147
+ t(): (formID: string | null | undefined, varName: string | null | undefined) => string;
158
148
  }
159
149
  export interface IUseKgVarStoreActions {
160
150
  /**
@@ -163,7 +153,7 @@ export interface IUseKgVarStoreActions {
163
153
  * @param event 事件名称.
164
154
  * @param cb 回调函数.
165
155
  */
166
- addEventListener(formID: string, event: IKgVarEvent, cb: IKgVarCb): void;
156
+ addEventListener(formID: string, event: IKgVarEvent, cb: IKgVarEventListener): void;
167
157
  /**
168
158
  * <p>离开一个界面, 即销毁一个界面.</p>
169
159
  * <p>删除它的变量配置数据.</p>
@@ -190,7 +180,7 @@ export interface IUseKgVarStoreActions {
190
180
  * @param param.formID 界面标识.
191
181
  * @param param.level 界面层级.
192
182
  */
193
- enter(param: {
183
+ init(param: {
194
184
  formID: string;
195
185
  level: number;
196
186
  }): Promise<void>;
@@ -221,12 +211,17 @@ export interface IUseKgVarStoreActions {
221
211
  * @param event 事件名称.
222
212
  * @param cb 回调函数.
223
213
  */
224
- removeEventListener(formID: string, event: IKgVarEvent, cb?: IKgVarCb): void;
214
+ removeEventListener(formID: string, event: IKgVarEvent, cb?: IKgVarEventListener): void;
225
215
  /**
226
216
  * 查询所有变量配置.
227
- * @param frm_id 界面标识.
217
+ *
218
+ * @param formID 界面标识.
219
+ * @param param 参数.
220
+ * @param param.isForceRequest 是否强制查询. 默认为 false, 即如果该界面的变量配置已经查询过了, 则不再查询; 否则, 重新查询所有变量配置.
228
221
  */
229
- retrieve(frm_id: string | null | undefined): Promise<void>;
222
+ requestAll(formID: string | null | undefined, param?: {
223
+ isForceRequest?: boolean;
224
+ }): Promise<void>;
230
225
  /**
231
226
  * 设置当前选择的表格视图的 ID.
232
227
  * @param formID 界面标识.
@@ -255,9 +250,9 @@ export interface IUseKgVarStoreActions {
255
250
  * 设置某个 VarConfigPossibility 配置.
256
251
  * @param formID 界面标识.
257
252
  * @param var_nam 变量名称
258
- * @param varPossibility 配置.
253
+ * @param varConfigPossibility 配置.
259
254
  */
260
- setVarPossibility(formID: string | null | undefined, var_nam: string | null | undefined, varPossibility: VarConfigPossibility): void;
255
+ setVarPossibility(formID: string | null | undefined, var_nam: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
261
256
  /**
262
257
  * 设置查询字段是否启用.
263
258
  * @param formID 界面标识.
@@ -1,4 +1,4 @@
1
- import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
1
+ import { VarButton, VarButtonConfig, VarConfigPossibility, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
2
2
  export declare function transformVarProfileConfig(varProfileConfig?: VarProfileConfig | null): VarProfileConfig | null;
3
3
  export declare function transformVarGridConfig(varGridConfig?: VarGridConfig | null): VarGridConfig | null;
4
4
  export declare function transformVarGridMasterDTOs(varGridMasterDTOs?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
@@ -6,6 +6,7 @@ export declare function transformVarProfileMasterDTOs(varProfileMasterDTOs?: Arr
6
6
  export declare function transformVarSubmitConfigs(varSubmitConfigs?: Array<VarSubmitConfig> | null): Array<VarSubmitConfig>;
7
7
  export declare function transformVarSubmitDetails(varSubmitDetails?: Array<VarSubmitDetail> | null): Array<VarSubmitDetail>;
8
8
  export declare function transformVarButtons(varButtons?: Array<VarButton> | null): Array<VarButton>;
9
+ export declare function transformVarConfigPossibilities(varConfigPossibilities?: Array<VarConfigPossibility> | null): Array<VarConfigPossibility>;
9
10
  export declare function transformVarButtonConfig(varButtonConfig?: VarButtonConfig | null): VarButtonConfig | null;
10
11
  /**
11
12
  * 处理 VarGridDetail 数据.
@@ -6,16 +6,14 @@ import { KgSubmitProps } from '../KgSubmit';
6
6
  import { IKgTableSlotParams } from '../KgTable';
7
7
  import { IKgTableProps } from '../KgTable/KgTable';
8
8
  export declare type IKgSlots = {
9
- /** KgTable 下面. */
10
- afterKgTable?: () => any;
11
- KgSearch?: {
12
- /** 左侧. */
13
- left?: () => any;
14
- };
15
9
  KgButton?: {
16
10
  /** 右侧. */
17
11
  right?: () => any;
18
12
  };
13
+ KgSearch?: {
14
+ /** 左侧. */
15
+ left?: () => any;
16
+ };
19
17
  KgSubmit?: {
20
18
  /** 某个表单控件. */
21
19
  'KgForm.Item.control'?: {
@@ -34,12 +32,14 @@ export declare type IKgSlots = {
34
32
  /** 表格底部的汇总行.单元格. */
35
33
  'summary.bodyCell'?: (param: IKgTableSlotParams['summary.bodyCell']) => any;
36
34
  };
35
+ /** KgTable 下面. */
36
+ afterKgTable?: () => any;
37
37
  };
38
38
  /** 注入 kgSlots 参数. */
39
39
  export declare const DI_KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
40
40
  export declare type IKgProps = {
41
- KgSearch?: IKgSearchProps;
42
41
  KgButton?: IKgButtonProps;
42
+ KgSearch?: IKgSearchProps;
43
43
  KgSubmit?: KgSubmitProps;
44
44
  KgTable?: IKgTableProps;
45
45
  };
@@ -3,7 +3,7 @@ export declare const getProps: () => {
3
3
  visible: PropType<boolean>;
4
4
  'onUpdate:visible': PropType<(value: boolean) => void>;
5
5
  };
6
- export declare type IKgVarConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
6
+ export declare type KgVarConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
7
7
  declare const _default: import("vue").DefineComponent<{
8
8
  visible: PropType<boolean>;
9
9
  'onUpdate:visible': PropType<(value: boolean) => void>;
@@ -1,24 +1,7 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const FORM_ID__VAR_BUTTON = "kg-button.VarButton";
3
- export declare const getProps: () => {
4
- /** 主页面的页面标识. */
5
- hostFormID: {
6
- type: PropType<string>;
7
- required: boolean;
8
- };
9
- };
10
- export declare type IKgVarConfigModalButtonVarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
11
- declare const _default: import("vue").DefineComponent<{
12
- /** 主页面的页面标识. */
13
- hostFormID: {
14
- type: PropType<string>;
15
- required: boolean;
16
- };
17
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
18
- /** 主页面的页面标识. */
19
- hostFormID: {
20
- type: PropType<string>;
21
- required: boolean;
22
- };
23
- }>>, {}>;
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const getProps: () => any;
3
+ export declare type IKgVarConfig_ModalButtonVarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
+ [x: string]: any;
6
+ }>;
24
7
  export default _default;
@@ -1,27 +1,11 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const FORM_ID__VAR_BUTTON_CONFIG = "kg-button.VarButtonConfig";
3
2
  export declare const getProps: () => {
4
- /** 主页面的页面标识. */
5
- hostFormID: {
6
- type: PropType<string>;
7
- required: boolean;
8
- };
9
3
  onKgClose: PropType<() => void>;
10
4
  };
11
5
  export declare type IKgVarConfigModalButtonVarButtonConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
12
6
  declare const _default: import("vue").DefineComponent<{
13
- /** 主页面的页面标识. */
14
- hostFormID: {
15
- type: PropType<string>;
16
- required: boolean;
17
- };
18
7
  onKgClose: PropType<() => void>;
19
8
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClose"[], "kgClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
20
- /** 主页面的页面标识. */
21
- hostFormID: {
22
- type: PropType<string>;
23
- required: boolean;
24
- };
25
9
  onKgClose: PropType<() => void>;
26
10
  }>> & {
27
11
  onKgClose?: ((...args: any[]) => any) | undefined;
@@ -1,22 +1,5 @@
1
- import { PropType } from 'vue';
2
- export declare const getProps: () => {
3
- /** 主页面的页面标识. */
4
- hostFormID: {
5
- type: PropType<string>;
6
- required: boolean;
7
- };
8
- };
9
- declare const _default: import("vue").DefineComponent<{
10
- /** 主页面的页面标识. */
11
- hostFormID: {
12
- type: PropType<string>;
13
- required: boolean;
14
- };
15
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
- /** 主页面的页面标识. */
17
- hostFormID: {
18
- type: PropType<string>;
19
- required: boolean;
20
- };
21
- }>>, {}>;
1
+ export declare const getProps: () => any;
2
+ declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
3
+ [x: string]: any;
4
+ }>;
22
5
  export default _default;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -1,2 +1,3 @@
1
1
  export { default as KgVarConfig } from './KgVarConfig';
2
+ export * from './index.hooks';
2
3
  export * from './index.store';
@@ -0,0 +1,17 @@
1
+ import { IKgVarConfigStore } from './index.store';
2
+ export interface IUseKgVarConfig {
3
+ /**
4
+ * 打开变量配置弹窗, 并使用传入的宿主界面标识.
5
+ *
6
+ * @param hostFormID 宿主界面标识
7
+ */
8
+ open(hostFormID: string): void;
9
+ /**
10
+ * 状态数据.
11
+ */
12
+ store: IKgVarConfigStore;
13
+ }
14
+ /**
15
+ * @param formID 界面标识.
16
+ */
17
+ export declare function useKgVarConfig(formID?: string | null): IUseKgVarConfig;
@@ -1,20 +1,33 @@
1
1
  import { StoreDefinition } from 'pinia';
2
- import { VarVariable, VarConfigDescription } from '../../apis/WMS/models';
3
- export interface IKgVarConfigState {
4
- /** 变量. */
2
+ import { VarConfigDescription, VarVariable } from '../../apis/WMS/models';
3
+ export interface IUseKgVarConfigStoreState {
4
+ /**
5
+ * 变量.
6
+ */
5
7
  variable: {
6
- /** 当前选中的变量. */
7
- selectedVar: VarVariable | null;
8
- /** 当前选中的变量别名. */
9
- selectedVarCatalog: VarConfigDescription | null;
8
+ /**
9
+ * 当前选中的变量翻译.
10
+ */
11
+ currentVarConfigDescription: VarConfigDescription | null;
12
+ /**
13
+ * 当前选中的变量.
14
+ */
15
+ currentVarVariable: VarVariable | null;
10
16
  };
11
17
  }
12
- export declare type IKgVarConfigStoreDefinition = StoreDefinition<'KgVarConfig', IKgVarConfigState, {
13
- getSelectedVar: VarVariable | null;
14
- getSelectedVarCatalog: VarConfigDescription | null;
15
- }, {
16
- setSelectedVar(variable: VarVariable | null): void;
17
- setSelectedVarCatalog(variable: VarConfigDescription | null): void;
18
- }>;
19
- export declare type IKgVarConfigStore = ReturnType<IKgVarConfigStoreDefinition>;
20
- export declare const useKgVarConfigStore: () => IKgVarConfigStoreDefinition;
18
+ export interface IUseKgVarConfigStoreGetters {
19
+ getCurrentVarConfigDescription: VarConfigDescription | null;
20
+ getCurrentVarVariable: VarVariable | null;
21
+ }
22
+ export interface IUseKgVarConfigStoreActions {
23
+ /**
24
+ * 打开变量配置弹窗, 并使用传入的宿主界面标识.
25
+ *
26
+ * @param hostFormID 宿主界面标识
27
+ */
28
+ open(hostFormID: string): void;
29
+ setCurrentVarConfigDescription(variable: VarConfigDescription | null): void;
30
+ }
31
+ export declare type IUseKgVarConfigStore = StoreDefinition<'KgVarConfig', IUseKgVarConfigStoreState, IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
32
+ export declare type IKgVarConfigStore = ReturnType<IUseKgVarConfigStore>;
33
+ export declare const useKgVarConfigStore: IUseKgVarConfigStore;
@@ -1,3 +1,43 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
2
  /** 正在被配置的界面标识. */
3
3
  export declare const DI__KG_VAR_CONFIG__HOST_FORM_ID: InjectionKey<Ref<string | null>>;
4
+ /**
5
+ * 界面标识: 变量配置弹窗:按钮:按钮管理.
6
+ */
7
+ export declare const FORM_ID__BUTTON__VAR_BUTTON = "KgVarConfig.Modal.Button.VarButton";
8
+ /**
9
+ * 界面标识: 变量配置弹窗:按钮:按钮配置.
10
+ */
11
+ export declare const FORM_ID__BUTTON__VAR_BUTTON_CONFIG = "KgVarConfig.Modal.Button.VarButtonConfig";
12
+ /**
13
+ * 界面标识: 变量配置弹窗:变量配置:变量列表.
14
+ */
15
+ export declare const FORM_ID__VAR__VAR_VARIABLE = "KgVarConfig.Modal.Var.VarVariable";
16
+ /**
17
+ * 界面标识: 变量配置弹窗:变量配置:变量翻译.
18
+ */
19
+ export declare const FORM_ID__VAR__VAR_CONFIG_DESCRIPTION = "KgVarConfig.Modal.Var.VarConfigDescription";
20
+ /**
21
+ * 界面标识: 变量配置弹窗:变量配置:表单控件.
22
+ */
23
+ export declare const FORM_ID__VAR__VAR_CONFIG_CONTROL = "KgVarConfig.Modal.Var.VarConfigControl";
24
+ /**
25
+ * 界面标识: 变量配置弹窗:变量配置:列表数据.
26
+ */
27
+ export declare const FORM_ID__VAR__VAR_CONFIG_POSSIBILITY = "KgVarConfig.Modal.Var.VarConfigPossibility";
28
+ /**
29
+ * 界面标识: 变量配置弹窗:变量配置:表单输入验证.
30
+ */
31
+ export declare const FORM_ID__VAR__VAR_CONFIG_INPUT = "KgVarConfig.Modal.Var.VarConfigInput";
32
+ /**
33
+ * 界面标识: 变量配置弹窗:变量配置:查找弹窗.
34
+ */
35
+ export declare const FORM_ID__VAR__VAR_CONFIG_LOOKUP = "KgVarConfig.Modal.Var.VarConfigLookup";
36
+ /**
37
+ * 界面标识: 变量配置弹窗:变量配置:查找弹窗::查找弹窗界面标识.
38
+ */
39
+ export declare const FORM_ID__VAR__VAR_CONFIG_LOOKUP__VAR_DDA = "KgVarConfig.Modal.Var.VarConfigLookup:LookupID";
40
+ /**
41
+ * 界面标识: 变量配置弹窗:变量配置:提示文本.
42
+ */
43
+ export declare const FORM_ID__VAR__VAR_CONFIG_TIP = "KgVarConfig.Modal.Var.VarConfigTip";
@@ -2,23 +2,27 @@ import { Pinia } from 'pinia';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { WhDTO } from '../../apis/WMS/models';
4
4
  import { IRemoveEventListenerHandler } from '../../consts';
5
- import { IKgWarehouseMountedCb, IKgWarehouseStore } from './index.store';
5
+ import { IKgWarehouseMountedEventListener, IKgWarehouseStore } from './index.store';
6
6
  export declare type IUseKgWarehouse = {
7
+ /**
8
+ * 事件: 组件加载完成.
9
+ * @param cb 回调函数.
10
+ * @param once 是否只会触发一次. 默认为 undefined.
11
+ */
12
+ onMounted(cb: IKgWarehouseMountedEventListener, once?: boolean): IRemoveEventListenerHandler;
7
13
  store: IKgWarehouseStore;
8
14
  /**
9
15
  * 弹窗当前是否显示.
10
16
  */
11
17
  visible: ComputedRef<boolean>;
12
- warehouse: ComputedRef<WhDTO | null>;
13
18
  /**
14
- * 事件: 组件加载完成.
15
- * @param cb 回调函数.
16
- * @param once 是否只会触发一次. 默认为 undefined.
19
+ * 当前仓库.
17
20
  */
18
- onMounted(cb: IKgWarehouseMountedCb, once?: boolean): IRemoveEventListenerHandler;
21
+ warehouse: ComputedRef<WhDTO | null>;
19
22
  };
20
23
  /**
21
24
  * 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
25
+ *
22
26
  * @param pinia
23
27
  */
24
28
  export declare function useKgWarehouse(pinia?: Pinia): IUseKgWarehouse;