hoeditor-web 2.0.66 → 2.0.69

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.
@@ -13504,8 +13504,11 @@ var DocController = /*#__PURE__*/function () {
13504
13504
 
13505
13505
  if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
13506
13506
  var firstPath = parentNode.StartMarkNode.getNodePath();
13507
- var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
13508
- curRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, firstPath, lastPath);
13507
+
13508
+ if (curRange.isEmpty && curRange.endPath == firstPath) {
13509
+ var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
13510
+ curRange.endPath = lastPath;
13511
+ }
13509
13512
  }
13510
13513
 
13511
13514
  if (!curRange.isEmpty) {
@@ -14061,7 +14064,7 @@ var DocController = /*#__PURE__*/function () {
14061
14064
  var preNode = node.previousLeaf();
14062
14065
  var nextNode = node.nextLeaf();
14063
14066
 
14064
- if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
14067
+ if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
14065
14068
  var path = hoEditorFactory.docTree.getNodeLastPath(preNode);
14066
14069
  var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, node.name === "" ? "医师签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
14067
14070
  hoEditorFactory.undoService.begin();
@@ -16771,11 +16774,11 @@ var DocController = /*#__PURE__*/function () {
16771
16774
 
16772
16775
  }, {
16773
16776
  key: "insertEmptySignNode",
16774
- value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
16777
+ value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
16775
16778
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
16776
16779
  var startPath = domRange.startPath;
16777
16780
  var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
16778
- var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime); //插入该表达式节点
16781
+ var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute); //插入该表达式节点
16779
16782
 
16780
16783
  hoEditorFactory.undoService.begin();
16781
16784
  hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
@@ -16796,7 +16799,15 @@ var DocController = /*#__PURE__*/function () {
16796
16799
  value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
16797
16800
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
16798
16801
  var startPath = domRange.startPath;
16799
- var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
16802
+ var parentNode = hoEditorFactory.docTree.getParentNode(startPath); // if (type == 1 && imgSrc != "" && imgWidth > 0 && parentNode instanceof CellNode) {
16803
+ // const cellWidth = parentNode.drawCell.dWidth;
16804
+ // const cellHeight = parentNode.getCellHeight();
16805
+ // if (cellWidth < imgWidth) {
16806
+ // imgHeight = ((cellWidth - 10) / imgWidth) * cellHeight;
16807
+ // imgWidth = (cellWidth - 10);
16808
+ // }
16809
+ // }
16810
+
16800
16811
  var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 1, type, name, 0, "医师签名", signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition); //插入该表达式节点
16801
16812
 
16802
16813
  hoEditorFactory.undoService.begin();
@@ -26334,7 +26345,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
26334
26345
  }
26335
26346
  }], [{
26336
26347
  key: "json2Node",
26337
- value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste) {
26348
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
26338
26349
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
26339
26350
  var rowNo = parseInt(json.rowNo);
26340
26351
  var colNo = parseInt(json.colNo);
@@ -26405,7 +26416,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
26405
26416
  cellNode.childNodes[0].styleIndex = Number(item[0].textStyleNo ? item[0].textStyleNo : 0);
26406
26417
 
26407
26418
  for (var j = 1; j < item.length; j++) {
26408
- var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste);
26419
+ var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
26409
26420
 
26410
26421
  if (convertNode) {
26411
26422
  if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_36__/* .TextNode */ .R) {
@@ -26413,7 +26424,17 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
26413
26424
  cellNode.addChild(convertNode);
26414
26425
  }
26415
26426
  } else {
26416
- cellNode.addChild(convertNode);
26427
+ if (isClearSign) {
26428
+ if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_33__/* .SignNode */ .N) {
26429
+ if (convertNode.isTemplate) {
26430
+ cellNode.addChild(convertNode);
26431
+ }
26432
+ } else {
26433
+ cellNode.addChild(convertNode);
26434
+ }
26435
+ } else {
26436
+ cellNode.addChild(convertNode);
26437
+ }
26417
26438
  }
26418
26439
  }
26419
26440
 
@@ -33864,7 +33885,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
33864
33885
 
33865
33886
  var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(SignNode);
33866
33887
 
33867
- function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition) {
33888
+ function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute) {
33868
33889
  var _this;
33869
33890
 
33870
33891
  (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
@@ -33908,11 +33929,22 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
33908
33929
 
33909
33930
  _this._PNGToJPG = 0; // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
33910
33931
 
33932
+ _this._attribute = 0; //签名属性 0:医生签名 1:患者签名
33933
+
33911
33934
  _this.number = number;
33912
33935
  _this._type = type;
33913
33936
  _this._signor = signor;
33914
33937
  _this._signTime = signTime;
33915
33938
  _this._imgSrc = imgSrc;
33939
+ _this._attribute = attribute === undefined ? 0 : attribute;
33940
+
33941
+ if (type == 3) {
33942
+ // 兼容旧的患者签名
33943
+ _this._attribute = 1;
33944
+ } // if(attribute == 1) { // 患者签名修改 type == 3
33945
+ // this._type = 3;
33946
+ // }
33947
+
33916
33948
 
33917
33949
  if (fingerPrintSrc) {
33918
33950
  _this._fingerPrintSrc = fingerPrintSrc;
@@ -33958,7 +33990,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
33958
33990
  });
33959
33991
  };
33960
33992
 
33961
- assignvalue(_this._customProperty, customProperty);
33993
+ if (customProperty) {
33994
+ assignvalue(_this._customProperty, customProperty);
33995
+ }
33962
33996
 
33963
33997
  _this.node2DrawNodeRange(0, 0);
33964
33998
 
@@ -34168,6 +34202,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34168
34202
  this.node2DrawNodeRange(0, 0);
34169
34203
  }
34170
34204
  }
34205
+ }, {
34206
+ key: "attribute",
34207
+ get: function get() {
34208
+ return this._attribute;
34209
+ },
34210
+ set: function set(value) {
34211
+ if (this._attribute !== value) {
34212
+ this._attribute = value;
34213
+ }
34214
+ }
34171
34215
  /**
34172
34216
  *
34173
34217
  * @param drawTree 绘制树
@@ -34272,7 +34316,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34272
34316
  isFront: this.isFront,
34273
34317
  allowEditSignTime: this.allowEditSignTime,
34274
34318
  fingerPrintSrc: clearSign ? "" : this.fingerPrintSrc,
34275
- fingerPosition: clearSign ? 0 : this.fingerPosition
34319
+ fingerPosition: clearSign ? 0 : this.fingerPosition,
34320
+ attribute: this.attribute
34276
34321
  };
34277
34322
 
34278
34323
  if (isCopy) {
@@ -34293,14 +34338,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34293
34338
  }
34294
34339
  }], [{
34295
34340
  key: "json2Node",
34296
- value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
34341
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign) {
34297
34342
  //const width = Number(json.width);
34298
- var number = Number(json.number);
34299
- var type = Number(json.type);
34300
- var imgWidth = Number(json.imgWidth);
34301
- var imgHeight = Number(json.imgHeight);
34343
+ var number = isClearSign ? 0 : Number(json.number);
34344
+ var type = isClearSign ? 0 : Number(json.type);
34345
+ var imgWidth = isClearSign ? 0 : Number(json.imgWidth);
34346
+ var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
34302
34347
  var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
34303
- var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType.ntSign */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", json.signor, json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", json.imgSrc, imgWidth, imgHeight, json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, json.isFront, json.allowEditSignTime, json.fingerPrintSrc, json.fingerPosition);
34348
+ var attribute = json.attribute ? Number(json.attribute) : 0;
34349
+ var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType.ntSign */ .Jq.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, json.isFront, json.allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute);
34304
34350
  signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0; //signNode.number = number;
34305
34351
  //signNode.width = width;
34306
34352
 
@@ -38350,7 +38396,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
38350
38396
  }
38351
38397
  }], [{
38352
38398
  key: "json2Node",
38353
- value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
38399
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
38354
38400
  json = this.transType(json);
38355
38401
  var tableProperty = json.tableProperty;
38356
38402
  tableProperty.customProperties = Array.isArray(tableProperty.customProperties.customProperty) ? tableProperty.customProperties.customProperty : Array(tableProperty.customProperties.customProperty);
@@ -38571,7 +38617,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
38571
38617
 
38572
38618
  var colNo = parseInt(_node.colNo);
38573
38619
  existMap.set(_rowNo + "-" + colNo, 1);
38574
- aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste);
38620
+ aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign);
38575
38621
  }
38576
38622
  } // console.log("json2node", 8);
38577
38623
  //console.log(existMap);
@@ -38764,7 +38810,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
38764
38810
  /*
38765
38811
  * @Author: your name
38766
38812
  * @Date: 2020-11-03 15:17:54
38767
- * @LastEditTime: 2022-05-18 20:22:59
38813
+ * @LastEditTime: 2022-07-13 14:11:55
38768
38814
  * @LastEditors: liyanan 2441631434@qq.com
38769
38815
  * @Description: In User Settings Edit
38770
38816
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -40590,7 +40636,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40590
40636
  }
40591
40637
  }], [{
40592
40638
  key: "json2Node",
40593
- value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
40639
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
40594
40640
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
40595
40641
  delete json.nodeType;
40596
40642
  this.transType(json);
@@ -40621,7 +40667,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40621
40667
  if (Array.isArray(item)) {
40622
40668
  //数组
40623
40669
  for (var i = 0; i < item.length; i++) {
40624
- var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp);
40670
+ var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
40625
40671
 
40626
40672
  if (node) {
40627
40673
  if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
@@ -40629,7 +40675,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40629
40675
  nodes.push(node);
40630
40676
  }
40631
40677
  } else {
40632
- nodes.push(node);
40678
+ if (isClearSign) {
40679
+ if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
40680
+ if (node.isTemplate) {
40681
+ nodes.push(node);
40682
+ }
40683
+ } else {
40684
+ nodes.push(node);
40685
+ }
40686
+ } else {
40687
+ nodes.push(node);
40688
+ }
40633
40689
  }
40634
40690
  }
40635
40691
 
@@ -40643,7 +40699,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40643
40699
  }
40644
40700
  } else {
40645
40701
  //单个对象
40646
- var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp);
40702
+ var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
40647
40703
 
40648
40704
  if (_node2) {
40649
40705
  if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
@@ -40651,7 +40707,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40651
40707
  nodes.push(_node2);
40652
40708
  }
40653
40709
  } else {
40654
- nodes.push(_node2);
40710
+ //nodes.push(node);
40711
+ if (isClearSign) {
40712
+ if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
40713
+ if (_node2.isTemplate) {
40714
+ nodes.push(_node2);
40715
+ }
40716
+ } else {
40717
+ nodes.push(_node2);
40718
+ }
40719
+ } else {
40720
+ nodes.push(_node2);
40721
+ }
40655
40722
  }
40656
40723
  }
40657
40724
 
@@ -44497,7 +44564,10 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44497
44564
  var curArea = hoEditorFactory.drawPageTree.getMainRootArea(markDrawNode);
44498
44565
 
44499
44566
  if (curArea) {
44500
- if (curArea.topDline === _this2.topDline) {
44567
+ // if (curArea.topDline === this.topDline) {
44568
+ // comments.set(value.id, value);
44569
+ // }
44570
+ if (curArea.index === _this2.index) {
44501
44571
  comments.set(value.id, value);
44502
44572
  }
44503
44573
  }
@@ -44575,6 +44645,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44575
44645
  value: function repaint(comment, nPath, spX, spY) {
44576
44646
  var _this3 = this;
44577
44647
 
44648
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
44578
44649
  var comments = this.areaComments;
44579
44650
  var topComments = new Array();
44580
44651
  var bottomComments = new Array();
@@ -44582,7 +44653,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44582
44653
 
44583
44654
  var getStagePos = function getStagePos(comment) {
44584
44655
  var endDrawNode = comment.eNode.drawNodes[0];
44585
- var dline = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this3._hoEditorFactoryID).drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
44656
+ var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
44586
44657
 
44587
44658
  var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
44588
44659
 
@@ -44595,7 +44666,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44595
44666
  var commentY = spY;
44596
44667
  comments.forEach(function (value) {
44597
44668
  if (value.id !== comment.id) {
44598
- tempArr.push(value);
44669
+ var area = hoEditorFactory.drawPageTree.getMainRootArea(value.eNode.drawNodes[0]);
44670
+
44671
+ if (area && area.index == _this3.index) {
44672
+ tempArr.push(value);
44673
+ }
44599
44674
  }
44600
44675
  });
44601
44676
  tempArr.forEach(function (value) {
@@ -46069,6 +46144,7 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
46069
46144
  dParent.addChild(dPartCell);
46070
46145
  this.drawPageCells.push(dPartCell);
46071
46146
  dPartCell.paintArea(this._drawLines, startDline, valignTop);
46147
+ dPartCell.valignTop = valignTop;
46072
46148
  ret = this._drawLines[this._drawLines.length - 1].dHeight + this._drawLines[this._drawLines.length - 1].dTop;
46073
46149
  }
46074
46150
  }, {
@@ -48261,7 +48337,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48261
48337
 
48262
48338
 
48263
48339
  return _this;
48264
- } // public get pageIndex(): number {
48340
+ } // public ge t pageIndex(): number {
48265
48341
  // return this._pageIndex;
48266
48342
  // }
48267
48343
  // public set pageIndex(value: number) {
@@ -48312,6 +48388,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48312
48388
  key: "valignTop",
48313
48389
  get: function get() {
48314
48390
  return this._valignTop;
48391
+ },
48392
+ set: function set(val) {
48393
+ this._valignTop = val;
48315
48394
  } // public get dPage(): DrawPage {
48316
48395
  // return this._dPage;
48317
48396
  // }
@@ -48781,7 +48860,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48781
48860
  var adjustValignTop = newValignTop - this._valignTop;
48782
48861
  this._valignTop = newValignTop;
48783
48862
 
48784
- for (var i = 0; i < this.numChildren - 1; i++) {
48863
+ for (var i = 0; i < this.numChildren; i++) {
48785
48864
  if (this.children[i] instanceof DrawLine/* DrawLine */.a || this.children[i] instanceof DrawPageTable/* DrawPageTable */.ox) {
48786
48865
  this.children[i].y += adjustValignTop;
48787
48866
  }
@@ -48824,12 +48903,10 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48824
48903
  }, {
48825
48904
  key: "update",
48826
48905
  value: function update(prevDrawArea, dlines, startIndex, dTop, restHeight) {
48827
- var valignTop = dTop;
48828
-
48829
- if (startIndex === 0) {
48830
- valignTop = this.calcValignTop();
48831
- this._valignTop = valignTop;
48832
- }
48906
+ var valignTop = dTop; // if (startIndex === 0) {
48907
+ // valignTop=this.calcValignTop();
48908
+ // this._valignTop=valignTop;
48909
+ // }
48833
48910
 
48834
48911
  this._startDline = startIndex;
48835
48912
 
@@ -49425,7 +49502,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49425
49502
 
49426
49503
  partCell.dHeight = newHeight;
49427
49504
  partCell.maxHeight = newHeight;
49428
- partCell.update(dPrevPartCell, partCell.cell.drawCell.drawLines, startChildIndex, 0, newHeight);
49505
+ partCell.update(dPrevPartCell, partCell.cell.drawCell.drawLines, startChildIndex, partCell.valignTop, newHeight);
49429
49506
  dPageTable.paintCellBorder(partCell, r, c, newHeight);
49430
49507
  }
49431
49508
  }, {
@@ -49916,7 +49993,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49916
49993
  dPartCell.x = aleft; //this.drawItems.push(dPartCell);
49917
49994
 
49918
49995
  this.addChild(dPartCell);
49919
- var ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, 0, cellMaxHeight);
49996
+ var ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
49920
49997
  dPartCell.y = cellRowTop;
49921
49998
  } else {
49922
49999
  dPartCell = cell.drawCell.drawPageCells[partCellindex + 1];
@@ -49940,7 +50017,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49940
50017
  dPartCell.maxHeight = tableRestHeight - cellRowTop;
49941
50018
  }
49942
50019
 
49943
- var _ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, 0, cellMaxHeight);
50020
+ var _ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
49944
50021
  }
49945
50022
 
49946
50023
  dPartCell.y = cellRowTop;
@@ -50146,7 +50223,13 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50146
50223
  var partCell = mainCell.drawCell.getDrawPageCell(this);
50147
50224
 
50148
50225
  if (partCell && aHeight) {
50149
- rowHeight = Math.max(aHeight, partCell.docHeight);
50226
+ var cellHeight = aHeight;
50227
+
50228
+ if (mainCell.rowSpan > 1) {
50229
+ cellHeight = partCell.dHeight;
50230
+ }
50231
+
50232
+ rowHeight = Math.max(cellHeight, partCell.docHeight);
50150
50233
  rowSpan = mainCell.rowSpan;
50151
50234
  }
50152
50235
  }
@@ -50469,7 +50552,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50469
50552
  dPartCell.x = aleft; //this.drawItems.push(dPartCell);
50470
50553
 
50471
50554
  this.addChild(dPartCell);
50472
- var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, 0, cellMaxHeight);
50555
+ var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
50473
50556
  dPartCell.y = cellRowTop;
50474
50557
  rowFinished = rowFinished && ret;
50475
50558
  } else {
@@ -50499,7 +50582,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50499
50582
 
50500
50583
  bRowHeightChanged = true;
50501
50584
 
50502
- var _ret2 = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, 0, cellMaxHeight);
50585
+ var _ret2 = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
50503
50586
 
50504
50587
  rowFinished = rowFinished && _ret2;
50505
50588
  } else if (_cell2.drawCell.drawPageCells.length > 1 && partCellindex + 1 < _cell2.drawCell.drawPageCells.length - 1 && !this._table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop) {
@@ -51716,7 +51799,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51716
51799
 
51717
51800
  image.onload = function () {
51718
51801
  var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
51719
- var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
51802
+ var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height; // 处理宽高和实际宽高相反的问题 --- 2.0.66版本问题 --2.0.68后版本临时处理 再过几个版本后可以删掉
51803
+
51804
+ var node = _this3.node;
51805
+ var nodeImageWidth = node.imgWidth;
51806
+ var nodeImageHeight = node.imgHeight;
51807
+
51808
+ if (image.naturalWidth > image.naturalHeight && nodeImageWidth < nodeImageHeight || image.naturalWidth < image.naturalHeight && node.imgWidth > node.imgHeight) {
51809
+ node.imgWidth = nodeImageHeight;
51810
+ node.imgHeight = nodeImageWidth;
51811
+ }
51812
+
51720
51813
  drawNode.dWidth = hitWidth * hoEditorFactory.signHeight / image.naturalHeight + _this3._drawText.getMeasuredWidth();
51721
51814
  var width = drawNode.dWidth;
51722
51815
 
@@ -53758,7 +53851,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
53758
53851
  }
53759
53852
  }
53760
53853
 
53761
- if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
53854
+ if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReadOnly */.Dh.psReadOnly && !hoEditorFactory.isHideComments) {
53762
53855
  var commentID = this._textNode.dCombineStyle.commentID;
53763
53856
  var createID = this._textNode.dCombineStyle.creatorIndex;
53764
53857
  var deleteID = this._textNode.dCombineStyle.deleterIndex;
@@ -63100,6 +63193,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63100
63193
  this._tmp.end = Arange.endPath;
63101
63194
 
63102
63195
  if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && s.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && s.parentNode.inputFieldType === 1 && (_s$parentNode$downLis = s.parentNode.downListProperty.listItems) !== null && _s$parentNode$downLis !== void 0 && _s$parentNode$downLis.includes("<元素>")) {
63196
+ this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(s.parentNode.EndMarkNode.previousLeaf());
63103
63197
  return true;
63104
63198
  }
63105
63199
 
@@ -207269,7 +207363,7 @@ var SignNode = __webpack_require__(34450);
207269
207363
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207270
207364
  var ParagraphNode = __webpack_require__(14208);
207271
207365
  ;// CONCATENATED MODULE: ./src/components/version.ts
207272
- /* harmony default export */ var version = ('2.0.66');
207366
+ /* harmony default export */ var version = ('2.0.69');
207273
207367
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
207274
207368
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
207275
207369
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -211918,7 +212012,7 @@ var StructureConvert = /*#__PURE__*/function () {
211918
212012
  }
211919
212013
  }, {
211920
212014
  key: "xml2Doc",
211921
- value: function xml2Doc(xml) {
212015
+ value: function xml2Doc(xml, isClearSign) {
211922
212016
  // xml = this.replaceNodesName(xml);
211923
212017
  // const x2js = new X2JS({ stripWhitespaces: false });
211924
212018
  // const object = x2js.xml2js(xml);
@@ -211970,7 +212064,7 @@ var StructureConvert = /*#__PURE__*/function () {
211970
212064
  var aobject = this.xml2Object(xml);
211971
212065
 
211972
212066
  if (aobject) {
211973
- return this.json2Doc(aobject);
212067
+ return this.json2Doc(aobject, isClearSign);
211974
212068
  } // if (json.rvxml) {
211975
212069
  // const rvxml = json.rvxml;
211976
212070
  // return;
@@ -212562,7 +212656,7 @@ var StructureConvert = /*#__PURE__*/function () {
212562
212656
  }
212563
212657
  }, {
212564
212658
  key: "json2Doc",
212565
- value: function json2Doc(xx) {
212659
+ value: function json2Doc(xx, isClearSign) {
212566
212660
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
212567
212661
  /*
212568
212662
  const pushChildNodes = (
@@ -212689,11 +212783,15 @@ var StructureConvert = /*#__PURE__*/function () {
212689
212783
  var histories = xx.userHistories;
212690
212784
  var historiesArr = histories.userHistory;
212691
212785
 
212786
+ if (historiesArr.length == undefined) {
212787
+ historiesArr = Array(historiesArr);
212788
+ }
212789
+
212692
212790
  for (var _i10 = 0; _i10 < historiesArr.length; _i10++) {
212693
212791
  var historyObj = historiesArr[_i10];
212694
212792
  var history = new UserHistory/* UserHistory */.R(this._hoEditorFactoryID, UserHistory/* HistoryEditType.hetCreate */.N.hetCreate);
212695
212793
  Object.assign(history, historyObj);
212696
- history.permissionLevel = Number(historyObj._permissionLevel);
212794
+ history.permissionLevel = Number(historyObj.permissionLevel);
212697
212795
  hoEditorFactory.docTree.userHistories.push(history);
212698
212796
  }
212699
212797
 
@@ -212835,7 +212933,7 @@ var StructureConvert = /*#__PURE__*/function () {
212835
212933
  }
212836
212934
 
212837
212935
  var node = hoEditorFactory.structureConvert.convertNode(header, //headerNodes[hi],
212838
- headerDocTree.subDocNodes, null, headerNode.subDocNodes);
212936
+ headerDocTree.subDocNodes, null, headerNode.subDocNodes, undefined, isClearSign);
212839
212937
 
212840
212938
  if (node) {
212841
212939
  node.rootPath = "header/" + hi.toString(); // if (node instanceof BaseCombineNode) {
@@ -212895,7 +212993,7 @@ var StructureConvert = /*#__PURE__*/function () {
212895
212993
  }
212896
212994
 
212897
212995
  var _node2 = hoEditorFactory.structureConvert.convertNode(footer, //footerNodes[fi],
212898
- footSubDocTree.subDocNodes, null, footerNode.subDocNodes);
212996
+ footSubDocTree.subDocNodes, null, footerNode.subDocNodes, undefined, isClearSign);
212899
212997
 
212900
212998
  if (_node2) {
212901
212999
  _node2.rootPath = "footer/" + fi.toString(); // if (node instanceof BaseCombineNode) {
@@ -212940,7 +213038,7 @@ var StructureConvert = /*#__PURE__*/function () {
212940
213038
  continue;
212941
213039
  }
212942
213040
 
212943
- var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes);
213041
+ var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
212944
213042
 
212945
213043
  if (_node3) {
212946
213044
  // if (node instanceof BaseCombineNode && temp.childNode) {
@@ -213084,7 +213182,7 @@ var StructureConvert = /*#__PURE__*/function () {
213084
213182
  }
213085
213183
  }, {
213086
213184
  key: "convertNode",
213087
- value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste) {
213185
+ value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign) {
213088
213186
  if (temp === "") {
213089
213187
  return undefined;
213090
213188
  }
@@ -213120,7 +213218,7 @@ var StructureConvert = /*#__PURE__*/function () {
213120
213218
  return undefined;
213121
213219
  }
213122
213220
 
213123
- var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
213221
+ var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
213124
213222
  return node;
213125
213223
  } else if (temp.nodeType == BaseNode/* NodeType.ntParagraph */.Jq.ntParagraph) {
213126
213224
  return ParagraphNode/* ParagraphNode.json2Node */.C.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
@@ -213157,7 +213255,7 @@ var StructureConvert = /*#__PURE__*/function () {
213157
213255
  return RadioAndCheckBoxNode/* RadioAndCheckBoxNode.json2Node */.Yh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
213158
213256
  }
213159
213257
  } else if (temp.nodeType == BaseNode/* NodeType.ntField */.Jq.ntField) {
213160
- return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
213258
+ return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
213161
213259
  } else if (temp.nodeType == BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar) {
213162
213260
  return SpecialCharsNode/* SpecialCharsNode.json2Node */.y.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213163
213261
  } else if (temp.nodeType == BaseNode/* NodeType.ntMark */.Jq.ntMark) {
@@ -213173,7 +213271,7 @@ var StructureConvert = /*#__PURE__*/function () {
213173
213271
  } else if (temp.nodeType == BaseNode/* NodeType.ntLabel */.Jq.ntLabel) {
213174
213272
  return LabelNode/* LabelNode.json2Node */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213175
213273
  } else if (temp.nodeType == BaseNode/* NodeType.ntSign */.Jq.ntSign) {
213176
- return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213274
+ return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
213177
213275
  } else if (temp.nodeType == BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
213178
213276
  return GestationNode/* GestationNode.json2Node */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213179
213277
  }
@@ -213267,13 +213365,13 @@ var StructureConvert = /*#__PURE__*/function () {
213267
213365
  }
213268
213366
  }, {
213269
213367
  key: "openXml",
213270
- value: function openXml(xml, callback, isDelBlockLine) {
213368
+ value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
213271
213369
  var _this4 = this;
213272
213370
 
213273
213371
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
213274
213372
  this._superiorSign = [];
213275
213373
  hoEditorFactory.isThrowError = false;
213276
- var nodes = hoEditorFactory.structureConvert.xml2Doc(xml);
213374
+ var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
213277
213375
  Promise.resolve().then(function () {
213278
213376
  hoEditorFactory.drawTree.updateDrawTreeFirstLine();
213279
213377
 
@@ -218973,12 +219071,16 @@ var VueController = /*#__PURE__*/function () {
218973
219071
  /**
218974
219072
  * 读取 xml
218975
219073
  * @param xml
219074
+ * @param callback 是否回调
219075
+ * @param isDelBlockLine 是否删掉正文末尾的空行
219076
+ * @param isRender
219077
+ * @param isClearSign 加载时是否清空签名元素内容
218976
219078
  */
218977
219079
 
218978
219080
  }, {
218979
219081
  key: "openXml",
218980
219082
  value: function () {
218981
- var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender) {
219083
+ var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender, isClearSign) {
218982
219084
  var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent;
218983
219085
 
218984
219086
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5) {
@@ -219023,7 +219125,7 @@ var VueController = /*#__PURE__*/function () {
219023
219125
  }
219024
219126
 
219025
219127
  _context5.next = 15;
219026
- return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine);
219128
+ return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
219027
219129
 
219028
219130
  case 15:
219029
219131
  case "end":
@@ -219033,7 +219135,7 @@ var VueController = /*#__PURE__*/function () {
219033
219135
  }, _callee5, this);
219034
219136
  }));
219035
219137
 
219036
- function openXml(_x8, _x9, _x10, _x11) {
219138
+ function openXml(_x8, _x9, _x10, _x11, _x12) {
219037
219139
  return _openXml.apply(this, arguments);
219038
219140
  }
219039
219141
 
@@ -219178,8 +219280,8 @@ var VueController = /*#__PURE__*/function () {
219178
219280
  if (node instanceof SignNode/* SignNode */.N) {
219179
219281
  var nextNode = node.nextLeaf();
219180
219282
 
219181
- if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
219182
- var signNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 0, 0, node.name === "" ? "签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
219283
+ if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
219284
+ var signNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 0, 0, node.name === "" ? "签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, '', undefined, node.attribute);
219183
219285
  hoEditorFactory.undoService.begin();
219184
219286
  hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
219185
219287
  hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
@@ -219414,7 +219516,7 @@ var VueController = /*#__PURE__*/function () {
219414
219516
 
219415
219517
  }, {
219416
219518
  key: "insertEmptySignNode",
219417
- value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
219519
+ value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
219418
219520
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219419
219521
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
219420
219522
  var startPath = curDomRange.normalize().startPath;
@@ -219422,7 +219524,7 @@ var VueController = /*#__PURE__*/function () {
219422
219524
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
219423
219525
 
219424
219526
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219425
- hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime);
219527
+ hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute);
219426
219528
  }
219427
219529
  }
219428
219530
  /**
@@ -220020,7 +220122,7 @@ var VueController = /*#__PURE__*/function () {
220020
220122
  }, _callee6, this);
220021
220123
  }));
220022
220124
 
220023
- function updateElementText(_x12, _x13, _x14) {
220125
+ function updateElementText(_x13, _x14, _x15) {
220024
220126
  return _updateElementText.apply(this, arguments);
220025
220127
  }
220026
220128
 
@@ -220330,7 +220432,7 @@ var VueController = /*#__PURE__*/function () {
220330
220432
  }, _callee7, this);
220331
220433
  }));
220332
220434
 
220333
- function getBase64(_x15) {
220435
+ function getBase64(_x16) {
220334
220436
  return _getBase.apply(this, arguments);
220335
220437
  }
220336
220438
 
@@ -220358,11 +220460,19 @@ var VueController = /*#__PURE__*/function () {
220358
220460
  var newNode = newcurDomRange.npEnd.node;
220359
220461
 
220360
220462
  if (newNode instanceof SignNode/* SignNode */.N) {
220361
- hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition);
220463
+ Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
220464
+ setTimeout(function () {
220465
+ callback && callback();
220466
+ }, 0);
220467
+ });
220362
220468
  }
220363
220469
  }, 0);
220364
220470
  } else {
220365
- hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition);
220471
+ Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
220472
+ setTimeout(function () {
220473
+ callback && callback();
220474
+ }, 0);
220475
+ });
220366
220476
  }
220367
220477
  } else {
220368
220478
  this.deleteNode(node);
@@ -220786,6 +220896,20 @@ var VueController = /*#__PURE__*/function () {
220786
220896
  if (curDomRange.isEmpty) return;
220787
220897
  var result = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath, true);
220788
220898
  var nodes = result[0];
220899
+ var isHaveParaNodes = false;
220900
+
220901
+ for (var m = 0; m < nodes.length; m++) {
220902
+ if (nodes[m] instanceof ParagraphNode/* ParagraphNode */.C) {
220903
+ isHaveParaNodes = true;
220904
+ break;
220905
+ }
220906
+ }
220907
+
220908
+ if (!isHaveParaNodes) {
220909
+ message_box_default().alert("选区内没有换行符,无需清除.");
220910
+
220911
+ return;
220912
+ }
220789
220913
 
220790
220914
  for (var i = 0; i < nodes.length; i++) {
220791
220915
  var node = nodes[i];
@@ -220935,37 +221059,6 @@ var VueController = /*#__PURE__*/function () {
220935
221059
  });
220936
221060
  drawTree.commentsMap = commentsMap;
220937
221061
  }
220938
- /**
220939
- * 查询是否存在医生签名
220940
- * @returns boolean
220941
- */
220942
-
220943
- }, {
220944
- key: "getAllSignNode",
220945
- value: function getAllSignNode() {
220946
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220947
- var isHasDoctorSign = false;
220948
-
220949
- var getAllNodes = function getAllNodes(nodes) {
220950
- for (var i = 0; i < nodes.length; i++) {
220951
- var node = nodes[i];
220952
-
220953
- if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
220954
- isHasDoctorSign = true;
220955
- break; // 医生签名已存在的情况中断当前层的遍历
220956
- }
220957
-
220958
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
220959
- // 医生签名已存在的情况不在深层调用深层遍历
220960
- getAllNodes(node.childNodes);
220961
- }
220962
- }
220963
- };
220964
-
220965
- var mainNodes = hoEditorFactory.docTree.mainNodes;
220966
- getAllNodes(mainNodes);
220967
- return isHasDoctorSign;
220968
- }
220969
221062
  }, {
220970
221063
  key: "SyncElements",
220971
221064
  value: function SyncElements() {
@@ -221036,6 +221129,9 @@ var VueController = /*#__PURE__*/function () {
221036
221129
  value: function showElementsEditRecord(objects) {
221037
221130
  var comments = [];
221038
221131
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221132
+ hoEditorFactory.vueController.setPageProperty(JSON.stringify({
221133
+ commentWidthMm: 50
221134
+ }));
221039
221135
 
221040
221136
  for (var i = 0; i < objects.length; i++) {
221041
221137
  var object = objects[i];
@@ -221094,6 +221190,9 @@ var VueController = /*#__PURE__*/function () {
221094
221190
  key: "clearEditRecords",
221095
221191
  value: function clearEditRecords() {
221096
221192
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221193
+ hoEditorFactory.vueController.setPageProperty(JSON.stringify({
221194
+ commentWidthMm: 0
221195
+ }));
221097
221196
  var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
221098
221197
 
221099
221198
  for (var j = drawMainDocs.length - 1; j >= 0; j--) {
@@ -221128,6 +221227,83 @@ var VueController = /*#__PURE__*/function () {
221128
221227
  value: function setParaCustomProperty(paragraphNode, customProperty) {
221129
221228
  paragraphNode.setCustomProperty(customProperty);
221130
221229
  }
221230
+ /**
221231
+ * 查询是否有空签名元素
221232
+ * @returns boolean
221233
+ */
221234
+
221235
+ }, {
221236
+ key: "getAllEmptySignNode",
221237
+ value: function getAllEmptySignNode(attribute) {
221238
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221239
+ var hasEmptySign = false;
221240
+
221241
+ var getAllNodes = function getAllNodes(nodes) {
221242
+ for (var i = 0; i < nodes.length; i++) {
221243
+ var node = nodes[i];
221244
+
221245
+ if (node instanceof SignNode/* SignNode */.N) {
221246
+ // 空的患者签名
221247
+ if (attribute == 1 && node.attribute === 1 && node.imgSrc === '' && node.fingerPrintSrc === '') {
221248
+ hasEmptySign = true;
221249
+ break;
221250
+ } // 空的医生签名
221251
+
221252
+
221253
+ if (attribute == 0 && node.attribute === 0 && node.imgSrc === '') {
221254
+ hasEmptySign = true;
221255
+ break;
221256
+ } // 空的签名
221257
+
221258
+
221259
+ if (attribute == undefined && node.imgSrc === '' && node.fingerPrintSrc === '') {
221260
+ hasEmptySign = true;
221261
+ break;
221262
+ }
221263
+ }
221264
+
221265
+ if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !hasEmptySign) {
221266
+ // 医生签名已存在的情况不在深层调用深层遍历
221267
+ getAllNodes(node.childNodes);
221268
+ }
221269
+ }
221270
+ };
221271
+
221272
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
221273
+ getAllNodes(mainNodes);
221274
+ return hasEmptySign;
221275
+ }
221276
+ /**
221277
+ * 查询是否存在医生签名
221278
+ * @returns boolean
221279
+ */
221280
+
221281
+ }, {
221282
+ key: "getAllSignNode",
221283
+ value: function getAllSignNode() {
221284
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221285
+ var isHasDoctorSign = false;
221286
+
221287
+ var getAllNodes = function getAllNodes(nodes) {
221288
+ for (var i = 0; i < nodes.length; i++) {
221289
+ var node = nodes[i];
221290
+
221291
+ if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
221292
+ isHasDoctorSign = true;
221293
+ break; // 医生签名已存在的情况中断当前层的遍历
221294
+ }
221295
+
221296
+ if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
221297
+ // 医生签名已存在的情况不在深层调用深层遍历
221298
+ getAllNodes(node.childNodes);
221299
+ }
221300
+ }
221301
+ };
221302
+
221303
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
221304
+ getAllNodes(mainNodes);
221305
+ return isHasDoctorSign;
221306
+ }
221131
221307
  }]);
221132
221308
 
221133
221309
  return VueController;
@@ -223543,8 +223719,16 @@ var PrintController = /*#__PURE__*/function () {
223543
223719
  hoEditorFactory.vueController.openXml(xml);
223544
223720
  } else {
223545
223721
  hoEditorFactory.drawTree.paintStatus = beforeStatus;
223546
- hoEditorFactory.printStatus.clearArea();
223547
- hoEditorFactory.printStatus.drawPrintRecord.clear();
223722
+ hoEditorFactory.drawTree.drawPages.forEach(function (dPage) {
223723
+ var _dPage$selectContaine;
223724
+
223725
+ if (dPage.drawSelectLevel && !dPage.drawSelectLevel.stage) {
223726
+ dPage.drawSelectLevel.bindStage();
223727
+ }
223728
+
223729
+ dPage.selectContainer.children = [];
223730
+ (_dPage$selectContaine = dPage.selectContainer.stage) === null || _dPage$selectContaine === void 0 ? void 0 : _dPage$selectContaine.update();
223731
+ });
223548
223732
  hoEditorFactory.vueController.rebuildAll(true);
223549
223733
  }
223550
223734
  }
@@ -223805,6 +223989,7 @@ var PrintController = /*#__PURE__*/function () {
223805
223989
  hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState.psPreview */.Dh.psPreview;
223806
223990
  xmlIndex = -1;
223807
223991
  mergeList = [];
223992
+ continuousid = '';
223808
223993
  options = {
223809
223994
  unit: 'px',
223810
223995
  hotfixes: ['px_scaling'],
@@ -223856,6 +224041,10 @@ var PrintController = /*#__PURE__*/function () {
223856
224041
  position = {};
223857
224042
  }
223858
224043
 
224044
+ if (continuousid && xmlList[xmlIndex][2] !== continuousid) {
224045
+ mergeList = [];
224046
+ }
224047
+
223859
224048
  continuousid = xmlList[xmlIndex][2];
223860
224049
  mergeList.push([xmlList[xmlIndex][1], xmlList[xmlIndex][0]]);
223861
224050
 
@@ -223867,14 +224056,13 @@ var PrintController = /*#__PURE__*/function () {
223867
224056
  } else {
223868
224057
  hoEditorFactory.loadImageCallback = toPrint;
223869
224058
  }
223870
-
223871
- mergeList = [];
223872
224059
  });
223873
224060
  } else {
223874
224061
  createSvg();
223875
224062
  }
223876
224063
  } else {
223877
224064
  mergeList = [];
224065
+ continuousid = '';
223878
224066
  Promise.all([hoEditorFactory.vueController.openXml(xmlList[xmlIndex][0])]).then(function () {
223879
224067
  if (hoEditorFactory.loadImageCount === 0) {
223880
224068
  toPrint();
@@ -223910,7 +224098,7 @@ var PrintController = /*#__PURE__*/function () {
223910
224098
 
223911
224099
  createSvg();
223912
224100
 
223913
- case 13:
224101
+ case 14:
223914
224102
  case "end":
223915
224103
  return _context8.stop();
223916
224104
  }
@@ -229173,9 +229361,9 @@ var Delimiter_component = normalizeComponent(
229173
229361
  ;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
229174
229362
 
229175
229363
  /* harmony default export */ var delimiter = (delimiter_Delimiter);
229176
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=6c042af0&
229177
- var Signvue_type_template_id_6c042af0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"paDDing":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("常规签名")]),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义签名")])],1),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数:     医师签名 / "),_c('br'),_vm._v("   勾选参数:     / 医师签名 ")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1):_vm._e()]),(_vm.signType === 1)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
229178
- var Signvue_type_template_id_6c042af0_staticRenderFns = []
229364
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=9b7c7d28&
229365
+ var Signvue_type_template_id_9b7c7d28_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("患者签名")]),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("医生签名")]),_c('el-radio',{attrs:{"label":2},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义医生签名")])],1),(_vm.signType === 2)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数:     医师签名 / "),_c('br'),_vm._v("   勾选参数:     / 医师签名")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1)]:_vm._e()],2),(_vm.signType === 2)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
229366
+ var Signvue_type_template_id_9b7c7d28_staticRenderFns = []
229179
229367
 
229180
229368
 
229181
229369
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=script&lang=ts&
@@ -229210,7 +229398,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229210
229398
 
229211
229399
  _this = _super.apply(this, arguments);
229212
229400
  _this.height = 20;
229213
- _this.name = "";
229401
+ _this.name = '';
229214
229402
  _this.signType = 0;
229215
229403
  _this.signFormat = '<医师姓名>';
229216
229404
  _this.connectMode = '换行';
@@ -229219,7 +229407,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229219
229407
  _this.signTimeFormat = 'yyyy-MM-DD HH:mm';
229220
229408
  _this.customFormatContent = '';
229221
229409
  _this.customSignFormatList = [];
229222
- _this.animationClassNames = "control-modal-contents sign-modal animation-in";
229410
+ _this.animationClassNames = 'control-modal-contents sign-modal animation-in';
229223
229411
  return _this;
229224
229412
  } // 创建自定义签名格式
229225
229413
 
@@ -229227,7 +229415,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229227
229415
  (0,createClass/* default */.Z)(Sign, [{
229228
229416
  key: "createSignFormat",
229229
229417
  value: function createSignFormat() {
229230
- var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, "");
229418
+ var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
229231
229419
  var customList = ['<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'];
229232
229420
  this.$elMessage.closeAll();
229233
229421
 
@@ -229242,7 +229430,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229242
229430
  return;
229243
229431
  }
229244
229432
 
229245
- var format = ["<医师姓名>", "<医师姓名>(<医师职称>)", "<医师姓名>:<医师职称>", "<医师姓名>:<医师职称>\n<签名时间>"].concat();
229433
+ var format = ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'].concat();
229246
229434
  this.customSignFormatList.forEach(function (v) {
229247
229435
  return format.push(v.value);
229248
229436
  });
@@ -229251,7 +229439,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229251
229439
  return v === customFormat.slice(1, customFormat.length - 1);
229252
229440
  }).length > 0) {
229253
229441
  this.$elMessage.warning({
229254
- message: "签名格式已存在无需插入,已自动选中",
229442
+ message: '签名格式已存在无需插入,已自动选中',
229255
229443
  duration: 3000,
229256
229444
  offset: 120
229257
229445
  });
@@ -229267,17 +229455,12 @@ var Sign = /*#__PURE__*/function (_Vue) {
229267
229455
  }, {
229268
229456
  key: "insertSign",
229269
229457
  value: function insertSign() {
229270
- if (this.signType === 1) {
229271
- // console.log(this.name ? this.name : "签名",
229272
- // this.signType,
229273
- // this.signFormat,
229274
- // this.connectMode,
229275
- // this.isFront,
229276
- // this.allowEditSignTime)
229277
- this.vueController.insertEmptySignNode(this.name ? this.name : "签名", this.signType, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime);
229278
- } else {
229279
- this.vueController.insertEmptySignNode(this.name ? this.name : "签名" //,
229280
- );
229458
+ if (this.signType === 2) {
229459
+ // 多人签名
229460
+ this.vueController.insertEmptySignNode(this.name ? this.name : '医生签名', 1, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime, 0);
229461
+ } else {
229462
+ var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
229463
+ this.vueController.insertEmptySignNode(name, 0, '', '', '', undefined, undefined, this.signType);
229281
229464
  }
229282
229465
 
229283
229466
  this.handleClose();
@@ -229285,8 +229468,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
229285
229468
  }, {
229286
229469
  key: "handleClose",
229287
229470
  value: function handleClose() {
229288
- this.animationClassNames = "control-modal-contents sign-modal animation-out";
229289
- this.$emit("closed");
229471
+ this.animationClassNames = 'control-modal-contents sign-modal animation-out';
229472
+ this.$emit('closed');
229290
229473
  }
229291
229474
  }]);
229292
229475
 
@@ -229298,7 +229481,7 @@ __decorate([Prop()], Sign.prototype, "vueController", void 0);
229298
229481
  __decorate([Prop()], Sign.prototype, "controlStatus", void 0);
229299
229482
 
229300
229483
  Sign = __decorate([vue_class_component_esm({
229301
- name: "Sign",
229484
+ name: 'Sign',
229302
229485
  components: {
229303
229486
  HoColorPicker: HoColorPicker
229304
229487
  }
@@ -229322,8 +229505,8 @@ Sign = __decorate([vue_class_component_esm({
229322
229505
 
229323
229506
  var Sign_component = normalizeComponent(
229324
229507
  sign_Signvue_type_script_lang_ts_,
229325
- Signvue_type_template_id_6c042af0_render,
229326
- Signvue_type_template_id_6c042af0_staticRenderFns,
229508
+ Signvue_type_template_id_9b7c7d28_render,
229509
+ Signvue_type_template_id_9b7c7d28_staticRenderFns,
229327
229510
  false,
229328
229511
  null,
229329
229512
  null,