hoeditor-web 2.0.69 → 2.0.71

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.
@@ -33939,7 +33939,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
33939
33939
 
33940
33940
  _this._PNGToJPG = 0; // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
33941
33941
 
33942
- _this._attribute = 0; //签名属性 0:医生签名 1:患者签名
33942
+ _this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
33943
33943
 
33944
33944
  _this.number = number;
33945
33945
  _this._type = type;
@@ -34243,7 +34243,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34243
34243
  this.styleIndex = 0;
34244
34244
  }
34245
34245
 
34246
- var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_10__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition);
34246
+ var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_10__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty);
34247
34247
 
34248
34248
  this._drawNodes.push(dNode);
34249
34249
  }
@@ -34277,15 +34277,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34277
34277
  if (isDisPlay) {
34278
34278
  drawNode.alpha = 1;
34279
34279
 
34280
- if (this.imgSrc === "") {
34281
- var color = hoEditorFactory.option.getColorByLevel(0);
34280
+ if (this.imgSrc === "" && this.fingerPrintSrc === "") {
34281
+ var color = hoEditorFactory.option.getColorByLevel(13);
34282
34282
  var backColor = new createjs.Shape();
34283
34283
  backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight + 2, drawNode.dWidth, drawNode.dHeight);
34284
34284
  backColor.name = "backColor";
34285
34285
  drawNode.addChildAt(backColor, 0);
34286
34286
  }
34287
34287
  } else {
34288
- if (this.imgSrc === "") {
34288
+ if (this.imgSrc === "" && this.fingerPrintSrc === "") {
34289
34289
  drawNode.alpha = 0;
34290
34290
  } else {
34291
34291
  for (var i = drawNode.children.length - 1; i >= 0; i--) {
@@ -51424,7 +51424,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
51424
51424
  /*
51425
51425
  * @Author: your name
51426
51426
  * @Date: 2021-09-01 16:51:49
51427
- * @LastEditTime: 2022-05-23 13:51:45
51427
+ * @LastEditTime: 2022-07-18 16:38:54
51428
51428
  * @LastEditors: liyanan 2441631434@qq.com
51429
51429
  * @Description: In User Settings Edit
51430
51430
  * @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
@@ -51435,7 +51435,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51435
51435
 
51436
51436
  var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(DrawSignNode);
51437
51437
 
51438
- function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition) {
51438
+ function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition, attribute, customProperty) {
51439
51439
  var _this;
51440
51440
 
51441
51441
  (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawSignNode);
@@ -51447,12 +51447,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51447
51447
  _this._imgSrc = '';
51448
51448
  _this._fingerPrintSrc = '';
51449
51449
  _this._fingerPosition = 0;
51450
+ _this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
51451
+
51452
+ _this._abi02 = "";
51450
51453
  _this._number = number;
51451
51454
  _this._imgSrc = imgSrc;
51452
51455
  _this._type = type;
51453
51456
  _this._signName = name;
51454
51457
  _this._fingerPrintSrc = fingerPrintSrc;
51455
- _this._fingerPosition = fingerPosition; //this._textStyle = cbStyle.;
51458
+ _this._fingerPosition = fingerPosition;
51459
+ _this._attribute = attribute;
51460
+ _this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : ""; //this._textStyle = cbStyle.;
51456
51461
 
51457
51462
  _this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
51458
51463
 
@@ -51492,6 +51497,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51492
51497
  } else {
51493
51498
  _this.dWidth = imgWidth * scale + _this._drawText.getMeasuredWidth();
51494
51499
  }
51500
+
51501
+ if (_this.attribute === 2 && _this._abi02 !== "") {
51502
+ _this._drawAbi02 = new createjs.Text(customProperty.abi02 + ":", _this._textStyle, '#000000');
51503
+ _this.dWidth += _this._drawAbi02.getMeasuredWidth();
51504
+ }
51495
51505
  }
51496
51506
 
51497
51507
  if (type === 2) {
@@ -51605,6 +51615,26 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51605
51615
  this._textStyle = value;
51606
51616
  }
51607
51617
  }
51618
+ }, {
51619
+ key: "attribute",
51620
+ get: function get() {
51621
+ return this._attribute;
51622
+ },
51623
+ set: function set(value) {
51624
+ if (this._attribute !== value) {
51625
+ this._attribute = value;
51626
+ }
51627
+ }
51628
+ }, {
51629
+ key: "abi02",
51630
+ get: function get() {
51631
+ return this._abi02;
51632
+ },
51633
+ set: function set(value) {
51634
+ if (this._abi02 !== value) {
51635
+ this._abi02 = value;
51636
+ }
51637
+ }
51608
51638
  }, {
51609
51639
  key: "drawWriteSignNode",
51610
51640
  value: function drawWriteSignNode(node) {
@@ -51802,7 +51832,19 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51802
51832
  }
51803
51833
  }
51804
51834
 
51805
- _this3.addChildAt(bitmap, 0);
51835
+ if (_this3.attribute === 2 && _this3.abi02 !== "") {
51836
+ var abi02Text = new createjs.Text(_this3.abi02 + ":", _this3.textStyle, '#000000');
51837
+ abi02Text.textBaseline = 'alphabetic';
51838
+ abi02Text.textAlign = 'left';
51839
+
51840
+ _this3.addChildAt(abi02Text, 0);
51841
+
51842
+ bitmap.x = abi02Text.getMeasuredWidth();
51843
+
51844
+ _this3.addChildAt(bitmap);
51845
+ } else {
51846
+ _this3.addChildAt(bitmap, 0);
51847
+ }
51806
51848
 
51807
51849
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
51808
51850
  hoEditorFactory.loadImageCount++;
@@ -51820,14 +51862,24 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51820
51862
  node.imgHeight = nodeImageWidth;
51821
51863
  }
51822
51864
 
51823
- drawNode.dWidth = hitWidth * hoEditorFactory.signHeight / image.naturalHeight + _this3._drawText.getMeasuredWidth();
51824
- var width = drawNode.dWidth;
51865
+ var width = hitWidth * hoEditorFactory.signHeight / image.naturalHeight; //+ this._drawText.getMeasuredWidth();
51866
+
51867
+ drawNode.dWidth = width;
51868
+
51869
+ if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
51870
+ drawNode.dWidth += drawNode._drawAbi02.getMeasuredWidth();
51871
+ }
51825
51872
 
51826
51873
  if (_this3.number === 2) {
51827
- width = width - drawNode._drawText.getMeasuredWidth();
51874
+ drawNode.dWidth += _this3._drawText.getMeasuredWidth();
51875
+ }
51876
+
51877
+ if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
51878
+ bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -hoEditorFactory.signHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
51879
+ } else {
51880
+ bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
51828
51881
  }
51829
51882
 
51830
- bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
51831
51883
  var hitArea = new createjs.Shape();
51832
51884
  hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
51833
51885
 
@@ -57643,7 +57695,7 @@ var DrawTree = /*#__PURE__*/function () {
57643
57695
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
57644
57696
 
57645
57697
  try {
57646
- // console.time("文档change事件");
57698
+ //console.time("文档change事件");
57647
57699
  this._inChanging = true;
57648
57700
  var startUpdateLine;
57649
57701
  this.adjustEventPath(e);
@@ -58038,7 +58090,7 @@ var DrawTree = /*#__PURE__*/function () {
58038
58090
 
58039
58091
  if (hoEditorFactory.docTree.curOnDragNode) {
58040
58092
  this._caret.visible = false;
58041
- } // console.timeEnd("文档change事件");
58093
+ } //console.timeEnd("文档change事件");
58042
58094
 
58043
58095
 
58044
58096
  return true;
@@ -59721,8 +59773,8 @@ var DrawTree = /*#__PURE__*/function () {
59721
59773
  }
59722
59774
 
59723
59775
  if (dPage && dPage.selectContainer) {
59724
- var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#FFF07E");
59725
- shape.alpha = 0.5;
59776
+ var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#FB0451");
59777
+ shape.alpha = 0.3;
59726
59778
  dPage.selectContainer.addChild(shape);
59727
59779
 
59728
59780
  if (dPages.indexOf(dPage) < 0) {
@@ -62750,7 +62802,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
62750
62802
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60199);
62751
62803
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91347);
62752
62804
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42015);
62753
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(16296);
62805
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(16296);
62754
62806
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
62755
62807
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
62756
62808
  /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
@@ -62791,6 +62843,8 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
62791
62843
  /* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(76771);
62792
62844
  /* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(11438);
62793
62845
  /* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(78975);
62846
+ /* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(14245);
62847
+
62794
62848
 
62795
62849
 
62796
62850
 
@@ -62866,7 +62920,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62866
62920
  this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
62867
62921
  }
62868
62922
 
62869
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
62923
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
62870
62924
  key: "undo",
62871
62925
  value: function undo() {
62872
62926
  //2.插入删除的节点
@@ -63145,7 +63199,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63145
63199
  key: "spliteNode",
63146
63200
  value: function spliteNode(Arange) {
63147
63201
  var _this = this,
63148
- _s$parentNode$downLis;
63202
+ _pnode$downListProper;
63149
63203
 
63150
63204
  var s = Arange.npStart.node;
63151
63205
  var e = Arange.npEnd.node;
@@ -63201,9 +63255,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63201
63255
 
63202
63256
  this._tmp.start = Arange.startPath;
63203
63257
  this._tmp.end = Arange.endPath;
63258
+ var spnode = s.parentNode;
63259
+ var epnode = e.parentNode;
63260
+ var pnode = epnode;
63261
+
63262
+ if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && spnode != epnode) {
63263
+ var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__/* .NodePosition.nodePositionCompare */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
63264
+
63265
+ if (result < 0) {
63266
+ pnode = spnode;
63267
+ }
63268
+ }
63204
63269
 
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());
63270
+ if (this._isForceDelete && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && pnode.inputFieldType === 1 && (_pnode$downListProper = pnode.downListProperty.listItems) !== null && _pnode$downListProper !== void 0 && _pnode$downListProper.includes("<元素>")) {
63271
+ this._tmp.start = pnode.StartMarkNode.getNodePath();
63272
+ this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
63207
63273
  return true;
63208
63274
  }
63209
63275
 
@@ -207373,7 +207439,7 @@ var SignNode = __webpack_require__(78975);
207373
207439
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207374
207440
  var ParagraphNode = __webpack_require__(13880);
207375
207441
  ;// CONCATENATED MODULE: ./src/components/version.ts
207376
- /* harmony default export */ var version = ('2.0.69');
207442
+ /* harmony default export */ var version = ('2.0.71');
207377
207443
  ;// 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&
207378
207444
  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)}
207379
207445
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -209884,7 +209950,7 @@ var UserInfo = __webpack_require__(82084);
209884
209950
  /*
209885
209951
  * @Author: your name
209886
209952
  * @Date: 2021-06-21 17:47:51
209887
- * @LastEditTime: 2022-07-08 23:50:19
209953
+ * @LastEditTime: 2022-07-18 14:39:07
209888
209954
  * @LastEditors: liyanan 2441631434@qq.com
209889
209955
  * @Description: In User Settings Edit
209890
209956
  * @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
@@ -209907,6 +209973,8 @@ var Option = /*#__PURE__*/function () {
209907
209973
 
209908
209974
  this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
209909
209975
 
209976
+ this._signColor = "transparent"; //签名元素颜色
209977
+
209910
209978
  this._hoEditorFactoryID = hoEditorFactoryID;
209911
209979
  }
209912
209980
 
@@ -209974,9 +210042,17 @@ var Option = /*#__PURE__*/function () {
209974
210042
  set: function set(value) {
209975
210043
  this._downListColor2 = value;
209976
210044
  }
210045
+ }, {
210046
+ key: "signColor",
210047
+ get: function get() {
210048
+ return this._signColor;
210049
+ },
210050
+ set: function set(value) {
210051
+ this._signColor = value;
210052
+ }
209977
210053
  }, {
209978
210054
  key: "setReviewLevelColor",
209979
- value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2) {
210055
+ value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2, signColor) {
209980
210056
  Lev1Color && (this._reviewLev1Color = Lev1Color);
209981
210057
  Lev2Color && (this._reviewLev2Color = Lev2Color);
209982
210058
  Lev3Color && (this._reviewLev3Color = Lev3Color);
@@ -209984,6 +210060,7 @@ var Option = /*#__PURE__*/function () {
209984
210060
  dateTimeColor && (this._dateTimeColor = dateTimeColor);
209985
210061
  downListColor && (this._downListColor = downListColor);
209986
210062
  downListColor2 && (this._downListColor2 = downListColor2);
210063
+ signColor && (this._signColor = signColor);
209987
210064
  }
209988
210065
  }, {
209989
210066
  key: "getColorByLevel",
@@ -210002,6 +210079,8 @@ var Option = /*#__PURE__*/function () {
210002
210079
  return this._reviewLev2Color;
210003
210080
  } else if (level === 3) {
210004
210081
  return this._reviewLev3Color;
210082
+ } else if (level === 13) {
210083
+ return this._signColor;
210005
210084
  } else {
210006
210085
  return "transparent";
210007
210086
  }
@@ -217230,7 +217309,7 @@ var VueController = /*#__PURE__*/function () {
217230
217309
  value: function setReviewLevelColor(option) {
217231
217310
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
217232
217311
  var opt = new Option(this.hoEditorFactoryID);
217233
- opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2);
217312
+ opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2, option.signColor);
217234
217313
  hoEditorFactory.option = opt;
217235
217314
  }
217236
217315
  /**
@@ -220396,7 +220475,7 @@ var VueController = /*#__PURE__*/function () {
220396
220475
  endPath = curDomRange.normalize().endPath;
220397
220476
  node = (_hoEditorFactory2$vue = _hoEditorFactory2.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory2$vue === void 0 ? void 0 : _hoEditorFactory2$vue.node;
220398
220477
 
220399
- if (!(node instanceof SignNode/* SignNode */.N && node.name === "患者签名")) {
220478
+ if (!(node instanceof SignNode/* SignNode */.N && !node.isTemplate && node.attribute == 1)) {
220400
220479
  _context7.next = 8;
220401
220480
  break;
220402
220481
  }
@@ -220418,7 +220497,7 @@ var VueController = /*#__PURE__*/function () {
220418
220497
  _endPath = _curDomRange2.normalize().endPath;
220419
220498
  _node = (_hoEditorFactory3$vue = _hoEditorFactory3.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory3$vue === void 0 ? void 0 : _hoEditorFactory3$vue.node;
220420
220499
 
220421
- if (!(_node instanceof SignNode/* SignNode */.N && _node.name === "患者签名")) {
220500
+ if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
220422
220501
  _context7.next = 21;
220423
220502
  break;
220424
220503
  }
@@ -220463,7 +220542,7 @@ var VueController = /*#__PURE__*/function () {
220463
220542
 
220464
220543
  if (node instanceof SignNode/* SignNode */.N) {
220465
220544
  if (node.isTemplate) {
220466
- if (node.imgSrc || node.fingerPrintSrc) {
220545
+ if (node.imgSrc !== '' || node.fingerPrintSrc !== '') {
220467
220546
  this.deleteNode(node);
220468
220547
  setTimeout(function () {
220469
220548
  var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
@@ -221246,34 +221325,39 @@ var VueController = /*#__PURE__*/function () {
221246
221325
  key: "getAllEmptySignNode",
221247
221326
  value: function getAllEmptySignNode(attribute) {
221248
221327
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221249
- var hasEmptySign = false;
221328
+ var hasEmptyPatientSign = false;
221329
+ var patientSignCount = 0;
221330
+ var hasEmptyDoctorSign = false;
221250
221331
 
221251
221332
  var getAllNodes = function getAllNodes(nodes) {
221252
221333
  for (var i = 0; i < nodes.length; i++) {
221253
221334
  var node = nodes[i];
221254
221335
 
221255
221336
  if (node instanceof SignNode/* SignNode */.N) {
221256
- // 空的患者签名
221257
- if (attribute == 1 && node.attribute === 1 && node.imgSrc === '' && node.fingerPrintSrc === '') {
221258
- hasEmptySign = true;
221337
+ // 有值的患者签名
221338
+ if (attribute == 1 && node.attribute === 1) {
221339
+ patientSignCount++;
221340
+ }
221341
+
221342
+ if (attribute == 1 && node.attribute === 1 && (node.imgSrc !== '' || node.fingerPrintSrc !== '')) {
221343
+ hasEmptyPatientSign = true;
221259
221344
  break;
221260
221345
  } // 空的医生签名
221261
221346
 
221262
221347
 
221263
221348
  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;
221349
+ hasEmptyDoctorSign = true;
221271
221350
  break;
221272
221351
  }
221273
221352
  }
221274
221353
 
221275
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !hasEmptySign) {
221276
- // 医生签名已存在的情况不在深层调用深层遍历
221354
+ if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
221355
+ // 患者签名已存在的情况不在深层调用深层遍历
221356
+ getAllNodes(node.childNodes);
221357
+ }
221358
+
221359
+ if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 0 && !hasEmptyDoctorSign) {
221360
+ // 医生签名不存在的情况不在深层调用深层遍历
221277
221361
  getAllNodes(node.childNodes);
221278
221362
  }
221279
221363
  }
@@ -221281,7 +221365,16 @@ var VueController = /*#__PURE__*/function () {
221281
221365
 
221282
221366
  var mainNodes = hoEditorFactory.docTree.mainNodes;
221283
221367
  getAllNodes(mainNodes);
221284
- return hasEmptySign;
221368
+
221369
+ if (attribute == 1) {
221370
+ if (patientSignCount == 0) {
221371
+ return true;
221372
+ }
221373
+
221374
+ return hasEmptyPatientSign;
221375
+ } else {
221376
+ return hasEmptyDoctorSign;
221377
+ }
221285
221378
  }
221286
221379
  /**
221287
221380
  * 查询是否存在医生签名
@@ -229371,9 +229464,9 @@ var Delimiter_component = normalizeComponent(
229371
229464
  ;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
229372
229465
 
229373
229466
  /* harmony default export */ var delimiter = (delimiter_Delimiter);
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 = []
229467
+ ;// 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=38b332be&
229468
+ var Signvue_type_template_id_38b332be_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",staticStyle:{"align-items":"baseline"}},[_c('span',{staticClass:"label"},[_vm._v("签名类型")]),_c('div',{staticStyle:{"flex":"1"}},[_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":3},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("自定义CA签名")])],1)]),(_vm.signType >= 3)?[_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 >= 3)?_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)])}
229469
+ var Signvue_type_template_id_38b332be_staticRenderFns = []
229377
229470
 
229378
229471
 
229379
229472
  ;// 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&
@@ -229465,8 +229558,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
229465
229558
  }, {
229466
229559
  key: "insertSign",
229467
229560
  value: function insertSign() {
229468
- if (this.signType === 2) {
229469
- // 多人签名
229561
+ if (this.signType === 3) {
229562
+ // 自定义多人签名
229470
229563
  this.vueController.insertEmptySignNode(this.name ? this.name : '医生签名', 1, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime, 0);
229471
229564
  } else {
229472
229565
  var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
@@ -229515,8 +229608,8 @@ Sign = __decorate([vue_class_component_esm({
229515
229608
 
229516
229609
  var Sign_component = normalizeComponent(
229517
229610
  sign_Signvue_type_script_lang_ts_,
229518
- Signvue_type_template_id_9b7c7d28_render,
229519
- Signvue_type_template_id_9b7c7d28_staticRenderFns,
229611
+ Signvue_type_template_id_38b332be_render,
229612
+ Signvue_type_template_id_38b332be_staticRenderFns,
229520
229613
  false,
229521
229614
  null,
229522
229615
  null,