hoeditor-web 3.1.77 → 3.1.78

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.
@@ -15853,7 +15853,7 @@ var component = (0,componentNormalizer/* default */.Z)(
15853
15853
 
15854
15854
  /***/ }),
15855
15855
 
15856
- /***/ 24193:
15856
+ /***/ 8494:
15857
15857
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
15858
15858
 
15859
15859
  "use strict";
@@ -15869,7 +15869,7 @@ __webpack_require__.d(__webpack_exports__, {
15869
15869
  var es_function_name = __webpack_require__(68309);
15870
15870
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
15871
15871
  var es_array_concat = __webpack_require__(92222);
15872
- ;// 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=034775ac&
15872
+ ;// 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=9c073ac8&
15873
15873
 
15874
15874
 
15875
15875
  var render = function render() {
@@ -15953,7 +15953,7 @@ var render = function render() {
15953
15953
  attrs: {
15954
15954
  "value": 4
15955
15955
  }
15956
- }, [_vm._v("自定义多人签名")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
15956
+ }, [_vm._v("自定义多人签名(自定义签名格式)")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
15957
15957
  staticClass: "control-item"
15958
15958
  }, [_c('span', {
15959
15959
  staticClass: "label"
@@ -16256,7 +16256,19 @@ var render = function render() {
16256
16256
  "value": dateTime.dataId
16257
16257
  }
16258
16258
  }, [_vm._v(_vm._s("".concat(dateTime.name, "(").concat(dateTime.dataId, ")")))]);
16259
- }), 1)], 1)] : _vm._e()], 2), _vm.signType >= 9 ? _c('div', {
16259
+ }), 1)], 1)] : _vm._e(), _vm.signType !== 1 ? _c('li', {
16260
+ staticClass: "control-item"
16261
+ }, [_c('span', {
16262
+ staticClass: "label"
16263
+ }, [_vm._v("上级医师签名")]), _c('a-checkbox', {
16264
+ model: {
16265
+ value: _vm.isHigher,
16266
+ callback: function callback($$v) {
16267
+ _vm.isHigher = $$v;
16268
+ },
16269
+ expression: "isHigher"
16270
+ }
16271
+ })], 1) : _vm._e()], 2), _vm.signType >= 9 ? _c('div', {
16260
16272
  staticClass: "section-right"
16261
16273
  }, [_c('div', {
16262
16274
  staticClass: "custom-format-tool-box"
@@ -16358,7 +16370,7 @@ var render = function render() {
16358
16370
  };
16359
16371
  var staticRenderFns = [];
16360
16372
 
16361
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=034775ac&
16373
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=9c073ac8&
16362
16374
 
16363
16375
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
16364
16376
  var objectSpread2 = __webpack_require__(63442);
@@ -16388,6 +16400,8 @@ var es_array_filter = __webpack_require__(57327);
16388
16400
  var es_string_includes = __webpack_require__(32023);
16389
16401
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
16390
16402
  var es_array_slice = __webpack_require__(47042);
16403
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
16404
+ var es_object_keys = __webpack_require__(47941);
16391
16405
  // EXTERNAL MODULE: ./src/HOEditorFactorys.ts
16392
16406
  var HOEditorFactorys = __webpack_require__(74089);
16393
16407
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/SignNode.ts
@@ -16411,6 +16425,7 @@ var SignNode = __webpack_require__(24701);
16411
16425
 
16412
16426
 
16413
16427
 
16428
+
16414
16429
  /* harmony default export */ var Signvue_type_script_lang_js_ = ({
16415
16430
  name: 'Sign',
16416
16431
  props: {
@@ -16427,7 +16442,6 @@ var SignNode = __webpack_require__(24701);
16427
16442
  inject: ['getCustomProperty'],
16428
16443
  data: function data() {
16429
16444
  return {
16430
- height: 20,
16431
16445
  name: '',
16432
16446
  signType: 0,
16433
16447
  signFormat: '<医师姓名>',
@@ -16441,10 +16455,14 @@ var SignNode = __webpack_require__(24701);
16441
16455
  defaultFormatList: ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'],
16442
16456
  animationClassNames: 'control-modal-contents sign-modal animation-in',
16443
16457
  isDisplayTitle: false,
16458
+ isHigher: false,
16444
16459
  isDisplayTime: false,
16445
16460
  timePosition: '0',
16446
16461
  dateTimeList: [],
16447
- associatedElement: ''
16462
+ associatedElement: '',
16463
+ modifyProps: {},
16464
+ unwatchProps: [],
16465
+ watchProps: ['name', 'signType', 'signFormat', 'connectMode', 'connectChar', 'isFront', 'signTimeFormat', 'customFormatContent', 'isDisplayTitle', 'isDisplayTime', 'timePosition', 'associatedElement', 'isHigher']
16448
16466
  };
16449
16467
  },
16450
16468
  mounted: function mounted() {
@@ -16462,7 +16480,7 @@ var SignNode = __webpack_require__(24701);
16462
16480
  if (this.controlStatus === 'update') {
16463
16481
  var node = this.getCurrentSelectNode();
16464
16482
  if (node) {
16465
- var _node$otherProperties, _node$otherProperties2, _node$otherProperties3, _node$otherProperties4, _node$otherProperties5;
16483
+ var _node$otherProperties, _node$otherProperties2, _node$otherProperties3, _node$otherProperties4, _node$otherProperties5, _node$otherProperties6, _node$otherProperties7;
16466
16484
  this.name = node.name;
16467
16485
  if (node.attribute == 2) {
16468
16486
  this.signType = 2; // 自定义多人签名(带职称)
@@ -16486,10 +16504,11 @@ var SignNode = __webpack_require__(24701);
16486
16504
  this.isFront = node.isFront === true || node.isFront === 'true' ? true : false;
16487
16505
  this.signTimeFormat = node.signTimeFormat;
16488
16506
  this.customFormatContent = node.customFormatContent ? node.customFormatContent : '';
16489
- this.customSignFormatList = node.customSignFormatList ? node.customSignFormatList : [];
16507
+ // this.customSignFormatList = node.customSignFormatList ? node.customSignFormatList : [];
16490
16508
  this.isDisplayTitle = ((_node$otherProperties = node.otherProperties) === null || _node$otherProperties === void 0 ? void 0 : _node$otherProperties.isDisplayTitle) === 'true' | ((_node$otherProperties2 = node.otherProperties) === null || _node$otherProperties2 === void 0 ? void 0 : _node$otherProperties2.isDisplayTitle) === true ? true : false;
16491
- this.isDisplayTime = ((_node$otherProperties3 = node.otherProperties) === null || _node$otherProperties3 === void 0 ? void 0 : _node$otherProperties3.isDisplayTime) === 'true' | ((_node$otherProperties4 = node.otherProperties) === null || _node$otherProperties4 === void 0 ? void 0 : _node$otherProperties4.isDisplayTime) === true ? true : false;
16492
- this.timePosition = ((_node$otherProperties5 = node.otherProperties) === null || _node$otherProperties5 === void 0 ? void 0 : _node$otherProperties5.timePosition) == '1' ? '1' : '0';
16509
+ this.isHigher = ((_node$otherProperties3 = node.otherProperties) === null || _node$otherProperties3 === void 0 ? void 0 : _node$otherProperties3.isHigher) === 'true' | ((_node$otherProperties4 = node.otherProperties) === null || _node$otherProperties4 === void 0 ? void 0 : _node$otherProperties4.isHigher) === true ? true : false;
16510
+ this.isDisplayTime = ((_node$otherProperties5 = node.otherProperties) === null || _node$otherProperties5 === void 0 ? void 0 : _node$otherProperties5.isDisplayTime) === 'true' | ((_node$otherProperties6 = node.otherProperties) === null || _node$otherProperties6 === void 0 ? void 0 : _node$otherProperties6.isDisplayTime) === true ? true : false;
16511
+ this.timePosition = ((_node$otherProperties7 = node.otherProperties) === null || _node$otherProperties7 === void 0 ? void 0 : _node$otherProperties7.timePosition) == '1' ? '1' : '0';
16493
16512
  this.associatedElement = node.associatedElement ? node.associatedElement : '';
16494
16513
  list.forEach(function (v) {
16495
16514
  if (v.nodeType == 8 && (!associatedElementList.includes(v.dataId) || node.associatedElement == v.dataId)) {
@@ -16497,6 +16516,7 @@ var SignNode = __webpack_require__(24701);
16497
16516
  _this.dateTimeList.push(v);
16498
16517
  }
16499
16518
  });
16519
+ this.setWatchProps();
16500
16520
  }
16501
16521
  } else {
16502
16522
  list.forEach(function (v) {
@@ -16508,6 +16528,19 @@ var SignNode = __webpack_require__(24701);
16508
16528
  }
16509
16529
  },
16510
16530
  methods: {
16531
+ setWatchProps: function setWatchProps() {
16532
+ var _this2 = this;
16533
+ this.watchProps.forEach(function (key) {
16534
+ _this2.unwatchProps.push(_this2.$watch("".concat(key), function (newValue, oldValue) {
16535
+ this.modifyProps[key] = newValue;
16536
+ }));
16537
+ });
16538
+ },
16539
+ clearWatchProps: function clearWatchProps() {
16540
+ this.unwatchProps.forEach(function (func) {
16541
+ func && func();
16542
+ });
16543
+ },
16511
16544
  getCurrentSelectNode: function getCurrentSelectNode() {
16512
16545
  var _hoEditorFactory$vueC;
16513
16546
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
@@ -16574,32 +16607,56 @@ var SignNode = __webpack_require__(24701);
16574
16607
  }
16575
16608
  if (this.controlStatus === 'add') {
16576
16609
  if (this.signType === 9) {
16577
- // 自定义多人签名
16578
- this.vueController.insertEmptySignNode(this.name ? this.name : '自定义医生签名', 1, this.signFormat, this.signTimeFormat, customProperty, this.connectMode, this.isFront, this.allowEditSignTime, 0, '', {}, this.associatedElement);
16610
+ // 自定义医生签名
16611
+ this.vueController.insertEmptySignNode(this.name ? this.name : '自定义医生签名', 1, this.signFormat, this.signTimeFormat, customProperty, this.connectMode, this.isFront, this.allowEditSignTime, 0, '', {
16612
+ isHigher: this.isHigher
16613
+ }, this.associatedElement);
16579
16614
  } else if (this.signType === 2) {
16580
- // 自定义多人签名
16581
- this.vueController.insertEmptySignNode(this.name ? this.name : '自定义多人签名(默认带出职称)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar, {}, this.associatedElement);
16615
+ // 多人签名(默认带职称)
16616
+ this.vueController.insertEmptySignNode(this.name ? this.name : '自定义多人签名(默认带出职称)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar, {
16617
+ isHigher: this.isHigher
16618
+ }, this.associatedElement);
16582
16619
  } else if (this.signType === 3) {
16583
- // 自定义多人签名
16584
- this.vueController.insertEmptySignNode(this.name ? this.name : '自定义多人签名(默认带出职称和日期)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar, {}, this.associatedElement);
16620
+ // 自定义多人签名(默认带出职称和日期)
16621
+ this.vueController.insertEmptySignNode(this.name ? this.name : '自定义多人签名(默认带出职称和日期)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar, {
16622
+ isHigher: this.isHigher
16623
+ }, this.associatedElement);
16585
16624
  } else if (this.signType === 4) {
16586
- // 自定义多人签名
16625
+ // 自定义多人签名(职称,连接符可选)
16587
16626
  this.vueController.insertEmptySignNode(this.name ? this.name : '自定义多人签名(职称,连接符可选)', 0, '', this.signTimeFormat, customProperty, this.connectMode, undefined, undefined, this.signType, this.connectChar, (0,objectSpread2/* default */.Z)({
16588
- isDisplayTitle: this.isDisplayTitle
16627
+ isDisplayTitle: this.isDisplayTitle,
16628
+ isHigher: this.isHigher
16589
16629
  }, otherProperty), this.associatedElement);
16590
16630
  } else {
16591
16631
  var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
16592
- this.vueController.insertEmptySignNode(name, 0, '', '', customProperty, '', undefined, undefined, this.signType, '', {});
16632
+ var otherProperties = {
16633
+ isHigher: this.isHigher
16634
+ };
16635
+ if (this.signType == 1) {
16636
+ otherProperties = {};
16637
+ }
16638
+ this.vueController.insertEmptySignNode(name, 0, '', '', customProperty, '', undefined, undefined, this.signType, '', otherProperties, this.associatedElement);
16593
16639
  }
16594
16640
  } else if (this.controlStatus === 'update') {
16641
+ this.clearWatchProps();
16595
16642
  var node = this.getCurrentSelectNode();
16596
16643
  var _name = this.name ? this.name : node.name;
16597
16644
  var attribute = this.signType === 9 ? 0 : this.signType;
16598
16645
  var signType = this.signType == 9 ? 1 : 0; // 自定义签名的signType=1 其他签名 signType=0
16599
- var otherProperties = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, node.otherProperties), {}, {
16600
- isDisplayTitle: this.isDisplayTitle
16646
+ var _otherProperties = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, node.otherProperties), {}, {
16647
+ isDisplayTitle: this.isDisplayTitle,
16648
+ isHigher: this.isHigher
16601
16649
  }, otherProperty);
16602
- this.vueController.updateEmptySignNode(node, _name, attribute, this.connectChar, signType, this.signFormat, this.signor, '', this.signTimeFormat, this.connectMode, otherProperties, this.isFront, this.associatedElement);
16650
+ if (Object.keys(this.modifyProps).length) {
16651
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
16652
+ var record = hoEditorFactory.docTree.elementChangeRecords.get('|' + node.dataId);
16653
+ if (!record || record.indexOf('add') < 0) {
16654
+ hoEditorFactory.docTree.elementChangeRecords.set('|' + node.dataId, ['update', {
16655
+ nodeTypes: 'sign'
16656
+ }]);
16657
+ }
16658
+ }
16659
+ this.vueController.updateEmptySignNode(node, _name, attribute, this.connectChar, signType, this.signFormat, this.signor, '', this.signTimeFormat, this.connectMode, _otherProperties, this.isFront, this.associatedElement);
16603
16660
  }
16604
16661
  this.handleClose();
16605
16662
  },
@@ -16611,10 +16668,10 @@ var SignNode = __webpack_require__(24701);
16611
16668
  });
16612
16669
  ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
16613
16670
  /* harmony default export */ var sign_Signvue_type_script_lang_js_ = (Signvue_type_script_lang_js_);
16614
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.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=034775ac&prod&lang=less&
16671
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.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=9c073ac8&prod&lang=less&
16615
16672
  // extracted by mini-css-extract-plugin
16616
16673
 
16617
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=034775ac&prod&lang=less&
16674
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=9c073ac8&prod&lang=less&
16618
16675
 
16619
16676
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
16620
16677
  var componentNormalizer = __webpack_require__(70713);
@@ -166383,7 +166440,7 @@ var map = {
166383
166440
  "./qrCode/QrCode.vue": 59805,
166384
166441
  "./radioCheckBox/RadioCheckbox.vue": 22876,
166385
166442
  "./selectDialog/SelectDialog.vue": 32497,
166386
- "./sign/Sign.vue": 24193,
166443
+ "./sign/Sign.vue": 8494,
166387
166444
  "./table/TableCellPoper.vue": 97628,
166388
166445
  "./table/TableCellPoper1.vue": 44645,
166389
166446
  "./table/TableCellProperty.vue": 63689,
@@ -207024,7 +207081,7 @@ var TextNode = __webpack_require__(27198);
207024
207081
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207025
207082
  var ParagraphNode = __webpack_require__(67945);
207026
207083
  ;// CONCATENATED MODULE: ./src/components/version.ts
207027
- /* harmony default export */ var version = ('3.1.77');
207084
+ /* harmony default export */ var version = ('3.1.78');
207028
207085
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
207029
207086
  var PoperTipText = __webpack_require__(50987);
207030
207087
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -213745,6 +213802,9 @@ var TOHTMLConverter = /*#__PURE__*/function () {
213745
213802
  this.convert.set(BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntLabel], function (val) {
213746
213803
  return _this.TransText(val);
213747
213804
  });
213805
+ this.convert.set(BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntSign], function (val) {
213806
+ return _this.TransText(val);
213807
+ });
213748
213808
  // this.convert.set(NodeType[NodeType.ntControl], (val: Record<string, any>) => {
213749
213809
  // return this.TransText(val);
213750
213810
  // });
@@ -213868,6 +213928,14 @@ var TOHTMLConverter = /*#__PURE__*/function () {
213868
213928
  if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntControl]) {
213869
213929
  str += jnode.text;
213870
213930
  }
213931
+ if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntSign]) {
213932
+ if (jnode.type == "2") {
213933
+ str += jnode.imgSrc;
213934
+ }
213935
+ if (jnode.type == "1") {
213936
+ return this.TransImg(jnode);
213937
+ }
213938
+ }
213871
213939
  return "<span style=\"".concat(style, "\">").concat(str, "</span>");
213872
213940
  }
213873
213941
  }, {
@@ -213880,9 +213948,15 @@ var TOHTMLConverter = /*#__PURE__*/function () {
213880
213948
  }, {
213881
213949
  key: "TransImg",
213882
213950
  value: function TransImg(jnode) {
213883
- var style = this.ToHTMLStyle(jnode);
213884
- var img = jnode.imageDataBase64String;
213885
- return "<img id=\"".concat(jnode.id, "\" style=\"").concat(style, "\" src=\"").concat(img, "\"/>");
213951
+ var style = "";
213952
+ if (jnode.nodeType == "ntSign") {
213953
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
213954
+ style = "height:" + hoEditorFactory.signHeight + "px;";
213955
+ } else {
213956
+ style = this.ToHTMLStyle(jnode);
213957
+ }
213958
+ var img = jnode.imageDataBase64String || jnode.imgSrc;
213959
+ return "<img id=\"".concat(jnode.id ? jnode.id : jnode.dataId, "\" style=\"").concat(style, "\" src=\"").concat(img, "\"/>");
213886
213960
  }
213887
213961
  }, {
213888
213962
  key: "TransPara",
@@ -213947,7 +214021,7 @@ var TOHTMLConverter = /*#__PURE__*/function () {
213947
214021
  var content = "";
213948
214022
  for (var n = 0; n < jnode.childNodes.item.length; n++) {
213949
214023
  //这里只分析Cell
213950
-
214024
+ //console.log(n);
213951
214025
  var item = this.iterator.next();
213952
214026
  if (item.done) break;
213953
214027
  item.value["style"] = jnode.colInfos.item[n];
@@ -213980,7 +214054,7 @@ var TOHTMLConverter = /*#__PURE__*/function () {
213980
214054
  if (node['nodeType'] == 'ntRow') {
213981
214055
  //TODO:row属性CSS
213982
214056
  rtnText += "margin: 0;";
213983
- var hp = style['rowHeight'] ? "height:".concat(style.rowHeight, "px;") : '';
214057
+ var hp = style['rowHeight'] ? "height:".concat(style.rowHeight, "pt;") : '';
213984
214058
  if (style['rowProperty']) {
213985
214059
  hp = style.rowProperty['rowHeight'] && style.rowProperty['rowHeight'] != 0 ? "height:".concat(style.rowProperty.rowHeight, "cm;") : hp;
213986
214060
  }
@@ -213988,7 +214062,7 @@ var TOHTMLConverter = /*#__PURE__*/function () {
213988
214062
  } else if (node['nodeType'] == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntCell]) {
213989
214063
  //TODO:col属性CSS
213990
214064
  rtnText += "margin: 0;";
213991
- rtnText += style['colWidth'] ? "width:".concat(style.colWidth, "px;") : '';
214065
+ rtnText += style['colWidth'] ? "width:".concat(style.colWidth, "pt;") : '';
213992
214066
  if (style['crossLineType']) {
213993
214067
  switch (style.crossLineType) {
213994
214068
  case CellNode/* CrossLineType */.v[CellNode/* CrossLineType */.v.ct02]:
@@ -214027,19 +214101,27 @@ var TOHTMLConverter = /*#__PURE__*/function () {
214027
214101
  rtnText += "margin-top:".concat(topMarginPx, "px;");
214028
214102
  rtnText += "margin-bottom:".concat(bottomMarginPx, "px;");
214029
214103
  }
214104
+ var unit = 'pt';
214105
+ if (node['nodeType'] == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntImage]) {
214106
+ unit = 'px';
214107
+ }
214030
214108
  if (node["width"]) {
214031
- rtnText += "width:".concat(node.width, "px;");
214109
+ rtnText += "width:".concat(node.width).concat(unit, ";");
214032
214110
  }
214033
214111
  if (node["height"]) {
214034
- rtnText += "height:".concat(node.height, "px;");
214112
+ rtnText += "height:".concat(node.height).concat(unit, ";");
214035
214113
  }
214036
214114
  } else {
214037
214115
  //其他什么只要是需要放到属性里都放这
214116
+ var _unit = 'pt';
214117
+ if (node['nodeType'] == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntImage]) {
214118
+ _unit = 'px';
214119
+ }
214038
214120
  if (node["width"]) {
214039
- rtnText += "width:".concat(node.width, "px;");
214121
+ rtnText += "width:".concat(node.width).concat(_unit, ";");
214040
214122
  }
214041
214123
  if (node["height"]) {
214042
- rtnText += "height:".concat(node.height, "px;");
214124
+ rtnText += "height:".concat(node.height).concat(_unit, ";");
214043
214125
  }
214044
214126
  if (node['nodeType'] == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntTable]) {
214045
214127
  rtnText += 'border-collapse: collapse;';
@@ -214053,7 +214135,7 @@ var TOHTMLConverter = /*#__PURE__*/function () {
214053
214135
  key: "CombineStyleToHTMLStyle",
214054
214136
  value: function CombineStyleToHTMLStyle(val) {
214055
214137
  var spanText = "";
214056
- spanText += "font-size:" + val.size + "px;";
214138
+ spanText += "font-size:" + val.size + "pt;";
214057
214139
  spanText += "font-family:" + val.font + ";";
214058
214140
  spanText += val.bold ? "font-weight:bold;" : "";
214059
214141
  spanText += val.italic ? "font-style:italic;" : "";
@@ -220740,19 +220822,18 @@ var VueController = /*#__PURE__*/function () {
220740
220822
  hoEditorFactory.docTree.curDomRange = newRange;
220741
220823
  hoEditorFactory.drawTree.moveCaretToPath(curDomRange.startPath);
220742
220824
  }
220743
- /**
220744
- * 查询光标所在位置之前的文本内容
220745
- */
220746
220825
  }, {
220747
- key: "getCaretPreviousTextNode",
220748
- value: function getCaretPreviousTextNode() {
220749
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
220750
- var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
220751
- var node = curDomRange.npEnd.node;
220826
+ key: "getCaretPreviousNode",
220827
+ value: function getCaretPreviousNode(node) {
220828
+ if (!node) {
220829
+ return "";
220830
+ }
220752
220831
  var text = '';
220753
220832
  var getText = function getText(previousNode) {
220754
220833
  if (previousNode instanceof TextNode/* TextNode */.R || previousNode instanceof LabelNode/* LabelNode */.P || previousNode instanceof DownListNode/* DownListNode */.yF) {
220755
220834
  return previousNode.text;
220835
+ } else if (node instanceof MarkNode/* MarkNode */.j) {
220836
+ return "";
220756
220837
  } else if ((previousNode === null || previousNode === void 0 ? void 0 : previousNode.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re && (previousNode === null || previousNode === void 0 ? void 0 : previousNode.parentNode.inputFieldType) === TextInputFieldNode/* InputFieldType */.Zi.dropDownList) {
220757
220838
  return previousNode === null || previousNode === void 0 ? void 0 : previousNode.parentNode.text;
220758
220839
  }
@@ -220764,16 +220845,17 @@ var VueController = /*#__PURE__*/function () {
220764
220845
  text = getText(node.previousLeaf());
220765
220846
  }
220766
220847
  } else if (node instanceof SignNode/* SignNode */.N && node.type !== 3 || node instanceof ParagraphNode/* ParagraphNode */.C) {
220767
- text = getText(node.previousLeaf());
220848
+ text = "";
220768
220849
  } else if (node instanceof LabelNode/* LabelNode */.P) {
220769
220850
  text = node.text;
220851
+ } else if (node instanceof MarkNode/* MarkNode */.j) {
220852
+ text = "";
220770
220853
  } else if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220771
- text = getText(node.parentNode.previousLeaf());
220854
+ text = node.text;
220772
220855
  if (!text) {
220773
- text = getText(node.previousLeaf());
220856
+ text = getText(node.parentNode.previousLeaf());
220774
220857
  }
220775
- }
220776
- if (!text && (node === null || node === void 0 ? void 0 : node.parentNode) instanceof CellNode/* CellNode */.D) {
220858
+ } else if (!text && (node === null || node === void 0 ? void 0 : node.parentNode) instanceof CellNode/* CellNode */.D) {
220777
220859
  var cellNode = node === null || node === void 0 ? void 0 : node.parentNode;
220778
220860
  var colNo = cellNode.row.indexOf(cellNode);
220779
220861
  if (colNo != 0) {
@@ -220791,9 +220873,41 @@ var VueController = /*#__PURE__*/function () {
220791
220873
  }
220792
220874
  }
220793
220875
  }
220794
- text = text.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
220795
- if (text && text.length > 5) {
220796
- text = text.substring(text.length - 5, text.length);
220876
+ if (text) {
220877
+ text = text.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
220878
+ if (text.length > 8) {
220879
+ text = text.substring(text.length - 8, text.length);
220880
+ }
220881
+ }
220882
+ return text;
220883
+ }
220884
+ /**
220885
+ * 查询光标所在位置之前的文本内容
220886
+ */
220887
+ }, {
220888
+ key: "getCaretPreviousTextNode",
220889
+ value: function getCaretPreviousTextNode() {
220890
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
220891
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
220892
+ var node = curDomRange.npEnd.node;
220893
+ var count = 0;
220894
+ var text = "";
220895
+ var whileText = "";
220896
+ while (node && text.length < 3 && count < 12) {
220897
+ var _node5;
220898
+ count++;
220899
+ if (node instanceof SignNode/* SignNode */.N || node instanceof MarkNode/* MarkNode */.j || node instanceof TextNode/* TextNode */.R || node instanceof LabelNode/* LabelNode */.P || node instanceof DownListNode/* DownListNode */.yF) {
220900
+ node = node.previousLeaf();
220901
+ } else if (((_node5 = node) === null || _node5 === void 0 ? void 0 : _node5.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220902
+ node = node.parentNode.previousLeaf();
220903
+ } else {
220904
+ node = node.previousLeaf();
220905
+ }
220906
+ whileText = this.getCaretPreviousNode(node);
220907
+ text = whileText + text;
220908
+ }
220909
+ if (text.length < 3) {
220910
+ console.error("\u7B7E\u540D\u5143\u7D20\u524D\u6587\u672C\u5173\u952E\u5B57\u3010".concat(text, "\u3011,\u67E5\u8BE2\u8282\u70B9\u6B21\u6570\u3010").concat(count, "\u3011"));
220797
220911
  }
220798
220912
  return text ? text : '';
220799
220913
  }
@@ -220991,42 +221105,42 @@ var VueController = /*#__PURE__*/function () {
220991
221105
  var downNames = [];
220992
221106
  hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
220993
221107
  for (var i = 0; i < nodes.length; i++) {
220994
- var _node5 = nodes[i];
220995
- if (_node5 instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220996
- if (fieldNames.indexOf(_node5.name) === -1) {
220997
- fieldNames.push(_node5.name);
220998
- var sameNameEles = this.getNodesByName('all', true, _node5.name);
221108
+ var _node6 = nodes[i];
221109
+ if (_node6 instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
221110
+ if (fieldNames.indexOf(_node6.name) === -1) {
221111
+ fieldNames.push(_node6.name);
221112
+ var sameNameEles = this.getNodesByName('all', true, _node6.name);
220999
221113
  for (var j = 0; j < sameNameEles.length; j++) {
221000
221114
  var ele = sameNameEles[j];
221001
221115
  if (nodes.indexOf(ele) >= 0) continue;
221002
221116
  if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
221003
- ele.setFieldText(_node5.text);
221117
+ ele.setFieldText(_node6.text);
221004
221118
  }
221005
221119
  }
221006
221120
  }
221007
221121
  }
221008
- if (_node5 instanceof DateTimeNode/* DateTimeNode */.Z) {
221009
- if (dateNames.indexOf(_node5.name) === -1) {
221010
- dateNames.push(_node5.name);
221011
- var _sameNameEles = this.getNodesByName('all', true, _node5.name);
221122
+ if (_node6 instanceof DateTimeNode/* DateTimeNode */.Z) {
221123
+ if (dateNames.indexOf(_node6.name) === -1) {
221124
+ dateNames.push(_node6.name);
221125
+ var _sameNameEles = this.getNodesByName('all', true, _node6.name);
221012
221126
  for (var _j = 0; _j < _sameNameEles.length; _j++) {
221013
221127
  var _ele = _sameNameEles[_j];
221014
221128
  if (nodes.indexOf(_ele) >= 0) continue;
221015
221129
  if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
221016
- _ele.setDateTimeText(_node5.text);
221130
+ _ele.setDateTimeText(_node6.text);
221017
221131
  }
221018
221132
  }
221019
221133
  }
221020
221134
  }
221021
- if (_node5 instanceof DownListNode/* DownListNode */.yF) {
221022
- if (downNames.indexOf(_node5.name) === -1) {
221023
- downNames.push(_node5.name);
221024
- var _sameNameEles2 = this.getNodesByName('all', true, _node5.name);
221135
+ if (_node6 instanceof DownListNode/* DownListNode */.yF) {
221136
+ if (downNames.indexOf(_node6.name) === -1) {
221137
+ downNames.push(_node6.name);
221138
+ var _sameNameEles2 = this.getNodesByName('all', true, _node6.name);
221025
221139
  for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
221026
221140
  var _ele2 = _sameNameEles2[_j2];
221027
221141
  if (nodes.indexOf(_ele2) >= 0) continue;
221028
221142
  if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
221029
- _ele2.setDownListText(_node5.text);
221143
+ _ele2.setDownListText(_node6.text);
221030
221144
  }
221031
221145
  }
221032
221146
  }
@@ -221157,29 +221271,29 @@ var VueController = /*#__PURE__*/function () {
221157
221271
  var hasEmptyDoctorSign = false;
221158
221272
  var getAllNodes = function getAllNodes(nodes) {
221159
221273
  for (var i = 0; i < nodes.length; i++) {
221160
- var _node6 = nodes[i];
221161
- if (_node6 instanceof SignNode/* SignNode */.N) {
221274
+ var _node7 = nodes[i];
221275
+ if (_node7 instanceof SignNode/* SignNode */.N) {
221162
221276
  // 有值的患者签名
221163
- if (attribute == 1 && _node6.attribute === 1) {
221277
+ if (attribute == 1 && _node7.attribute === 1) {
221164
221278
  patientSignCount++;
221165
221279
  }
221166
- if (attribute == 1 && _node6.attribute === 1 && (_node6.imgSrc !== '' || _node6.fingerPrintSrc !== '')) {
221280
+ if (attribute == 1 && _node7.attribute === 1 && (_node7.imgSrc !== '' || _node7.fingerPrintSrc !== '')) {
221167
221281
  hasEmptyPatientSign = true;
221168
221282
  break;
221169
221283
  }
221170
221284
  // 空的医生签名
221171
- if (attribute != 1 && _node6.attribute != 1 && _node6.imgSrc === '') {
221285
+ if (attribute != 1 && _node7.attribute != 1 && _node7.imgSrc === '') {
221172
221286
  hasEmptyDoctorSign = true;
221173
221287
  break;
221174
221288
  }
221175
221289
  }
221176
- if (_node6 instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
221290
+ if (_node7 instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
221177
221291
  // 患者签名已存在的情况不在深层调用深层遍历
221178
- getAllNodes(_node6.childNodes);
221292
+ getAllNodes(_node7.childNodes);
221179
221293
  }
221180
- if (_node6 instanceof BaseCombineNode/* BaseCombineNode */.V && attribute != 1 && !hasEmptyDoctorSign) {
221294
+ if (_node7 instanceof BaseCombineNode/* BaseCombineNode */.V && attribute != 1 && !hasEmptyDoctorSign) {
221181
221295
  // 医生签名不存在的情况不在深层调用深层遍历
221182
- getAllNodes(_node6.childNodes);
221296
+ getAllNodes(_node7.childNodes);
221183
221297
  }
221184
221298
  }
221185
221299
  };
@@ -221395,28 +221509,28 @@ var VueController = /*#__PURE__*/function () {
221395
221509
  var signList = [];
221396
221510
  var getAllNodes = function getAllNodes(nodes) {
221397
221511
  for (var i = 0; i < nodes.length; i++) {
221398
- var _node7 = nodes[i];
221399
- if (_node7 instanceof SignNode/* SignNode */.N) {
221512
+ var _node8 = nodes[i];
221513
+ if (_node8 instanceof SignNode/* SignNode */.N) {
221400
221514
  // 空的医生签名
221401
- if (_node7.attribute != 1) {
221515
+ if (_node8.attribute != 1) {
221402
221516
  var sign = {
221403
221517
  type: 'sign',
221404
221518
  signed: false,
221405
- isTemplate: _node7.isTemplate,
221406
- number: _node7.number,
221407
- isVerify: _node7.otherProperties && _node7.otherProperties.isVerify ? true : false,
221408
- customProperty: _node7.customProperty,
221519
+ isTemplate: _node8.isTemplate,
221520
+ number: _node8.number,
221521
+ isVerify: _node8.otherProperties && _node8.otherProperties.isVerify ? true : false,
221522
+ customProperty: _node8.customProperty,
221409
221523
  previousText: '',
221410
- dataId: _node7.dataId,
221411
- name: _node7.name
221524
+ dataId: _node8.dataId,
221525
+ name: _node8.name
221412
221526
  };
221413
- sign.previousText = _this8.getPreviousText(_node7);
221527
+ sign.previousText = _this8.getPreviousText(_node8);
221414
221528
  signList.push(sign);
221415
221529
  }
221416
221530
  }
221417
- if (_node7 instanceof BaseCombineNode/* BaseCombineNode */.V) {
221531
+ if (_node8 instanceof BaseCombineNode/* BaseCombineNode */.V) {
221418
221532
  // 医生签名不存在的情况不在深层调用深层遍历
221419
- getAllNodes(_node7.childNodes);
221533
+ getAllNodes(_node8.childNodes);
221420
221534
  }
221421
221535
  }
221422
221536
  };
@@ -221434,23 +221548,23 @@ var VueController = /*#__PURE__*/function () {
221434
221548
  var arr = [];
221435
221549
  var getAllNodes = function getAllNodes(nodes) {
221436
221550
  for (var i = 0; i < nodes.length; i++) {
221437
- var _node8 = nodes[i];
221438
- if (_node8 instanceof SignNode/* SignNode */.N) {
221551
+ var _node9 = nodes[i];
221552
+ if (_node9 instanceof SignNode/* SignNode */.N) {
221439
221553
  // 空的医生签名
221440
221554
  // if (node.attribute != 1) {
221441
221555
  var sign = {
221442
221556
  type: 'sign',
221443
221557
  signed: false,
221444
- isTemplate: _node8.isTemplate,
221445
- number: _node8.number,
221446
- isVerify: _node8.otherProperties && _node8.otherProperties.isVerify ? true : false,
221447
- customProperty: _node8.customProperty,
221558
+ isTemplate: _node9.isTemplate,
221559
+ number: _node9.number,
221560
+ isVerify: _node9.otherProperties && _node9.otherProperties.isVerify ? true : false,
221561
+ customProperty: _node9.customProperty,
221448
221562
  previousText: '',
221449
- dataId: _node8.dataId,
221450
- name: _node8.name,
221451
- node: _node8
221563
+ dataId: _node9.dataId,
221564
+ name: _node9.name,
221565
+ node: _node9
221452
221566
  };
221453
- sign.previousText = _this9.getPreviousText(_node8);
221567
+ sign.previousText = _this9.getPreviousText(_node9);
221454
221568
  if (sign.number == 0 || sign.number == 1) {
221455
221569
  if (arr.length > 0) {
221456
221570
  signList.push(arr);
@@ -221464,9 +221578,9 @@ var VueController = /*#__PURE__*/function () {
221464
221578
  // }
221465
221579
  }
221466
221580
 
221467
- if (_node8 instanceof BaseCombineNode/* BaseCombineNode */.V) {
221581
+ if (_node9 instanceof BaseCombineNode/* BaseCombineNode */.V) {
221468
221582
  // 医生签名不存在的情况不在深层调用深层遍历
221469
- getAllNodes(_node8.childNodes);
221583
+ getAllNodes(_node9.childNodes);
221470
221584
  }
221471
221585
  }
221472
221586
  };
@@ -221498,15 +221612,15 @@ var VueController = /*#__PURE__*/function () {
221498
221612
  var isHasDoctorSign = false;
221499
221613
  var getAllNodes = function getAllNodes(nodes) {
221500
221614
  for (var i = 0; i < nodes.length; i++) {
221501
- var _node9 = nodes[i];
221502
- if (_node9 instanceof SignNode/* SignNode */.N && _node9.type !== 3 && _node9.imgSrc) {
221615
+ var _node10 = nodes[i];
221616
+ if (_node10 instanceof SignNode/* SignNode */.N && _node10.type !== 3 && _node10.imgSrc) {
221503
221617
  isHasDoctorSign = true;
221504
221618
  break; // 医生签名已存在的情况中断当前层的遍历
221505
221619
  }
221506
221620
 
221507
- if (_node9 instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
221621
+ if (_node10 instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
221508
221622
  // 医生签名已存在的情况不在深层调用深层遍历
221509
- getAllNodes(_node9.childNodes);
221623
+ getAllNodes(_node10.childNodes);
221510
221624
  }
221511
221625
  }
221512
221626
  };
@@ -221961,9 +222075,9 @@ var VueController = /*#__PURE__*/function () {
221961
222075
  var xmlRoot = '<?xml version="1.0" encoding="utf-8"?>';
221962
222076
  var doc2XmlJson = function doc2XmlJson(nodes) {
221963
222077
  for (var _i9 = 0; _i9 < nodes.length; _i9++) {
221964
- var _node10 = nodes[_i9];
221965
- if (_node10 instanceof TextNode/* TextNode */.R || _node10 instanceof ParagraphNode/* ParagraphNode */.C || _node10 instanceof TableNode/* TableNode */.Fh || _node10 instanceof ImageNode/* ImageNode */.H) {
221966
- var nodeJson = node2Json(_node10);
222078
+ var _node11 = nodes[_i9];
222079
+ if (_node11 instanceof TextNode/* TextNode */.R || _node11 instanceof ParagraphNode/* ParagraphNode */.C || _node11 instanceof TableNode/* TableNode */.Fh || _node11 instanceof ImageNode/* ImageNode */.H) {
222080
+ var nodeJson = node2Json(_node11);
221967
222081
  xmlRoot += x2js.js2xml(nodeJson);
221968
222082
  }
221969
222083
  }
@@ -222191,9 +222305,9 @@ var VueController = /*#__PURE__*/function () {
222191
222305
  paragraphRecordId: recordId
222192
222306
  });
222193
222307
  }
222194
- var _node11 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null);
222195
- if (_node11) {
222196
- nodes.push(_node11);
222308
+ var _node12 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null);
222309
+ if (_node12) {
222310
+ nodes.push(_node12);
222197
222311
  }
222198
222312
  }
222199
222313
  if (nodes.length > 0) {
@@ -222293,12 +222407,12 @@ var VueController = /*#__PURE__*/function () {
222293
222407
  var ret = [];
222294
222408
  var getAllNodes = function getAllNodes(nodes) {
222295
222409
  for (var i = 0; i < nodes.length; i++) {
222296
- var _node12 = nodes[i];
222297
- if (_node12 instanceof QrcodeNode/* QrcodeNode */.d) {
222298
- ret.push(_node12);
222410
+ var _node13 = nodes[i];
222411
+ if (_node13 instanceof QrcodeNode/* QrcodeNode */.d) {
222412
+ ret.push(_node13);
222299
222413
  }
222300
- if (_node12 instanceof BaseCombineNode/* BaseCombineNode */.V) {
222301
- getAllNodes(_node12.childNodes);
222414
+ if (_node13 instanceof BaseCombineNode/* BaseCombineNode */.V) {
222415
+ getAllNodes(_node13.childNodes);
222302
222416
  }
222303
222417
  }
222304
222418
  };
@@ -222330,12 +222444,12 @@ var VueController = /*#__PURE__*/function () {
222330
222444
  var ret = [];
222331
222445
  var getAllNodes = function getAllNodes(nodes) {
222332
222446
  for (var i = 0; i < nodes.length; i++) {
222333
- var _node13 = nodes[i];
222334
- if (_node13 instanceof QrcodeNode/* QrcodeNode */.d) {
222335
- ret.push(_node13);
222447
+ var _node14 = nodes[i];
222448
+ if (_node14 instanceof QrcodeNode/* QrcodeNode */.d) {
222449
+ ret.push(_node14);
222336
222450
  }
222337
- if (_node13 instanceof BaseCombineNode/* BaseCombineNode */.V) {
222338
- getAllNodes(_node13.childNodes);
222451
+ if (_node14 instanceof BaseCombineNode/* BaseCombineNode */.V) {
222452
+ getAllNodes(_node14.childNodes);
222339
222453
  }
222340
222454
  }
222341
222455
  };
@@ -222677,11 +222791,11 @@ var VueController = /*#__PURE__*/function () {
222677
222791
  var table = null;
222678
222792
  var i = 0;
222679
222793
  for (var k = 0; k < hoEditorFactory.docTree.mainNodes.length; k++) {
222680
- var _node14 = hoEditorFactory.docTree.mainNodes[k];
222681
- if (_node14 instanceof TableNode/* TableNode */.Fh) {
222794
+ var _node15 = hoEditorFactory.docTree.mainNodes[k];
222795
+ if (_node15 instanceof TableNode/* TableNode */.Fh) {
222682
222796
  i++;
222683
222797
  if (i === index) {
222684
- table = _node14;
222798
+ table = _node15;
222685
222799
  break;
222686
222800
  }
222687
222801
  }
@@ -222842,18 +222956,36 @@ var VueController = /*#__PURE__*/function () {
222842
222956
  downLists: value[1].downLists
222843
222957
  });
222844
222958
  }
222845
- obj = {
222846
- "type": value[0],
222847
- "id": key.split("|")[0],
222848
- "dataid": key.split("|")[1],
222849
- "record": value[1]
222850
- };
222851
- recordArr.push(obj);
222959
+ if (value[1].nodeTypes == 'sign') {
222960
+ var _node16 = _this13.getNodeByDataID('main', key.replace('|', ''));
222961
+ if (_node16 instanceof SignNode/* SignNode */.N) {
222962
+ var signJsons = _node16.node2Json();
222963
+ var signXml = x2js.js2xml(signJsons);
222964
+ obj = {
222965
+ "type": value[0],
222966
+ "id": '',
222967
+ "dataid": key.split("|")[1],
222968
+ "record": {
222969
+ nodeTypes: 'sign',
222970
+ content: signXml
222971
+ }
222972
+ };
222973
+ recordArr.push(obj);
222974
+ }
222975
+ } else {
222976
+ obj = {
222977
+ "type": value[0],
222978
+ "id": key.split("|")[0],
222979
+ "dataid": key.split("|")[1],
222980
+ "record": value[1]
222981
+ };
222982
+ recordArr.push(obj);
222983
+ }
222852
222984
  }
222853
222985
  }
222854
222986
  } else {
222855
222987
  var id = key.split("|")[0];
222856
- var _node15 = _this13.getNodeByID('all', id);
222988
+ var _node17 = _this13.getNodeByID('all', id);
222857
222989
  }
222858
222990
  });
222859
222991
  return recordArr;
@@ -222901,6 +223033,32 @@ var VueController = /*#__PURE__*/function () {
222901
223033
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
222902
223034
  return hoEditorFactory.docTree.mainNodes;
222903
223035
  }
223036
+ }, {
223037
+ key: "getFileHtml",
223038
+ value: function getFileHtml() {
223039
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
223040
+ var firstHead = hoEditorFactory.subDocManger.getHeaderPageNodes()[0];
223041
+ var headerEnd = hoEditorFactory.docTree.getNodeLastPath(firstHead[firstHead.length - 1]);
223042
+ var headerRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, 'header/0/0', headerEnd);
223043
+ hoEditorFactory.structureNode.Copy(headerRange, null);
223044
+ var headHtml = hoEditorFactory.structureNode.htmldata;
223045
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
223046
+ var mainEnd = hoEditorFactory.docTree.getNodeLastPath(mainNodes[mainNodes.length - 1]);
223047
+ var mainRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, 'main/0', mainEnd);
223048
+ hoEditorFactory.structureNode.Copy(mainRange, null);
223049
+ var mainHtml = hoEditorFactory.structureNode.htmldata;
223050
+ var padding = "".concat(hoEditorFactory.pageProperty.headerYPixes, "px ").concat(hoEditorFactory.pageProperty.rightMarginPixes, "px ").concat(hoEditorFactory.pageProperty.bottomMarginPixes, "px ").concat(hoEditorFactory.pageProperty.leftMarginPixes, "px");
223051
+ var content = "";
223052
+ var head = headHtml.match(/<!--StartFragment-->([\s\S]*?)<!--EndFragment-->/);
223053
+ var main = mainHtml.match(/<!--StartFragment-->([\s\S]*?)<!--EndFragment-->/);
223054
+ if (head && head[1]) {
223055
+ content += head[1];
223056
+ }
223057
+ if (main && main[1]) {
223058
+ content += main[1];
223059
+ }
223060
+ return "\n <html>\n <head>\n <style>\n html, body {\n padding: 0;\n margin: 0;\n background: #f2f4f7;\n }\n #hoEmrContent {\n margin: 20px auto;\n background: #fff;\n box-shadow: 0px 2px 12px 0px #c7cacf;\n }\n </style>\n </head>\n <body>\n <div id=\"hoEmrContent\" style='width: ".concat(hoEditorFactory.pageProperty.widthPixes, "px; padding: ").concat(padding, ";'>\n ").concat(content, "\n </div>\n </body>\n </html>");
223061
+ }
222904
223062
  }]);
222905
223063
  return VueController;
222906
223064
  }();