hoeditor-web 3.2.27 → 3.2.29
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-BSu6xkui.mjs";
|
|
3
3
|
export {
|
|
4
4
|
i as HoDocs,
|
|
5
5
|
r as HoEditorProvide,
|
|
@@ -10072,31 +10072,32 @@ class DrawTableFormularChart extends DrawCombineNode {
|
|
|
10072
10072
|
this.dNode = n, this.hoEditfactoryId = r, n.formularType == FormularType$1.ftCurveChart && (this.dWidth = Number((s = n.formularProperty) == null ? void 0 : s.width) || 100, this.formularProperty = n.formularProperty, this.drawCurveChart());
|
|
10073
10073
|
}
|
|
10074
10074
|
getCell(r, o) {
|
|
10075
|
-
var
|
|
10075
|
+
var p, m, g;
|
|
10076
10076
|
const [n, s] = this.dNode.getRowColByCellAdress(o[0]), [l, c] = this.dNode.getRowColByCellAdress(o[1]);
|
|
10077
|
-
let d = !1;
|
|
10078
|
-
const
|
|
10077
|
+
let d = !1, u = !1;
|
|
10078
|
+
const f = [];
|
|
10079
10079
|
if (this.formularProperty) {
|
|
10080
|
-
let
|
|
10080
|
+
let y = [];
|
|
10081
10081
|
if (n >= 0 && s >= 0 && l >= 0 && c >= 0 && (n === l || s === c))
|
|
10082
|
-
for (let
|
|
10083
|
-
for (let
|
|
10084
|
-
const
|
|
10085
|
-
if (
|
|
10086
|
-
d =
|
|
10087
|
-
let
|
|
10088
|
-
d || (
|
|
10082
|
+
for (let w = n; w <= l; w++)
|
|
10083
|
+
for (let v = s; v <= c; v++) {
|
|
10084
|
+
const C = r.rows[w][v];
|
|
10085
|
+
if (C) {
|
|
10086
|
+
d = C.cellProperty.notAllowEdit || !1, u = C.cellProperty.isDisabled || !1;
|
|
10087
|
+
let _ = C.getCellText();
|
|
10088
|
+
d || u || (_ = _.replace(/\+|-/g, ""), _ && (_ > this.formularProperty.max ? (_ = "", (p = C.drawCell.drawPageCells[0]) == null || p.paintBackColor(!0), y.push(`【${w}行 ${v} 列】`)) : _ < this.formularProperty.min ? (_ = "", y.push(`【${w}行 ${v} 列】`), (m = C.drawCell.drawPageCells[0]) == null || m.paintBackColor(!0)) : (g = C.drawCell.drawPageCells[0]) == null || g.paintBackColor(!1))), f.push(_);
|
|
10089
10089
|
}
|
|
10090
10090
|
}
|
|
10091
|
-
|
|
10091
|
+
y.length > 0 && (message.destroy(), message.error(`以下单元格的值超出曲线图设置的范围【${this.formularProperty.min}~${this.formularProperty.max}】:${y.join("、")}`));
|
|
10092
10092
|
}
|
|
10093
10093
|
return {
|
|
10094
|
+
isDisabled: u,
|
|
10094
10095
|
notAllowEdit: d,
|
|
10095
10096
|
startRow: n,
|
|
10096
10097
|
startCol: s,
|
|
10097
10098
|
endRow: l,
|
|
10098
10099
|
endCol: c,
|
|
10099
|
-
list:
|
|
10100
|
+
list: f
|
|
10100
10101
|
};
|
|
10101
10102
|
}
|
|
10102
10103
|
drawCurveChart() {
|
|
@@ -10625,32 +10626,43 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
|
|
|
10625
10626
|
}
|
|
10626
10627
|
return t;
|
|
10627
10628
|
}
|
|
10629
|
+
getHeightNum(t) {
|
|
10630
|
+
if (t) {
|
|
10631
|
+
const r = this.getParentCell().table;
|
|
10632
|
+
let o = 0;
|
|
10633
|
+
const [n, s] = this.getRowColByCellAdress(t);
|
|
10634
|
+
if (n >= 0 && s >= 0 && r.rows[n] && r.rows[n][s]) {
|
|
10635
|
+
const [c, d] = this.getCellNumber(r, n, s);
|
|
10636
|
+
if (c && d)
|
|
10637
|
+
return o = Number(d), o;
|
|
10638
|
+
}
|
|
10639
|
+
}
|
|
10640
|
+
return !1;
|
|
10641
|
+
}
|
|
10628
10642
|
clacBodySurfaceArea() {
|
|
10629
10643
|
let t = " ";
|
|
10630
10644
|
const r = this.getParentCell().table;
|
|
10631
10645
|
this.formulaStr == "" && message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.442", null, "体重的单元格编号传入有误:") + this.formulaStr);
|
|
10632
10646
|
const o = this.formulaStr.split("__");
|
|
10633
|
-
let n, s, l
|
|
10647
|
+
let n, s, l = 0;
|
|
10634
10648
|
if (o[0] && ([n, s] = this.getRowColByCellAdress(o[0]), n >= 0 && s >= 0)) {
|
|
10635
10649
|
if (!r.rows[n]) return t;
|
|
10636
10650
|
if (r.rows[n][s]) {
|
|
10637
|
-
const [
|
|
10638
|
-
|
|
10639
|
-
}
|
|
10640
|
-
}
|
|
10641
|
-
if (o[2]
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
}
|
|
10653
|
-
}
|
|
10651
|
+
const [d, u] = this.getCellNumber(r, n, s);
|
|
10652
|
+
d && u && (l = Number(u));
|
|
10653
|
+
}
|
|
10654
|
+
}
|
|
10655
|
+
if (o[2] == "2") {
|
|
10656
|
+
const c = this.getHeightNum(o[1]);
|
|
10657
|
+
if (typeof c == "number" && l)
|
|
10658
|
+
return (7184e-6 * Math.pow(l, 0.425) * Math.pow(c, 0.725)).toFixed(4);
|
|
10659
|
+
} else if (o[2] != "1" && l) {
|
|
10660
|
+
let c = 0;
|
|
10661
|
+
return l > 30 ? c = 1.05 + (l - 30) * 0.02 : c = 0.035 * l + 0.1, c.toFixed(2);
|
|
10662
|
+
} else if (l) {
|
|
10663
|
+
const c = this.getHeightNum(o[1]);
|
|
10664
|
+
if (typeof c == "number")
|
|
10665
|
+
return (61e-4 * c + 0.0128 * l - 0.1529).toFixed(4);
|
|
10654
10666
|
}
|
|
10655
10667
|
return t;
|
|
10656
10668
|
}
|
|
@@ -14897,7 +14909,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
14897
14909
|
}
|
|
14898
14910
|
}
|
|
14899
14911
|
}
|
|
14900
|
-
const version = "3.2.
|
|
14912
|
+
const version = "3.2.29";
|
|
14901
14913
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
14902
14914
|
class SignNode extends BaseNode {
|
|
14903
14915
|
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) {
|
|
@@ -17204,7 +17216,8 @@ class CellNode extends RectNode {
|
|
|
17204
17216
|
diagonalType: this.cellProperty.diagonalType,
|
|
17205
17217
|
formula: this.cellProperty.formula,
|
|
17206
17218
|
isSignLock: this.cellProperty.isSignLock,
|
|
17207
|
-
notAllowEdit: this.cellProperty.notAllowEdit
|
|
17219
|
+
notAllowEdit: this.cellProperty.notAllowEdit,
|
|
17220
|
+
isDisabled: this.cellProperty.isDisabled
|
|
17208
17221
|
}, u = JSON.parse(JSON.stringify(d)), f = Object.keys(s);
|
|
17209
17222
|
for (let v = 0; v < f.length; v++)
|
|
17210
17223
|
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]];
|
|
@@ -19285,7 +19298,7 @@ class ColProperty {
|
|
|
19285
19298
|
}
|
|
19286
19299
|
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 || {});
|
|
19287
19300
|
class CellProperty {
|
|
19288
|
-
|
|
19301
|
+
//是否禁用
|
|
19289
19302
|
constructor(objectValues) {
|
|
19290
19303
|
//private _lightCellBorders = false;//突出显示单元格边框
|
|
19291
19304
|
b(this, "_customProperties", []);
|
|
@@ -19323,6 +19336,8 @@ class CellProperty {
|
|
|
19323
19336
|
b(this, "signed", /* @__PURE__ */ new Map());
|
|
19324
19337
|
//是否已签名 运行时属性
|
|
19325
19338
|
b(this, "notAllowEdit", !1);
|
|
19339
|
+
//是否禁止编辑
|
|
19340
|
+
b(this, "isDisabled", !1);
|
|
19326
19341
|
if (objectValues !== "") {
|
|
19327
19342
|
const valuesObj = eval("(" + objectValues + ")"), assignvalue = (target, source) => {
|
|
19328
19343
|
Object.keys(source).forEach((value) => {
|
|
@@ -38106,73 +38121,75 @@ const scaleXY = DrawConfig.instance().scale, defaultWidth = Math.floor(793 * sca
|
|
|
38106
38121
|
* 鼠标click事件
|
|
38107
38122
|
*/
|
|
38108
38123
|
mouseClickEvent(a) {
|
|
38109
|
-
var
|
|
38124
|
+
var l, c, d;
|
|
38110
38125
|
const t = HOEditorFactorys.instance().getFactory(this.hoEditorId);
|
|
38111
38126
|
if (!a.clickType || a.clickType === "move") return !1;
|
|
38112
38127
|
const r = document.querySelector("#ho_paragrapgh_tip");
|
|
38113
|
-
r && ((
|
|
38128
|
+
r && ((l = r.parentNode) == null || l.removeChild(r));
|
|
38114
38129
|
const o = a.node, n = t.drawTree.paintStatus;
|
|
38115
|
-
if (this.selectMarkStyle.display = "none", this.poperClose(),
|
|
38116
|
-
|
|
38117
|
-
|
|
38118
|
-
|
|
38119
|
-
|
|
38120
|
-
|
|
38121
|
-
|
|
38122
|
-
|
|
38123
|
-
|
|
38124
|
-
|
|
38125
|
-
|
|
38126
|
-
|
|
38127
|
-
|
|
38128
|
-
|
|
38129
|
-
|
|
38130
|
-
|
|
38131
|
-
|
|
38132
|
-
|
|
38133
|
-
|
|
38134
|
-
|
|
38135
|
-
|
|
38136
|
-
|
|
38137
|
-
|
|
38138
|
-
|
|
38139
|
-
|
|
38140
|
-
|
|
38141
|
-
|
|
38142
|
-
|
|
38143
|
-
|
|
38144
|
-
|
|
38145
|
-
|
|
38146
|
-
|
|
38147
|
-
|
|
38148
|
-
|
|
38149
|
-
|
|
38150
|
-
|
|
38151
|
-
|
|
38152
|
-
|
|
38153
|
-
|
|
38154
|
-
|
|
38155
|
-
|
|
38156
|
-
|
|
38157
|
-
|
|
38158
|
-
|
|
38159
|
-
|
|
38160
|
-
|
|
38161
|
-
|
|
38162
|
-
|
|
38163
|
-
|
|
38164
|
-
|
|
38165
|
-
|
|
38166
|
-
|
|
38167
|
-
|
|
38168
|
-
|
|
38169
|
-
|
|
38170
|
-
|
|
38130
|
+
if (this.selectMarkStyle.display = "none", this.poperClose(), (n == PaintState.psEdit || n == PaintState.psTrace) && this.isCanEdit())
|
|
38131
|
+
return;
|
|
38132
|
+
if (((d = (c = o == null ? void 0 : o._parentNode) == null ? void 0 : c.cellProperty) == null ? void 0 : d.isDisabled) || !1)
|
|
38133
|
+
return this.$message.error("当前单元格已禁止编辑!"), !0;
|
|
38134
|
+
if (o && o !== null) {
|
|
38135
|
+
const u = a.pageIndex;
|
|
38136
|
+
if (a.clickType === "dblclick")
|
|
38137
|
+
o instanceof BaseNode && setTimeout(() => {
|
|
38138
|
+
this.dblclickModal(o, "dblclick", u);
|
|
38139
|
+
}, 150);
|
|
38140
|
+
else if (a.clickType === "leftclick" && o instanceof BaseNode) {
|
|
38141
|
+
if (this.selectMarkStyle = { display: "none" }, n === PaintState.psReadOnly)
|
|
38142
|
+
return !1;
|
|
38143
|
+
this.textStyles.changeCount++, this.$emit("setFontStyles", {});
|
|
38144
|
+
const f = t.vueController.getDomRange(), [p, m] = f.inSameTable();
|
|
38145
|
+
if (this.nextCellButton = !1, p && (n == PaintState.psDesign || n == PaintState.psEdit || n == PaintState.psTrace) ? (this.cellButton || this.createAddCellButton(o, u), this.createAddNextCellButton(o, u)) : this.cellButton = !1, (n == PaintState.psEdit || n == PaintState.psTrace) && (o.nodeType == 18 ? this.$emit("leftclick", {
|
|
38146
|
+
name: o.name,
|
|
38147
|
+
linkId: o.fileId,
|
|
38148
|
+
nodeType: o.nodeType,
|
|
38149
|
+
type: "link"
|
|
38150
|
+
}) : (o instanceof TextNode || o instanceof MarkNode && o.MarkNodeType !== 2) && o.parentNode && o.parentNode instanceof TextInputFieldNode && (this.$emit("leftclick", {
|
|
38151
|
+
name: o.parentNode.name,
|
|
38152
|
+
nodeType: o.parentNode.nodeType,
|
|
38153
|
+
type: "TextInputFieldNode"
|
|
38154
|
+
}), this.$nextTick(() => {
|
|
38155
|
+
this.createSelectMark(o, t.drawTree.paintStatus, u);
|
|
38156
|
+
}))), n == PaintState.psEdit && t.emitClickEvent) {
|
|
38157
|
+
const g = o.parentNode;
|
|
38158
|
+
if (g && g instanceof TextInputFieldNode && g.canModifyContent) {
|
|
38159
|
+
let y = `${g.id}-${g.name}-${g.dataId}-${g.innerIdentifier}`;
|
|
38160
|
+
this.currentElement != y && (this.currentElement = y, this.$emit("clickEvents", {
|
|
38161
|
+
id: g.id,
|
|
38162
|
+
name: g.name,
|
|
38163
|
+
dataId: g.dataId,
|
|
38164
|
+
innerIdentifier: g.innerIdentifier,
|
|
38165
|
+
pageIndex: u,
|
|
38166
|
+
x: t.drawTree.caret.X,
|
|
38167
|
+
y: t.drawTree.caret.Y,
|
|
38168
|
+
height: t.drawTree.caret.height,
|
|
38169
|
+
caretId: "ho_caret",
|
|
38170
|
+
parentName: "edit-container",
|
|
38171
|
+
isInElement: !0
|
|
38172
|
+
}));
|
|
38173
|
+
} else {
|
|
38174
|
+
let y = "";
|
|
38175
|
+
this.currentElement != y && (this.currentElement = y, this.$emit("clickEvents", {
|
|
38176
|
+
id: "",
|
|
38177
|
+
name: "",
|
|
38178
|
+
dataId: "",
|
|
38179
|
+
innerIdentifier: "",
|
|
38180
|
+
pageIndex: u,
|
|
38181
|
+
x: t.drawTree.caret.X,
|
|
38182
|
+
y: t.drawTree.caret.Y,
|
|
38183
|
+
height: t.drawTree.caret.height,
|
|
38184
|
+
caretId: "ho_caret",
|
|
38185
|
+
parentName: "edit-container",
|
|
38186
|
+
isInElement: !1
|
|
38187
|
+
}));
|
|
38171
38188
|
}
|
|
38172
|
-
}
|
|
38173
|
-
}
|
|
38174
|
-
return !0;
|
|
38189
|
+
}
|
|
38190
|
+
} else a.clickType;
|
|
38175
38191
|
}
|
|
38192
|
+
return !0;
|
|
38176
38193
|
},
|
|
38177
38194
|
getCurrentSelectNode() {
|
|
38178
38195
|
var o;
|
|
@@ -38334,7 +38351,7 @@ const scaleXY = DrawConfig.instance().scale, defaultWidth = Math.floor(793 * sca
|
|
|
38334
38351
|
const s = (p) => {
|
|
38335
38352
|
this.computedPoperPosition(a, o), Array.isArray(p) && p.length > 0 ? this.poperSelectList = Object.freeze(p) : this.poperSelectList = n.filter((m) => m.value || m.text), this.poperType = "selectPoper";
|
|
38336
38353
|
};
|
|
38337
|
-
t.customProperty && t.customProperty.hasThirdData == !0 ? this.$emit("dblNodeClick", { setActiveDoc: this.setActiveDocIndex, node: this.getCurrentSelectNode, type: "textlist", callback: s, paintStatus: r }) : s(void 0);
|
|
38354
|
+
t.customProperty && t.customProperty.hasThirdData == !0 ? this.$emit("dblNodeClick", { setActiveDoc: this.setActiveDocIndex, node: this.getCurrentSelectNode, type: "textlist", callback: s, paintStatus: r }) : (this.$emit("dblNodeClick", { setActiveDoc: this.setActiveDocIndex, node: this.getCurrentSelectNode, type: "edit_text_list", paintStatus: r }), s(void 0));
|
|
38338
38355
|
},
|
|
38339
38356
|
createAddCellButton(a, t) {
|
|
38340
38357
|
let r = null;
|
|
@@ -39599,23 +39616,30 @@ class HTMLconverter2 {
|
|
|
39599
39616
|
}
|
|
39600
39617
|
for (let y = 0; y < g.length; y++) {
|
|
39601
39618
|
const w = new Array(), v = Array.from(g[y].children);
|
|
39602
|
-
|
|
39603
|
-
|
|
39604
|
-
|
|
39605
|
-
|
|
39606
|
-
|
|
39619
|
+
let C = [];
|
|
39620
|
+
for (let _ = 0; _ < v.length; _++) {
|
|
39621
|
+
const S = parseInt(v[_].getAttribute("colspan") || "1");
|
|
39622
|
+
if (C.push(v[_]), S > 1) {
|
|
39623
|
+
const E = Array(S - 1).fill(void 0);
|
|
39624
|
+
C = C.concat(E);
|
|
39625
|
+
}
|
|
39626
|
+
}
|
|
39627
|
+
for (let _ = 0; _ < d; _++)
|
|
39628
|
+
if (C[_]) {
|
|
39629
|
+
const S = parseInt(C[_].getAttribute("rowspan") || "1"), E = parseInt(C[_].getAttribute("colspan") || "1");
|
|
39630
|
+
if (S > 1)
|
|
39631
|
+
for (let T = y + 1; T < y + S; T++)
|
|
39607
39632
|
f.push({
|
|
39608
|
-
rowCount:
|
|
39609
|
-
colCount:
|
|
39633
|
+
rowCount: T,
|
|
39634
|
+
colCount: _
|
|
39610
39635
|
});
|
|
39611
|
-
if (
|
|
39612
|
-
for (let
|
|
39636
|
+
if (E > 1)
|
|
39637
|
+
for (let T = _ + 1; T < _ + E; T++)
|
|
39613
39638
|
u.push({
|
|
39614
39639
|
rowCount: y,
|
|
39615
|
-
colCount:
|
|
39640
|
+
colCount: T
|
|
39616
39641
|
});
|
|
39617
|
-
}
|
|
39618
|
-
v[C] = void 0;
|
|
39642
|
+
}
|
|
39619
39643
|
w.push(...v), l.push(w);
|
|
39620
39644
|
}
|
|
39621
39645
|
}
|
|
@@ -49268,6 +49292,9 @@ class VueController {
|
|
|
49268
49292
|
const l = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), c = l.docTree.curDomRange, d = c.normalize().startPath, u = c.normalize().endPath, f = new NodeChangingEvent(DocAction.daInsert, d, u, OperType.openXml);
|
|
49269
49293
|
l.openXmled = !0, l.docTree.changing(f) && (await l.docController.initBlankDoc(), l.drawTree.inViewPages = [0], t || (t = this.emptyXml), t && t.includes("<?xml version") ? await l.structureConvert.openXml(t, r, o, s) : t && await l.structureConvert.openXml(Base64.decode(t), r, o, s));
|
|
49270
49294
|
}
|
|
49295
|
+
useFixedOpenXml(t) {
|
|
49296
|
+
this.setHoEditorFactoryParams({ useFixTableMerge: !0 }, void 0), this.openXml(t);
|
|
49297
|
+
}
|
|
49271
49298
|
getSubDocImg(t, r) {
|
|
49272
49299
|
const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
49273
49300
|
let n = o.subDocManger.getSubDocCopyDrawArea(t, r);
|
|
@@ -52921,6 +52948,8 @@ class EditController {
|
|
|
52921
52948
|
message.destroy();
|
|
52922
52949
|
const d = t.docTree.getFinalParentNode(n.startPath);
|
|
52923
52950
|
if (d && d instanceof CellNode) {
|
|
52951
|
+
if (d.cellProperty.isDisabled)
|
|
52952
|
+
return message.error("当前单元格已禁止编辑!"), !1;
|
|
52924
52953
|
if (d.cellProperty.notAllowEdit)
|
|
52925
52954
|
return message.error("当前单元格已设置不允许编辑!"), !1;
|
|
52926
52955
|
if (d.table.tableProperty.isSignLock) {
|
|
@@ -64161,7 +64190,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
64161
64190
|
(function(a) {
|
|
64162
64191
|
function t() {
|
|
64163
64192
|
return function() {
|
|
64164
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
64193
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-Ch-T0w8y.mjs");
|
|
64165
64194
|
}().catch(function(r) {
|
|
64166
64195
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
64167
64196
|
}).then(function(r) {
|
|
@@ -76235,11 +76264,11 @@ var _sfc_render$S = function a() {
|
|
|
76235
76264
|
}, expression: "item.range[1]" } }), r("span", { staticStyle: { padding: "0 10px" } }, [t._v(" :")]), r("a-input", { staticClass: "ft-score-mapping-input ft-score-mapping-textarea", staticStyle: { width: "173px" }, attrs: { type: "textarea", autocomplete: "off" }, model: { value: o.text, callback: function(s) {
|
|
76236
76265
|
t.$set(o, "text", s);
|
|
76237
76266
|
}, expression: "item.text" } })], 1);
|
|
76238
|
-
}), r("li", [r("a-button", { on: { click: t.addFtScoreMappingItem } }, [r("a-icon", { staticStyle: { "font-size": "20px" }, attrs: { type: "folder-add" } })], 1)], 1)], 2)])]) : t.formula === "bodySurfaceArea" ? r("section", [t._m(0), r("a-radio-group", { staticStyle: { "font-size": "14px" }, attrs: { size: "large" }, model: { value: t.bodySurfaceAreaType, callback: function(o) {
|
|
76267
|
+
}), r("li", [r("a-button", { on: { click: t.addFtScoreMappingItem } }, [r("a-icon", { staticStyle: { "font-size": "20px" }, attrs: { type: "folder-add" } })], 1)], 1)], 2)])]) : t.formula === "bodySurfaceArea" ? r("section", [r("div", { staticStyle: { "line-height": "20px", "font-size": "14px" } }, [r("div", { directives: [{ name: "show", rawName: "v-show", value: t.bodySurfaceAreaType == "0", expression: "bodySurfaceAreaType == '0'" }] }, [r("p", { staticStyle: { "font-weight": "bold" } }, [t._v(" 体表面积公式1: ")]), r("p", [t._v(" ")]), r("p", { staticStyle: { "margin-bottom": "6px" } }, [t._v("体重 > 30kg "), r("a-tag", { attrs: { color: "blue" } }, [t._v("BSA (m²) = 1.05 + (体重(kg) - 30) * 0.02")])], 1), r("p", [t._v("体重 <= 30kg "), r("a-tag", { attrs: { color: "blue" } }, [t._v("BSA (m²) = 0.035 * 体重(kg) + 0.1")])], 1), r("p", [t._v(" ")])]), r("div", { directives: [{ name: "show", rawName: "v-show", value: t.bodySurfaceAreaType == "1", expression: "bodySurfaceAreaType == '1'" }] }, [t._m(0), r("p", [t._v(" ")]), r("p", [t._v("许文生公式(Mosteller 简化版): "), r("a-tag", { attrs: { color: "blue" } }, [t._v("BSA (m²) = 0.0061*身高 (cm) +0.0128*体重(kg) -0.1529")])], 1), r("p", [t._v(" ")])]), r("div", { directives: [{ name: "show", rawName: "v-show", value: t.bodySurfaceAreaType == "2", expression: "bodySurfaceAreaType == '2'" }] }, [r("p", { staticStyle: { "font-weight": "bold" } }, [t._v(" 体表面积公式3: ")]), r("p", [t._v(" ")]), r("p", [t._v("杜波依斯公式(DuBois): "), r("a-tag", { attrs: { color: "blue" } }, [t._v("BSA (m²) = 0.007184 * ( 体重(kg)"), r("sup", [t._v("0.425")]), t._v(" * 身高(cm)"), r("sup", [t._v("0.725")]), t._v(" )")])], 1), r("p", [t._v(" ")])])]), r("a-radio-group", { staticStyle: { "font-size": "14px" }, attrs: { size: "large" }, model: { value: t.bodySurfaceAreaType, callback: function(o) {
|
|
76239
76268
|
t.bodySurfaceAreaType = o;
|
|
76240
|
-
}, expression: "bodySurfaceAreaType" } }, [r("a-radio", { attrs: { value: "0" } }, [t._v("体表面积公式1")]), r("a-radio", { attrs: { value: "1" } }, [t._v("体表面积公式2"), r("span", { staticStyle: { color: "red" } }, [t._v("(推荐)")])])], 1), r("div", { staticClass: "ho-table-features-list" }, [r("p", [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.292", null, "体重"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "kg" }, model: { value: t.bodySurfaceAreaWeight, callback: function(o) {
|
|
76269
|
+
}, expression: "bodySurfaceAreaType" } }, [r("a-radio", { attrs: { value: "0" } }, [t._v("体表面积公式1")]), r("a-radio", { attrs: { value: "1" } }, [t._v("体表面积公式2"), r("span", { staticStyle: { color: "red" } }, [t._v("(推荐)")])]), r("a-radio", { attrs: { value: "2" } }, [t._v("体表面积公式3")])], 1), r("div", { staticClass: "ho-table-features-list" }, [r("p", [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.292", null, "体重"))]), r("a-input", { attrs: { autocomplete: "off", "addon-after": "kg" }, model: { value: t.bodySurfaceAreaWeight, callback: function(o) {
|
|
76241
76270
|
t.bodySurfaceAreaWeight = o;
|
|
76242
|
-
}, expression: "bodySurfaceAreaWeight" } })], 1), t.bodySurfaceAreaType == "1" ? r("div", { staticClass: "ho-table-features-list" }, [r("p", [t._v(/* @__PURE__ */ 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) {
|
|
76271
|
+
}, expression: "bodySurfaceAreaWeight" } })], 1), t.bodySurfaceAreaType == "1" || t.bodySurfaceAreaType == "2" ? r("div", { staticClass: "ho-table-features-list" }, [r("p", [t._v(/* @__PURE__ */ 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) {
|
|
76243
76272
|
t.bodySurfaceAreaHeight = o;
|
|
76244
76273
|
}, 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(/* @__PURE__ */ 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) {
|
|
76245
76274
|
t.idealWeightHeight = o;
|
|
@@ -76276,7 +76305,7 @@ var _sfc_render$S = function a() {
|
|
|
76276
76305
|
}, expression: "curve.lineColor" } })], 1)]) : t._e()]), r("footer", { staticClass: "ho-modal-footer" }, [r("a-button", { attrs: { type: "primary" }, on: { click: t.sure } }, [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.347", null, "确定"))]), r("a-button", { staticStyle: { "margin-left": "30px" }, on: { click: t.handleClose } }, [t._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.346", null, "取消"))])], 1)]);
|
|
76277
76306
|
}, _sfc_staticRenderFns$S = [function() {
|
|
76278
76307
|
var a = this, t = a._self._c;
|
|
76279
|
-
return t("
|
|
76308
|
+
return t("p", { staticStyle: { "font-weight": "bold" } }, [a._v(" 体表面积公式2: "), t("span", { staticStyle: { color: "red" } }, [a._v("(推荐)")])]);
|
|
76280
76309
|
}, function() {
|
|
76281
76310
|
var a = this, t = a._self._c;
|
|
76282
76311
|
return t("p", { staticStyle: { "margin-top": "10px" } }, [t("span", [a._v(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.254", null, "单元格编号"))]), a._v(":")]);
|
|
@@ -85578,7 +85607,7 @@ var _sfc_render$3 = function a() {
|
|
|
85578
85607
|
var t = this, r = t._self._c;
|
|
85579
85608
|
return t._self._setupProxy, r("div", { ref: "hoEmrToolBarBox", staticClass: "ho-emr-toolbar-box ho-toolbar-box" }, [r("div", { ref: "hoEmrToolLeft", staticClass: "ho-emr-tool-left" }, [t._t("HoToolLeft")], 2), r("div", { staticClass: "ho-emr-tool-list ho-emr-tool-center" }, [t._l(t.toolList, function(o, n) {
|
|
85580
85609
|
return [r("HoToolItem", { key: n, attrs: { tool: o, fontInfo: t.fontInfo, vueController: t.vueController } })];
|
|
85581
|
-
}), r("div", { staticClass: "ho-emr-tool-item" }, [r("a-dropdown", { ref: "hoEmrToolMore", attrs: { trigger: ["hover"], overlayClassName: "ho-emr-tool-more-dropdown", placement: "
|
|
85610
|
+
}), r("div", { staticClass: "ho-emr-tool-item" }, [r("a-dropdown", { ref: "hoEmrToolMore", attrs: { trigger: ["hover"], overlayClassName: "ho-emr-tool-more-dropdown", placement: "bottomCenter", arrow: "" }, model: { value: t.moreVisible, callback: function(o) {
|
|
85582
85611
|
t.moreVisible = o;
|
|
85583
85612
|
}, expression: "moreVisible" } }, [r("a", { staticClass: "ant-dropdown-link", on: { click: (o) => o.preventDefault() } }, [r("a-icon", { attrs: { type: "ellipsis" } })], 1), r("div", { staticClass: "ho-emr-tool-more", attrs: { slot: "overlay" }, slot: "overlay" }, [r("div", { staticClass: "ho-emr-tool-list", on: { click: t.hoEmrToolMoreItemClick } }, [t._l(t.moreList, function(o) {
|
|
85584
85613
|
return [r("HoToolItem", { key: o.name, attrs: { tool: o, fontInfo: t.fontInfo, vueController: t.vueController } })];
|