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.
@@ -13514,8 +13514,11 @@ var DocController = /*#__PURE__*/function () {
13514
13514
 
13515
13515
  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) {
13516
13516
  var firstPath = parentNode.StartMarkNode.getNodePath();
13517
- var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
13518
- curRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, firstPath, lastPath);
13517
+
13518
+ if (curRange.isEmpty && curRange.endPath == firstPath) {
13519
+ var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
13520
+ curRange.endPath = lastPath;
13521
+ }
13519
13522
  }
13520
13523
 
13521
13524
  if (!curRange.isEmpty) {
@@ -14071,7 +14074,7 @@ var DocController = /*#__PURE__*/function () {
14071
14074
  var preNode = node.previousLeaf();
14072
14075
  var nextNode = node.nextLeaf();
14073
14076
 
14074
- 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)) {
14077
+ 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)) {
14075
14078
  var path = hoEditorFactory.docTree.getNodeLastPath(preNode);
14076
14079
  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);
14077
14080
  hoEditorFactory.undoService.begin();
@@ -16781,11 +16784,11 @@ var DocController = /*#__PURE__*/function () {
16781
16784
 
16782
16785
  }, {
16783
16786
  key: "insertEmptySignNode",
16784
- value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
16787
+ value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
16785
16788
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
16786
16789
  var startPath = domRange.startPath;
16787
16790
  var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
16788
- 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); //插入该表达式节点
16791
+ 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); //插入该表达式节点
16789
16792
 
16790
16793
  hoEditorFactory.undoService.begin();
16791
16794
  hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
@@ -16806,7 +16809,15 @@ var DocController = /*#__PURE__*/function () {
16806
16809
  value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
16807
16810
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
16808
16811
  var startPath = domRange.startPath;
16809
- var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
16812
+ var parentNode = hoEditorFactory.docTree.getParentNode(startPath); // if (type == 1 && imgSrc != "" && imgWidth > 0 && parentNode instanceof CellNode) {
16813
+ // const cellWidth = parentNode.drawCell.dWidth;
16814
+ // const cellHeight = parentNode.getCellHeight();
16815
+ // if (cellWidth < imgWidth) {
16816
+ // imgHeight = ((cellWidth - 10) / imgWidth) * cellHeight;
16817
+ // imgWidth = (cellWidth - 10);
16818
+ // }
16819
+ // }
16820
+
16810
16821
  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); //插入该表达式节点
16811
16822
 
16812
16823
  hoEditorFactory.undoService.begin();
@@ -26344,7 +26355,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
26344
26355
  }
26345
26356
  }], [{
26346
26357
  key: "json2Node",
26347
- value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste) {
26358
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
26348
26359
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
26349
26360
  var rowNo = parseInt(json.rowNo);
26350
26361
  var colNo = parseInt(json.colNo);
@@ -26415,7 +26426,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
26415
26426
  cellNode.childNodes[0].styleIndex = Number(item[0].textStyleNo ? item[0].textStyleNo : 0);
26416
26427
 
26417
26428
  for (var j = 1; j < item.length; j++) {
26418
- var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste);
26429
+ var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
26419
26430
 
26420
26431
  if (convertNode) {
26421
26432
  if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_36__/* .TextNode */ .R) {
@@ -26423,7 +26434,17 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
26423
26434
  cellNode.addChild(convertNode);
26424
26435
  }
26425
26436
  } else {
26426
- cellNode.addChild(convertNode);
26437
+ if (isClearSign) {
26438
+ if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_33__/* .SignNode */ .N) {
26439
+ if (convertNode.isTemplate) {
26440
+ cellNode.addChild(convertNode);
26441
+ }
26442
+ } else {
26443
+ cellNode.addChild(convertNode);
26444
+ }
26445
+ } else {
26446
+ cellNode.addChild(convertNode);
26447
+ }
26427
26448
  }
26428
26449
  }
26429
26450
 
@@ -33874,7 +33895,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
33874
33895
 
33875
33896
  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);
33876
33897
 
33877
- 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) {
33898
+ 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) {
33878
33899
  var _this;
33879
33900
 
33880
33901
  (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
@@ -33918,11 +33939,22 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
33918
33939
 
33919
33940
  _this._PNGToJPG = 0; // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
33920
33941
 
33942
+ _this._attribute = 0; //签名属性 0:医生签名 1:患者签名
33943
+
33921
33944
  _this.number = number;
33922
33945
  _this._type = type;
33923
33946
  _this._signor = signor;
33924
33947
  _this._signTime = signTime;
33925
33948
  _this._imgSrc = imgSrc;
33949
+ _this._attribute = attribute === undefined ? 0 : attribute;
33950
+
33951
+ if (type == 3) {
33952
+ // 兼容旧的患者签名
33953
+ _this._attribute = 1;
33954
+ } // if(attribute == 1) { // 患者签名修改 type == 3
33955
+ // this._type = 3;
33956
+ // }
33957
+
33926
33958
 
33927
33959
  if (fingerPrintSrc) {
33928
33960
  _this._fingerPrintSrc = fingerPrintSrc;
@@ -33968,7 +34000,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
33968
34000
  });
33969
34001
  };
33970
34002
 
33971
- assignvalue(_this._customProperty, customProperty);
34003
+ if (customProperty) {
34004
+ assignvalue(_this._customProperty, customProperty);
34005
+ }
33972
34006
 
33973
34007
  _this.node2DrawNodeRange(0, 0);
33974
34008
 
@@ -34178,6 +34212,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34178
34212
  this.node2DrawNodeRange(0, 0);
34179
34213
  }
34180
34214
  }
34215
+ }, {
34216
+ key: "attribute",
34217
+ get: function get() {
34218
+ return this._attribute;
34219
+ },
34220
+ set: function set(value) {
34221
+ if (this._attribute !== value) {
34222
+ this._attribute = value;
34223
+ }
34224
+ }
34181
34225
  /**
34182
34226
  *
34183
34227
  * @param drawTree 绘制树
@@ -34282,7 +34326,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34282
34326
  isFront: this.isFront,
34283
34327
  allowEditSignTime: this.allowEditSignTime,
34284
34328
  fingerPrintSrc: clearSign ? "" : this.fingerPrintSrc,
34285
- fingerPosition: clearSign ? 0 : this.fingerPosition
34329
+ fingerPosition: clearSign ? 0 : this.fingerPosition,
34330
+ attribute: this.attribute
34286
34331
  };
34287
34332
 
34288
34333
  if (isCopy) {
@@ -34303,14 +34348,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34303
34348
  }
34304
34349
  }], [{
34305
34350
  key: "json2Node",
34306
- value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
34351
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign) {
34307
34352
  //const width = Number(json.width);
34308
- var number = Number(json.number);
34309
- var type = Number(json.type);
34310
- var imgWidth = Number(json.imgWidth);
34311
- var imgHeight = Number(json.imgHeight);
34353
+ var number = isClearSign ? 0 : Number(json.number);
34354
+ var type = isClearSign ? 0 : Number(json.type);
34355
+ var imgWidth = isClearSign ? 0 : Number(json.imgWidth);
34356
+ var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
34312
34357
  var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
34313
- 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);
34358
+ var attribute = json.attribute ? Number(json.attribute) : 0;
34359
+ 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);
34314
34360
  signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0; //signNode.number = number;
34315
34361
  //signNode.width = width;
34316
34362
 
@@ -38360,7 +38406,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
38360
38406
  }
38361
38407
  }], [{
38362
38408
  key: "json2Node",
38363
- value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
38409
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
38364
38410
  json = this.transType(json);
38365
38411
  var tableProperty = json.tableProperty;
38366
38412
  tableProperty.customProperties = Array.isArray(tableProperty.customProperties.customProperty) ? tableProperty.customProperties.customProperty : Array(tableProperty.customProperties.customProperty);
@@ -38581,7 +38627,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
38581
38627
 
38582
38628
  var colNo = parseInt(_node.colNo);
38583
38629
  existMap.set(_rowNo + "-" + colNo, 1);
38584
- aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste);
38630
+ aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign);
38585
38631
  }
38586
38632
  } // console.log("json2node", 8);
38587
38633
  //console.log(existMap);
@@ -38774,7 +38820,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
38774
38820
  /*
38775
38821
  * @Author: your name
38776
38822
  * @Date: 2020-11-03 15:17:54
38777
- * @LastEditTime: 2022-05-18 20:22:59
38823
+ * @LastEditTime: 2022-07-13 14:11:55
38778
38824
  * @LastEditors: liyanan 2441631434@qq.com
38779
38825
  * @Description: In User Settings Edit
38780
38826
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -40600,7 +40646,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40600
40646
  }
40601
40647
  }], [{
40602
40648
  key: "json2Node",
40603
- value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
40649
+ value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
40604
40650
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
40605
40651
  delete json.nodeType;
40606
40652
  this.transType(json);
@@ -40631,7 +40677,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40631
40677
  if (Array.isArray(item)) {
40632
40678
  //数组
40633
40679
  for (var i = 0; i < item.length; i++) {
40634
- var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp);
40680
+ var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
40635
40681
 
40636
40682
  if (node) {
40637
40683
  if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
@@ -40639,7 +40685,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40639
40685
  nodes.push(node);
40640
40686
  }
40641
40687
  } else {
40642
- nodes.push(node);
40688
+ if (isClearSign) {
40689
+ if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
40690
+ if (node.isTemplate) {
40691
+ nodes.push(node);
40692
+ }
40693
+ } else {
40694
+ nodes.push(node);
40695
+ }
40696
+ } else {
40697
+ nodes.push(node);
40698
+ }
40643
40699
  }
40644
40700
  }
40645
40701
 
@@ -40653,7 +40709,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40653
40709
  }
40654
40710
  } else {
40655
40711
  //单个对象
40656
- var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp);
40712
+ var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
40657
40713
 
40658
40714
  if (_node2) {
40659
40715
  if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
@@ -40661,7 +40717,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
40661
40717
  nodes.push(_node2);
40662
40718
  }
40663
40719
  } else {
40664
- nodes.push(_node2);
40720
+ //nodes.push(node);
40721
+ if (isClearSign) {
40722
+ if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
40723
+ if (_node2.isTemplate) {
40724
+ nodes.push(_node2);
40725
+ }
40726
+ } else {
40727
+ nodes.push(_node2);
40728
+ }
40729
+ } else {
40730
+ nodes.push(_node2);
40731
+ }
40665
40732
  }
40666
40733
  }
40667
40734
 
@@ -44507,7 +44574,10 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44507
44574
  var curArea = hoEditorFactory.drawPageTree.getMainRootArea(markDrawNode);
44508
44575
 
44509
44576
  if (curArea) {
44510
- if (curArea.topDline === _this2.topDline) {
44577
+ // if (curArea.topDline === this.topDline) {
44578
+ // comments.set(value.id, value);
44579
+ // }
44580
+ if (curArea.index === _this2.index) {
44511
44581
  comments.set(value.id, value);
44512
44582
  }
44513
44583
  }
@@ -44585,6 +44655,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44585
44655
  value: function repaint(comment, nPath, spX, spY) {
44586
44656
  var _this3 = this;
44587
44657
 
44658
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
44588
44659
  var comments = this.areaComments;
44589
44660
  var topComments = new Array();
44590
44661
  var bottomComments = new Array();
@@ -44592,7 +44663,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44592
44663
 
44593
44664
  var getStagePos = function getStagePos(comment) {
44594
44665
  var endDrawNode = comment.eNode.drawNodes[0];
44595
- var dline = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this3._hoEditorFactoryID).drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
44666
+ var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
44596
44667
 
44597
44668
  var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
44598
44669
 
@@ -44605,7 +44676,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44605
44676
  var commentY = spY;
44606
44677
  comments.forEach(function (value) {
44607
44678
  if (value.id !== comment.id) {
44608
- tempArr.push(value);
44679
+ var area = hoEditorFactory.drawPageTree.getMainRootArea(value.eNode.drawNodes[0]);
44680
+
44681
+ if (area && area.index == _this3.index) {
44682
+ tempArr.push(value);
44683
+ }
44609
44684
  }
44610
44685
  });
44611
44686
  tempArr.forEach(function (value) {
@@ -46079,6 +46154,7 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
46079
46154
  dParent.addChild(dPartCell);
46080
46155
  this.drawPageCells.push(dPartCell);
46081
46156
  dPartCell.paintArea(this._drawLines, startDline, valignTop);
46157
+ dPartCell.valignTop = valignTop;
46082
46158
  ret = this._drawLines[this._drawLines.length - 1].dHeight + this._drawLines[this._drawLines.length - 1].dTop;
46083
46159
  }
46084
46160
  }, {
@@ -48271,7 +48347,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48271
48347
 
48272
48348
 
48273
48349
  return _this;
48274
- } // public get pageIndex(): number {
48350
+ } // public ge t pageIndex(): number {
48275
48351
  // return this._pageIndex;
48276
48352
  // }
48277
48353
  // public set pageIndex(value: number) {
@@ -48322,6 +48398,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48322
48398
  key: "valignTop",
48323
48399
  get: function get() {
48324
48400
  return this._valignTop;
48401
+ },
48402
+ set: function set(val) {
48403
+ this._valignTop = val;
48325
48404
  } // public get dPage(): DrawPage {
48326
48405
  // return this._dPage;
48327
48406
  // }
@@ -48791,7 +48870,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48791
48870
  var adjustValignTop = newValignTop - this._valignTop;
48792
48871
  this._valignTop = newValignTop;
48793
48872
 
48794
- for (var i = 0; i < this.numChildren - 1; i++) {
48873
+ for (var i = 0; i < this.numChildren; i++) {
48795
48874
  if (this.children[i] instanceof DrawLine/* DrawLine */.a || this.children[i] instanceof DrawPageTable/* DrawPageTable */.ox) {
48796
48875
  this.children[i].y += adjustValignTop;
48797
48876
  }
@@ -48834,12 +48913,10 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
48834
48913
  }, {
48835
48914
  key: "update",
48836
48915
  value: function update(prevDrawArea, dlines, startIndex, dTop, restHeight) {
48837
- var valignTop = dTop;
48838
-
48839
- if (startIndex === 0) {
48840
- valignTop = this.calcValignTop();
48841
- this._valignTop = valignTop;
48842
- }
48916
+ var valignTop = dTop; // if (startIndex === 0) {
48917
+ // valignTop=this.calcValignTop();
48918
+ // this._valignTop=valignTop;
48919
+ // }
48843
48920
 
48844
48921
  this._startDline = startIndex;
48845
48922
 
@@ -49435,7 +49512,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49435
49512
 
49436
49513
  partCell.dHeight = newHeight;
49437
49514
  partCell.maxHeight = newHeight;
49438
- partCell.update(dPrevPartCell, partCell.cell.drawCell.drawLines, startChildIndex, 0, newHeight);
49515
+ partCell.update(dPrevPartCell, partCell.cell.drawCell.drawLines, startChildIndex, partCell.valignTop, newHeight);
49439
49516
  dPageTable.paintCellBorder(partCell, r, c, newHeight);
49440
49517
  }
49441
49518
  }, {
@@ -49926,7 +50003,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49926
50003
  dPartCell.x = aleft; //this.drawItems.push(dPartCell);
49927
50004
 
49928
50005
  this.addChild(dPartCell);
49929
- var ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, 0, cellMaxHeight);
50006
+ var ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
49930
50007
  dPartCell.y = cellRowTop;
49931
50008
  } else {
49932
50009
  dPartCell = cell.drawCell.drawPageCells[partCellindex + 1];
@@ -49950,7 +50027,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49950
50027
  dPartCell.maxHeight = tableRestHeight - cellRowTop;
49951
50028
  }
49952
50029
 
49953
- var _ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, 0, cellMaxHeight);
50030
+ var _ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
49954
50031
  }
49955
50032
 
49956
50033
  dPartCell.y = cellRowTop;
@@ -50156,7 +50233,13 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50156
50233
  var partCell = mainCell.drawCell.getDrawPageCell(this);
50157
50234
 
50158
50235
  if (partCell && aHeight) {
50159
- rowHeight = Math.max(aHeight, partCell.docHeight);
50236
+ var cellHeight = aHeight;
50237
+
50238
+ if (mainCell.rowSpan > 1) {
50239
+ cellHeight = partCell.dHeight;
50240
+ }
50241
+
50242
+ rowHeight = Math.max(cellHeight, partCell.docHeight);
50160
50243
  rowSpan = mainCell.rowSpan;
50161
50244
  }
50162
50245
  }
@@ -50479,7 +50562,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50479
50562
  dPartCell.x = aleft; //this.drawItems.push(dPartCell);
50480
50563
 
50481
50564
  this.addChild(dPartCell);
50482
- var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, 0, cellMaxHeight);
50565
+ var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
50483
50566
  dPartCell.y = cellRowTop;
50484
50567
  rowFinished = rowFinished && ret;
50485
50568
  } else {
@@ -50509,7 +50592,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50509
50592
 
50510
50593
  bRowHeightChanged = true;
50511
50594
 
50512
- var _ret2 = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, 0, cellMaxHeight);
50595
+ var _ret2 = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
50513
50596
 
50514
50597
  rowFinished = rowFinished && _ret2;
50515
50598
  } else if (_cell2.drawCell.drawPageCells.length > 1 && partCellindex + 1 < _cell2.drawCell.drawPageCells.length - 1 && !this._table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop) {
@@ -51726,7 +51809,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51726
51809
 
51727
51810
  image.onload = function () {
51728
51811
  var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
51729
- var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
51812
+ var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height; // 处理宽高和实际宽高相反的问题 --- 2.0.66版本问题 --2.0.68后版本临时处理 再过几个版本后可以删掉
51813
+
51814
+ var node = _this3.node;
51815
+ var nodeImageWidth = node.imgWidth;
51816
+ var nodeImageHeight = node.imgHeight;
51817
+
51818
+ if (image.naturalWidth > image.naturalHeight && nodeImageWidth < nodeImageHeight || image.naturalWidth < image.naturalHeight && node.imgWidth > node.imgHeight) {
51819
+ node.imgWidth = nodeImageHeight;
51820
+ node.imgHeight = nodeImageWidth;
51821
+ }
51822
+
51730
51823
  drawNode.dWidth = hitWidth * hoEditorFactory.signHeight / image.naturalHeight + _this3._drawText.getMeasuredWidth();
51731
51824
  var width = drawNode.dWidth;
51732
51825
 
@@ -53768,7 +53861,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
53768
53861
  }
53769
53862
  }
53770
53863
 
53771
- if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
53864
+ if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReadOnly */.Dh.psReadOnly && !hoEditorFactory.isHideComments) {
53772
53865
  var commentID = this._textNode.dCombineStyle.commentID;
53773
53866
  var createID = this._textNode.dCombineStyle.creatorIndex;
53774
53867
  var deleteID = this._textNode.dCombineStyle.deleterIndex;
@@ -63110,6 +63203,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63110
63203
  this._tmp.end = Arange.endPath;
63111
63204
 
63112
63205
  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("<元素>")) {
63206
+ this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(s.parentNode.EndMarkNode.previousLeaf());
63113
63207
  return true;
63114
63208
  }
63115
63209
 
@@ -207279,7 +207373,7 @@ var SignNode = __webpack_require__(78975);
207279
207373
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207280
207374
  var ParagraphNode = __webpack_require__(13880);
207281
207375
  ;// CONCATENATED MODULE: ./src/components/version.ts
207282
- /* harmony default export */ var version = ('2.0.66');
207376
+ /* harmony default export */ var version = ('2.0.69');
207283
207377
  ;// 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&
207284
207378
  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)}
207285
207379
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -211928,7 +212022,7 @@ var StructureConvert = /*#__PURE__*/function () {
211928
212022
  }
211929
212023
  }, {
211930
212024
  key: "xml2Doc",
211931
- value: function xml2Doc(xml) {
212025
+ value: function xml2Doc(xml, isClearSign) {
211932
212026
  // xml = this.replaceNodesName(xml);
211933
212027
  // const x2js = new X2JS({ stripWhitespaces: false });
211934
212028
  // const object = x2js.xml2js(xml);
@@ -211980,7 +212074,7 @@ var StructureConvert = /*#__PURE__*/function () {
211980
212074
  var aobject = this.xml2Object(xml);
211981
212075
 
211982
212076
  if (aobject) {
211983
- return this.json2Doc(aobject);
212077
+ return this.json2Doc(aobject, isClearSign);
211984
212078
  } // if (json.rvxml) {
211985
212079
  // const rvxml = json.rvxml;
211986
212080
  // return;
@@ -212572,7 +212666,7 @@ var StructureConvert = /*#__PURE__*/function () {
212572
212666
  }
212573
212667
  }, {
212574
212668
  key: "json2Doc",
212575
- value: function json2Doc(xx) {
212669
+ value: function json2Doc(xx, isClearSign) {
212576
212670
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
212577
212671
  /*
212578
212672
  const pushChildNodes = (
@@ -212699,11 +212793,15 @@ var StructureConvert = /*#__PURE__*/function () {
212699
212793
  var histories = xx.userHistories;
212700
212794
  var historiesArr = histories.userHistory;
212701
212795
 
212796
+ if (historiesArr.length == undefined) {
212797
+ historiesArr = Array(historiesArr);
212798
+ }
212799
+
212702
212800
  for (var _i10 = 0; _i10 < historiesArr.length; _i10++) {
212703
212801
  var historyObj = historiesArr[_i10];
212704
212802
  var history = new UserHistory/* UserHistory */.R(this._hoEditorFactoryID, UserHistory/* HistoryEditType.hetCreate */.N.hetCreate);
212705
212803
  Object.assign(history, historyObj);
212706
- history.permissionLevel = Number(historyObj._permissionLevel);
212804
+ history.permissionLevel = Number(historyObj.permissionLevel);
212707
212805
  hoEditorFactory.docTree.userHistories.push(history);
212708
212806
  }
212709
212807
 
@@ -212845,7 +212943,7 @@ var StructureConvert = /*#__PURE__*/function () {
212845
212943
  }
212846
212944
 
212847
212945
  var node = hoEditorFactory.structureConvert.convertNode(header, //headerNodes[hi],
212848
- headerDocTree.subDocNodes, null, headerNode.subDocNodes);
212946
+ headerDocTree.subDocNodes, null, headerNode.subDocNodes, undefined, isClearSign);
212849
212947
 
212850
212948
  if (node) {
212851
212949
  node.rootPath = "header/" + hi.toString(); // if (node instanceof BaseCombineNode) {
@@ -212905,7 +213003,7 @@ var StructureConvert = /*#__PURE__*/function () {
212905
213003
  }
212906
213004
 
212907
213005
  var _node2 = hoEditorFactory.structureConvert.convertNode(footer, //footerNodes[fi],
212908
- footSubDocTree.subDocNodes, null, footerNode.subDocNodes);
213006
+ footSubDocTree.subDocNodes, null, footerNode.subDocNodes, undefined, isClearSign);
212909
213007
 
212910
213008
  if (_node2) {
212911
213009
  _node2.rootPath = "footer/" + fi.toString(); // if (node instanceof BaseCombineNode) {
@@ -212950,7 +213048,7 @@ var StructureConvert = /*#__PURE__*/function () {
212950
213048
  continue;
212951
213049
  }
212952
213050
 
212953
- var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes);
213051
+ var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
212954
213052
 
212955
213053
  if (_node3) {
212956
213054
  // if (node instanceof BaseCombineNode && temp.childNode) {
@@ -213094,7 +213192,7 @@ var StructureConvert = /*#__PURE__*/function () {
213094
213192
  }
213095
213193
  }, {
213096
213194
  key: "convertNode",
213097
- value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste) {
213195
+ value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign) {
213098
213196
  if (temp === "") {
213099
213197
  return undefined;
213100
213198
  }
@@ -213130,7 +213228,7 @@ var StructureConvert = /*#__PURE__*/function () {
213130
213228
  return undefined;
213131
213229
  }
213132
213230
 
213133
- var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
213231
+ var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
213134
213232
  return node;
213135
213233
  } else if (temp.nodeType == BaseNode/* NodeType.ntParagraph */.Jq.ntParagraph) {
213136
213234
  return ParagraphNode/* ParagraphNode.json2Node */.C.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
@@ -213167,7 +213265,7 @@ var StructureConvert = /*#__PURE__*/function () {
213167
213265
  return RadioAndCheckBoxNode/* RadioAndCheckBoxNode.json2Node */.Yh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
213168
213266
  }
213169
213267
  } else if (temp.nodeType == BaseNode/* NodeType.ntField */.Jq.ntField) {
213170
- return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
213268
+ return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
213171
213269
  } else if (temp.nodeType == BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar) {
213172
213270
  return SpecialCharsNode/* SpecialCharsNode.json2Node */.y.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213173
213271
  } else if (temp.nodeType == BaseNode/* NodeType.ntMark */.Jq.ntMark) {
@@ -213183,7 +213281,7 @@ var StructureConvert = /*#__PURE__*/function () {
213183
213281
  } else if (temp.nodeType == BaseNode/* NodeType.ntLabel */.Jq.ntLabel) {
213184
213282
  return LabelNode/* LabelNode.json2Node */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213185
213283
  } else if (temp.nodeType == BaseNode/* NodeType.ntSign */.Jq.ntSign) {
213186
- return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213284
+ return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
213187
213285
  } else if (temp.nodeType == BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
213188
213286
  return GestationNode/* GestationNode.json2Node */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213189
213287
  }
@@ -213277,13 +213375,13 @@ var StructureConvert = /*#__PURE__*/function () {
213277
213375
  }
213278
213376
  }, {
213279
213377
  key: "openXml",
213280
- value: function openXml(xml, callback, isDelBlockLine) {
213378
+ value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
213281
213379
  var _this4 = this;
213282
213380
 
213283
213381
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
213284
213382
  this._superiorSign = [];
213285
213383
  hoEditorFactory.isThrowError = false;
213286
- var nodes = hoEditorFactory.structureConvert.xml2Doc(xml);
213384
+ var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
213287
213385
  Promise.resolve().then(function () {
213288
213386
  hoEditorFactory.drawTree.updateDrawTreeFirstLine();
213289
213387
 
@@ -218983,12 +219081,16 @@ var VueController = /*#__PURE__*/function () {
218983
219081
  /**
218984
219082
  * 读取 xml
218985
219083
  * @param xml
219084
+ * @param callback 是否回调
219085
+ * @param isDelBlockLine 是否删掉正文末尾的空行
219086
+ * @param isRender
219087
+ * @param isClearSign 加载时是否清空签名元素内容
218986
219088
  */
218987
219089
 
218988
219090
  }, {
218989
219091
  key: "openXml",
218990
219092
  value: function () {
218991
- var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender) {
219093
+ var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender, isClearSign) {
218992
219094
  var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent;
218993
219095
 
218994
219096
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5) {
@@ -219033,7 +219135,7 @@ var VueController = /*#__PURE__*/function () {
219033
219135
  }
219034
219136
 
219035
219137
  _context5.next = 15;
219036
- return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine);
219138
+ return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
219037
219139
 
219038
219140
  case 15:
219039
219141
  case "end":
@@ -219043,7 +219145,7 @@ var VueController = /*#__PURE__*/function () {
219043
219145
  }, _callee5, this);
219044
219146
  }));
219045
219147
 
219046
- function openXml(_x8, _x9, _x10, _x11) {
219148
+ function openXml(_x8, _x9, _x10, _x11, _x12) {
219047
219149
  return _openXml.apply(this, arguments);
219048
219150
  }
219049
219151
 
@@ -219188,8 +219290,8 @@ var VueController = /*#__PURE__*/function () {
219188
219290
  if (node instanceof SignNode/* SignNode */.N) {
219189
219291
  var nextNode = node.nextLeaf();
219190
219292
 
219191
- if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
219192
- 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);
219293
+ if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
219294
+ 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);
219193
219295
  hoEditorFactory.undoService.begin();
219194
219296
  hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
219195
219297
  hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
@@ -219424,7 +219526,7 @@ var VueController = /*#__PURE__*/function () {
219424
219526
 
219425
219527
  }, {
219426
219528
  key: "insertEmptySignNode",
219427
- value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
219529
+ value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
219428
219530
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219429
219531
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
219430
219532
  var startPath = curDomRange.normalize().startPath;
@@ -219432,7 +219534,7 @@ var VueController = /*#__PURE__*/function () {
219432
219534
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
219433
219535
 
219434
219536
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219435
- hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime);
219537
+ hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute);
219436
219538
  }
219437
219539
  }
219438
219540
  /**
@@ -220030,7 +220132,7 @@ var VueController = /*#__PURE__*/function () {
220030
220132
  }, _callee6, this);
220031
220133
  }));
220032
220134
 
220033
- function updateElementText(_x12, _x13, _x14) {
220135
+ function updateElementText(_x13, _x14, _x15) {
220034
220136
  return _updateElementText.apply(this, arguments);
220035
220137
  }
220036
220138
 
@@ -220340,7 +220442,7 @@ var VueController = /*#__PURE__*/function () {
220340
220442
  }, _callee7, this);
220341
220443
  }));
220342
220444
 
220343
- function getBase64(_x15) {
220445
+ function getBase64(_x16) {
220344
220446
  return _getBase.apply(this, arguments);
220345
220447
  }
220346
220448
 
@@ -220368,11 +220470,19 @@ var VueController = /*#__PURE__*/function () {
220368
220470
  var newNode = newcurDomRange.npEnd.node;
220369
220471
 
220370
220472
  if (newNode instanceof SignNode/* SignNode */.N) {
220371
- hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition);
220473
+ Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
220474
+ setTimeout(function () {
220475
+ callback && callback();
220476
+ }, 0);
220477
+ });
220372
220478
  }
220373
220479
  }, 0);
220374
220480
  } else {
220375
- hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition);
220481
+ Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
220482
+ setTimeout(function () {
220483
+ callback && callback();
220484
+ }, 0);
220485
+ });
220376
220486
  }
220377
220487
  } else {
220378
220488
  this.deleteNode(node);
@@ -220796,6 +220906,20 @@ var VueController = /*#__PURE__*/function () {
220796
220906
  if (curDomRange.isEmpty) return;
220797
220907
  var result = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath, true);
220798
220908
  var nodes = result[0];
220909
+ var isHaveParaNodes = false;
220910
+
220911
+ for (var m = 0; m < nodes.length; m++) {
220912
+ if (nodes[m] instanceof ParagraphNode/* ParagraphNode */.C) {
220913
+ isHaveParaNodes = true;
220914
+ break;
220915
+ }
220916
+ }
220917
+
220918
+ if (!isHaveParaNodes) {
220919
+ message_box_default().alert("选区内没有换行符,无需清除.");
220920
+
220921
+ return;
220922
+ }
220799
220923
 
220800
220924
  for (var i = 0; i < nodes.length; i++) {
220801
220925
  var node = nodes[i];
@@ -220945,37 +221069,6 @@ var VueController = /*#__PURE__*/function () {
220945
221069
  });
220946
221070
  drawTree.commentsMap = commentsMap;
220947
221071
  }
220948
- /**
220949
- * 查询是否存在医生签名
220950
- * @returns boolean
220951
- */
220952
-
220953
- }, {
220954
- key: "getAllSignNode",
220955
- value: function getAllSignNode() {
220956
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220957
- var isHasDoctorSign = false;
220958
-
220959
- var getAllNodes = function getAllNodes(nodes) {
220960
- for (var i = 0; i < nodes.length; i++) {
220961
- var node = nodes[i];
220962
-
220963
- if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
220964
- isHasDoctorSign = true;
220965
- break; // 医生签名已存在的情况中断当前层的遍历
220966
- }
220967
-
220968
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
220969
- // 医生签名已存在的情况不在深层调用深层遍历
220970
- getAllNodes(node.childNodes);
220971
- }
220972
- }
220973
- };
220974
-
220975
- var mainNodes = hoEditorFactory.docTree.mainNodes;
220976
- getAllNodes(mainNodes);
220977
- return isHasDoctorSign;
220978
- }
220979
221072
  }, {
220980
221073
  key: "SyncElements",
220981
221074
  value: function SyncElements() {
@@ -221046,6 +221139,9 @@ var VueController = /*#__PURE__*/function () {
221046
221139
  value: function showElementsEditRecord(objects) {
221047
221140
  var comments = [];
221048
221141
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221142
+ hoEditorFactory.vueController.setPageProperty(JSON.stringify({
221143
+ commentWidthMm: 50
221144
+ }));
221049
221145
 
221050
221146
  for (var i = 0; i < objects.length; i++) {
221051
221147
  var object = objects[i];
@@ -221104,6 +221200,9 @@ var VueController = /*#__PURE__*/function () {
221104
221200
  key: "clearEditRecords",
221105
221201
  value: function clearEditRecords() {
221106
221202
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221203
+ hoEditorFactory.vueController.setPageProperty(JSON.stringify({
221204
+ commentWidthMm: 0
221205
+ }));
221107
221206
  var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
221108
221207
 
221109
221208
  for (var j = drawMainDocs.length - 1; j >= 0; j--) {
@@ -221138,6 +221237,83 @@ var VueController = /*#__PURE__*/function () {
221138
221237
  value: function setParaCustomProperty(paragraphNode, customProperty) {
221139
221238
  paragraphNode.setCustomProperty(customProperty);
221140
221239
  }
221240
+ /**
221241
+ * 查询是否有空签名元素
221242
+ * @returns boolean
221243
+ */
221244
+
221245
+ }, {
221246
+ key: "getAllEmptySignNode",
221247
+ value: function getAllEmptySignNode(attribute) {
221248
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221249
+ var hasEmptySign = false;
221250
+
221251
+ var getAllNodes = function getAllNodes(nodes) {
221252
+ for (var i = 0; i < nodes.length; i++) {
221253
+ var node = nodes[i];
221254
+
221255
+ if (node instanceof SignNode/* SignNode */.N) {
221256
+ // 空的患者签名
221257
+ if (attribute == 1 && node.attribute === 1 && node.imgSrc === '' && node.fingerPrintSrc === '') {
221258
+ hasEmptySign = true;
221259
+ break;
221260
+ } // 空的医生签名
221261
+
221262
+
221263
+ if (attribute == 0 && node.attribute === 0 && node.imgSrc === '') {
221264
+ hasEmptySign = true;
221265
+ break;
221266
+ } // 空的签名
221267
+
221268
+
221269
+ if (attribute == undefined && node.imgSrc === '' && node.fingerPrintSrc === '') {
221270
+ hasEmptySign = true;
221271
+ break;
221272
+ }
221273
+ }
221274
+
221275
+ if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !hasEmptySign) {
221276
+ // 医生签名已存在的情况不在深层调用深层遍历
221277
+ getAllNodes(node.childNodes);
221278
+ }
221279
+ }
221280
+ };
221281
+
221282
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
221283
+ getAllNodes(mainNodes);
221284
+ return hasEmptySign;
221285
+ }
221286
+ /**
221287
+ * 查询是否存在医生签名
221288
+ * @returns boolean
221289
+ */
221290
+
221291
+ }, {
221292
+ key: "getAllSignNode",
221293
+ value: function getAllSignNode() {
221294
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221295
+ var isHasDoctorSign = false;
221296
+
221297
+ var getAllNodes = function getAllNodes(nodes) {
221298
+ for (var i = 0; i < nodes.length; i++) {
221299
+ var node = nodes[i];
221300
+
221301
+ if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
221302
+ isHasDoctorSign = true;
221303
+ break; // 医生签名已存在的情况中断当前层的遍历
221304
+ }
221305
+
221306
+ if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
221307
+ // 医生签名已存在的情况不在深层调用深层遍历
221308
+ getAllNodes(node.childNodes);
221309
+ }
221310
+ }
221311
+ };
221312
+
221313
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
221314
+ getAllNodes(mainNodes);
221315
+ return isHasDoctorSign;
221316
+ }
221141
221317
  }]);
221142
221318
 
221143
221319
  return VueController;
@@ -223553,8 +223729,16 @@ var PrintController = /*#__PURE__*/function () {
223553
223729
  hoEditorFactory.vueController.openXml(xml);
223554
223730
  } else {
223555
223731
  hoEditorFactory.drawTree.paintStatus = beforeStatus;
223556
- hoEditorFactory.printStatus.clearArea();
223557
- hoEditorFactory.printStatus.drawPrintRecord.clear();
223732
+ hoEditorFactory.drawTree.drawPages.forEach(function (dPage) {
223733
+ var _dPage$selectContaine;
223734
+
223735
+ if (dPage.drawSelectLevel && !dPage.drawSelectLevel.stage) {
223736
+ dPage.drawSelectLevel.bindStage();
223737
+ }
223738
+
223739
+ dPage.selectContainer.children = [];
223740
+ (_dPage$selectContaine = dPage.selectContainer.stage) === null || _dPage$selectContaine === void 0 ? void 0 : _dPage$selectContaine.update();
223741
+ });
223558
223742
  hoEditorFactory.vueController.rebuildAll(true);
223559
223743
  }
223560
223744
  }
@@ -223815,6 +223999,7 @@ var PrintController = /*#__PURE__*/function () {
223815
223999
  hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState.psPreview */.Dh.psPreview;
223816
224000
  xmlIndex = -1;
223817
224001
  mergeList = [];
224002
+ continuousid = '';
223818
224003
  options = {
223819
224004
  unit: 'px',
223820
224005
  hotfixes: ['px_scaling'],
@@ -223866,6 +224051,10 @@ var PrintController = /*#__PURE__*/function () {
223866
224051
  position = {};
223867
224052
  }
223868
224053
 
224054
+ if (continuousid && xmlList[xmlIndex][2] !== continuousid) {
224055
+ mergeList = [];
224056
+ }
224057
+
223869
224058
  continuousid = xmlList[xmlIndex][2];
223870
224059
  mergeList.push([xmlList[xmlIndex][1], xmlList[xmlIndex][0]]);
223871
224060
 
@@ -223877,14 +224066,13 @@ var PrintController = /*#__PURE__*/function () {
223877
224066
  } else {
223878
224067
  hoEditorFactory.loadImageCallback = toPrint;
223879
224068
  }
223880
-
223881
- mergeList = [];
223882
224069
  });
223883
224070
  } else {
223884
224071
  createSvg();
223885
224072
  }
223886
224073
  } else {
223887
224074
  mergeList = [];
224075
+ continuousid = '';
223888
224076
  Promise.all([hoEditorFactory.vueController.openXml(xmlList[xmlIndex][0])]).then(function () {
223889
224077
  if (hoEditorFactory.loadImageCount === 0) {
223890
224078
  toPrint();
@@ -223920,7 +224108,7 @@ var PrintController = /*#__PURE__*/function () {
223920
224108
 
223921
224109
  createSvg();
223922
224110
 
223923
- case 13:
224111
+ case 14:
223924
224112
  case "end":
223925
224113
  return _context8.stop();
223926
224114
  }
@@ -229183,9 +229371,9 @@ var Delimiter_component = normalizeComponent(
229183
229371
  ;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
229184
229372
 
229185
229373
  /* harmony default export */ var delimiter = (delimiter_Delimiter);
229186
- ;// 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&
229187
- 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)])}
229188
- var Signvue_type_template_id_6c042af0_staticRenderFns = []
229374
+ ;// 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&
229375
+ 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)])}
229376
+ var Signvue_type_template_id_9b7c7d28_staticRenderFns = []
229189
229377
 
229190
229378
 
229191
229379
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
@@ -229220,7 +229408,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229220
229408
 
229221
229409
  _this = _super.apply(this, arguments);
229222
229410
  _this.height = 20;
229223
- _this.name = "";
229411
+ _this.name = '';
229224
229412
  _this.signType = 0;
229225
229413
  _this.signFormat = '<医师姓名>';
229226
229414
  _this.connectMode = '换行';
@@ -229229,7 +229417,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229229
229417
  _this.signTimeFormat = 'yyyy-MM-DD HH:mm';
229230
229418
  _this.customFormatContent = '';
229231
229419
  _this.customSignFormatList = [];
229232
- _this.animationClassNames = "control-modal-contents sign-modal animation-in";
229420
+ _this.animationClassNames = 'control-modal-contents sign-modal animation-in';
229233
229421
  return _this;
229234
229422
  } // 创建自定义签名格式
229235
229423
 
@@ -229237,7 +229425,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229237
229425
  (0,createClass/* default */.Z)(Sign, [{
229238
229426
  key: "createSignFormat",
229239
229427
  value: function createSignFormat() {
229240
- var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, "");
229428
+ var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
229241
229429
  var customList = ['<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'];
229242
229430
  this.$elMessage.closeAll();
229243
229431
 
@@ -229252,7 +229440,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229252
229440
  return;
229253
229441
  }
229254
229442
 
229255
- var format = ["<医师姓名>", "<医师姓名>(<医师职称>)", "<医师姓名>:<医师职称>", "<医师姓名>:<医师职称>\n<签名时间>"].concat();
229443
+ var format = ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'].concat();
229256
229444
  this.customSignFormatList.forEach(function (v) {
229257
229445
  return format.push(v.value);
229258
229446
  });
@@ -229261,7 +229449,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229261
229449
  return v === customFormat.slice(1, customFormat.length - 1);
229262
229450
  }).length > 0) {
229263
229451
  this.$elMessage.warning({
229264
- message: "签名格式已存在无需插入,已自动选中",
229452
+ message: '签名格式已存在无需插入,已自动选中',
229265
229453
  duration: 3000,
229266
229454
  offset: 120
229267
229455
  });
@@ -229277,17 +229465,12 @@ var Sign = /*#__PURE__*/function (_Vue) {
229277
229465
  }, {
229278
229466
  key: "insertSign",
229279
229467
  value: function insertSign() {
229280
- if (this.signType === 1) {
229281
- // console.log(this.name ? this.name : "签名",
229282
- // this.signType,
229283
- // this.signFormat,
229284
- // this.connectMode,
229285
- // this.isFront,
229286
- // this.allowEditSignTime)
229287
- this.vueController.insertEmptySignNode(this.name ? this.name : "签名", this.signType, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime);
229288
- } else {
229289
- this.vueController.insertEmptySignNode(this.name ? this.name : "签名" //,
229290
- );
229468
+ if (this.signType === 2) {
229469
+ // 多人签名
229470
+ this.vueController.insertEmptySignNode(this.name ? this.name : '医生签名', 1, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime, 0);
229471
+ } else {
229472
+ var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
229473
+ this.vueController.insertEmptySignNode(name, 0, '', '', '', undefined, undefined, this.signType);
229291
229474
  }
229292
229475
 
229293
229476
  this.handleClose();
@@ -229295,8 +229478,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
229295
229478
  }, {
229296
229479
  key: "handleClose",
229297
229480
  value: function handleClose() {
229298
- this.animationClassNames = "control-modal-contents sign-modal animation-out";
229299
- this.$emit("closed");
229481
+ this.animationClassNames = 'control-modal-contents sign-modal animation-out';
229482
+ this.$emit('closed');
229300
229483
  }
229301
229484
  }]);
229302
229485
 
@@ -229308,7 +229491,7 @@ __decorate([Prop()], Sign.prototype, "vueController", void 0);
229308
229491
  __decorate([Prop()], Sign.prototype, "controlStatus", void 0);
229309
229492
 
229310
229493
  Sign = __decorate([vue_class_component_esm({
229311
- name: "Sign",
229494
+ name: 'Sign',
229312
229495
  components: {
229313
229496
  HoColorPicker: HoColorPicker
229314
229497
  }
@@ -229332,8 +229515,8 @@ Sign = __decorate([vue_class_component_esm({
229332
229515
 
229333
229516
  var Sign_component = normalizeComponent(
229334
229517
  sign_Signvue_type_script_lang_ts_,
229335
- Signvue_type_template_id_6c042af0_render,
229336
- Signvue_type_template_id_6c042af0_staticRenderFns,
229518
+ Signvue_type_template_id_9b7c7d28_render,
229519
+ Signvue_type_template_id_9b7c7d28_staticRenderFns,
229337
229520
  false,
229338
229521
  null,
229339
229522
  null,