@ibiz-template/runtime 0.2.1 → 0.2.4

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 (60) hide show
  1. package/dist/index.esm.js +301 -133
  2. package/dist/index.system.min.js +1 -1
  3. package/dist/index.system.min.js.map +1 -1
  4. package/out/controller/common/base.controller.js +4 -4
  5. package/out/controller/common/control/control.controller.d.ts.map +1 -1
  6. package/out/controller/common/control/control.controller.js +7 -0
  7. package/out/controller/common/view/view.controller.d.ts.map +1 -1
  8. package/out/controller/common/view/view.controller.js +3 -0
  9. package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
  10. package/out/controller/control/form/edit-form/edit-form.controller.js +6 -2
  11. package/out/controller/control/form/form/form.controller.d.ts +9 -1
  12. package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
  13. package/out/controller/control/form/form/form.controller.js +20 -1
  14. package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts +32 -3
  15. package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts.map +1 -1
  16. package/out/controller/control/form/form-detail/form-detail/form-detail.controller.js +84 -8
  17. package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +1 -1
  18. package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts.map +1 -1
  19. package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.js +2 -2
  20. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts +1 -1
  21. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
  22. package/out/controller/control/form/form-detail/form-item/form-item.controller.js +2 -2
  23. package/out/interface/service/i-data-entity/i-data-entity.d.ts +19 -2
  24. package/out/interface/service/i-data-entity/i-data-entity.d.ts.map +1 -1
  25. package/out/interface/service/service/i-app-de.service.d.ts +11 -0
  26. package/out/interface/service/service/i-app-de.service.d.ts.map +1 -1
  27. package/out/logic-scheduler/scheduler/control-logic-scheduler.js +2 -2
  28. package/out/logic-scheduler/trigger/timer-trigger.d.ts.map +1 -1
  29. package/out/logic-scheduler/trigger/timer-trigger.js +4 -1
  30. package/out/model/view/view.d.ts.map +1 -1
  31. package/out/model/view/view.js +9 -1
  32. package/out/service/app-data-entity/app-data-entity.d.ts +3 -3
  33. package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
  34. package/out/service/app-data-entity/app-data-entity.js +13 -12
  35. package/out/service/service/control/control.service.d.ts.map +1 -1
  36. package/out/service/service/control/control.service.js +1 -1
  37. package/out/service/service/entity/de.service.d.ts +15 -3
  38. package/out/service/service/entity/de.service.d.ts.map +1 -1
  39. package/out/service/service/entity/de.service.js +20 -4
  40. package/out/service/vo/control.vo.d.ts +12 -4
  41. package/out/service/vo/control.vo.d.ts.map +1 -1
  42. package/out/service/vo/control.vo.js +87 -50
  43. package/package.json +3 -3
  44. package/src/controller/common/base.controller.ts +4 -4
  45. package/src/controller/common/control/control.controller.ts +11 -0
  46. package/src/controller/common/view/view.controller.ts +2 -0
  47. package/src/controller/control/form/edit-form/edit-form.controller.ts +7 -2
  48. package/src/controller/control/form/form/form.controller.ts +26 -2
  49. package/src/controller/control/form/form-detail/form-detail/form-detail.controller.ts +102 -8
  50. package/src/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.ts +2 -2
  51. package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +2 -2
  52. package/src/interface/service/i-data-entity/i-data-entity.ts +22 -2
  53. package/src/interface/service/service/i-app-de.service.ts +16 -0
  54. package/src/logic-scheduler/scheduler/control-logic-scheduler.ts +2 -2
  55. package/src/logic-scheduler/trigger/timer-trigger.ts +4 -1
  56. package/src/model/view/view.ts +9 -1
  57. package/src/service/app-data-entity/app-data-entity.ts +21 -16
  58. package/src/service/service/control/control.service.ts +1 -2
  59. package/src/service/service/entity/de.service.ts +29 -5
  60. package/src/service/vo/control.vo.ts +101 -58
package/dist/index.esm.js CHANGED
@@ -18904,7 +18904,15 @@ function getViewEngines(view) {
18904
18904
  if (viewLayoutPanel) {
18905
18905
  appViewEngines.push(...viewLayoutPanel.appViewEngines || []);
18906
18906
  }
18907
- return appViewEngines;
18907
+ return appViewEngines.filter((engine) => {
18908
+ switch (engine.engineCat) {
18909
+ case "CTRL":
18910
+ ibiz.log.warn("\u672A\u652F\u6301\u7684\u5F15\u64CE\u5206\u7C7B\uFF1A".concat(engine.engineType));
18911
+ return false;
18912
+ default:
18913
+ return true;
18914
+ }
18915
+ });
18908
18916
  }
18909
18917
 
18910
18918
  // src/model/panel/data-container.ts
@@ -22936,6 +22944,7 @@ import { isArray as isArray3 } from "lodash-es";
22936
22944
  // src/service/app-data-entity/app-data-entity.ts
22937
22945
  import { clone as clone4, isNil as isNil7 } from "ramda";
22938
22946
  import { DataTypes } from "@ibiz-template/core";
22947
+ import { createUUID as createUUID2 } from "qx-util";
22939
22948
 
22940
22949
  // src/service/constant/srfuf.ts
22941
22950
  var Srfuf = /* @__PURE__ */ ((Srfuf2) => {
@@ -22947,7 +22956,7 @@ var Srfuf = /* @__PURE__ */ ((Srfuf2) => {
22947
22956
  // src/service/app-data-entity/app-data-entity.ts
22948
22957
  var AppDataEntity = class _AppDataEntity {
22949
22958
  get srfuf() {
22950
- return this.srfkey ? 1 /* UPDATE */ : 0 /* CREATE */;
22959
+ return this.srfkey === this.tempsrfkey ? 1 /* UPDATE */ : 0 /* CREATE */;
22951
22960
  }
22952
22961
  /**
22953
22962
  * Creates an instance of AppDataEntity.
@@ -22958,7 +22967,6 @@ var AppDataEntity = class _AppDataEntity {
22958
22967
  * @param {(IData | AppDataEntity)} data
22959
22968
  */
22960
22969
  constructor(entity, data) {
22961
- let _srfkey;
22962
22970
  Object.defineProperty(this, "_entity", {
22963
22971
  enumerable: false,
22964
22972
  configurable: true,
@@ -22985,20 +22993,12 @@ var AppDataEntity = class _AppDataEntity {
22985
22993
  );
22986
22994
  if (keyAppField) {
22987
22995
  const key = keyAppField.codeName.toLowerCase();
22988
- Object.defineProperty(this, "srfkeyfile", {
22996
+ Object.defineProperty(this, "srfkeyfield", {
22989
22997
  get() {
22990
22998
  return key;
22991
22999
  }
22992
23000
  });
22993
23001
  Object.defineProperty(this, "srfkey", {
22994
- set(val) {
22995
- _srfkey = val;
22996
- },
22997
- get() {
22998
- return this._data[key] || _srfkey;
22999
- }
23000
- });
23001
- Object.defineProperty(this, "srfsourcekey", {
23002
23002
  set(val) {
23003
23003
  this._data[key] = val;
23004
23004
  },
@@ -23015,7 +23015,7 @@ var AppDataEntity = class _AppDataEntity {
23015
23015
  );
23016
23016
  if (majorAppField) {
23017
23017
  const major = majorAppField.codeName.toLowerCase();
23018
- Object.defineProperty(this, "srfmajorfile", {
23018
+ Object.defineProperty(this, "srfmajorfield", {
23019
23019
  get() {
23020
23020
  return major;
23021
23021
  }
@@ -23031,6 +23031,12 @@ var AppDataEntity = class _AppDataEntity {
23031
23031
  } else {
23032
23032
  ibiz.log.warn("\u5B9E\u4F53[".concat(entity.codeName, "]\u672A\u914D\u7F6E\u4E3B\u6587\u672C\u5B57\u6BB5"));
23033
23033
  }
23034
+ Object.defineProperty(this, "tempsrfkey", {
23035
+ enumerable: false,
23036
+ configurable: true,
23037
+ writable: true,
23038
+ value: isNil7(this.srfkey) ? createUUID2() : this.srfkey
23039
+ });
23034
23040
  this.defineProperties();
23035
23041
  }
23036
23042
  /**
@@ -25260,27 +25266,54 @@ var DEService = class {
25260
25266
  });
25261
25267
  }
25262
25268
  /**
25263
- * 计算请求路径
25269
+ * 获取 AI 聊天会话历史记录
25264
25270
  *
25265
25271
  * @author chitanda
25266
- * @date 2023-10-12 11:10:56
25272
+ * @date 2023-10-26 14:10:58
25273
+ * @param {IParams} context
25274
+ * @param {IParams} [params={}]
25275
+ * @param {IData} [data={}]
25276
+ * @return {*} {Promise<IHttpResponse>}
25277
+ */
25278
+ aiChatHistory(context, params = {}, data = {}) {
25279
+ const app = ibiz.hub.getApp(this.model.appId);
25280
+ const path2 = this.calcSsePath(context, true);
25281
+ return app.net.post(path2, data, { srfactag: "AIChat", ...params });
25282
+ }
25283
+ /**
25284
+ * 计算 AI 请求路径
25285
+ *
25286
+ * @author chitanda
25287
+ * @date 2023-10-26 14:10:25
25267
25288
  * @protected
25268
25289
  * @param {IParams} context
25290
+ * @param {boolean} [isHistories=false]
25269
25291
  * @return {*} {string}
25270
25292
  */
25271
- calcSsePath(context) {
25293
+ calcSsePath(context, isHistories = false) {
25272
25294
  const srfkey = context[this.model.codeName.toLowerCase()];
25273
- const curPath = "/".concat(this.model.codeName2.toLowerCase(), "/ssechatcompletion").concat(srfkey ? "/".concat(srfkey) : "");
25295
+ const curPath = "/".concat(this.model.codeName2.toLowerCase(), "/ssechatcompletion").concat(isHistories ? "/histories" : "").concat(srfkey ? "/".concat(srfkey) : "");
25274
25296
  const resPath = calcResPath(context, this.model);
25275
25297
  return resPath + curPath;
25276
25298
  }
25277
25299
  };
25278
25300
 
25279
25301
  // src/service/service/control/control.service.ts
25280
- import { clone as clone12 } from "ramda";
25302
+ import { clone as clone12 } from "@ibiz-template/core";
25281
25303
 
25282
25304
  // src/service/vo/control.vo.ts
25305
+ import { createUUID as createUUID3 } from "qx-util";
25283
25306
  import { clone as clone11, isNil as isNil10 } from "ramda";
25307
+ var BuildInKeys = [
25308
+ "srfkey",
25309
+ "srfmajortext",
25310
+ "srfmajorfield",
25311
+ "srfkeyfield",
25312
+ "tempsrfkey",
25313
+ "srfuf",
25314
+ "srfdeid",
25315
+ "srfdecodename"
25316
+ ];
25284
25317
  var ControlVO = class _ControlVO {
25285
25318
  /**
25286
25319
  * Creates an instance of ControlVO.
@@ -25300,58 +25333,79 @@ var ControlVO = class _ControlVO {
25300
25333
  configurable: true,
25301
25334
  value: $dataUIMap || /* @__PURE__ */ new Map()
25302
25335
  });
25336
+ ["srfkey", "srfmajortext"].forEach((key) => {
25337
+ if (Object.prototype.hasOwnProperty.call(this.$origin, key)) {
25338
+ Object.defineProperty(this, key, {
25339
+ get() {
25340
+ return this.$origin.srfkey;
25341
+ },
25342
+ set(val) {
25343
+ this.$origin.srfkey = val;
25344
+ },
25345
+ enumerable: false,
25346
+ configurable: true
25347
+ });
25348
+ } else if (this.$dataUIMap.has(key)) {
25349
+ const { dataKey } = this.$dataUIMap.get(key);
25350
+ Object.defineProperty(this, key, {
25351
+ get() {
25352
+ return this.$origin[dataKey];
25353
+ },
25354
+ set(val) {
25355
+ this.$origin[dataKey] = val;
25356
+ },
25357
+ enumerable: false,
25358
+ configurable: true
25359
+ });
25360
+ } else {
25361
+ Object.defineProperty(this, key, {
25362
+ enumerable: false,
25363
+ configurable: true,
25364
+ writable: true,
25365
+ value: null
25366
+ });
25367
+ }
25368
+ });
25369
+ if (Object.prototype.hasOwnProperty.call(this.$origin, "tempsrfkey")) {
25370
+ Object.defineProperty(this, "tempsrfkey", {
25371
+ get() {
25372
+ return this.$origin.tempsrfkey;
25373
+ },
25374
+ set(val) {
25375
+ this.$origin.tempsrfkey = val;
25376
+ },
25377
+ enumerable: false,
25378
+ configurable: true
25379
+ });
25380
+ } else {
25381
+ Object.defineProperty(this, "tempsrfkey", {
25382
+ enumerable: false,
25383
+ configurable: true,
25384
+ writable: true,
25385
+ value: isNil10(this.srfkey) ? createUUID3() : this.srfkey
25386
+ });
25387
+ }
25303
25388
  Object.defineProperty(this, "srfuf", {
25304
25389
  get() {
25305
- if (isNil10(this.$origin.srfuf)) {
25306
- return this.srfkey ? 1 /* UPDATE */ : 0 /* CREATE */;
25390
+ if (Object.prototype.hasOwnProperty.call(this.$origin, "srfuf")) {
25391
+ return this.$origin.srfuf;
25307
25392
  }
25308
- return this.$origin.srfuf;
25309
- },
25310
- enumerable: false,
25311
- configurable: true
25312
- });
25313
- Object.defineProperty(this, "srfkey", {
25314
- get() {
25315
- return this.$origin.srfkey;
25316
- },
25317
- enumerable: false,
25318
- configurable: true
25319
- });
25320
- Object.defineProperty(this, "srfmajortext", {
25321
- get() {
25322
- return this.$origin.srfmajortext;
25323
- },
25324
- enumerable: false,
25325
- configurable: true
25326
- });
25327
- Object.defineProperty(this, "srfdeid", {
25328
- get() {
25329
- return this.$origin.srfdeid;
25330
- },
25331
- enumerable: false,
25332
- configurable: true
25333
- });
25334
- Object.defineProperty(this, "srfdecodename", {
25335
- get() {
25336
- return this.$origin.srfdecodename;
25337
- },
25338
- enumerable: false,
25339
- configurable: true
25340
- });
25341
- Object.defineProperty(this, "srfkeyfile", {
25342
- get() {
25343
- return this.$origin.srfkeyfile;
25344
- },
25345
- enumerable: false,
25346
- configurable: true
25347
- });
25348
- Object.defineProperty(this, "srfmajorfile", {
25349
- get() {
25350
- return this.$origin.srfmajorfile;
25393
+ return this.srfkey === this.tempsrfkey ? 1 /* UPDATE */ : 0 /* CREATE */;
25351
25394
  },
25352
25395
  enumerable: false,
25353
25396
  configurable: true
25354
25397
  });
25398
+ ["srfdeid", "srfdecodename", "srfkeyfield", "srfmajorfield"].forEach(
25399
+ (key) => {
25400
+ Object.defineProperty(this, key, {
25401
+ get() {
25402
+ return this.$origin[key];
25403
+ },
25404
+ enumerable: false,
25405
+ configurable: true
25406
+ });
25407
+ }
25408
+ );
25355
25409
  this.$dataUIMap.forEach((mapField, key) => {
25356
25410
  const value = mapField.dataKey;
25357
25411
  this.linkProperty(key, value, mapField);
@@ -25376,7 +25430,7 @@ var ControlVO = class _ControlVO {
25376
25430
  */
25377
25431
  linkProperty(uiKey, dataKey, mapField) {
25378
25432
  const isOriginField = mapField ? mapField.isOriginField : true;
25379
- if (uiKey === "srfuf") {
25433
+ if (BuildInKeys.includes(uiKey)) {
25380
25434
  return;
25381
25435
  }
25382
25436
  if (isOriginField || Object.prototype.hasOwnProperty.call(this.$origin, uiKey)) {
@@ -25384,7 +25438,7 @@ var ControlVO = class _ControlVO {
25384
25438
  enumerable: true,
25385
25439
  configurable: true,
25386
25440
  get() {
25387
- return uiKey === "srfkey" ? this.$origin[dataKey] || this.$origin[uiKey] : this.$origin[dataKey];
25441
+ return this.$origin[dataKey];
25388
25442
  },
25389
25443
  set(val) {
25390
25444
  this.$origin[dataKey] = val;
@@ -26185,7 +26239,7 @@ var CalendarItemData = class {
26185
26239
  };
26186
26240
 
26187
26241
  // src/service/mqtt/mqtt.service.ts
26188
- import { QXEvent as QXEvent2, createUUID as createUUID2, isNilOrEmpty as isNilOrEmpty6 } from "qx-util";
26242
+ import { QXEvent as QXEvent2, createUUID as createUUID4, isNilOrEmpty as isNilOrEmpty6 } from "qx-util";
26189
26243
  var MqttService = class {
26190
26244
  /**
26191
26245
  * Creates an instance of MqttService.
@@ -26217,7 +26271,7 @@ var MqttService = class {
26217
26271
  // 超时时间
26218
26272
  connectTimeout: 6e3,
26219
26273
  // 认证信息
26220
- clientId: createUUID2(),
26274
+ clientId: createUUID4(),
26221
26275
  username: "",
26222
26276
  password: "",
26223
26277
  // 心跳时间
@@ -26921,7 +26975,7 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
26921
26975
  })(PanelNotifyState || {});
26922
26976
 
26923
26977
  // src/controller/common/view/view.controller.ts
26924
- import { createUUID as createUUID4, notNilEmpty as notNilEmpty6 } from "qx-util";
26978
+ import { createUUID as createUUID6, notNilEmpty as notNilEmpty6 } from "qx-util";
26925
26979
  import { IBizContext as IBizContext2, RuntimeError as RuntimeError25 } from "@ibiz-template/core";
26926
26980
  import { isEmpty as isEmpty8, isNil as isNil17, isNotNil as isNotNil2 } from "ramda";
26927
26981
 
@@ -27716,7 +27770,7 @@ var ValueExUtil = class {
27716
27770
  // src/controller/utils/value-default/value-default.ts
27717
27771
  import { RuntimeError as RuntimeError23, ModelError as ModelError16 } from "@ibiz-template/core";
27718
27772
  import dayjs from "dayjs";
27719
- import { createUUID as createUUID3 } from "qx-util";
27773
+ import { createUUID as createUUID5 } from "qx-util";
27720
27774
  import { isNil as isNil15, isNotNil } from "ramda";
27721
27775
  function getDefaultValue(opts, origins) {
27722
27776
  var _a;
@@ -27761,7 +27815,7 @@ function getDefaultValue(opts, origins) {
27761
27815
  case "CONTEXT":
27762
27816
  return params[defaultValue];
27763
27817
  case "UNIQUEID":
27764
- return createUUID3();
27818
+ return createUUID5();
27765
27819
  default:
27766
27820
  throw new ModelError16({}, "\u9ED8\u8BA4\u503C\u7C7B\u578B[".concat(valueType, "]\u672A\u652F\u6301"));
27767
27821
  }
@@ -27861,12 +27915,12 @@ var BaseController = class {
27861
27915
  async created() {
27862
27916
  this.mountCounter.enroll(SELF_KEY);
27863
27917
  await this.onCreated();
27864
- this.state.isCreated = true;
27865
27918
  this.force(() => {
27866
27919
  this.mountSelf();
27867
27920
  });
27921
+ await this._evt.emit("onCreated", void 0);
27922
+ this.state.isCreated = true;
27868
27923
  ibiz.log.debug("".concat(this.constructor.name, ":").concat(this.name, " onCreated"));
27869
- this._evt.emit("onCreated", void 0);
27870
27924
  }
27871
27925
  /**
27872
27926
  * 生命周期-创建完成,实际执行逻辑,子类重写用这个
@@ -27908,9 +27962,9 @@ var BaseController = class {
27908
27962
  */
27909
27963
  async mounted() {
27910
27964
  await this.onMounted();
27965
+ await this._evt.emit("onMounted", void 0);
27911
27966
  this.state.isMounted = true;
27912
27967
  ibiz.log.debug("".concat(this.constructor.name, ":").concat(this.name, " onMounted"));
27913
- this._evt.emit("onMounted", void 0);
27914
27968
  }
27915
27969
  /**
27916
27970
  * 生命周期-加载完成,实际执行逻辑,子类重写用这个
@@ -27927,9 +27981,9 @@ var BaseController = class {
27927
27981
  */
27928
27982
  async destroyed() {
27929
27983
  await this.onDestroyed();
27984
+ await this._evt.emit("onDestroyed", void 0);
27930
27985
  this.state.isDestroyed = true;
27931
27986
  ibiz.log.debug("".concat(this.constructor.name, ":").concat(this.name, " onDestroyed"));
27932
- await this._evt.emit("onDestroyed", void 0);
27933
27987
  this.evt.destroy();
27934
27988
  }
27935
27989
  /**
@@ -28265,6 +28319,8 @@ var ViewController = class extends BaseController {
28265
28319
  const ins = ibiz.engine.getEngine(engine, this);
28266
28320
  if (ins) {
28267
28321
  this.engines.push(ins);
28322
+ } else {
28323
+ ibiz.log.warn("\u672A\u627E\u5230\u89C6\u56FE\u5F15\u64CE\u5B9E\u73B0\uFF1A", engine);
28268
28324
  }
28269
28325
  });
28270
28326
  } else {
@@ -28384,7 +28440,7 @@ var ViewController = class extends BaseController {
28384
28440
  handleContextParams() {
28385
28441
  this.context.srfappid = this.model.appId;
28386
28442
  if (isNil17(this.context.srfsessionid) || isEmpty8(this.context.srfsessionid)) {
28387
- this.context.srfsessionid = createUUID4();
28443
+ this.context.srfsessionid = createUUID6();
28388
28444
  }
28389
28445
  const navContexts = this.model.appViewNavContexts;
28390
28446
  let context = {};
@@ -28770,6 +28826,7 @@ var ControlController = class extends BaseController {
28770
28826
  this.state.isLoading = false;
28771
28827
  }
28772
28828
  async onCreated() {
28829
+ var _a;
28773
28830
  await super.onCreated();
28774
28831
  if (this.controlPanel) {
28775
28832
  this.childNames.push(this.controlPanel.name);
@@ -28778,6 +28835,15 @@ var ControlController = class extends BaseController {
28778
28835
  }
28779
28836
  this.handleControlParams();
28780
28837
  this.initControlScheduler(this.model.controlLogics);
28838
+ if ((_a = this.scheduler) == null ? void 0 : _a.hasControlEventTrigger) {
28839
+ this._evt.onAll((eventName, event) => {
28840
+ this.scheduler.triggerControlEvent(
28841
+ event.targetName,
28842
+ event.eventName,
28843
+ event
28844
+ );
28845
+ });
28846
+ }
28781
28847
  }
28782
28848
  async onMounted() {
28783
28849
  var _a;
@@ -34268,7 +34334,7 @@ var ChartExpBarController = class extends ExpBarControlController {
34268
34334
  import { mergeDefaultInLeft } from "@ibiz-template/core";
34269
34335
 
34270
34336
  // src/controller/control/form/form/form.controller.ts
34271
- import { debounceAndAsyncMerge } from "@ibiz-template/core";
34337
+ import { debounceAndAsyncMerge, recursiveIterate as recursiveIterate2 } from "@ibiz-template/core";
34272
34338
  var FormController = class extends ControlController {
34273
34339
  constructor() {
34274
34340
  super(...arguments);
@@ -34458,10 +34524,32 @@ var FormController = class extends ControlController {
34458
34524
  actionNotification(tag, opts) {
34459
34525
  super.actionNotification(tag, { data: this.data, ...opts || {} });
34460
34526
  }
34527
+ /**
34528
+ * 初始化部件逻辑调度器
34529
+ * @author lxm
34530
+ * @date 2023-08-21 11:53:37
34531
+ * @param {IControlLogic[]} logics
34532
+ * @return {*} {void}
34533
+ */
34534
+ initControlScheduler(logics = []) {
34535
+ const actualLogics = [...logics];
34536
+ recursiveIterate2(
34537
+ this.model,
34538
+ (item) => {
34539
+ if (item.controlLogics) {
34540
+ actualLogics.push(...item.controlLogics);
34541
+ }
34542
+ },
34543
+ {
34544
+ childrenFields: ["deformPages", "deformTabPages", "deformDetails"]
34545
+ }
34546
+ );
34547
+ super.initControlScheduler(actualLogics);
34548
+ }
34461
34549
  };
34462
34550
 
34463
34551
  // src/controller/control/form/search-form/search-form.service.ts
34464
- import { recursiveIterate as recursiveIterate2 } from "@ibiz-template/core";
34552
+ import { recursiveIterate as recursiveIterate3 } from "@ibiz-template/core";
34465
34553
  var SearchFormService = class extends ControlService {
34466
34554
  /**
34467
34555
  * 执行获取草稿方法
@@ -34485,7 +34573,7 @@ var SearchFormService = class extends ControlService {
34485
34573
  * @date 2022-08-31 18:08:37
34486
34574
  */
34487
34575
  initUIDataMap() {
34488
- recursiveIterate2(
34576
+ recursiveIterate3(
34489
34577
  this.model,
34490
34578
  (item) => {
34491
34579
  if (item.detailType === "FORMITEM") {
@@ -34723,6 +34811,29 @@ var FormDetailState = class {
34723
34811
  // src/controller/control/form/form-detail/form-detail/form-detail.controller.ts
34724
34812
  import { isOverlap } from "@ibiz-template/core";
34725
34813
  var FormDetailController = class {
34814
+ /**
34815
+ * Creates an instance of FormDetailController.
34816
+ * @author lxm
34817
+ * @date 2022-08-24 20:08:22
34818
+ * @param {T} model
34819
+ */
34820
+ constructor(model, form, parent) {
34821
+ /**
34822
+ * 动态逻辑结果
34823
+ * @author lxm
34824
+ * @date 2023-09-21 03:36:37
34825
+ * @protected
34826
+ */
34827
+ this.dynaLogicResult = {
34828
+ visible: true,
34829
+ disabled: false,
34830
+ required: false
34831
+ };
34832
+ this.model = model;
34833
+ this.form = form;
34834
+ this.parent = parent;
34835
+ this.state = this.createState();
34836
+ }
34726
34837
  /**
34727
34838
  * 表单数据
34728
34839
  *
@@ -34753,18 +34864,6 @@ var FormDetailController = class {
34753
34864
  get labelClass() {
34754
34865
  return [...this.state.class.label, ...this.state.class.labelDyna];
34755
34866
  }
34756
- /**
34757
- * Creates an instance of FormDetailController.
34758
- * @author lxm
34759
- * @date 2022-08-24 20:08:22
34760
- * @param {T} model
34761
- */
34762
- constructor(model, form, parent) {
34763
- this.model = model;
34764
- this.form = form;
34765
- this.parent = parent;
34766
- this.state = this.createState();
34767
- }
34768
34867
  /**
34769
34868
  * 子类不可覆盖或重写此方法,在 init 时需要重写的使用 onInit 方法。
34770
34869
  *
@@ -34811,6 +34910,9 @@ var FormDetailController = class {
34811
34910
  */
34812
34911
  async dataChangeNotify(names) {
34813
34912
  this.calcDynamicLogic(names);
34913
+ this.calcDetailDisabled(this.data);
34914
+ this.calcDetailVisible(this.data);
34915
+ this.calcDetailRequired(this.data);
34814
34916
  this.calcDynaClass(this.data);
34815
34917
  }
34816
34918
  /**
@@ -34819,8 +34921,11 @@ var FormDetailController = class {
34819
34921
  * @author lxm
34820
34922
  * @date 2022-09-20 18:09:07
34821
34923
  */
34822
- async formStateNotify(state) {
34823
- this.calcDynamicLogic([], state);
34924
+ async formStateNotify(_state) {
34925
+ this.calcDynamicLogic([], true);
34926
+ this.calcDetailDisabled(this.data);
34927
+ this.calcDetailVisible(this.data);
34928
+ this.calcDetailRequired(this.data);
34824
34929
  this.calcDynaClass(this.data);
34825
34930
  }
34826
34931
  /**
@@ -34830,28 +34935,28 @@ var FormDetailController = class {
34830
34935
  * @date 2022-09-20 19:09:20
34831
34936
  * @protected
34832
34937
  * @param {string[]} names 变更的属性集合
34833
- * @param {FormNotifyState} [state] 表单通知状态
34938
+ * @param {boolean} [mustCalc=false] 是否强制计算一遍动态逻辑
34834
34939
  * @returns {*} {void}
34835
34940
  */
34836
- calcDynamicLogic(names, state) {
34941
+ calcDynamicLogic(names, mustCalc = false) {
34837
34942
  var _a;
34838
34943
  if (this.parent && !this.parent.state.visible) {
34839
34944
  return;
34840
34945
  }
34841
34946
  (_a = this.model.defdgroupLogics) == null ? void 0 : _a.forEach((logic) => {
34842
34947
  const relatedNames = logic.relatedDetailNames || [];
34843
- if (state || isOverlap(relatedNames, names)) {
34948
+ if (mustCalc || isOverlap(relatedNames, names)) {
34844
34949
  try {
34845
34950
  const ok = verifyFormGroupLogic(this.form.data, logic);
34846
34951
  switch (logic.logicCat) {
34847
34952
  case "ITEMBLANK":
34848
- this.state.required = !ok;
34953
+ this.dynaLogicResult.required = !ok;
34849
34954
  break;
34850
34955
  case "ITEMENABLE":
34851
- this.state.disabled = !ok;
34956
+ this.dynaLogicResult.disabled = !ok;
34852
34957
  break;
34853
34958
  case "PANELVISIBLE":
34854
- this.state.visible = ok;
34959
+ this.dynaLogicResult.visible = ok;
34855
34960
  break;
34856
34961
  default:
34857
34962
  }
@@ -34890,6 +34995,63 @@ var FormDetailController = class {
34890
34995
  }
34891
34996
  }
34892
34997
  }
34998
+ /**
34999
+ * 计算项的禁用状态
35000
+ *
35001
+ * @param {IData} data
35002
+ */
35003
+ calcDetailDisabled(data) {
35004
+ let enable = !this.dynaLogicResult.disabled;
35005
+ if (enable && this.form.scheduler) {
35006
+ const itemEnable = this.form.scheduler.triggerItemEnable(this.model.id, {
35007
+ data: [data]
35008
+ });
35009
+ if (itemEnable !== void 0) {
35010
+ enable = itemEnable;
35011
+ }
35012
+ }
35013
+ this.state.disabled = !enable;
35014
+ }
35015
+ /**
35016
+ * 计算项的显示状态
35017
+ *
35018
+ * @param {IData} data
35019
+ */
35020
+ calcDetailVisible(data) {
35021
+ let { visible } = this.dynaLogicResult;
35022
+ if (visible && this.form.scheduler) {
35023
+ const itemVIsible = this.form.scheduler.triggerItemVisible(
35024
+ this.model.id,
35025
+ {
35026
+ data: [data]
35027
+ }
35028
+ );
35029
+ if (itemVIsible !== void 0) {
35030
+ visible = itemVIsible;
35031
+ }
35032
+ }
35033
+ this.state.visible = visible;
35034
+ }
35035
+ /**
35036
+ * 计算项的必填状态
35037
+ *
35038
+ * @param {IData} data
35039
+ */
35040
+ calcDetailRequired(data) {
35041
+ let allowEmpty = !this.dynaLogicResult.required;
35042
+ if (allowEmpty && this.form.scheduler) {
35043
+ const itemAllowEmpty = this.form.scheduler.triggerItemBlank(
35044
+ this.model.id,
35045
+ {
35046
+ data: [data]
35047
+ }
35048
+ );
35049
+ if (itemAllowEmpty !== void 0) {
35050
+ allowEmpty = itemAllowEmpty;
35051
+ }
35052
+ }
35053
+ this.state.required = !allowEmpty;
35054
+ }
34893
35055
  };
34894
35056
 
34895
35057
  // src/controller/control/form/form-detail/form-button/form-button.state.ts
@@ -34978,7 +35140,7 @@ var FormButtonController = class extends FormDetailController {
34978
35140
 
34979
35141
  // src/controller/control/form/form-detail/form-druipart/form-druipart.controller.ts
34980
35142
  import { isOverlap as isOverlap2 } from "@ibiz-template/core";
34981
- import { createUUID as createUUID5, notNilEmpty as notNilEmpty8 } from "qx-util";
35143
+ import { createUUID as createUUID7, notNilEmpty as notNilEmpty8 } from "qx-util";
34982
35144
 
34983
35145
  // src/controller/control/form/form-detail/form-druipart/form-druipart.state.ts
34984
35146
  var FormDruipartState = class extends FormDetailState {
@@ -35091,7 +35253,7 @@ var FormDRUIPartController = class extends FormDetailController {
35091
35253
  this.form.context
35092
35254
  );
35093
35255
  if (!this.state.viewComponentKey) {
35094
- this.state.viewComponentKey = createUUID5();
35256
+ this.state.viewComponentKey = createUUID7();
35095
35257
  this.navContext = newContext;
35096
35258
  this.navParams = newParams;
35097
35259
  } else if (JSON.stringify(this.navContext) !== JSON.stringify(newContext) || JSON.stringify(this.navParams) !== JSON.stringify(newParams)) {
@@ -35187,8 +35349,8 @@ var FormGroupPanelController = class extends FormDetailController {
35187
35349
  super.onInit();
35188
35350
  await this.initActionStates();
35189
35351
  }
35190
- async formStateNotify(state) {
35191
- super.calcDynamicLogic([], state);
35352
+ async formStateNotify(_state) {
35353
+ super.calcDynamicLogic([], true);
35192
35354
  if (this.state.actionGroupState) {
35193
35355
  this.state.actionGroupState.update(this.form.data.getOrigin());
35194
35356
  }
@@ -35470,9 +35632,9 @@ var FormItemController = class extends FormDetailController {
35470
35632
  this.setDefaultValue(false);
35471
35633
  }
35472
35634
  }
35473
- calcDynamicLogic(names, state) {
35635
+ calcDynamicLogic(names, mustCalc = false) {
35474
35636
  if (!this.model.hidden) {
35475
- super.calcDynamicLogic(names, state);
35637
+ super.calcDynamicLogic(names, mustCalc);
35476
35638
  }
35477
35639
  }
35478
35640
  /**
@@ -35778,11 +35940,12 @@ import {
35778
35940
  mergeDefaultInLeft as mergeDefaultInLeft2
35779
35941
  } from "@ibiz-template/core";
35780
35942
  import { debounce } from "lodash-es";
35943
+ import { createUUID as createUUID8 } from "qx-util";
35781
35944
  import { clone as clone18 } from "ramda";
35782
35945
 
35783
35946
  // src/controller/control/form/edit-form/edit-form.service.ts
35784
35947
  import {
35785
- recursiveIterate as recursiveIterate3,
35948
+ recursiveIterate as recursiveIterate4,
35786
35949
  RuntimeModelError as RuntimeModelError52
35787
35950
  } from "@ibiz-template/core";
35788
35951
  var EditFormService = class extends ControlService {
@@ -35998,7 +36161,7 @@ var EditFormService = class extends ControlService {
35998
36161
  // 向导预置
35999
36162
  "srfnextform"
36000
36163
  ];
36001
- recursiveIterate3(
36164
+ recursiveIterate4(
36002
36165
  this.model,
36003
36166
  (item) => {
36004
36167
  if (item.detailType === "FORMITEM" || item.detailType === "MDCTRL") {
@@ -36153,7 +36316,8 @@ var EditFormController = class extends FormController {
36153
36316
  } finally {
36154
36317
  await this.endLoading();
36155
36318
  }
36156
- res.data.$origin.srfsourcekey = void 0;
36319
+ res.data.srfkey = void 0;
36320
+ res.data.tempsrfkey = createUUID8();
36157
36321
  this.state.modified = false;
36158
36322
  this.state.data = res.data;
36159
36323
  this.formStateNotify("LOAD" /* LOAD */);
@@ -36238,6 +36402,7 @@ var EditFormController = class extends FormController {
36238
36402
  }
36239
36403
  if (res.data) {
36240
36404
  mergeInLeft(this.data, res.data);
36405
+ this.data.tempsrfkey = this.data.srfkey;
36241
36406
  }
36242
36407
  this.state.modified = false;
36243
36408
  await this.evt.emit("onSaveSuccess", void 0);
@@ -37441,7 +37606,7 @@ import {
37441
37606
  awaitTimeout as awaitTimeout2,
37442
37607
  debounceAndAsyncMerge as debounceAndAsyncMerge2,
37443
37608
  mergeDefaultInLeft as mergeDefaultInLeft3,
37444
- recursiveIterate as recursiveIterate4,
37609
+ recursiveIterate as recursiveIterate5,
37445
37610
  RuntimeError as RuntimeError45,
37446
37611
  RuntimeModelError as RuntimeModelError53
37447
37612
  } from "@ibiz-template/core";
@@ -37951,7 +38116,7 @@ var GridController = class extends MDControlController {
37951
38116
  * @return {*} {Promise<void>}
37952
38117
  */
37953
38118
  initColumnStates() {
37954
- recursiveIterate4(
38119
+ recursiveIterate5(
37955
38120
  this.model,
37956
38121
  (column) => {
37957
38122
  if (column.columnType !== "GROUPGRIDCOLUMN") {
@@ -39129,7 +39294,7 @@ var ListController = class extends MDControlController {
39129
39294
  };
39130
39295
 
39131
39296
  // src/controller/control/panel/panel/panel.controller.ts
39132
- import { recursiveIterate as recursiveIterate5, RuntimeError as RuntimeError47 } from "@ibiz-template/core";
39297
+ import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError47 } from "@ibiz-template/core";
39133
39298
  var PanelController = class extends ControlController {
39134
39299
  constructor() {
39135
39300
  super(...arguments);
@@ -39320,7 +39485,7 @@ var PanelController = class extends ControlController {
39320
39485
  }
39321
39486
  initControlScheduler(logics = []) {
39322
39487
  const actualLogics = [...logics];
39323
- recursiveIterate5(
39488
+ recursiveIterate6(
39324
39489
  this.model,
39325
39490
  (item) => {
39326
39491
  if (item.controlLogics) {
@@ -39819,7 +39984,7 @@ var PickupViewPanelController = class extends ControlController {
39819
39984
  };
39820
39985
 
39821
39986
  // src/controller/control/search-bar/search-bar.controller.ts
39822
- import { recursiveIterate as recursiveIterate6 } from "@ibiz-template/core";
39987
+ import { recursiveIterate as recursiveIterate7 } from "@ibiz-template/core";
39823
39988
  import { isNil as isNil22 } from "ramda";
39824
39989
 
39825
39990
  // src/controller/control/search-bar/search-bar-filter.controller.ts
@@ -40025,7 +40190,7 @@ var SearchBarController = class extends ControlController {
40025
40190
  }
40026
40191
  let hasFilter = false;
40027
40192
  let hasError = false;
40028
- recursiveIterate6(this.state.filterNodes[0], (node) => {
40193
+ recursiveIterate7(this.state.filterNodes[0], (node) => {
40029
40194
  if (node.leaf) {
40030
40195
  if (node.field && node.valueOP && !isNil22(node.value)) {
40031
40196
  hasFilter = true;
@@ -40285,7 +40450,7 @@ var TabExpPanelController = class extends ControlController {
40285
40450
  };
40286
40451
 
40287
40452
  // src/controller/control/tree/tree.controller.ts
40288
- import { recursiveIterate as recursiveIterate7 } from "@ibiz-template/core";
40453
+ import { recursiveIterate as recursiveIterate8 } from "@ibiz-template/core";
40289
40454
 
40290
40455
  // src/controller/control/tree/tree.service.ts
40291
40456
  import { ModelError as ModelError27 } from "@ibiz-template/core";
@@ -40655,7 +40820,7 @@ var TreeController = class extends MDControlController {
40655
40820
  this.state.rootNodes = nodes;
40656
40821
  }
40657
40822
  this.state.items = [];
40658
- recursiveIterate7(
40823
+ recursiveIterate8(
40659
40824
  { children: this.state.rootNodes },
40660
40825
  (node) => {
40661
40826
  this.state.items.push(node);
@@ -40797,7 +40962,7 @@ var TreeController = class extends MDControlController {
40797
40962
  */
40798
40963
  calcExpandedKeys(nodes) {
40799
40964
  let expandedKeys = [...this.state.expandedKeys];
40800
- recursiveIterate7({ children: nodes }, (node) => {
40965
+ recursiveIterate8({ children: nodes }, (node) => {
40801
40966
  var _a;
40802
40967
  if ((_a = node.children) == null ? void 0 : _a.length) {
40803
40968
  expandedKeys.push(node.id);
@@ -41687,7 +41852,7 @@ var KanbanController = class extends DataViewControlController {
41687
41852
  };
41688
41853
 
41689
41854
  // src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
41690
- import { recursiveIterate as recursiveIterate8 } from "@ibiz-template/core";
41855
+ import { recursiveIterate as recursiveIterate9 } from "@ibiz-template/core";
41691
41856
 
41692
41857
  // src/controller/control/tree-grid-ex/tree-grid-ex.service.ts
41693
41858
  import { isArray as isArray11 } from "qx-util";
@@ -41927,7 +42092,7 @@ var TreeGridExController = class extends MDControlController {
41927
42092
  * @memberof TreeGridExController
41928
42093
  */
41929
42094
  initColumnStates() {
41930
- recursiveIterate8(
42095
+ recursiveIterate9(
41931
42096
  this.model,
41932
42097
  (column) => {
41933
42098
  if (column.columnType !== "GROUPGRIDCOLUMN") {
@@ -42015,7 +42180,7 @@ var TreeGridExController = class extends MDControlController {
42015
42180
  this.state.rootNodes = nodes;
42016
42181
  }
42017
42182
  this.state.items = [];
42018
- recursiveIterate8(
42183
+ recursiveIterate9(
42019
42184
  { children: this.state.rootNodes },
42020
42185
  (node) => {
42021
42186
  this.state.items.push(node);
@@ -42034,7 +42199,7 @@ var TreeGridExController = class extends MDControlController {
42034
42199
  */
42035
42200
  calcExpandedKeys(nodes) {
42036
42201
  let expandedKeys = [];
42037
- recursiveIterate8({ children: nodes }, (node) => {
42202
+ recursiveIterate9({ children: nodes }, (node) => {
42038
42203
  var _a;
42039
42204
  if ((_a = node.children) == null ? void 0 : _a.length) {
42040
42205
  expandedKeys.push(node.id);
@@ -42058,7 +42223,7 @@ var TreeGridService = class extends GridService {
42058
42223
 
42059
42224
  // src/controller/control/medit-view-panel/medit-view-panel.controller.ts
42060
42225
  import { RuntimeError as RuntimeError50 } from "@ibiz-template/core";
42061
- import { createUUID as createUUID6 } from "qx-util";
42226
+ import { createUUID as createUUID9 } from "qx-util";
42062
42227
 
42063
42228
  // src/controller/control/medit-view-panel/medit-view-panel.service.ts
42064
42229
  var MEditViewPanelService = class extends MDControlService {
@@ -42145,7 +42310,7 @@ var MEditViewPanelController = class extends MDControlController {
42145
42310
  */
42146
42311
  handlePanelItemParams(arg) {
42147
42312
  const [{ parameterName }] = this.parameters;
42148
- const id = arg[parameterName] ? arg[parameterName] : "mockId:".concat(createUUID6());
42313
+ const id = arg[parameterName] ? arg[parameterName] : "mockId:".concat(createUUID9());
42149
42314
  const item = {
42150
42315
  id,
42151
42316
  context: this.context.clone(),
@@ -43702,7 +43867,7 @@ var ControlLogicScheduler = class extends LogicScheduler {
43702
43867
  );
43703
43868
  filterLogics.forEach((logic) => {
43704
43869
  if (logic.triggerType === "CTRLEVENT") {
43705
- logic.ctrlName = logic.itemName;
43870
+ logic.ctrlName = logic.itemName || logic.logicTag;
43706
43871
  }
43707
43872
  });
43708
43873
  super(filterLogics);
@@ -43930,13 +44095,16 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
43930
44095
  };
43931
44096
 
43932
44097
  // src/logic-scheduler/trigger/timer-trigger.ts
43933
- import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
44098
+ import { RuntimeError as RuntimeError57, RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
43934
44099
  var TimerTrigger = class extends LogicTrigger {
43935
44100
  constructor() {
43936
44101
  super(...arguments);
43937
44102
  this.timer = null;
43938
44103
  }
43939
44104
  start() {
44105
+ if (!this.logic.timer) {
44106
+ throw new RuntimeModelError61(this.logic, "\u5B9A\u65F6\u5668\u7F3A\u5C11\u5B9A\u65F6\u95F4\u9694");
44107
+ }
43940
44108
  this.timer = setInterval(() => {
43941
44109
  if (!this.scheduler.defaultParamsCb) {
43942
44110
  throw new RuntimeError57("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
@@ -43957,7 +44125,7 @@ var TimerTrigger = class extends LogicTrigger {
43957
44125
  import {
43958
44126
  ModelError as ModelError31,
43959
44127
  RuntimeError as RuntimeError58,
43960
- RuntimeModelError as RuntimeModelError61
44128
+ RuntimeModelError as RuntimeModelError62
43961
44129
  } from "@ibiz-template/core";
43962
44130
  import { notNilEmpty as notNilEmpty9 } from "qx-util";
43963
44131
  var AppUILogicExecutor = class extends LogicExecutor {
@@ -44001,7 +44169,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
44001
44169
  } else {
44002
44170
  openViewRef = appUILogic.openDataAppView;
44003
44171
  if (!openViewRef) {
44004
- throw new RuntimeModelError61(
44172
+ throw new RuntimeModelError62(
44005
44173
  appUILogic,
44006
44174
  "opendata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE"
44007
44175
  );
@@ -44009,7 +44177,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
44009
44177
  }
44010
44178
  const openView = openViewRef.refAppViewId;
44011
44179
  if (!openView) {
44012
- throw new RuntimeModelError61(
44180
+ throw new RuntimeModelError62(
44013
44181
  appUILogic,
44014
44182
  "opendata\u89C6\u56FE\u903B\u8F91\u7684\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE\u6CA1\u6709\u5B9E\u9645\u5F15\u7528\u89C6\u56FE"
44015
44183
  );
@@ -44036,7 +44204,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
44036
44204
  const appDataEntityId = parameters.view.model.appDataEntityId;
44037
44205
  const formTypeName = await getFormTypeFieldName(appDataEntityId);
44038
44206
  if (!formTypeName) {
44039
- throw new RuntimeModelError61(
44207
+ throw new RuntimeModelError62(
44040
44208
  appUILogic,
44041
44209
  "".concat(appDataEntityId, "\u5B9E\u4F53\u7F3A\u5C11\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027")
44042
44210
  );
@@ -44044,7 +44212,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
44044
44212
  const { data } = parameters;
44045
44213
  const formTypeValue = data[0][formTypeName];
44046
44214
  if (!formTypeValue) {
44047
- throw new RuntimeModelError61(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
44215
+ throw new RuntimeModelError62(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
44048
44216
  }
44049
44217
  const openViewRefs = appUILogic.openDataAppViews;
44050
44218
  const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
@@ -44086,7 +44254,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
44086
44254
  return viewRef.refMode.toLowerCase() !== parentDeName;
44087
44255
  });
44088
44256
  if (!newViewRef) {
44089
- throw new RuntimeModelError61(
44257
+ throw new RuntimeModelError62(
44090
44258
  appUILogic,
44091
44259
  "\u6CA1\u6709\u627E\u5230\u6279\u6DFB\u52A0\u9700\u8981\u6253\u5F00\u7684\u9009\u62E9\u89C6\u56FE"
44092
44260
  );
@@ -44096,7 +44264,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
44096
44264
  } else {
44097
44265
  newViewRef = newDataAppView;
44098
44266
  if (!newViewRef || !newViewRef.refAppViewId) {
44099
- throw new RuntimeModelError61(
44267
+ throw new RuntimeModelError62(
44100
44268
  appUILogic,
44101
44269
  "newdata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u65B0\u5EFA\u6570\u636E\u89C6\u56FE"
44102
44270
  );
@@ -44153,7 +44321,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
44153
44321
  const { wizardAppView, newDataAppViews } = appUILogic;
44154
44322
  const { context, params, ...rest } = parameters;
44155
44323
  if (!wizardAppView || !wizardAppView.refAppViewId) {
44156
- throw new RuntimeModelError61(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
44324
+ throw new RuntimeModelError62(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
44157
44325
  }
44158
44326
  const result = await ibiz.commands.execute(
44159
44327
  OpenAppViewCommand.TAG,
@@ -44199,7 +44367,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
44199
44367
  const minorDERs = selfDe.minorAppDERSs;
44200
44368
  const pickParentDeName = newViewRef.refMode.toLowerCase();
44201
44369
  if (!minorDERs) {
44202
- throw new RuntimeModelError61(selfDe, "\u5B9E\u4F53\u6CA1\u6709\u4ECE\u5173\u7CFB\u96C6\u5408\uFF01");
44370
+ throw new RuntimeModelError62(selfDe, "\u5B9E\u4F53\u6CA1\u6709\u4ECE\u5173\u7CFB\u96C6\u5408\uFF01");
44203
44371
  }
44204
44372
  let pickParentFieldName;
44205
44373
  minorDERs == null ? void 0 : minorDERs.forEach((item) => {