hoeditor-web 3.3.6-beta.7 → 3.3.6-beta.9
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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-
|
|
2
|
+
import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-BdYBlxkt.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -9396,6 +9396,8 @@ class DrawPageCell extends DrawArea {
|
|
|
9396
9396
|
b(this, "_rightLine");
|
|
9397
9397
|
b(this, "backColor");
|
|
9398
9398
|
b(this, "_anchorLine");
|
|
9399
|
+
// 空单元格占位短横线
|
|
9400
|
+
b(this, "_emptyPlaceholder", null);
|
|
9399
9401
|
//实现接口部分
|
|
9400
9402
|
b(this, "_node");
|
|
9401
9403
|
b(this, "_discriminator");
|
|
@@ -9763,7 +9765,37 @@ class DrawPageCell extends DrawArea {
|
|
|
9763
9765
|
this.backColor.graphics.clear(), this.backColor.alpha = 0.5, r && o.drawTree.paintStatus != PaintState.psPrint && o.drawTree.paintStatus != PaintState.psPreview && (this.backColor.graphics.beginFill("#f00").drawRect(0, 0, this._dWidth, this._dHeight), this.children.includes(this.backColor) ? this.setChildIndex(this.backColor, 0) : this.addChildAt(this.backColor, 0));
|
|
9764
9766
|
}
|
|
9765
9767
|
paintCellBackground(r, o, n) {
|
|
9766
|
-
this._backImg.x = 0, this._backImg.y = 0, this._backImg.graphics.beginFill(this._cell.cellProperty.backColor === "#FFFFFF" ? "transparent" : this._cell.cellProperty.backColor), this._backImg.graphics.rect(1, 1, this.dWidth - 1, this.dHeight - 1), this._backImg.graphics.endFill(), this.children.includes(this._backImg) ? this.setChildIndex(this._backImg, 0) : this.addChildAt(this._backImg, 0), this.paintCellBorders(r, o, n), this._cell.needPaintLineGrid() && this.paintLineGrid(), this.setBounds(0, 0, this._dWidth, r);
|
|
9768
|
+
this._backImg.x = 0, this._backImg.y = 0, this._backImg.graphics.beginFill(this._cell.cellProperty.backColor === "#FFFFFF" ? "transparent" : this._cell.cellProperty.backColor), this._backImg.graphics.rect(1, 1, this.dWidth - 1, this.dHeight - 1), this._backImg.graphics.endFill(), this.children.includes(this._backImg) ? this.setChildIndex(this._backImg, 0) : this.addChildAt(this._backImg, 0), this.paintCellBorders(r, o, n), this._cell.needPaintLineGrid() && this.paintLineGrid(), this.paintEmptyPlaceholder(), this.setBounds(0, 0, this._dWidth, r);
|
|
9769
|
+
}
|
|
9770
|
+
/**
|
|
9771
|
+
* 打印/预览态下,若单元格无任何内容(无 DrawLine/DrawPageTable 子节点),
|
|
9772
|
+
* 在单元格内绘制一条从左上角到右下角的对角线作为占位。
|
|
9773
|
+
*/
|
|
9774
|
+
paintEmptyPlaceholder() {
|
|
9775
|
+
const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus;
|
|
9776
|
+
if (o !== PaintState.psPreview && o !== PaintState.psPrint || !this.isCellContentEmpty() || !this._cell.cellProperty.emptyPlaceholderLine) {
|
|
9777
|
+
this.clearEmptyPlaceholder();
|
|
9778
|
+
return;
|
|
9779
|
+
}
|
|
9780
|
+
this._emptyPlaceholder || (this._emptyPlaceholder = new createjs$1.Shape(), this._emptyPlaceholder.name = "emptyPlaceholder"), this._emptyPlaceholder.graphics.clear().beginStroke("#999999").setStrokeStyle(1).moveTo(this.dWidth, 0).lineTo(0, this.dHeight).endStroke(), this._emptyPlaceholder.x = 0, this._emptyPlaceholder.y = 0, this._emptyPlaceholder.rotation = 0, this.contains(this._emptyPlaceholder) ? this.setChildIndex(this._emptyPlaceholder, this.numChildren - 1) : this.addChild(this._emptyPlaceholder);
|
|
9781
|
+
}
|
|
9782
|
+
/**
|
|
9783
|
+
* 判断单元格是否无任何内容。
|
|
9784
|
+
* 注意:空单元格(无文字)仍会存在一个空的段落 DrawLine(drawItems 为空),
|
|
9785
|
+
* 因此不能用 isEmpty()(其要求完全无 DrawLine/DrawPageTable 子节点),
|
|
9786
|
+
* 而需按“所有行都无 drawItems”来判断。
|
|
9787
|
+
*/
|
|
9788
|
+
isCellContentEmpty() {
|
|
9789
|
+
const r = this._cell.drawCell.drawLines;
|
|
9790
|
+
if (r.length === 0)
|
|
9791
|
+
return !0;
|
|
9792
|
+
for (const o of r)
|
|
9793
|
+
if (o instanceof DrawTable || o.drawItems.length > 0)
|
|
9794
|
+
return !1;
|
|
9795
|
+
return !0;
|
|
9796
|
+
}
|
|
9797
|
+
clearEmptyPlaceholder() {
|
|
9798
|
+
this._emptyPlaceholder && this.contains(this._emptyPlaceholder) && this.removeChild(this._emptyPlaceholder);
|
|
9767
9799
|
}
|
|
9768
9800
|
paintLineGrid() {
|
|
9769
9801
|
const r = this._cell.drawCell.drawLines;
|
|
@@ -23012,7 +23044,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
23012
23044
|
(function(a) {
|
|
23013
23045
|
function t() {
|
|
23014
23046
|
return function() {
|
|
23015
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
23047
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B4h1UsCg.mjs");
|
|
23016
23048
|
}().catch(function(r) {
|
|
23017
23049
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
23018
23050
|
}).then(function(r) {
|
|
@@ -24602,10 +24634,10 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
24602
24634
|
}
|
|
24603
24635
|
}
|
|
24604
24636
|
}
|
|
24605
|
-
const version = "3.3.6-beta.
|
|
24637
|
+
const version = "3.3.6-beta.9";
|
|
24606
24638
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
24607
24639
|
class SignNode extends BaseNode {
|
|
24608
|
-
constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
|
|
24640
|
+
constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, associatedPatientElement, isTemp, innerIdentifier) {
|
|
24609
24641
|
super(hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
24610
24642
|
b(this, "_dataId", "");
|
|
24611
24643
|
//dataId
|
|
@@ -24655,12 +24687,14 @@ class SignNode extends BaseNode {
|
|
|
24655
24687
|
//其它属性{"isDisplayTitle":true,"title":"职称","isDisplayTime":true,"time":"签名日期","timePosition":"1"}
|
|
24656
24688
|
b(this, "_associatedElement", "");
|
|
24657
24689
|
//关联元素的dataid
|
|
24690
|
+
b(this, "_associatedPatientElement", "");
|
|
24691
|
+
//关联患者关系元素的dataid
|
|
24658
24692
|
b(this, "oldNodePath", "");
|
|
24659
24693
|
//删除前的路径
|
|
24660
24694
|
b(this, "isTemp", !1);
|
|
24661
24695
|
b(this, "innerIdentifier", "");
|
|
24662
24696
|
const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
24663
|
-
this.number = number, this._type = type, this._signor = signor, this._signTime = signTime, this._attribute = attribute === void 0 ? 0 : attribute, this._connectChar = connectChar === void 0 ? ":" : connectChar, dataId ? this.dataId = dataId : this.dataId = HOEditorFactorys.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign"), fingerPrintSrc && (this._fingerPrintSrc = fingerPrintSrc), this._fingerPosition = fingerPosition || 0, this._name = name, this._imgWidth = imgWidth, this._imgHeight = imgHeight, this._isTemplate = isTemplate, this.isTemp = isTemp || isTemplate, this._signType = signType, this._signFormat = signFormat, this._signTimeFormat = signTimeFormat, styleIndex || styleIndex == 0 ? this._styleIndex = styleIndex : this._styleIndex = hoEditorFactory.docTree.curStyleIndex, this._connectMode = connectMode, signType === 1 && type !== 1 && (this._isFront = isFront, this._allowEditSignTime = allowEditSignTime), this._otherProperties = new Object(), this._associatedElement = associatedElement || "", this._customProperty = new Object();
|
|
24697
|
+
this.number = number, this._type = type, this._signor = signor, this._signTime = signTime, this._attribute = attribute === void 0 ? 0 : attribute, this._connectChar = connectChar === void 0 ? ":" : connectChar, dataId ? this.dataId = dataId : this.dataId = HOEditorFactorys.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign"), fingerPrintSrc && (this._fingerPrintSrc = fingerPrintSrc), this._fingerPosition = fingerPosition || 0, this._name = name, this._imgWidth = imgWidth, this._imgHeight = imgHeight, this._isTemplate = isTemplate, this.isTemp = isTemp || isTemplate, this._signType = signType, this._signFormat = signFormat, this._signTimeFormat = signTimeFormat, styleIndex || styleIndex == 0 ? this._styleIndex = styleIndex : this._styleIndex = hoEditorFactory.docTree.curStyleIndex, this._connectMode = connectMode, signType === 1 && type !== 1 && (this._isFront = isFront, this._allowEditSignTime = allowEditSignTime), this._otherProperties = new Object(), this._associatedElement = associatedElement || "", this._associatedPatientElement = associatedPatientElement || "", this._customProperty = new Object();
|
|
24664
24698
|
const assignvalue = (target, source) => {
|
|
24665
24699
|
Object.keys(source).forEach((value) => {
|
|
24666
24700
|
typeof target[value] == "object" ? Object.prototype.toString.call(source[value]) === "[object Object]" ? assignvalue(target[value], source[value]) : source[value] !== "" && source[value] !== null && assignvalue(target[value], eval("(" + source[value] + ")")) : target[value] = source[value];
|
|
@@ -24820,6 +24854,12 @@ class SignNode extends BaseNode {
|
|
|
24820
24854
|
set associatedElement(t) {
|
|
24821
24855
|
this._associatedElement !== t && (this._associatedElement = t);
|
|
24822
24856
|
}
|
|
24857
|
+
get associatedPatientElement() {
|
|
24858
|
+
return this._associatedPatientElement;
|
|
24859
|
+
}
|
|
24860
|
+
set associatedPatientElement(t) {
|
|
24861
|
+
this._associatedPatientElement !== t && (this._associatedPatientElement = t);
|
|
24862
|
+
}
|
|
24823
24863
|
/**
|
|
24824
24864
|
*
|
|
24825
24865
|
* @param drawTree 绘制树
|
|
@@ -24912,7 +24952,7 @@ class SignNode extends BaseNode {
|
|
|
24912
24952
|
otherProperties: this.otherProperties,
|
|
24913
24953
|
innerIdentifier: this.innerIdentifier
|
|
24914
24954
|
};
|
|
24915
|
-
return l.imgSrc.substring(0, 4) == "http" && (l.imgSrc = l.imgSrc.replace(`?_=${version}`, "")), this.associatedElement && (l.associatedElement = this.associatedElement), r ? l : {
|
|
24955
|
+
return l.imgSrc.substring(0, 4) == "http" && (l.imgSrc = l.imgSrc.replace(`?_=${version}`, "")), this.associatedElement && (l.associatedElement = this.associatedElement), this.associatedPatientElement && (l.associatedPatientElement = this.associatedPatientElement), r ? l : {
|
|
24916
24956
|
SignNode: l
|
|
24917
24957
|
};
|
|
24918
24958
|
}
|
|
@@ -24950,6 +24990,7 @@ class SignNode extends BaseNode {
|
|
|
24950
24990
|
r.otherProperties,
|
|
24951
24991
|
r.dataId,
|
|
24952
24992
|
r.associatedElement,
|
|
24993
|
+
r.associatedPatientElement,
|
|
24953
24994
|
g,
|
|
24954
24995
|
r.innerIdentifier
|
|
24955
24996
|
);
|
|
@@ -27695,7 +27736,8 @@ class CellNode extends RectNode {
|
|
|
27695
27736
|
isSignLock: this.cellProperty.isSignLock,
|
|
27696
27737
|
notAllowEdit: this.cellProperty.notAllowEdit,
|
|
27697
27738
|
isTruncated: this.cellProperty.isTruncated,
|
|
27698
|
-
isDisabled: this.cellProperty.isDisabled
|
|
27739
|
+
isDisabled: this.cellProperty.isDisabled,
|
|
27740
|
+
emptyPlaceholderLine: this.cellProperty.emptyPlaceholderLine
|
|
27699
27741
|
}, u = JSON.parse(JSON.stringify(d)), f = Object.keys(s);
|
|
27700
27742
|
for (let v = 0; v < f.length; v++)
|
|
27701
27743
|
f[v] === "customProperties" ? this.cellProperty.customProperties ? this.cellProperty.customProperties.length === 0 && delete u.customProperties : delete u.customProperties : f[v] === "cellInnerMargin" ? u.cellInnerMargin === "0,0,0.1,0.1" && delete u.cellInnerMargin : f[v] === "gridLinesColor" ? u.gridLinesColor === "#000000,#000000,#000000,#000000" && delete u.gridLinesColor : f[v] === "gridLineDisplay" ? u.gridLineDisplay === "true,true,true,true" && delete u.gridLineDisplay : f[v] === "backColor" ? u.backColor.toString().toLowerCase() === s.backColor.toString().toLowerCase() && delete u.backColor : u[f[v]] === s[f[v]] && delete u[f[v]];
|
|
@@ -28738,6 +28780,7 @@ class TableNode extends RectNode {
|
|
|
28738
28780
|
isSignLock: !1,
|
|
28739
28781
|
notAllowEdit: !1,
|
|
28740
28782
|
isTruncated: !1,
|
|
28783
|
+
emptyPlaceholderLine: !1,
|
|
28741
28784
|
formula: ""
|
|
28742
28785
|
}, E = JSON.parse(JSON.stringify(D)), T = new Array(), I = new Array();
|
|
28743
28786
|
for (let V = u.row; V <= y; V++) {
|
|
@@ -29777,7 +29820,7 @@ class ColProperty {
|
|
|
29777
29820
|
}
|
|
29778
29821
|
var GridLinesStyle = /* @__PURE__ */ ((a) => (a[a.solid = 0] = "solid", a[a.dash = 1] = "dash", a[a.dashdot = 2] = "dashdot", a[a.dashdotdo = 3] = "dashdotdo", a[a.dot = 4] = "dot", a))(GridLinesStyle || {}), ObliqueSplitLine = /* @__PURE__ */ ((a) => (a[a.None = 0] = "None", a[a.TopLeftOneLine = 1] = "TopLeftOneLine", a[a.TopLeftTwoLine = 2] = "TopLeftTwoLine", a[a.TopRightOneLine = 3] = "TopRightOneLine", a[a.TopRightTwoLine = 4] = "TopRightTwoLine", a[a.BottomLeftOneLine = 5] = "BottomLeftOneLine", a[a.BottomLeftTwoLine = 6] = "BottomLeftTwoLine", a[a.BottomRightOneLine = 7] = "BottomRightOneLine", a[a.BottomRightTwoLine = 8] = "BottomRightTwoLine", a[a.TwoDiagonal = 9] = "TwoDiagonal", a))(ObliqueSplitLine || {}), DiagonalType = /* @__PURE__ */ ((a) => (a[a.None = 0] = "None", a[a.Left = 1] = "Left", a[a.Right = 2] = "Right", a))(DiagonalType || {});
|
|
29779
29822
|
class CellProperty {
|
|
29780
|
-
|
|
29823
|
+
//空单元格占位斜线
|
|
29781
29824
|
constructor(objectValues) {
|
|
29782
29825
|
//private _lightCellBorders = false;//突出显示单元格边框
|
|
29783
29826
|
b(this, "_customProperties", []);
|
|
@@ -29819,6 +29862,8 @@ class CellProperty {
|
|
|
29819
29862
|
b(this, "isTruncated", !1);
|
|
29820
29863
|
//超出内容隐藏
|
|
29821
29864
|
b(this, "isDisabled", !1);
|
|
29865
|
+
//是否禁用
|
|
29866
|
+
b(this, "emptyPlaceholderLine", !1);
|
|
29822
29867
|
if (objectValues !== "") {
|
|
29823
29868
|
const valuesObj = eval("(" + objectValues + ")"), assignvalue = (target, source) => {
|
|
29824
29869
|
Object.keys(source).forEach((value) => {
|
|
@@ -62063,7 +62108,8 @@ class VueController {
|
|
|
62063
62108
|
t.otherProperties,
|
|
62064
62109
|
t.dataId || "",
|
|
62065
62110
|
t.associatedElement,
|
|
62066
|
-
|
|
62111
|
+
t.associatedPatientElement,
|
|
62112
|
+
t.isTemp,
|
|
62067
62113
|
t.innerIdentifier
|
|
62068
62114
|
);
|
|
62069
62115
|
r.undoService.begin();
|
|
@@ -62233,10 +62279,10 @@ class VueController {
|
|
|
62233
62279
|
* @param isFront 新插入的签名是否前置 true:前置 false:后置
|
|
62234
62280
|
* @param allowEditSignTime 允许修改签名时间 true:允许 false:不允许
|
|
62235
62281
|
*/
|
|
62236
|
-
insertEmptySignNode(t, r, o, n, s, l, c, d, u, f, p, m, g) {
|
|
62237
|
-
const
|
|
62238
|
-
|
|
62239
|
-
|
|
62282
|
+
insertEmptySignNode(t, r, o, n, s, l, c, d, u, f, p, m, g, y) {
|
|
62283
|
+
const w = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), v = w.docTree.curDomRange.normalize(), C = v.normalize().startPath, _ = v.normalize().endPath, D = new NodeChangingEvent(DocAction.daInsert, C, _, OperType.insertSign);
|
|
62284
|
+
w.docTree.changing(D) && w.docController.insertEmptySignNode(
|
|
62285
|
+
v,
|
|
62240
62286
|
t,
|
|
62241
62287
|
r,
|
|
62242
62288
|
o,
|
|
@@ -62249,7 +62295,8 @@ class VueController {
|
|
|
62249
62295
|
f,
|
|
62250
62296
|
p,
|
|
62251
62297
|
m,
|
|
62252
|
-
g
|
|
62298
|
+
g,
|
|
62299
|
+
y
|
|
62253
62300
|
);
|
|
62254
62301
|
}
|
|
62255
62302
|
/**
|
|
@@ -62299,7 +62346,7 @@ class VueController {
|
|
|
62299
62346
|
* @param otherProperties
|
|
62300
62347
|
* @param isFront 是否前置
|
|
62301
62348
|
*/
|
|
62302
|
-
updateEmptySignNode(t, r, o, n, s, l, c, d, u, f, p, m, g) {
|
|
62349
|
+
updateEmptySignNode(t, r, o, n, s, l, c, d, u, f, p, m, g, y) {
|
|
62303
62350
|
if (t.type !== 0)
|
|
62304
62351
|
return;
|
|
62305
62352
|
HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docController.updateEmptySignNode(
|
|
@@ -62315,7 +62362,8 @@ class VueController {
|
|
|
62315
62362
|
f,
|
|
62316
62363
|
p,
|
|
62317
62364
|
m,
|
|
62318
|
-
g
|
|
62365
|
+
g,
|
|
62366
|
+
y
|
|
62319
62367
|
);
|
|
62320
62368
|
}
|
|
62321
62369
|
/**
|
|
@@ -70840,8 +70888,11 @@ class DocController {
|
|
|
70840
70888
|
l.attribute,
|
|
70841
70889
|
l.connectChar,
|
|
70842
70890
|
l.otherProperties,
|
|
70843
|
-
|
|
70844
|
-
l.associatedElement
|
|
70891
|
+
l.dataId || "",
|
|
70892
|
+
l.associatedElement,
|
|
70893
|
+
l.associatedPatientElement,
|
|
70894
|
+
l.isTemplate,
|
|
70895
|
+
l.innerIdentifier
|
|
70845
70896
|
);
|
|
70846
70897
|
if (t.undoService.begin(), t.undoService.add(new NodeDeleteUndoUnit(this._hoEditorFactoryID, l, a)), t.undoService.add(new NodeInsertUndoUnit(this._hoEditorFactoryID, p, m)), t.undoService.commit(), l.parentNode instanceof CellNode) {
|
|
70847
70898
|
const g = l.parentNode.table;
|
|
@@ -72608,11 +72659,11 @@ class DocController {
|
|
|
72608
72659
|
* @param isFront 新插入的签名是否前置 true:前置 false:后置
|
|
72609
72660
|
* @param allowEditSignTime 允许修改签名时间 true:允许 false:不允许
|
|
72610
72661
|
*/
|
|
72611
|
-
insertEmptySignNode(a, t, r, o, n, s, l, c, d, u, f, p, m, g) {
|
|
72612
|
-
const
|
|
72662
|
+
insertEmptySignNode(a, t, r, o, n, s, l, c, d, u, f, p, m, g, y) {
|
|
72663
|
+
const w = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), v = a.startPath, C = w.docTree.getParentNode(v), _ = new SignNode(
|
|
72613
72664
|
this._hoEditorFactoryID,
|
|
72614
72665
|
a.npStart.roots,
|
|
72615
|
-
|
|
72666
|
+
C,
|
|
72616
72667
|
NodeType$1.ntSign,
|
|
72617
72668
|
0,
|
|
72618
72669
|
0,
|
|
@@ -72627,7 +72678,7 @@ class DocController {
|
|
|
72627
72678
|
0,
|
|
72628
72679
|
s,
|
|
72629
72680
|
!0,
|
|
72630
|
-
|
|
72681
|
+
w.docTree.curStyleIndex,
|
|
72631
72682
|
l,
|
|
72632
72683
|
c,
|
|
72633
72684
|
d,
|
|
@@ -72638,10 +72689,11 @@ class DocController {
|
|
|
72638
72689
|
p,
|
|
72639
72690
|
void 0,
|
|
72640
72691
|
m,
|
|
72692
|
+
g,
|
|
72641
72693
|
void 0,
|
|
72642
|
-
|
|
72694
|
+
y
|
|
72643
72695
|
);
|
|
72644
|
-
|
|
72696
|
+
w.undoService.begin(), w.undoService.add(new NodeInsertUndoUnit(this._hoEditorFactoryID, v, _)), w.undoService.commit();
|
|
72645
72697
|
}
|
|
72646
72698
|
/**
|
|
72647
72699
|
* 插入签名
|
|
@@ -72740,8 +72792,10 @@ class DocController {
|
|
|
72740
72792
|
p || a.otherProperties,
|
|
72741
72793
|
a.dataId || "",
|
|
72742
72794
|
a.associatedElement,
|
|
72743
|
-
a.
|
|
72795
|
+
a.associatedPatientElement,
|
|
72796
|
+
a.isTemplate,
|
|
72744
72797
|
// 更新签名时带上第一次签名的isTemplate属性 后续只用来判断是否为模板 不涉及绘制处理
|
|
72798
|
+
a.innerIdentifier
|
|
72745
72799
|
);
|
|
72746
72800
|
m.undoService.begin(), m.undoService.add(new NodeInsertUndoUnit(this._hoEditorFactoryID, y, v)), m.undoService.commit(), m.useSignLockTable && m.vueController.updateTableSignLocked(v), this.operateElementAfter(HistoryEditType.hetModify, v);
|
|
72747
72801
|
}
|
|
@@ -72774,9 +72828,9 @@ class DocController {
|
|
|
72774
72828
|
* @param otherProperties
|
|
72775
72829
|
* @param isFront 是否前置
|
|
72776
72830
|
*/
|
|
72777
|
-
updateEmptySignNode(a, t, r, o, n, s, l, c, d, u, f, p, m) {
|
|
72778
|
-
const
|
|
72779
|
-
|
|
72831
|
+
updateEmptySignNode(a, t, r, o, n, s, l, c, d, u, f, p, m, g) {
|
|
72832
|
+
const y = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), w = y.docTree.getNodeLastPath(a.previousLeaf()), v = y.docTree.getNodeLastPath(a), C = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daModifyStyle, w, v);
|
|
72833
|
+
C.oldEndPath = v, C.afterChangePath = v, C.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(w, v, !0, !0), a.name = t, a.connectChar = o, a.signType = n, a.signFormat = s, a.signor = l, a.signTime = c, a.signTimeFormat = d, a.attribute = r, a.isFront = p, a.associatedElement = m || "", a.associatedPatientElement = g || "", a.connectMode = u, a.otherProperties = f, y.docTree.change(C);
|
|
72780
72834
|
}
|
|
72781
72835
|
/**
|
|
72782
72836
|
* 更新签名时间
|
|
@@ -74876,6 +74930,8 @@ const ExpressionForm = __component__$15.exports, _sfc_main$14 = {
|
|
|
74876
74930
|
lockContentBeforeSign: !1,
|
|
74877
74931
|
dateTimeList: [],
|
|
74878
74932
|
associatedElement: "",
|
|
74933
|
+
patientElementList: [],
|
|
74934
|
+
associatedPatientElement: "",
|
|
74879
74935
|
modifyProps: {},
|
|
74880
74936
|
unwatchProps: [],
|
|
74881
74937
|
innerIdentifier: "",
|
|
@@ -74892,6 +74948,7 @@ const ExpressionForm = __component__$15.exports, _sfc_main$14 = {
|
|
|
74892
74948
|
"isDisplayTime",
|
|
74893
74949
|
"timePosition",
|
|
74894
74950
|
"associatedElement",
|
|
74951
|
+
"associatedPatientElement",
|
|
74895
74952
|
"isHigher",
|
|
74896
74953
|
"additionsEditor",
|
|
74897
74954
|
"lockContentBeforeSign",
|
|
@@ -74900,21 +74957,21 @@ const ExpressionForm = __component__$15.exports, _sfc_main$14 = {
|
|
|
74900
74957
|
};
|
|
74901
74958
|
},
|
|
74902
74959
|
mounted() {
|
|
74903
|
-
var
|
|
74960
|
+
var s, l, c, d, u, f, p, m, g, y, w, v, C;
|
|
74904
74961
|
const a = this.vueController.getAllSignNodeList(), t = [...a.sign, ...a.patientSign];
|
|
74905
|
-
let r = [];
|
|
74906
|
-
t.forEach((
|
|
74907
|
-
|
|
74962
|
+
let r = [], o = [];
|
|
74963
|
+
t.forEach((_) => {
|
|
74964
|
+
_.associatedElement && !r.includes(_.associatedElement) && r.push(_.associatedElement), _.associatedPatientElement && !o.includes(_.associatedPatientElement) && o.push(_.associatedPatientElement);
|
|
74908
74965
|
});
|
|
74909
|
-
const
|
|
74966
|
+
const n = this.vueController.getAllElements();
|
|
74910
74967
|
if (this.dateTimeList = [], this.controlStatus === "update") {
|
|
74911
|
-
const
|
|
74912
|
-
|
|
74913
|
-
|
|
74968
|
+
const _ = this.getCurrentSelectNode();
|
|
74969
|
+
_ && (this.name = _.name, _.attribute == 2 ? this.signType = 2 : _.attribute == 3 ? this.signType = 3 : _.attribute == 4 ? this.signType = 4 : _.attribute == 1 ? (this.signType = 1, this.innerIdentifier = _.innerIdentifier || "") : _.signType == 0 ? this.signType = 0 : this.signType = 9, this.signFormat = _.signFormat, this.connectMode = _.connectMode, this.connectChar = _.connectChar, this.isFront = _.isFront === !0 || _.isFront === "true", this.signTimeFormat = _.signTimeFormat, this.customFormatContent = _.customFormatContent ? _.customFormatContent : "", this.isDisplayTitle = !!(((s = _.otherProperties) == null ? void 0 : s.isDisplayTitle) === "true" | ((l = _.otherProperties) == null ? void 0 : l.isDisplayTitle) === !0), this.isHigher = !!(((c = _.otherProperties) == null ? void 0 : c.isHigher) === "true" | ((d = _.otherProperties) == null ? void 0 : d.isHigher) === !0), this.additionsEditor = !!(((u = _.otherProperties) == null ? void 0 : u.additionsEditor) === "true" | ((f = _.otherProperties) == null ? void 0 : f.additionsEditor) === !0), this.isDisplayTime = !!(((p = _.otherProperties) == null ? void 0 : p.isDisplayTime) === "true" | ((m = _.otherProperties) == null ? void 0 : m.isDisplayTime) === !0), this.timePosition = ((g = _.otherProperties) == null ? void 0 : g.timePosition) == "1" ? "1" : "0", this.associatedElement = _.associatedElement ? _.associatedElement : "", this.associatedPatientElement = _.associatedPatientElement ? _.associatedPatientElement : "", this.validatePriorSignatures = !!(((y = _.otherProperties) == null ? void 0 : y.validatePriorSignatures) === "true" | ((w = _.otherProperties) == null ? void 0 : w.validatePriorSignatures) === !0), this.lockContentBeforeSign = !!(((v = _.otherProperties) == null ? void 0 : v.lockContentBeforeSign) === "true" | ((C = _.otherProperties) == null ? void 0 : C.lockContentBeforeSign) === !0), n.forEach((D) => {
|
|
74970
|
+
D.nodeType == 8 && (!r.includes(D.dataId) || _.associatedElement == D.dataId) && this.dateTimeList.push(D), D.nodeType == 7 && (!o.includes(D.dataId) || _.associatedPatientElement == D.dataId) && this.patientElementList.push(D);
|
|
74914
74971
|
}), this.setWatchProps());
|
|
74915
74972
|
} else
|
|
74916
|
-
|
|
74917
|
-
|
|
74973
|
+
n.forEach((_) => {
|
|
74974
|
+
_.nodeType == 8 && !r.includes(_.dataId) && this.dateTimeList.push(_), _.nodeType == 7 && !o.includes(_.dataId) && this.patientElementList.push(_);
|
|
74918
74975
|
});
|
|
74919
74976
|
},
|
|
74920
74977
|
methods: {
|
|
@@ -74997,7 +75054,8 @@ const ExpressionForm = __component__$15.exports, _sfc_main$14 = {
|
|
|
74997
75054
|
additionsEditor: this.additionsEditor,
|
|
74998
75055
|
...r
|
|
74999
75056
|
},
|
|
75000
|
-
this.associatedElement
|
|
75057
|
+
this.associatedElement,
|
|
75058
|
+
this.associatedPatientElement
|
|
75001
75059
|
);
|
|
75002
75060
|
else if (this.signType === 2)
|
|
75003
75061
|
this.vueController.insertEmptySignNode(
|
|
@@ -75012,7 +75070,8 @@ const ExpressionForm = __component__$15.exports, _sfc_main$14 = {
|
|
|
75012
75070
|
this.signType,
|
|
75013
75071
|
this.connectChar,
|
|
75014
75072
|
{ isHigher: this.isHigher, additionsEditor: this.additionsEditor, ...r },
|
|
75015
|
-
this.associatedElement
|
|
75073
|
+
this.associatedElement,
|
|
75074
|
+
this.associatedPatientElement
|
|
75016
75075
|
);
|
|
75017
75076
|
else if (this.signType === 3)
|
|
75018
75077
|
this.vueController.insertEmptySignNode(
|
|
@@ -75027,7 +75086,8 @@ const ExpressionForm = __component__$15.exports, _sfc_main$14 = {
|
|
|
75027
75086
|
this.signType,
|
|
75028
75087
|
this.connectChar,
|
|
75029
75088
|
{ isHigher: this.isHigher, additionsEditor: this.additionsEditor, ...r },
|
|
75030
|
-
this.associatedElement
|
|
75089
|
+
this.associatedElement,
|
|
75090
|
+
this.associatedPatientElement
|
|
75031
75091
|
);
|
|
75032
75092
|
else if (this.signType === 4)
|
|
75033
75093
|
this.vueController.insertEmptySignNode(
|
|
@@ -75042,14 +75102,15 @@ const ExpressionForm = __component__$15.exports, _sfc_main$14 = {
|
|
|
75042
75102
|
this.signType,
|
|
75043
75103
|
this.connectChar,
|
|
75044
75104
|
{ isDisplayTitle: this.isDisplayTitle, additionsEditor: this.additionsEditor, isHigher: this.isHigher, ...t, ...r },
|
|
75045
|
-
this.associatedElement
|
|
75105
|
+
this.associatedElement,
|
|
75106
|
+
this.associatedPatientElement
|
|
75046
75107
|
);
|
|
75047
75108
|
else {
|
|
75048
75109
|
const o = this.name ? this.name : this.signType == 1 ? i18nHelper("04-001-009-EMR.3.3.129", null, "患者签名") : i18nHelper("04-001-009-EMR.3.3.128", null, "医生签名");
|
|
75049
75110
|
let n = { isHigher: this.isHigher, additionsEditor: this.additionsEditor, ...r };
|
|
75050
75111
|
this.signType == 1 && (n = {});
|
|
75051
75112
|
const s = this.signType === 1 && this.innerIdentifier ? this.innerIdentifier : "";
|
|
75052
|
-
this.vueController.insertEmptySignNode(o, 0, "", "", a, "", void 0, void 0, this.signType, "", n, this.associatedElement, s);
|
|
75113
|
+
this.vueController.insertEmptySignNode(o, 0, "", "", a, "", void 0, void 0, this.signType, "", n, this.associatedElement, this.associatedPatientElement, s);
|
|
75053
75114
|
}
|
|
75054
75115
|
else if (this.controlStatus === "update") {
|
|
75055
75116
|
this.clearWatchProps();
|
|
@@ -75078,7 +75139,8 @@ const ExpressionForm = __component__$15.exports, _sfc_main$14 = {
|
|
|
75078
75139
|
this.connectMode,
|
|
75079
75140
|
c,
|
|
75080
75141
|
this.isFront,
|
|
75081
|
-
this.associatedElement
|
|
75142
|
+
this.associatedElement,
|
|
75143
|
+
this.associatedPatientElement
|
|
75082
75144
|
);
|
|
75083
75145
|
}
|
|
75084
75146
|
this.handleClose();
|
|
@@ -75125,7 +75187,11 @@ var _sfc_render$14 = function a() {
|
|
|
75125
75187
|
t.associatedElement = o;
|
|
75126
75188
|
}, expression: "associatedElement" } }, t._l(t.dateTimeList, function(o) {
|
|
75127
75189
|
return r("a-select-option", { key: o.dataId, attrs: { value: o.dataId } }, [t._v(t._s(`${o.name}(${o.dataId})`))]);
|
|
75128
|
-
}), 1)], 1), t.signType === 1 ? r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v("
|
|
75190
|
+
}), 1)], 1), t.signType === 1 ? r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v("关联患者关系元素")]), r("a-select", { attrs: { showSearch: "", allowClear: "", placeholder: "请选择关联患者关系元素", "filter-option": t.filterOption, getPopupContainer: (o) => o.parentNode }, model: { value: t.associatedPatientElement, callback: function(o) {
|
|
75191
|
+
t.associatedPatientElement = o;
|
|
75192
|
+
}, expression: "associatedPatientElement" } }, t._l(t.patientElementList, function(o) {
|
|
75193
|
+
return r("a-select-option", { key: o.dataId, attrs: { value: o.dataId } }, [t._v(t._s(`${o.name}(${o.dataId})`))]);
|
|
75194
|
+
}), 1)], 1) : t._e(), t.signType === 1 ? r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v("内联标识符")]), r("a-input", { attrs: { placeholder: "请输入内联标识符" }, model: { value: t.innerIdentifier, callback: function(o) {
|
|
75129
75195
|
t.innerIdentifier = o;
|
|
75130
75196
|
}, expression: "innerIdentifier" } })], 1) : t._e(), t.signType !== 1 ? r("li", { staticClass: "control-item" }, [r("div", { staticClass: "col-checkbox-group" }, [r("a-checkbox", { model: { value: t.isHigher, callback: function(o) {
|
|
75131
75197
|
t.isHigher = o;
|
|
@@ -77527,6 +77593,8 @@ const HoColorPicker = __component__$U.exports, columns = [
|
|
|
77527
77593
|
// 是否允许编辑
|
|
77528
77594
|
isTruncated: !1,
|
|
77529
77595
|
// 超出内容分隐藏
|
|
77596
|
+
emptyPlaceholderLine: !1,
|
|
77597
|
+
// 空单元格占位斜线
|
|
77530
77598
|
cellTop: 0,
|
|
77531
77599
|
cellBottom: 0,
|
|
77532
77600
|
cellLeft: 0,
|
|
@@ -77570,7 +77638,7 @@ const HoColorPicker = __component__$U.exports, columns = [
|
|
|
77570
77638
|
this.endPath = t.docTree.curDomRange.normalize().endPath;
|
|
77571
77639
|
const r = this.getCellNodes();
|
|
77572
77640
|
if (r !== null) {
|
|
77573
|
-
this.lightCellBorders = r.cellProperty.lightCellBorders, this.title = r.cellProperty.title ? r.cellProperty.title : "", this.align = r.cellProperty.align, this.isDrawGridlines = r.cellProperty.isDrawGridlines, Array.isArray(r.cellProperty.gridLinesColor) ? this.gridLinesColor = [...r.cellProperty.gridLinesColor] : this.gridLinesColor = ["#000000", "#000000", "#000000", "#000000"], Array.isArray(r.cellProperty.gridLineDisplay) ? this.gridLineDisplay = [...r.cellProperty.gridLineDisplay].map((c) => c == !0 || c == "true") : this.gridLineDisplay = [!0, !0, !0, !0], this.formula = r.cellProperty.formula, this.backColor = r.cellProperty.backColor ? r.cellProperty.backColor : "#ffffff", this.gridLinesStyle = r.cellProperty.gridLinesStyle, this.span = r.cellProperty.span, this.alignTextToGridline = r.cellProperty.alignTextToGridline, this.printGridLines = r.cellProperty.printGridLines, this.isSignLock = r.cellProperty.isSignLock ? r.cellProperty.isSignLock : !1, this.notAllowEdit = r.cellProperty.notAllowEdit ? r.cellProperty.notAllowEdit : !1, this.isTruncated = r.cellProperty.isTruncated ? r.cellProperty.isTruncated : !1, [this.cellTop, this.cellBottom, this.cellLeft, this.cellRight] = r.cellProperty.cellInnerMargin ? r.cellProperty.cellInnerMargin : [0, 0, 0, 0], this.editorProperty = r.cellProperty.editorProperty;
|
|
77641
|
+
this.lightCellBorders = r.cellProperty.lightCellBorders, this.title = r.cellProperty.title ? r.cellProperty.title : "", this.align = r.cellProperty.align, this.isDrawGridlines = r.cellProperty.isDrawGridlines, Array.isArray(r.cellProperty.gridLinesColor) ? this.gridLinesColor = [...r.cellProperty.gridLinesColor] : this.gridLinesColor = ["#000000", "#000000", "#000000", "#000000"], Array.isArray(r.cellProperty.gridLineDisplay) ? this.gridLineDisplay = [...r.cellProperty.gridLineDisplay].map((c) => c == !0 || c == "true") : this.gridLineDisplay = [!0, !0, !0, !0], this.formula = r.cellProperty.formula, this.backColor = r.cellProperty.backColor ? r.cellProperty.backColor : "#ffffff", this.gridLinesStyle = r.cellProperty.gridLinesStyle, this.span = r.cellProperty.span, this.alignTextToGridline = r.cellProperty.alignTextToGridline, this.printGridLines = r.cellProperty.printGridLines, this.isSignLock = r.cellProperty.isSignLock ? r.cellProperty.isSignLock : !1, this.notAllowEdit = r.cellProperty.notAllowEdit ? r.cellProperty.notAllowEdit : !1, this.isTruncated = r.cellProperty.isTruncated ? r.cellProperty.isTruncated : !1, this.emptyPlaceholderLine = r.cellProperty.emptyPlaceholderLine ? r.cellProperty.emptyPlaceholderLine : !1, [this.cellTop, this.cellBottom, this.cellLeft, this.cellRight] = r.cellProperty.cellInnerMargin ? r.cellProperty.cellInnerMargin : [0, 0, 0, 0], this.editorProperty = r.cellProperty.editorProperty;
|
|
77574
77642
|
const n = [{ value: "", text: "", id: this.getKeyId(0) }], s = r.cellProperty.downListProperty;
|
|
77575
77643
|
s ? (this.listItems = safeJsonParse(s.listItems) ? [...safeJsonParse(s.listItems), ...n] : [...n], this.source = s.source ? s.source : "", this.canModifyContent = s.canModifyContent !== void 0 ? s.canModifyContent : !0, this.isAllowDel = s.isAllowDel !== void 0 ? s.isAllowDel : !0, this.allowMultiSelected = s.allowMultiSelected !== void 0 ? s.allowMultiSelected : !1, this.splitCharacter = s.splitCharacter ? s.splitCharacter : ",") : this.listItems = [...n];
|
|
77576
77644
|
const l = r.cellProperty.dateTimeProperty;
|
|
@@ -77656,6 +77724,7 @@ const HoColorPicker = __component__$U.exports, columns = [
|
|
|
77656
77724
|
isSignLock: this.isSignLock,
|
|
77657
77725
|
notAllowEdit: this.notAllowEdit,
|
|
77658
77726
|
isTruncated: this.isTruncated,
|
|
77727
|
+
emptyPlaceholderLine: this.emptyPlaceholderLine,
|
|
77659
77728
|
obliqueSplitLine: this.obliqueSplitLine,
|
|
77660
77729
|
editorProperty: this.editorProperty
|
|
77661
77730
|
};
|
|
@@ -77726,7 +77795,9 @@ var _sfc_render$T = function a() {
|
|
|
77726
77795
|
t.notAllowEdit = o;
|
|
77727
77796
|
}, expression: "notAllowEdit" } }, [t._v("不允许编辑单元格")])], 1), r("li", { staticClass: "control-item" }, [r("a-checkbox", { model: { value: t.isTruncated, callback: function(o) {
|
|
77728
77797
|
t.isTruncated = o;
|
|
77729
|
-
}, expression: "isTruncated" } }, [t._v("超出内容隐藏")])], 1)
|
|
77798
|
+
}, expression: "isTruncated" } }, [t._v("超出内容隐藏")])], 1), r("li", { staticClass: "control-item" }, [r("a-checkbox", { model: { value: t.emptyPlaceholderLine, callback: function(o) {
|
|
77799
|
+
t.emptyPlaceholderLine = o;
|
|
77800
|
+
}, expression: "emptyPlaceholderLine" } }, [t._v("空单元格占位斜线(打印)")])], 1)], 1)])])]), r("a-tab-pane", { key: "1", attrs: { tab: i18nHelper("04-001-009-EMR.3.3.41", null, "双击属性") } }, [r("ul", { staticClass: "control-list" }, [r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.71", null, "编辑器属性"))]), r("a-select", { staticStyle: { "text-align": "left" }, attrs: { getPopupContainer: (o) => o.parentNode, placeholder: i18nHelper("04-001-009-EMR.3.3.71", null, "编辑器属性"), size: "small" }, model: { value: t.editorProperty, callback: function(o) {
|
|
77730
77801
|
t.editorProperty = o;
|
|
77731
77802
|
}, expression: "editorProperty" } }, [r("a-select-option", { attrs: { value: 0 } }, [t._v(i18nHelper("04-001-009-EMR.3.3.70", null, "无"))]), r("a-select-option", { attrs: { value: 1 } }, [t._v(i18nHelper("04-001-009-EMR.3.3.161", null, "下拉列表"))]), r("a-select-option", { attrs: { value: 2 } }, [t._v(i18nHelper("04-001-009-EMR.3.3.69", null, "日期"))]), r("a-select-option", { attrs: { value: 7 } }, [t._v(i18nHelper("04-001-009-EMR.3.3.510", null, "计算公式"))])], 1)], 1), t.editorProperty === 1 ? [r("li", { staticClass: "control-item" }, [r("div", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.345", null, "分隔符"))]), r("a-select", { staticStyle: { "text-align": "left", "font-size": "20px" }, attrs: { getPopupContainer: (o) => o.parentNode, placeholder: i18nHelper("04-001-009-EMR.3.3.345", null, "分隔符"), size: "small" }, model: { value: t.splitCharacter, callback: function(o) {
|
|
77732
77803
|
t.splitCharacter = o;
|
|
@@ -87223,7 +87294,7 @@ var _sfc_render$6 = function a() {
|
|
|
87223
87294
|
return [r("a-menu", t._l(t.paragraph, function(o) {
|
|
87224
87295
|
return r("a-menu-item", { key: "line-height-" + o.svg, class: o.align === t.aligned ? "selected" : "", nativeOn: { click: function(n) {
|
|
87225
87296
|
return t.setAlign(o);
|
|
87226
|
-
} } }, [r("Poper", { attrs: { title: o.title, svg: o.svg, selected: t.aligned === o.align } })], 1);
|
|
87297
|
+
} } }, [r("Poper", { style: o.eventName === "alignedRight" ? { transform: "scaleX(-1)" } : {}, attrs: { title: o.title, svg: o.svg, selected: t.aligned === o.align } })], 1);
|
|
87227
87298
|
}), 1)];
|
|
87228
87299
|
}, proxy: !0 }]) }, [r("p", { staticClass: "ant-dropdown-link ant-dropdown-link-text", on: { click: function(o) {
|
|
87229
87300
|
o.preventDefault();
|