hoeditor-web 3.1.236 → 3.1.238

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.
@@ -108518,7 +108518,7 @@ const textParams = {
108518
108518
  /***/ (function(__unused_webpack_module, __webpack_exports__) {
108519
108519
 
108520
108520
  "use strict";
108521
- /* harmony default export */ __webpack_exports__.A = ('3.1.236');
108521
+ /* harmony default export */ __webpack_exports__.A = ('3.1.238');
108522
108522
 
108523
108523
  /***/ }),
108524
108524
 
@@ -130496,7 +130496,7 @@ var FingerPosition;
130496
130496
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\SignNode.ts
130497
130497
  */
130498
130498
  class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .BaseNode */ .Yp {
130499
- constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp) {
130499
+ constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
130500
130500
  super(hoEditorFactoryID, rootNodes, pNode, nodeType);
130501
130501
  (0,N_ai_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "_dataId", "");
130502
130502
  //dataId
@@ -130547,6 +130547,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .BaseNode */ .Y
130547
130547
  (0,N_ai_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "_associatedElement", "");
130548
130548
  //关联元素的dataid
130549
130549
  (0,N_ai_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "isTemp", false);
130550
+ (0,N_ai_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "innerIdentifier", "");
130550
130551
  const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
130551
130552
  this.number = number;
130552
130553
  this._type = type;
@@ -130619,6 +130620,15 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .BaseNode */ .Y
130619
130620
  if (otherProperties) {
130620
130621
  assignvalue(this._otherProperties, otherProperties);
130621
130622
  }
130623
+ if (innerIdentifier) {
130624
+ this.innerIdentifier = innerIdentifier;
130625
+ } else if (!this.innerIdentifier) {
130626
+ if (this.attribute == 1) {
130627
+ this.innerIdentifier = "sign_doctor_" + Math.random().toString(36).substring(2);
130628
+ } else {
130629
+ this.innerIdentifier = "sign_patient_" + Math.random().toString(36).substring(2);
130630
+ }
130631
+ }
130622
130632
  this.node2DrawNodeRange(0, 0);
130623
130633
  }
130624
130634
  // get id(): string {
@@ -130946,7 +130956,8 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .BaseNode */ .Y
130946
130956
  fingerPosition: clearSign ? 0 : this.fingerPosition,
130947
130957
  attribute: this.attribute,
130948
130958
  connectChar: this.connectChar,
130949
- otherProperties: this.otherProperties
130959
+ otherProperties: this.otherProperties,
130960
+ innerIdentifier: this.innerIdentifier
130950
130961
  };
130951
130962
  if (retObj.imgSrc.substring(0, 4) == 'http') {
130952
130963
  retObj.imgSrc = retObj.imgSrc.replace(`?_=${_components_version__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A}`, '');
@@ -130980,7 +130991,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .BaseNode */ .Y
130980
130991
  if (typeof json.fingerPrintSrc == 'object') {
130981
130992
  json.fingerPrintSrc = '';
130982
130993
  }
130983
- const signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Z6.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, isFront, allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties, json.dataId, json.associatedElement, isTemp);
130994
+ const signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Z6.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, isFront, allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties, json.dataId, json.associatedElement, isTemp, json.innerIdentifier);
130984
130995
  // 旧的上级医生签名锁定判断方式 上级医生签名位置 存bec01数组 病历加载时根据签名元素内的bec01处理
130985
130996
  let superLuck = Array.isArray(hoEditorFactory.superiorSigns) && hoEditorFactory.superiorSigns.includes(signNode.customProperty.bce01);
130986
130997
  // hoEditorFactory.forbidEditBeforeSign 锁定已签名元素前内容
@@ -233781,6 +233792,7 @@ class entry_lib_VueController {
233781
233792
  continue;
233782
233793
  }
233783
233794
  if (node instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM) {
233795
+ const nodeStyleIndex = node.StartMarkNode.styleIndex;
233784
233796
  if (text.includes("<TextInputFieldNode>")) {
233785
233797
  const json = x2js.xml2js(xml);
233786
233798
  const childNodes = new Array();
@@ -233790,6 +233802,9 @@ class entry_lib_VueController {
233790
233802
  for (let i = 1; i < item.length - 1; i++) {
233791
233803
  const anode = hoEditorFactory.structureConvert.convertNode(item[i], node.rootNodes, node);
233792
233804
  if (anode) {
233805
+ if (anode.styleIndex !== undefined) {
233806
+ anode.styleIndex = nodeStyleIndex;
233807
+ }
233793
233808
  if (anode instanceof entry_lib_TextNode/* TextNode */.E) {
233794
233809
  if (anode.text.length > [...anode.text].length) {
233795
233810
  //特殊处理生僻字
@@ -233809,6 +233824,9 @@ class entry_lib_VueController {
233809
233824
  //单个对象
233810
233825
  const bnode = hoEditorFactory.structureConvert.convertNode(item, node.rootNodes, node);
233811
233826
  if (bnode) {
233827
+ if (bnode.styleIndex !== undefined) {
233828
+ bnode.styleIndex = nodeStyleIndex;
233829
+ }
233812
233830
  if (bnode instanceof entry_lib_TextNode/* TextNode */.E) {
233813
233831
  if (bnode.text.length > [...bnode.text].length) {
233814
233832
  //特殊处理生僻字