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.umd.js
CHANGED
|
@@ -13514,8 +13514,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13514
13514
|
|
|
13515
13515
|
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) {
|
|
13516
13516
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
13517
|
-
|
|
13518
|
-
curRange
|
|
13517
|
+
|
|
13518
|
+
if (curRange.isEmpty && curRange.endPath == firstPath) {
|
|
13519
|
+
var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
13520
|
+
curRange.endPath = lastPath;
|
|
13521
|
+
}
|
|
13519
13522
|
}
|
|
13520
13523
|
|
|
13521
13524
|
if (!curRange.isEmpty) {
|
|
@@ -14071,7 +14074,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14071
14074
|
var preNode = node.previousLeaf();
|
|
14072
14075
|
var nextNode = node.nextLeaf();
|
|
14073
14076
|
|
|
14074
|
-
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)) {
|
|
14077
|
+
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)) {
|
|
14075
14078
|
var path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
14076
14079
|
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);
|
|
14077
14080
|
hoEditorFactory.undoService.begin();
|
|
@@ -16781,11 +16784,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16781
16784
|
|
|
16782
16785
|
}, {
|
|
16783
16786
|
key: "insertEmptySignNode",
|
|
16784
|
-
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
|
|
16787
|
+
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
16785
16788
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16786
16789
|
var startPath = domRange.startPath;
|
|
16787
16790
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
16788
|
-
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); //插入该表达式节点
|
|
16791
|
+
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); //插入该表达式节点
|
|
16789
16792
|
|
|
16790
16793
|
hoEditorFactory.undoService.begin();
|
|
16791
16794
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -16806,7 +16809,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16806
16809
|
value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
|
|
16807
16810
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16808
16811
|
var startPath = domRange.startPath;
|
|
16809
|
-
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
16812
|
+
var parentNode = hoEditorFactory.docTree.getParentNode(startPath); // if (type == 1 && imgSrc != "" && imgWidth > 0 && parentNode instanceof CellNode) {
|
|
16813
|
+
// const cellWidth = parentNode.drawCell.dWidth;
|
|
16814
|
+
// const cellHeight = parentNode.getCellHeight();
|
|
16815
|
+
// if (cellWidth < imgWidth) {
|
|
16816
|
+
// imgHeight = ((cellWidth - 10) / imgWidth) * cellHeight;
|
|
16817
|
+
// imgWidth = (cellWidth - 10);
|
|
16818
|
+
// }
|
|
16819
|
+
// }
|
|
16820
|
+
|
|
16810
16821
|
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); //插入该表达式节点
|
|
16811
16822
|
|
|
16812
16823
|
hoEditorFactory.undoService.begin();
|
|
@@ -26344,7 +26355,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26344
26355
|
}
|
|
26345
26356
|
}], [{
|
|
26346
26357
|
key: "json2Node",
|
|
26347
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste) {
|
|
26358
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign) {
|
|
26348
26359
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
26349
26360
|
var rowNo = parseInt(json.rowNo);
|
|
26350
26361
|
var colNo = parseInt(json.colNo);
|
|
@@ -26415,7 +26426,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26415
26426
|
cellNode.childNodes[0].styleIndex = Number(item[0].textStyleNo ? item[0].textStyleNo : 0);
|
|
26416
26427
|
|
|
26417
26428
|
for (var j = 1; j < item.length; j++) {
|
|
26418
|
-
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste);
|
|
26429
|
+
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
|
|
26419
26430
|
|
|
26420
26431
|
if (convertNode) {
|
|
26421
26432
|
if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_36__/* .TextNode */ .R) {
|
|
@@ -26423,7 +26434,17 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
26423
26434
|
cellNode.addChild(convertNode);
|
|
26424
26435
|
}
|
|
26425
26436
|
} else {
|
|
26426
|
-
|
|
26437
|
+
if (isClearSign) {
|
|
26438
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_33__/* .SignNode */ .N) {
|
|
26439
|
+
if (convertNode.isTemplate) {
|
|
26440
|
+
cellNode.addChild(convertNode);
|
|
26441
|
+
}
|
|
26442
|
+
} else {
|
|
26443
|
+
cellNode.addChild(convertNode);
|
|
26444
|
+
}
|
|
26445
|
+
} else {
|
|
26446
|
+
cellNode.addChild(convertNode);
|
|
26447
|
+
}
|
|
26427
26448
|
}
|
|
26428
26449
|
}
|
|
26429
26450
|
|
|
@@ -33874,7 +33895,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33874
33895
|
|
|
33875
33896
|
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);
|
|
33876
33897
|
|
|
33877
|
-
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) {
|
|
33898
|
+
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) {
|
|
33878
33899
|
var _this;
|
|
33879
33900
|
|
|
33880
33901
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
|
|
@@ -33918,11 +33939,22 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33918
33939
|
|
|
33919
33940
|
_this._PNGToJPG = 0; // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
|
|
33920
33941
|
|
|
33942
|
+
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
33943
|
+
|
|
33921
33944
|
_this.number = number;
|
|
33922
33945
|
_this._type = type;
|
|
33923
33946
|
_this._signor = signor;
|
|
33924
33947
|
_this._signTime = signTime;
|
|
33925
33948
|
_this._imgSrc = imgSrc;
|
|
33949
|
+
_this._attribute = attribute === undefined ? 0 : attribute;
|
|
33950
|
+
|
|
33951
|
+
if (type == 3) {
|
|
33952
|
+
// 兼容旧的患者签名
|
|
33953
|
+
_this._attribute = 1;
|
|
33954
|
+
} // if(attribute == 1) { // 患者签名修改 type == 3
|
|
33955
|
+
// this._type = 3;
|
|
33956
|
+
// }
|
|
33957
|
+
|
|
33926
33958
|
|
|
33927
33959
|
if (fingerPrintSrc) {
|
|
33928
33960
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
@@ -33968,7 +34000,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
33968
34000
|
});
|
|
33969
34001
|
};
|
|
33970
34002
|
|
|
33971
|
-
|
|
34003
|
+
if (customProperty) {
|
|
34004
|
+
assignvalue(_this._customProperty, customProperty);
|
|
34005
|
+
}
|
|
33972
34006
|
|
|
33973
34007
|
_this.node2DrawNodeRange(0, 0);
|
|
33974
34008
|
|
|
@@ -34178,6 +34212,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34178
34212
|
this.node2DrawNodeRange(0, 0);
|
|
34179
34213
|
}
|
|
34180
34214
|
}
|
|
34215
|
+
}, {
|
|
34216
|
+
key: "attribute",
|
|
34217
|
+
get: function get() {
|
|
34218
|
+
return this._attribute;
|
|
34219
|
+
},
|
|
34220
|
+
set: function set(value) {
|
|
34221
|
+
if (this._attribute !== value) {
|
|
34222
|
+
this._attribute = value;
|
|
34223
|
+
}
|
|
34224
|
+
}
|
|
34181
34225
|
/**
|
|
34182
34226
|
*
|
|
34183
34227
|
* @param drawTree 绘制树
|
|
@@ -34199,7 +34243,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34199
34243
|
this.styleIndex = 0;
|
|
34200
34244
|
}
|
|
34201
34245
|
|
|
34202
|
-
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);
|
|
34246
|
+
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);
|
|
34203
34247
|
|
|
34204
34248
|
this._drawNodes.push(dNode);
|
|
34205
34249
|
}
|
|
@@ -34233,15 +34277,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34233
34277
|
if (isDisPlay) {
|
|
34234
34278
|
drawNode.alpha = 1;
|
|
34235
34279
|
|
|
34236
|
-
if (this.imgSrc === "") {
|
|
34237
|
-
var color = hoEditorFactory.option.getColorByLevel(
|
|
34280
|
+
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
34281
|
+
var color = hoEditorFactory.option.getColorByLevel(13);
|
|
34238
34282
|
var backColor = new createjs.Shape();
|
|
34239
34283
|
backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight + 2, drawNode.dWidth, drawNode.dHeight);
|
|
34240
34284
|
backColor.name = "backColor";
|
|
34241
34285
|
drawNode.addChildAt(backColor, 0);
|
|
34242
34286
|
}
|
|
34243
34287
|
} else {
|
|
34244
|
-
if (this.imgSrc === "") {
|
|
34288
|
+
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
34245
34289
|
drawNode.alpha = 0;
|
|
34246
34290
|
} else {
|
|
34247
34291
|
for (var i = drawNode.children.length - 1; i >= 0; i--) {
|
|
@@ -34282,7 +34326,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34282
34326
|
isFront: this.isFront,
|
|
34283
34327
|
allowEditSignTime: this.allowEditSignTime,
|
|
34284
34328
|
fingerPrintSrc: clearSign ? "" : this.fingerPrintSrc,
|
|
34285
|
-
fingerPosition: clearSign ? 0 : this.fingerPosition
|
|
34329
|
+
fingerPosition: clearSign ? 0 : this.fingerPosition,
|
|
34330
|
+
attribute: this.attribute
|
|
34286
34331
|
};
|
|
34287
34332
|
|
|
34288
34333
|
if (isCopy) {
|
|
@@ -34303,14 +34348,15 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
34303
34348
|
}
|
|
34304
34349
|
}], [{
|
|
34305
34350
|
key: "json2Node",
|
|
34306
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
34351
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign) {
|
|
34307
34352
|
//const width = Number(json.width);
|
|
34308
|
-
var number = Number(json.number);
|
|
34309
|
-
var type = Number(json.type);
|
|
34310
|
-
var imgWidth = Number(json.imgWidth);
|
|
34311
|
-
var imgHeight = Number(json.imgHeight);
|
|
34353
|
+
var number = isClearSign ? 0 : Number(json.number);
|
|
34354
|
+
var type = isClearSign ? 0 : Number(json.type);
|
|
34355
|
+
var imgWidth = isClearSign ? 0 : Number(json.imgWidth);
|
|
34356
|
+
var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
|
|
34312
34357
|
var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
|
|
34313
|
-
var
|
|
34358
|
+
var attribute = json.attribute ? Number(json.attribute) : 0;
|
|
34359
|
+
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);
|
|
34314
34360
|
signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0; //signNode.number = number;
|
|
34315
34361
|
//signNode.width = width;
|
|
34316
34362
|
|
|
@@ -38360,7 +38406,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38360
38406
|
}
|
|
38361
38407
|
}], [{
|
|
38362
38408
|
key: "json2Node",
|
|
38363
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
|
|
38409
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
38364
38410
|
json = this.transType(json);
|
|
38365
38411
|
var tableProperty = json.tableProperty;
|
|
38366
38412
|
tableProperty.customProperties = Array.isArray(tableProperty.customProperties.customProperty) ? tableProperty.customProperties.customProperty : Array(tableProperty.customProperties.customProperty);
|
|
@@ -38581,7 +38627,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38581
38627
|
|
|
38582
38628
|
var colNo = parseInt(_node.colNo);
|
|
38583
38629
|
existMap.set(_rowNo + "-" + colNo, 1);
|
|
38584
|
-
aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste);
|
|
38630
|
+
aRow = _CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode.json2Node */ .D.json2Node(hoEditorFactoryID, _node, rootNodes, tableNode, aRow, rowsMap, rows, defaultCellProperty, isPaste, isClearSign);
|
|
38585
38631
|
}
|
|
38586
38632
|
} // console.log("json2node", 8);
|
|
38587
38633
|
//console.log(existMap);
|
|
@@ -38774,7 +38820,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
38774
38820
|
/*
|
|
38775
38821
|
* @Author: your name
|
|
38776
38822
|
* @Date: 2020-11-03 15:17:54
|
|
38777
|
-
* @LastEditTime: 2022-
|
|
38823
|
+
* @LastEditTime: 2022-07-13 14:11:55
|
|
38778
38824
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
38779
38825
|
* @Description: In User Settings Edit
|
|
38780
38826
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -40600,7 +40646,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40600
40646
|
}
|
|
40601
40647
|
}], [{
|
|
40602
40648
|
key: "json2Node",
|
|
40603
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste) {
|
|
40649
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
40604
40650
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
40605
40651
|
delete json.nodeType;
|
|
40606
40652
|
this.transType(json);
|
|
@@ -40631,7 +40677,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40631
40677
|
if (Array.isArray(item)) {
|
|
40632
40678
|
//数组
|
|
40633
40679
|
for (var i = 0; i < item.length; i++) {
|
|
40634
|
-
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp);
|
|
40680
|
+
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
|
|
40635
40681
|
|
|
40636
40682
|
if (node) {
|
|
40637
40683
|
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
|
|
@@ -40639,7 +40685,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40639
40685
|
nodes.push(node);
|
|
40640
40686
|
}
|
|
40641
40687
|
} else {
|
|
40642
|
-
|
|
40688
|
+
if (isClearSign) {
|
|
40689
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
|
|
40690
|
+
if (node.isTemplate) {
|
|
40691
|
+
nodes.push(node);
|
|
40692
|
+
}
|
|
40693
|
+
} else {
|
|
40694
|
+
nodes.push(node);
|
|
40695
|
+
}
|
|
40696
|
+
} else {
|
|
40697
|
+
nodes.push(node);
|
|
40698
|
+
}
|
|
40643
40699
|
}
|
|
40644
40700
|
}
|
|
40645
40701
|
|
|
@@ -40653,7 +40709,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40653
40709
|
}
|
|
40654
40710
|
} else {
|
|
40655
40711
|
//单个对象
|
|
40656
|
-
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp);
|
|
40712
|
+
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
40657
40713
|
|
|
40658
40714
|
if (_node2) {
|
|
40659
40715
|
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_51__/* .TextNode */ .R) {
|
|
@@ -40661,7 +40717,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
40661
40717
|
nodes.push(_node2);
|
|
40662
40718
|
}
|
|
40663
40719
|
} else {
|
|
40664
|
-
nodes.push(
|
|
40720
|
+
//nodes.push(node);
|
|
40721
|
+
if (isClearSign) {
|
|
40722
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_48__/* .SignNode */ .N) {
|
|
40723
|
+
if (_node2.isTemplate) {
|
|
40724
|
+
nodes.push(_node2);
|
|
40725
|
+
}
|
|
40726
|
+
} else {
|
|
40727
|
+
nodes.push(_node2);
|
|
40728
|
+
}
|
|
40729
|
+
} else {
|
|
40730
|
+
nodes.push(_node2);
|
|
40731
|
+
}
|
|
40665
40732
|
}
|
|
40666
40733
|
}
|
|
40667
40734
|
|
|
@@ -46087,6 +46154,7 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
46087
46154
|
dParent.addChild(dPartCell);
|
|
46088
46155
|
this.drawPageCells.push(dPartCell);
|
|
46089
46156
|
dPartCell.paintArea(this._drawLines, startDline, valignTop);
|
|
46157
|
+
dPartCell.valignTop = valignTop;
|
|
46090
46158
|
ret = this._drawLines[this._drawLines.length - 1].dHeight + this._drawLines[this._drawLines.length - 1].dTop;
|
|
46091
46159
|
}
|
|
46092
46160
|
}, {
|
|
@@ -48279,7 +48347,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48279
48347
|
|
|
48280
48348
|
|
|
48281
48349
|
return _this;
|
|
48282
|
-
} // public
|
|
48350
|
+
} // public ge t pageIndex(): number {
|
|
48283
48351
|
// return this._pageIndex;
|
|
48284
48352
|
// }
|
|
48285
48353
|
// public set pageIndex(value: number) {
|
|
@@ -48330,6 +48398,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48330
48398
|
key: "valignTop",
|
|
48331
48399
|
get: function get() {
|
|
48332
48400
|
return this._valignTop;
|
|
48401
|
+
},
|
|
48402
|
+
set: function set(val) {
|
|
48403
|
+
this._valignTop = val;
|
|
48333
48404
|
} // public get dPage(): DrawPage {
|
|
48334
48405
|
// return this._dPage;
|
|
48335
48406
|
// }
|
|
@@ -48799,7 +48870,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48799
48870
|
var adjustValignTop = newValignTop - this._valignTop;
|
|
48800
48871
|
this._valignTop = newValignTop;
|
|
48801
48872
|
|
|
48802
|
-
for (var i = 0; i < this.numChildren
|
|
48873
|
+
for (var i = 0; i < this.numChildren; i++) {
|
|
48803
48874
|
if (this.children[i] instanceof DrawLine/* DrawLine */.a || this.children[i] instanceof DrawPageTable/* DrawPageTable */.ox) {
|
|
48804
48875
|
this.children[i].y += adjustValignTop;
|
|
48805
48876
|
}
|
|
@@ -48842,12 +48913,10 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
48842
48913
|
}, {
|
|
48843
48914
|
key: "update",
|
|
48844
48915
|
value: function update(prevDrawArea, dlines, startIndex, dTop, restHeight) {
|
|
48845
|
-
var valignTop = dTop;
|
|
48846
|
-
|
|
48847
|
-
|
|
48848
|
-
|
|
48849
|
-
this._valignTop = valignTop;
|
|
48850
|
-
}
|
|
48916
|
+
var valignTop = dTop; // if (startIndex === 0) {
|
|
48917
|
+
// valignTop=this.calcValignTop();
|
|
48918
|
+
// this._valignTop=valignTop;
|
|
48919
|
+
// }
|
|
48851
48920
|
|
|
48852
48921
|
this._startDline = startIndex;
|
|
48853
48922
|
|
|
@@ -49443,7 +49512,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49443
49512
|
|
|
49444
49513
|
partCell.dHeight = newHeight;
|
|
49445
49514
|
partCell.maxHeight = newHeight;
|
|
49446
|
-
partCell.update(dPrevPartCell, partCell.cell.drawCell.drawLines, startChildIndex,
|
|
49515
|
+
partCell.update(dPrevPartCell, partCell.cell.drawCell.drawLines, startChildIndex, partCell.valignTop, newHeight);
|
|
49447
49516
|
dPageTable.paintCellBorder(partCell, r, c, newHeight);
|
|
49448
49517
|
}
|
|
49449
49518
|
}, {
|
|
@@ -49934,7 +50003,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49934
50003
|
dPartCell.x = aleft; //this.drawItems.push(dPartCell);
|
|
49935
50004
|
|
|
49936
50005
|
this.addChild(dPartCell);
|
|
49937
|
-
var ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex,
|
|
50006
|
+
var ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
|
|
49938
50007
|
dPartCell.y = cellRowTop;
|
|
49939
50008
|
} else {
|
|
49940
50009
|
dPartCell = cell.drawCell.drawPageCells[partCellindex + 1];
|
|
@@ -49958,7 +50027,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49958
50027
|
dPartCell.maxHeight = tableRestHeight - cellRowTop;
|
|
49959
50028
|
}
|
|
49960
50029
|
|
|
49961
|
-
var _ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex,
|
|
50030
|
+
var _ret = dPartCell.update(dPrevPartCell, cell.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
|
|
49962
50031
|
}
|
|
49963
50032
|
|
|
49964
50033
|
dPartCell.y = cellRowTop;
|
|
@@ -50164,7 +50233,13 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
50164
50233
|
var partCell = mainCell.drawCell.getDrawPageCell(this);
|
|
50165
50234
|
|
|
50166
50235
|
if (partCell && aHeight) {
|
|
50167
|
-
|
|
50236
|
+
var cellHeight = aHeight;
|
|
50237
|
+
|
|
50238
|
+
if (mainCell.rowSpan > 1) {
|
|
50239
|
+
cellHeight = partCell.dHeight;
|
|
50240
|
+
}
|
|
50241
|
+
|
|
50242
|
+
rowHeight = Math.max(cellHeight, partCell.docHeight);
|
|
50168
50243
|
rowSpan = mainCell.rowSpan;
|
|
50169
50244
|
}
|
|
50170
50245
|
}
|
|
@@ -50487,7 +50562,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
50487
50562
|
dPartCell.x = aleft; //this.drawItems.push(dPartCell);
|
|
50488
50563
|
|
|
50489
50564
|
this.addChild(dPartCell);
|
|
50490
|
-
var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex,
|
|
50565
|
+
var ret = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
|
|
50491
50566
|
dPartCell.y = cellRowTop;
|
|
50492
50567
|
rowFinished = rowFinished && ret;
|
|
50493
50568
|
} else {
|
|
@@ -50517,7 +50592,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
50517
50592
|
|
|
50518
50593
|
bRowHeightChanged = true;
|
|
50519
50594
|
|
|
50520
|
-
var _ret2 = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex,
|
|
50595
|
+
var _ret2 = dPartCell.update(dPrevPartCell, _cell2.drawCell.drawLines, startChildIndex, dPartCell.valignTop, cellMaxHeight);
|
|
50521
50596
|
|
|
50522
50597
|
rowFinished = rowFinished && _ret2;
|
|
50523
50598
|
} else if (_cell2.drawCell.drawPageCells.length > 1 && partCellindex + 1 < _cell2.drawCell.drawPageCells.length - 1 && !this._table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop) {
|
|
@@ -51349,7 +51424,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
51349
51424
|
/*
|
|
51350
51425
|
* @Author: your name
|
|
51351
51426
|
* @Date: 2021-09-01 16:51:49
|
|
51352
|
-
* @LastEditTime: 2022-
|
|
51427
|
+
* @LastEditTime: 2022-07-18 16:38:54
|
|
51353
51428
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
51354
51429
|
* @Description: In User Settings Edit
|
|
51355
51430
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -51360,7 +51435,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51360
51435
|
|
|
51361
51436
|
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);
|
|
51362
51437
|
|
|
51363
|
-
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition) {
|
|
51438
|
+
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition, attribute, customProperty) {
|
|
51364
51439
|
var _this;
|
|
51365
51440
|
|
|
51366
51441
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawSignNode);
|
|
@@ -51372,12 +51447,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51372
51447
|
_this._imgSrc = '';
|
|
51373
51448
|
_this._fingerPrintSrc = '';
|
|
51374
51449
|
_this._fingerPosition = 0;
|
|
51450
|
+
_this._attribute = 0; //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
51451
|
+
|
|
51452
|
+
_this._abi02 = "";
|
|
51375
51453
|
_this._number = number;
|
|
51376
51454
|
_this._imgSrc = imgSrc;
|
|
51377
51455
|
_this._type = type;
|
|
51378
51456
|
_this._signName = name;
|
|
51379
51457
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
51380
|
-
_this._fingerPosition = fingerPosition;
|
|
51458
|
+
_this._fingerPosition = fingerPosition;
|
|
51459
|
+
_this._attribute = attribute;
|
|
51460
|
+
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : ""; //this._textStyle = cbStyle.;
|
|
51381
51461
|
|
|
51382
51462
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
|
|
51383
51463
|
|
|
@@ -51417,6 +51497,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51417
51497
|
} else {
|
|
51418
51498
|
_this.dWidth = imgWidth * scale + _this._drawText.getMeasuredWidth();
|
|
51419
51499
|
}
|
|
51500
|
+
|
|
51501
|
+
if (_this.attribute === 2 && _this._abi02 !== "") {
|
|
51502
|
+
_this._drawAbi02 = new createjs.Text(customProperty.abi02 + ":", _this._textStyle, '#000000');
|
|
51503
|
+
_this.dWidth += _this._drawAbi02.getMeasuredWidth();
|
|
51504
|
+
}
|
|
51420
51505
|
}
|
|
51421
51506
|
|
|
51422
51507
|
if (type === 2) {
|
|
@@ -51530,6 +51615,26 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51530
51615
|
this._textStyle = value;
|
|
51531
51616
|
}
|
|
51532
51617
|
}
|
|
51618
|
+
}, {
|
|
51619
|
+
key: "attribute",
|
|
51620
|
+
get: function get() {
|
|
51621
|
+
return this._attribute;
|
|
51622
|
+
},
|
|
51623
|
+
set: function set(value) {
|
|
51624
|
+
if (this._attribute !== value) {
|
|
51625
|
+
this._attribute = value;
|
|
51626
|
+
}
|
|
51627
|
+
}
|
|
51628
|
+
}, {
|
|
51629
|
+
key: "abi02",
|
|
51630
|
+
get: function get() {
|
|
51631
|
+
return this._abi02;
|
|
51632
|
+
},
|
|
51633
|
+
set: function set(value) {
|
|
51634
|
+
if (this._abi02 !== value) {
|
|
51635
|
+
this._abi02 = value;
|
|
51636
|
+
}
|
|
51637
|
+
}
|
|
51533
51638
|
}, {
|
|
51534
51639
|
key: "drawWriteSignNode",
|
|
51535
51640
|
value: function drawWriteSignNode(node) {
|
|
@@ -51727,22 +51832,54 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51727
51832
|
}
|
|
51728
51833
|
}
|
|
51729
51834
|
|
|
51730
|
-
_this3.
|
|
51835
|
+
if (_this3.attribute === 2 && _this3.abi02 !== "") {
|
|
51836
|
+
var abi02Text = new createjs.Text(_this3.abi02 + ":", _this3.textStyle, '#000000');
|
|
51837
|
+
abi02Text.textBaseline = 'alphabetic';
|
|
51838
|
+
abi02Text.textAlign = 'left';
|
|
51839
|
+
|
|
51840
|
+
_this3.addChildAt(abi02Text, 0);
|
|
51841
|
+
|
|
51842
|
+
bitmap.x = abi02Text.getMeasuredWidth();
|
|
51843
|
+
|
|
51844
|
+
_this3.addChildAt(bitmap);
|
|
51845
|
+
} else {
|
|
51846
|
+
_this3.addChildAt(bitmap, 0);
|
|
51847
|
+
}
|
|
51731
51848
|
|
|
51732
51849
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51733
51850
|
hoEditorFactory.loadImageCount++;
|
|
51734
51851
|
|
|
51735
51852
|
image.onload = function () {
|
|
51736
51853
|
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51737
|
-
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51738
|
-
|
|
51739
|
-
var
|
|
51854
|
+
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height; // 处理宽高和实际宽高相反的问题 --- 2.0.66版本问题 --2.0.68后版本临时处理 再过几个版本后可以删掉
|
|
51855
|
+
|
|
51856
|
+
var node = _this3.node;
|
|
51857
|
+
var nodeImageWidth = node.imgWidth;
|
|
51858
|
+
var nodeImageHeight = node.imgHeight;
|
|
51859
|
+
|
|
51860
|
+
if (image.naturalWidth > image.naturalHeight && nodeImageWidth < nodeImageHeight || image.naturalWidth < image.naturalHeight && node.imgWidth > node.imgHeight) {
|
|
51861
|
+
node.imgWidth = nodeImageHeight;
|
|
51862
|
+
node.imgHeight = nodeImageWidth;
|
|
51863
|
+
}
|
|
51864
|
+
|
|
51865
|
+
var width = hitWidth * hoEditorFactory.signHeight / image.naturalHeight; //+ this._drawText.getMeasuredWidth();
|
|
51866
|
+
|
|
51867
|
+
drawNode.dWidth = width;
|
|
51868
|
+
|
|
51869
|
+
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
51870
|
+
drawNode.dWidth += drawNode._drawAbi02.getMeasuredWidth();
|
|
51871
|
+
}
|
|
51740
51872
|
|
|
51741
51873
|
if (_this3.number === 2) {
|
|
51742
|
-
|
|
51874
|
+
drawNode.dWidth += _this3._drawText.getMeasuredWidth();
|
|
51875
|
+
}
|
|
51876
|
+
|
|
51877
|
+
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
51878
|
+
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -hoEditorFactory.signHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51879
|
+
} else {
|
|
51880
|
+
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51743
51881
|
}
|
|
51744
51882
|
|
|
51745
|
-
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51746
51883
|
var hitArea = new createjs.Shape();
|
|
51747
51884
|
hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
|
|
51748
51885
|
|
|
@@ -57558,7 +57695,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
57558
57695
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
57559
57696
|
|
|
57560
57697
|
try {
|
|
57561
|
-
//
|
|
57698
|
+
//console.time("文档change事件");
|
|
57562
57699
|
this._inChanging = true;
|
|
57563
57700
|
var startUpdateLine;
|
|
57564
57701
|
this.adjustEventPath(e);
|
|
@@ -57953,7 +58090,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
57953
58090
|
|
|
57954
58091
|
if (hoEditorFactory.docTree.curOnDragNode) {
|
|
57955
58092
|
this._caret.visible = false;
|
|
57956
|
-
} //
|
|
58093
|
+
} //console.timeEnd("文档change事件");
|
|
57957
58094
|
|
|
57958
58095
|
|
|
57959
58096
|
return true;
|
|
@@ -59636,8 +59773,8 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
59636
59773
|
}
|
|
59637
59774
|
|
|
59638
59775
|
if (dPage && dPage.selectContainer) {
|
|
59639
|
-
var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#
|
|
59640
|
-
shape.alpha = 0.
|
|
59776
|
+
var shape = new DrawSelect(this._hoEditorFactoryID, dPage.pageIndex, dnextDline, left, right, bInSameRect, aRange.spStart.dline.paragraphNode.parentNode, aRange.spEnd.dline.paragraphNode.parentNode, "#FB0451");
|
|
59777
|
+
shape.alpha = 0.3;
|
|
59641
59778
|
dPage.selectContainer.addChild(shape);
|
|
59642
59779
|
|
|
59643
59780
|
if (dPages.indexOf(dPage) < 0) {
|
|
@@ -62665,7 +62802,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62665
62802
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60199);
|
|
62666
62803
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91347);
|
|
62667
62804
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42015);
|
|
62668
|
-
/* harmony import */ var
|
|
62805
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(16296);
|
|
62669
62806
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
|
|
62670
62807
|
/* 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__);
|
|
62671
62808
|
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
|
|
@@ -62706,6 +62843,8 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62706
62843
|
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(76771);
|
|
62707
62844
|
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(11438);
|
|
62708
62845
|
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(78975);
|
|
62846
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(14245);
|
|
62847
|
+
|
|
62709
62848
|
|
|
62710
62849
|
|
|
62711
62850
|
|
|
@@ -62781,7 +62920,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62781
62920
|
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
62782
62921
|
}
|
|
62783
62922
|
|
|
62784
|
-
(0,
|
|
62923
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_37__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
62785
62924
|
key: "undo",
|
|
62786
62925
|
value: function undo() {
|
|
62787
62926
|
//2.插入删除的节点
|
|
@@ -63060,7 +63199,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63060
63199
|
key: "spliteNode",
|
|
63061
63200
|
value: function spliteNode(Arange) {
|
|
63062
63201
|
var _this = this,
|
|
63063
|
-
|
|
63202
|
+
_pnode$downListProper;
|
|
63064
63203
|
|
|
63065
63204
|
var s = Arange.npStart.node;
|
|
63066
63205
|
var e = Arange.npEnd.node;
|
|
@@ -63116,8 +63255,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63116
63255
|
|
|
63117
63256
|
this._tmp.start = Arange.startPath;
|
|
63118
63257
|
this._tmp.end = Arange.endPath;
|
|
63258
|
+
var spnode = s.parentNode;
|
|
63259
|
+
var epnode = e.parentNode;
|
|
63260
|
+
var pnode = epnode;
|
|
63261
|
+
|
|
63262
|
+
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) {
|
|
63263
|
+
var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_36__/* .NodePosition.nodePositionCompare */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
|
|
63119
63264
|
|
|
63120
|
-
|
|
63265
|
+
if (result < 0) {
|
|
63266
|
+
pnode = spnode;
|
|
63267
|
+
}
|
|
63268
|
+
}
|
|
63269
|
+
|
|
63270
|
+
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("<元素>")) {
|
|
63271
|
+
this._tmp.start = pnode.StartMarkNode.getNodePath();
|
|
63272
|
+
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
|
|
63121
63273
|
return true;
|
|
63122
63274
|
}
|
|
63123
63275
|
|
|
@@ -207287,7 +207439,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
207287
207439
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207288
207440
|
var ParagraphNode = __webpack_require__(13880);
|
|
207289
207441
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207290
|
-
/* harmony default export */ var version = ('2.0.
|
|
207442
|
+
/* harmony default export */ var version = ('2.0.71');
|
|
207291
207443
|
;// 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&
|
|
207292
207444
|
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)}
|
|
207293
207445
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -209798,7 +209950,7 @@ var UserInfo = __webpack_require__(82084);
|
|
|
209798
209950
|
/*
|
|
209799
209951
|
* @Author: your name
|
|
209800
209952
|
* @Date: 2021-06-21 17:47:51
|
|
209801
|
-
* @LastEditTime: 2022-07-
|
|
209953
|
+
* @LastEditTime: 2022-07-18 14:39:07
|
|
209802
209954
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
209803
209955
|
* @Description: In User Settings Edit
|
|
209804
209956
|
* @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
|
|
@@ -209821,6 +209973,8 @@ var Option = /*#__PURE__*/function () {
|
|
|
209821
209973
|
|
|
209822
209974
|
this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
|
|
209823
209975
|
|
|
209976
|
+
this._signColor = "transparent"; //签名元素颜色
|
|
209977
|
+
|
|
209824
209978
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
209825
209979
|
}
|
|
209826
209980
|
|
|
@@ -209888,9 +210042,17 @@ var Option = /*#__PURE__*/function () {
|
|
|
209888
210042
|
set: function set(value) {
|
|
209889
210043
|
this._downListColor2 = value;
|
|
209890
210044
|
}
|
|
210045
|
+
}, {
|
|
210046
|
+
key: "signColor",
|
|
210047
|
+
get: function get() {
|
|
210048
|
+
return this._signColor;
|
|
210049
|
+
},
|
|
210050
|
+
set: function set(value) {
|
|
210051
|
+
this._signColor = value;
|
|
210052
|
+
}
|
|
209891
210053
|
}, {
|
|
209892
210054
|
key: "setReviewLevelColor",
|
|
209893
|
-
value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2) {
|
|
210055
|
+
value: function setReviewLevelColor(Lev1Color, Lev2Color, Lev3Color, fieldColor, dateTimeColor, downListColor, downListColor2, signColor) {
|
|
209894
210056
|
Lev1Color && (this._reviewLev1Color = Lev1Color);
|
|
209895
210057
|
Lev2Color && (this._reviewLev2Color = Lev2Color);
|
|
209896
210058
|
Lev3Color && (this._reviewLev3Color = Lev3Color);
|
|
@@ -209898,6 +210060,7 @@ var Option = /*#__PURE__*/function () {
|
|
|
209898
210060
|
dateTimeColor && (this._dateTimeColor = dateTimeColor);
|
|
209899
210061
|
downListColor && (this._downListColor = downListColor);
|
|
209900
210062
|
downListColor2 && (this._downListColor2 = downListColor2);
|
|
210063
|
+
signColor && (this._signColor = signColor);
|
|
209901
210064
|
}
|
|
209902
210065
|
}, {
|
|
209903
210066
|
key: "getColorByLevel",
|
|
@@ -209916,6 +210079,8 @@ var Option = /*#__PURE__*/function () {
|
|
|
209916
210079
|
return this._reviewLev2Color;
|
|
209917
210080
|
} else if (level === 3) {
|
|
209918
210081
|
return this._reviewLev3Color;
|
|
210082
|
+
} else if (level === 13) {
|
|
210083
|
+
return this._signColor;
|
|
209919
210084
|
} else {
|
|
209920
210085
|
return "transparent";
|
|
209921
210086
|
}
|
|
@@ -211936,7 +212101,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211936
212101
|
}
|
|
211937
212102
|
}, {
|
|
211938
212103
|
key: "xml2Doc",
|
|
211939
|
-
value: function xml2Doc(xml) {
|
|
212104
|
+
value: function xml2Doc(xml, isClearSign) {
|
|
211940
212105
|
// xml = this.replaceNodesName(xml);
|
|
211941
212106
|
// const x2js = new X2JS({ stripWhitespaces: false });
|
|
211942
212107
|
// const object = x2js.xml2js(xml);
|
|
@@ -211988,7 +212153,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211988
212153
|
var aobject = this.xml2Object(xml);
|
|
211989
212154
|
|
|
211990
212155
|
if (aobject) {
|
|
211991
|
-
return this.json2Doc(aobject);
|
|
212156
|
+
return this.json2Doc(aobject, isClearSign);
|
|
211992
212157
|
} // if (json.rvxml) {
|
|
211993
212158
|
// const rvxml = json.rvxml;
|
|
211994
212159
|
// return;
|
|
@@ -212580,7 +212745,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212580
212745
|
}
|
|
212581
212746
|
}, {
|
|
212582
212747
|
key: "json2Doc",
|
|
212583
|
-
value: function json2Doc(xx) {
|
|
212748
|
+
value: function json2Doc(xx, isClearSign) {
|
|
212584
212749
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
212585
212750
|
/*
|
|
212586
212751
|
const pushChildNodes = (
|
|
@@ -212707,11 +212872,15 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212707
212872
|
var histories = xx.userHistories;
|
|
212708
212873
|
var historiesArr = histories.userHistory;
|
|
212709
212874
|
|
|
212875
|
+
if (historiesArr.length == undefined) {
|
|
212876
|
+
historiesArr = Array(historiesArr);
|
|
212877
|
+
}
|
|
212878
|
+
|
|
212710
212879
|
for (var _i10 = 0; _i10 < historiesArr.length; _i10++) {
|
|
212711
212880
|
var historyObj = historiesArr[_i10];
|
|
212712
212881
|
var history = new UserHistory/* UserHistory */.R(this._hoEditorFactoryID, UserHistory/* HistoryEditType.hetCreate */.N.hetCreate);
|
|
212713
212882
|
Object.assign(history, historyObj);
|
|
212714
|
-
history.permissionLevel = Number(historyObj.
|
|
212883
|
+
history.permissionLevel = Number(historyObj.permissionLevel);
|
|
212715
212884
|
hoEditorFactory.docTree.userHistories.push(history);
|
|
212716
212885
|
}
|
|
212717
212886
|
|
|
@@ -212853,7 +213022,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212853
213022
|
}
|
|
212854
213023
|
|
|
212855
213024
|
var node = hoEditorFactory.structureConvert.convertNode(header, //headerNodes[hi],
|
|
212856
|
-
headerDocTree.subDocNodes, null, headerNode.subDocNodes);
|
|
213025
|
+
headerDocTree.subDocNodes, null, headerNode.subDocNodes, undefined, isClearSign);
|
|
212857
213026
|
|
|
212858
213027
|
if (node) {
|
|
212859
213028
|
node.rootPath = "header/" + hi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212913,7 +213082,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212913
213082
|
}
|
|
212914
213083
|
|
|
212915
213084
|
var _node2 = hoEditorFactory.structureConvert.convertNode(footer, //footerNodes[fi],
|
|
212916
|
-
footSubDocTree.subDocNodes, null, footerNode.subDocNodes);
|
|
213085
|
+
footSubDocTree.subDocNodes, null, footerNode.subDocNodes, undefined, isClearSign);
|
|
212917
213086
|
|
|
212918
213087
|
if (_node2) {
|
|
212919
213088
|
_node2.rootPath = "footer/" + fi.toString(); // if (node instanceof BaseCombineNode) {
|
|
@@ -212958,7 +213127,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212958
213127
|
continue;
|
|
212959
213128
|
}
|
|
212960
213129
|
|
|
212961
|
-
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes);
|
|
213130
|
+
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
|
|
212962
213131
|
|
|
212963
213132
|
if (_node3) {
|
|
212964
213133
|
// if (node instanceof BaseCombineNode && temp.childNode) {
|
|
@@ -213102,7 +213271,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213102
213271
|
}
|
|
213103
213272
|
}, {
|
|
213104
213273
|
key: "convertNode",
|
|
213105
|
-
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste) {
|
|
213274
|
+
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign) {
|
|
213106
213275
|
if (temp === "") {
|
|
213107
213276
|
return undefined;
|
|
213108
213277
|
}
|
|
@@ -213138,7 +213307,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213138
213307
|
return undefined;
|
|
213139
213308
|
}
|
|
213140
213309
|
|
|
213141
|
-
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213310
|
+
var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213142
213311
|
return node;
|
|
213143
213312
|
} else if (temp.nodeType == BaseNode/* NodeType.ntParagraph */.Jq.ntParagraph) {
|
|
213144
213313
|
return ParagraphNode/* ParagraphNode.json2Node */.C.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
@@ -213175,7 +213344,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213175
213344
|
return RadioAndCheckBoxNode/* RadioAndCheckBoxNode.json2Node */.Yh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213176
213345
|
}
|
|
213177
213346
|
} else if (temp.nodeType == BaseNode/* NodeType.ntField */.Jq.ntField) {
|
|
213178
|
-
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste);
|
|
213347
|
+
return TextInputFieldNode/* TextInputFieldNode.json2Node */.re.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
213179
213348
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar) {
|
|
213180
213349
|
return SpecialCharsNode/* SpecialCharsNode.json2Node */.y.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213181
213350
|
} else if (temp.nodeType == BaseNode/* NodeType.ntMark */.Jq.ntMark) {
|
|
@@ -213191,7 +213360,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213191
213360
|
} else if (temp.nodeType == BaseNode/* NodeType.ntLabel */.Jq.ntLabel) {
|
|
213192
213361
|
return LabelNode/* LabelNode.json2Node */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213193
213362
|
} else if (temp.nodeType == BaseNode/* NodeType.ntSign */.Jq.ntSign) {
|
|
213194
|
-
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213363
|
+
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
|
|
213195
213364
|
} else if (temp.nodeType == BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
|
|
213196
213365
|
return GestationNode/* GestationNode.json2Node */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
213197
213366
|
}
|
|
@@ -213285,13 +213454,13 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213285
213454
|
}
|
|
213286
213455
|
}, {
|
|
213287
213456
|
key: "openXml",
|
|
213288
|
-
value: function openXml(xml, callback, isDelBlockLine) {
|
|
213457
|
+
value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
|
|
213289
213458
|
var _this4 = this;
|
|
213290
213459
|
|
|
213291
213460
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
213292
213461
|
this._superiorSign = [];
|
|
213293
213462
|
hoEditorFactory.isThrowError = false;
|
|
213294
|
-
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml);
|
|
213463
|
+
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
|
|
213295
213464
|
Promise.resolve().then(function () {
|
|
213296
213465
|
hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
213297
213466
|
|
|
@@ -217140,7 +217309,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217140
217309
|
value: function setReviewLevelColor(option) {
|
|
217141
217310
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217142
217311
|
var opt = new Option(this.hoEditorFactoryID);
|
|
217143
|
-
opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2);
|
|
217312
|
+
opt.setReviewLevelColor(option.reviewLev1Color, option.reviewLev2Color, option.reviewLev3Color, option.fieldColor, option.dateTimeColor, option.downListColor, option.downListColor2, option.signColor);
|
|
217144
217313
|
hoEditorFactory.option = opt;
|
|
217145
217314
|
}
|
|
217146
217315
|
/**
|
|
@@ -218991,12 +219160,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218991
219160
|
/**
|
|
218992
219161
|
* 读取 xml
|
|
218993
219162
|
* @param xml
|
|
219163
|
+
* @param callback 是否回调
|
|
219164
|
+
* @param isDelBlockLine 是否删掉正文末尾的空行
|
|
219165
|
+
* @param isRender
|
|
219166
|
+
* @param isClearSign 加载时是否清空签名元素内容
|
|
218994
219167
|
*/
|
|
218995
219168
|
|
|
218996
219169
|
}, {
|
|
218997
219170
|
key: "openXml",
|
|
218998
219171
|
value: function () {
|
|
218999
|
-
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender) {
|
|
219172
|
+
var _openXml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(xml, callback, isDelBlockLine, isRender, isClearSign) {
|
|
219000
219173
|
var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent;
|
|
219001
219174
|
|
|
219002
219175
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5) {
|
|
@@ -219041,7 +219214,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219041
219214
|
}
|
|
219042
219215
|
|
|
219043
219216
|
_context5.next = 15;
|
|
219044
|
-
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine);
|
|
219217
|
+
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
|
|
219045
219218
|
|
|
219046
219219
|
case 15:
|
|
219047
219220
|
case "end":
|
|
@@ -219051,7 +219224,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219051
219224
|
}, _callee5, this);
|
|
219052
219225
|
}));
|
|
219053
219226
|
|
|
219054
|
-
function openXml(_x8, _x9, _x10, _x11) {
|
|
219227
|
+
function openXml(_x8, _x9, _x10, _x11, _x12) {
|
|
219055
219228
|
return _openXml.apply(this, arguments);
|
|
219056
219229
|
}
|
|
219057
219230
|
|
|
@@ -219196,8 +219369,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219196
219369
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
219197
219370
|
var nextNode = node.nextLeaf();
|
|
219198
219371
|
|
|
219199
|
-
if (node.imgSrc !== "" && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219200
|
-
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);
|
|
219372
|
+
if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219373
|
+
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);
|
|
219201
219374
|
hoEditorFactory.undoService.begin();
|
|
219202
219375
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
|
|
219203
219376
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
|
|
@@ -219432,7 +219605,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219432
219605
|
|
|
219433
219606
|
}, {
|
|
219434
219607
|
key: "insertEmptySignNode",
|
|
219435
|
-
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime) {
|
|
219608
|
+
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute) {
|
|
219436
219609
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219437
219610
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
219438
219611
|
var startPath = curDomRange.normalize().startPath;
|
|
@@ -219440,7 +219613,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219440
219613
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219441
219614
|
|
|
219442
219615
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219443
|
-
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime);
|
|
219616
|
+
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, connectMode, isFront, allowEditSignTime, attribute);
|
|
219444
219617
|
}
|
|
219445
219618
|
}
|
|
219446
219619
|
/**
|
|
@@ -220038,7 +220211,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220038
220211
|
}, _callee6, this);
|
|
220039
220212
|
}));
|
|
220040
220213
|
|
|
220041
|
-
function updateElementText(
|
|
220214
|
+
function updateElementText(_x13, _x14, _x15) {
|
|
220042
220215
|
return _updateElementText.apply(this, arguments);
|
|
220043
220216
|
}
|
|
220044
220217
|
|
|
@@ -220302,7 +220475,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220302
220475
|
endPath = curDomRange.normalize().endPath;
|
|
220303
220476
|
node = (_hoEditorFactory2$vue = _hoEditorFactory2.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory2$vue === void 0 ? void 0 : _hoEditorFactory2$vue.node;
|
|
220304
220477
|
|
|
220305
|
-
if (!(node instanceof SignNode/* SignNode */.N && node.
|
|
220478
|
+
if (!(node instanceof SignNode/* SignNode */.N && !node.isTemplate && node.attribute == 1)) {
|
|
220306
220479
|
_context7.next = 8;
|
|
220307
220480
|
break;
|
|
220308
220481
|
}
|
|
@@ -220324,7 +220497,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220324
220497
|
_endPath = _curDomRange2.normalize().endPath;
|
|
220325
220498
|
_node = (_hoEditorFactory3$vue = _hoEditorFactory3.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory3$vue === void 0 ? void 0 : _hoEditorFactory3$vue.node;
|
|
220326
220499
|
|
|
220327
|
-
if (!(_node instanceof SignNode/* SignNode */.N && _node.
|
|
220500
|
+
if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
|
|
220328
220501
|
_context7.next = 21;
|
|
220329
220502
|
break;
|
|
220330
220503
|
}
|
|
@@ -220348,7 +220521,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220348
220521
|
}, _callee7, this);
|
|
220349
220522
|
}));
|
|
220350
220523
|
|
|
220351
|
-
function getBase64(
|
|
220524
|
+
function getBase64(_x16) {
|
|
220352
220525
|
return _getBase.apply(this, arguments);
|
|
220353
220526
|
}
|
|
220354
220527
|
|
|
@@ -220369,18 +220542,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220369
220542
|
|
|
220370
220543
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
220371
220544
|
if (node.isTemplate) {
|
|
220372
|
-
if (node.imgSrc || node.fingerPrintSrc) {
|
|
220545
|
+
if (node.imgSrc !== '' || node.fingerPrintSrc !== '') {
|
|
220373
220546
|
this.deleteNode(node);
|
|
220374
220547
|
setTimeout(function () {
|
|
220375
220548
|
var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
220376
220549
|
var newNode = newcurDomRange.npEnd.node;
|
|
220377
220550
|
|
|
220378
220551
|
if (newNode instanceof SignNode/* SignNode */.N) {
|
|
220379
|
-
hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220552
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220553
|
+
setTimeout(function () {
|
|
220554
|
+
callback && callback();
|
|
220555
|
+
}, 0);
|
|
220556
|
+
});
|
|
220380
220557
|
}
|
|
220381
220558
|
}, 0);
|
|
220382
220559
|
} else {
|
|
220383
|
-
hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220560
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, "患者签名", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220561
|
+
setTimeout(function () {
|
|
220562
|
+
callback && callback();
|
|
220563
|
+
}, 0);
|
|
220564
|
+
});
|
|
220384
220565
|
}
|
|
220385
220566
|
} else {
|
|
220386
220567
|
this.deleteNode(node);
|
|
@@ -220804,6 +220985,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220804
220985
|
if (curDomRange.isEmpty) return;
|
|
220805
220986
|
var result = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath, true);
|
|
220806
220987
|
var nodes = result[0];
|
|
220988
|
+
var isHaveParaNodes = false;
|
|
220989
|
+
|
|
220990
|
+
for (var m = 0; m < nodes.length; m++) {
|
|
220991
|
+
if (nodes[m] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
220992
|
+
isHaveParaNodes = true;
|
|
220993
|
+
break;
|
|
220994
|
+
}
|
|
220995
|
+
}
|
|
220996
|
+
|
|
220997
|
+
if (!isHaveParaNodes) {
|
|
220998
|
+
message_box_default().alert("选区内没有换行符,无需清除.");
|
|
220999
|
+
|
|
221000
|
+
return;
|
|
221001
|
+
}
|
|
220807
221002
|
|
|
220808
221003
|
for (var i = 0; i < nodes.length; i++) {
|
|
220809
221004
|
var node = nodes[i];
|
|
@@ -220953,37 +221148,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220953
221148
|
});
|
|
220954
221149
|
drawTree.commentsMap = commentsMap;
|
|
220955
221150
|
}
|
|
220956
|
-
/**
|
|
220957
|
-
* 查询是否存在医生签名
|
|
220958
|
-
* @returns boolean
|
|
220959
|
-
*/
|
|
220960
|
-
|
|
220961
|
-
}, {
|
|
220962
|
-
key: "getAllSignNode",
|
|
220963
|
-
value: function getAllSignNode() {
|
|
220964
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220965
|
-
var isHasDoctorSign = false;
|
|
220966
|
-
|
|
220967
|
-
var getAllNodes = function getAllNodes(nodes) {
|
|
220968
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
220969
|
-
var node = nodes[i];
|
|
220970
|
-
|
|
220971
|
-
if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
|
|
220972
|
-
isHasDoctorSign = true;
|
|
220973
|
-
break; // 医生签名已存在的情况中断当前层的遍历
|
|
220974
|
-
}
|
|
220975
|
-
|
|
220976
|
-
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
|
|
220977
|
-
// 医生签名已存在的情况不在深层调用深层遍历
|
|
220978
|
-
getAllNodes(node.childNodes);
|
|
220979
|
-
}
|
|
220980
|
-
}
|
|
220981
|
-
};
|
|
220982
|
-
|
|
220983
|
-
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
220984
|
-
getAllNodes(mainNodes);
|
|
220985
|
-
return isHasDoctorSign;
|
|
220986
|
-
}
|
|
220987
221151
|
}, {
|
|
220988
221152
|
key: "SyncElements",
|
|
220989
221153
|
value: function SyncElements() {
|
|
@@ -221152,6 +221316,97 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221152
221316
|
value: function setParaCustomProperty(paragraphNode, customProperty) {
|
|
221153
221317
|
paragraphNode.setCustomProperty(customProperty);
|
|
221154
221318
|
}
|
|
221319
|
+
/**
|
|
221320
|
+
* 查询是否有空签名元素
|
|
221321
|
+
* @returns boolean
|
|
221322
|
+
*/
|
|
221323
|
+
|
|
221324
|
+
}, {
|
|
221325
|
+
key: "getAllEmptySignNode",
|
|
221326
|
+
value: function getAllEmptySignNode(attribute) {
|
|
221327
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221328
|
+
var hasEmptyPatientSign = false;
|
|
221329
|
+
var patientSignCount = 0;
|
|
221330
|
+
var hasEmptyDoctorSign = false;
|
|
221331
|
+
|
|
221332
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
221333
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221334
|
+
var node = nodes[i];
|
|
221335
|
+
|
|
221336
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
221337
|
+
// 有值的患者签名
|
|
221338
|
+
if (attribute == 1 && node.attribute === 1) {
|
|
221339
|
+
patientSignCount++;
|
|
221340
|
+
}
|
|
221341
|
+
|
|
221342
|
+
if (attribute == 1 && node.attribute === 1 && (node.imgSrc !== '' || node.fingerPrintSrc !== '')) {
|
|
221343
|
+
hasEmptyPatientSign = true;
|
|
221344
|
+
break;
|
|
221345
|
+
} // 空的医生签名
|
|
221346
|
+
|
|
221347
|
+
|
|
221348
|
+
if (attribute == 0 && node.attribute === 0 && node.imgSrc === '') {
|
|
221349
|
+
hasEmptyDoctorSign = true;
|
|
221350
|
+
break;
|
|
221351
|
+
}
|
|
221352
|
+
}
|
|
221353
|
+
|
|
221354
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 1 && hasEmptyPatientSign) {
|
|
221355
|
+
// 患者签名已存在的情况不在深层调用深层遍历
|
|
221356
|
+
getAllNodes(node.childNodes);
|
|
221357
|
+
}
|
|
221358
|
+
|
|
221359
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute === 0 && !hasEmptyDoctorSign) {
|
|
221360
|
+
// 医生签名不存在的情况不在深层调用深层遍历
|
|
221361
|
+
getAllNodes(node.childNodes);
|
|
221362
|
+
}
|
|
221363
|
+
}
|
|
221364
|
+
};
|
|
221365
|
+
|
|
221366
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
221367
|
+
getAllNodes(mainNodes);
|
|
221368
|
+
|
|
221369
|
+
if (attribute == 1) {
|
|
221370
|
+
if (patientSignCount == 0) {
|
|
221371
|
+
return true;
|
|
221372
|
+
}
|
|
221373
|
+
|
|
221374
|
+
return hasEmptyPatientSign;
|
|
221375
|
+
} else {
|
|
221376
|
+
return hasEmptyDoctorSign;
|
|
221377
|
+
}
|
|
221378
|
+
}
|
|
221379
|
+
/**
|
|
221380
|
+
* 查询是否存在医生签名
|
|
221381
|
+
* @returns boolean
|
|
221382
|
+
*/
|
|
221383
|
+
|
|
221384
|
+
}, {
|
|
221385
|
+
key: "getAllSignNode",
|
|
221386
|
+
value: function getAllSignNode() {
|
|
221387
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221388
|
+
var isHasDoctorSign = false;
|
|
221389
|
+
|
|
221390
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
221391
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
221392
|
+
var node = nodes[i];
|
|
221393
|
+
|
|
221394
|
+
if (node instanceof SignNode/* SignNode */.N && node.type !== 3 && node.imgSrc) {
|
|
221395
|
+
isHasDoctorSign = true;
|
|
221396
|
+
break; // 医生签名已存在的情况中断当前层的遍历
|
|
221397
|
+
}
|
|
221398
|
+
|
|
221399
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && !isHasDoctorSign) {
|
|
221400
|
+
// 医生签名已存在的情况不在深层调用深层遍历
|
|
221401
|
+
getAllNodes(node.childNodes);
|
|
221402
|
+
}
|
|
221403
|
+
}
|
|
221404
|
+
};
|
|
221405
|
+
|
|
221406
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
221407
|
+
getAllNodes(mainNodes);
|
|
221408
|
+
return isHasDoctorSign;
|
|
221409
|
+
}
|
|
221155
221410
|
}]);
|
|
221156
221411
|
|
|
221157
221412
|
return VueController;
|
|
@@ -223837,6 +224092,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223837
224092
|
hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState.psPreview */.Dh.psPreview;
|
|
223838
224093
|
xmlIndex = -1;
|
|
223839
224094
|
mergeList = [];
|
|
224095
|
+
continuousid = '';
|
|
223840
224096
|
options = {
|
|
223841
224097
|
unit: 'px',
|
|
223842
224098
|
hotfixes: ['px_scaling'],
|
|
@@ -223888,6 +224144,10 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223888
224144
|
position = {};
|
|
223889
224145
|
}
|
|
223890
224146
|
|
|
224147
|
+
if (continuousid && xmlList[xmlIndex][2] !== continuousid) {
|
|
224148
|
+
mergeList = [];
|
|
224149
|
+
}
|
|
224150
|
+
|
|
223891
224151
|
continuousid = xmlList[xmlIndex][2];
|
|
223892
224152
|
mergeList.push([xmlList[xmlIndex][1], xmlList[xmlIndex][0]]);
|
|
223893
224153
|
|
|
@@ -223899,14 +224159,13 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223899
224159
|
} else {
|
|
223900
224160
|
hoEditorFactory.loadImageCallback = toPrint;
|
|
223901
224161
|
}
|
|
223902
|
-
|
|
223903
|
-
mergeList = [];
|
|
223904
224162
|
});
|
|
223905
224163
|
} else {
|
|
223906
224164
|
createSvg();
|
|
223907
224165
|
}
|
|
223908
224166
|
} else {
|
|
223909
224167
|
mergeList = [];
|
|
224168
|
+
continuousid = '';
|
|
223910
224169
|
Promise.all([hoEditorFactory.vueController.openXml(xmlList[xmlIndex][0])]).then(function () {
|
|
223911
224170
|
if (hoEditorFactory.loadImageCount === 0) {
|
|
223912
224171
|
toPrint();
|
|
@@ -223942,7 +224201,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223942
224201
|
|
|
223943
224202
|
createSvg();
|
|
223944
224203
|
|
|
223945
|
-
case
|
|
224204
|
+
case 14:
|
|
223946
224205
|
case "end":
|
|
223947
224206
|
return _context8.stop();
|
|
223948
224207
|
}
|
|
@@ -229205,9 +229464,9 @@ var Delimiter_component = normalizeComponent(
|
|
|
229205
229464
|
;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
|
|
229206
229465
|
|
|
229207
229466
|
/* harmony default export */ var delimiter = (delimiter_Delimiter);
|
|
229208
|
-
;// 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=
|
|
229209
|
-
var
|
|
229210
|
-
var
|
|
229467
|
+
;// 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&
|
|
229468
|
+
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)])}
|
|
229469
|
+
var Signvue_type_template_id_38b332be_staticRenderFns = []
|
|
229211
229470
|
|
|
229212
229471
|
|
|
229213
229472
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[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&
|
|
@@ -229242,7 +229501,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229242
229501
|
|
|
229243
229502
|
_this = _super.apply(this, arguments);
|
|
229244
229503
|
_this.height = 20;
|
|
229245
|
-
_this.name =
|
|
229504
|
+
_this.name = '';
|
|
229246
229505
|
_this.signType = 0;
|
|
229247
229506
|
_this.signFormat = '<医师姓名>';
|
|
229248
229507
|
_this.connectMode = '换行';
|
|
@@ -229251,7 +229510,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229251
229510
|
_this.signTimeFormat = 'yyyy-MM-DD HH:mm';
|
|
229252
229511
|
_this.customFormatContent = '';
|
|
229253
229512
|
_this.customSignFormatList = [];
|
|
229254
|
-
_this.animationClassNames =
|
|
229513
|
+
_this.animationClassNames = 'control-modal-contents sign-modal animation-in';
|
|
229255
229514
|
return _this;
|
|
229256
229515
|
} // 创建自定义签名格式
|
|
229257
229516
|
|
|
@@ -229259,7 +229518,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229259
229518
|
(0,createClass/* default */.Z)(Sign, [{
|
|
229260
229519
|
key: "createSignFormat",
|
|
229261
229520
|
value: function createSignFormat() {
|
|
229262
|
-
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g,
|
|
229521
|
+
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
|
|
229263
229522
|
var customList = ['<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'];
|
|
229264
229523
|
this.$elMessage.closeAll();
|
|
229265
229524
|
|
|
@@ -229274,7 +229533,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229274
229533
|
return;
|
|
229275
229534
|
}
|
|
229276
229535
|
|
|
229277
|
-
var format = [
|
|
229536
|
+
var format = ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'].concat();
|
|
229278
229537
|
this.customSignFormatList.forEach(function (v) {
|
|
229279
229538
|
return format.push(v.value);
|
|
229280
229539
|
});
|
|
@@ -229283,7 +229542,7 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229283
229542
|
return v === customFormat.slice(1, customFormat.length - 1);
|
|
229284
229543
|
}).length > 0) {
|
|
229285
229544
|
this.$elMessage.warning({
|
|
229286
|
-
message:
|
|
229545
|
+
message: '签名格式已存在无需插入,已自动选中',
|
|
229287
229546
|
duration: 3000,
|
|
229288
229547
|
offset: 120
|
|
229289
229548
|
});
|
|
@@ -229299,17 +229558,12 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229299
229558
|
}, {
|
|
229300
229559
|
key: "insertSign",
|
|
229301
229560
|
value: function insertSign() {
|
|
229302
|
-
if (this.signType ===
|
|
229303
|
-
//
|
|
229304
|
-
|
|
229305
|
-
|
|
229306
|
-
|
|
229307
|
-
|
|
229308
|
-
// this.allowEditSignTime)
|
|
229309
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名", this.signType, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime);
|
|
229310
|
-
} else {
|
|
229311
|
-
this.vueController.insertEmptySignNode(this.name ? this.name : "签名" //,
|
|
229312
|
-
);
|
|
229561
|
+
if (this.signType === 3) {
|
|
229562
|
+
// 自定义多人签名
|
|
229563
|
+
this.vueController.insertEmptySignNode(this.name ? this.name : '医生签名', 1, this.signFormat, this.signTimeFormat, this.connectMode, this.isFront, this.allowEditSignTime, 0);
|
|
229564
|
+
} else {
|
|
229565
|
+
var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
|
|
229566
|
+
this.vueController.insertEmptySignNode(name, 0, '', '', '', undefined, undefined, this.signType);
|
|
229313
229567
|
}
|
|
229314
229568
|
|
|
229315
229569
|
this.handleClose();
|
|
@@ -229317,8 +229571,8 @@ var Sign = /*#__PURE__*/function (_Vue) {
|
|
|
229317
229571
|
}, {
|
|
229318
229572
|
key: "handleClose",
|
|
229319
229573
|
value: function handleClose() {
|
|
229320
|
-
this.animationClassNames =
|
|
229321
|
-
this.$emit(
|
|
229574
|
+
this.animationClassNames = 'control-modal-contents sign-modal animation-out';
|
|
229575
|
+
this.$emit('closed');
|
|
229322
229576
|
}
|
|
229323
229577
|
}]);
|
|
229324
229578
|
|
|
@@ -229330,7 +229584,7 @@ __decorate([Prop()], Sign.prototype, "vueController", void 0);
|
|
|
229330
229584
|
__decorate([Prop()], Sign.prototype, "controlStatus", void 0);
|
|
229331
229585
|
|
|
229332
229586
|
Sign = __decorate([vue_class_component_esm({
|
|
229333
|
-
name:
|
|
229587
|
+
name: 'Sign',
|
|
229334
229588
|
components: {
|
|
229335
229589
|
HoColorPicker: HoColorPicker
|
|
229336
229590
|
}
|
|
@@ -229354,8 +229608,8 @@ Sign = __decorate([vue_class_component_esm({
|
|
|
229354
229608
|
|
|
229355
229609
|
var Sign_component = normalizeComponent(
|
|
229356
229610
|
sign_Signvue_type_script_lang_ts_,
|
|
229357
|
-
|
|
229358
|
-
|
|
229611
|
+
Signvue_type_template_id_38b332be_render,
|
|
229612
|
+
Signvue_type_template_id_38b332be_staticRenderFns,
|
|
229359
229613
|
false,
|
|
229360
229614
|
null,
|
|
229361
229615
|
null,
|