hoeditor-web 3.0.23 → 3.0.25

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.
@@ -18627,7 +18627,7 @@ var component = (0,componentNormalizer/* default */.Z)(
18627
18627
 
18628
18628
  /***/ }),
18629
18629
 
18630
- /***/ 7789:
18630
+ /***/ 74559:
18631
18631
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
18632
18632
 
18633
18633
  "use strict";
@@ -18639,7 +18639,7 @@ __webpack_require__.d(__webpack_exports__, {
18639
18639
  "default": function() { return /* binding */ table_TableFormula; }
18640
18640
  });
18641
18641
 
18642
- ;// 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/table/TableFormula.vue?vue&type=template&id=cb19c812&
18642
+ ;// 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/table/TableFormula.vue?vue&type=template&id=3db836cb&
18643
18643
  var render = function render() {
18644
18644
  var _vm = this,
18645
18645
  _c = _vm._self._c;
@@ -18911,7 +18911,20 @@ var render = function render() {
18911
18911
  attrs: {
18912
18912
  "type": "folder-add"
18913
18913
  }
18914
- })], 1)], 1)], 2)])]) : _vm._e(), _vm.formula === 'costumRowColumns' ? _c('section', {
18914
+ })], 1)], 1)], 2)])]) : _vm._e(), _vm.formula === 'bodySurfaceArea' ? _c('section', [_c('div', {
18915
+ staticClass: "ho-table-features-list"
18916
+ }, [_c('p', [_vm._v("体重")]), _c('a-input', {
18917
+ attrs: {
18918
+ "autocomplete": "off"
18919
+ },
18920
+ model: {
18921
+ value: _vm.bodySurfaceAreaWeight,
18922
+ callback: function callback($$v) {
18923
+ _vm.bodySurfaceAreaWeight = $$v;
18924
+ },
18925
+ expression: "bodySurfaceAreaWeight"
18926
+ }
18927
+ })], 1)]) : _vm._e(), _vm.formula === 'costumRowColumns' ? _c('section', {
18915
18928
  staticClass: "costum-row-columns"
18916
18929
  }, [_c('div', {
18917
18930
  staticClass: "ho-table-features-list"
@@ -19060,7 +19073,8 @@ var TableFormula = __webpack_require__(90832);
19060
19073
  expectedDate: ['预产期计算公式为末次月经第一天的月份加9个月或者减去3个月,为预产期的月份数;日期加7天,为预产期日。', '例如某孕妇的末次月经时间是1月11日来潮,她的预产期是,1+9=10,11+7=18,也就是10月18日的预产期。'],
19061
19074
  ftScoreMapping: '通过多个分值组合计算,转换为对应的值域信息。例如:1-5分(高),6-10分中,10-15分(低)',
19062
19075
  labor: ['将时间元素设置成运算模式,比如这个第一产程时间=宫口全开时间-宫缩开始时间', '第1产程是从规律 “宫缩开始”到“宫口开全”,(“宫口开全” - “宫缩开始”)', '第2产程是从 “宫口开全” 到 “胎儿娩出”, (“胎儿娩出” - “宫口开全” )', '第3产程是从 “胎儿娩出” 到 “胎盘娩出” , (“胎盘娩出” - “胎儿娩出” )', '总产程:= 第1产程+第2产程+第3产程', '表示格式 示例: 9小时24分24秒,当时间大于24小时时, 显示格式为“28小时30分30秒”']
19063
- }
19076
+ },
19077
+ bodySurfaceAreaWeight: ''
19064
19078
  };
19065
19079
  },
19066
19080
  inject: ['hoEditorProvider'],
@@ -19164,6 +19178,8 @@ var TableFormula = __webpack_require__(90832);
19164
19178
  this.vueController.insertTableFormula(JSON.stringify(ftScoreMapping).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping);
19165
19179
  } else if (this.formula === 'costumRowColumns') {
19166
19180
  this.vueController.insertTable(this.form.rows, this.form.columns);
19181
+ } else if (this.formula === 'bodySurfaceArea') {
19182
+ this.vueController.insertTableFormula("".concat(this.bodySurfaceAreaWeight).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea);
19167
19183
  }
19168
19184
  this.handleClose();
19169
19185
  },
@@ -19185,10 +19201,10 @@ var TableFormula = __webpack_require__(90832);
19185
19201
  });
19186
19202
  ;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=script&lang=js&
19187
19203
  /* harmony default export */ var table_TableFormulavue_type_script_lang_js_ = (TableFormulavue_type_script_lang_js_);
19188
- ;// 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/table/TableFormula.vue?vue&type=style&index=0&id=cb19c812&prod&lang=scss&
19204
+ ;// 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/table/TableFormula.vue?vue&type=style&index=0&id=3db836cb&prod&lang=scss&
19189
19205
  // extracted by mini-css-extract-plugin
19190
19206
 
19191
- ;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=cb19c812&prod&lang=scss&
19207
+ ;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=3db836cb&prod&lang=scss&
19192
19208
 
19193
19209
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
19194
19210
  var componentNormalizer = __webpack_require__(70713);
@@ -35343,7 +35359,7 @@ var Print = /*#__PURE__*/function () {
35343
35359
  key: "printToPDF",
35344
35360
  value: function () {
35345
35361
  var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format) {
35346
- var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, startPageNumOver, _iterator, _step, index, cpage, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s2, _last, printStyle, _svgBox, exportHtml, url, link, otherPageNumber, i, name;
35362
+ var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, startPageNumOver, _iterator, _step, index, cpage, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s2, _svgBox, printStyle, exportHtml, url, link, _last, otherPageNumber, i, name;
35347
35363
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
35348
35364
  while (1) {
35349
35365
  switch (_context3.prev = _context3.next) {
@@ -35467,7 +35483,7 @@ var Print = /*#__PURE__*/function () {
35467
35483
  svg2pdfOptions.x = (format[0] - width) / 2;
35468
35484
  }
35469
35485
  }
35470
- if (!hoEditorFactory.isUseImagePrint) {
35486
+ if (!(hoEditorFactory.isUseImagePrint && type !== 'html')) {
35471
35487
  _context3.next = 46;
35472
35488
  break;
35473
35489
  }
@@ -35540,52 +35556,52 @@ var Print = /*#__PURE__*/function () {
35540
35556
  console.timeEnd('绘制svg和生成pdf');
35541
35557
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
35542
35558
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
35543
- if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
35544
- _context3.next = 79;
35559
+ if (!(type === 'html')) {
35560
+ _context3.next = 90;
35545
35561
  break;
35546
35562
  }
35547
- _last = hoEditorFactory.printStatus.printRecord.last();
35548
- if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
35549
- _context3.next = 79;
35563
+ if (!(svgBox && svgBox.childNodes.length === 0)) {
35564
+ _context3.next = 78;
35550
35565
  break;
35551
35566
  }
35552
- message/* default.info */.Z.info('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录');
35567
+ message/* default.info */.Z.info('无新增内容');
35568
+ reslove && reslove('printend');
35569
+ return _context3.abrupt("return");
35570
+ case 78:
35571
+ printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
35572
+ exportHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat((_svgBox = svgBox) === null || _svgBox === void 0 ? void 0 : _svgBox.innerHTML, "</body>\n </html>\n ");
35573
+ url = window.URL.createObjectURL(new Blob([exportHtml], {
35574
+ type: "text/html"
35575
+ }));
35576
+ link = document.createElement('a');
35577
+ link.style.display = 'none';
35578
+ link.href = url;
35579
+ link.setAttribute('download', fileName ? fileName + '.html' : '电子病历文档.html');
35580
+ document.body.appendChild(link);
35581
+ link.click();
35582
+ setTimeout(function () {
35583
+ return link.remove();
35584
+ }, 100);
35553
35585
  reslove && reslove('printend');
35554
35586
  return _context3.abrupt("return");
35555
- case 79:
35556
- if (!(type === 'pdf')) {
35557
- _context3.next = 85;
35587
+ case 90:
35588
+ if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
35589
+ _context3.next = 96;
35558
35590
  break;
35559
35591
  }
35560
- PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
35561
- PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
35562
- hoEditorFactory.printStatus.drawPrintRecord.clear();
35563
- _context3.next = 91;
35564
- break;
35565
- case 85:
35566
- if (!(svgBox && svgBox.childNodes.length === 0)) {
35567
- _context3.next = 89;
35592
+ _last = hoEditorFactory.printStatus.printRecord.last();
35593
+ if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
35594
+ _context3.next = 96;
35568
35595
  break;
35569
35596
  }
35570
- message/* default.info */.Z.info('无新增内容');
35597
+ message/* default.info */.Z.info('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录');
35571
35598
  reslove && reslove('printend');
35572
35599
  return _context3.abrupt("return");
35573
- case 89:
35574
- printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
35575
- if (type === 'html') {
35576
- exportHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat((_svgBox = svgBox) === null || _svgBox === void 0 ? void 0 : _svgBox.innerHTML, "</body>\n </html>\n ");
35577
- url = window.URL.createObjectURL(new Blob([exportHtml], {
35578
- type: "text/html"
35579
- }));
35580
- link = document.createElement('a');
35581
- link.style.display = 'none';
35582
- link.href = url;
35583
- link.setAttribute('download', fileName ? fileName : '电子病历文档');
35584
- document.body.appendChild(link);
35585
- link.click();
35586
- setTimeout(function () {
35587
- return link.remove();
35588
- }, 100);
35600
+ case 96:
35601
+ if (type === 'pdf') {
35602
+ PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
35603
+ PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
35604
+ hoEditorFactory.printStatus.drawPrintRecord.clear();
35589
35605
  } else {
35590
35606
  otherPageNumber = PDF.internal.getNumberOfPages() - hoEditorFactory.drawTree.drawPages.length;
35591
35607
  if (otherPageNumber >= 1) {
@@ -35603,9 +35619,8 @@ var Print = /*#__PURE__*/function () {
35603
35619
  name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
35604
35620
  PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
35605
35621
  }
35606
- case 91:
35607
35622
  reslove && reslove('printend');
35608
- case 92:
35623
+ case 98:
35609
35624
  case "end":
35610
35625
  return _context3.stop();
35611
35626
  }
@@ -38885,6 +38900,15 @@ var DocController = /*#__PURE__*/function () {
38885
38900
  return;
38886
38901
  }
38887
38902
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
38903
+ if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psEdit */ .Dh.psEdit) {
38904
+ for (var i = r1; i <= r2; i++) {
38905
+ var rowInfo = table.rowInfos[i];
38906
+ if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
38907
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_89__/* ["default"].warn */ .Z.warn("表头行不允许删除");
38908
+ return;
38909
+ }
38910
+ }
38911
+ }
38888
38912
  if (r1 === 0 && r2 == table.rowCount - 1) {
38889
38913
  var range = table.getTableFullRange();
38890
38914
  this.deleteRange(range, true);
@@ -57810,6 +57834,7 @@ var FormularType;
57810
57834
  FormularType[FormularType["ftExpectedBirthDate"] = 4] = "ftExpectedBirthDate";
57811
57835
  FormularType[FormularType["ftPregnantWeeks"] = 5] = "ftPregnantWeeks";
57812
57836
  FormularType[FormularType["ftScoreMapping"] = 6] = "ftScoreMapping";
57837
+ FormularType[FormularType["ftBodySurfaceArea"] = 7] = "ftBodySurfaceArea";
57813
57838
  })(FormularType || (FormularType = {}));
57814
57839
  var TableFormula = /*#__PURE__*/function (_ControlNode) {
57815
57840
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TableFormula, _ControlNode);
@@ -57914,6 +57939,9 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
57914
57939
  if (this.formularType === FormularType.ftScoreMapping) {
57915
57940
  this.getScoreMapping();
57916
57941
  }
57942
+ if (this.formularType === FormularType.ftBodySurfaceArea) {
57943
+ this.clacBodySurfaceArea();
57944
+ }
57917
57945
  }
57918
57946
  }
57919
57947
  }, {
@@ -58599,6 +58627,41 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
58599
58627
  }
58600
58628
  return strRet;
58601
58629
  }
58630
+ }, {
58631
+ key: "clacBodySurfaceArea",
58632
+ value: function clacBodySurfaceArea() {
58633
+ var strRet = " ";
58634
+ var table = this.getParentCell().table;
58635
+ if (this.formulaStr == "") {
58636
+ ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_38__/* ["default"].warn */ .Z.warn("体重的单元格编号传入有误:" + this.formulaStr);
58637
+ }
58638
+ var _this$getRowColByCell23 = this.getRowColByCellAdress(this.formulaStr),
58639
+ _this$getRowColByCell24 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell23, 2),
58640
+ row = _this$getRowColByCell24[0],
58641
+ col = _this$getRowColByCell24[1];
58642
+ if (row >= 0 && col >= 0) {
58643
+ if (!table.rows[row]) return strRet;
58644
+ var wCell = table.rows[row][col];
58645
+ if (wCell) {
58646
+ var _this$getCellNumber9 = this.getCellNumber(table, row, col),
58647
+ _this$getCellNumber10 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getCellNumber9, 2),
58648
+ wRet = _this$getCellNumber10[0],
58649
+ weight = _this$getCellNumber10[1];
58650
+ if (weight == "") return strRet;
58651
+ var weightNum = Number(weight);
58652
+ if (wRet) {
58653
+ var num = 0;
58654
+ if (weightNum > 30) {
58655
+ num = 1.05 + (weightNum - 30) * 0.02;
58656
+ } else {
58657
+ num = 0.035 * weightNum + 0.1;
58658
+ }
58659
+ strRet = num.toFixed(2);
58660
+ }
58661
+ }
58662
+ }
58663
+ return strRet;
58664
+ }
58602
58665
  }, {
58603
58666
  key: "isCellInFormula",
58604
58667
  value: function isCellInFormula(acell, r, c) {
@@ -58668,6 +58731,8 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
58668
58731
  this._text = this.clacPregnantWeeks();
58669
58732
  } else if (this.formularType === FormularType.ftScoreMapping) {
58670
58733
  this._text = this.getScoreMapping();
58734
+ } else if (this.formularType === FormularType.ftBodySurfaceArea) {
58735
+ this._text = this.clacBodySurfaceArea();
58671
58736
  }
58672
58737
  this.node2DrawNode();
58673
58738
  }
@@ -61561,7 +61626,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
61561
61626
  /*
61562
61627
  * @Author: your name
61563
61628
  * @Date: 2020-11-03 15:17:54
61564
- * @LastEditTime: 2023-02-10 11:28:34
61629
+ * @LastEditTime: 2023-02-17 17:02:00
61565
61630
  * @LastEditors: liyanan 2441631434@qq.com
61566
61631
  * @Description: In User Settings Edit
61567
61632
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -62702,7 +62767,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
62702
62767
  //获取域内文本串
62703
62768
  }, {
62704
62769
  key: "getFieldText",
62705
- value: function getFieldText(isClearValue) {
62770
+ value: function getFieldText(isClearValue, isNeed) {
62706
62771
  var _this3 = this;
62707
62772
  var text = '';
62708
62773
  var loopChildNodes = function loopChildNodes(node) {
@@ -62782,7 +62847,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
62782
62847
  var _this$downListPropert;
62783
62848
  text = "";
62784
62849
  loopChildNodes(this);
62785
- if (text != this.text && !this.text.includes("<span>") && !((_this$downListPropert = this.downListProperty.listItems) !== null && _this$downListPropert !== void 0 && _this$downListPropert.includes("<元素>")) && this.readType != 1) {
62850
+ if (text != this.text && isNeed && !this.text.includes("<span>") && !((_this$downListPropert = this.downListProperty.listItems) !== null && _this$downListPropert !== void 0 && _this$downListPropert.includes("<元素>")) && this.readType != 1) {
62786
62851
  this.value = "";
62787
62852
  this.keyValue = "";
62788
62853
  return text;
@@ -63336,7 +63401,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
63336
63401
  };
63337
63402
  }
63338
63403
  }
63339
- this.text = this.getFieldText(clearSign);
63404
+ this.text = this.getFieldText(clearSign, true);
63340
63405
  if (isCopy) {
63341
63406
  return {
63342
63407
  nodeType: 'ntField',
@@ -82551,7 +82616,7 @@ var DrawTree = /*#__PURE__*/function () {
82551
82616
  value.parentNode.update();
82552
82617
  }
82553
82618
  var isCellInFormula = value.isCellInFormula(cell, r, c);
82554
- if (isCellInFormula || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
82619
+ if (isCellInFormula || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping || value.formularType === TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea) {
82555
82620
  //const str = value.formulaStr;
82556
82621
  value.updateResult();
82557
82622
  value.getParentCell().drawCell.needUpdate = true;
@@ -89305,7 +89370,7 @@ var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation)
89305
89370
  var printStyle = document.createElement('style');
89306
89371
  // css打印设置 size中 纸张尺寸暂时无法生效 打印方向生效
89307
89372
  printStyle.type = 'text/css';
89308
- printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation === 'l' ? 'landscape' : 'portrait', ";\n }\n\n body, html {\n padding: 0;\n margin: 0;\n background: #fff;\n }\n }\n body, html {\n margin: 0;\n background: #eee;\n text-align: center;\n }\n .ho-print-svg-list {\n margin: 0 auto;\n }\n .ho-print-svg-box {\n margin: 0 auto;\n position: relative;\n }\n svg {\n display: block;\n margin: 0 auto;\n border: 0;\n }\n ");
89373
+ printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation === 'l' ? 'landscape' : 'portrait', ";\n }\n\n body, html {\n padding: 0;\n margin: 0;\n background: #fff;\n }\n svg {\n display: block;\n margin: 0 auto;\n border: 0;\n }\n }\n body, html {\n margin: 0;\n background: #eee;\n text-align: center;\n }\n .ho-print-svg-list {\n margin: 0 auto;\n }\n .ho-print-svg-box {\n margin: 0 auto;\n position: relative;\n }\n svg {\n display: block;\n margin: 20px auto;\n border: 0;\n }\n svg:first-child {\n margin-top: 0\n }\n svg:last-child {\n margin-bottom: 0\n }\n ");
89309
89374
  return printStyle;
89310
89375
  };
89311
89376
  /**
@@ -220110,7 +220175,7 @@ var map = {
220110
220175
  "./table/TableColProperty.vue": 2116,
220111
220176
  "./table/TableForm.vue": 19064,
220112
220177
  "./table/TableFormTree.vue": 39703,
220113
- "./table/TableFormula.vue": 7789,
220178
+ "./table/TableFormula.vue": 74559,
220114
220179
  "./table/TableProperty.vue": 67472,
220115
220180
  "./table/TableRowProperty.vue": 5218,
220116
220181
  "./textDialog/TextDialog.vue": 94535,
@@ -260017,7 +260082,7 @@ var SignNode = __webpack_require__(24701);
260017
260082
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
260018
260083
  var ParagraphNode = __webpack_require__(67945);
260019
260084
  ;// CONCATENATED MODULE: ./src/components/version.ts
260020
- /* harmony default export */ var version = ('3.0.23');
260085
+ /* harmony default export */ var version = ('3.0.25');
260021
260086
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
260022
260087
  var PoperTipText = __webpack_require__(15845);
260023
260088
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -264056,56 +264121,56 @@ var StructureConvert = /*#__PURE__*/function () {
264056
264121
  stripWhitespaces: false,
264057
264122
  arrayAccessForm: "property"
264058
264123
  });
264059
- console.time("docProperty");
264124
+ // console.time("docProperty")
264060
264125
  xmlRoot += "<docProperty>";
264061
264126
  var _docProperty = this.doc2Json("docProperty");
264062
264127
  xmlRoot += x2js.js2xml(_docProperty);
264063
264128
  xmlRoot += "</docProperty>";
264064
- console.timeEnd("docProperty");
264065
- console.time("pageSettings");
264129
+ // console.timeEnd("docProperty");
264130
+ // console.time("pageSettings")
264066
264131
  xmlRoot += "<pageSettings>";
264067
264132
  var _pageSettings = this.doc2Json("pageSettings");
264068
264133
  xmlRoot += x2js.js2xml(_pageSettings);
264069
264134
  xmlRoot += "</pageSettings>";
264070
- console.timeEnd("pageSettings");
264071
- console.time("styles");
264135
+ // console.timeEnd("pageSettings");
264136
+ // console.time("styles")
264072
264137
  xmlRoot += "<styles>";
264073
264138
  var _styles = this.doc2Json("styles", "xml", xmlRoot, clearSign);
264074
264139
  xmlRoot += x2js.js2xml(_styles);
264075
264140
  xmlRoot += "</styles>";
264076
- console.timeEnd("styles");
264077
- console.time("comments");
264141
+ // console.timeEnd("styles");
264142
+ // console.time("comments")
264078
264143
  xmlRoot += "<comments>";
264079
264144
  var _comments = this.doc2Json("comments", "xml", xmlRoot, clearSign);
264080
264145
  xmlRoot += x2js.js2xml(_comments);
264081
264146
  xmlRoot += "</comments>";
264082
- console.timeEnd("comments");
264083
- console.time("userHistories");
264147
+ // console.timeEnd("comments");
264148
+ // console.time("userHistories")
264084
264149
  xmlRoot += "<userHistories>";
264085
264150
  var _userHistories = this.doc2Json("userHistories");
264086
264151
  xmlRoot += x2js.js2xml(_userHistories);
264087
264152
  xmlRoot += "</userHistories>";
264088
- console.timeEnd("userHistories");
264089
- console.time("headers");
264153
+ // console.timeEnd("userHistories");
264154
+ // console.time("headers")
264090
264155
  xmlRoot += "<headers>";
264091
264156
  xmlRoot = this.doc2Json("header", "xml", xmlRoot, clearSign);
264092
264157
  xmlRoot += "</headers>";
264093
- console.timeEnd("headers");
264094
- console.time("main");
264158
+ // console.timeEnd("headers");
264159
+ // console.time("main")
264095
264160
  xmlRoot += "<main>";
264096
264161
  xmlRoot = this.doc2Json("main", "xml", xmlRoot, clearSign);
264097
264162
  xmlRoot += "</main>";
264098
- console.timeEnd("main");
264099
- console.time("footers");
264163
+ // console.timeEnd("main");
264164
+ // console.time("footers")
264100
264165
  xmlRoot += "<footers>";
264101
264166
  xmlRoot = this.doc2Json("footer", "xml", xmlRoot, clearSign);
264102
264167
  xmlRoot += "</footers>";
264103
- console.timeEnd("footers");
264104
- console.time("docText");
264168
+ // console.timeEnd("footers");
264169
+ // console.time("docText")
264105
264170
  xmlRoot += "<docText>";
264106
264171
  xmlRoot += hoEditorFactory.vueController.getMainDocText();
264107
264172
  xmlRoot += "</docText>";
264108
- console.timeEnd("docText");
264173
+ // console.timeEnd("docText");
264109
264174
  xmlRoot += "</root>";
264110
264175
  //xmlRoot = xmlRoot.replaceAll("<TempNode>", "");
264111
264176
  //xmlRoot = xmlRoot.replaceAll("</TempNode>", "");
@@ -265343,7 +265408,7 @@ var StructureConvert = /*#__PURE__*/function () {
265343
265408
  var formularNodes = hoEditorFactory.drawTree.formularNodes;
265344
265409
  var tableArr = [];
265345
265410
  formularNodes.forEach(function (value, key) {
265346
- if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
265411
+ if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping || value.formularType === TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea) {
265347
265412
  value.updateResult();
265348
265413
  value.getParentCell().drawCell.needUpdate = true;
265349
265414
  // const prevNode = value.previousLeaf();
@@ -276338,10 +276403,10 @@ var PrintController = /*#__PURE__*/function () {
276338
276403
  var options = {
276339
276404
  orientation: orientation,
276340
276405
  unit: 'px',
276341
- format: format
276342
- // hotfixes: ["px_scaling"],
276406
+ format: format,
276407
+ hotfixes: ["px_scaling"],
276408
+ compress: true
276343
276409
  };
276344
-
276345
276410
  _this3.PDF = null;
276346
276411
  _this3.PDF = new jspdf/* default */.ZP(options);
276347
276412
  // PDF.setFont("SimSun");
@@ -276605,7 +276670,8 @@ var PrintController = /*#__PURE__*/function () {
276605
276670
  orientation: orientation,
276606
276671
  unit: 'px',
276607
276672
  format: format,
276608
- hotfixes: ['px_scaling']
276673
+ hotfixes: ['px_scaling'],
276674
+ compress: true
276609
276675
  };
276610
276676
  _this5.PDF = null;
276611
276677
  _this5.PDF = new jspdf/* default */.ZP(options);
@@ -278779,7 +278845,8 @@ var formularType = {
278779
278845
  3: 'labor',
278780
278846
  4: 'expectedDate',
278781
278847
  5: 'pregnantWeeks',
278782
- 6: 'ftScoreMapping' // 分值映射公式
278848
+ 6: 'ftScoreMapping',
278849
+ 7: 'bodySurfaceArea' //体表面积
278783
278850
  };
278784
278851
 
278785
278852
  var getFormula = function getFormula(tableFormular) {
@@ -279702,8 +279769,8 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
279702
279769
  )
279703
279770
 
279704
279771
  /* harmony default export */ var HoDocs = (HoDocs_component.exports);
279705
- ;// 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/toolbar/ToolBar.vue?vue&type=template&id=0b1eb6a7&
279706
- var ToolBarvue_type_template_id_0b1eb6a7_render = function render() {
279772
+ ;// 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/toolbar/ToolBar.vue?vue&type=template&id=39981836&
279773
+ var ToolBarvue_type_template_id_39981836_render = function render() {
279707
279774
  var _vm = this,
279708
279775
  _c = _vm._self._c;
279709
279776
  return _c('div', {
@@ -279936,7 +280003,7 @@ var ToolBarvue_type_template_id_0b1eb6a7_render = function render() {
279936
280003
  }, [_vm._v(_vm._s(item.title))]);
279937
280004
  }), 1)], 1) : _vm._e()], 1);
279938
280005
  };
279939
- var ToolBarvue_type_template_id_0b1eb6a7_staticRenderFns = [];
280006
+ var ToolBarvue_type_template_id_39981836_staticRenderFns = [];
279940
280007
 
279941
280008
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
279942
280009
  var es_array_map = __webpack_require__(21249);
@@ -283716,8 +283783,8 @@ var ToolTablevue_type_template_id_753fa24b_render = function render() {
283716
283783
  };
283717
283784
  var ToolTablevue_type_template_id_753fa24b_staticRenderFns = [];
283718
283785
 
283719
- ;// 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/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=73e0d603&
283720
- var HoTableFeaturesvue_type_template_id_73e0d603_render = function render() {
283786
+ ;// 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/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=42203191&
283787
+ var HoTableFeaturesvue_type_template_id_42203191_render = function render() {
283721
283788
  var _vm = this,
283722
283789
  _c = _vm._self._c;
283723
283790
  return _c('div', {
@@ -283760,7 +283827,9 @@ var HoTableFeaturesvue_type_template_id_73e0d603_render = function render() {
283760
283827
  key: "expectedDate"
283761
283828
  }, [_vm._v("预产期")]), _c('a-menu-item', {
283762
283829
  key: "ftScoreMapping"
283763
- }, [_vm._v("分值映射")])], 1)], 1)], 2)], 1) : _vm._e(), _vm.table.insertRowAbove && _vm.tableProperty.canAddRow ? _c('div', {
283830
+ }, [_vm._v("分值映射")]), _c('a-menu-item', {
283831
+ key: "bodySurfaceArea"
283832
+ }, [_vm._v("体表面积")])], 1)], 1)], 2)], 1) : _vm._e(), _vm.table.insertRowAbove && _vm.tableProperty.canAddRow ? _c('div', {
283764
283833
  directives: [{
283765
283834
  name: "debounce",
283766
283835
  rawName: "v-debounce:1000.click",
@@ -283918,7 +283987,7 @@ var HoTableFeaturesvue_type_template_id_73e0d603_render = function render() {
283918
283987
  staticClass: "ho-emr-tool-item"
283919
283988
  }, [_c('span', [_vm._v("取消合并单元格")])]) : _vm._e()]);
283920
283989
  };
283921
- var HoTableFeaturesvue_type_template_id_73e0d603_staticRenderFns = [];
283990
+ var HoTableFeaturesvue_type_template_id_42203191_staticRenderFns = [];
283922
283991
 
283923
283992
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=script&lang=js&
283924
283993
 
@@ -283991,7 +284060,9 @@ var HoTableFeaturesvue_type_template_id_73e0d603_staticRenderFns = [];
283991
284060
  text: '',
283992
284061
  range: []
283993
284062
  }]
283994
- }
284063
+ },
284064
+ // 体表面积
284065
+ bodySurfaceAreaWeight: ''
283995
284066
  };
283996
284067
  },
283997
284068
  computed: {
@@ -284052,6 +284123,7 @@ var HoTableFeaturesvue_type_template_id_73e0d603_staticRenderFns = [];
284052
284123
  this.weight = '';
284053
284124
  this.laborType = 1;
284054
284125
  this.expectedDate = '';
284126
+ this.bodySurfaceArea = '';
284055
284127
  },
284056
284128
  laborTypeChange: function laborTypeChange() {
284057
284129
  this.labor1 = '';
@@ -284074,7 +284146,8 @@ var HoTableFeaturesvue_type_template_id_73e0d603_staticRenderFns = [];
284074
284146
  bmi: 'BMI指数计算公式',
284075
284147
  labor: '产程计算公式',
284076
284148
  expectedDate: '预产期计算公式',
284077
- ftScoreMapping: '分值映射计算公式'
284149
+ ftScoreMapping: '分值映射计算公式',
284150
+ bodySurfaceArea: '体表面积公式'
284078
284151
  };
284079
284152
  if (formula[formulaType] === 'code') {
284080
284153
  this.setCellCode();
@@ -284149,8 +284222,8 @@ var HoTableFeaturesvue_type_template_id_73e0d603_staticRenderFns = [];
284149
284222
  ;
284150
284223
  var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
284151
284224
  insert_HoTableFeaturesvue_type_script_lang_js_,
284152
- HoTableFeaturesvue_type_template_id_73e0d603_render,
284153
- HoTableFeaturesvue_type_template_id_73e0d603_staticRenderFns,
284225
+ HoTableFeaturesvue_type_template_id_42203191_render,
284226
+ HoTableFeaturesvue_type_template_id_42203191_staticRenderFns,
284154
284227
  false,
284155
284228
  null,
284156
284229
  null,
@@ -284945,10 +285018,10 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
284945
285018
  });
284946
285019
  ;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js&
284947
285020
  /* harmony default export */ var toolbar_ToolBarvue_type_script_lang_js_ = (ToolBarvue_type_script_lang_js_);
284948
- ;// 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/toolbar/ToolBar.vue?vue&type=style&index=0&id=0b1eb6a7&prod&lang=scss&
285021
+ ;// 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/toolbar/ToolBar.vue?vue&type=style&index=0&id=39981836&prod&lang=scss&
284949
285022
  // extracted by mini-css-extract-plugin
284950
285023
 
284951
- ;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=0b1eb6a7&prod&lang=scss&
285024
+ ;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=39981836&prod&lang=scss&
284952
285025
 
284953
285026
  ;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
284954
285027
 
@@ -284961,8 +285034,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
284961
285034
 
284962
285035
  var ToolBar_component = (0,componentNormalizer/* default */.Z)(
284963
285036
  toolbar_ToolBarvue_type_script_lang_js_,
284964
- ToolBarvue_type_template_id_0b1eb6a7_render,
284965
- ToolBarvue_type_template_id_0b1eb6a7_staticRenderFns,
285037
+ ToolBarvue_type_template_id_39981836_render,
285038
+ ToolBarvue_type_template_id_39981836_staticRenderFns,
284966
285039
  false,
284967
285040
  null,
284968
285041
  null,
@@ -285563,7 +285636,8 @@ var popper = __webpack_require__(95551);
285563
285636
  labor: '产程公式',
285564
285637
  expectedDate: '预产期公式',
285565
285638
  pregnantWeeks: '孕周公式',
285566
- ftScoreMapping: '分值映射公式'
285639
+ ftScoreMapping: '分值映射公式',
285640
+ bodySurfaceArea: '体表面积'
285567
285641
  },
285568
285642
  isPasted: false,
285569
285643
  isWebview: false,
@@ -285627,7 +285701,7 @@ var popper = __webpack_require__(95551);
285627
285701
  try {
285628
285702
  if (e && e.data) {
285629
285703
  var res = JSON.parse(e.data);
285630
- if (!res.res.includes("<html") && !res.res.includes("</html>")) {
285704
+ if (!res.res.includes('<html') && !res.res.includes('</html>')) {
285631
285705
  this.txtText = res.res;
285632
285706
  } else {
285633
285707
  this.htmlText = res.res.replace(/\r\n/g, '').match(reg)[0];