hoeditor-web 2.0.68 → 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
 
@@ -51742,7 +51809,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51742
51809
 
51743
51810
  image.onload = function () {
51744
51811
  var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
51745
- 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
+
51746
51823
  drawNode.dWidth = hitWidth * hoEditorFactory.signHeight / image.naturalHeight + _this3._drawText.getMeasuredWidth();
51747
51824
  var width = drawNode.dWidth;
51748
51825
 
@@ -63126,6 +63203,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63126
63203
  this._tmp.end = Arange.endPath;
63127
63204
 
63128
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());
63129
63207
  return true;
63130
63208
  }
63131
63209
 
@@ -207295,7 +207373,7 @@ var SignNode = __webpack_require__(78975);
207295
207373
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207296
207374
  var ParagraphNode = __webpack_require__(13880);
207297
207375
  ;// CONCATENATED MODULE: ./src/components/version.ts
207298
- /* harmony default export */ var version = ('2.0.67');
207376
+ /* harmony default export */ var version = ('2.0.69');
207299
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&
207300
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)}
207301
207379
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -211944,7 +212022,7 @@ var StructureConvert = /*#__PURE__*/function () {
211944
212022
  }
211945
212023
  }, {
211946
212024
  key: "xml2Doc",
211947
- value: function xml2Doc(xml) {
212025
+ value: function xml2Doc(xml, isClearSign) {
211948
212026
  // xml = this.replaceNodesName(xml);
211949
212027
  // const x2js = new X2JS({ stripWhitespaces: false });
211950
212028
  // const object = x2js.xml2js(xml);
@@ -211996,7 +212074,7 @@ var StructureConvert = /*#__PURE__*/function () {
211996
212074
  var aobject = this.xml2Object(xml);
211997
212075
 
211998
212076
  if (aobject) {
211999
- return this.json2Doc(aobject);
212077
+ return this.json2Doc(aobject, isClearSign);
212000
212078
  } // if (json.rvxml) {
212001
212079
  // const rvxml = json.rvxml;
212002
212080
  // return;
@@ -212588,7 +212666,7 @@ var StructureConvert = /*#__PURE__*/function () {
212588
212666
  }
212589
212667
  }, {
212590
212668
  key: "json2Doc",
212591
- value: function json2Doc(xx) {
212669
+ value: function json2Doc(xx, isClearSign) {
212592
212670
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
212593
212671
  /*
212594
212672
  const pushChildNodes = (
@@ -212715,11 +212793,15 @@ var StructureConvert = /*#__PURE__*/function () {
212715
212793
  var histories = xx.userHistories;
212716
212794
  var historiesArr = histories.userHistory;
212717
212795
 
212796
+ if (historiesArr.length == undefined) {
212797
+ historiesArr = Array(historiesArr);
212798
+ }
212799
+
212718
212800
  for (var _i10 = 0; _i10 < historiesArr.length; _i10++) {
212719
212801
  var historyObj = historiesArr[_i10];
212720
212802
  var history = new UserHistory/* UserHistory */.R(this._hoEditorFactoryID, UserHistory/* HistoryEditType.hetCreate */.N.hetCreate);
212721
212803
  Object.assign(history, historyObj);
212722
- history.permissionLevel = Number(historyObj._permissionLevel);
212804
+ history.permissionLevel = Number(historyObj.permissionLevel);
212723
212805
  hoEditorFactory.docTree.userHistories.push(history);
212724
212806
  }
212725
212807
 
@@ -212861,7 +212943,7 @@ var StructureConvert = /*#__PURE__*/function () {
212861
212943
  }
212862
212944
 
212863
212945
  var node = hoEditorFactory.structureConvert.convertNode(header, //headerNodes[hi],
212864
- headerDocTree.subDocNodes, null, headerNode.subDocNodes);
212946
+ headerDocTree.subDocNodes, null, headerNode.subDocNodes, undefined, isClearSign);
212865
212947
 
212866
212948
  if (node) {
212867
212949
  node.rootPath = "header/" + hi.toString(); // if (node instanceof BaseCombineNode) {
@@ -212921,7 +213003,7 @@ var StructureConvert = /*#__PURE__*/function () {
212921
213003
  }
212922
213004
 
212923
213005
  var _node2 = hoEditorFactory.structureConvert.convertNode(footer, //footerNodes[fi],
212924
- footSubDocTree.subDocNodes, null, footerNode.subDocNodes);
213006
+ footSubDocTree.subDocNodes, null, footerNode.subDocNodes, undefined, isClearSign);
212925
213007
 
212926
213008
  if (_node2) {
212927
213009
  _node2.rootPath = "footer/" + fi.toString(); // if (node instanceof BaseCombineNode) {
@@ -212966,7 +213048,7 @@ var StructureConvert = /*#__PURE__*/function () {
212966
213048
  continue;
212967
213049
  }
212968
213050
 
212969
- 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);
212970
213052
 
212971
213053
  if (_node3) {
212972
213054
  // if (node instanceof BaseCombineNode && temp.childNode) {
@@ -213110,7 +213192,7 @@ var StructureConvert = /*#__PURE__*/function () {
213110
213192
  }
213111
213193
  }, {
213112
213194
  key: "convertNode",
213113
- value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste) {
213195
+ value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign) {
213114
213196
  if (temp === "") {
213115
213197
  return undefined;
213116
213198
  }
@@ -213146,7 +213228,7 @@ var StructureConvert = /*#__PURE__*/function () {
213146
213228
  return undefined;
213147
213229
  }
213148
213230
 
213149
- 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);
213150
213232
  return node;
213151
213233
  } else if (temp.nodeType == BaseNode/* NodeType.ntParagraph */.Jq.ntParagraph) {
213152
213234
  return ParagraphNode/* ParagraphNode.json2Node */.C.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
@@ -213183,7 +213265,7 @@ var StructureConvert = /*#__PURE__*/function () {
213183
213265
  return RadioAndCheckBoxNode/* RadioAndCheckBoxNode.json2Node */.Yh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
213184
213266
  }
213185
213267
  } else if (temp.nodeType == BaseNode/* NodeType.ntField */.Jq.ntField) {
213186
- 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);
213187
213269
  } else if (temp.nodeType == BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar) {
213188
213270
  return SpecialCharsNode/* SpecialCharsNode.json2Node */.y.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213189
213271
  } else if (temp.nodeType == BaseNode/* NodeType.ntMark */.Jq.ntMark) {
@@ -213199,7 +213281,7 @@ var StructureConvert = /*#__PURE__*/function () {
213199
213281
  } else if (temp.nodeType == BaseNode/* NodeType.ntLabel */.Jq.ntLabel) {
213200
213282
  return LabelNode/* LabelNode.json2Node */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213201
213283
  } else if (temp.nodeType == BaseNode/* NodeType.ntSign */.Jq.ntSign) {
213202
- return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213284
+ return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
213203
213285
  } else if (temp.nodeType == BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
213204
213286
  return GestationNode/* GestationNode.json2Node */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
213205
213287
  }
@@ -213293,13 +213375,13 @@ var StructureConvert = /*#__PURE__*/function () {
213293
213375
  }
213294
213376
  }, {
213295
213377
  key: "openXml",
213296
- value: function openXml(xml, callback, isDelBlockLine) {
213378
+ value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
213297
213379
  var _this4 = this;
213298
213380
 
213299
213381
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
213300
213382
  this._superiorSign = [];
213301
213383
  hoEditorFactory.isThrowError = false;
213302
- var nodes = hoEditorFactory.structureConvert.xml2Doc(xml);
213384
+ var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
213303
213385
  Promise.resolve().then(function () {
213304
213386
  hoEditorFactory.drawTree.updateDrawTreeFirstLine();
213305
213387
 
@@ -218999,12 +219081,16 @@ var VueController = /*#__PURE__*/function () {
218999
219081
  /**
219000
219082
  * 读取 xml
219001
219083
  * @param xml
219084
+ * @param callback 是否回调
219085
+ * @param isDelBlockLine 是否删掉正文末尾的空行
219086
+ * @param isRender
219087
+ * @param isClearSign 加载时是否清空签名元素内容
219002
219088
  */
219003
219089
 
219004
219090
  }, {
219005
219091
  key: "openXml",
219006
219092
  value: function () {
219007
- 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) {
219008
219094
  var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent;
219009
219095
 
219010
219096
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5) {
@@ -219049,7 +219135,7 @@ var VueController = /*#__PURE__*/function () {
219049
219135
  }
219050
219136
 
219051
219137
  _context5.next = 15;
219052
- return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine);
219138
+ return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
219053
219139
 
219054
219140
  case 15:
219055
219141
  case "end":
@@ -219059,7 +219145,7 @@ var VueController = /*#__PURE__*/function () {
219059
219145
  }, _callee5, this);
219060
219146
  }));
219061
219147
 
219062
- function openXml(_x8, _x9, _x10, _x11) {
219148
+ function openXml(_x8, _x9, _x10, _x11, _x12) {
219063
219149
  return _openXml.apply(this, arguments);
219064
219150
  }
219065
219151
 
@@ -219204,8 +219290,8 @@ var VueController = /*#__PURE__*/function () {
219204
219290
  if (node instanceof SignNode/* SignNode */.N) {
219205
219291
  var nextNode = node.nextLeaf();
219206
219292
 
219207
- if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
219208
- 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);
219209
219295
  hoEditorFactory.undoService.begin();
219210
219296
  hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
219211
219297
  hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
@@ -219440,7 +219526,7 @@ var VueController = /*#__PURE__*/function () {
219440
219526
 
219441
219527
  }, {
219442
219528
  key: "insertEmptySignNode",
219443
- value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
219529
+ value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
219444
219530
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219445
219531
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
219446
219532
  var startPath = curDomRange.normalize().startPath;
@@ -219448,7 +219534,7 @@ var VueController = /*#__PURE__*/function () {
219448
219534
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
219449
219535
 
219450
219536
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219451
- hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime);
219537
+ hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute);
219452
219538
  }
219453
219539
  }
219454
219540
  /**
@@ -220046,7 +220132,7 @@ var VueController = /*#__PURE__*/function () {
220046
220132
  }, _callee6, this);
220047
220133
  }));
220048
220134
 
220049
- function updateElementText(_x12, _x13, _x14) {
220135
+ function updateElementText(_x13, _x14, _x15) {
220050
220136
  return _updateElementText.apply(this, arguments);
220051
220137
  }
220052
220138
 
@@ -220356,7 +220442,7 @@ var VueController = /*#__PURE__*/function () {
220356
220442
  }, _callee7, this);
220357
220443
  }));
220358
220444
 
220359
- function getBase64(_x15) {
220445
+ function getBase64(_x16) {
220360
220446
  return _getBase.apply(this, arguments);
220361
220447
  }
220362
220448
 
@@ -220384,11 +220470,19 @@ var VueController = /*#__PURE__*/function () {
220384
220470
  var newNode = newcurDomRange.npEnd.node;
220385
220471
 
220386
220472
  if (newNode instanceof SignNode/* SignNode */.N) {
220387
- 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
+ });
220388
220478
  }
220389
220479
  }, 0);
220390
220480
  } else {
220391
- 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
+ });
220392
220486
  }
220393
220487
  } else {
220394
220488
  this.deleteNode(node);
@@ -220812,6 +220906,20 @@ var VueController = /*#__PURE__*/function () {
220812
220906
  if (curDomRange.isEmpty) return;
220813
220907
  var result = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath, true);
220814
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
+ }
220815
220923
 
220816
220924
  for (var i = 0; i < nodes.length; i++) {
220817
220925
  var node = nodes[i];
@@ -220961,37 +221069,6 @@ var VueController = /*#__PURE__*/function () {
220961
221069
  });
220962
221070
  drawTree.commentsMap = commentsMap;
220963
221071
  }
220964
- /**
220965
- * 查询是否存在医生签名
220966
- * @returns boolean
220967
- */
220968
-
220969
- }, {
220970
- key: "getAllSignNode",
220971
- value: function getAllSignNode() {
220972
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220973
- var isHasDoctorSign = false;
220974
-
220975
- var getAllNodes = function getAllNodes(nodes) {
220976
- for (var i = 0; i < nodes.length; i++) {
220977
- var node = nodes[i];
220978
-
220979
- if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
220980
- isHasDoctorSign = true;
220981
- break; // 医生签名已存在的情况中断当前层的遍历
220982
- }
220983
-
220984
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
220985
- // 医生签名已存在的情况不在深层调用深层遍历
220986
- getAllNodes(node.childNodes);
220987
- }
220988
- }
220989
- };
220990
-
220991
- var mainNodes = hoEditorFactory.docTree.mainNodes;
220992
- getAllNodes(mainNodes);
220993
- return isHasDoctorSign;
220994
- }
220995
221072
  }, {
220996
221073
  key: "SyncElements",
220997
221074
  value: function SyncElements() {
@@ -221160,6 +221237,83 @@ var VueController = /*#__PURE__*/function () {
221160
221237
  value: function setParaCustomProperty(paragraphNode, customProperty) {
221161
221238
  paragraphNode.setCustomProperty(customProperty);
221162
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
+ }
221163
221317
  }]);
221164
221318
 
221165
221319
  return VueController;
@@ -229217,9 +229371,9 @@ var Delimiter_component = normalizeComponent(
229217
229371
  ;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
229218
229372
 
229219
229373
  /* harmony default export */ var delimiter = (delimiter_Delimiter);
229220
- ;// 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&
229221
- 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)])}
229222
- 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 = []
229223
229377
 
229224
229378
 
229225
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&
@@ -229254,7 +229408,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229254
229408
 
229255
229409
  _this = _super.apply(this, arguments);
229256
229410
  _this.height = 20;
229257
- _this.name = "";
229411
+ _this.name = '';
229258
229412
  _this.signType = 0;
229259
229413
  _this.signFormat = '<医师姓名>';
229260
229414
  _this.connectMode = '换行';
@@ -229263,7 +229417,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229263
229417
  _this.signTimeFormat = 'yyyy-MM-DD HH:mm';
229264
229418
  _this.customFormatContent = '';
229265
229419
  _this.customSignFormatList = [];
229266
- _this.animationClassNames = "control-modal-contents sign-modal animation-in";
229420
+ _this.animationClassNames = 'control-modal-contents sign-modal animation-in';
229267
229421
  return _this;
229268
229422
  } // 创建自定义签名格式
229269
229423
 
@@ -229271,7 +229425,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229271
229425
  (0,createClass/* default */.Z)(Sign, [{
229272
229426
  key: "createSignFormat",
229273
229427
  value: function createSignFormat() {
229274
- var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, "");
229428
+ var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
229275
229429
  var customList = ['<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'];
229276
229430
  this.$elMessage.closeAll();
229277
229431
 
@@ -229286,7 +229440,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229286
229440
  return;
229287
229441
  }
229288
229442
 
229289
- var format = ["<医师姓名>", "<医师姓名>(<医师职称>)", "<医师姓名>:<医师职称>", "<医师姓名>:<医师职称>\n<签名时间>"].concat();
229443
+ var format = ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'].concat();
229290
229444
  this.customSignFormatList.forEach(function (v) {
229291
229445
  return format.push(v.value);
229292
229446
  });
@@ -229295,7 +229449,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
229295
229449
  return v === customFormat.slice(1, customFormat.length - 1);
229296
229450
  }).length > 0) {
229297
229451
  this.$elMessage.warning({
229298
- message: "签名格式已存在无需插入,已自动选中",
229452
+ message: '签名格式已存在无需插入,已自动选中',
229299
229453
  duration: 3000,
229300
229454
  offset: 120
229301
229455
  });
@@ -229311,17 +229465,12 @@ var Sign = /*#__PURE__*/function (_Vue) {
229311
229465
  }, {
229312
229466
  key: "insertSign",
229313
229467
  value: function insertSign() {
229314
- if (this.signType === 1) {
229315
- // console.log(this.name ? this.name : "签名",
229316
- // this.signType,
229317
- // this.signFormat,
229318
- // this.connectMode,
229319
- // this.isFront,
229320
- // this.allowEditSignTime)
229321
- this.vueController.insertEmptySignNode(this.name ? this.name : "签名", this.signType, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime);
229322
- } else {
229323
- this.vueController.insertEmptySignNode(this.name ? this.name : "签名" //,
229324
- );
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);
229325
229474
  }
229326
229475
 
229327
229476
  this.handleClose();
@@ -229329,8 +229478,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
229329
229478
  }, {
229330
229479
  key: "handleClose",
229331
229480
  value: function handleClose() {
229332
- this.animationClassNames = "control-modal-contents sign-modal animation-out";
229333
- this.$emit("closed");
229481
+ this.animationClassNames = 'control-modal-contents sign-modal animation-out';
229482
+ this.$emit('closed');
229334
229483
  }
229335
229484
  }]);
229336
229485
 
@@ -229342,7 +229491,7 @@ __decorate([Prop()], Sign.prototype, "vueController", void 0);
229342
229491
  __decorate([Prop()], Sign.prototype, "controlStatus", void 0);
229343
229492
 
229344
229493
  Sign = __decorate([vue_class_component_esm({
229345
- name: "Sign",
229494
+ name: 'Sign',
229346
229495
  components: {
229347
229496
  HoColorPicker: HoColorPicker
229348
229497
  }
@@ -229366,8 +229515,8 @@ Sign = __decorate([vue_class_component_esm({
229366
229515
 
229367
229516
  var Sign_component = normalizeComponent(
229368
229517
  sign_Signvue_type_script_lang_ts_,
229369
- Signvue_type_template_id_6c042af0_render,
229370
- Signvue_type_template_id_6c042af0_staticRenderFns,
229518
+ Signvue_type_template_id_9b7c7d28_render,
229519
+ Signvue_type_template_id_9b7c7d28_staticRenderFns,
229371
229520
  false,
229372
229521
  null,
229373
229522
  null,