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.
@@ -33929,7 +33929,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
33929
33929
 
33930
33930
  _this._PNGToJPG = 0; // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
33931
33931
 
33932
- _this._attribute = 0; //签名属性 0:医生签名 1:患者签名
33932
+ _this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
33933
33933
 
33934
33934
  _this.number = number;
33935
33935
  _this._type = type;
@@ -34233,7 +34233,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34233
34233
  this.styleIndex = 0;
34234
34234
  }
34235
34235
 
34236
- 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);
34236
+ 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);
34237
34237
 
34238
34238
  this._drawNodes.push(dNode);
34239
34239
  }
@@ -34267,15 +34267,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
34267
34267
  if (isDisPlay) {
34268
34268
  drawNode.alpha = 1;
34269
34269
 
34270
- if (this.imgSrc === "") {
34271
- var color = hoEditorFactory.option.getColorByLevel(0);
34270
+ if (this.imgSrc === "" && this.fingerPrintSrc === "") {
34271
+ var color = hoEditorFactory.option.getColorByLevel(13);
34272
34272
  var backColor = new createjs.Shape();
34273
34273
  backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight + 2, drawNode.dWidth, drawNode.dHeight);
34274
34274
  backColor.name = "backColor";
34275
34275
  drawNode.addChildAt(backColor, 0);
34276
34276
  }
34277
34277
  } else {
34278
- if (this.imgSrc === "") {
34278
+ if (this.imgSrc === "" && this.fingerPrintSrc === "") {
34279
34279
  drawNode.alpha = 0;
34280
34280
  } else {
34281
34281
  for (var i = drawNode.children.length - 1; i >= 0; i--) {
@@ -51414,7 +51414,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
51414
51414
  /*
51415
51415
  * @Author: your name
51416
51416
  * @Date: 2021-09-01 16:51:49
51417
- * @LastEditTime: 2022-05-23 13:51:45
51417
+ * @LastEditTime: 2022-07-18 16:38:54
51418
51418
  * @LastEditors: liyanan 2441631434@qq.com
51419
51419
  * @Description: In User Settings Edit
51420
51420
  * @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
@@ -51425,7 +51425,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51425
51425
 
51426
51426
  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);
51427
51427
 
51428
- function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition) {
51428
+ function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition, attribute, customProperty) {
51429
51429
  var _this;
51430
51430
 
51431
51431
  (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawSignNode);
@@ -51437,12 +51437,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51437
51437
  _this._imgSrc = '';
51438
51438
  _this._fingerPrintSrc = '';
51439
51439
  _this._fingerPosition = 0;
51440
+ _this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
51441
+
51442
+ _this._abi02 = "";
51440
51443
  _this._number = number;
51441
51444
  _this._imgSrc = imgSrc;
51442
51445
  _this._type = type;
51443
51446
  _this._signName = name;
51444
51447
  _this._fingerPrintSrc = fingerPrintSrc;
51445
- _this._fingerPosition = fingerPosition; //this._textStyle = cbStyle.;
51448
+ _this._fingerPosition = fingerPosition;
51449
+ _this._attribute = attribute;
51450
+ _this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : ""; //this._textStyle = cbStyle.;
51446
51451
 
51447
51452
  _this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
51448
51453
 
@@ -51482,6 +51487,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51482
51487
  } else {
51483
51488
  _this.dWidth = imgWidth * scale + _this._drawText.getMeasuredWidth();
51484
51489
  }
51490
+
51491
+ if (_this.attribute === 2 && _this._abi02 !== "") {
51492
+ _this._drawAbi02 = new createjs.Text(customProperty.abi02 + ":", _this._textStyle, '#000000');
51493
+ _this.dWidth += _this._drawAbi02.getMeasuredWidth();
51494
+ }
51485
51495
  }
51486
51496
 
51487
51497
  if (type === 2) {
@@ -51595,6 +51605,26 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51595
51605
  this._textStyle = value;
51596
51606
  }
51597
51607
  }
51608
+ }, {
51609
+ key: "attribute",
51610
+ get: function get() {
51611
+ return this._attribute;
51612
+ },
51613
+ set: function set(value) {
51614
+ if (this._attribute !== value) {
51615
+ this._attribute = value;
51616
+ }
51617
+ }
51618
+ }, {
51619
+ key: "abi02",
51620
+ get: function get() {
51621
+ return this._abi02;
51622
+ },
51623
+ set: function set(value) {
51624
+ if (this._abi02 !== value) {
51625
+ this._abi02 = value;
51626
+ }
51627
+ }
51598
51628
  }, {
51599
51629
  key: "drawWriteSignNode",
51600
51630
  value: function drawWriteSignNode(node) {
@@ -51792,7 +51822,19 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51792
51822
  }
51793
51823
  }
51794
51824
 
51795
- _this3.addChildAt(bitmap, 0);
51825
+ if (_this3.attribute === 2 && _this3.abi02 !== "") {
51826
+ var abi02Text = new createjs.Text(_this3.abi02 + ":", _this3.textStyle, '#000000');
51827
+ abi02Text.textBaseline = 'alphabetic';
51828
+ abi02Text.textAlign = 'left';
51829
+
51830
+ _this3.addChildAt(abi02Text, 0);
51831
+
51832
+ bitmap.x = abi02Text.getMeasuredWidth();
51833
+
51834
+ _this3.addChildAt(bitmap);
51835
+ } else {
51836
+ _this3.addChildAt(bitmap, 0);
51837
+ }
51796
51838
 
51797
51839
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
51798
51840
  hoEditorFactory.loadImageCount++;
@@ -51810,14 +51852,24 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51810
51852
  node.imgHeight = nodeImageWidth;
51811
51853
  }
51812
51854
 
51813
- drawNode.dWidth = hitWidth * hoEditorFactory.signHeight / image.naturalHeight + _this3._drawText.getMeasuredWidth();
51814
- var width = drawNode.dWidth;
51855
+ var width = hitWidth * hoEditorFactory.signHeight / image.naturalHeight; //+ this._drawText.getMeasuredWidth();
51856
+
51857
+ drawNode.dWidth = width;
51858
+
51859
+ if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
51860
+ drawNode.dWidth += drawNode._drawAbi02.getMeasuredWidth();
51861
+ }
51815
51862
 
51816
51863
  if (_this3.number === 2) {
51817
- width = width - drawNode._drawText.getMeasuredWidth();
51864
+ drawNode.dWidth += _this3._drawText.getMeasuredWidth();
51865
+ }
51866
+
51867
+ if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
51868
+ bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -hoEditorFactory.signHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
51869
+ } else {
51870
+ bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
51818
51871
  }
51819
51872
 
51820
- bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
51821
51873
  var hitArea = new createjs.Shape();
51822
51874
  hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
51823
51875
 
@@ -57633,7 +57685,7 @@ var DrawTree = /*#__PURE__*/function () {
57633
57685
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
57634
57686
 
57635
57687
  try {
57636
- // console.time("文档change事件");
57688
+ //console.time("文档change事件");
57637
57689
  this._inChanging = true;
57638
57690
  var startUpdateLine;
57639
57691
  this.adjustEventPath(e);
@@ -58028,7 +58080,7 @@ var DrawTree = /*#__PURE__*/function () {
58028
58080
 
58029
58081
  if (hoEditorFactory.docTree.curOnDragNode) {
58030
58082
  this._caret.visible = false;
58031
- } // console.timeEnd("文档change事件");
58083
+ } //console.timeEnd("文档change事件");
58032
58084
 
58033
58085
 
58034
58086
  return true;
@@ -59711,8 +59763,8 @@ var DrawTree = /*#__PURE__*/function () {
59711
59763
  }
59712
59764
 
59713
59765
  if (dPage && dPage.selectContainer) {
59714
- var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#FFF07E");
59715
- shape.alpha = 0.5;
59766
+ var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#FB0451");
59767
+ shape.alpha = 0.3;
59716
59768
  dPage.selectContainer.addChild(shape);
59717
59769
 
59718
59770
  if (dPages.indexOf(dPage) < 0) {
@@ -62740,7 +62792,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
62740
62792
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39873);
62741
62793
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37174);
62742
62794
  /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35671);
62743
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(22342);
62795
+ /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(22342);
62744
62796
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
62745
62797
  /* 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__);
62746
62798
  /* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
@@ -62781,6 +62833,8 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
62781
62833
  /* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(98390);
62782
62834
  /* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(12019);
62783
62835
  /* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(34450);
62836
+ /* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(2242);
62837
+
62784
62838
 
62785
62839
 
62786
62840
 
@@ -62856,7 +62910,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62856
62910
  this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
62857
62911
  }
62858
62912
 
62859
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
62913
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
62860
62914
  key: "undo",
62861
62915
  value: function undo() {
62862
62916
  //2.插入删除的节点
@@ -63135,7 +63189,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63135
63189
  key: "spliteNode",
63136
63190
  value: function spliteNode(Arange) {
63137
63191
  var _this = this,
63138
- _s$parentNode$downLis;
63192
+ _pnode$downListProper;
63139
63193
 
63140
63194
  var s = Arange.npStart.node;
63141
63195
  var e = Arange.npEnd.node;
@@ -63191,9 +63245,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63191
63245
 
63192
63246
  this._tmp.start = Arange.startPath;
63193
63247
  this._tmp.end = Arange.endPath;
63248
+ var spnode = s.parentNode;
63249
+ var epnode = e.parentNode;
63250
+ var pnode = epnode;
63251
+
63252
+ 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) {
63253
+ var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__/* .NodePosition.nodePositionCompare */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
63254
+
63255
+ if (result < 0) {
63256
+ pnode = spnode;
63257
+ }
63258
+ }
63194
63259
 
63195
- if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && s.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && s.parentNode.inputFieldType === 1 && (_s$parentNode$downLis = s.parentNode.downListProperty.listItems) !== null && _s$parentNode$downLis !== void 0 && _s$parentNode$downLis.includes("<元素>")) {
63196
- this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(s.parentNode.EndMarkNode.previousLeaf());
63260
+ 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("<元素>")) {
63261
+ this._tmp.start = pnode.StartMarkNode.getNodePath();
63262
+ this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
63197
63263
  return true;
63198
63264
  }
63199
63265
 
@@ -207363,7 +207429,7 @@ var SignNode = __webpack_require__(34450);
207363
207429
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207364
207430
  var ParagraphNode = __webpack_require__(14208);
207365
207431
  ;// CONCATENATED MODULE: ./src/components/version.ts
207366
- /* harmony default export */ var version = ('2.0.69');
207432
+ /* harmony default export */ var version = ('2.0.71');
207367
207433
  ;// 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&
207368
207434
  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)}
207369
207435
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -209874,7 +209940,7 @@ var UserInfo = __webpack_require__(75013);
209874
209940
  /*
209875
209941
  * @Author: your name
209876
209942
  * @Date: 2021-06-21 17:47:51
209877
- * @LastEditTime: 2022-07-08 23:50:19
209943
+ * @LastEditTime: 2022-07-18 14:39:07
209878
209944
  * @LastEditors: liyanan 2441631434@qq.com
209879
209945
  * @Description: In User Settings Edit
209880
209946
  * @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
@@ -209897,6 +209963,8 @@ var Option = /*#__PURE__*/function () {
209897
209963
 
209898
209964
  this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
209899
209965
 
209966
+ this._signColor = "transparent"; //签名元素颜色
209967
+
209900
209968
  this._hoEditorFactoryID = hoEditorFactoryID;
209901
209969
  }
209902
209970
 
@@ -209964,9 +210032,17 @@ var Option = /*#__PURE__*/function () {
209964
210032
  set: function set(value) {
209965
210033
  this._downListColor2 = value;
209966
210034
  }
210035
+ }, {
210036
+ key: "signColor",
210037
+ get: function get() {
210038
+ return this._signColor;
210039
+ },
210040
+ set: function set(value) {
210041
+ this._signColor = value;
210042
+ }
209967
210043
  }, {
209968
210044
  key: "setReviewLevelColor",
209969
- value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2) {
210045
+ value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2, signColor) {
209970
210046
  Lev1Color && (this._reviewLev1Color = Lev1Color);
209971
210047
  Lev2Color && (this._reviewLev2Color = Lev2Color);
209972
210048
  Lev3Color && (this._reviewLev3Color = Lev3Color);
@@ -209974,6 +210050,7 @@ var Option = /*#__PURE__*/function () {
209974
210050
  dateTimeColor && (this._dateTimeColor = dateTimeColor);
209975
210051
  downListColor && (this._downListColor = downListColor);
209976
210052
  downListColor2 && (this._downListColor2 = downListColor2);
210053
+ signColor && (this._signColor = signColor);
209977
210054
  }
209978
210055
  }, {
209979
210056
  key: "getColorByLevel",
@@ -209992,6 +210069,8 @@ var Option = /*#__PURE__*/function () {
209992
210069
  return this._reviewLev2Color;
209993
210070
  } else if (level === 3) {
209994
210071
  return this._reviewLev3Color;
210072
+ } else if (level === 13) {
210073
+ return this._signColor;
209995
210074
  } else {
209996
210075
  return "transparent";
209997
210076
  }
@@ -217220,7 +217299,7 @@ var VueController = /*#__PURE__*/function () {
217220
217299
  value: function setReviewLevelColor(option) {
217221
217300
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
217222
217301
  var opt = new Option(this.hoEditorFactoryID);
217223
- opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2);
217302
+ opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2, option.signColor);
217224
217303
  hoEditorFactory.option = opt;
217225
217304
  }
217226
217305
  /**
@@ -220386,7 +220465,7 @@ var VueController = /*#__PURE__*/function () {
220386
220465
  endPath = curDomRange.normalize().endPath;
220387
220466
  node = (_hoEditorFactory2$vue = _hoEditorFactory2.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory2$vue === void 0 ? void 0 : _hoEditorFactory2$vue.node;
220388
220467
 
220389
- if (!(node instanceof SignNode/* SignNode */.N && node.name === "患者签名")) {
220468
+ if (!(node instanceof SignNode/* SignNode */.N && !node.isTemplate && node.attribute == 1)) {
220390
220469
  _context7.next = 8;
220391
220470
  break;
220392
220471
  }
@@ -220408,7 +220487,7 @@ var VueController = /*#__PURE__*/function () {
220408
220487
  _endPath = _curDomRange2.normalize().endPath;
220409
220488
  _node = (_hoEditorFactory3$vue = _hoEditorFactory3.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory3$vue === void 0 ? void 0 : _hoEditorFactory3$vue.node;
220410
220489
 
220411
- if (!(_node instanceof SignNode/* SignNode */.N && _node.name === "患者签名")) {
220490
+ if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
220412
220491
  _context7.next = 21;
220413
220492
  break;
220414
220493
  }
@@ -220453,7 +220532,7 @@ var VueController = /*#__PURE__*/function () {
220453
220532
 
220454
220533
  if (node instanceof SignNode/* SignNode */.N) {
220455
220534
  if (node.isTemplate) {
220456
- if (node.imgSrc || node.fingerPrintSrc) {
220535
+ if (node.imgSrc !== '' || node.fingerPrintSrc !== '') {
220457
220536
  this.deleteNode(node);
220458
220537
  setTimeout(function () {
220459
220538
  var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
@@ -221236,34 +221315,39 @@ var VueController = /*#__PURE__*/function () {
221236
221315
  key: "getAllEmptySignNode",
221237
221316
  value: function getAllEmptySignNode(attribute) {
221238
221317
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
221239
- var hasEmptySign = false;
221318
+ var hasEmptyPatientSign = false;
221319
+ var patientSignCount = 0;
221320
+ var hasEmptyDoctorSign = false;
221240
221321
 
221241
221322
  var getAllNodes = function getAllNodes(nodes) {
221242
221323
  for (var i = 0; i < nodes.length; i++) {
221243
221324
  var node = nodes[i];
221244
221325
 
221245
221326
  if (node instanceof SignNode/* SignNode */.N) {
221246
- // 空的患者签名
221247
- if (attribute == 1 && node.attribute === 1 && node.imgSrc === '' && node.fingerPrintSrc === '') {
221248
- hasEmptySign = true;
221327
+ // 有值的患者签名
221328
+ if (attribute == 1 && node.attribute === 1) {
221329
+ patientSignCount++;
221330
+ }
221331
+
221332
+ if (attribute == 1 && node.attribute === 1 && (node.imgSrc !== '' || node.fingerPrintSrc !== '')) {
221333
+ hasEmptyPatientSign = true;
221249
221334
  break;
221250
221335
  } // 空的医生签名
221251
221336
 
221252
221337
 
221253
221338
  if (attribute == 0 && node.attribute === 0 && node.imgSrc === '') {
221254
- hasEmptySign = true;
221255
- break;
221256
- } // 空的签名
221257
-
221258
-
221259
- if (attribute == undefined && node.imgSrc === '' && node.fingerPrintSrc === '') {
221260
- hasEmptySign = true;
221339
+ hasEmptyDoctorSign = true;
221261
221340
  break;
221262
221341
  }
221263
221342
  }
221264
221343
 
221265
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !hasEmptySign) {
221266
- // 医生签名已存在的情况不在深层调用深层遍历
221344
+ if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
221345
+ // 患者签名已存在的情况不在深层调用深层遍历
221346
+ getAllNodes(node.childNodes);
221347
+ }
221348
+
221349
+ if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 0 && !hasEmptyDoctorSign) {
221350
+ // 医生签名不存在的情况不在深层调用深层遍历
221267
221351
  getAllNodes(node.childNodes);
221268
221352
  }
221269
221353
  }
@@ -221271,7 +221355,16 @@ var VueController = /*#__PURE__*/function () {
221271
221355
 
221272
221356
  var mainNodes = hoEditorFactory.docTree.mainNodes;
221273
221357
  getAllNodes(mainNodes);
221274
- return hasEmptySign;
221358
+
221359
+ if (attribute == 1) {
221360
+ if (patientSignCount == 0) {
221361
+ return true;
221362
+ }
221363
+
221364
+ return hasEmptyPatientSign;
221365
+ } else {
221366
+ return hasEmptyDoctorSign;
221367
+ }
221275
221368
  }
221276
221369
  /**
221277
221370
  * 查询是否存在医生签名
@@ -229361,9 +229454,9 @@ var Delimiter_component = normalizeComponent(
229361
229454
  ;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
229362
229455
 
229363
229456
  /* harmony default export */ var delimiter = (delimiter_Delimiter);
229364
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=9b7c7d28&
229365
- var Signvue_type_template_id_9b7c7d28_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("患者签名")]),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("医生签名")]),_c('el-radio',{attrs:{"label":2},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义医生签名")])],1),(_vm.signType === 2)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数:     医师签名 / "),_c('br'),_vm._v("   勾选参数:     / 医师签名")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1)]:_vm._e()],2),(_vm.signType === 2)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
229366
- var Signvue_type_template_id_9b7c7d28_staticRenderFns = []
229457
+ ;// 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&
229458
+ 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)])}
229459
+ var Signvue_type_template_id_38b332be_staticRenderFns = []
229367
229460
 
229368
229461
 
229369
229462
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=script&lang=ts&
@@ -229455,8 +229548,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
229455
229548
  }, {
229456
229549
  key: "insertSign",
229457
229550
  value: function insertSign() {
229458
- if (this.signType === 2) {
229459
- // 多人签名
229551
+ if (this.signType === 3) {
229552
+ // 自定义多人签名
229460
229553
  this.vueController.insertEmptySignNode(this.name ? this.name : '医生签名', 1, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime, 0);
229461
229554
  } else {
229462
229555
  var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
@@ -229505,8 +229598,8 @@ Sign = __decorate([vue_class_component_esm({
229505
229598
 
229506
229599
  var Sign_component = normalizeComponent(
229507
229600
  sign_Signvue_type_script_lang_ts_,
229508
- Signvue_type_template_id_9b7c7d28_render,
229509
- Signvue_type_template_id_9b7c7d28_staticRenderFns,
229601
+ Signvue_type_template_id_38b332be_render,
229602
+ Signvue_type_template_id_38b332be_staticRenderFns,
229510
229603
  false,
229511
229604
  null,
229512
229605
  null,