hoeditor-web 3.0.43 → 3.0.45
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.
- package/lib/hoeditor.umd.js +116 -51
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -51116,10 +51116,11 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
51116
51116
|
this.transType(json);
|
|
51117
51117
|
if (isPaste) {
|
|
51118
51118
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
51119
|
-
if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
|
|
51120
|
-
|
|
51121
|
-
|
|
51122
|
-
}
|
|
51119
|
+
// if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
|
|
51120
|
+
// //json.id = hoEditorFactory.gernerateCode.generateID("DT");
|
|
51121
|
+
// json.dataId = hoEditorFactory.gernerateCode.generateID("DateTime");
|
|
51122
|
+
// }
|
|
51123
|
+
json.dataId = hoEditorFactory.gernerateCode.generateID("DateTime");
|
|
51123
51124
|
}
|
|
51124
51125
|
json.readType = json.readType ? Number(json.readType) : -1;
|
|
51125
51126
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
@@ -51912,10 +51913,11 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
51912
51913
|
this.transType(json);
|
|
51913
51914
|
if (isPaste) {
|
|
51914
51915
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
51915
|
-
if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
|
|
51916
|
-
|
|
51917
|
-
|
|
51918
|
-
}
|
|
51916
|
+
// if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
|
|
51917
|
+
// //json.id = hoEditorFactory.gernerateCode.generateID("DL");
|
|
51918
|
+
// json.dataId = hoEditorFactory.gernerateCode.generateID("DownList");
|
|
51919
|
+
// }
|
|
51920
|
+
json.dataId = hoEditorFactory.gernerateCode.generateID("DownList");
|
|
51919
51921
|
}
|
|
51920
51922
|
json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
|
|
51921
51923
|
json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
|
|
@@ -52923,7 +52925,7 @@ var NodeNeedModifyEvent = __webpack_require__(76830);
|
|
|
52923
52925
|
* @Author: liyanan 2441631434@qq.com
|
|
52924
52926
|
* @Date: 2023-03-17 14:19:29
|
|
52925
52927
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
52926
|
-
* @LastEditTime: 2023-03-
|
|
52928
|
+
* @LastEditTime: 2023-03-30 09:44:07
|
|
52927
52929
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawJumpButton.ts
|
|
52928
52930
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
52929
52931
|
*/
|
|
@@ -52960,7 +52962,7 @@ var DrawJumpButton = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
52960
52962
|
// 创建按钮形状
|
|
52961
52963
|
var buttonShape = new createjs.Shape();
|
|
52962
52964
|
buttonShape.name = "buttonShape";
|
|
52963
|
-
buttonShape.graphics.clear().beginFill("#A9A7AB").drawRoundRect(0, 5, this.dWidth, this.dHeight,
|
|
52965
|
+
buttonShape.graphics.clear().beginStroke("#000000").beginFill("#A9A7AB").drawRoundRect(0, 5, this.dWidth, this.dHeight, 5);
|
|
52964
52966
|
// 创建按钮文本
|
|
52965
52967
|
var buttonText = new createjs.Text(this.buttonName, "12px SimSun", "#000000");
|
|
52966
52968
|
buttonText.textAlign = "left";
|
|
@@ -52982,7 +52984,7 @@ var DrawJumpButton = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
52982
52984
|
button.children[1].font = "bold " + font;
|
|
52983
52985
|
hoEditorFactory.drawPageTree.updateDrawPage(dArea.index);
|
|
52984
52986
|
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
52985
|
-
var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(drawNode.node, '
|
|
52987
|
+
var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(drawNode.node, 'leftclick', startPos.page ? startPos.page.pageIndex : 0);
|
|
52986
52988
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
52987
52989
|
}
|
|
52988
52990
|
});
|
|
@@ -57706,15 +57708,16 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
57706
57708
|
delete json.nodeType;
|
|
57707
57709
|
if (isPaste) {
|
|
57708
57710
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
57709
|
-
|
|
57710
|
-
if (json.controlStyle === "RadioBox") name = "RB";
|
|
57711
|
-
if (json.controlStyle === "CheckBox") name = "CB";
|
|
57712
|
-
hoEditorFactory.docTree.radioAndCheckBoxsMap.forEach(
|
|
57713
|
-
|
|
57714
|
-
|
|
57715
|
-
|
|
57716
|
-
|
|
57717
|
-
});
|
|
57711
|
+
//let name = "";
|
|
57712
|
+
//if (json.controlStyle === "RadioBox") name = "RB";
|
|
57713
|
+
//if (json.controlStyle === "CheckBox") name = "CB";
|
|
57714
|
+
// hoEditorFactory.docTree.radioAndCheckBoxsMap.forEach((value, key) => {
|
|
57715
|
+
// if (value.dataId === json.dataId) {
|
|
57716
|
+
// //json.id = hoEditorFactory.gernerateCode.generateID(name);
|
|
57717
|
+
// json.dataId = hoEditorFactory.gernerateCode.generateID(json.controlStyle);
|
|
57718
|
+
// }
|
|
57719
|
+
// });
|
|
57720
|
+
json.dataId = hoEditorFactory.gernerateCode.generateID(json.controlStyle);
|
|
57718
57721
|
}
|
|
57719
57722
|
json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
|
|
57720
57723
|
json.isSelected = !json.isSelected ? false : json.isSelected.text != undefined ? json.isSelected.text : json.isSelected;
|
|
@@ -60025,6 +60028,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60025
60028
|
var arrStr = this.formulaStr.split(",");
|
|
60026
60029
|
if (arrStr.length < 2) {
|
|
60027
60030
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_38__/* ["default"].warn */ .Z.warn("入院时间和出院时间对应的单元格编号传入有误:" + this.formulaStr);
|
|
60031
|
+
return strRet;
|
|
60028
60032
|
}
|
|
60029
60033
|
var _this$getRowColByCell25 = this.getRowColByCellAdress(arrStr[0]),
|
|
60030
60034
|
_this$getRowColByCell26 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getRowColByCell25, 2),
|
|
@@ -60046,12 +60050,15 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60046
60050
|
if ((0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .isDate */ .J_)(rysj) && (0,_plugins_util__WEBPACK_IMPORTED_MODULE_30__/* .isDate */ .J_)(cysj)) {
|
|
60047
60051
|
var rDate = new Date(rysj);
|
|
60048
60052
|
var cDate = new Date(cysj);
|
|
60049
|
-
|
|
60050
|
-
var
|
|
60051
|
-
var
|
|
60052
|
-
|
|
60053
|
-
var
|
|
60054
|
-
|
|
60053
|
+
// 将日期转换为 UTC 时间戳
|
|
60054
|
+
var rTime = Date.UTC(rDate.getFullYear(), rDate.getMonth(), rDate.getDate());
|
|
60055
|
+
var cTime = Date.UTC(cDate.getFullYear(), cDate.getMonth(), cDate.getDate());
|
|
60056
|
+
// 计算日期相差的毫秒数
|
|
60057
|
+
var diff = Math.abs(cTime - rTime);
|
|
60058
|
+
// 将毫秒数转换为天数
|
|
60059
|
+
var subTime = Math.floor(diff / (1000 * 60 * 60 * 24));
|
|
60060
|
+
if (subTime == 0) subTime = 1;
|
|
60061
|
+
return subTime.toString();
|
|
60055
60062
|
}
|
|
60056
60063
|
}
|
|
60057
60064
|
}
|
|
@@ -63032,7 +63039,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63032
63039
|
/*
|
|
63033
63040
|
* @Author: your name
|
|
63034
63041
|
* @Date: 2020-11-03 15:17:54
|
|
63035
|
-
* @LastEditTime: 2023-03-
|
|
63042
|
+
* @LastEditTime: 2023-03-30 16:16:55
|
|
63036
63043
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
63037
63044
|
* @Description: In User Settings Edit
|
|
63038
63045
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -64947,10 +64954,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
64947
64954
|
delete json.nodeType;
|
|
64948
64955
|
this.transType(json);
|
|
64949
64956
|
if (isPaste) {
|
|
64950
|
-
if (hoEditorFactory.vueController.getNodeByDataID('all', json.dataId)) {
|
|
64951
|
-
|
|
64952
|
-
|
|
64953
|
-
}
|
|
64957
|
+
// if (hoEditorFactory.vueController.getNodeByDataID('all', json.dataId)) {
|
|
64958
|
+
// //json.id = hoEditorFactory.gernerateCode.generateID("TF");
|
|
64959
|
+
// json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
|
|
64960
|
+
// }
|
|
64961
|
+
json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
|
|
64954
64962
|
}
|
|
64955
64963
|
json.canModifyContent = !json.canModifyContent ? false : json.canModifyContent;
|
|
64956
64964
|
json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
|
|
@@ -80111,6 +80119,8 @@ var DrawConfig = __webpack_require__(37616);
|
|
|
80111
80119
|
var DrawSignNode = __webpack_require__(75638);
|
|
80112
80120
|
// EXTERNAL MODULE: ./src/editor/dom/TableProperty.ts
|
|
80113
80121
|
var TableProperty = __webpack_require__(79546);
|
|
80122
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/JumpButtonNode.ts + 1 modules
|
|
80123
|
+
var JumpButtonNode = __webpack_require__(330);
|
|
80114
80124
|
;// CONCATENATED MODULE: ./src/editor/draw/drawTree/DrawTree.ts
|
|
80115
80125
|
|
|
80116
80126
|
|
|
@@ -80176,6 +80186,7 @@ var TableProperty = __webpack_require__(79546);
|
|
|
80176
80186
|
|
|
80177
80187
|
|
|
80178
80188
|
|
|
80189
|
+
|
|
80179
80190
|
|
|
80180
80191
|
|
|
80181
80192
|
//当前的显示状态,psDesign为设计状态,psEdit为正常编辑状态 psPreview为打印预览态态 psPrint 正在打印状态, psReview审阅状态
|
|
@@ -81782,6 +81793,9 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
81782
81793
|
this._caret.visible = false;
|
|
81783
81794
|
}
|
|
81784
81795
|
}
|
|
81796
|
+
if (anode instanceof JumpButtonNode/* JumpButtonNode */.a) {
|
|
81797
|
+
this._caret.visible = false;
|
|
81798
|
+
}
|
|
81785
81799
|
}
|
|
81786
81800
|
//console.timeEnd("文档change事件");
|
|
81787
81801
|
return true;
|
|
@@ -82120,6 +82134,9 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
82120
82134
|
this._caret.visible = false;
|
|
82121
82135
|
}
|
|
82122
82136
|
}
|
|
82137
|
+
if (endNp.node instanceof JumpButtonNode/* JumpButtonNode */.a) {
|
|
82138
|
+
this._caret.visible = false;
|
|
82139
|
+
}
|
|
82123
82140
|
return true;
|
|
82124
82141
|
}
|
|
82125
82142
|
}, {
|
|
@@ -82397,6 +82414,9 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
82397
82414
|
this._caret.visible = false;
|
|
82398
82415
|
}
|
|
82399
82416
|
}
|
|
82417
|
+
if (_np4.node instanceof JumpButtonNode/* JumpButtonNode */.a) {
|
|
82418
|
+
this._caret.visible = false;
|
|
82419
|
+
}
|
|
82400
82420
|
}
|
|
82401
82421
|
}
|
|
82402
82422
|
}
|
|
@@ -231997,8 +232017,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
231997
232017
|
var es_number_constructor = __webpack_require__(9653);
|
|
231998
232018
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
231999
232019
|
var es_json_stringify = __webpack_require__(38862);
|
|
232000
|
-
;// 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/HoDoc.vue?vue&type=template&id=
|
|
232001
|
-
var
|
|
232020
|
+
;// 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/HoDoc.vue?vue&type=template&id=bc0f5c2a&
|
|
232021
|
+
var HoDocvue_type_template_id_bc0f5c2a_render = function render() {
|
|
232002
232022
|
var _vm = this,
|
|
232003
232023
|
_c = _vm._self._c;
|
|
232004
232024
|
return _c('div', {
|
|
@@ -232143,7 +232163,7 @@ var HoDocvue_type_template_id_2f0d52fa_render = function render() {
|
|
|
232143
232163
|
}
|
|
232144
232164
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
232145
232165
|
};
|
|
232146
|
-
var
|
|
232166
|
+
var HoDocvue_type_template_id_bc0f5c2a_staticRenderFns = [];
|
|
232147
232167
|
|
|
232148
232168
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
232149
232169
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -235370,7 +235390,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235370
235390
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235371
235391
|
var MarkNode = __webpack_require__(57727);
|
|
235372
235392
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235373
|
-
/* harmony default export */ var version = ('3.0.
|
|
235393
|
+
/* harmony default export */ var version = ('3.0.45');
|
|
235374
235394
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235375
235395
|
var PoperTipText = __webpack_require__(15845);
|
|
235376
235396
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -235953,8 +235973,9 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
235953
235973
|
if (colProperty.editorProperty === 4) {
|
|
235954
235974
|
this.$emit('dblNodeClick', {
|
|
235955
235975
|
node: function node() {
|
|
235976
|
+
var _colProperty$signProp;
|
|
235956
235977
|
return {
|
|
235957
|
-
name: colProperty.signProperty.name || '签名',
|
|
235978
|
+
name: ((_colProperty$signProp = colProperty.signProperty) === null || _colProperty$signProp === void 0 ? void 0 : _colProperty$signProp.name) || '签名',
|
|
235958
235979
|
type: 'table-sign'
|
|
235959
235980
|
};
|
|
235960
235981
|
},
|
|
@@ -236082,10 +236103,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236082
236103
|
});
|
|
236083
236104
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
236084
236105
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
236085
|
-
;// 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/HoDoc.vue?vue&type=style&index=0&id=
|
|
236106
|
+
;// 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/HoDoc.vue?vue&type=style&index=0&id=bc0f5c2a&prod&lang=scss&
|
|
236086
236107
|
// extracted by mini-css-extract-plugin
|
|
236087
236108
|
|
|
236088
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
236109
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=bc0f5c2a&prod&lang=scss&
|
|
236089
236110
|
|
|
236090
236111
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
236091
236112
|
|
|
@@ -236098,8 +236119,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236098
236119
|
|
|
236099
236120
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
236100
236121
|
components_HoDocvue_type_script_lang_js_,
|
|
236101
|
-
|
|
236102
|
-
|
|
236122
|
+
HoDocvue_type_template_id_bc0f5c2a_render,
|
|
236123
|
+
HoDocvue_type_template_id_bc0f5c2a_staticRenderFns,
|
|
236103
236124
|
false,
|
|
236104
236125
|
null,
|
|
236105
236126
|
null,
|
|
@@ -242649,6 +242670,7 @@ var comment = __webpack_require__(32980);
|
|
|
242649
242670
|
|
|
242650
242671
|
|
|
242651
242672
|
|
|
242673
|
+
|
|
242652
242674
|
|
|
242653
242675
|
|
|
242654
242676
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -248397,41 +248419,84 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248397
248419
|
}, {
|
|
248398
248420
|
key: "getAllSignNodeList",
|
|
248399
248421
|
value: function getAllSignNodeList() {
|
|
248422
|
+
var _this5 = this;
|
|
248400
248423
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248401
248424
|
var signList = [];
|
|
248402
248425
|
var patientSignList = [];
|
|
248426
|
+
var tableSignList = [];
|
|
248403
248427
|
var getAllNodes = function getAllNodes(nodes) {
|
|
248404
248428
|
for (var i = 0; i < nodes.length; i++) {
|
|
248405
248429
|
var node = nodes[i];
|
|
248406
248430
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
248431
|
+
if (node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
248432
|
+
var currentCols = node.parentNode.row.indexOf(node.parentNode);
|
|
248433
|
+
var colInfoes = node.parentNode.table.colInfos[currentCols];
|
|
248434
|
+
if (colInfoes.colProperty.editorProperty == 4) {
|
|
248435
|
+
continue;
|
|
248436
|
+
}
|
|
248437
|
+
}
|
|
248407
248438
|
var sign = {
|
|
248408
248439
|
type: 'sign',
|
|
248409
248440
|
signed: false,
|
|
248410
|
-
customProperty:
|
|
248441
|
+
customProperty: {}
|
|
248411
248442
|
};
|
|
248412
248443
|
// 有值的患者签名
|
|
248413
248444
|
if (node.attribute === 1) {
|
|
248414
248445
|
sign.type = 'patientSign';
|
|
248415
248446
|
if (node.imgSrc == '' && node.fingerPrintSrc == '') {
|
|
248416
248447
|
sign.signed = false;
|
|
248417
|
-
patientSignList.push(sign);
|
|
248418
248448
|
} else {
|
|
248419
248449
|
sign.signed = true;
|
|
248420
|
-
patientSignList.push(sign);
|
|
248421
248450
|
}
|
|
248451
|
+
patientSignList.push(sign);
|
|
248422
248452
|
}
|
|
248423
248453
|
// 空的医生签名
|
|
248424
248454
|
if (node.attribute != 1) {
|
|
248425
248455
|
sign.type = 'sign';
|
|
248426
248456
|
if (node.imgSrc == '') {
|
|
248427
248457
|
sign.signed = false;
|
|
248428
|
-
signList.push(sign);
|
|
248429
248458
|
} else {
|
|
248430
248459
|
sign.signed = true;
|
|
248431
|
-
signList.push(sign);
|
|
248432
248460
|
}
|
|
248461
|
+
signList.push(sign);
|
|
248433
248462
|
}
|
|
248434
248463
|
}
|
|
248464
|
+
if (node instanceof TableNode/* TableNode */.Fh) {
|
|
248465
|
+
(function () {
|
|
248466
|
+
var signColList = [];
|
|
248467
|
+
node.colInfos.forEach(function (col, colIndex) {
|
|
248468
|
+
if (col.colProperty.editorProperty == 4) {
|
|
248469
|
+
// 确定签名列
|
|
248470
|
+
signColList.push(colIndex);
|
|
248471
|
+
}
|
|
248472
|
+
});
|
|
248473
|
+
if (signColList.length > 0) {
|
|
248474
|
+
var firstDataRowIndex = _this5.getTableTitleMaxRowIndex(node) + 1;
|
|
248475
|
+
node.rows.forEach(function (rows, rowIndex) {
|
|
248476
|
+
if (rowIndex >= firstDataRowIndex) {
|
|
248477
|
+
rows.forEach(function (cellNode, colIndex) {
|
|
248478
|
+
if (cellNode && signColList.includes(colIndex)) {
|
|
248479
|
+
var _sign = {
|
|
248480
|
+
type: 'sign',
|
|
248481
|
+
signed: false,
|
|
248482
|
+
customProperty: {},
|
|
248483
|
+
position: [rowIndex + 1, colIndex + 1]
|
|
248484
|
+
};
|
|
248485
|
+
var child = cellNode.childNodes.filter(function (child) {
|
|
248486
|
+
return child instanceof SignNode/* SignNode */.N;
|
|
248487
|
+
});
|
|
248488
|
+
if (child.length > 0) {
|
|
248489
|
+
_sign.customProperty = child[0].customProperty;
|
|
248490
|
+
_sign.signed = child[0].imgSrc == '' ? false : true;
|
|
248491
|
+
}
|
|
248492
|
+
signList.push(_sign);
|
|
248493
|
+
}
|
|
248494
|
+
});
|
|
248495
|
+
}
|
|
248496
|
+
});
|
|
248497
|
+
}
|
|
248498
|
+
})();
|
|
248499
|
+
}
|
|
248435
248500
|
if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
248436
248501
|
// 医生签名不存在的情况不在深层调用深层遍历
|
|
248437
248502
|
getAllNodes(node.childNodes);
|
|
@@ -248487,13 +248552,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248487
248552
|
}, {
|
|
248488
248553
|
key: "html2Xml",
|
|
248489
248554
|
value: function html2Xml(json) {
|
|
248490
|
-
var
|
|
248555
|
+
var _this6 = this;
|
|
248491
248556
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248492
248557
|
var headerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.header);
|
|
248493
248558
|
var footerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.footer);
|
|
248494
248559
|
var mainNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.main);
|
|
248495
248560
|
var insertParaNode = function insertParaNode(area, index) {
|
|
248496
|
-
var node = new ParagraphNode/* ParagraphNode */.C(
|
|
248561
|
+
var node = new ParagraphNode/* ParagraphNode */.C(_this6._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
|
|
248497
248562
|
if (area == 'header') {
|
|
248498
248563
|
node.rootPath = 'header/0';
|
|
248499
248564
|
headerNodes.splice(index, 0, node);
|
|
@@ -248970,7 +249035,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248970
249035
|
}, {
|
|
248971
249036
|
key: "updateNurseRecord",
|
|
248972
249037
|
value: function updateNurseRecord(table, operType, rowIndex, data) {
|
|
248973
|
-
var
|
|
249038
|
+
var _this7 = this;
|
|
248974
249039
|
var keys = Object.keys(data);
|
|
248975
249040
|
var backfill = function backfill(r) {
|
|
248976
249041
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -248979,7 +249044,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248979
249044
|
if (cell) {
|
|
248980
249045
|
var text = data[keys[i]];
|
|
248981
249046
|
cell.childNodes.splice(1, cell.childNodes.length);
|
|
248982
|
-
var textNode = new TextNode/* TextNode */.R(
|
|
249047
|
+
var textNode = new TextNode/* TextNode */.R(_this7._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType.ntText */.Jq.ntText, text, cell.childNodes[0].styleIndex);
|
|
248983
249048
|
cell.drawCell.needUpdate = true;
|
|
248984
249049
|
cell.childNodes.push(textNode);
|
|
248985
249050
|
}
|
|
@@ -249176,7 +249241,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249176
249241
|
}, {
|
|
249177
249242
|
key: "updateAllCodeElements",
|
|
249178
249243
|
value: function updateAllCodeElements(element) {
|
|
249179
|
-
var
|
|
249244
|
+
var _this8 = this;
|
|
249180
249245
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
249181
249246
|
var ret = [];
|
|
249182
249247
|
var getAllNodes = function getAllNodes(nodes) {
|
|
@@ -249205,7 +249270,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249205
249270
|
if (ret.length > 0) {
|
|
249206
249271
|
ret.forEach(function (v) {
|
|
249207
249272
|
if (v.name === element.name) {
|
|
249208
|
-
|
|
249273
|
+
_this8.updateCodeContent(v, element.content);
|
|
249209
249274
|
}
|
|
249210
249275
|
});
|
|
249211
249276
|
this.rebuildAll(false);
|