hoeditor-web 2.0.67 → 2.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.common.js +404 -150
- package/lib/hoeditor.css +1 -1
- package/lib/hoeditor.umd.js +404 -150
- 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:患者签名 2:ca签名(职称+签名图片)
|
|
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 绘制树
|
|
@@ -34189,7 +34233,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34189
34233
|
this.styleIndex = 0;
|
|
34190
34234
|
}
|
|
34191
34235
|
|
|
34192
|
-
var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_10__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition);
|
|
34236
|
+
var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_10__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty);
|
|
34193
34237
|
|
|
34194
34238
|
this._drawNodes.push(dNode);
|
|
34195
34239
|
}
|
|
@@ -34223,15 +34267,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34223
34267
|
if (isDisPlay) {
|
|
34224
34268
|
drawNode.alpha = 1;
|
|
34225
34269
|
|
|
34226
|
-
if (this.imgSrc === "") {
|
|
34227
|
-
var color = hoEditorFactory.option.getColorByLevel(
|
|
34270
|
+
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
34271
|
+
var color = hoEditorFactory.option.getColorByLevel(13);
|
|
34228
34272
|
var backColor = new createjs.Shape();
|
|
34229
34273
|
backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight + 2, drawNode.dWidth, drawNode.dHeight);
|
|
34230
34274
|
backColor.name = "backColor";
|
|
34231
34275
|
drawNode.addChildAt(backColor, 0);
|
|
34232
34276
|
}
|
|
34233
34277
|
} else {
|
|
34234
|
-
if (this.imgSrc === "") {
|
|
34278
|
+
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
34235
34279
|
drawNode.alpha = 0;
|
|
34236
34280
|
} else {
|
|
34237
34281
|
for (var i = drawNode.children.length - 1; i >= 0; i--) {
|
|
@@ -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
|
|
|
@@ -46077,6 +46144,7 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
46077
46144
|
dParent.addChild(dPartCell);
|
|
46078
46145
|
this.drawPageCells.push(dPartCell);
|
|
46079
46146
|
dPartCell.paintArea(this._drawLines, startDline, valignTop);
|
|
46147
|
+
dPartCell.valignTop = valignTop;
|
|
46080
46148
|
ret = this._drawLines[this._drawLines.length - 1].dHeight + this._drawLines[this._drawLines.length - 1].dTop;
|
|
46081
46149
|
}
|
|
46082
46150
|
}, {
|
|
@@ -48269,7 +48337,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48269
48337
|
|
|
48270
48338
|
|
|
48271
48339
|
return _this;
|
|
48272
|
-
} // public
|
|
48340
|
+
} // public ge t pageIndex(): number {
|
|
48273
48341
|
// return this._pageIndex;
|
|
48274
48342
|
// }
|
|
48275
48343
|
// public set pageIndex(value: number) {
|
|
@@ -48320,6 +48388,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48320
48388
|
key: "valignTop",
|
|
48321
48389
|
get: function get() {
|
|
48322
48390
|
return this._valignTop;
|
|
48391
|
+
},
|
|
48392
|
+
set: function set(val) {
|
|
48393
|
+
this._valignTop = val;
|
|
48323
48394
|
} // public get dPage(): DrawPage {
|
|
48324
48395
|
// return this._dPage;
|
|
48325
48396
|
// }
|
|
@@ -48789,7 +48860,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48789
48860
|
var adjustValignTop = newValignTop - this._valignTop;
|
|
48790
48861
|
this._valignTop = newValignTop;
|
|
48791
48862
|
|
|
48792
|
-
for (var i = 0; i < this.numChildren
|
|
48863
|
+
for (var i = 0; i < this.numChildren; i++) {
|
|
48793
48864
|
if (this.children[i] instanceof DrawLine/* DrawLine */.a || this.children[i] instanceof DrawPageTable/* DrawPageTable */.ox) {
|
|
48794
48865
|
this.children[i].y += adjustValignTop;
|
|
48795
48866
|
}
|
|
@@ -48832,12 +48903,10 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48832
48903
|
}, {
|
|
48833
48904
|
key: "update",
|
|
48834
48905
|
value: function update(prevDrawArea, dlines, startIndex, dTop, restHeight) {
|
|
48835
|
-
var valignTop = dTop;
|
|
48836
|
-
|
|
48837
|
-
|
|
48838
|
-
|
|
48839
|
-
this._valignTop = valignTop;
|
|
48840
|
-
}
|
|
48906
|
+
var valignTop = dTop; // if (startIndex === 0) {
|
|
48907
|
+
// valignTop=this.calcValignTop();
|
|
48908
|
+
// this._valignTop=valignTop;
|
|
48909
|
+
// }
|
|
48841
48910
|
|
|
48842
48911
|
this._startDline = startIndex;
|
|
48843
48912
|
|
|
@@ -49433,7 +49502,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49433
49502
|
|
|
49434
49503
|
partCell.dHeight = newHeight;
|
|
49435
49504
|
partCell.maxHeight = newHeight;
|
|
49436
|
-
partCell.update(dPrevPartCell, partCell.cell.drawCell.drawLines, startChildIndex,
|
|
49505
|
+
partCell.update(dPrevPartCell, partCell.cell.drawCell.drawLines, startChildIndex, partCell.valignTop, newHeight);
|
|
49437
49506
|
dPageTable.paintCellBorder(partCell, r, c, newHeight);
|
|
49438
49507
|
}
|
|
49439
49508
|
}, {
|
|
@@ -49924,7 +49993,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49924
49993
|
dPartCell.x = aleft; //this.drawItems.push(dPartCell);
|
|
49925
49994
|
|
|
49926
49995
|
this.addChild(dPartCell);
|
|
49927
|
-
var ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex,
|
|
49996
|
+
var ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
|
|
49928
49997
|
dPartCell.y = cellRowTop;
|
|
49929
49998
|
} else {
|
|
49930
49999
|
dPartCell = cell.drawCell.drawPageCells[partCellindex + 1];
|
|
@@ -49948,7 +50017,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49948
50017
|
dPartCell.maxHeight = tableRestHeight - cellRowTop;
|
|
49949
50018
|
}
|
|
49950
50019
|
|
|
49951
|
-
var _ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex,
|
|
50020
|
+
var _ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
|
|
49952
50021
|
}
|
|
49953
50022
|
|
|
49954
50023
|
dPartCell.y = cellRowTop;
|
|
@@ -50154,7 +50223,13 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
50154
50223
|
var partCell = mainCell.drawCell.getDrawPageCell(this);
|
|
50155
50224
|
|
|
50156
50225
|
if (partCell && aHeight) {
|
|
50157
|
-
|
|
50226
|
+
var cellHeight = aHeight;
|
|
50227
|
+
|
|
50228
|
+
if (mainCell.rowSpan > 1) {
|
|
50229
|
+
cellHeight = partCell.dHeight;
|
|
50230
|
+
}
|
|
50231
|
+
|
|
50232
|
+
rowHeight = Math.max(cellHeight, partCell.docHeight);
|
|
50158
50233
|
rowSpan = mainCell.rowSpan;
|
|
50159
50234
|
}
|
|
50160
50235
|
}
|
|
@@ -50477,7 +50552,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
50477
50552
|
dPartCell.x = aleft; //this.drawItems.push(dPartCell);
|
|
50478
50553
|
|
|
50479
50554
|
this.addChild(dPartCell);
|
|
50480
|
-
var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex,
|
|
50555
|
+
var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
|
|
50481
50556
|
dPartCell.y = cellRowTop;
|
|
50482
50557
|
rowFinished = rowFinished && ret;
|
|
50483
50558
|
} else {
|
|
@@ -50507,7 +50582,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
50507
50582
|
|
|
50508
50583
|
bRowHeightChanged = true;
|
|
50509
50584
|
|
|
50510
|
-
var _ret2 = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex,
|
|
50585
|
+
var _ret2 = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
|
|
50511
50586
|
|
|
50512
50587
|
rowFinished = rowFinished && _ret2;
|
|
50513
50588
|
} else if (_cell2.drawCell.drawPageCells.length > 1 && partCellindex + 1 < _cell2.drawCell.drawPageCells.length - 1 && !this._table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop) {
|
|
@@ -51339,7 +51414,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
51339
51414
|
/*
|
|
51340
51415
|
* @Author: your name
|
|
51341
51416
|
* @Date: 2021-09-01 16:51:49
|
|
51342
|
-
* @LastEditTime: 2022-
|
|
51417
|
+
* @LastEditTime: 2022-07-18 16:38:54
|
|
51343
51418
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
51344
51419
|
* @Description: In User Settings Edit
|
|
51345
51420
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -51350,7 +51425,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51350
51425
|
|
|
51351
51426
|
var _super = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(DrawSignNode);
|
|
51352
51427
|
|
|
51353
|
-
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition) {
|
|
51428
|
+
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition, attribute, customProperty) {
|
|
51354
51429
|
var _this;
|
|
51355
51430
|
|
|
51356
51431
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawSignNode);
|
|
@@ -51362,12 +51437,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51362
51437
|
_this._imgSrc = '';
|
|
51363
51438
|
_this._fingerPrintSrc = '';
|
|
51364
51439
|
_this._fingerPosition = 0;
|
|
51440
|
+
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
51441
|
+
|
|
51442
|
+
_this._abi02 = "";
|
|
51365
51443
|
_this._number = number;
|
|
51366
51444
|
_this._imgSrc = imgSrc;
|
|
51367
51445
|
_this._type = type;
|
|
51368
51446
|
_this._signName = name;
|
|
51369
51447
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
51370
|
-
_this._fingerPosition = fingerPosition;
|
|
51448
|
+
_this._fingerPosition = fingerPosition;
|
|
51449
|
+
_this._attribute = attribute;
|
|
51450
|
+
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : ""; //this._textStyle = cbStyle.;
|
|
51371
51451
|
|
|
51372
51452
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
|
|
51373
51453
|
|
|
@@ -51407,6 +51487,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51407
51487
|
} else {
|
|
51408
51488
|
_this.dWidth = imgWidth * scale + _this._drawText.getMeasuredWidth();
|
|
51409
51489
|
}
|
|
51490
|
+
|
|
51491
|
+
if (_this.attribute === 2 && _this._abi02 !== "") {
|
|
51492
|
+
_this._drawAbi02 = new createjs.Text(customProperty.abi02 + ":", _this._textStyle, '#000000');
|
|
51493
|
+
_this.dWidth += _this._drawAbi02.getMeasuredWidth();
|
|
51494
|
+
}
|
|
51410
51495
|
}
|
|
51411
51496
|
|
|
51412
51497
|
if (type === 2) {
|
|
@@ -51520,6 +51605,26 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51520
51605
|
this._textStyle = value;
|
|
51521
51606
|
}
|
|
51522
51607
|
}
|
|
51608
|
+
}, {
|
|
51609
|
+
key: "attribute",
|
|
51610
|
+
get: function get() {
|
|
51611
|
+
return this._attribute;
|
|
51612
|
+
},
|
|
51613
|
+
set: function set(value) {
|
|
51614
|
+
if (this._attribute !== value) {
|
|
51615
|
+
this._attribute = value;
|
|
51616
|
+
}
|
|
51617
|
+
}
|
|
51618
|
+
}, {
|
|
51619
|
+
key: "abi02",
|
|
51620
|
+
get: function get() {
|
|
51621
|
+
return this._abi02;
|
|
51622
|
+
},
|
|
51623
|
+
set: function set(value) {
|
|
51624
|
+
if (this._abi02 !== value) {
|
|
51625
|
+
this._abi02 = value;
|
|
51626
|
+
}
|
|
51627
|
+
}
|
|
51523
51628
|
}, {
|
|
51524
51629
|
key: "drawWriteSignNode",
|
|
51525
51630
|
value: function drawWriteSignNode(node) {
|
|
@@ -51717,22 +51822,54 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51717
51822
|
}
|
|
51718
51823
|
}
|
|
51719
51824
|
|
|
51720
|
-
_this3.
|
|
51825
|
+
if (_this3.attribute === 2 && _this3.abi02 !== "") {
|
|
51826
|
+
var abi02Text = new createjs.Text(_this3.abi02 + ":", _this3.textStyle, '#000000');
|
|
51827
|
+
abi02Text.textBaseline = 'alphabetic';
|
|
51828
|
+
abi02Text.textAlign = 'left';
|
|
51829
|
+
|
|
51830
|
+
_this3.addChildAt(abi02Text, 0);
|
|
51831
|
+
|
|
51832
|
+
bitmap.x = abi02Text.getMeasuredWidth();
|
|
51833
|
+
|
|
51834
|
+
_this3.addChildAt(bitmap);
|
|
51835
|
+
} else {
|
|
51836
|
+
_this3.addChildAt(bitmap, 0);
|
|
51837
|
+
}
|
|
51721
51838
|
|
|
51722
51839
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51723
51840
|
hoEditorFactory.loadImageCount++;
|
|
51724
51841
|
|
|
51725
51842
|
image.onload = function () {
|
|
51726
51843
|
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51727
|
-
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51728
|
-
|
|
51729
|
-
var
|
|
51844
|
+
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height; // 处理宽高和实际宽高相反的问题 --- 2.0.66版本问题 --2.0.68后版本临时处理 再过几个版本后可以删掉
|
|
51845
|
+
|
|
51846
|
+
var node = _this3.node;
|
|
51847
|
+
var nodeImageWidth = node.imgWidth;
|
|
51848
|
+
var nodeImageHeight = node.imgHeight;
|
|
51849
|
+
|
|
51850
|
+
if (image.naturalWidth > image.naturalHeight && nodeImageWidth < nodeImageHeight || image.naturalWidth < image.naturalHeight && node.imgWidth > node.imgHeight) {
|
|
51851
|
+
node.imgWidth = nodeImageHeight;
|
|
51852
|
+
node.imgHeight = nodeImageWidth;
|
|
51853
|
+
}
|
|
51854
|
+
|
|
51855
|
+
var width = hitWidth * hoEditorFactory.signHeight / image.naturalHeight; //+ this._drawText.getMeasuredWidth();
|
|
51856
|
+
|
|
51857
|
+
drawNode.dWidth = width;
|
|
51858
|
+
|
|
51859
|
+
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
51860
|
+
drawNode.dWidth += drawNode._drawAbi02.getMeasuredWidth();
|
|
51861
|
+
}
|
|
51730
51862
|
|
|
51731
51863
|
if (_this3.number === 2) {
|
|
51732
|
-
|
|
51864
|
+
drawNode.dWidth += _this3._drawText.getMeasuredWidth();
|
|
51865
|
+
}
|
|
51866
|
+
|
|
51867
|
+
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
51868
|
+
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -hoEditorFactory.signHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51869
|
+
} else {
|
|
51870
|
+
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51733
51871
|
}
|
|
51734
51872
|
|
|
51735
|
-
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51736
51873
|
var hitArea = new createjs.Shape();
|
|
51737
51874
|
hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
|
|
51738
51875
|
|
|
@@ -57548,7 +57685,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
57548
57685
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
57549
57686
|
|
|
57550
57687
|
try {
|
|
57551
|
-
//
|
|
57688
|
+
//console.time("文档change事件");
|
|
57552
57689
|
this._inChanging = true;
|
|
57553
57690
|
var startUpdateLine;
|
|
57554
57691
|
this.adjustEventPath(e);
|
|
@@ -57943,7 +58080,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
57943
58080
|
|
|
57944
58081
|
if (hoEditorFactory.docTree.curOnDragNode) {
|
|
57945
58082
|
this._caret.visible = false;
|
|
57946
|
-
} //
|
|
58083
|
+
} //console.timeEnd("文档change事件");
|
|
57947
58084
|
|
|
57948
58085
|
|
|
57949
58086
|
return true;
|
|
@@ -59626,8 +59763,8 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
59626
59763
|
}
|
|
59627
59764
|
|
|
59628
59765
|
if (dPage && dPage.selectContainer) {
|
|
59629
|
-
var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#
|
|
59630
|
-
shape.alpha = 0.
|
|
59766
|
+
var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#FB0451");
|
|
59767
|
+
shape.alpha = 0.3;
|
|
59631
59768
|
dPage.selectContainer.addChild(shape);
|
|
59632
59769
|
|
|
59633
59770
|
if (dPages.indexOf(dPage) < 0) {
|
|
@@ -62655,7 +62792,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62655
62792
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39873);
|
|
62656
62793
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37174);
|
|
62657
62794
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35671);
|
|
62658
|
-
/* harmony import */ var
|
|
62795
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(22342);
|
|
62659
62796
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
|
|
62660
62797
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
62661
62798
|
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
|
|
@@ -62696,6 +62833,8 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62696
62833
|
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(98390);
|
|
62697
62834
|
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(12019);
|
|
62698
62835
|
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(34450);
|
|
62836
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(2242);
|
|
62837
|
+
|
|
62699
62838
|
|
|
62700
62839
|
|
|
62701
62840
|
|
|
@@ -62771,7 +62910,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62771
62910
|
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
62772
62911
|
}
|
|
62773
62912
|
|
|
62774
|
-
(0,
|
|
62913
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
62775
62914
|
key: "undo",
|
|
62776
62915
|
value: function undo() {
|
|
62777
62916
|
//2.插入删除的节点
|
|
@@ -63050,7 +63189,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63050
63189
|
key: "spliteNode",
|
|
63051
63190
|
value: function spliteNode(Arange) {
|
|
63052
63191
|
var _this = this,
|
|
63053
|
-
|
|
63192
|
+
_pnode$downListProper;
|
|
63054
63193
|
|
|
63055
63194
|
var s = Arange.npStart.node;
|
|
63056
63195
|
var e = Arange.npEnd.node;
|
|
@@ -63106,8 +63245,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63106
63245
|
|
|
63107
63246
|
this._tmp.start = Arange.startPath;
|
|
63108
63247
|
this._tmp.end = Arange.endPath;
|
|
63248
|
+
var spnode = s.parentNode;
|
|
63249
|
+
var epnode = e.parentNode;
|
|
63250
|
+
var pnode = epnode;
|
|
63251
|
+
|
|
63252
|
+
if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && spnode != epnode) {
|
|
63253
|
+
var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__/* .NodePosition.nodePositionCompare */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
|
|
63109
63254
|
|
|
63110
|
-
|
|
63255
|
+
if (result < 0) {
|
|
63256
|
+
pnode = spnode;
|
|
63257
|
+
}
|
|
63258
|
+
}
|
|
63259
|
+
|
|
63260
|
+
if (this._isForceDelete && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && pnode.inputFieldType === 1 && (_pnode$downListProper = pnode.downListProperty.listItems) !== null && _pnode$downListProper !== void 0 && _pnode$downListProper.includes("<元素>")) {
|
|
63261
|
+
this._tmp.start = pnode.StartMarkNode.getNodePath();
|
|
63262
|
+
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
|
|
63111
63263
|
return true;
|
|
63112
63264
|
}
|
|
63113
63265
|
|
|
@@ -207277,7 +207429,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207277
207429
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207278
207430
|
var ParagraphNode = __webpack_require__(14208);
|
|
207279
207431
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207280
|
-
/* harmony default export */ var version = ('2.0.
|
|
207432
|
+
/* harmony default export */ var version = ('2.0.71');
|
|
207281
207433
|
;// 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&
|
|
207282
207434
|
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)}
|
|
207283
207435
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -209788,7 +209940,7 @@ var UserInfo = __webpack_require__(75013);
|
|
|
209788
209940
|
/*
|
|
209789
209941
|
* @Author: your name
|
|
209790
209942
|
* @Date: 2021-06-21 17:47:51
|
|
209791
|
-
* @LastEditTime: 2022-07-
|
|
209943
|
+
* @LastEditTime: 2022-07-18 14:39:07
|
|
209792
209944
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
209793
209945
|
* @Description: In User Settings Edit
|
|
209794
209946
|
* @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
|
|
@@ -209811,6 +209963,8 @@ var Option = /*#__PURE__*/function () {
|
|
|
209811
209963
|
|
|
209812
209964
|
this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
|
|
209813
209965
|
|
|
209966
|
+
this._signColor = "transparent"; //签名元素颜色
|
|
209967
|
+
|
|
209814
209968
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
209815
209969
|
}
|
|
209816
209970
|
|
|
@@ -209878,9 +210032,17 @@ var Option = /*#__PURE__*/function () {
|
|
|
209878
210032
|
set: function set(value) {
|
|
209879
210033
|
this._downListColor2 = value;
|
|
209880
210034
|
}
|
|
210035
|
+
}, {
|
|
210036
|
+
key: "signColor",
|
|
210037
|
+
get: function get() {
|
|
210038
|
+
return this._signColor;
|
|
210039
|
+
},
|
|
210040
|
+
set: function set(value) {
|
|
210041
|
+
this._signColor = value;
|
|
210042
|
+
}
|
|
209881
210043
|
}, {
|
|
209882
210044
|
key: "setReviewLevelColor",
|
|
209883
|
-
value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2) {
|
|
210045
|
+
value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2, signColor) {
|
|
209884
210046
|
Lev1Color && (this._reviewLev1Color = Lev1Color);
|
|
209885
210047
|
Lev2Color && (this._reviewLev2Color = Lev2Color);
|
|
209886
210048
|
Lev3Color && (this._reviewLev3Color = Lev3Color);
|
|
@@ -209888,6 +210050,7 @@ var Option = /*#__PURE__*/function () {
|
|
|
209888
210050
|
dateTimeColor && (this._dateTimeColor = dateTimeColor);
|
|
209889
210051
|
downListColor && (this._downListColor = downListColor);
|
|
209890
210052
|
downListColor2 && (this._downListColor2 = downListColor2);
|
|
210053
|
+
signColor && (this._signColor = signColor);
|
|
209891
210054
|
}
|
|
209892
210055
|
}, {
|
|
209893
210056
|
key: "getColorByLevel",
|
|
@@ -209906,6 +210069,8 @@ var Option = /*#__PURE__*/function () {
|
|
|
209906
210069
|
return this._reviewLev2Color;
|
|
209907
210070
|
} else if (level === 3) {
|
|
209908
210071
|
return this._reviewLev3Color;
|
|
210072
|
+
} else if (level === 13) {
|
|
210073
|
+
return this._signColor;
|
|
209909
210074
|
} else {
|
|
209910
210075
|
return "transparent";
|
|
209911
210076
|
}
|
|
@@ -211926,7 +212091,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211926
212091
|
}
|
|
211927
212092
|
}, {
|
|
211928
212093
|
key: "xml2Doc",
|
|
211929
|
-
value: function xml2Doc(xml) {
|
|
212094
|
+
value: function xml2Doc(xml, isClearSign) {
|
|
211930
212095
|
// xml = this.replaceNodesName(xml);
|
|
211931
212096
|
// const x2js = new X2JS({ stripWhitespaces: false });
|
|
211932
212097
|
// const object = x2js.xml2js(xml);
|
|
@@ -211978,7 +212143,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211978
212143
|
var aobject = this.xml2Object(xml);
|
|
211979
212144
|
|
|
211980
212145
|
if (aobject) {
|
|
211981
|
-
return this.json2Doc(aobject);
|
|
212146
|
+
return this.json2Doc(aobject, isClearSign);
|
|
211982
212147
|
} // if (json.rvxml) {
|
|
211983
212148
|
// const rvxml = json.rvxml;
|
|
211984
212149
|
// return;
|
|
@@ -212570,7 +212735,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212570
212735
|
}
|
|
212571
212736
|
}, {
|
|
212572
212737
|
key: "json2Doc",
|
|
212573
|
-
value: function json2Doc(xx) {
|
|
212738
|
+
value: function json2Doc(xx, isClearSign) {
|
|
212574
212739
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
212575
212740
|
/*
|
|
212576
212741
|
const pushChildNodes = (
|
|
@@ -212697,11 +212862,15 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212697
212862
|
var histories = xx.userHistories;
|
|
212698
212863
|
var historiesArr = histories.userHistory;
|
|
212699
212864
|
|
|
212865
|
+
if (historiesArr.length == undefined) {
|
|
212866
|
+
historiesArr = Array(historiesArr);
|
|
212867
|
+
}
|
|
212868
|
+
|
|
212700
212869
|
for (var _i10 = 0; _i10 < historiesArr.length; _i10++) {
|
|
212701
212870
|
var historyObj = historiesArr[_i10];
|
|
212702
212871
|
var history = new UserHistory/* UserHistory */.R(this._hoEditorFactoryID, UserHistory/* HistoryEditType.hetCreate */.N.hetCreate);
|
|
212703
212872
|
Object.assign(history, historyObj);
|
|
212704
|
-
history.permissionLevel = Number(historyObj.
|
|
212873
|
+
history.permissionLevel = Number(historyObj.permissionLevel);
|
|
212705
212874
|
hoEditorFactory.docTree.userHistories.push(history);
|
|
212706
212875
|
}
|
|
212707
212876
|
|
|
@@ -212843,7 +213012,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212843
213012
|
}
|
|
212844
213013
|
|
|
212845
213014
|
var node = hoEditorFactory.structureConvert.convertNode(header, //headerNodes[hi],
|
|
212846
|
-
headerDocTree.subDocNodes, null, headerNode.subDocNodes);
|
|
213015
|
+
headerDocTree.subDocNodes, null, headerNode.subDocNodes, undefined, isClearSign);
|
|
212847
213016
|
|
|
212848
213017
|
if (node) {
|
|
212849
213018
|
node.rootPath = "header/" + hi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212903,7 +213072,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212903
213072
|
}
|
|
212904
213073
|
|
|
212905
213074
|
var _node2 = hoEditorFactory.structureConvert.convertNode(footer, //footerNodes[fi],
|
|
212906
|
-
footSubDocTree.subDocNodes, null, footerNode.subDocNodes);
|
|
213075
|
+
footSubDocTree.subDocNodes, null, footerNode.subDocNodes, undefined, isClearSign);
|
|
212907
213076
|
|
|
212908
213077
|
if (_node2) {
|
|
212909
213078
|
_node2.rootPath = "footer/" + fi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212948,7 +213117,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212948
213117
|
continue;
|
|
212949
213118
|
}
|
|
212950
213119
|
|
|
212951
|
-
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes);
|
|
213120
|
+
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
|
|
212952
213121
|
|
|
212953
213122
|
if (_node3) {
|
|
212954
213123
|
// if (node instanceof BaseCombineNode && temp.childNode) {
|
|
@@ -213092,7 +213261,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213092
213261
|
}
|
|
213093
213262
|
}, {
|
|
213094
213263
|
key: "convertNode",
|
|
213095
|
-
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste) {
|
|
213264
|
+
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign) {
|
|
213096
213265
|
if (temp === "") {
|
|
213097
213266
|
return undefined;
|
|
213098
213267
|
}
|
|
@@ -213128,7 +213297,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213128
213297
|
return undefined;
|
|
213129
213298
|
}
|
|
213130
213299
|
|
|
213131
|
-
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213300
|
+
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213132
213301
|
return node;
|
|
213133
213302
|
} else if (temp.nodeType == BaseNode/* NodeType.ntParagraph */.Jq.ntParagraph) {
|
|
213134
213303
|
return ParagraphNode/* ParagraphNode.json2Node */.C.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
@@ -213165,7 +213334,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213165
213334
|
return RadioAndCheckBoxNode/* RadioAndCheckBoxNode.json2Node */.Yh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213166
213335
|
}
|
|
213167
213336
|
} else if (temp.nodeType == BaseNode/* NodeType.ntField */.Jq.ntField) {
|
|
213168
|
-
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213337
|
+
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213169
213338
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar) {
|
|
213170
213339
|
return SpecialCharsNode/* SpecialCharsNode.json2Node */.y.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213171
213340
|
} else if (temp.nodeType == BaseNode/* NodeType.ntMark */.Jq.ntMark) {
|
|
@@ -213181,7 +213350,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213181
213350
|
} else if (temp.nodeType == BaseNode/* NodeType.ntLabel */.Jq.ntLabel) {
|
|
213182
213351
|
return LabelNode/* LabelNode.json2Node */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213183
213352
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSign */.Jq.ntSign) {
|
|
213184
|
-
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213353
|
+
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
|
|
213185
213354
|
} else if (temp.nodeType == BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
|
|
213186
213355
|
return GestationNode/* GestationNode.json2Node */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213187
213356
|
}
|
|
@@ -213275,13 +213444,13 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213275
213444
|
}
|
|
213276
213445
|
}, {
|
|
213277
213446
|
key: "openXml",
|
|
213278
|
-
value: function openXml(xml, callback, isDelBlockLine) {
|
|
213447
|
+
value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
|
|
213279
213448
|
var _this4 = this;
|
|
213280
213449
|
|
|
213281
213450
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
213282
213451
|
this._superiorSign = [];
|
|
213283
213452
|
hoEditorFactory.isThrowError = false;
|
|
213284
|
-
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml);
|
|
213453
|
+
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
|
|
213285
213454
|
Promise.resolve().then(function () {
|
|
213286
213455
|
hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
213287
213456
|
|
|
@@ -217130,7 +217299,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217130
217299
|
value: function setReviewLevelColor(option) {
|
|
217131
217300
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217132
217301
|
var opt = new Option(this.hoEditorFactoryID);
|
|
217133
|
-
opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2);
|
|
217302
|
+
opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2, option.signColor);
|
|
217134
217303
|
hoEditorFactory.option = opt;
|
|
217135
217304
|
}
|
|
217136
217305
|
/**
|
|
@@ -218981,12 +219150,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218981
219150
|
/**
|
|
218982
219151
|
* 读取 xml
|
|
218983
219152
|
* @param xml
|
|
219153
|
+
* @param callback 是否回调
|
|
219154
|
+
* @param isDelBlockLine 是否删掉正文末尾的空行
|
|
219155
|
+
* @param isRender
|
|
219156
|
+
* @param isClearSign 加载时是否清空签名元素内容
|
|
218984
219157
|
*/
|
|
218985
219158
|
|
|
218986
219159
|
}, {
|
|
218987
219160
|
key: "openXml",
|
|
218988
219161
|
value: function () {
|
|
218989
|
-
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender) {
|
|
219162
|
+
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender, isClearSign) {
|
|
218990
219163
|
var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent;
|
|
218991
219164
|
|
|
218992
219165
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5) {
|
|
@@ -219031,7 +219204,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219031
219204
|
}
|
|
219032
219205
|
|
|
219033
219206
|
_context5.next = 15;
|
|
219034
|
-
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine);
|
|
219207
|
+
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
|
|
219035
219208
|
|
|
219036
219209
|
case 15:
|
|
219037
219210
|
case "end":
|
|
@@ -219041,7 +219214,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219041
219214
|
}, _callee5, this);
|
|
219042
219215
|
}));
|
|
219043
219216
|
|
|
219044
|
-
function openXml(_x8, _x9, _x10, _x11) {
|
|
219217
|
+
function openXml(_x8, _x9, _x10, _x11, _x12) {
|
|
219045
219218
|
return _openXml.apply(this, arguments);
|
|
219046
219219
|
}
|
|
219047
219220
|
|
|
@@ -219186,8 +219359,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219186
219359
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
219187
219360
|
var nextNode = node.nextLeaf();
|
|
219188
219361
|
|
|
219189
|
-
if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219190
|
-
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);
|
|
219362
|
+
if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219363
|
+
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);
|
|
219191
219364
|
hoEditorFactory.undoService.begin();
|
|
219192
219365
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
|
|
219193
219366
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
|
|
@@ -219422,7 +219595,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219422
219595
|
|
|
219423
219596
|
}, {
|
|
219424
219597
|
key: "insertEmptySignNode",
|
|
219425
|
-
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
|
|
219598
|
+
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
219426
219599
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219427
219600
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
219428
219601
|
var startPath = curDomRange.normalize().startPath;
|
|
@@ -219430,7 +219603,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219430
219603
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219431
219604
|
|
|
219432
219605
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219433
|
-
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime);
|
|
219606
|
+
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute);
|
|
219434
219607
|
}
|
|
219435
219608
|
}
|
|
219436
219609
|
/**
|
|
@@ -220028,7 +220201,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220028
220201
|
}, _callee6, this);
|
|
220029
220202
|
}));
|
|
220030
220203
|
|
|
220031
|
-
function updateElementText(
|
|
220204
|
+
function updateElementText(_x13, _x14, _x15) {
|
|
220032
220205
|
return _updateElementText.apply(this, arguments);
|
|
220033
220206
|
}
|
|
220034
220207
|
|
|
@@ -220292,7 +220465,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220292
220465
|
endPath = curDomRange.normalize().endPath;
|
|
220293
220466
|
node = (_hoEditorFactory2$vue = _hoEditorFactory2.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory2$vue === void 0 ? void 0 : _hoEditorFactory2$vue.node;
|
|
220294
220467
|
|
|
220295
|
-
if (!(node instanceof SignNode/* SignNode */.N && node.
|
|
220468
|
+
if (!(node instanceof SignNode/* SignNode */.N && !node.isTemplate && node.attribute == 1)) {
|
|
220296
220469
|
_context7.next = 8;
|
|
220297
220470
|
break;
|
|
220298
220471
|
}
|
|
@@ -220314,7 +220487,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220314
220487
|
_endPath = _curDomRange2.normalize().endPath;
|
|
220315
220488
|
_node = (_hoEditorFactory3$vue = _hoEditorFactory3.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory3$vue === void 0 ? void 0 : _hoEditorFactory3$vue.node;
|
|
220316
220489
|
|
|
220317
|
-
if (!(_node instanceof SignNode/* SignNode */.N && _node.
|
|
220490
|
+
if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
|
|
220318
220491
|
_context7.next = 21;
|
|
220319
220492
|
break;
|
|
220320
220493
|
}
|
|
@@ -220338,7 +220511,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220338
220511
|
}, _callee7, this);
|
|
220339
220512
|
}));
|
|
220340
220513
|
|
|
220341
|
-
function getBase64(
|
|
220514
|
+
function getBase64(_x16) {
|
|
220342
220515
|
return _getBase.apply(this, arguments);
|
|
220343
220516
|
}
|
|
220344
220517
|
|
|
@@ -220359,18 +220532,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220359
220532
|
|
|
220360
220533
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
220361
220534
|
if (node.isTemplate) {
|
|
220362
|
-
if (node.imgSrc || node.fingerPrintSrc) {
|
|
220535
|
+
if (node.imgSrc !== '' || node.fingerPrintSrc !== '') {
|
|
220363
220536
|
this.deleteNode(node);
|
|
220364
220537
|
setTimeout(function () {
|
|
220365
220538
|
var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
220366
220539
|
var newNode = newcurDomRange.npEnd.node;
|
|
220367
220540
|
|
|
220368
220541
|
if (newNode instanceof SignNode/* SignNode */.N) {
|
|
220369
|
-
hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220542
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220543
|
+
setTimeout(function () {
|
|
220544
|
+
callback && callback();
|
|
220545
|
+
}, 0);
|
|
220546
|
+
});
|
|
220370
220547
|
}
|
|
220371
220548
|
}, 0);
|
|
220372
220549
|
} else {
|
|
220373
|
-
hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220550
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220551
|
+
setTimeout(function () {
|
|
220552
|
+
callback && callback();
|
|
220553
|
+
}, 0);
|
|
220554
|
+
});
|
|
220374
220555
|
}
|
|
220375
220556
|
} else {
|
|
220376
220557
|
this.deleteNode(node);
|
|
@@ -220794,6 +220975,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220794
220975
|
if (curDomRange.isEmpty) return;
|
|
220795
220976
|
var result = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath, true);
|
|
220796
220977
|
var nodes = result[0];
|
|
220978
|
+
var isHaveParaNodes = false;
|
|
220979
|
+
|
|
220980
|
+
for (var m = 0; m < nodes.length; m++) {
|
|
220981
|
+
if (nodes[m] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
220982
|
+
isHaveParaNodes = true;
|
|
220983
|
+
break;
|
|
220984
|
+
}
|
|
220985
|
+
}
|
|
220986
|
+
|
|
220987
|
+
if (!isHaveParaNodes) {
|
|
220988
|
+
message_box_default().alert("选区内没有换行符,无需清除.");
|
|
220989
|
+
|
|
220990
|
+
return;
|
|
220991
|
+
}
|
|
220797
220992
|
|
|
220798
220993
|
for (var i = 0; i < nodes.length; i++) {
|
|
220799
220994
|
var node = nodes[i];
|
|
@@ -220943,37 +221138,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220943
221138
|
});
|
|
220944
221139
|
drawTree.commentsMap = commentsMap;
|
|
220945
221140
|
}
|
|
220946
|
-
/**
|
|
220947
|
-
* 查询是否存在医生签名
|
|
220948
|
-
* @returns boolean
|
|
220949
|
-
*/
|
|
220950
|
-
|
|
220951
|
-
}, {
|
|
220952
|
-
key: "getAllSignNode",
|
|
220953
|
-
value: function getAllSignNode() {
|
|
220954
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220955
|
-
var isHasDoctorSign = false;
|
|
220956
|
-
|
|
220957
|
-
var getAllNodes = function getAllNodes(nodes) {
|
|
220958
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
220959
|
-
var node = nodes[i];
|
|
220960
|
-
|
|
220961
|
-
if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
|
|
220962
|
-
isHasDoctorSign = true;
|
|
220963
|
-
break; // 医生签名已存在的情况中断当前层的遍历
|
|
220964
|
-
}
|
|
220965
|
-
|
|
220966
|
-
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
|
|
220967
|
-
// 医生签名已存在的情况不在深层调用深层遍历
|
|
220968
|
-
getAllNodes(node.childNodes);
|
|
220969
|
-
}
|
|
220970
|
-
}
|
|
220971
|
-
};
|
|
220972
|
-
|
|
220973
|
-
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
220974
|
-
getAllNodes(mainNodes);
|
|
220975
|
-
return isHasDoctorSign;
|
|
220976
|
-
}
|
|
220977
221141
|
}, {
|
|
220978
221142
|
key: "SyncElements",
|
|
220979
221143
|
value: function SyncElements() {
|
|
@@ -221142,6 +221306,97 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221142
221306
|
value: function setParaCustomProperty(paragraphNode, customProperty) {
|
|
221143
221307
|
paragraphNode.setCustomProperty(customProperty);
|
|
221144
221308
|
}
|
|
221309
|
+
/**
|
|
221310
|
+
* 查询是否有空签名元素
|
|
221311
|
+
* @returns boolean
|
|
221312
|
+
*/
|
|
221313
|
+
|
|
221314
|
+
}, {
|
|
221315
|
+
key: "getAllEmptySignNode",
|
|
221316
|
+
value: function getAllEmptySignNode(attribute) {
|
|
221317
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221318
|
+
var hasEmptyPatientSign = false;
|
|
221319
|
+
var patientSignCount = 0;
|
|
221320
|
+
var hasEmptyDoctorSign = false;
|
|
221321
|
+
|
|
221322
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
221323
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221324
|
+
var node = nodes[i];
|
|
221325
|
+
|
|
221326
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
221327
|
+
// 有值的患者签名
|
|
221328
|
+
if (attribute == 1 && node.attribute === 1) {
|
|
221329
|
+
patientSignCount++;
|
|
221330
|
+
}
|
|
221331
|
+
|
|
221332
|
+
if (attribute == 1 && node.attribute === 1 && (node.imgSrc !== '' || node.fingerPrintSrc !== '')) {
|
|
221333
|
+
hasEmptyPatientSign = true;
|
|
221334
|
+
break;
|
|
221335
|
+
} // 空的医生签名
|
|
221336
|
+
|
|
221337
|
+
|
|
221338
|
+
if (attribute == 0 && node.attribute === 0 && node.imgSrc === '') {
|
|
221339
|
+
hasEmptyDoctorSign = true;
|
|
221340
|
+
break;
|
|
221341
|
+
}
|
|
221342
|
+
}
|
|
221343
|
+
|
|
221344
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
|
|
221345
|
+
// 患者签名已存在的情况不在深层调用深层遍历
|
|
221346
|
+
getAllNodes(node.childNodes);
|
|
221347
|
+
}
|
|
221348
|
+
|
|
221349
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 0 && !hasEmptyDoctorSign) {
|
|
221350
|
+
// 医生签名不存在的情况不在深层调用深层遍历
|
|
221351
|
+
getAllNodes(node.childNodes);
|
|
221352
|
+
}
|
|
221353
|
+
}
|
|
221354
|
+
};
|
|
221355
|
+
|
|
221356
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
221357
|
+
getAllNodes(mainNodes);
|
|
221358
|
+
|
|
221359
|
+
if (attribute == 1) {
|
|
221360
|
+
if (patientSignCount == 0) {
|
|
221361
|
+
return true;
|
|
221362
|
+
}
|
|
221363
|
+
|
|
221364
|
+
return hasEmptyPatientSign;
|
|
221365
|
+
} else {
|
|
221366
|
+
return hasEmptyDoctorSign;
|
|
221367
|
+
}
|
|
221368
|
+
}
|
|
221369
|
+
/**
|
|
221370
|
+
* 查询是否存在医生签名
|
|
221371
|
+
* @returns boolean
|
|
221372
|
+
*/
|
|
221373
|
+
|
|
221374
|
+
}, {
|
|
221375
|
+
key: "getAllSignNode",
|
|
221376
|
+
value: function getAllSignNode() {
|
|
221377
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221378
|
+
var isHasDoctorSign = false;
|
|
221379
|
+
|
|
221380
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
221381
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221382
|
+
var node = nodes[i];
|
|
221383
|
+
|
|
221384
|
+
if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
|
|
221385
|
+
isHasDoctorSign = true;
|
|
221386
|
+
break; // 医生签名已存在的情况中断当前层的遍历
|
|
221387
|
+
}
|
|
221388
|
+
|
|
221389
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
|
|
221390
|
+
// 医生签名已存在的情况不在深层调用深层遍历
|
|
221391
|
+
getAllNodes(node.childNodes);
|
|
221392
|
+
}
|
|
221393
|
+
}
|
|
221394
|
+
};
|
|
221395
|
+
|
|
221396
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
221397
|
+
getAllNodes(mainNodes);
|
|
221398
|
+
return isHasDoctorSign;
|
|
221399
|
+
}
|
|
221145
221400
|
}]);
|
|
221146
221401
|
|
|
221147
221402
|
return VueController;
|
|
@@ -223827,6 +224082,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223827
224082
|
hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState.psPreview */.Dh.psPreview;
|
|
223828
224083
|
xmlIndex = -1;
|
|
223829
224084
|
mergeList = [];
|
|
224085
|
+
continuousid = '';
|
|
223830
224086
|
options = {
|
|
223831
224087
|
unit: 'px',
|
|
223832
224088
|
hotfixes: ['px_scaling'],
|
|
@@ -223878,6 +224134,10 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223878
224134
|
position = {};
|
|
223879
224135
|
}
|
|
223880
224136
|
|
|
224137
|
+
if (continuousid && xmlList[xmlIndex][2] !== continuousid) {
|
|
224138
|
+
mergeList = [];
|
|
224139
|
+
}
|
|
224140
|
+
|
|
223881
224141
|
continuousid = xmlList[xmlIndex][2];
|
|
223882
224142
|
mergeList.push([xmlList[xmlIndex][1], xmlList[xmlIndex][0]]);
|
|
223883
224143
|
|
|
@@ -223889,14 +224149,13 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223889
224149
|
} else {
|
|
223890
224150
|
hoEditorFactory.loadImageCallback = toPrint;
|
|
223891
224151
|
}
|
|
223892
|
-
|
|
223893
|
-
mergeList = [];
|
|
223894
224152
|
});
|
|
223895
224153
|
} else {
|
|
223896
224154
|
createSvg();
|
|
223897
224155
|
}
|
|
223898
224156
|
} else {
|
|
223899
224157
|
mergeList = [];
|
|
224158
|
+
continuousid = '';
|
|
223900
224159
|
Promise.all([hoEditorFactory.vueController.openXml(xmlList[xmlIndex][0])]).then(function () {
|
|
223901
224160
|
if (hoEditorFactory.loadImageCount === 0) {
|
|
223902
224161
|
toPrint();
|
|
@@ -223932,7 +224191,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223932
224191
|
|
|
223933
224192
|
createSvg();
|
|
223934
224193
|
|
|
223935
|
-
case
|
|
224194
|
+
case 14:
|
|
223936
224195
|
case "end":
|
|
223937
224196
|
return _context8.stop();
|
|
223938
224197
|
}
|
|
@@ -229195,9 +229454,9 @@ var Delimiter_component = normalizeComponent(
|
|
|
229195
229454
|
;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
|
|
229196
229455
|
|
|
229197
229456
|
/* harmony default export */ var delimiter = (delimiter_Delimiter);
|
|
229198
|
-
;// 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=
|
|
229199
|
-
var
|
|
229200
|
-
var
|
|
229457
|
+
;// 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=38b332be&
|
|
229458
|
+
var Signvue_type_template_id_38b332be_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",staticStyle:{"align-items":"baseline"}},[_c('span',{staticClass:"label"},[_vm._v("签名类型")]),_c('div',{staticStyle:{"flex":"1"}},[_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":3},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("自定义CA签名")])],1)]),(_vm.signType >= 3)?[_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 >= 3)?_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)])}
|
|
229459
|
+
var Signvue_type_template_id_38b332be_staticRenderFns = []
|
|
229201
229460
|
|
|
229202
229461
|
|
|
229203
229462
|
;// 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&
|
|
@@ -229232,7 +229491,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229232
229491
|
|
|
229233
229492
|
_this = _super.apply(this, arguments);
|
|
229234
229493
|
_this.height = 20;
|
|
229235
|
-
_this.name =
|
|
229494
|
+
_this.name = '';
|
|
229236
229495
|
_this.signType = 0;
|
|
229237
229496
|
_this.signFormat = '<医师姓名>';
|
|
229238
229497
|
_this.connectMode = '换行';
|
|
@@ -229241,7 +229500,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229241
229500
|
_this.signTimeFormat = 'yyyy-MM-DD HH:mm';
|
|
229242
229501
|
_this.customFormatContent = '';
|
|
229243
229502
|
_this.customSignFormatList = [];
|
|
229244
|
-
_this.animationClassNames =
|
|
229503
|
+
_this.animationClassNames = 'control-modal-contents sign-modal animation-in';
|
|
229245
229504
|
return _this;
|
|
229246
229505
|
} // 创建自定义签名格式
|
|
229247
229506
|
|
|
@@ -229249,7 +229508,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229249
229508
|
(0,createClass/* default */.Z)(Sign, [{
|
|
229250
229509
|
key: "createSignFormat",
|
|
229251
229510
|
value: function createSignFormat() {
|
|
229252
|
-
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g,
|
|
229511
|
+
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
|
|
229253
229512
|
var customList = ['<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'];
|
|
229254
229513
|
this.$elMessage.closeAll();
|
|
229255
229514
|
|
|
@@ -229264,7 +229523,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229264
229523
|
return;
|
|
229265
229524
|
}
|
|
229266
229525
|
|
|
229267
|
-
var format = [
|
|
229526
|
+
var format = ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'].concat();
|
|
229268
229527
|
this.customSignFormatList.forEach(function (v) {
|
|
229269
229528
|
return format.push(v.value);
|
|
229270
229529
|
});
|
|
@@ -229273,7 +229532,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229273
229532
|
return v === customFormat.slice(1, customFormat.length - 1);
|
|
229274
229533
|
}).length > 0) {
|
|
229275
229534
|
this.$elMessage.warning({
|
|
229276
|
-
message:
|
|
229535
|
+
message: '签名格式已存在无需插入,已自动选中',
|
|
229277
229536
|
duration: 3000,
|
|
229278
229537
|
offset: 120
|
|
229279
229538
|
});
|
|
@@ -229289,17 +229548,12 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229289
229548
|
}, {
|
|
229290
229549
|
key: "insertSign",
|
|
229291
229550
|
value: function insertSign() {
|
|
229292
|
-
if (this.signType ===
|
|
229293
|
-
//
|
|
229294
|
-
|
|
229295
|
-
|
|
229296
|
-
|
|
229297
|
-
|
|
229298
|
-
// this.allowEditSignTime)
|
|
229299
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名", this.signType, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime);
|
|
229300
|
-
} else {
|
|
229301
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名" //,
|
|
229302
|
-
);
|
|
229551
|
+
if (this.signType === 3) {
|
|
229552
|
+
// 自定义多人签名
|
|
229553
|
+
this.vueController.insertEmptySignNode(this.name ? this.name : '医生签名', 1, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime, 0);
|
|
229554
|
+
} else {
|
|
229555
|
+
var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
|
|
229556
|
+
this.vueController.insertEmptySignNode(name, 0, '', '', '', undefined, undefined, this.signType);
|
|
229303
229557
|
}
|
|
229304
229558
|
|
|
229305
229559
|
this.handleClose();
|
|
@@ -229307,8 +229561,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229307
229561
|
}, {
|
|
229308
229562
|
key: "handleClose",
|
|
229309
229563
|
value: function handleClose() {
|
|
229310
|
-
this.animationClassNames =
|
|
229311
|
-
this.$emit(
|
|
229564
|
+
this.animationClassNames = 'control-modal-contents sign-modal animation-out';
|
|
229565
|
+
this.$emit('closed');
|
|
229312
229566
|
}
|
|
229313
229567
|
}]);
|
|
229314
229568
|
|
|
@@ -229320,7 +229574,7 @@ __decorate([Prop()], Sign.prototype, "vueController", void 0);
|
|
|
229320
229574
|
__decorate([Prop()], Sign.prototype, "controlStatus", void 0);
|
|
229321
229575
|
|
|
229322
229576
|
Sign = __decorate([vue_class_component_esm({
|
|
229323
|
-
name:
|
|
229577
|
+
name: 'Sign',
|
|
229324
229578
|
components: {
|
|
229325
229579
|
HoColorPicker: HoColorPicker
|
|
229326
229580
|
}
|
|
@@ -229344,8 +229598,8 @@ Sign = __decorate([vue_class_component_esm({
|
|
|
229344
229598
|
|
|
229345
229599
|
var Sign_component = normalizeComponent(
|
|
229346
229600
|
sign_Signvue_type_script_lang_ts_,
|
|
229347
|
-
|
|
229348
|
-
|
|
229601
|
+
Signvue_type_template_id_38b332be_render,
|
|
229602
|
+
Signvue_type_template_id_38b332be_staticRenderFns,
|
|
229349
229603
|
false,
|
|
229350
229604
|
null,
|
|
229351
229605
|
null,
|