hoeditor-web 2.0.68 → 2.0.69
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.common.js +256 -107
- package/lib/hoeditor.css +1 -1
- package/lib/hoeditor.umd.js +256 -107
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -13504,8 +13504,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13504
13504
|
|
|
13505
13505
|
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
|
|
13506
13506
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
13507
|
-
|
|
13508
|
-
curRange
|
|
13507
|
+
|
|
13508
|
+
if (curRange.isEmpty && curRange.endPath == firstPath) {
|
|
13509
|
+
var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
13510
|
+
curRange.endPath = lastPath;
|
|
13511
|
+
}
|
|
13509
13512
|
}
|
|
13510
13513
|
|
|
13511
13514
|
if (!curRange.isEmpty) {
|
|
@@ -14061,7 +14064,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14061
14064
|
var preNode = node.previousLeaf();
|
|
14062
14065
|
var nextNode = node.nextLeaf();
|
|
14063
14066
|
|
|
14064
|
-
if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
14067
|
+
if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
14065
14068
|
var path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
14066
14069
|
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, node.name === "" ? "医师签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
|
|
14067
14070
|
hoEditorFactory.undoService.begin();
|
|
@@ -16771,11 +16774,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16771
16774
|
|
|
16772
16775
|
}, {
|
|
16773
16776
|
key: "insertEmptySignNode",
|
|
16774
|
-
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
|
|
16777
|
+
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
16775
16778
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16776
16779
|
var startPath = domRange.startPath;
|
|
16777
16780
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
16778
|
-
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime); //插入该表达式节点
|
|
16781
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, {}, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute); //插入该表达式节点
|
|
16779
16782
|
|
|
16780
16783
|
hoEditorFactory.undoService.begin();
|
|
16781
16784
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -16796,7 +16799,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16796
16799
|
value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
|
|
16797
16800
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16798
16801
|
var startPath = domRange.startPath;
|
|
16799
|
-
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
16802
|
+
var parentNode = hoEditorFactory.docTree.getParentNode(startPath); // if (type == 1 && imgSrc != "" && imgWidth > 0 && parentNode instanceof CellNode) {
|
|
16803
|
+
// const cellWidth = parentNode.drawCell.dWidth;
|
|
16804
|
+
// const cellHeight = parentNode.getCellHeight();
|
|
16805
|
+
// if (cellWidth < imgWidth) {
|
|
16806
|
+
// imgHeight = ((cellWidth - 10) / imgWidth) * cellHeight;
|
|
16807
|
+
// imgWidth = (cellWidth - 10);
|
|
16808
|
+
// }
|
|
16809
|
+
// }
|
|
16810
|
+
|
|
16800
16811
|
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntSign */ .Jq.ntSign, 1, type, name, 0, "医师签名", signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition); //插入该表达式节点
|
|
16801
16812
|
|
|
16802
16813
|
hoEditorFactory.undoService.begin();
|
|
@@ -26334,7 +26345,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26334
26345
|
}
|
|
26335
26346
|
}], [{
|
|
26336
26347
|
key: "json2Node",
|
|
26337
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste) {
|
|
26348
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
|
|
26338
26349
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
26339
26350
|
var rowNo = parseInt(json.rowNo);
|
|
26340
26351
|
var colNo = parseInt(json.colNo);
|
|
@@ -26405,7 +26416,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26405
26416
|
cellNode.childNodes[0].styleIndex = Number(item[0].textStyleNo ? item[0].textStyleNo : 0);
|
|
26406
26417
|
|
|
26407
26418
|
for (var j = 1; j < item.length; j++) {
|
|
26408
|
-
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste);
|
|
26419
|
+
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
|
|
26409
26420
|
|
|
26410
26421
|
if (convertNode) {
|
|
26411
26422
|
if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_36__/* .TextNode */ .R) {
|
|
@@ -26413,7 +26424,17 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26413
26424
|
cellNode.addChild(convertNode);
|
|
26414
26425
|
}
|
|
26415
26426
|
} else {
|
|
26416
|
-
|
|
26427
|
+
if (isClearSign) {
|
|
26428
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_33__/* .SignNode */ .N) {
|
|
26429
|
+
if (convertNode.isTemplate) {
|
|
26430
|
+
cellNode.addChild(convertNode);
|
|
26431
|
+
}
|
|
26432
|
+
} else {
|
|
26433
|
+
cellNode.addChild(convertNode);
|
|
26434
|
+
}
|
|
26435
|
+
} else {
|
|
26436
|
+
cellNode.addChild(convertNode);
|
|
26437
|
+
}
|
|
26417
26438
|
}
|
|
26418
26439
|
}
|
|
26419
26440
|
|
|
@@ -33864,7 +33885,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33864
33885
|
|
|
33865
33886
|
var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(SignNode);
|
|
33866
33887
|
|
|
33867
|
-
function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition) {
|
|
33888
|
+
function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute) {
|
|
33868
33889
|
var _this;
|
|
33869
33890
|
|
|
33870
33891
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
|
|
@@ -33908,11 +33929,22 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33908
33929
|
|
|
33909
33930
|
_this._PNGToJPG = 0; // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
|
|
33910
33931
|
|
|
33932
|
+
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名
|
|
33933
|
+
|
|
33911
33934
|
_this.number = number;
|
|
33912
33935
|
_this._type = type;
|
|
33913
33936
|
_this._signor = signor;
|
|
33914
33937
|
_this._signTime = signTime;
|
|
33915
33938
|
_this._imgSrc = imgSrc;
|
|
33939
|
+
_this._attribute = attribute === undefined ? 0 : attribute;
|
|
33940
|
+
|
|
33941
|
+
if (type == 3) {
|
|
33942
|
+
// 兼容旧的患者签名
|
|
33943
|
+
_this._attribute = 1;
|
|
33944
|
+
} // if(attribute == 1) { // 患者签名修改 type == 3
|
|
33945
|
+
// this._type = 3;
|
|
33946
|
+
// }
|
|
33947
|
+
|
|
33916
33948
|
|
|
33917
33949
|
if (fingerPrintSrc) {
|
|
33918
33950
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
@@ -33958,7 +33990,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33958
33990
|
});
|
|
33959
33991
|
};
|
|
33960
33992
|
|
|
33961
|
-
|
|
33993
|
+
if (customProperty) {
|
|
33994
|
+
assignvalue(_this._customProperty, customProperty);
|
|
33995
|
+
}
|
|
33962
33996
|
|
|
33963
33997
|
_this.node2DrawNodeRange(0, 0);
|
|
33964
33998
|
|
|
@@ -34168,6 +34202,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34168
34202
|
this.node2DrawNodeRange(0, 0);
|
|
34169
34203
|
}
|
|
34170
34204
|
}
|
|
34205
|
+
}, {
|
|
34206
|
+
key: "attribute",
|
|
34207
|
+
get: function get() {
|
|
34208
|
+
return this._attribute;
|
|
34209
|
+
},
|
|
34210
|
+
set: function set(value) {
|
|
34211
|
+
if (this._attribute !== value) {
|
|
34212
|
+
this._attribute = value;
|
|
34213
|
+
}
|
|
34214
|
+
}
|
|
34171
34215
|
/**
|
|
34172
34216
|
*
|
|
34173
34217
|
* @param drawTree 绘制树
|
|
@@ -34272,7 +34316,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34272
34316
|
isFront: this.isFront,
|
|
34273
34317
|
allowEditSignTime: this.allowEditSignTime,
|
|
34274
34318
|
fingerPrintSrc: clearSign ? "" : this.fingerPrintSrc,
|
|
34275
|
-
fingerPosition: clearSign ? 0 : this.fingerPosition
|
|
34319
|
+
fingerPosition: clearSign ? 0 : this.fingerPosition,
|
|
34320
|
+
attribute: this.attribute
|
|
34276
34321
|
};
|
|
34277
34322
|
|
|
34278
34323
|
if (isCopy) {
|
|
@@ -34293,14 +34338,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34293
34338
|
}
|
|
34294
34339
|
}], [{
|
|
34295
34340
|
key: "json2Node",
|
|
34296
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
34341
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign) {
|
|
34297
34342
|
//const width = Number(json.width);
|
|
34298
|
-
var number = Number(json.number);
|
|
34299
|
-
var type = Number(json.type);
|
|
34300
|
-
var imgWidth = Number(json.imgWidth);
|
|
34301
|
-
var imgHeight = Number(json.imgHeight);
|
|
34343
|
+
var number = isClearSign ? 0 : Number(json.number);
|
|
34344
|
+
var type = isClearSign ? 0 : Number(json.type);
|
|
34345
|
+
var imgWidth = isClearSign ? 0 : Number(json.imgWidth);
|
|
34346
|
+
var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
|
|
34302
34347
|
var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
|
|
34303
|
-
var
|
|
34348
|
+
var attribute = json.attribute ? Number(json.attribute) : 0;
|
|
34349
|
+
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType.ntSign */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, json.isFront, json.allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute);
|
|
34304
34350
|
signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0; //signNode.number = number;
|
|
34305
34351
|
//signNode.width = width;
|
|
34306
34352
|
|
|
@@ -38350,7 +38396,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38350
38396
|
}
|
|
38351
38397
|
}], [{
|
|
38352
38398
|
key: "json2Node",
|
|
38353
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
|
|
38399
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
38354
38400
|
json = this.transType(json);
|
|
38355
38401
|
var tableProperty = json.tableProperty;
|
|
38356
38402
|
tableProperty.customProperties = Array.isArray(tableProperty.customProperties.customProperty) ? tableProperty.customProperties.customProperty : Array(tableProperty.customProperties.customProperty);
|
|
@@ -38571,7 +38617,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38571
38617
|
|
|
38572
38618
|
var colNo = parseInt(_node.colNo);
|
|
38573
38619
|
existMap.set(_rowNo + "-" + colNo, 1);
|
|
38574
|
-
aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste);
|
|
38620
|
+
aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign);
|
|
38575
38621
|
}
|
|
38576
38622
|
} // console.log("json2node", 8);
|
|
38577
38623
|
//console.log(existMap);
|
|
@@ -38764,7 +38810,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38764
38810
|
/*
|
|
38765
38811
|
* @Author: your name
|
|
38766
38812
|
* @Date: 2020-11-03 15:17:54
|
|
38767
|
-
* @LastEditTime: 2022-
|
|
38813
|
+
* @LastEditTime: 2022-07-13 14:11:55
|
|
38768
38814
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
38769
38815
|
* @Description: In User Settings Edit
|
|
38770
38816
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -40590,7 +40636,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40590
40636
|
}
|
|
40591
40637
|
}], [{
|
|
40592
40638
|
key: "json2Node",
|
|
40593
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
|
|
40639
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
40594
40640
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
40595
40641
|
delete json.nodeType;
|
|
40596
40642
|
this.transType(json);
|
|
@@ -40621,7 +40667,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40621
40667
|
if (Array.isArray(item)) {
|
|
40622
40668
|
//数组
|
|
40623
40669
|
for (var i = 0; i < item.length; i++) {
|
|
40624
|
-
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp);
|
|
40670
|
+
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
|
|
40625
40671
|
|
|
40626
40672
|
if (node) {
|
|
40627
40673
|
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
|
|
@@ -40629,7 +40675,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40629
40675
|
nodes.push(node);
|
|
40630
40676
|
}
|
|
40631
40677
|
} else {
|
|
40632
|
-
|
|
40678
|
+
if (isClearSign) {
|
|
40679
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
|
|
40680
|
+
if (node.isTemplate) {
|
|
40681
|
+
nodes.push(node);
|
|
40682
|
+
}
|
|
40683
|
+
} else {
|
|
40684
|
+
nodes.push(node);
|
|
40685
|
+
}
|
|
40686
|
+
} else {
|
|
40687
|
+
nodes.push(node);
|
|
40688
|
+
}
|
|
40633
40689
|
}
|
|
40634
40690
|
}
|
|
40635
40691
|
|
|
@@ -40643,7 +40699,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40643
40699
|
}
|
|
40644
40700
|
} else {
|
|
40645
40701
|
//单个对象
|
|
40646
|
-
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp);
|
|
40702
|
+
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
40647
40703
|
|
|
40648
40704
|
if (_node2) {
|
|
40649
40705
|
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
|
|
@@ -40651,7 +40707,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40651
40707
|
nodes.push(_node2);
|
|
40652
40708
|
}
|
|
40653
40709
|
} else {
|
|
40654
|
-
nodes.push(
|
|
40710
|
+
//nodes.push(node);
|
|
40711
|
+
if (isClearSign) {
|
|
40712
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
|
|
40713
|
+
if (_node2.isTemplate) {
|
|
40714
|
+
nodes.push(_node2);
|
|
40715
|
+
}
|
|
40716
|
+
} else {
|
|
40717
|
+
nodes.push(_node2);
|
|
40718
|
+
}
|
|
40719
|
+
} else {
|
|
40720
|
+
nodes.push(_node2);
|
|
40721
|
+
}
|
|
40655
40722
|
}
|
|
40656
40723
|
}
|
|
40657
40724
|
|
|
@@ -51732,7 +51799,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51732
51799
|
|
|
51733
51800
|
image.onload = function () {
|
|
51734
51801
|
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51735
|
-
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51802
|
+
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height; // 处理宽高和实际宽高相反的问题 --- 2.0.66版本问题 --2.0.68后版本临时处理 再过几个版本后可以删掉
|
|
51803
|
+
|
|
51804
|
+
var node = _this3.node;
|
|
51805
|
+
var nodeImageWidth = node.imgWidth;
|
|
51806
|
+
var nodeImageHeight = node.imgHeight;
|
|
51807
|
+
|
|
51808
|
+
if (image.naturalWidth > image.naturalHeight && nodeImageWidth < nodeImageHeight || image.naturalWidth < image.naturalHeight && node.imgWidth > node.imgHeight) {
|
|
51809
|
+
node.imgWidth = nodeImageHeight;
|
|
51810
|
+
node.imgHeight = nodeImageWidth;
|
|
51811
|
+
}
|
|
51812
|
+
|
|
51736
51813
|
drawNode.dWidth = hitWidth * hoEditorFactory.signHeight / image.naturalHeight + _this3._drawText.getMeasuredWidth();
|
|
51737
51814
|
var width = drawNode.dWidth;
|
|
51738
51815
|
|
|
@@ -63116,6 +63193,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63116
63193
|
this._tmp.end = Arange.endPath;
|
|
63117
63194
|
|
|
63118
63195
|
if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && s.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && s.parentNode.inputFieldType === 1 && (_s$parentNode$downLis = s.parentNode.downListProperty.listItems) !== null && _s$parentNode$downLis !== void 0 && _s$parentNode$downLis.includes("<元素>")) {
|
|
63196
|
+
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(s.parentNode.EndMarkNode.previousLeaf());
|
|
63119
63197
|
return true;
|
|
63120
63198
|
}
|
|
63121
63199
|
|
|
@@ -207285,7 +207363,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207285
207363
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207286
207364
|
var ParagraphNode = __webpack_require__(14208);
|
|
207287
207365
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207288
|
-
/* harmony default export */ var version = ('2.0.
|
|
207366
|
+
/* harmony default export */ var version = ('2.0.69');
|
|
207289
207367
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
207290
207368
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
207291
207369
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -211934,7 +212012,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211934
212012
|
}
|
|
211935
212013
|
}, {
|
|
211936
212014
|
key: "xml2Doc",
|
|
211937
|
-
value: function xml2Doc(xml) {
|
|
212015
|
+
value: function xml2Doc(xml, isClearSign) {
|
|
211938
212016
|
// xml = this.replaceNodesName(xml);
|
|
211939
212017
|
// const x2js = new X2JS({ stripWhitespaces: false });
|
|
211940
212018
|
// const object = x2js.xml2js(xml);
|
|
@@ -211986,7 +212064,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211986
212064
|
var aobject = this.xml2Object(xml);
|
|
211987
212065
|
|
|
211988
212066
|
if (aobject) {
|
|
211989
|
-
return this.json2Doc(aobject);
|
|
212067
|
+
return this.json2Doc(aobject, isClearSign);
|
|
211990
212068
|
} // if (json.rvxml) {
|
|
211991
212069
|
// const rvxml = json.rvxml;
|
|
211992
212070
|
// return;
|
|
@@ -212578,7 +212656,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212578
212656
|
}
|
|
212579
212657
|
}, {
|
|
212580
212658
|
key: "json2Doc",
|
|
212581
|
-
value: function json2Doc(xx) {
|
|
212659
|
+
value: function json2Doc(xx, isClearSign) {
|
|
212582
212660
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
212583
212661
|
/*
|
|
212584
212662
|
const pushChildNodes = (
|
|
@@ -212705,11 +212783,15 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212705
212783
|
var histories = xx.userHistories;
|
|
212706
212784
|
var historiesArr = histories.userHistory;
|
|
212707
212785
|
|
|
212786
|
+
if (historiesArr.length == undefined) {
|
|
212787
|
+
historiesArr = Array(historiesArr);
|
|
212788
|
+
}
|
|
212789
|
+
|
|
212708
212790
|
for (var _i10 = 0; _i10 < historiesArr.length; _i10++) {
|
|
212709
212791
|
var historyObj = historiesArr[_i10];
|
|
212710
212792
|
var history = new UserHistory/* UserHistory */.R(this._hoEditorFactoryID, UserHistory/* HistoryEditType.hetCreate */.N.hetCreate);
|
|
212711
212793
|
Object.assign(history, historyObj);
|
|
212712
|
-
history.permissionLevel = Number(historyObj.
|
|
212794
|
+
history.permissionLevel = Number(historyObj.permissionLevel);
|
|
212713
212795
|
hoEditorFactory.docTree.userHistories.push(history);
|
|
212714
212796
|
}
|
|
212715
212797
|
|
|
@@ -212851,7 +212933,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212851
212933
|
}
|
|
212852
212934
|
|
|
212853
212935
|
var node = hoEditorFactory.structureConvert.convertNode(header, //headerNodes[hi],
|
|
212854
|
-
headerDocTree.subDocNodes, null, headerNode.subDocNodes);
|
|
212936
|
+
headerDocTree.subDocNodes, null, headerNode.subDocNodes, undefined, isClearSign);
|
|
212855
212937
|
|
|
212856
212938
|
if (node) {
|
|
212857
212939
|
node.rootPath = "header/" + hi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212911,7 +212993,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212911
212993
|
}
|
|
212912
212994
|
|
|
212913
212995
|
var _node2 = hoEditorFactory.structureConvert.convertNode(footer, //footerNodes[fi],
|
|
212914
|
-
footSubDocTree.subDocNodes, null, footerNode.subDocNodes);
|
|
212996
|
+
footSubDocTree.subDocNodes, null, footerNode.subDocNodes, undefined, isClearSign);
|
|
212915
212997
|
|
|
212916
212998
|
if (_node2) {
|
|
212917
212999
|
_node2.rootPath = "footer/" + fi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212956,7 +213038,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212956
213038
|
continue;
|
|
212957
213039
|
}
|
|
212958
213040
|
|
|
212959
|
-
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes);
|
|
213041
|
+
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
|
|
212960
213042
|
|
|
212961
213043
|
if (_node3) {
|
|
212962
213044
|
// if (node instanceof BaseCombineNode && temp.childNode) {
|
|
@@ -213100,7 +213182,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213100
213182
|
}
|
|
213101
213183
|
}, {
|
|
213102
213184
|
key: "convertNode",
|
|
213103
|
-
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste) {
|
|
213185
|
+
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign) {
|
|
213104
213186
|
if (temp === "") {
|
|
213105
213187
|
return undefined;
|
|
213106
213188
|
}
|
|
@@ -213136,7 +213218,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213136
213218
|
return undefined;
|
|
213137
213219
|
}
|
|
213138
213220
|
|
|
213139
|
-
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213221
|
+
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213140
213222
|
return node;
|
|
213141
213223
|
} else if (temp.nodeType == BaseNode/* NodeType.ntParagraph */.Jq.ntParagraph) {
|
|
213142
213224
|
return ParagraphNode/* ParagraphNode.json2Node */.C.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
@@ -213173,7 +213255,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213173
213255
|
return RadioAndCheckBoxNode/* RadioAndCheckBoxNode.json2Node */.Yh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213174
213256
|
}
|
|
213175
213257
|
} else if (temp.nodeType == BaseNode/* NodeType.ntField */.Jq.ntField) {
|
|
213176
|
-
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213258
|
+
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213177
213259
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar) {
|
|
213178
213260
|
return SpecialCharsNode/* SpecialCharsNode.json2Node */.y.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213179
213261
|
} else if (temp.nodeType == BaseNode/* NodeType.ntMark */.Jq.ntMark) {
|
|
@@ -213189,7 +213271,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213189
213271
|
} else if (temp.nodeType == BaseNode/* NodeType.ntLabel */.Jq.ntLabel) {
|
|
213190
213272
|
return LabelNode/* LabelNode.json2Node */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213191
213273
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSign */.Jq.ntSign) {
|
|
213192
|
-
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213274
|
+
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
|
|
213193
213275
|
} else if (temp.nodeType == BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
|
|
213194
213276
|
return GestationNode/* GestationNode.json2Node */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213195
213277
|
}
|
|
@@ -213283,13 +213365,13 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213283
213365
|
}
|
|
213284
213366
|
}, {
|
|
213285
213367
|
key: "openXml",
|
|
213286
|
-
value: function openXml(xml, callback, isDelBlockLine) {
|
|
213368
|
+
value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
|
|
213287
213369
|
var _this4 = this;
|
|
213288
213370
|
|
|
213289
213371
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
213290
213372
|
this._superiorSign = [];
|
|
213291
213373
|
hoEditorFactory.isThrowError = false;
|
|
213292
|
-
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml);
|
|
213374
|
+
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
|
|
213293
213375
|
Promise.resolve().then(function () {
|
|
213294
213376
|
hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
213295
213377
|
|
|
@@ -218989,12 +219071,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218989
219071
|
/**
|
|
218990
219072
|
* 读取 xml
|
|
218991
219073
|
* @param xml
|
|
219074
|
+
* @param callback 是否回调
|
|
219075
|
+
* @param isDelBlockLine 是否删掉正文末尾的空行
|
|
219076
|
+
* @param isRender
|
|
219077
|
+
* @param isClearSign 加载时是否清空签名元素内容
|
|
218992
219078
|
*/
|
|
218993
219079
|
|
|
218994
219080
|
}, {
|
|
218995
219081
|
key: "openXml",
|
|
218996
219082
|
value: function () {
|
|
218997
|
-
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender) {
|
|
219083
|
+
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender, isClearSign) {
|
|
218998
219084
|
var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent;
|
|
218999
219085
|
|
|
219000
219086
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5) {
|
|
@@ -219039,7 +219125,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219039
219125
|
}
|
|
219040
219126
|
|
|
219041
219127
|
_context5.next = 15;
|
|
219042
|
-
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine);
|
|
219128
|
+
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
|
|
219043
219129
|
|
|
219044
219130
|
case 15:
|
|
219045
219131
|
case "end":
|
|
@@ -219049,7 +219135,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219049
219135
|
}, _callee5, this);
|
|
219050
219136
|
}));
|
|
219051
219137
|
|
|
219052
|
-
function openXml(_x8, _x9, _x10, _x11) {
|
|
219138
|
+
function openXml(_x8, _x9, _x10, _x11, _x12) {
|
|
219053
219139
|
return _openXml.apply(this, arguments);
|
|
219054
219140
|
}
|
|
219055
219141
|
|
|
@@ -219194,8 +219280,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219194
219280
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
219195
219281
|
var nextNode = node.nextLeaf();
|
|
219196
219282
|
|
|
219197
|
-
if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219198
|
-
var signNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 0, 0, node.name === "" ? "签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime);
|
|
219283
|
+
if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219284
|
+
var signNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 0, 0, node.name === "" ? "签名" : node.name, node.signType, node.signFormat, "", "", node.signTimeFormat, "", 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, '', undefined, node.attribute);
|
|
219199
219285
|
hoEditorFactory.undoService.begin();
|
|
219200
219286
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
|
|
219201
219287
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
|
|
@@ -219430,7 +219516,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219430
219516
|
|
|
219431
219517
|
}, {
|
|
219432
219518
|
key: "insertEmptySignNode",
|
|
219433
|
-
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
|
|
219519
|
+
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
219434
219520
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219435
219521
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
219436
219522
|
var startPath = curDomRange.normalize().startPath;
|
|
@@ -219438,7 +219524,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219438
219524
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219439
219525
|
|
|
219440
219526
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219441
|
-
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime);
|
|
219527
|
+
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute);
|
|
219442
219528
|
}
|
|
219443
219529
|
}
|
|
219444
219530
|
/**
|
|
@@ -220036,7 +220122,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220036
220122
|
}, _callee6, this);
|
|
220037
220123
|
}));
|
|
220038
220124
|
|
|
220039
|
-
function updateElementText(
|
|
220125
|
+
function updateElementText(_x13, _x14, _x15) {
|
|
220040
220126
|
return _updateElementText.apply(this, arguments);
|
|
220041
220127
|
}
|
|
220042
220128
|
|
|
@@ -220346,7 +220432,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220346
220432
|
}, _callee7, this);
|
|
220347
220433
|
}));
|
|
220348
220434
|
|
|
220349
|
-
function getBase64(
|
|
220435
|
+
function getBase64(_x16) {
|
|
220350
220436
|
return _getBase.apply(this, arguments);
|
|
220351
220437
|
}
|
|
220352
220438
|
|
|
@@ -220374,11 +220460,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220374
220460
|
var newNode = newcurDomRange.npEnd.node;
|
|
220375
220461
|
|
|
220376
220462
|
if (newNode instanceof SignNode/* SignNode */.N) {
|
|
220377
|
-
hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220463
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220464
|
+
setTimeout(function () {
|
|
220465
|
+
callback && callback();
|
|
220466
|
+
}, 0);
|
|
220467
|
+
});
|
|
220378
220468
|
}
|
|
220379
220469
|
}, 0);
|
|
220380
220470
|
} else {
|
|
220381
|
-
hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220471
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220472
|
+
setTimeout(function () {
|
|
220473
|
+
callback && callback();
|
|
220474
|
+
}, 0);
|
|
220475
|
+
});
|
|
220382
220476
|
}
|
|
220383
220477
|
} else {
|
|
220384
220478
|
this.deleteNode(node);
|
|
@@ -220802,6 +220896,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220802
220896
|
if (curDomRange.isEmpty) return;
|
|
220803
220897
|
var result = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath, true);
|
|
220804
220898
|
var nodes = result[0];
|
|
220899
|
+
var isHaveParaNodes = false;
|
|
220900
|
+
|
|
220901
|
+
for (var m = 0; m < nodes.length; m++) {
|
|
220902
|
+
if (nodes[m] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
220903
|
+
isHaveParaNodes = true;
|
|
220904
|
+
break;
|
|
220905
|
+
}
|
|
220906
|
+
}
|
|
220907
|
+
|
|
220908
|
+
if (!isHaveParaNodes) {
|
|
220909
|
+
message_box_default().alert("选区内没有换行符,无需清除.");
|
|
220910
|
+
|
|
220911
|
+
return;
|
|
220912
|
+
}
|
|
220805
220913
|
|
|
220806
220914
|
for (var i = 0; i < nodes.length; i++) {
|
|
220807
220915
|
var node = nodes[i];
|
|
@@ -220951,37 +221059,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220951
221059
|
});
|
|
220952
221060
|
drawTree.commentsMap = commentsMap;
|
|
220953
221061
|
}
|
|
220954
|
-
/**
|
|
220955
|
-
* 查询是否存在医生签名
|
|
220956
|
-
* @returns boolean
|
|
220957
|
-
*/
|
|
220958
|
-
|
|
220959
|
-
}, {
|
|
220960
|
-
key: "getAllSignNode",
|
|
220961
|
-
value: function getAllSignNode() {
|
|
220962
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220963
|
-
var isHasDoctorSign = false;
|
|
220964
|
-
|
|
220965
|
-
var getAllNodes = function getAllNodes(nodes) {
|
|
220966
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
220967
|
-
var node = nodes[i];
|
|
220968
|
-
|
|
220969
|
-
if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
|
|
220970
|
-
isHasDoctorSign = true;
|
|
220971
|
-
break; // 医生签名已存在的情况中断当前层的遍历
|
|
220972
|
-
}
|
|
220973
|
-
|
|
220974
|
-
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
|
|
220975
|
-
// 医生签名已存在的情况不在深层调用深层遍历
|
|
220976
|
-
getAllNodes(node.childNodes);
|
|
220977
|
-
}
|
|
220978
|
-
}
|
|
220979
|
-
};
|
|
220980
|
-
|
|
220981
|
-
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
220982
|
-
getAllNodes(mainNodes);
|
|
220983
|
-
return isHasDoctorSign;
|
|
220984
|
-
}
|
|
220985
221062
|
}, {
|
|
220986
221063
|
key: "SyncElements",
|
|
220987
221064
|
value: function SyncElements() {
|
|
@@ -221150,6 +221227,83 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221150
221227
|
value: function setParaCustomProperty(paragraphNode, customProperty) {
|
|
221151
221228
|
paragraphNode.setCustomProperty(customProperty);
|
|
221152
221229
|
}
|
|
221230
|
+
/**
|
|
221231
|
+
* 查询是否有空签名元素
|
|
221232
|
+
* @returns boolean
|
|
221233
|
+
*/
|
|
221234
|
+
|
|
221235
|
+
}, {
|
|
221236
|
+
key: "getAllEmptySignNode",
|
|
221237
|
+
value: function getAllEmptySignNode(attribute) {
|
|
221238
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221239
|
+
var hasEmptySign = false;
|
|
221240
|
+
|
|
221241
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
221242
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221243
|
+
var node = nodes[i];
|
|
221244
|
+
|
|
221245
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
221246
|
+
// 空的患者签名
|
|
221247
|
+
if (attribute == 1 && node.attribute === 1 && node.imgSrc === '' && node.fingerPrintSrc === '') {
|
|
221248
|
+
hasEmptySign = true;
|
|
221249
|
+
break;
|
|
221250
|
+
} // 空的医生签名
|
|
221251
|
+
|
|
221252
|
+
|
|
221253
|
+
if (attribute == 0 && node.attribute === 0 && node.imgSrc === '') {
|
|
221254
|
+
hasEmptySign = true;
|
|
221255
|
+
break;
|
|
221256
|
+
} // 空的签名
|
|
221257
|
+
|
|
221258
|
+
|
|
221259
|
+
if (attribute == undefined && node.imgSrc === '' && node.fingerPrintSrc === '') {
|
|
221260
|
+
hasEmptySign = true;
|
|
221261
|
+
break;
|
|
221262
|
+
}
|
|
221263
|
+
}
|
|
221264
|
+
|
|
221265
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !hasEmptySign) {
|
|
221266
|
+
// 医生签名已存在的情况不在深层调用深层遍历
|
|
221267
|
+
getAllNodes(node.childNodes);
|
|
221268
|
+
}
|
|
221269
|
+
}
|
|
221270
|
+
};
|
|
221271
|
+
|
|
221272
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
221273
|
+
getAllNodes(mainNodes);
|
|
221274
|
+
return hasEmptySign;
|
|
221275
|
+
}
|
|
221276
|
+
/**
|
|
221277
|
+
* 查询是否存在医生签名
|
|
221278
|
+
* @returns boolean
|
|
221279
|
+
*/
|
|
221280
|
+
|
|
221281
|
+
}, {
|
|
221282
|
+
key: "getAllSignNode",
|
|
221283
|
+
value: function getAllSignNode() {
|
|
221284
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221285
|
+
var isHasDoctorSign = false;
|
|
221286
|
+
|
|
221287
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
221288
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221289
|
+
var node = nodes[i];
|
|
221290
|
+
|
|
221291
|
+
if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
|
|
221292
|
+
isHasDoctorSign = true;
|
|
221293
|
+
break; // 医生签名已存在的情况中断当前层的遍历
|
|
221294
|
+
}
|
|
221295
|
+
|
|
221296
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
|
|
221297
|
+
// 医生签名已存在的情况不在深层调用深层遍历
|
|
221298
|
+
getAllNodes(node.childNodes);
|
|
221299
|
+
}
|
|
221300
|
+
}
|
|
221301
|
+
};
|
|
221302
|
+
|
|
221303
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
221304
|
+
getAllNodes(mainNodes);
|
|
221305
|
+
return isHasDoctorSign;
|
|
221306
|
+
}
|
|
221153
221307
|
}]);
|
|
221154
221308
|
|
|
221155
221309
|
return VueController;
|
|
@@ -229207,9 +229361,9 @@ var Delimiter_component = normalizeComponent(
|
|
|
229207
229361
|
;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
|
|
229208
229362
|
|
|
229209
229363
|
/* harmony default export */ var delimiter = (delimiter_Delimiter);
|
|
229210
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=
|
|
229211
|
-
var
|
|
229212
|
-
var
|
|
229364
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=9b7c7d28&
|
|
229365
|
+
var Signvue_type_template_id_9b7c7d28_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("患者签名")]),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("医生签名")]),_c('el-radio',{attrs:{"label":2},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义医生签名")])],1),(_vm.signType === 2)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数: 医师签名 / "),_c('br'),_vm._v(" 勾选参数: / 医师签名")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1)]:_vm._e()],2),(_vm.signType === 2)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229366
|
+
var Signvue_type_template_id_9b7c7d28_staticRenderFns = []
|
|
229213
229367
|
|
|
229214
229368
|
|
|
229215
229369
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=script&lang=ts&
|
|
@@ -229244,7 +229398,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229244
229398
|
|
|
229245
229399
|
_this = _super.apply(this, arguments);
|
|
229246
229400
|
_this.height = 20;
|
|
229247
|
-
_this.name =
|
|
229401
|
+
_this.name = '';
|
|
229248
229402
|
_this.signType = 0;
|
|
229249
229403
|
_this.signFormat = '<医师姓名>';
|
|
229250
229404
|
_this.connectMode = '换行';
|
|
@@ -229253,7 +229407,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229253
229407
|
_this.signTimeFormat = 'yyyy-MM-DD HH:mm';
|
|
229254
229408
|
_this.customFormatContent = '';
|
|
229255
229409
|
_this.customSignFormatList = [];
|
|
229256
|
-
_this.animationClassNames =
|
|
229410
|
+
_this.animationClassNames = 'control-modal-contents sign-modal animation-in';
|
|
229257
229411
|
return _this;
|
|
229258
229412
|
} // 创建自定义签名格式
|
|
229259
229413
|
|
|
@@ -229261,7 +229415,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229261
229415
|
(0,createClass/* default */.Z)(Sign, [{
|
|
229262
229416
|
key: "createSignFormat",
|
|
229263
229417
|
value: function createSignFormat() {
|
|
229264
|
-
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g,
|
|
229418
|
+
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
|
|
229265
229419
|
var customList = ['<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'];
|
|
229266
229420
|
this.$elMessage.closeAll();
|
|
229267
229421
|
|
|
@@ -229276,7 +229430,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229276
229430
|
return;
|
|
229277
229431
|
}
|
|
229278
229432
|
|
|
229279
|
-
var format = [
|
|
229433
|
+
var format = ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'].concat();
|
|
229280
229434
|
this.customSignFormatList.forEach(function (v) {
|
|
229281
229435
|
return format.push(v.value);
|
|
229282
229436
|
});
|
|
@@ -229285,7 +229439,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229285
229439
|
return v === customFormat.slice(1, customFormat.length - 1);
|
|
229286
229440
|
}).length > 0) {
|
|
229287
229441
|
this.$elMessage.warning({
|
|
229288
|
-
message:
|
|
229442
|
+
message: '签名格式已存在无需插入,已自动选中',
|
|
229289
229443
|
duration: 3000,
|
|
229290
229444
|
offset: 120
|
|
229291
229445
|
});
|
|
@@ -229301,17 +229455,12 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229301
229455
|
}, {
|
|
229302
229456
|
key: "insertSign",
|
|
229303
229457
|
value: function insertSign() {
|
|
229304
|
-
if (this.signType ===
|
|
229305
|
-
//
|
|
229306
|
-
|
|
229307
|
-
|
|
229308
|
-
|
|
229309
|
-
|
|
229310
|
-
// this.allowEditSignTime)
|
|
229311
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名", this.signType, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime);
|
|
229312
|
-
} else {
|
|
229313
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名" //,
|
|
229314
|
-
);
|
|
229458
|
+
if (this.signType === 2) {
|
|
229459
|
+
// 多人签名
|
|
229460
|
+
this.vueController.insertEmptySignNode(this.name ? this.name : '医生签名', 1, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime, 0);
|
|
229461
|
+
} else {
|
|
229462
|
+
var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
|
|
229463
|
+
this.vueController.insertEmptySignNode(name, 0, '', '', '', undefined, undefined, this.signType);
|
|
229315
229464
|
}
|
|
229316
229465
|
|
|
229317
229466
|
this.handleClose();
|
|
@@ -229319,8 +229468,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229319
229468
|
}, {
|
|
229320
229469
|
key: "handleClose",
|
|
229321
229470
|
value: function handleClose() {
|
|
229322
|
-
this.animationClassNames =
|
|
229323
|
-
this.$emit(
|
|
229471
|
+
this.animationClassNames = 'control-modal-contents sign-modal animation-out';
|
|
229472
|
+
this.$emit('closed');
|
|
229324
229473
|
}
|
|
229325
229474
|
}]);
|
|
229326
229475
|
|
|
@@ -229332,7 +229481,7 @@ __decorate([Prop()], Sign.prototype, "vueController", void 0);
|
|
|
229332
229481
|
__decorate([Prop()], Sign.prototype, "controlStatus", void 0);
|
|
229333
229482
|
|
|
229334
229483
|
Sign = __decorate([vue_class_component_esm({
|
|
229335
|
-
name:
|
|
229484
|
+
name: 'Sign',
|
|
229336
229485
|
components: {
|
|
229337
229486
|
HoColorPicker: HoColorPicker
|
|
229338
229487
|
}
|
|
@@ -229356,8 +229505,8 @@ Sign = __decorate([vue_class_component_esm({
|
|
|
229356
229505
|
|
|
229357
229506
|
var Sign_component = normalizeComponent(
|
|
229358
229507
|
sign_Signvue_type_script_lang_ts_,
|
|
229359
|
-
|
|
229360
|
-
|
|
229508
|
+
Signvue_type_template_id_9b7c7d28_render,
|
|
229509
|
+
Signvue_type_template_id_9b7c7d28_staticRenderFns,
|
|
229361
229510
|
false,
|
|
229362
229511
|
null,
|
|
229363
229512
|
null,
|