@kengic/vue 0.30.1-beta.4 → 0.30.1-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/align-left-outlined.579b01c6.mjs +8 -0
  4. package/dist/caret-down-outlined.c0564a3f.mjs +8 -0
  5. package/dist/caret-left-outlined.35b1d7d1.mjs +8 -0
  6. package/dist/caret-up-outlined.81b559ad.mjs +8 -0
  7. package/dist/check-box-outline-blank.d01a2055.mjs +8 -0
  8. package/dist/collapse-all-rounded.26ee73fc.mjs +8 -0
  9. package/dist/double-right-outlined.f057a6b2.mjs +8 -0
  10. package/dist/expand-all-rounded.e01e6cb9.mjs +8 -0
  11. package/dist/eye-invisible-outlined.5f8d6151.mjs +8 -0
  12. package/dist/holder-outlined.9e698750.mjs +8 -0
  13. package/dist/index.css +1 -1
  14. package/dist/kengic-vue.js +176486 -129422
  15. package/dist/loading-outlined.13a15197.mjs +8 -0
  16. package/dist/more-outlined.8e1202ac.mjs +8 -0
  17. package/dist/palette-swatch-variant.f7258843.mjs +8 -0
  18. package/dist/partition-outlined.1bcf4f37.mjs +8 -0
  19. package/dist/pause-rounded.1ed7cc39.mjs +8 -0
  20. package/dist/play-arrow-rounded.90fc4173.mjs +8 -0
  21. package/dist/profile-outlined.1059fb0d.mjs +8 -0
  22. package/dist/project/build/utils.ts +20 -15
  23. package/dist/src/api/WMS/Controllers/DescriptionController/List.d.ts +2 -2
  24. package/dist/src/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +2 -2
  25. package/dist/src/api/WMS/Controllers/SqlClientController/Execute.d.ts +2 -2
  26. package/dist/src/api/WMS/Controllers/SqlClientController/ExecutePage.d.ts +2 -2
  27. package/dist/src/api/WMS/Controllers/SysPermissionController/List.d.ts +2 -2
  28. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +3 -3
  29. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/ListByFormId.d.ts +16 -0
  30. package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/index.d.ts +1 -0
  31. package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +2 -2
  32. package/dist/src/api/WMS/Controllers/VarController/GetAll.d.ts +2 -2
  33. package/dist/src/api/WMS/Controllers/VarDdaController/Create.d.ts +2 -2
  34. package/dist/src/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +2 -2
  35. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +2 -2
  36. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +2 -2
  37. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +2 -2
  38. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +2 -2
  39. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +2 -2
  40. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +2 -2
  41. package/dist/src/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +2 -2
  42. package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +2 -2
  43. package/dist/src/api/WMS/Controllers/VarGridMasterController/Update.d.ts +2 -2
  44. package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +2 -2
  45. package/dist/src/api/WMS/Controllers/VarVariableController/Delete.d.ts +2 -2
  46. package/dist/src/api/WMS/Controllers/WarehouseController/ListVO.d.ts +25 -0
  47. package/dist/src/api/WMS/Controllers/WorkstationController/List.d.ts +2 -2
  48. package/dist/src/api/WMS/Controllers/index.d.ts +1 -1
  49. package/dist/src/api/WMS/models.d.ts +11 -5
  50. package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +1 -2
  51. package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.Fullscreen.d.ts → KgCanvas.ToolbarButton.Fullscreen.d.ts} +2 -3
  52. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +7 -0
  53. package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.OverviewScale.d.ts → KgCanvas.ToolbarButton.OverviewScale.d.ts} +2 -3
  54. package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +1 -2
  55. package/dist/src/component/KgCanvas/KgCanvas.d.ts +59 -3
  56. package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +42 -5
  57. package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +33 -5
  58. package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +26 -32
  59. package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +5 -31
  60. package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +4 -1
  61. package/dist/src/component/KgCanvas/index.d.ts +1 -1
  62. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.d.ts +5 -0
  63. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.d.ts +5 -0
  64. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.d.ts +5 -0
  65. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.d.ts +5 -0
  66. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.d.ts +5 -0
  67. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.d.ts +5 -0
  68. package/dist/src/{page/KgCircleVis/components/KgCircleVis.Tab.Rgv.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts} +5 -5
  69. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +5 -0
  70. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.d.ts +29 -0
  71. package/dist/src/{page/KgCircleVis/components/KgCircleVis.model.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.d.ts} +1 -1
  72. package/dist/src/{page/KgCircleVis/components/KgCircleVis.store.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts} +41 -41
  73. package/dist/src/component/KgCircularShuttleMonitor/index.d.ts +3 -0
  74. package/dist/src/component/KgForm/KgForm.d.ts +39 -39
  75. package/dist/src/component/KgForm/index.d.ts +52 -52
  76. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +35 -35
  77. package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +31 -33
  78. package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +34 -34
  79. package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +38 -36
  80. package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +34 -34
  81. package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +34 -34
  82. package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +34 -34
  83. package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +34 -34
  84. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +34 -34
  85. package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +34 -34
  86. package/dist/src/component/KgForm.Item/components/KgForm.Item.Link.d.ts +34 -34
  87. package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +34 -36
  88. package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +35 -35
  89. package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +34 -34
  90. package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +34 -34
  91. package/dist/src/component/KgImage/KgImage.d.ts +6 -6
  92. package/dist/src/component/KgLayoutHeader/{components/KgLayoutHeaderLocale.d.ts → KgLayoutHeader.Locale.d.ts} +1 -1
  93. package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
  94. package/dist/src/component/KgModal/KgModal.d.ts +20 -20
  95. package/dist/src/component/KgModal/{hooks/useDragToResize.d.ts → KgModal.service.d.ts} +13 -2
  96. package/dist/src/component/KgModal02/KgModal02.d.ts +591 -0
  97. package/dist/src/component/KgModal02/KgModal02.model.d.ts +1 -0
  98. package/dist/src/component/KgModal02/index.d.ts +1 -0
  99. package/dist/src/component/KgResizable/KgResizable.d.ts +4 -4
  100. package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +11 -0
  101. package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +11 -0
  102. package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +80 -0
  103. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +36 -0
  104. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +36 -0
  105. package/dist/src/component/KgSimulator/KgSimulator.Menu.d.ts +4 -0
  106. package/dist/src/component/KgSimulator/KgSimulator.Panel.Prefab.d.ts +4 -0
  107. package/dist/src/component/KgSimulator/KgSimulator.Panel.Property.d.ts +4 -0
  108. package/dist/src/component/KgSimulator/KgSimulator.Panel.Scene.d.ts +4 -0
  109. package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +97 -0
  110. package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +108 -0
  111. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +9 -0
  112. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +9 -0
  113. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +9 -0
  114. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +113 -0
  115. package/dist/src/component/KgSimulator/KgSimulator.d.ts +33 -0
  116. package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +99 -0
  117. package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +103 -0
  118. package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +10 -0
  119. package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +1424 -0
  120. package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +234 -0
  121. package/dist/src/component/KgSimulator/KgSimulator.utils.d.ts +21 -0
  122. package/dist/src/component/KgSimulator/index.d.ts +3 -0
  123. package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +14 -9
  124. package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +46 -14
  125. package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +46 -0
  126. package/dist/src/component/KgTable/{components/KgTable.BodyCell.d.ts → KgTable.BodyCell.d.ts} +1 -1
  127. package/dist/src/component/KgTable/{components/setting/KgTable.Setting.service.d.ts → KgTable.Setting.service.d.ts} +1 -1
  128. package/dist/src/component/KgTable/KgTable.model.d.ts +0 -2
  129. package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +44 -23
  130. package/dist/src/component/KgTable02/KgTable02.event.d.ts +13 -3
  131. package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +9 -0
  132. package/dist/src/component/KgVar/{KgVarFactory.d.ts → KgVar.Factory.d.ts} +9 -0
  133. package/dist/src/component/KgVar/KgVar.d.ts +23 -17
  134. package/dist/src/component/KgVar/KgVar.event.d.ts +19 -6
  135. package/dist/src/component/KgVar/KgVar.hooks.d.ts +20 -7
  136. package/dist/src/component/KgVar/KgVar.model.d.ts +0 -5
  137. package/dist/src/component/KgVar/index.d.ts +1 -1
  138. package/dist/src/component/KgVarConfig/KgVarConfig.model.d.ts +0 -3
  139. package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +2 -2
  140. package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +4 -4
  141. package/dist/src/component/index.d.ts +3 -0
  142. package/dist/src/config/config.store.d.ts +15 -3
  143. package/dist/src/config/index.d.ts +9 -3
  144. package/dist/src/const/const.model.d.ts +546 -5
  145. package/dist/src/const/form-id.const.d.ts +22 -10
  146. package/dist/src/const/index.d.ts +0 -1
  147. package/dist/src/i18n/i18n.setup.d.ts +1 -1
  148. package/dist/src/page/{KgCircleVis/KgPageCircleVis.d.ts → KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.d.ts} +1 -1
  149. package/dist/src/page/KgPageCircularShuttleMonitor/index.d.ts +1 -0
  150. package/dist/src/page/KgPageDda/KgPageDda.d.ts +1 -1
  151. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +3 -3
  152. package/dist/src/page/index.d.ts +2 -2
  153. package/dist/src/project/src/utils/env.d.ts +0 -16
  154. package/dist/src/service/http-client.d.ts +5 -1
  155. package/dist/src/util/ant-design-vue.d.ts +16 -16
  156. package/dist/src/util/tsx.helper.d.ts +7 -7
  157. package/package.json +9 -7
  158. package/dist/src/api/WMS/Controllers/WhController/ListVO.d.ts +0 -54
  159. package/dist/src/component/KgForm/KgForm.model.d.ts +0 -9
  160. package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +0 -12
  161. package/dist/src/const/injection-keys.const.d.ts +0 -11
  162. package/dist/src/page/KgCircleVis/components/KgCircleVis.AreaSelect.d.ts +0 -5
  163. package/dist/src/page/KgCircleVis/components/KgCircleVis.Canvas.d.ts +0 -5
  164. package/dist/src/page/KgCircleVis/components/KgCircleVis.Legend.d.ts +0 -5
  165. package/dist/src/page/KgCircleVis/components/KgCircleVis.Offline.d.ts +0 -5
  166. package/dist/src/page/KgCircleVis/components/KgCircleVis.Setting.d.ts +0 -5
  167. package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Log.d.ts +0 -5
  168. package/dist/src/page/KgCircleVis/components/KgCircleVis.d.ts +0 -5
  169. package/dist/src/page/KgCircleVis/components/KgCircleVis.hooks.d.ts +0 -29
  170. package/dist/src/page/KgCircleVis/index.d.ts +0 -1
  171. /package/dist/src/api/WMS/Controllers/{WhController → WarehouseController}/index.d.ts +0 -0
  172. /package/dist/src/{page/KgCircleVis/components/KgCircleVis.Canvas.service.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.d.ts} +0 -0
  173. /package/dist/src/component/KgTable/{components/KgTable.HeadCell.d.ts → KgTable.HeadCell.d.ts} +0 -0
  174. /package/dist/src/component/KgTable/{components/KgTable.Info.d.ts → KgTable.Info.d.ts} +0 -0
  175. /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts → KgTable.Setting.VarGridMaster.SaveAs.d.ts} +0 -0
  176. /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts} +0 -0
@@ -0,0 +1,234 @@
1
+ import { Q } from '@thymine/xunee';
2
+ import { WebSocketResult } from '@vueuse/core';
3
+ import { KgStoreDefinition } from '../../const';
4
+ import { IToolbarPlacement, Scene } from './KgSimulator.model';
5
+ export interface IKgSimulatorStoreGetters {
6
+ /**
7
+ * 配置--环形输送线--代理者--全局加速度.
8
+ *
9
+ * @default 16 m/min/s, 16000/(60*1000*1000) mm/ms^2
10
+ */
11
+ $Config$CircularConveyor$Agent$GlobalAcceleration: number;
12
+ /**
13
+ * 配置--环形输送线--代理者--全局最大速度.
14
+ *
15
+ * @default 16 m/min, 16000/(60*1000) mm/ms
16
+ */
17
+ $Config$CircularConveyor$Agent$GlobalMaxVelocity: number;
18
+ /**
19
+ * 配置--环形输送线--接口地址--创建代理者.
20
+ *
21
+ * @default '/Agent/CreateAgent'
22
+ */
23
+ $Config$CircularConveyor$Api$CreateAgent: string;
24
+ /**
25
+ * 配置--环形输送线--接口地址--创建场景.
26
+ *
27
+ * @default '/Scene/CreateScene'
28
+ */
29
+ $Config$CircularConveyor$Api$CreateScene: string;
30
+ /**
31
+ * 配置--环形输送线--接口地址--销毁代理者.
32
+ *
33
+ * @default '/Agent/DestroyAgent'
34
+ */
35
+ $Config$CircularConveyor$Api$DestroyAgent: string;
36
+ /**
37
+ * 配置--环形输送线--接口地址--查询场景列表.
38
+ *
39
+ * @default '/Scene/GetScenes'
40
+ */
41
+ $Config$CircularConveyor$Api$RequestSceneList: string;
42
+ /**
43
+ * 配置--环形输送线--接口地址--更新场景.
44
+ *
45
+ * @default '/Scene/SaveScene'
46
+ */
47
+ $Config$CircularConveyor$Api$UpdateScene: string;
48
+ /**
49
+ * 配置--环形输送线--接口地址--WEBSOCKET.
50
+ *
51
+ * @default '/Scene/GetScenes'
52
+ */
53
+ $Config$CircularConveyor$Api$WebSocket: string;
54
+ /**
55
+ * 配置--环境--是否是环形输送线.
56
+ *
57
+ * @default true
58
+ */
59
+ $Config$Env$IsCircularConveyor: boolean;
60
+ /**
61
+ * 配置--环境--是否是环形穿梭车.
62
+ *
63
+ * @default false
64
+ */
65
+ $Config$Env$IsCircularShuttle: boolean;
66
+ /**
67
+ * 配置--工具栏--预制组件--是否打开.
68
+ *
69
+ * @default true
70
+ */
71
+ $Config$Toolbar$Prefab$IsOpen: boolean;
72
+ /**
73
+ * 配置--工具栏--预制组件--是否显示.
74
+ *
75
+ * @default true
76
+ */
77
+ $Config$Toolbar$Prefab$IsVisible: boolean;
78
+ /**
79
+ * 配置--工具栏--预制组件--位置.
80
+ *
81
+ * @default 'LEFT_TOP'
82
+ */
83
+ $Config$Toolbar$Prefab$Placement: IToolbarPlacement;
84
+ /**
85
+ * 配置--工具栏--属性--是否打开.
86
+ *
87
+ * @default true
88
+ */
89
+ $Config$Toolbar$Property$IsOpen: boolean;
90
+ /**
91
+ * 配置--工具栏--属性--是否显示.
92
+ *
93
+ * @default true
94
+ */
95
+ $Config$Toolbar$Property$IsVisible: boolean;
96
+ /**
97
+ * 配置--工具栏--属性--位置.
98
+ *
99
+ * @default 'RIGHT_TOP'
100
+ */
101
+ $Config$Toolbar$Property$Placement: IToolbarPlacement;
102
+ /**
103
+ * 配置--工具栏--场景--是否打开.
104
+ *
105
+ * @default true
106
+ */
107
+ $Config$Toolbar$Scene$IsOpen: boolean;
108
+ /**
109
+ * 配置--工具栏--场景--是否显示.
110
+ *
111
+ * @default true
112
+ */
113
+ $Config$Toolbar$Scene$IsVisible: boolean;
114
+ /**
115
+ * 配置--工具栏--场景--位置.
116
+ *
117
+ * @default 'LEFT_TOP'
118
+ */
119
+ $Config$Toolbar$Scene$Placement: IToolbarPlacement;
120
+ /**
121
+ * 环境--环形输送线--当前场景.
122
+ */
123
+ $Env$CircularConveyor$CurrentScene: Scene | null;
124
+ /**
125
+ * 环境--环形输送线--当前场景--是否已经保存.
126
+ */
127
+ $Env$CircularConveyor$CurrentScene$IsSave: boolean;
128
+ /**
129
+ * 环境--环形输送线--当前场景--是否正在保存.
130
+ */
131
+ $Env$CircularConveyor$CurrentScene$IsSaving: boolean;
132
+ /**
133
+ * 环境--环形穿梭车--当前场景.
134
+ */
135
+ $Env$CircularShuttle$CurrentScene: any | null;
136
+ /**
137
+ * 环境--环形穿梭车--当前场景--是否已经保存.
138
+ */
139
+ $Env$CircularShuttle$CurrentScene$IsSave: boolean;
140
+ /**
141
+ * 环境--环形穿梭车--当前场景--是否正在保存.
142
+ */
143
+ $Env$CircularShuttle$CurrentScene$IsSaving: boolean;
144
+ /**
145
+ * 模式--是否是编辑模式.
146
+ *
147
+ * @default true
148
+ */
149
+ $Mode$IsEdit: boolean;
150
+ /**
151
+ * 模式--是否是监控模式.
152
+ *
153
+ * @default false
154
+ */
155
+ $Mode$IsMonitor: boolean;
156
+ /**
157
+ * 配置--模式--是否是仿真模式.
158
+ *
159
+ * @default false
160
+ */
161
+ $Mode$IsSimulate: boolean;
162
+ /**
163
+ * 配置--模式--仿真模式--正在运行.
164
+ *
165
+ * @default false
166
+ */
167
+ $Mode$Simulate$IsRunning: boolean;
168
+ }
169
+ export interface IKgSimulatorStoreActions {
170
+ /**
171
+ * WEBSOCKET--建立连接.
172
+ *
173
+ * @param param.url 连接地址.
174
+ */
175
+ $WebSocket$connect(param: {
176
+ url: string;
177
+ }): void;
178
+ /**
179
+ * WEBSOCKET--获取连接结果.
180
+ */
181
+ $WebSocket$getConnection(): WebSocketResult<any> | null;
182
+ get$graph(): Q.Graph | null;
183
+ /**
184
+ * 保存场景.
185
+ */
186
+ saveScene(): Promise<void>;
187
+ set$Config$CircularConveyor$Agent$GlobalAcceleration(value: number | null | undefined): void;
188
+ set$Config$CircularConveyor$Agent$GlobalMaxVelocity(value: number | null | undefined): void;
189
+ set$Config$CircularConveyor$Api$CreateAgent(value: string | null | undefined): void;
190
+ set$Config$CircularConveyor$Api$CreateScene(value: string | null | undefined): void;
191
+ set$Config$CircularConveyor$Api$DestroyAgent(value: string | null | undefined): void;
192
+ set$Config$CircularConveyor$Api$RequestSceneList(value: string | null | undefined): void;
193
+ set$Config$CircularConveyor$Api$UpdateScene(value: string | null | undefined): void;
194
+ set$Config$CircularConveyor$Api$WebSocket(value: string | null | undefined): void;
195
+ /**
196
+ * <p>设置环境.</p>
197
+ * <ul>
198
+ * <li>CIRCULAR_CONVEYOR: 环形输送线</li>
199
+ * <li>CIRCULAR_SHUTTLE: 环形穿梭车</li>
200
+ * </ul>
201
+ *
202
+ * @param value
203
+ */
204
+ set$Config$Env(value: 'CIRCULAR_CONVEYOR' | 'CIRCULAR_SHUTTLE' | null | undefined): void;
205
+ /**
206
+ * <p>设置模式. 默认为编辑模式.</p>
207
+ * <ul>
208
+ * <li>EDIT: 编辑</li>
209
+ * <li>MONITOR: 监控</li>
210
+ * <li>SIMULATE: 仿真</li>
211
+ * </ul>
212
+ *
213
+ * @param value
214
+ */
215
+ set$Config$Mode(value: 'EDIT' | 'MONITOR' | 'SIMULATE' | null | undefined): void;
216
+ set$Config$Toolbar$Prefab$IsOpen(value: boolean | null | undefined): void;
217
+ set$Config$Toolbar$Prefab$IsVisible(value: boolean | null | undefined): void;
218
+ set$Config$Toolbar$Prefab$Placement(value: IToolbarPlacement | null | undefined): void;
219
+ set$Config$Toolbar$Property$IsOpen(value: boolean | null | undefined): void;
220
+ set$Config$Toolbar$Property$IsVisible(value: boolean | null | undefined): void;
221
+ set$Config$Toolbar$Property$Placement(value: IToolbarPlacement | null | undefined): void;
222
+ set$Config$Toolbar$Scene$IsOpen(value: boolean | null | undefined): void;
223
+ set$Config$Toolbar$Scene$IsVisible(value: boolean | null | undefined): void;
224
+ set$Config$Toolbar$Scene$Placement(value: IToolbarPlacement | null | undefined): void;
225
+ set$Env$CircularConveyor$CurrentScene(value: Scene | null | undefined): void;
226
+ set$Env$CircularConveyor$CurrentScene$IsSave(value: boolean | null | undefined): void;
227
+ set$Env$CircularConveyor$CurrentScene$IsSaving(value: boolean | null | undefined): void;
228
+ set$Env$CircularShuttle$CurrentScene(value: any | null | undefined): void;
229
+ set$Env$CircularShuttle$CurrentScene$IsSave(value: boolean | null | undefined): void;
230
+ set$Env$CircularShuttle$CurrentScene$IsSaving(value: boolean | null | undefined): void;
231
+ set$Mode$Simulate$IsRunning(value: boolean | null | undefined): void;
232
+ set$graph(value: Q.Graph | null | undefined): void;
233
+ }
234
+ export declare function buildKgSimulatorStore(id: string | null | undefined): KgStoreDefinition<IKgSimulatorStoreGetters, IKgSimulatorStoreActions>;
@@ -0,0 +1,21 @@
1
+ import { Q } from '@thymine/xunee';
2
+ /**
3
+ * 判断是不是同一个点, 考虑一定误差.
4
+ */
5
+ export declare function isSamePoint(x1: number | null | undefined, x2: number | null | undefined): boolean;
6
+ /**
7
+ * 获取时间戳.
8
+ */
9
+ export declare function timestamp(): string;
10
+ /**
11
+ * 获取节点下的界面元素.
12
+ *
13
+ * @param param.code 编号.
14
+ * @param param.node 节点.
15
+ */
16
+ export declare function getNodeUiByCode<T extends Q.BaseUI>(param: {
17
+ code: string;
18
+ node: Q.Node;
19
+ }): {
20
+ ui: T;
21
+ };
@@ -0,0 +1,3 @@
1
+ export { KgSimulator } from './KgSimulator';
2
+ export * from './KgSimulator.hooks';
3
+ export * from './KgSimulator.store';
@@ -5,7 +5,7 @@ import { IKgTableRow } from '../KgTable';
5
5
  /**
6
6
  * 事件类型.
7
7
  */
8
- export declare type IKgSubmitEvent = 'onBeforeOpen' | 'onOpen' | 'onBeforeOk' | 'onAfterValidate' | 'onBeforeRequest' | 'onOk' | 'onBeforeCancel' | 'onCancel' | 'onError' | 'onClose' | 'onOkButtonClick' | 'onCancelButtonClick';
8
+ export declare type IKgSubmitEvent = 'onBeforeOpen' | 'onOpen' | 'onBeforeOk' | 'onAfterValidate' | 'onBeforeRequest' | 'onOk' | 'onBeforeCancel' | 'onCancel' | 'onError' | 'onClose' | 'onOkButtonClick' | 'onCancelButtonClick' | 'onAfterSetFormModel';
9
9
  export declare type IKgSubmitOnBeforeOpenEventListenerParameter = {
10
10
  isCreating: boolean | null;
11
11
  isUpdating: boolean | null;
@@ -70,20 +70,22 @@ export declare type IKgSubmitOnBeforeRequestEventListenerParameter = {
70
70
  };
71
71
  export declare type IKgSubmitOnBeforeRequestEventListener = ((param: IKgSubmitOnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
72
72
  export declare type IKgSubmitOnOkEventListenerParameter = {
73
- /** @deprecated */
74
- isCreating: boolean | null;
75
- /** @deprecated */
76
- isUpdating: boolean | null;
77
73
  /** @deprecated */
78
74
  isCopying: boolean | null;
79
75
  /** @deprecated */
76
+ isCreating: boolean | null;
77
+ /** @deprecated */
80
78
  isDeleting: boolean | null;
81
79
  /** @deprecated */
82
- row: IKgTableRow | null;
80
+ isUpdating: boolean | null;
83
81
  /** @deprecated */
84
82
  model: Ref<Record<string, any>>;
85
- /** 接口返回结果. */
83
+ /**
84
+ * 接口返回结果.
85
+ */
86
86
  result: any | null;
87
+ /** @deprecated */
88
+ row: IKgTableRow | null;
87
89
  };
88
90
  export declare type IKgSubmitOnOkEventListener = ((param: IKgSubmitOnOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
89
91
  export declare type IKgSubmitOnBeforeCancelEventListenerParameter = {};
@@ -98,9 +100,12 @@ export declare type IKgSubmitOnSubmitSaveEventListenerParameter = {};
98
100
  export declare type IKgSubmitOnSubmitSaveEventListener = ((param: IKgSubmitOnSubmitSaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
99
101
  export declare type IKgSubmitOnSubmitCancelEventListenerParameter = {};
100
102
  export declare type IKgSubmitOnSubmitCancelEventListener = ((param: IKgSubmitOnSubmitCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
101
- export declare type IKgSubmitEventListenerParameter = IKgSubmitOnBeforeOpenEventListenerParameter | IKgSubmitOnOpenEventListenerParameter | IKgSubmitOnBeforeOkEventListenerParameter | IKgSubmitOnAfterValidateEventListenerParameter | IKgSubmitOnBeforeRequestEventListenerParameter | IKgSubmitOnOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmitOnErrorEventListenerParameter | IKgSubmitOnCloseEventListenerParameter | IKgSubmitOnSubmitSaveEventListenerParameter | IKgSubmitOnSubmitCancelEventListenerParameter;
102
- export declare type IKgSubmitEventListener = IKgSubmitOnBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitOnBeforeOkEventListener | IKgSubmitOnAfterValidateEventListener | IKgSubmitOnBeforeRequestEventListener | IKgSubmitOnOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmitOnErrorEventListener | IKgSubmitOnCloseEventListener | IKgSubmitOnSubmitSaveEventListener | IKgSubmitOnSubmitCancelEventListener;
103
+ export declare type IKgSubmitOnAfterSetFormModelEventListenerParameter = {};
104
+ export declare type IKgSubmitOnAfterSetFormModelEventListener = ((param: IKgSubmitOnAfterSetFormModelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
105
+ export declare type IKgSubmitEventListenerParameter = IKgSubmitOnBeforeOpenEventListenerParameter | IKgSubmitOnOpenEventListenerParameter | IKgSubmitOnBeforeOkEventListenerParameter | IKgSubmitOnAfterValidateEventListenerParameter | IKgSubmitOnBeforeRequestEventListenerParameter | IKgSubmitOnOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmitOnErrorEventListenerParameter | IKgSubmitOnCloseEventListenerParameter | IKgSubmitOnSubmitSaveEventListenerParameter | IKgSubmitOnSubmitCancelEventListenerParameter | IKgSubmitOnAfterSetFormModelEventListenerParameter;
106
+ export declare type IKgSubmitEventListener = IKgSubmitOnBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitOnBeforeOkEventListener | IKgSubmitOnAfterValidateEventListener | IKgSubmitOnBeforeRequestEventListener | IKgSubmitOnOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmitOnErrorEventListener | IKgSubmitOnCloseEventListener | IKgSubmitOnSubmitSaveEventListener | IKgSubmitOnSubmitCancelEventListener | IKgSubmitOnAfterSetFormModelEventListener;
103
107
  export declare const eventListeners: Record<string, {
108
+ onAfterSetFormModel: Array<IKgSubmitOnAfterSetFormModelEventListener>;
104
109
  onAfterValidate: Array<IKgSubmitOnAfterValidateEventListener>;
105
110
  onBeforeCancel: Array<IKgSubmitOnBeforeCancelEventListener>;
106
111
  onBeforeOk: Array<IKgSubmitOnBeforeOkEventListener>;
@@ -4,7 +4,7 @@ import { RuleObject } from 'ant-design-vue/es/form';
4
4
  import { ComputedRef, Ref } from 'vue';
5
5
  import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
6
6
  import { IKgVarSubmitConfigProperties, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../const';
7
- import { eventListeners, IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener, IKgSubmitOnSubmitCancelEventListener, IKgSubmitOnSubmitSaveEventListener } from './KgSubmit.event';
7
+ import { eventListeners, IKgSubmitOnAfterSetFormModelEventListener, IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener, IKgSubmitOnSubmitCancelEventListener, IKgSubmitOnSubmitSaveEventListener } from './KgSubmit.event';
8
8
  import { useKgSubmitStore } from './KgSubmit.store';
9
9
  export interface IUseKgSubmit {
10
10
  /**
@@ -94,15 +94,15 @@ export interface IUseKgSubmit {
94
94
  * <p>如果参数 {@link param} 不传或者 {@link param} === undefined, 表示获取「当前按钮」的「提交表单配置」.</p>
95
95
  * </li>
96
96
  * <li>
97
- * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
97
+ * <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
98
98
  * </li>
99
99
  * <li>
100
- * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
100
+ * <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType !== <code>undefined</code>, 则先根据参数 param.buttonType 获取按钮, 然后根据 VarButton.var_nam 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
101
101
  * </li>
102
102
  * </ul>
103
103
  *
104
- * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
105
- * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
104
+ * @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
105
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
106
106
  */
107
107
  getVarSubmitConfig(param?: {
108
108
  buttonType?: string;
@@ -124,10 +124,10 @@ export interface IUseKgSubmit {
124
124
  * <p>如果参数 {@link param} === null || {@link param} === undefined, 表示获取所有的提交表单字段.</p>
125
125
  * </li>
126
126
  * <li>
127
- * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
127
+ * <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
128
128
  * </li>
129
129
  * <li>
130
- * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
130
+ * <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType !== <code>undefined</code>, 则先根据参数 param.buttonType 获取按钮, 然后根据 VarButton.var_nam 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
131
131
  * </li>
132
132
  * <li>
133
133
  * <p>如果参数 {@link param.varName} !== <code>undefined</code> , 则根据 {@link param.varName} 和 {@link VarSubmitDetail.var_nam} 是否匹配进行过滤.</p>
@@ -143,8 +143,8 @@ export interface IUseKgSubmit {
143
143
  * </li>
144
144
  * </ul>
145
145
  *
146
- * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
147
- * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
146
+ * @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
147
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
148
148
  * @param param.isKey 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.key_flg} 属性.
149
149
  * @param param.isVisible 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.visible_flag} 属性.
150
150
  * @param param.searchProfileVarName 提交表单字段的所属查询条件视图的变量名称, 对应的是 {@link VarSubmitDetail.prf_var_nam} 属性.
@@ -164,6 +164,13 @@ export interface IUseKgSubmit {
164
164
  isLoading: ComputedRef<boolean>;
165
165
  /** @deprecated 请使用 {@link formModel} */
166
166
  model: ComputedRef<Record<string, any>>;
167
+ /**
168
+ * <p>监听事件: 表单对象设置完成.</p>
169
+ * @param listener 事件监听函数.
170
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
171
+ * @return {} 移除事件监听函数.
172
+ */
173
+ onAfterSetFormModel(listener: IKgSubmitOnAfterSetFormModelEventListener, isOnce?: boolean): IRemoveEventListener;
167
174
  /**
168
175
  * <p>监听事件: 点击确认按钮之后, 表单验证完成.</p>
169
176
  * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
@@ -269,18 +276,18 @@ export interface IUseKgSubmit {
269
276
  * <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
270
277
  * <ul>
271
278
  * <li>
272
- * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
279
+ * <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
273
280
  * </li>
274
281
  * <li>
275
- * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName}{@link VarButton.var_nam} 是否匹配来确认按钮.</p>
282
+ * <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 VarButton.var_nam 是否匹配来确认按钮.</p>
276
283
  * </li>
277
284
  * <li>
278
- * <p>如果参数 {@link param.buttonType} !== <code>undefined</code> && {@link param.buttonType} !== <code>OTHER</code>, 根据 {@link param.buttonType}{@link VarButton.typ} 是否匹配来确认按钮.</p>
285
+ * <p>如果参数 param.buttonType !== <code>undefined</code> && param.buttonType !== <code>OTHER</code>, 根据 param.buttonType 和 VarButton.typ 是否匹配来确认按钮.</p>
279
286
  * </li>
280
287
  * </ul>
281
288
  *
282
- * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
283
- * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
289
+ * @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
290
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
284
291
  * @param param.properties 要修改的部分属性.
285
292
  * @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
286
293
  */
@@ -290,6 +297,31 @@ export interface IUseKgSubmit {
290
297
  properties: VarSubmitDetail;
291
298
  varName: string | null | undefined;
292
299
  }): Promise<void>;
300
+ /**
301
+ * <p>修改某些「提交表单字段」的部分属性.</p>
302
+ *
303
+ * <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
304
+ * <ul>
305
+ * <li>
306
+ * <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
307
+ * </li>
308
+ * <li>
309
+ * <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 VarButton.var_nam 是否匹配来确认按钮.</p>
310
+ * </li>
311
+ * <li>
312
+ * <p>如果参数 param.buttonType !== <code>undefined</code> && param.buttonType !== <code>OTHER</code>, 根据 param.buttonType 和 VarButton.typ 是否匹配来确认按钮.</p>
313
+ * </li>
314
+ * </ul>
315
+ *
316
+ * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton#typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
317
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
318
+ * @param param.varSubmitDetailList 要修改的「提交表单字段」列表, 列表中的每个对象只需要包含要修改的属性, 注意 VarSubmitDetail.frm_id 和 VarSubmitDetail.var_nam 必须包含.
319
+ */
320
+ patchVarSubmitDetailList(param: {
321
+ buttonType?: string;
322
+ buttonVarName?: string | null;
323
+ varSubmitDetailList: Array<VarSubmitDetail>;
324
+ }): Promise<void>;
293
325
  /** @deprecated 请使用 {@link formRules}. */
294
326
  rules: Ref<Record<string, RuleObject[]>>;
295
327
  /**
@@ -52,12 +52,58 @@ export interface IUseKgSubmitStoreActions {
52
52
  * @param formID 页面标识.
53
53
  */
54
54
  dispose(formID: string | null | undefined): void;
55
+ /**
56
+ * <p>修改某个「提交表单字段」的部分属性.</p>
57
+ *
58
+ * <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
59
+ * <ul>
60
+ * <li>
61
+ * <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
62
+ * </li>
63
+ * <li>
64
+ * <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 VarButton.var_nam 是否匹配来确认按钮.</p>
65
+ * </li>
66
+ * <li>
67
+ * <p>如果参数 param.buttonType !== <code>undefined</code> && param.buttonType !== <code>OTHER</code>, 根据 param.buttonType 和 VarButton.typ 是否匹配来确认按钮.</p>
68
+ * </li>
69
+ * </ul>
70
+ *
71
+ * @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
72
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
73
+ * @param param.properties 要修改的部分属性.
74
+ * @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
75
+ */
55
76
  patchVarSubmitDetail(formID: string | null | undefined, param: {
56
77
  buttonType?: string;
57
78
  buttonVarName?: string | null;
58
79
  properties: VarSubmitDetail;
59
80
  varName: string | null | undefined;
60
81
  }): Promise<void>;
82
+ /**
83
+ * <p>修改某些「提交表单字段」的部分属性.</p>
84
+ *
85
+ * <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
86
+ * <ul>
87
+ * <li>
88
+ * <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
89
+ * </li>
90
+ * <li>
91
+ * <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 VarButton.var_nam 是否匹配来确认按钮.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>如果参数 param.buttonType !== <code>undefined</code> && param.buttonType !== <code>OTHER</code>, 根据 param.buttonType 和 VarButton.typ 是否匹配来确认按钮.</p>
95
+ * </li>
96
+ * </ul>
97
+ *
98
+ * @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
99
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
100
+ * @param param.varSubmitDetailList 要修改的「提交表单字段」列表, 列表中的每个对象只需要包含要修改的属性, 注意 {@link VarSubmitDetail.frm_id} 和 {@link VarSubmitDetail.var_nam} 必须包含.
101
+ */
102
+ patchVarSubmitDetailList(param: {
103
+ buttonType?: string;
104
+ buttonVarName?: string | null;
105
+ varSubmitDetailList: Array<VarSubmitDetail>;
106
+ }): Promise<void>;
61
107
  setFormModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
62
108
  setIsLoading(formID: string, value: boolean): void;
63
109
  }
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from '../KgTable.model';
2
+ import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from './KgTable.model';
3
3
  export declare const getProps: () => {
4
4
  /** 行对象. */
5
5
  kgRow: PropType<IKgTableRow>;
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { VarGridDetail } from '../../../../api/WMS/models';
2
+ import { VarGridDetail } from '../../api/WMS/models';
3
3
  export declare type IUseServices = {
4
4
  /**
5
5
  * 用于表格的列下拉列表, 根据关键字搜索某列, 如果匹配就显示该列, 否则隐藏该列.
@@ -63,5 +63,3 @@ export declare const KG_TABLE_TD_MAX_WIDTH = 1920;
63
63
  export declare const KG_TABLE_TD_CHECK_WIDTH = 32;
64
64
  /** 序号列的宽度. */
65
65
  export declare const KG_TABLE_TD_INDEX_WIDTH = 55;
66
- /** 在表格内创建时, 空白行的临时主键. */
67
- export declare const KG_TABLE_TEMP_ID = "__KG_TABLE_TEMP_ID__";
@@ -1,51 +1,72 @@
1
- import { ColumnType } from 'ant-design-vue/es/table';
2
1
  import { PropType } from 'vue';
2
+ import { VxeTableDefines } from 'vxe-table';
3
+ import { KG_TABLE_CELL_CONTEXT } from '../KgTable';
3
4
  export declare const getProps: () => {
4
5
  /**
5
6
  * 列的数据.
6
7
  */
7
8
  column: {
8
- type: PropType<ColumnType<any>>;
9
+ type: PropType<VxeTableDefines.ColumnInfo<any>>;
9
10
  };
10
11
  /**
11
- * 表格是否禁用.
12
- * @default undefined
12
+ * 行的数据.
13
13
  */
14
- kgDisabled: {
15
- type: PropType<boolean>;
16
- default: undefined;
14
+ row: {
15
+ type: PropType<any>;
16
+ };
17
+ /**
18
+ * 所处环境.
19
+ * @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
20
+ */
21
+ kgContext: {
22
+ type: PropType<string>;
23
+ default: KG_TABLE_CELL_CONTEXT;
17
24
  };
18
25
  };
19
- export declare const KgTable02HeadCell: import("vue").DefineComponent<{
26
+ export declare const KgTable02BodyCell: import("vue").DefineComponent<{
20
27
  /**
21
28
  * 列的数据.
22
29
  */
23
30
  column: {
24
- type: PropType<ColumnType<any>>;
31
+ type: PropType<VxeTableDefines.ColumnInfo<any>>;
25
32
  };
26
33
  /**
27
- * 表格是否禁用.
28
- * @default undefined
34
+ * 行的数据.
29
35
  */
30
- kgDisabled: {
31
- type: PropType<boolean>;
32
- default: undefined;
36
+ row: {
37
+ type: PropType<any>;
33
38
  };
34
- }, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
+ /**
40
+ * 所处环境.
41
+ * @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
42
+ */
43
+ kgContext: {
44
+ type: PropType<string>;
45
+ default: KG_TABLE_CELL_CONTEXT;
46
+ };
47
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgUpdateLinkClick"[], "kgUpdateLinkClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
48
  /**
36
49
  * 列的数据.
37
50
  */
38
51
  column: {
39
- type: PropType<ColumnType<any>>;
52
+ type: PropType<VxeTableDefines.ColumnInfo<any>>;
53
+ };
54
+ /**
55
+ * 行的数据.
56
+ */
57
+ row: {
58
+ type: PropType<any>;
40
59
  };
41
60
  /**
42
- * 表格是否禁用.
43
- * @default undefined
61
+ * 所处环境.
62
+ * @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
44
63
  */
45
- kgDisabled: {
46
- type: PropType<boolean>;
47
- default: undefined;
64
+ kgContext: {
65
+ type: PropType<string>;
66
+ default: KG_TABLE_CELL_CONTEXT;
48
67
  };
49
- }>> & {}, {
50
- kgDisabled: boolean;
68
+ }>> & {
69
+ onKgUpdateLinkClick?: ((...args: any[]) => any) | undefined;
70
+ }, {
71
+ kgContext: string;
51
72
  }>;