hoeditor-web 3.2.79 → 3.2.81
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-cxRdLTBd.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -10510,21 +10510,20 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
|
|
|
10510
10510
|
const y = r.rows[d][u];
|
|
10511
10511
|
if (y) {
|
|
10512
10512
|
const w = y.getCellText(), v = (C) => {
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
}
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
return _;
|
|
10513
|
+
if (C.includes("/") && (C.includes(":") || C.includes(":"))) {
|
|
10514
|
+
const E = new Date(C);
|
|
10515
|
+
if (!isNaN(E.getTime()))
|
|
10516
|
+
return [E.getHours(), E.getMinutes(), E.getSeconds()];
|
|
10517
|
+
}
|
|
10518
|
+
const _ = [
|
|
10519
|
+
{ regex: /(\\d+)小时/, index: 0 },
|
|
10520
|
+
{ regex: /(\\d+)分/, index: 1 },
|
|
10521
|
+
{ regex: /(\\d+)秒/, index: 2 }
|
|
10522
|
+
], D = [0, 0, 0];
|
|
10523
|
+
return _.forEach(({ regex: E, index: T }) => {
|
|
10524
|
+
const I = C.match(E);
|
|
10525
|
+
I && (D[T] = parseInt(I[1], 10));
|
|
10526
|
+
}), D;
|
|
10528
10527
|
};
|
|
10529
10528
|
if (m.length > 0 && g.length > 0 && w.length > 0) {
|
|
10530
10529
|
const [C, _, D] = v(m), [E, T, I] = v(g), [M, R, A] = v(w);
|
|
@@ -14685,6 +14684,46 @@ var module = { exports: {} }, exports = module.exports;
|
|
|
14685
14684
|
}).call(void 0);
|
|
14686
14685
|
const __CJS__export_default__ = (module.exports == null ? {} : module.exports).default || module.exports;
|
|
14687
14686
|
(module.exports == null ? {} : module.exports).EXIF;
|
|
14687
|
+
class ImageManager {
|
|
14688
|
+
// 毫秒
|
|
14689
|
+
constructor(t) {
|
|
14690
|
+
b(this, "hoEditorFactoryID");
|
|
14691
|
+
b(this, "_imageQueue", []);
|
|
14692
|
+
b(this, "_isProcessing", !1);
|
|
14693
|
+
b(this, "THROTTLE_DELAY", 100);
|
|
14694
|
+
this.hoEditorFactoryID = t;
|
|
14695
|
+
}
|
|
14696
|
+
updateSign(t) {
|
|
14697
|
+
const r = t instanceof DrawSignNode, o = HOEditorFactorys.instance().getFactory(this.hoEditorFactoryID), n = o.drawPageTree.getMainRootArea(t);
|
|
14698
|
+
if (n && o.drawTree.drawPages[n.index]) {
|
|
14699
|
+
const s = o.subDocManger.getHeaderFooterType(t.node.getNodePath());
|
|
14700
|
+
(s === HeaderFooterType.hftHead && n != o.drawTree.drawPages[n.index].drawHeader || s === HeaderFooterType.hftFoot && n != o.drawTree.drawPages[n.index].drawFooter) && (r ? o.subDocManger.copySubDocToPages(n, n.index, s) : o.subDocManger.updateAllSameSubDoc(n.index, s, !1, !1));
|
|
14701
|
+
}
|
|
14702
|
+
o.loadSignImageCount == 0 && o.loadImageCount == 0 && o.drawTree.rebuildArea("main", !1);
|
|
14703
|
+
}
|
|
14704
|
+
processImageQueue() {
|
|
14705
|
+
this._imageQueue.length > 0 ? this._imageQueue.shift().then((r) => {
|
|
14706
|
+
setTimeout(() => this.processImageQueue(), this.THROTTLE_DELAY), this.processImageQueue();
|
|
14707
|
+
}) : this._isProcessing = !1;
|
|
14708
|
+
}
|
|
14709
|
+
addImageQueue(t) {
|
|
14710
|
+
const r = HOEditorFactorys.instance().getFactory(this.hoEditorFactoryID);
|
|
14711
|
+
r.drawTree.paintStatus === PaintState$1.psPreview && r.isFixPrint ? (this._imageQueue.push(t), this._isProcessing || (this._isProcessing = !0, this.processImageQueue())) : t.then((o) => {
|
|
14712
|
+
});
|
|
14713
|
+
}
|
|
14714
|
+
loadImage(t) {
|
|
14715
|
+
const r = HOEditorFactorys.instance().getFactory(this.hoEditorFactoryID);
|
|
14716
|
+
r.loadImageCount++, t instanceof DrawSignNode && r.loadSignImageCount++;
|
|
14717
|
+
}
|
|
14718
|
+
onSuccessCallBack(t) {
|
|
14719
|
+
const r = HOEditorFactorys.instance().getFactory(this.hoEditorFactoryID);
|
|
14720
|
+
r.loadImageCount--, t instanceof DrawSignNode && r.loadSignImageCount--, this.updateSign(t);
|
|
14721
|
+
}
|
|
14722
|
+
onErrorCallBack(t) {
|
|
14723
|
+
const r = HOEditorFactorys.instance().getFactory(this.hoEditorFactoryID);
|
|
14724
|
+
r.loadImageCount--, r.loadImageErrorCount++, t instanceof DrawSignNode && r.loadSignImageCount--;
|
|
14725
|
+
}
|
|
14726
|
+
}
|
|
14688
14727
|
class DrawSignNode extends DrawCombineNode {
|
|
14689
14728
|
constructor(r, o, n, s, l, c, d, u, f, p, m, g, y, w, v, C) {
|
|
14690
14729
|
super(r, o, n, 0);
|
|
@@ -14710,7 +14749,8 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14710
14749
|
b(this, "_timePosition", "0");
|
|
14711
14750
|
//日期位置 1放签名右侧 其它:放签名下面
|
|
14712
14751
|
b(this, "_exif", null);
|
|
14713
|
-
|
|
14752
|
+
b(this, "_imageManager");
|
|
14753
|
+
this._imageManager = new ImageManager(r), this._number = s, this._imgSrc = d, this._type = l, this._signName = c, this._fingerPrintSrc = m, this._fingerPosition = g, this._attribute = y, this._connectChar = v, this._textStyle = p.getStyleKey(), this._signTime = C && C.time ? C.time : "", this._abi02 = w && w.abi02 ? w.abi02 : "", this._title = C && C.title ? C.title : "";
|
|
14714
14754
|
const _ = !!(C && (C.isDisplayTitle == "true" || C.isDisplayTitle == !0)), D = !!(C && (C.isDisplayTime == "true" || C.isDisplayTime == !0));
|
|
14715
14755
|
this.attribute === 4 && (_ ? this._title == "" && (this._title = this._abi02) : this._title = "", D ? this._timePosition = C && C.timePosition ? C.timePosition : "" : this._signTime = ""), this._title != "" && (this._drawTitle = new createjs$1.Text(this.title + this._connectChar, this._textStyle, "#000000")), this._signTime != "" && (this.attribute === 4 ? this._drawDate = new createjs$1.Text(this.signTime, this._textStyle, "#000000") : this._drawDate = new createjs$1.Text(this.signTime.substring(0, 16), this._textStyle, "#000000"));
|
|
14716
14756
|
const E = HOEditorFactorys.instance().getFactory(r);
|
|
@@ -14814,118 +14854,129 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14814
14854
|
set timePosition(r) {
|
|
14815
14855
|
this._timePosition !== r && (this._timePosition = r);
|
|
14816
14856
|
}
|
|
14857
|
+
drawSignNodeAfter() {
|
|
14858
|
+
const r = this, o = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID), n = o.drawPageTree.getMainRootArea(r);
|
|
14859
|
+
if (n) {
|
|
14860
|
+
const s = o.subDocManger.getHeaderFooterType(r.node.getNodePath());
|
|
14861
|
+
(s === HeaderFooterType.hftHead && n != o.drawTree.drawPages[n.index].drawHeader || s === HeaderFooterType.hftFoot && n != o.drawTree.drawPages[n.index].drawFooter) && o.subDocManger.copySubDocToPages(n, n.index, s);
|
|
14862
|
+
}
|
|
14863
|
+
r.imgSrc && (o.loadImageCount--, o.loadSignImageCount--), r.fingerPrintSrc && (o.loadImageCount--, o.loadSignImageCount--), o.loadSignImageCount == 0 && o.drawTree.rebuildArea("main", !1);
|
|
14864
|
+
}
|
|
14817
14865
|
drawWriteSignNode(r) {
|
|
14818
14866
|
this.clear();
|
|
14819
|
-
const o = this, n = HOEditorFactorys.instance().getFactory(o.node.hoEditorFactoryID)
|
|
14867
|
+
const o = this, n = HOEditorFactorys.instance().getFactory(o.node.hoEditorFactoryID);
|
|
14868
|
+
(() => {
|
|
14820
14869
|
if (this.type === 1 || this.type === 3) {
|
|
14821
|
-
const
|
|
14870
|
+
const l = n.drawTree.caret.height;
|
|
14822
14871
|
if (r.type = 3, this.imgSrc == "" && this.fingerPrintSrc) {
|
|
14823
|
-
let
|
|
14824
|
-
const
|
|
14825
|
-
this._dWidth =
|
|
14826
|
-
const
|
|
14827
|
-
let
|
|
14828
|
-
|
|
14829
|
-
|
|
14830
|
-
|
|
14872
|
+
let c = o.fingerPosition == FingerPosition.center ? 0.3 : 0.15;
|
|
14873
|
+
const d = 256;
|
|
14874
|
+
this._dWidth = d * c, r.imgWidth = this._dWidth;
|
|
14875
|
+
const u = new Image();
|
|
14876
|
+
let f;
|
|
14877
|
+
u.src = this.fingerPrintSrc, f = new createjs$1.Bitmap(u), f.setBounds(0, 0, r.imgWidth, r.imgHeight), o.addChildAt(f, 0), this._imageManager.loadImage(this), u.onerror = () => {
|
|
14878
|
+
this._imageManager.onErrorCallBack(this);
|
|
14879
|
+
}, u.onload = () => {
|
|
14880
|
+
const p = u.naturalHeight !== 0 ? u.naturalHeight : u.height, m = u.naturalWidth !== 0 ? u.naturalWidth : u.width;
|
|
14881
|
+
n.patientFingerHeight != 0 && (c = n.patientFingerHeight / p), f.y = -p * c, f.x = 0, r.imgHeight = p * c, r.imgWidth = m * c, this._dWidth = r.imgWidth, this._dHeight = r.imgHeight, r.type = 3, f.setTransform(f.x, f.y, c, c), this._imageManager.onSuccessCallBack(this);
|
|
14831
14882
|
};
|
|
14832
|
-
} else
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14836
|
-
|
|
14837
|
-
|
|
14838
|
-
|
|
14839
|
-
|
|
14840
|
-
|
|
14841
|
-
|
|
14842
|
-
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14883
|
+
} else
|
|
14884
|
+
this._imageManager.addImageQueue(new Promise((c) => {
|
|
14885
|
+
const d = new Image();
|
|
14886
|
+
d.src = this.imgSrc;
|
|
14887
|
+
const u = new createjs$1.Bitmap(d);
|
|
14888
|
+
u.y = 0, u.x = 0, u.setBounds(0, 0, o.dWidth, o.dHeight), r.imgWidth && (this._dWidth = r.imgWidth), o.addChildAt(u, 0), this._imageManager.loadImage(this), d.onerror = () => {
|
|
14889
|
+
this._imageManager.onErrorCallBack(this);
|
|
14890
|
+
}, d.onload = () => {
|
|
14891
|
+
const f = () => {
|
|
14892
|
+
const p = d.naturalWidth !== 0 ? d.naturalWidth : d.width, m = d.naturalHeight !== 0 ? d.naturalHeight : d.height;
|
|
14893
|
+
let g = n.signHeight / m < 0.4 ? 0.4 : n.signHeight / m > 0.7 ? 1 : n.signHeight / m;
|
|
14894
|
+
if (o.fingerPosition == FingerPosition.center && n.signHeight / m < 0.2 && (g = n.signHeight * 1.5 / m), n.patientSignHeight != 0 && (g = n.patientSignHeight / m), this._dWidth = p * g, o.fingerPrintSrc !== "")
|
|
14895
|
+
this._imageManager.addImageQueue(new Promise((y) => {
|
|
14896
|
+
const w = new Image();
|
|
14897
|
+
let v;
|
|
14898
|
+
w.src = this.fingerPrintSrc, v = new createjs$1.Bitmap(w), v.setBounds(0, 0, r.imgWidth, r.imgHeight), o.addChildAt(v, 1), this._imageManager.loadImage(this), w.onerror = () => {
|
|
14899
|
+
this._imageManager.onErrorCallBack(this), y(o);
|
|
14900
|
+
}, w.onload = () => {
|
|
14901
|
+
let C = w.naturalWidth;
|
|
14902
|
+
const _ = w.naturalHeight !== 0 ? w.naturalHeight : w.height;
|
|
14903
|
+
let D = o.fingerPosition == FingerPosition.center ? 0.3 : 0.15;
|
|
14904
|
+
C !== 256 && (D = 1), n.patientFingerHeight != 0 && (D = n.patientFingerHeight / _), v.scaleX = D, v.scaleY = D, v.y = -_ * D, u.y = -m * g, o.fingerPosition == FingerPosition.left ? (u.x = C * D + 5, v.x = 0, this._dWidth = p * g + 5 + C * D, r.imgHeight = Math.floor(Math.max(_ * D, m * g)), this._dHeight = r.imgHeight) : o.fingerPosition == FingerPosition.center ? (v.x = (p * g - C * D) / 2, v.y = -(_ * D + l) / 2, u.y = -(m * g + l) / 2, r.imgHeight = n.signHeight) : o.fingerPosition == FingerPosition.right && (v.x = p * g + 5, this._dWidth = p * g + 5 + C * D, r.imgHeight = Math.floor(Math.max(_ * D, m * g)), this._dHeight = r.imgHeight), r.imgWidth = this._dWidth, o.fingerPosition == FingerPosition.center && (this._dWidth = 0, this._dHeight = 0), u.setTransform(u.x, u.y, g, g), v.setTransform(v.x, v.y, D, D);
|
|
14905
|
+
const E = new createjs$1.Shape();
|
|
14906
|
+
E.graphics.beginFill("#000000").drawRect(v.x, 0, C * D, _ * D), u.hitArea = E, v.hitArea = E, this._imageManager.onSuccessCallBack(this), y(o);
|
|
14907
|
+
};
|
|
14908
|
+
}));
|
|
14909
|
+
else {
|
|
14910
|
+
this._dWidth = p * g;
|
|
14911
|
+
let y = this._dWidth;
|
|
14912
|
+
if (r.parentNode instanceof CellNode) {
|
|
14913
|
+
const w = r.parentNode.drawCell.dWidth;
|
|
14914
|
+
y > w - 5 && (o.dHeight = (w - 5) * o.dHeight / y - 2, g = (w - 5) / y * g, y = w - 5), o.dWidth = y, r.imgWidth = o.dWidth, r.imgHeight = o.dHeight, u.setTransform(0, -(m * g + l) / 2, g, g);
|
|
14915
|
+
} else
|
|
14916
|
+
r.imgWidth = this.dWidth, r.imgHeight = n.signHeight, u.setTransform(0, -(m * g + l) / 2, g, g);
|
|
14917
|
+
this._imageManager.onSuccessCallBack(this);
|
|
14918
|
+
}
|
|
14919
|
+
c(o);
|
|
14850
14920
|
};
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
if (r.parentNode instanceof CellNode) {
|
|
14855
|
-
const v = r.parentNode.drawCell.dWidth;
|
|
14856
|
-
w > v - 5 && (o.dHeight = (v - 5) * o.dHeight / w - 2, y = (v - 5) / w * y, w = v - 5), o.dWidth = w, r.imgWidth = o.dWidth, r.imgHeight = o.dHeight, u.setTransform(0, -(g * y + c) / 2, y, y);
|
|
14857
|
-
} else
|
|
14858
|
-
r.imgWidth = this.dWidth, r.imgHeight = n.signHeight, u.setTransform(0, -(g * y + c) / 2, y, y);
|
|
14859
|
-
l();
|
|
14860
|
-
}
|
|
14861
|
-
};
|
|
14862
|
-
}
|
|
14863
|
-
}
|
|
14864
|
-
}, l = () => {
|
|
14865
|
-
const c = n.drawPageTree.getMainRootArea(o);
|
|
14866
|
-
if (c) {
|
|
14867
|
-
const d = n.subDocManger.getHeaderFooterType(o.node.getNodePath());
|
|
14868
|
-
(d === HeaderFooterType.hftHead && c != n.drawTree.drawPages[c.index].drawHeader || d === HeaderFooterType.hftFoot && c != n.drawTree.drawPages[c.index].drawFooter) && n.subDocManger.copySubDocToPages(c, c.index, d), n.drawTree.rebuildArea("main", !1);
|
|
14921
|
+
n.drawTree.paintStatus === PaintState$1.psPreview && n.isFixPrint ? setTimeout(() => f(), 200) : f();
|
|
14922
|
+
};
|
|
14923
|
+
}));
|
|
14869
14924
|
}
|
|
14870
|
-
|
|
14871
|
-
};
|
|
14872
|
-
s();
|
|
14925
|
+
})();
|
|
14873
14926
|
}
|
|
14874
14927
|
drawSignNode() {
|
|
14875
14928
|
this.clear();
|
|
14876
14929
|
const r = this, o = (n) => {
|
|
14877
|
-
if (this.type === 1)
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
-
|
|
14883
|
-
|
|
14884
|
-
|
|
14885
|
-
|
|
14886
|
-
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
const f =
|
|
14890
|
-
|
|
14891
|
-
|
|
14892
|
-
|
|
14893
|
-
|
|
14894
|
-
|
|
14895
|
-
|
|
14896
|
-
|
|
14897
|
-
|
|
14898
|
-
|
|
14899
|
-
|
|
14900
|
-
|
|
14901
|
-
|
|
14902
|
-
|
|
14903
|
-
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
|
|
14907
|
-
|
|
14908
|
-
|
|
14909
|
-
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
|
|
14914
|
-
if (C) {
|
|
14915
|
-
const _ = d.subDocManger.getHeaderFooterType(this.node.getNodePath());
|
|
14916
|
-
(_ === HeaderFooterType.hftHead && C != d.drawTree.drawPages[C.index].drawHeader || _ === HeaderFooterType.hftFoot && C != d.drawTree.drawPages[C.index].drawFooter) && d.subDocManger.copySubDocToPages(C, C.index, _), d.drawPageTree.updateDrawPage(C.index);
|
|
14930
|
+
if (this.type === 1)
|
|
14931
|
+
this._imageManager.addImageQueue(new Promise((s) => {
|
|
14932
|
+
const l = new Image();
|
|
14933
|
+
l.src = this.imgSrc;
|
|
14934
|
+
const c = new createjs$1.Bitmap(l), d = new createjs$1.Shape();
|
|
14935
|
+
if (d.graphics.beginFill("#000").drawRect(0, 0, r.dWidth, r.dHeight), c.hitArea = d, c.y = -this.dHeight, c.setBounds(0, 0, r.dWidth, r.dHeight), this.number === 1 || n ? c.x = 0 : c.x = this._drawText.getMeasuredWidth(), this.attribute === 2 && this.abi02 !== "") {
|
|
14936
|
+
const f = new createjs$1.Text(this.abi02 + this._connectChar, this.textStyle, "#000000");
|
|
14937
|
+
f.textBaseline = "alphabetic", f.textAlign = "left", this.addChildAt(f, 0), c.x = f.getMeasuredWidth(), this.addChild(c);
|
|
14938
|
+
} else
|
|
14939
|
+
this.attribute === 3 && this.title !== "" ? this.signTime != "" ? (this._drawTitle.textBaseline = "alphabetic", this._drawTitle.textAlign = "left", this._drawTitle.x = 0, this._drawTitle.y = -(this.dHeight - this._drawDate.getMeasuredHeight()) + 2, c.x = this._drawTitle.getMeasuredWidth(), this.addChildAt(this._drawTitle, 0), c.y = this._drawTitle.y, this.addChild(c), this._drawDate.x = 0, this._drawDate.y = 0, this._drawDate.textBaseline = "alphabetic", this._drawDate.textAlign = "left", this.addChild(this._drawDate)) : (this._drawTitle.textBaseline = "alphabetic", this._drawTitle.textAlign = "left", this.addChildAt(this._drawTitle, 0), c.x = this._drawTitle.getMeasuredWidth(), this.addChild(c)) : this.attribute === 4 ? (this.title !== "" ? (this._drawTitle.textBaseline = "alphabetic", this._drawTitle.textAlign = "left", this.addChildAt(this._drawTitle, 0), c.x = this._drawTitle.getMeasuredWidth()) : c.x = 0, this.addChild(c), this.signTime !== "" && (this.timePosition === "1" ? (c.y = -this.dHeight, this._drawDate.x = this.dWidth - this._drawDate.getMeasuredWidth(), this._drawDate.y = -this.dHeight + this._drawDate.getMeasuredHeight()) : (this.title !== "" && (this._drawTitle.y = -this._drawDate.getMeasuredHeight() - 10), c.y = -this.dHeight, this._drawDate.x = 0, this._drawDate.y = -3, this._drawDate.textBaseline = "alphabetic", this._drawDate.textAlign = "left"), this.addChild(this._drawDate))) : c.x === 0 ? this.addChildAt(c, 0) : this.addChild(c);
|
|
14940
|
+
const u = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID);
|
|
14941
|
+
this._imageManager.loadImage(this), l.onload = async () => {
|
|
14942
|
+
const f = () => {
|
|
14943
|
+
const m = l.naturalWidth !== 0 ? l.naturalWidth : l.width, g = l.naturalHeight !== 0 ? l.naturalHeight : l.height, y = this.node, w = y.imgWidth, v = y.imgHeight;
|
|
14944
|
+
(l.naturalWidth > l.naturalHeight && w < v || l.naturalWidth < l.naturalHeight && y.imgWidth > y.imgHeight) && (y.imgWidth = v, y.imgHeight = w);
|
|
14945
|
+
let C = m * u.signHeight / l.naturalHeight;
|
|
14946
|
+
if (u.convertSignImage && g > u.signHeight * 2) {
|
|
14947
|
+
const E = document.createElement("canvas"), T = E.getContext("2d");
|
|
14948
|
+
E.width = C * 2, E.height = u.signHeight * 2, E.style.width = this.dWidth + "px", E.style.height = u.signHeight + "px", T.clearRect(0, 0, E.width, E.height), T.fillStyle = "#FFFFFF", T.fillRect(0, 0, E.width, E.height), T.drawImage(l, 0, 0, E.width, E.height);
|
|
14949
|
+
const I = E.toDataURL("image/png", 1);
|
|
14950
|
+
r.node.imgSrc = I;
|
|
14951
|
+
}
|
|
14952
|
+
if (y.parentNode instanceof CellNode) {
|
|
14953
|
+
const E = y.parentNode.drawCell.dWidth;
|
|
14954
|
+
C > E - 5 && (r.dHeight = (E - 5) * u.signHeight / C, C = E - 5);
|
|
14955
|
+
}
|
|
14956
|
+
if (r.dWidth = C, r.attribute === 2 && r.abi02 !== "" && (r.dWidth += r._drawAbi02.getMeasuredWidth()), r.attribute == 3 && r.title != "" && (r.dWidth += r._drawTitle.getMeasuredWidth(), this._drawDate.getMeasuredWidth() > r.dWidth && (r.dWidth = this._drawDate.getMeasuredWidth())), r.attribute === 4 && (r.title != "" && (r.dWidth += r._drawTitle.getMeasuredWidth()), this.signTime !== "" && (this.timePosition === "1" ? r.dWidth = r.dWidth + r._drawDate.getMeasuredWidth() : r.dWidth = Math.max(r.dWidth, r._drawDate.getMeasuredWidth()))), this.number === 2 && (r.dWidth += this._drawText ? this._drawText.getMeasuredWidth() : 0), r.attribute === 2 && r.abi02 !== "")
|
|
14957
|
+
c.setTransform(r._drawAbi02.getMeasuredWidth(), -r.dHeight + 2, C / m, r.dHeight / g);
|
|
14958
|
+
else if (r.attribute === 3 && r.title !== "")
|
|
14959
|
+
c.setTransform(r._drawTitle.getMeasuredWidth(), -r.dHeight - 4, C / m, (r.dHeight - r._drawDate.getMeasuredHeight() - 2) / g);
|
|
14960
|
+
else if (r.attribute === 4) {
|
|
14961
|
+
let E = 0, T = 0, I = r.dHeight / g;
|
|
14962
|
+
r.title !== "" ? E = r._drawTitle.getMeasuredWidth() : E = 0, this.signTime === "" || this.timePosition === "1" ? (T = -r.dHeight + 5, I = r.dHeight / g) : (T = -r.dHeight - 4, I = (r.dHeight - r._drawDate.getMeasuredHeight() - 2) / g), c.setTransform(E, T, C / m, I);
|
|
14963
|
+
} else
|
|
14964
|
+
c.setTransform(c.x, -r.dHeight, C / m, r.dHeight / g);
|
|
14965
|
+
const _ = new createjs$1.Shape();
|
|
14966
|
+
_.graphics.beginFill("#000").drawRect(0, 0, r.dWidth, r.dHeight), c.hitArea = _;
|
|
14917
14967
|
const D = r.node.parentNode;
|
|
14918
|
-
D instanceof CellNode && (D.drawCell.needUpdate = !0, D.table.update());
|
|
14919
|
-
}
|
|
14920
|
-
|
|
14968
|
+
D instanceof CellNode && (D.drawCell.needUpdate = !0, D.table.update()), this._imageManager.onSuccessCallBack(this), s(r);
|
|
14969
|
+
}, p = () => {
|
|
14970
|
+
u.drawTree.paintStatus === PaintState$1.psPreview && u.isFixPrint ? setTimeout(() => f(), 200) : f();
|
|
14971
|
+
};
|
|
14972
|
+
this.imgSrc.includes("data:image/jpeg") || this.imgSrc.includes("data:image/jpg") || this.imgSrc.includes(".jpg") || this.imgSrc.includes(".jpeg") ? __CJS__export_default__.getData(l, (m) => {
|
|
14973
|
+
l.exifdata = m, p();
|
|
14974
|
+
}) : p();
|
|
14975
|
+
}, l.onerror = () => {
|
|
14976
|
+
this._imageManager.onErrorCallBack(this), s(r);
|
|
14921
14977
|
};
|
|
14922
|
-
|
|
14923
|
-
|
|
14924
|
-
}) : u();
|
|
14925
|
-
}, s.onerror = () => {
|
|
14926
|
-
d.loadImageCount--;
|
|
14927
|
-
};
|
|
14928
|
-
} else {
|
|
14978
|
+
}));
|
|
14979
|
+
else {
|
|
14929
14980
|
const s = this.imgSrc.split(`
|
|
14930
14981
|
`);
|
|
14931
14982
|
if (s.length === 1) {
|
|
@@ -14966,7 +15017,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14966
15017
|
}
|
|
14967
15018
|
}
|
|
14968
15019
|
}
|
|
14969
|
-
const version = "3.2.
|
|
15020
|
+
const version = "3.2.81";
|
|
14970
15021
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
14971
15022
|
class SignNode extends BaseNode {
|
|
14972
15023
|
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) {
|
|
@@ -15024,13 +15075,13 @@ class SignNode extends BaseNode {
|
|
|
15024
15075
|
b(this, "isTemp", !1);
|
|
15025
15076
|
b(this, "innerIdentifier", "");
|
|
15026
15077
|
const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
15027
|
-
this.number = number, this._type = type, this._signor = signor, this._signTime = signTime, this.
|
|
15078
|
+
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();
|
|
15028
15079
|
const assignvalue = (target, source) => {
|
|
15029
15080
|
Object.keys(source).forEach((value) => {
|
|
15030
15081
|
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];
|
|
15031
15082
|
});
|
|
15032
15083
|
};
|
|
15033
|
-
customProperty && assignvalue(this._customProperty, customProperty), otherProperties && assignvalue(this._otherProperties, otherProperties), innerIdentifier ? this.innerIdentifier = innerIdentifier : this.innerIdentifier || (this.attribute == 1 ? this.innerIdentifier = "sign_doctor_" + Math.random().toString(36).substring(2) : this.innerIdentifier = "sign_patient_" + Math.random().toString(36).substring(2)), this.node2DrawNodeRange(0, 0);
|
|
15084
|
+
customProperty && assignvalue(this._customProperty, customProperty), otherProperties && assignvalue(this._otherProperties, otherProperties), innerIdentifier ? this.innerIdentifier = innerIdentifier : this.innerIdentifier || (this.attribute == 1 ? this.innerIdentifier = "sign_doctor_" + Math.random().toString(36).substring(2) : this.innerIdentifier = "sign_patient_" + Math.random().toString(36).substring(2)), this.imgSrc === (imgSrc || "") && this.node2DrawNodeRange(0, 0), this.imgSrc = imgSrc || "";
|
|
15034
15085
|
}
|
|
15035
15086
|
// get id(): string {
|
|
15036
15087
|
// return this._id;
|
|
@@ -37839,7 +37890,10 @@ class DrawImageNode extends DrawCombineNode {
|
|
|
37839
37890
|
b(this, "_drawResize");
|
|
37840
37891
|
b(this, "_id");
|
|
37841
37892
|
b(this, "_bitMap");
|
|
37842
|
-
|
|
37893
|
+
b(this, "_imageManager");
|
|
37894
|
+
const f = HOEditorFactorys.instance().getFactory(r);
|
|
37895
|
+
this._imageManager = new ImageManager(r);
|
|
37896
|
+
const p = f.vueController.getMainBounds(c, d);
|
|
37843
37897
|
this.dWidth = Number(p.imageWidth), this.dHeight = Number(p.imageHeight), this._imagePath = l, this._markImagePath = u, this._imageY = -this.dHeight, this.insertImage(), this._drawResize = new DrawResize(r, this.node, this, this._imageY);
|
|
37844
37898
|
}
|
|
37845
37899
|
get markImagePath() {
|
|
@@ -37852,46 +37906,59 @@ class DrawImageNode extends DrawCombineNode {
|
|
|
37852
37906
|
return this._drawResize;
|
|
37853
37907
|
}
|
|
37854
37908
|
insertImage() {
|
|
37855
|
-
const r = this
|
|
37856
|
-
|
|
37857
|
-
|
|
37858
|
-
|
|
37859
|
-
|
|
37860
|
-
|
|
37861
|
-
const l =
|
|
37862
|
-
|
|
37863
|
-
|
|
37864
|
-
|
|
37865
|
-
|
|
37866
|
-
|
|
37867
|
-
|
|
37868
|
-
|
|
37869
|
-
|
|
37870
|
-
|
|
37871
|
-
|
|
37872
|
-
|
|
37873
|
-
|
|
37874
|
-
|
|
37875
|
-
|
|
37876
|
-
|
|
37877
|
-
|
|
37878
|
-
|
|
37909
|
+
const r = this;
|
|
37910
|
+
this._imageManager.addImageQueue(new Promise((o) => {
|
|
37911
|
+
const n = new Image();
|
|
37912
|
+
process.env.NODE_ENV === "production" || !this.imagePath.startsWith("http") ? n.src = this.imagePath : n.src = "http://192.168.1.211:8088" + this.imagePath, this._bitMap = new createjs$1.Bitmap(n);
|
|
37913
|
+
const s = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID);
|
|
37914
|
+
this._bitMap.y = this._imageY, this._bitMap.x = 0, this._bitMap.name = this.node.id;
|
|
37915
|
+
const l = new createjs$1.Shape();
|
|
37916
|
+
l.graphics.beginFill("#000").drawRect(0, 0, r.dWidth, r.dHeight), this._bitMap.hitArea = l, this._bitMap.setBounds(0, 0, r.dWidth, r.dHeight), this._imageManager.loadImage(this), this.addChild(this._bitMap), n.onload = () => {
|
|
37917
|
+
const c = () => {
|
|
37918
|
+
const d = n.naturalWidth !== 0 ? n.naturalWidth : n.width, u = n.naturalHeight !== 0 ? n.naturalHeight : n.height;
|
|
37919
|
+
this._bitMap.setTransform(0, r._imageY, r.dWidth / d, r.dHeight / u), this._bitMap.setBounds(0, 0, n.naturalWidth, n.naturalHeight);
|
|
37920
|
+
const f = new createjs$1.Shape();
|
|
37921
|
+
if (f.graphics.beginFill("#000").drawRect(0, 0, d, u), this._bitMap.hitArea = f, this.node.rootPath.includes("header") || this.node.rootPath.includes("footer")) {
|
|
37922
|
+
const p = document.createElement("canvas"), m = p.getContext("2d");
|
|
37923
|
+
p.width = this.dWidth * 2, p.height = this.dHeight * 2, p.style.width = this.dWidth + "px", p.style.height = this.dHeight + "px", m.clearRect(0, 0, p.width, p.height), m.fillStyle = "#FFFFFF", m.fillRect(0, 0, p.width, p.height), m.drawImage(n, 0, 0, p.width, p.height);
|
|
37924
|
+
const g = p.toDataURL("image/jpeg", 0.92);
|
|
37925
|
+
g < this.node.imageDataBase64String && (this.node.imageDataBase64String = g);
|
|
37926
|
+
}
|
|
37927
|
+
this._imageManager.onSuccessCallBack(this), o(r);
|
|
37928
|
+
};
|
|
37929
|
+
s.drawTree.paintStatus === PaintState$1.psPreview && s.isFixPrint ? setTimeout(() => c(), 200) : c();
|
|
37930
|
+
}, this.markImagePath != "" && this.insertMarkImage(), n.onerror = () => {
|
|
37931
|
+
if (this._imageManager.onErrorCallBack(this), o(r), !r.node.isBackFill) {
|
|
37932
|
+
const c = this.node.previousLeaf().getNodePath();
|
|
37933
|
+
s.docTree.deleteNode(this.node);
|
|
37934
|
+
const d = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daModifyStyle, c, c);
|
|
37935
|
+
d.oldEndPath = c, d.afterChangePath = c, d.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(c, c, !0, !0), s.docTree.change(d);
|
|
37936
|
+
}
|
|
37937
|
+
};
|
|
37938
|
+
}));
|
|
37879
37939
|
}
|
|
37880
37940
|
insertMarkImage() {
|
|
37881
|
-
const r = this, o = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID)
|
|
37882
|
-
|
|
37883
|
-
|
|
37884
|
-
|
|
37885
|
-
|
|
37886
|
-
|
|
37887
|
-
|
|
37888
|
-
|
|
37889
|
-
|
|
37890
|
-
|
|
37891
|
-
|
|
37892
|
-
|
|
37893
|
-
|
|
37941
|
+
const r = this, o = HOEditorFactorys.instance().getFactory(r.node.hoEditorFactoryID);
|
|
37942
|
+
this._imageManager.addImageQueue(new Promise((n) => {
|
|
37943
|
+
const s = new Image();
|
|
37944
|
+
let l;
|
|
37945
|
+
s.src = this.markImagePath, this._imageManager.loadImage(this), l = new createjs$1.Bitmap(s), l.name = this.node.id, l.setBounds(0, 0, r.dWidth, r.dHeight), r.addChild(l), s.onload = () => {
|
|
37946
|
+
const c = () => {
|
|
37947
|
+
l.x = 0, l.y = 0;
|
|
37948
|
+
const d = s.naturalWidth !== 0 ? s.naturalWidth : s.width, u = s.naturalHeight !== 0 ? s.naturalHeight : s.height;
|
|
37949
|
+
l.setTransform(0, r._imageY, r.dWidth / d, r.dHeight / u), new createjs$1.Shape().graphics.beginFill("#000000").drawRect(0, 0, d, u), this._imageManager.onSuccessCallBack(this), n(r);
|
|
37950
|
+
};
|
|
37951
|
+
o.drawTree.paintStatus === PaintState$1.psPreview && o.isFixPrint ? setTimeout(() => c(), 200) : c();
|
|
37952
|
+
}, s.onerror = () => {
|
|
37953
|
+
this._imageManager.onErrorCallBack(this), n(r);
|
|
37954
|
+
const c = this.node.previousLeaf().getNodePath();
|
|
37955
|
+
o.docTree.deleteNode(this.node);
|
|
37956
|
+
const d = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daModifyStyle, c, c);
|
|
37957
|
+
d.oldEndPath = c, d.afterChangePath = c, d.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(c, c, !0, !0), o.docTree.change(d);
|
|
37958
|
+
};
|
|
37959
|
+
}));
|
|
37894
37960
|
}
|
|
37961
|
+
// --内部不在调用
|
|
37895
37962
|
updateSign() {
|
|
37896
37963
|
const r = HOEditorFactorys.instance().getFactory(this.node.hoEditorFactoryID), o = r.drawPageTree.getMainRootArea(this);
|
|
37897
37964
|
if (o && r.drawTree.drawPages[o.index]) {
|
|
@@ -50815,32 +50882,36 @@ class VueController {
|
|
|
50815
50882
|
const s = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
50816
50883
|
t.length == 1 && o && (o = !0);
|
|
50817
50884
|
let l = [], c = [];
|
|
50818
|
-
t.map((
|
|
50819
|
-
|
|
50820
|
-
|
|
50821
|
-
|
|
50822
|
-
|
|
50823
|
-
|
|
50824
|
-
|
|
50825
|
-
|
|
50826
|
-
|
|
50827
|
-
|
|
50885
|
+
t.map((g) => (g.name = g.name || "", g.id = g.id || "", g.dataId = g.dataId || "", g.innerIdentifier = g.innerIdentifier || "", g.text ? c.push(g.text) : l.push(g), g));
|
|
50886
|
+
let d = null;
|
|
50887
|
+
const u = (g) => {
|
|
50888
|
+
for (let y = 0; y < g.length; y++) {
|
|
50889
|
+
const w = g[y];
|
|
50890
|
+
if (w instanceof ControlNode && w.nodeType !== 10 && w.nodeType !== 11 || w instanceof TextInputFieldNode)
|
|
50891
|
+
for (let v = 0, C = l.length - 1; v <= C; v++) {
|
|
50892
|
+
const _ = l[v];
|
|
50893
|
+
if (_.name && _.name === w.name || _.id && _.id === w.id || _.dataId && _.dataId === w.dataId || _.innerIdentifier && _.innerIdentifier === w.innerIdentifier) {
|
|
50894
|
+
const E = s.docTree.getNodeLastPath(w.previousLeaf()), T = s.docTree.getNodeLastPath(w), I = StagePosition.getStagePosByPath(this._hoEditorFactoryID, E), M = StagePosition.getStagePosByPath(this._hoEditorFactoryID, T), R = new SelectRange(this.hoEditorFactoryID);
|
|
50895
|
+
R.spStart = I, R.spEnd = M, n.push(R), w instanceof TextInputFieldNode && (d = w);
|
|
50828
50896
|
}
|
|
50829
50897
|
}
|
|
50830
|
-
|
|
50831
|
-
}
|
|
50832
|
-
},
|
|
50833
|
-
for (let
|
|
50834
|
-
|
|
50835
|
-
const
|
|
50836
|
-
|
|
50837
|
-
const
|
|
50838
|
-
for (let
|
|
50839
|
-
|
|
50840
|
-
c.length && c.forEach((
|
|
50841
|
-
const
|
|
50842
|
-
|
|
50843
|
-
}), n.length > 0 && (s.drawTree.drawMultiCustomRange(n, r, !0), o
|
|
50898
|
+
w instanceof BaseCombineNode && u(w.childNodes);
|
|
50899
|
+
}
|
|
50900
|
+
}, f = s.subDocManger.headerDocTree;
|
|
50901
|
+
for (let g = 0; g < f.length; g++)
|
|
50902
|
+
u(f[g].subDocNodes);
|
|
50903
|
+
const p = s.docTree.mainNodes;
|
|
50904
|
+
u(p);
|
|
50905
|
+
const m = s.subDocManger.footerDocTree;
|
|
50906
|
+
for (let g = 0; g < m.length; g++)
|
|
50907
|
+
u(m[g].subDocNodes);
|
|
50908
|
+
if (c.length && c.forEach((g) => {
|
|
50909
|
+
const y = this.searchText(g);
|
|
50910
|
+
y.length > 0 && (n = n.concat(y));
|
|
50911
|
+
}), n.length > 0 && (s.drawTree.drawMultiCustomRange(n, r, !0), o)) {
|
|
50912
|
+
let g = n[n.length - 1].spEnd.path;
|
|
50913
|
+
d && (g = s.docTree.getNodeFirstPath(d)), this.moveCaret(g);
|
|
50914
|
+
}
|
|
50844
50915
|
}
|
|
50845
50916
|
moveCaret(t) {
|
|
50846
50917
|
const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -64619,7 +64690,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64619
64690
|
(function(a) {
|
|
64620
64691
|
function t() {
|
|
64621
64692
|
return function() {
|
|
64622
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64693
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-Cues8l5x.mjs");
|
|
64623
64694
|
}().catch(function(r) {
|
|
64624
64695
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64625
64696
|
}).then(function(r) {
|
|
@@ -72217,6 +72288,8 @@ class HOEditorFactory {
|
|
|
72217
72288
|
// 是否启用绘制优化 默认不启用
|
|
72218
72289
|
b(this, "_defaultIsAllowDelete", !1);
|
|
72219
72290
|
// 元素是否默认可以被删除
|
|
72291
|
+
b(this, "_loadSignImageCount", 0);
|
|
72292
|
+
// 待加载签名图片数量
|
|
72220
72293
|
b(this, "_loadImageCount", 0);
|
|
72221
72294
|
// 待加载的图片数量
|
|
72222
72295
|
b(this, "_loadImageErrorCount", 0);
|
|
@@ -72307,9 +72380,11 @@ class HOEditorFactory {
|
|
|
72307
72380
|
b(this, "shiftKeyPress", !1);
|
|
72308
72381
|
// 是否按下shift
|
|
72309
72382
|
b(this, "watermarkText", "");
|
|
72383
|
+
// 水印内容
|
|
72384
|
+
b(this, "isFixPrint", !1);
|
|
72310
72385
|
this._hoEditorFactoryId = t;
|
|
72311
72386
|
}
|
|
72312
|
-
|
|
72387
|
+
//开启打印优化
|
|
72313
72388
|
/**
|
|
72314
72389
|
* Getter hoLocalStorage
|
|
72315
72390
|
* @return {HoLocalStorage}
|
|
@@ -72655,6 +72730,12 @@ class HOEditorFactory {
|
|
|
72655
72730
|
set loadImageErrorCount(t) {
|
|
72656
72731
|
this._loadImageErrorCount !== t && (this._loadImageErrorCount = t);
|
|
72657
72732
|
}
|
|
72733
|
+
get loadSignImageCount() {
|
|
72734
|
+
return this._loadSignImageCount;
|
|
72735
|
+
}
|
|
72736
|
+
set loadSignImageCount(t) {
|
|
72737
|
+
this._loadSignImageCount !== t && (this._loadSignImageCount = t);
|
|
72738
|
+
}
|
|
72658
72739
|
set loadImageCallback(t) {
|
|
72659
72740
|
this._loadImageCallback = t;
|
|
72660
72741
|
}
|
|
@@ -77112,7 +77193,7 @@ const TableCellProperty = __component__$T.exports, _sfc_main$S = {
|
|
|
77112
77193
|
this.weight = a.formulaStr.split(",")[0], this.height = a.formulaStr.split(",")[1];
|
|
77113
77194
|
else if (this.formula === "labor") {
|
|
77114
77195
|
const t = a.formulaStr.split(",");
|
|
77115
|
-
this.labor1 = t[0], this.labor2 = t[1], this.laborType = 1, t.
|
|
77196
|
+
this.labor1 = t[0], this.labor2 = t[1], this.laborType = 1, t.length === 3 && (this.laborType = 0, this.labor3 = t[2]);
|
|
77116
77197
|
} else if (this.formula === "ftScoreMapping") {
|
|
77117
77198
|
if (a.formulaStr)
|
|
77118
77199
|
try {
|
|
@@ -77181,7 +77262,7 @@ var _sfc_render$S = function a() {
|
|
|
77181
77262
|
var t = this, r = t._self._c;
|
|
77182
77263
|
return r("div", { staticClass: "control-modal-contents table-formula-modal animation-in" }, [r("header", { staticClass: "modal-title" }, [r("span", [t._v(t._s(t.dialogFormTitle))]), r("a-icon", { staticClass: "modal-title-close", attrs: { type: "close" }, on: { click: t.handleClose } })], 1), r("section", { staticClass: "modal-content", staticStyle: { "flex-direction": "column" } }, [r("p", { staticStyle: { padding: "10px 0" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.299", null, "请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234..."))]), r("div", { staticStyle: { padding: "0 0 0 0" } }, [Array.isArray(t.formulaText[t.formula]) ? t._l(t.formulaText[t.formula], function(o, n) {
|
|
77183
77264
|
return r("p", { key: n }, [t._v(t._s(o))]);
|
|
77184
|
-
}) : r("p", [t._v(t._s(t.formulaText[t.formula]))])], 2), t.formula === "sum" || t.formula === "formula" ? r("section", [r("div", { staticStyle: { height: "26px", "line-height": "36px", "font-size": "16px" } }, [t._v(" " + t._s(t.dialogFormTitle) + " ")]), r("div", { staticStyle: { height: "36px", "line-height": "36px" } }, [t._v(`${i18nHelper("04-001-009-EMR.3.3.298", null, "示例:")} ` + t._s(t.dialogFormTitle === i18nHelper("04-001-009-EMR.3.3.300", null, "表格行列求和公式") ? "a1: a2" : "(a1 + a2) * 2"))]), r("a-checkbox", { model: { value: t.isHideZero, callback: function(o) {
|
|
77265
|
+
}) : r("p", [t._v(t._s(t.formulaText[t.formula]))])], 2), t.formula === "sum" || t.formula === "formula" ? r("section", [r("div", { staticStyle: { height: "26px", "line-height": "36px", "font-size": "16px" } }, [t._v(" " + t._s(t.dialogFormTitle) + " ")]), r("div", { staticStyle: { height: "36px", "line-height": "36px" } }, [t._v(`${i18nHelper("04-001-009-EMR.3.3.298", null, "示例:")} ` + t._s(t.dialogFormTitle === i18nHelper("04-001-009-EMR.3.3.300", null, "表格行列求和公式") ? "a1: a2" : "(a1 + a2) * 2") + " ")]), r("a-checkbox", { model: { value: t.isHideZero, callback: function(o) {
|
|
77185
77266
|
t.isHideZero = o;
|
|
77186
77267
|
}, expression: "isHideZero" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.297", null, "结果为 0 不显示"))]), r("p", { staticStyle: { height: "10px" } }), r("a-input", { attrs: { autocomplete: "off" }, model: { value: t.simpleFormula, callback: function(o) {
|
|
77187
77268
|
t.simpleFormula = o;
|
|
@@ -77219,7 +77300,7 @@ var _sfc_render$S = function a() {
|
|
|
77219
77300
|
t.bodySurfaceAreaWeight = o;
|
|
77220
77301
|
}, expression: "bodySurfaceAreaWeight" } })], 1), t.bodySurfaceAreaType == "1" || t.bodySurfaceAreaType == "2" ? r("div", { staticClass: "ho-table-features-list" }, [r("p", [t._v(i18nHelper("04-001-009-EMR.3.3.293", null, "身高"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "cm" }, model: { value: t.bodySurfaceAreaHeight, callback: function(o) {
|
|
77221
77302
|
t.bodySurfaceAreaHeight = o;
|
|
77222
|
-
}, expression: "bodySurfaceAreaHeight" } })], 1) : t._e()], 1) : t.formula === "idealWeight" ? r("section", [r("div", { staticStyle: { height: "36px", "line-height": "36px" } }, [t._v("示例:理想体重 = (身高cm)-105")]), r("div", { staticStyle: { height: "36px", "line-height": "36px" } }, [t._v("范围 = (0.9 * (身高(cm) - 105)) ~ (1.1 * (身高(cm) - 105)), 计算结果小于0时, 显示“?”")]), r("div", { staticClass: "ho-table-features-list" }, [r("span", { staticStyle: { "margin-right": "34px" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.293", null, "身高"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "cm" }, model: { value: t.idealWeightHeight, callback: function(o) {
|
|
77303
|
+
}, expression: "bodySurfaceAreaHeight" } })], 1) : t._e()], 1) : t.formula === "idealWeight" ? r("section", [r("div", { staticStyle: { height: "36px", "line-height": "36px" } }, [t._v("示例:理想体重 = (身高cm)-105")]), r("div", { staticStyle: { height: "36px", "line-height": "36px" } }, [t._v("范围 = (0.9 * (身高(cm) - 105)) ~ (1.1 * (身高(cm) - 105)), 计算结果小于0时, 显示“?” ")]), r("div", { staticClass: "ho-table-features-list" }, [r("span", { staticStyle: { "margin-right": "34px" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.293", null, "身高"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "cm" }, model: { value: t.idealWeightHeight, callback: function(o) {
|
|
77223
77304
|
t.idealWeightHeight = o;
|
|
77224
77305
|
}, expression: "idealWeightHeight" } })], 1), r("div", [r("span", { staticStyle: { "margin-right": "10px" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.258", null, "显示范围"))]), r("a-checkbox", { model: { value: t.displayRange, callback: function(o) {
|
|
77225
77306
|
t.displayRange = o;
|