hoeditor-web 3.0.69 → 3.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.
@@ -8964,7 +8964,7 @@ var component = (0,componentNormalizer/* default */.Z)(
8964
8964
 
8965
8965
  /***/ }),
8966
8966
 
8967
- /***/ 63138:
8967
+ /***/ 59046:
8968
8968
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8969
8969
 
8970
8970
  "use strict";
@@ -8984,7 +8984,7 @@ var es_string_includes = __webpack_require__(32023);
8984
8984
  var es_regexp_exec = __webpack_require__(74916);
8985
8985
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
8986
8986
  var es_string_replace = __webpack_require__(15306);
8987
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=05078cc6&
8987
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=7d01edb7&
8988
8988
 
8989
8989
 
8990
8990
 
@@ -9372,7 +9372,7 @@ var render = function render() {
9372
9372
  };
9373
9373
  var staticRenderFns = [];
9374
9374
 
9375
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=05078cc6&
9375
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=7d01edb7&
9376
9376
 
9377
9377
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
9378
9378
  var toConsumableArray = __webpack_require__(61748);
@@ -11533,8 +11533,7 @@ var type = __webpack_require__(41542);
11533
11533
  v.showText = v.text.split("<元素>")[0];
11534
11534
  } else if (v.text.includes("<\u641C\u7D22>")) {
11535
11535
  v.showText = v.text.split("<搜索>")[0];
11536
- }
11537
- if (v.text.includes("__")) {
11536
+ } else if (v.text.includes("__")) {
11538
11537
  v.showText = v.text.split("__")[0];
11539
11538
  } else {
11540
11539
  v.showText = v.text;
@@ -12137,10 +12136,10 @@ var type = __webpack_require__(41542);
12137
12136
  });
12138
12137
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
12139
12138
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
12140
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=05078cc6&prod&lang=scss&
12139
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=7d01edb7&prod&lang=scss&
12141
12140
  // extracted by mini-css-extract-plugin
12142
12141
 
12143
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=05078cc6&prod&lang=scss&
12142
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=7d01edb7&prod&lang=scss&
12144
12143
 
12145
12144
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
12146
12145
  var componentNormalizer = __webpack_require__(70713);
@@ -14939,7 +14938,7 @@ var component = (0,componentNormalizer/* default */.Z)(
14939
14938
 
14940
14939
  /***/ }),
14941
14940
 
14942
- /***/ 37930:
14941
+ /***/ 84240:
14943
14942
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
14944
14943
 
14945
14944
  "use strict";
@@ -14953,7 +14952,7 @@ __webpack_require__.d(__webpack_exports__, {
14953
14952
 
14954
14953
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
14955
14954
  var es_function_name = __webpack_require__(68309);
14956
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=7416bc9f&
14955
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=5cef9662&
14957
14956
 
14958
14957
  var render = function render() {
14959
14958
  var _vm = this,
@@ -15032,7 +15031,11 @@ var render = function render() {
15032
15031
  attrs: {
15033
15032
  "value": 3
15034
15033
  }
15035
- }, [_vm._v("自定义CA签名(默认带出职称和日期)")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
15034
+ }, [_vm._v("自定义CA签名(默认带出职称和日期)")]), _c('a-radio', {
15035
+ attrs: {
15036
+ "value": 4
15037
+ }
15038
+ }, [_vm._v("自定义CA签名(职称,连接符可选)")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
15036
15039
  staticClass: "control-item"
15037
15040
  }, [_c('span', {
15038
15041
  staticClass: "label"
@@ -15048,11 +15051,11 @@ var render = function render() {
15048
15051
  },
15049
15052
  expression: "connectChar"
15050
15053
  }
15051
- })], 1) : _vm._e(), _vm.signType >= 9 ? [_c('li', {
15054
+ })], 1) : _vm._e(), _vm.signType == 4 ? _c('li', {
15052
15055
  staticClass: "control-item"
15053
15056
  }, [_c('span', {
15054
15057
  staticClass: "label"
15055
- }, [_vm._v("签名格式")]), _c('a-select', {
15058
+ }, [_vm._v("连接符")]), _c('a-select', {
15056
15059
  attrs: {
15057
15060
  "getPopupContainer": function getPopupContainer(triggerNode) {
15058
15061
  return triggerNode.parentNode;
@@ -15060,29 +15063,66 @@ var render = function render() {
15060
15063
  "placeholder": "请选择"
15061
15064
  },
15062
15065
  model: {
15063
- value: _vm.signFormat,
15066
+ value: _vm.connectMode,
15064
15067
  callback: function callback($$v) {
15065
- _vm.signFormat = $$v;
15068
+ _vm.connectMode = $$v;
15066
15069
  },
15067
- expression: "signFormat"
15070
+ expression: "connectMode"
15068
15071
  }
15069
15072
  }, [_c('a-select-option', {
15070
15073
  attrs: {
15071
- "value": "<医师姓名>"
15074
+ "value": "/"
15075
+ }
15076
+ }, [_vm._v("/")]), _c('a-select-option', {
15077
+ attrs: {
15078
+ "value": "换行"
15072
15079
  }
15073
- }, [_vm._v("<医师姓名>")]), _c('a-select-option', {
15080
+ }, [_vm._v("换行")]), _c('a-select-option', {
15074
15081
  attrs: {
15075
- "value": "<医师姓名>(<医师职称>)"
15082
+ "value": ""
15076
15083
  }
15077
- }, [_vm._v("<医师姓名>(<医师职称>)")]), _c('a-select-option', {
15084
+ }, [_vm._v("")]), _c('a-select-option', {
15078
15085
  attrs: {
15079
- "value": ""
15086
+ "value": ""
15080
15087
  }
15081
- }, [_vm._v("<医师姓名>:<医师职称>\" value=\"<医师姓名>:<医师职称>")]), _c('a-select-option', {
15088
+ }, [_vm._v("")])], 1)], 1) : _vm._e(), _vm.signType == 4 ? _c('li', {
15089
+ staticClass: "control-item"
15090
+ }, [_c('span', {
15091
+ staticClass: "label"
15092
+ }, [_vm._v("职称")]), _c('a-checkbox', {
15093
+ model: {
15094
+ value: _vm.isDisplayTitle,
15095
+ callback: function callback($$v) {
15096
+ _vm.isDisplayTitle = $$v;
15097
+ },
15098
+ expression: "isDisplayTitle"
15099
+ }
15100
+ })], 1) : _vm._e(), _vm.signType >= 9 ? [_c('li', {
15101
+ staticClass: "control-item"
15102
+ }, [_c('span', {
15103
+ staticClass: "label"
15104
+ }, [_vm._v("签名格式")]), _c('a-select', {
15082
15105
  attrs: {
15083
- "value": "<医师姓名>:<医师职称>\\n<签名时间>"
15106
+ "getPopupContainer": function getPopupContainer(triggerNode) {
15107
+ return triggerNode.parentNode;
15108
+ },
15109
+ "placeholder": "请选择"
15110
+ },
15111
+ model: {
15112
+ value: _vm.signFormat,
15113
+ callback: function callback($$v) {
15114
+ _vm.signFormat = $$v;
15115
+ },
15116
+ expression: "signFormat"
15084
15117
  }
15085
- }, [_vm._v("<医师姓名>:<医师职称>\\n<签名时间>")]), _vm._l(_vm.customSignFormatList, function (format) {
15118
+ }, [_vm._l(_vm.defaultFormatList, function (format) {
15119
+ return _c('a-select-option', {
15120
+ key: format,
15121
+ attrs: {
15122
+ "value": format
15123
+ }
15124
+ }, [_vm._v(_vm._s(format))]);
15125
+ }), _vm._l(_vm.customSignFormatList, function (format) {
15086
15126
  return _c('a-select-option', {
15087
15127
  key: format.label,
15088
15128
  attrs: {
@@ -15311,8 +15351,10 @@ var render = function render() {
15311
15351
  };
15312
15352
  var staticRenderFns = [];
15313
15353
 
15314
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=7416bc9f&
15354
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=5cef9662&
15315
15355
 
15356
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
15357
+ var objectSpread2 = __webpack_require__(63442);
15316
15358
  // EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
15317
15359
  var style = __webpack_require__(94310);
15318
15360
  // EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/index.js + 3 modules
@@ -15360,6 +15402,7 @@ var SignNode = __webpack_require__(24701);
15360
15402
 
15361
15403
 
15362
15404
 
15405
+
15363
15406
  /* harmony default export */ var Signvue_type_script_lang_js_ = ({
15364
15407
  name: 'Sign',
15365
15408
  props: {
@@ -15387,18 +15430,23 @@ var SignNode = __webpack_require__(24701);
15387
15430
  signTimeFormat: 'yyyy-MM-DD HH:mm',
15388
15431
  customFormatContent: '',
15389
15432
  customSignFormatList: [],
15390
- animationClassNames: 'control-modal-contents sign-modal animation-in'
15433
+ defaultFormatList: ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'],
15434
+ animationClassNames: 'control-modal-contents sign-modal animation-in',
15435
+ isDisplayTitle: false
15391
15436
  };
15392
15437
  },
15393
15438
  mounted: function mounted() {
15394
15439
  if (this.controlStatus === 'update') {
15395
15440
  var node = this.getCurrentSelectNode();
15396
15441
  if (node) {
15442
+ var _node$otherProperties;
15397
15443
  this.name = node.name;
15398
15444
  if (node.attribute == 2) {
15399
15445
  this.signType = 2; // 自定义ca签名(带职称)
15400
15446
  } else if (node.attribute == 3) {
15401
- this.signType = 3; // 自定义ca签名(带职称)
15447
+ this.signType = 3; // 自定义CA签名(默认带出职称和日期)
15448
+ } else if (node.attribute == 4) {
15449
+ this.signType = 4; // 自定义CA签名(职称,连接符可选)
15402
15450
  } else if (node.attribute == 1) {
15403
15451
  this.signType = 1; // 患者签名
15404
15452
  } else {
@@ -15416,6 +15464,7 @@ var SignNode = __webpack_require__(24701);
15416
15464
  this.signTimeFormat = node.signTimeFormat;
15417
15465
  this.customFormatContent = node.customFormatContent ? node.customFormatContent : '';
15418
15466
  this.customSignFormatList = node.customSignFormatList ? node.customSignFormatList : [];
15467
+ this.isDisplayTitle = (_node$otherProperties = node.otherProperties) !== null && _node$otherProperties !== void 0 && _node$otherProperties.isDisplayTitle ? true : false;
15419
15468
  }
15420
15469
  }
15421
15470
  },
@@ -15488,6 +15537,12 @@ var SignNode = __webpack_require__(24701);
15488
15537
  } else if (this.signType === 3) {
15489
15538
  // 自定义多人签名
15490
15539
  this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(默认带出职称和日期)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar);
15540
+ } else if (this.signType === 4) {
15541
+ // 自定义多人签名
15542
+
15543
+ this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(职称,连接符可选)', 0, '', '', customProperty, this.connectMode, undefined, undefined, this.signType, this.connectChar, {
15544
+ isDisplayTitle: this.isDisplayTitle
15545
+ });
15491
15546
  } else {
15492
15547
  var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
15493
15548
  this.vueController.insertEmptySignNode(name, 0, '', '', customProperty, '', undefined, undefined, this.signType);
@@ -15497,7 +15552,10 @@ var SignNode = __webpack_require__(24701);
15497
15552
  var _name = this.name ? this.name : node.name;
15498
15553
  var attribute = this.signType === 9 ? 0 : this.signType;
15499
15554
  var signType = this.signType == 9 ? 1 : 0; // 自定义签名的signType=1 其他签名 signType=0
15500
- this.vueController.updateEmptySignNode(node, _name, attribute, this.connectChar, signType, this.signFormat, this.signor, '', this.signTimeFormat);
15555
+ var otherProperties = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, node.otherProperties), {}, {
15556
+ isDisplayTitle: this.isDisplayTitle
15557
+ });
15558
+ this.vueController.updateEmptySignNode(node, _name, attribute, this.connectChar, signType, this.signFormat, this.signor, '', this.signTimeFormat, this.connectMode, otherProperties);
15501
15559
  }
15502
15560
  this.handleClose();
15503
15561
  },
@@ -15509,10 +15567,10 @@ var SignNode = __webpack_require__(24701);
15509
15567
  });
15510
15568
  ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
15511
15569
  /* harmony default export */ var sign_Signvue_type_script_lang_js_ = (Signvue_type_script_lang_js_);
15512
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=7416bc9f&prod&lang=scss&
15570
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=5cef9662&prod&lang=scss&
15513
15571
  // extracted by mini-css-extract-plugin
15514
15572
 
15515
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=7416bc9f&prod&lang=scss&
15573
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=5cef9662&prod&lang=scss&
15516
15574
 
15517
15575
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
15518
15576
  var componentNormalizer = __webpack_require__(70713);
@@ -41434,18 +41492,19 @@ var DocController = /*#__PURE__*/function () {
41434
41492
  node.imgHeight = imgHeight;
41435
41493
  node.fingerPrintSrc = fingerPrintSrc ? fingerPrintSrc : "";
41436
41494
  node.fingerPosition = fingerPosition ? fingerPosition : 0;
41437
- node.otherProperties = otherProperties ? otherProperties : new Object();
41495
+ node.otherProperties = otherProperties ? otherProperties : node.otherProperties;
41438
41496
  node.imgSrc = imgSrc;
41439
- if (type == 1 && node.signType == 1) {
41440
- node.isFront = true;
41441
- node.connectMode = "/";
41442
- }
41497
+ // if (type == 1 && node.signType == 1) {
41498
+ // node.isFront = true;
41499
+ // }
41500
+ //node.connectMode = "/";
41443
41501
  hoEditorFactory.docTree.change(changeEvent);
41444
41502
  } else {
41445
41503
  //第二次更新签名
41446
41504
  if (node.connectMode === "换行") {
41447
41505
  sPath = hoEditorFactory.docTree.getNodeLastPath(node);
41448
- var curParaNode = hoEditorFactory.drawTree.getDlineByPath(sPath).paragraphNode;
41506
+ var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
41507
+ var curParaNode = dline.paragraphNode;
41449
41508
  var newPara = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_29__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node.parentNode, curParaNode.paraNo);
41450
41509
  hoEditorFactory.undoService.begin();
41451
41510
  hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newPara));
@@ -41456,7 +41515,7 @@ var DocController = /*#__PURE__*/function () {
41456
41515
  sPath = hoEditorFactory.docTree.getNodeLastPath(node);
41457
41516
  }
41458
41517
  }
41459
- var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, undefined, undefined, otherProperties);
41518
+ var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, node.attribute, node.connectChar, otherProperties ? otherProperties : node.otherProperties);
41460
41519
  //插入该表达式节点
41461
41520
  hoEditorFactory.undoService.begin();
41462
41521
  hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
@@ -41476,7 +41535,7 @@ var DocController = /*#__PURE__*/function () {
41476
41535
  */
41477
41536
  }, {
41478
41537
  key: "updateEmptySignNode",
41479
- value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat) {
41538
+ value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties) {
41480
41539
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
41481
41540
  var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
41482
41541
  var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
@@ -41492,6 +41551,8 @@ var DocController = /*#__PURE__*/function () {
41492
41551
  node.signTime = signTime;
41493
41552
  node.signTimeFormat = signTimeFormat;
41494
41553
  node.attribute = attribute;
41554
+ node.connectMode = connectMode;
41555
+ node.otherProperties = otherProperties;
41495
41556
  hoEditorFactory.docTree.change(changeEvent);
41496
41557
  }
41497
41558
  /**
@@ -58882,10 +58943,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
58882
58943
  //指纹
58883
58944
  //指纹
58884
58945
  //样式
58885
- // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
58886
- //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片) 3:ca签名(职称+签名+日期)
58946
+ //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片) 3:ca签名(职称+签名+日期)4.ca签名(职称、连接符可选)
58887
58947
  //自定义CA签名连接符
58888
- //其它属性{"title":"职称","time":"签名日期"}
58948
+ //其它属性{"isDisplayTitle":true,"title":"职称","time":"签名日期"}
58889
58949
  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, connectChar, otherProperties) {
58890
58950
  var _this;
58891
58951
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
@@ -58909,7 +58969,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
58909
58969
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_fingerPrintSrc", "");
58910
58970
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_fingerPosition", FingerPosition.center);
58911
58971
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_styleIndex", 0);
58912
- (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_PNGToJPG", 0);
58913
58972
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_attribute", 0);
58914
58973
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_connectChar", ":");
58915
58974
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_otherProperties", void 0);
@@ -58945,8 +59004,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
58945
59004
  } else {
58946
59005
  _this._styleIndex = hoEditorFactory.docTree.curStyleIndex;
58947
59006
  }
59007
+ _this._connectMode = connectMode;
58948
59008
  if (signType === 1 && type !== 1) {
58949
- _this._connectMode = connectMode;
58950
59009
  _this._isFront = isFront;
58951
59010
  _this._allowEditSignTime = allowEditSignTime;
58952
59011
  }
@@ -59136,16 +59195,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
59136
59195
  this._customProperty = value;
59137
59196
  }
59138
59197
  }
59139
- }, {
59140
- key: "PNGToJPG",
59141
- get: function get() {
59142
- return this._PNGToJPG;
59143
- },
59144
- set: function set(value) {
59145
- if (this._PNGToJPG !== value) {
59146
- this._PNGToJPG = value;
59147
- }
59148
- }
59149
59198
  }, {
59150
59199
  key: "isTemplate",
59151
59200
  get: function get() {
@@ -59332,7 +59381,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
59332
59381
  imgWidth: clearSign ? 0 : this.imgWidth,
59333
59382
  imgHeight: clearSign ? 0 : this.imgHeight,
59334
59383
  customProperty: clearSign ? new Object() : this.customProperty,
59335
- PNGToJPG: this.PNGToJPG,
59336
59384
  isTemplate: this.isTemplate,
59337
59385
  styleIndex: this.styleIndex,
59338
59386
  connectMode: this.connectMode,
@@ -59374,7 +59422,6 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
59374
59422
  json.fingerPrintSrc = '';
59375
59423
  }
59376
59424
  var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .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, json.connectChar, json.otherProperties);
59377
- signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0;
59378
59425
  // if (json.id != "") {
59379
59426
  // signNode.id = json.id;
59380
59427
  // }
@@ -76087,7 +76134,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
76087
76134
  /*
76088
76135
  * @Author: your name
76089
76136
  * @Date: 2021-09-01 16:51:49
76090
- * @LastEditTime: 2023-04-12 13:58:22
76137
+ * @LastEditTime: 2023-06-15 19:32:06
76091
76138
  * @LastEditors: liyanan 2441631434@qq.com
76092
76139
  * @Description: In User Settings Edit
76093
76140
  * @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
@@ -76133,6 +76180,16 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76133
76180
  _this._textStyle = cbStyle.getStyleKey();
76134
76181
  _this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : "";
76135
76182
  _this._title = otherProperties && otherProperties.title ? otherProperties.title : "";
76183
+ var isDisplayTitle = otherProperties && otherProperties.isDisplayTitle == "true" ? true : false;
76184
+ if (_this.attribute === 4) {
76185
+ if (isDisplayTitle) {
76186
+ if (_this._title == "") {
76187
+ _this._title = _this._abi02;
76188
+ }
76189
+ } else {
76190
+ _this._title = "";
76191
+ }
76192
+ }
76136
76193
  _this._signTime = otherProperties && otherProperties.time ? otherProperties.time : "";
76137
76194
  if (_this._title != "") {
76138
76195
  _this._drawTitle = new createjs.Text(_this.title + _this._connectChar, _this._textStyle, '#000000');
@@ -76174,7 +76231,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76174
76231
  }
76175
76232
  }
76176
76233
  //this._drawText = new DrawSimpleText('/', cbStyle.getStyleKey(), "#000000");
76177
- _this._drawText = new createjs.Text(node.connectMode, _this._textStyle, '#000000');
76234
+ if (node.connectMode != "换行" && node.connectMode != "无") {
76235
+ _this._drawText = new createjs.Text(node.connectMode, _this._textStyle, '#000000');
76236
+ }
76178
76237
  if (_this.number === 0) {
76179
76238
  var dText = new createjs.Text(_this.signName, _this._textStyle, '#000000');
76180
76239
  _this.dWidth = dText.getMeasuredWidth();
@@ -76185,7 +76244,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76185
76244
  if (number === 1) {
76186
76245
  _this.dWidth = imgWidth * scale;
76187
76246
  } else {
76188
- _this.dWidth = imgWidth * scale + _this._drawText.getMeasuredWidth();
76247
+ _this.dWidth = imgWidth * scale + (_this._drawText ? _this._drawText.getMeasuredWidth() : 0);
76189
76248
  }
76190
76249
  if (_this.attribute === 2 && _this._abi02 !== "") {
76191
76250
  _this._drawAbi02 = new createjs.Text(_this._abi02 + _this._connectChar, _this._textStyle, '#000000');
@@ -76202,6 +76261,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76202
76261
  _this.dHeight = _this.dHeight + _this._drawDate.getMeasuredHeight() + 2;
76203
76262
  }
76204
76263
  }
76264
+ if (_this.attribute === 4) {
76265
+ if (_this.title != "") {
76266
+ _this.dWidth += _this._drawTitle.getMeasuredWidth();
76267
+ }
76268
+ }
76205
76269
  }
76206
76270
  if (_this.type === 2) {
76207
76271
  //文字
@@ -76579,6 +76643,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76579
76643
  bitmap.x = _this3._drawTitle.getMeasuredWidth();
76580
76644
  _this3.addChild(bitmap);
76581
76645
  }
76646
+ } else if (_this3.attribute === 4) {
76647
+ if (_this3.title !== "") {
76648
+ _this3._drawTitle.textBaseline = 'alphabetic';
76649
+ _this3._drawTitle.textAlign = 'left';
76650
+ _this3.addChildAt(_this3._drawTitle, 0);
76651
+ bitmap.x = _this3._drawTitle.getMeasuredWidth();
76652
+ _this3.addChild(bitmap);
76653
+ } else {
76654
+ bitmap.x = 0;
76655
+ _this3.addChild(bitmap);
76656
+ }
76582
76657
  } else {
76583
76658
  _this3.addChildAt(bitmap, 0);
76584
76659
  }
@@ -76614,30 +76689,36 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76614
76689
  drawNode.dWidth = _this3._drawDate.getMeasuredWidth();
76615
76690
  }
76616
76691
  }
76692
+ if (drawNode.attribute == 4 && drawNode.title != "") {
76693
+ drawNode.dWidth += drawNode._drawTitle.getMeasuredWidth();
76694
+ }
76617
76695
  if (_this3.number === 2) {
76618
- drawNode.dWidth += _this3._drawText.getMeasuredWidth();
76696
+ drawNode.dWidth += _this3._drawText ? _this3._drawText.getMeasuredWidth() : 0;
76619
76697
  }
76620
76698
  if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
76621
76699
  bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -drawNode.dHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
76622
76700
  } else if (drawNode.attribute === 3 && drawNode.title !== "") {
76623
76701
  bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight - 4, width / hitWidth, (drawNode.dHeight - drawNode._drawDate.getMeasuredHeight() - 2) / hitHeight);
76702
+ } else if (drawNode.attribute === 4 && drawNode.title !== "") {
76703
+ bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight + 5, width / hitWidth, drawNode.dHeight / hitHeight);
76624
76704
  } else {
76625
76705
  bitmap.setTransform(0, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
76626
76706
  }
76627
76707
  var hitArea = new createjs.Shape();
76628
76708
  hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
76629
76709
  bitmap.hitArea = hitArea;
76630
- if (_this3.imgSrc.indexOf('data:image/') != -1 && _this3.imgSrc.indexOf('data:image/png') == -1) {
76631
- var canvas = document.createElement('canvas');
76632
- canvas.width = image.naturalWidth;
76633
- canvas.height = image.naturalHeight;
76634
- var ctx = canvas.getContext('2d');
76635
- ctx.fillStyle = '#FFFFFF';
76636
- ctx.fillRect(0, 0, image.naturalWidth, image.naturalHeight);
76637
- ctx.drawImage(image, 0, 0, image.naturalWidth, image.naturalHeight);
76638
- _this3.node.imgSrc = canvas.toDataURL('image/png');
76639
- _this3.node.PNGToJPG = 1;
76640
- }
76710
+ // if (this.attribute !== 4) {
76711
+ // if (this.imgSrc.indexOf('data:image/') != -1 && this.imgSrc.indexOf('data:image/png') == -1) {
76712
+ // const canvas = document.createElement('canvas');
76713
+ // canvas.width = image.naturalWidth;
76714
+ // canvas.height = image.naturalHeight;
76715
+ // const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;
76716
+ // ctx.fillStyle = '#FFFFFF';
76717
+ // ctx.fillRect(0, 0, image.naturalWidth, image.naturalHeight);
76718
+ // ctx.drawImage(image, 0, 0, image.naturalWidth, image.naturalHeight);
76719
+ // (this.node as SignNode).imgSrc = canvas.toDataURL('image/png');
76720
+ // }
76721
+ // }
76641
76722
  var dArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
76642
76723
  if (dArea) {
76643
76724
  var atype = hoEditorFactory.subDocManger.getHeaderFooterType(_this3.node.getNodePath());
@@ -196618,7 +196699,7 @@ var map = {
196618
196699
  "./pageInfoes/PageInfoes.vue": 17481,
196619
196700
  "./paragraph/ParagraphDialog.vue": 54949,
196620
196701
  "./poperSelect/PoperMark.vue": 71472,
196621
- "./poperSelect/PoperSelect.vue": 63138,
196702
+ "./poperSelect/PoperSelect.vue": 59046,
196622
196703
  "./poperTipText/PoperTipText.vue": 36081,
196623
196704
  "./popers/Poper.vue": 57937,
196624
196705
  "./popers/Title.vue": 89987,
@@ -196626,7 +196707,7 @@ var map = {
196626
196707
  "./qrCode/QrCode.vue": 86349,
196627
196708
  "./radioCheckBox/RadioCheckbox.vue": 93638,
196628
196709
  "./selectDialog/SelectDialog.vue": 59075,
196629
- "./sign/Sign.vue": 37930,
196710
+ "./sign/Sign.vue": 84240,
196630
196711
  "./table/TableCellPoper.vue": 61917,
196631
196712
  "./table/TableCellProperty.vue": 74601,
196632
196713
  "./table/TableColProperty.vue": 2116,
@@ -234740,7 +234821,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
234740
234821
  // EXTERNAL MODULE: ./src/plugins/util.ts
234741
234822
  var plugins_util = __webpack_require__(62783);
234742
234823
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
234743
- var PoperSelect = __webpack_require__(63138);
234824
+ var PoperSelect = __webpack_require__(59046);
234744
234825
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
234745
234826
  var PoperMark = __webpack_require__(71472);
234746
234827
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -236147,7 +236228,7 @@ var ParagraphNode = __webpack_require__(67945);
236147
236228
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
236148
236229
  var MarkNode = __webpack_require__(57727);
236149
236230
  ;// CONCATENATED MODULE: ./src/components/version.ts
236150
- /* harmony default export */ var version = ('3.0.69');
236231
+ /* harmony default export */ var version = ('3.0.71');
236151
236232
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
236152
236233
  var PoperTipText = __webpack_require__(36081);
236153
236234
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -247917,12 +247998,12 @@ var VueController = /*#__PURE__*/function () {
247917
247998
  */
247918
247999
  }, {
247919
248000
  key: "updateEmptySignNode",
247920
- value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat) {
248001
+ value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties) {
247921
248002
  if (node.type !== 0) {
247922
248003
  return;
247923
248004
  }
247924
248005
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
247925
- hoEditorFactory.docController.updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat);
248006
+ hoEditorFactory.docController.updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties);
247926
248007
  }
247927
248008
  /**
247928
248009
  * 更新签名时间
@@ -248616,6 +248697,13 @@ var VueController = /*#__PURE__*/function () {
248616
248697
  var y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
248617
248698
  return [caret.pageIndex + 1, caret.stageX * 0.75, y];
248618
248699
  }
248700
+ }, {
248701
+ key: "getPosition2",
248702
+ value: function getPosition2() {
248703
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
248704
+ var caret = hoEditorFactory.drawTree.caret;
248705
+ return [caret.pageIndex + 1, caret.stageX * 0.75, caret.stageY * 0.75 + 40];
248706
+ }
248619
248707
  /**
248620
248708
  * 获取光标位置
248621
248709
  * returns [pageIndex, x, y]
@@ -250749,6 +250837,56 @@ var VueController = /*#__PURE__*/function () {
250749
250837
  }
250750
250838
  }
250751
250839
  }
250840
+ /**
250841
+ * 根据节点名称找符合条件的文本域元素
250842
+ * @param name 节点名称
250843
+ */
250844
+ }, {
250845
+ key: "getTextInputFieldsByName",
250846
+ value: function getTextInputFieldsByName(name) {
250847
+ var nodes = [];
250848
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
250849
+ var iteratesNodes = function iteratesNodes(pnodes) {
250850
+ for (var i = 0; i < pnodes.length; i++) {
250851
+ var anode = pnodes[i];
250852
+ if (anode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
250853
+ if (anode.name === name) {
250854
+ nodes.push(anode);
250855
+ }
250856
+ }
250857
+ if (anode instanceof BaseCombineNode/* BaseCombineNode */.V) {
250858
+ iteratesNodes(anode.childNodes);
250859
+ }
250860
+ }
250861
+ };
250862
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
250863
+ iteratesNodes(mainNodes);
250864
+ return nodes;
250865
+ }
250866
+ }, {
250867
+ key: "moveCaretToTextInputField",
250868
+ value: function moveCaretToTextInputField(node) {
250869
+ var endNode = node.EndMarkNode.previousLeaf();
250870
+ if (endNode) {
250871
+ var _hoEditorFactory2 = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
250872
+ var toPath = _hoEditorFactory2.docTree.getNodeLastPath(endNode);
250873
+ _hoEditorFactory2.drawTree.moveCaretToPath(toPath);
250874
+ }
250875
+ }
250876
+ }, {
250877
+ key: "updateCustomProperty",
250878
+ value: function updateCustomProperty(objs) {
250879
+ for (var i = 0; i < objs.length; i++) {
250880
+ var obj = objs[i];
250881
+ var elements = this.getNodesById("all", true, obj.id);
250882
+ for (var e = 0; e < elements.length; e++) {
250883
+ var element = elements[e];
250884
+ if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re || element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
250885
+ element.customProperty = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, element.customProperty), obj.customProperty);
250886
+ }
250887
+ }
250888
+ }
250889
+ }
250752
250890
  }]);
250753
250891
  return VueController;
250754
250892
  }();