hoeditor-web 3.3.7-beta.4 → 3.3.7-beta.5
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 { B as e, H as i, d as r, b as t, a as l, e as H, T as d, f as n, i as B } from "./index-
|
|
2
|
+
import { B as e, H as i, d as r, b as t, a as l, e as H, T as d, f as n, i as B } from "./index-9QnyGP1T.mjs";
|
|
3
3
|
export {
|
|
4
4
|
e as BusinessDataKeys,
|
|
5
5
|
i as HoDocs,
|
|
@@ -23058,7 +23058,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
23058
23058
|
(function(a) {
|
|
23059
23059
|
function t() {
|
|
23060
23060
|
return function() {
|
|
23061
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
23061
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-B3_PHFFl.mjs");
|
|
23062
23062
|
}().catch(function(r) {
|
|
23063
23063
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
23064
23064
|
}).then(function(r) {
|
|
@@ -24653,7 +24653,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
24653
24653
|
}
|
|
24654
24654
|
}
|
|
24655
24655
|
}
|
|
24656
|
-
const version = "3.3.7-beta.
|
|
24656
|
+
const version = "3.3.7-beta.5";
|
|
24657
24657
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
24658
24658
|
class SignNode extends BaseNode {
|
|
24659
24659
|
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) {
|
|
@@ -27625,7 +27625,19 @@ class RadioAndCheckBoxNode extends ControlNode {
|
|
|
27625
27625
|
return this._associatedElement;
|
|
27626
27626
|
}
|
|
27627
27627
|
set associatedElement(t) {
|
|
27628
|
-
|
|
27628
|
+
const r = Array.isArray(t) ? t.filter((o) => o != null && o !== "").join(",") : t;
|
|
27629
|
+
this._associatedElement !== r && (this._associatedElement = r);
|
|
27630
|
+
}
|
|
27631
|
+
/**
|
|
27632
|
+
* 关联后必填的元素id列表(支持多选)
|
|
27633
|
+
* 存盘/实例化仍为逗号拼接的字符串,保证与旧文档、旧版本编辑器兼容
|
|
27634
|
+
*/
|
|
27635
|
+
get associatedElementList() {
|
|
27636
|
+
return this._associatedElement ? this._associatedElement.split(",").filter((t) => t !== "") : [];
|
|
27637
|
+
}
|
|
27638
|
+
set associatedElementList(t) {
|
|
27639
|
+
const r = Array.isArray(t) ? t : t ? [t] : [];
|
|
27640
|
+
this.associatedElement = r.filter((o) => o != null && o !== "").join(",");
|
|
27629
27641
|
}
|
|
27630
27642
|
get associatedShowElement() {
|
|
27631
27643
|
return this._associatedShowElement;
|
|
@@ -41028,8 +41040,8 @@ class DrawTree {
|
|
|
41028
41040
|
if (s.table.tableProperty.isSignLock && s.table.tableProperty.isLock)
|
|
41029
41041
|
return message.destroy(), message.warn(i18nHelper("04-001-009-EMR.3.3.436", null, "表格已完成签名,不允许修改编辑。")), !0;
|
|
41030
41042
|
{
|
|
41031
|
-
const
|
|
41032
|
-
if (
|
|
41043
|
+
const g = s.row.indexOf(s), y = s.table.colInfos[g].colProperty;
|
|
41044
|
+
if (y.isSignLock && y.isLock)
|
|
41033
41045
|
return message.destroy(), message.warn(i18nHelper("04-001-009-EMR.3.3.435", null, "当前列已完成签名,不允许修改编辑。")), !0;
|
|
41034
41046
|
}
|
|
41035
41047
|
}
|
|
@@ -41044,22 +41056,22 @@ class DrawTree {
|
|
|
41044
41056
|
else
|
|
41045
41057
|
return !0;
|
|
41046
41058
|
else {
|
|
41047
|
-
const
|
|
41048
|
-
let
|
|
41049
|
-
if (
|
|
41050
|
-
|
|
41051
|
-
}),
|
|
41052
|
-
if (
|
|
41053
|
-
if (
|
|
41054
|
-
|
|
41059
|
+
const g = r.docTree.radioAndCheckBoxsMap;
|
|
41060
|
+
let y = [], w = [];
|
|
41061
|
+
if (g.forEach((v, C) => {
|
|
41062
|
+
v.controlStyle === o.controlStyle && v.controlStyle === "CheckBox" && v.groupName === l && (w.includes(v.groupType) || w.push(v.groupType));
|
|
41063
|
+
}), g.forEach((v, C) => {
|
|
41064
|
+
if (v.controlStyle === o.controlStyle && v.groupName === l && v.isSelected)
|
|
41065
|
+
if (v.controlStyle === "CheckBox" && v.isMutualExclusion && w.length > 1)
|
|
41066
|
+
y.push(v.groupType);
|
|
41055
41067
|
else {
|
|
41056
|
-
|
|
41057
|
-
const
|
|
41058
|
-
r.docController.insertRadioAndCheckBox("update",
|
|
41068
|
+
v.isSelected = !1;
|
|
41069
|
+
const _ = v.getNodePath(), E = new DomRange(this._hoEditorFactoryID, _, _), D = JSON.stringify(v.radioAndCheckBoxInstance);
|
|
41070
|
+
r.docController.insertRadioAndCheckBox("update", E, D, v.styleIndex);
|
|
41059
41071
|
}
|
|
41060
|
-
}),
|
|
41072
|
+
}), y.length == 0)
|
|
41061
41073
|
o.isSelected = !0;
|
|
41062
|
-
else if (
|
|
41074
|
+
else if (y.filter((v) => v === o.groupType).length > 0)
|
|
41063
41075
|
o.isSelected = !0;
|
|
41064
41076
|
else
|
|
41065
41077
|
return o.isSelected = !1, !0;
|
|
@@ -41069,69 +41081,74 @@ class DrawTree {
|
|
|
41069
41081
|
const c = JSON.stringify(o.radioAndCheckBoxInstance), d = new DomRange(this._hoEditorFactoryID, n, n);
|
|
41070
41082
|
let u = o.styleIndex, f = r.docTree.styles[u];
|
|
41071
41083
|
if (r.drawTree.paintStatus === 6 && f.combineStyle.color === r.pageProperty.fontColor) {
|
|
41072
|
-
const
|
|
41073
|
-
|
|
41074
|
-
const
|
|
41075
|
-
|
|
41084
|
+
const g = new TextStyle(this._hoEditorFactoryID);
|
|
41085
|
+
g.copyProperty(f, g);
|
|
41086
|
+
const y = r.option.getColorByLevel(20), v = new UserHistory(this._hoEditorFactoryID, HistoryEditType.hetModify).userCompare();
|
|
41087
|
+
g.modifierIndex = v, g.color = y, u = r.docTree.styleCompare(g);
|
|
41076
41088
|
}
|
|
41077
41089
|
if (r.docController.insertRadioAndCheckBox("update", d, c, u), t.node.isMutualExclusion && t.node.groupHasOptions) {
|
|
41078
|
-
let
|
|
41079
|
-
for (let
|
|
41080
|
-
|
|
41081
|
-
if (
|
|
41082
|
-
for (let
|
|
41083
|
-
if (
|
|
41084
|
-
const
|
|
41085
|
-
|
|
41090
|
+
let g = !1;
|
|
41091
|
+
for (let y of r.docTree.radioAndCheckBoxsMap.values())
|
|
41092
|
+
y.associatedShowElement && y.groupName === l && l !== "" && (g = !0);
|
|
41093
|
+
if (g) {
|
|
41094
|
+
for (let y of r.docTree.radioAndCheckBoxsMap.values())
|
|
41095
|
+
if (y.associatedShowElement && y.groupName === l && l !== "") {
|
|
41096
|
+
const w = r.vueController.getNodeByDataID("main", y.associatedShowElement);
|
|
41097
|
+
w && w instanceof TextInputFieldNode && (w.customProperty.hidden = !0);
|
|
41086
41098
|
}
|
|
41087
41099
|
if (t.node.associatedShowElement) {
|
|
41088
|
-
const
|
|
41089
|
-
if (
|
|
41090
|
-
const
|
|
41091
|
-
|
|
41100
|
+
const y = r.vueController.getNodeByDataID("main", t.node.associatedShowElement);
|
|
41101
|
+
if (y && y instanceof TextInputFieldNode) {
|
|
41102
|
+
const w = y.customProperty || {};
|
|
41103
|
+
w.hidden = !t.node.isSelected;
|
|
41092
41104
|
}
|
|
41093
41105
|
}
|
|
41094
41106
|
r.firstLoad || (r.drawTree.rebuildArea("main", !1), setTimeout(() => {
|
|
41095
|
-
const
|
|
41096
|
-
r.drawTree.moveCaretToPath(
|
|
41107
|
+
const y = r.docTree.getNodeLastPath(t.node);
|
|
41108
|
+
r.drawTree.moveCaretToPath(y);
|
|
41097
41109
|
}));
|
|
41098
41110
|
}
|
|
41099
41111
|
}
|
|
41100
|
-
|
|
41101
|
-
|
|
41102
|
-
|
|
41103
|
-
|
|
41104
|
-
|
|
41105
|
-
|
|
41106
|
-
|
|
41107
|
-
|
|
41108
|
-
|
|
41109
|
-
|
|
41112
|
+
const p = t.node.associatedElementList;
|
|
41113
|
+
if (p.length > 0)
|
|
41114
|
+
for (const g of p) {
|
|
41115
|
+
const y = r.vueController.getNodeByDataID("main", g);
|
|
41116
|
+
y && y instanceof TextInputFieldNode && (y.customProperty.must = t.node.isSelected, y.update(0));
|
|
41117
|
+
}
|
|
41118
|
+
else if ((t.node.controlStyle === "RadioBox" || t.node.controlStyle === "CheckBox" && t.node.isMutualExclusion) && t.node.isSelected) {
|
|
41119
|
+
for (let g of r.docTree.radioAndCheckBoxsMap.values())
|
|
41120
|
+
if (g.associatedElementList.length > 0 && g.controlStyle === t.node.controlStyle && g.groupName === l && l !== "") {
|
|
41121
|
+
let y = !1;
|
|
41122
|
+
for (const w of g.associatedElementList) {
|
|
41123
|
+
const v = r.vueController.getNodeByDataID("main", w);
|
|
41124
|
+
v && v instanceof TextInputFieldNode && (v.customProperty.must = !1, v.update(0), y = !0);
|
|
41110
41125
|
}
|
|
41126
|
+
if (y)
|
|
41127
|
+
break;
|
|
41111
41128
|
}
|
|
41112
41129
|
}
|
|
41113
|
-
const
|
|
41114
|
-
const
|
|
41115
|
-
|
|
41130
|
+
const m = (g, y) => {
|
|
41131
|
+
const w = r.docTree.getNodeLastPath(g), v = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daDelete, y, "");
|
|
41132
|
+
v.oldEndPath = w, v.oldDrawTreeLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawTreeLines(n, w), r.docTree.deleteNode(g, "update"), v.afterChangePath = n, r.docTree.change(v);
|
|
41116
41133
|
};
|
|
41117
41134
|
if (t.node.associatedId) {
|
|
41118
|
-
let
|
|
41135
|
+
let g = n;
|
|
41119
41136
|
if (this._onInsertNodeByID)
|
|
41120
41137
|
if (t.node.isSelected)
|
|
41121
|
-
this._onInsertNodeByID(
|
|
41122
|
-
|
|
41138
|
+
this._onInsertNodeByID(g, t.node.associatedId).then((y) => {
|
|
41139
|
+
g = y;
|
|
41123
41140
|
});
|
|
41124
41141
|
else {
|
|
41125
|
-
const
|
|
41126
|
-
|
|
41142
|
+
const y = r.vueController.getNodeByID("main", t.node.associatedId);
|
|
41143
|
+
y && m(y, g);
|
|
41127
41144
|
}
|
|
41128
41145
|
} else if ((t.node.controlStyle === "RadioBox" || t.node.controlStyle === "CheckBox" && t.node.isMutualExclusion) && t.node.isSelected) {
|
|
41129
|
-
for (let
|
|
41130
|
-
if (
|
|
41131
|
-
const
|
|
41132
|
-
if (
|
|
41133
|
-
const
|
|
41134
|
-
|
|
41146
|
+
for (let g of r.docTree.radioAndCheckBoxsMap.values())
|
|
41147
|
+
if (g.associatedId && g.controlStyle === t.node.controlStyle && g.groupName === l && l !== "") {
|
|
41148
|
+
const y = r.vueController.getNodeByID("main", g.associatedId);
|
|
41149
|
+
if (y) {
|
|
41150
|
+
const w = g.getNodePath();
|
|
41151
|
+
m(y, w);
|
|
41135
41152
|
break;
|
|
41136
41153
|
}
|
|
41137
41154
|
}
|
|
@@ -63879,7 +63896,7 @@ class VueController {
|
|
|
63879
63896
|
}
|
|
63880
63897
|
if (t.associatedElement) {
|
|
63881
63898
|
const m = c.vueController.getNodeByDataID("main", t.associatedElement);
|
|
63882
|
-
m && m.nodeType == NodeType$1.ntField && m.setFieldText(String(p
|
|
63899
|
+
m && m.nodeType == NodeType$1.ntField && m.setFieldText(String(p || n) || "");
|
|
63883
63900
|
}
|
|
63884
63901
|
}
|
|
63885
63902
|
updateFigureAttr(t, r) {
|
|
@@ -64758,9 +64775,10 @@ class VueController {
|
|
|
64758
64775
|
const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), o = t.getNodePath();
|
|
64759
64776
|
t.isSelected = !1;
|
|
64760
64777
|
const n = JSON.stringify(t.radioAndCheckBoxInstance), s = new DomRange(this._hoEditorFactoryID, o, o);
|
|
64761
|
-
|
|
64762
|
-
|
|
64763
|
-
|
|
64778
|
+
r.docController.insertRadioAndCheckBox("update", s, n, t.styleIndex);
|
|
64779
|
+
for (const l of t.associatedElementList) {
|
|
64780
|
+
const c = r.vueController.getNodeByDataID("main", l);
|
|
64781
|
+
c && c instanceof TextInputFieldNode && (c.customProperty.must = !1, c.update(0));
|
|
64764
64782
|
}
|
|
64765
64783
|
}
|
|
64766
64784
|
//是否是空页
|
|
@@ -65040,7 +65058,7 @@ class VueController {
|
|
|
65040
65058
|
getBoxsWithAssociate(t) {
|
|
65041
65059
|
const r = [], o = [];
|
|
65042
65060
|
return HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.radioAndCheckBoxsMap.forEach((s) => {
|
|
65043
|
-
s.associatedElement && (r.push(s), o.push(s.
|
|
65061
|
+
s.associatedElement && (r.push(s), o.push(...s.associatedElementList));
|
|
65044
65062
|
}), t ? o : r;
|
|
65045
65063
|
}
|
|
65046
65064
|
async importWordFile(t) {
|
|
@@ -76667,7 +76685,8 @@ const SelectDialog = __component__$_.exports, defaultBox = {
|
|
|
76667
76685
|
isEditText: !1,
|
|
76668
76686
|
groupHasOptions: !1,
|
|
76669
76687
|
isMutualExclusion: !1,
|
|
76670
|
-
associatedElement:
|
|
76688
|
+
associatedElement: [],
|
|
76689
|
+
//关联后元素必填(多选,保存时拼接为逗号分隔的字符串)
|
|
76671
76690
|
associatedShowElement: ""
|
|
76672
76691
|
}, _sfc_main$Z = {
|
|
76673
76692
|
name: "RadioCheckBox",
|
|
@@ -76733,10 +76752,10 @@ const SelectDialog = __component__$_.exports, defaultBox = {
|
|
|
76733
76752
|
tableType: "update"
|
|
76734
76753
|
};
|
|
76735
76754
|
this.groupName = r.groupName, this.groupHasOptions = r.groupHasOptions, this.isMutualExclusion = r.isMutualExclusion, Object.keys(this.radioCheckBox).forEach((n) => {
|
|
76736
|
-
n === "readType" ? o.readType = r.readType == 1 : o[n] = r[n];
|
|
76755
|
+
n === "readType" ? o.readType = r.readType == 1 : n === "associatedElement" ? o.associatedElement = this.toAssociatedList(r.associatedElement) : o[n] = r[n];
|
|
76737
76756
|
}), this.radioCheckBoxGroup.push(o);
|
|
76738
76757
|
}), this.boxGroup = 1, this.addBox()) : (Object.keys(this.radioCheckBox).forEach((r) => {
|
|
76739
|
-
r === "readType" || r === "readTypeBool" ? this.radioCheckBox.readType = t.value.readType == 1 : this.radioCheckBox[r] = t.value[r];
|
|
76758
|
+
r === "readType" || r === "readTypeBool" ? this.radioCheckBox.readType = t.value.readType == 1 : r === "associatedElement" ? this.radioCheckBox.associatedElement = this.toAssociatedList(t.value.associatedElement) : this.radioCheckBox[r] = t.value[r];
|
|
76740
76759
|
}), this.boxGroup = 0);
|
|
76741
76760
|
} else
|
|
76742
76761
|
this.radioCheckBox.id = this.controlType === "RadioBox" ? this.vueController.generateID("RB") : this.vueController.generateID("CB"), this.radioCheckBox.controlStyle = this.controlType, this.radioCheckBox.title = this.controlType === "RadioBox" ? i18nHelper("04-001-009-EMR.3.3.330", null, "单选框") : i18nHelper("04-001-009-EMR.3.3.505", null, "复选框"), this.boxGroup === 1 && (this.addBox(), this.addBox());
|
|
@@ -76779,7 +76798,14 @@ const SelectDialog = __component__$_.exports, defaultBox = {
|
|
|
76779
76798
|
},
|
|
76780
76799
|
addBox() {
|
|
76781
76800
|
const a = { ...defaultBox };
|
|
76782
|
-
a.id = this.controlType === "RadioBox" ? this.vueController.generateID("RB") : this.vueController.generateID("CB"), a.groupName = this.groupName, this.radioCheckBoxGroup.push(a);
|
|
76801
|
+
a.associatedElement = [], a.id = this.controlType === "RadioBox" ? this.vueController.generateID("RB") : this.vueController.generateID("CB"), a.groupName = this.groupName, this.radioCheckBoxGroup.push(a);
|
|
76802
|
+
},
|
|
76803
|
+
//关联后元素必填:界面用数组,存盘为逗号拼接的字符串(兼容旧数据)
|
|
76804
|
+
toAssociatedList(a) {
|
|
76805
|
+
return Array.isArray(a) ? a.filter((t) => t != null && t !== "") : typeof a == "string" && a !== "" ? a.split(",").filter((t) => t !== "") : [];
|
|
76806
|
+
},
|
|
76807
|
+
toAssociatedStr(a) {
|
|
76808
|
+
return Array.isArray(a) ? a.filter((t) => t != null && t !== "").join(",") : a || "";
|
|
76783
76809
|
},
|
|
76784
76810
|
deleteCurrentRow(a) {
|
|
76785
76811
|
let t = -1;
|
|
@@ -76793,11 +76819,11 @@ const SelectDialog = __component__$_.exports, defaultBox = {
|
|
|
76793
76819
|
this.$message.error(i18nHelper("04-001-009-EMR.3.3.499", null, "元素名称不能为空"));
|
|
76794
76820
|
return;
|
|
76795
76821
|
}
|
|
76796
|
-
this.boxGroup === 0 ? (this.radioCheckBox.customProperty = { ...a }, this.radioCheckBox.readType ? this.radioCheckBox.readType = 1 : this.radioCheckBox.readType = 0, this.controlStatus === "add" ? this.vueController.insertRadioAndCheckBox(this.controlStatus, JSON.stringify(this.radioCheckBox)) : this.controlStatus === "update" && this.vueController.updateRadioAndCheckBox(JSON.stringify(this.radioCheckBox))) : this.boxGroup === 1 && this.controlStatus === "add" ? this.radioCheckBoxGroup.forEach((t) => {
|
|
76797
|
-
t.groupName = this.groupName, t.customProperty = { ...a }, t.controlStyle = this.controlType == "RadioBox" ? "RadioBox" : "CheckBox", t.groupHasOptions = this.groupHasOptions, t.isMutualExclusion = this.isMutualExclusion, t.readType = t.readType ? 1 : 0, t.id === this.tableRadio && (t.isSelected = !0), t.text != "" && this.vueController.insertRadioAndCheckBox("add", JSON.stringify(t));
|
|
76822
|
+
this.boxGroup === 0 ? (this.radioCheckBox.customProperty = { ...a }, this.radioCheckBox.readType ? this.radioCheckBox.readType = 1 : this.radioCheckBox.readType = 0, this.radioCheckBox.associatedElement = this.toAssociatedStr(this.radioCheckBox.associatedElement), this.controlStatus === "add" ? this.vueController.insertRadioAndCheckBox(this.controlStatus, JSON.stringify(this.radioCheckBox)) : this.controlStatus === "update" && this.vueController.updateRadioAndCheckBox(JSON.stringify(this.radioCheckBox))) : this.boxGroup === 1 && this.controlStatus === "add" ? this.radioCheckBoxGroup.forEach((t) => {
|
|
76823
|
+
t.groupName = this.groupName, t.customProperty = { ...a }, t.controlStyle = this.controlType == "RadioBox" ? "RadioBox" : "CheckBox", t.groupHasOptions = this.groupHasOptions, t.isMutualExclusion = this.isMutualExclusion, t.readType = t.readType ? 1 : 0, t.associatedElement = this.toAssociatedStr(t.associatedElement), t.id === this.tableRadio && (t.isSelected = !0), t.text != "" && this.vueController.insertRadioAndCheckBox("add", JSON.stringify(t));
|
|
76798
76824
|
}) : this.boxGroup === 1 && this.controlStatus === "update" && this.radioCheckBoxGroup.forEach((t) => {
|
|
76799
76825
|
let r = t.dataId;
|
|
76800
|
-
if (t.groupName = this.groupName, t.customProperty = { ...a }, t.controlStyle = this.controlType == "RadioBox" ? "RadioBox" : "CheckBox", t.groupHasOptions = this.groupHasOptions, t.isMutualExclusion = this.isMutualExclusion, t.readType = t.readType ? 1 : 0, t.id === this.tableRadio && (t.isSelected = !0), t.text != "")
|
|
76826
|
+
if (t.groupName = this.groupName, t.customProperty = { ...a }, t.controlStyle = this.controlType == "RadioBox" ? "RadioBox" : "CheckBox", t.groupHasOptions = this.groupHasOptions, t.isMutualExclusion = this.isMutualExclusion, t.readType = t.readType ? 1 : 0, t.associatedElement = this.toAssociatedStr(t.associatedElement), t.id === this.tableRadio && (t.isSelected = !0), t.text != "")
|
|
76801
76827
|
if (t.tableType == "update") {
|
|
76802
76828
|
delete t.tableType, delete t.dataId;
|
|
76803
76829
|
const n = HOEditorFactorys.instance().getFactory(this.hoEditorFactoryId).docTree.radioAndCheckBoxsMap;
|
|
@@ -76826,7 +76852,7 @@ var _sfc_render$Z = function a() {
|
|
|
76826
76852
|
t.groupHasOptions = o;
|
|
76827
76853
|
}, expression: "groupHasOptions" } }), r("span", { staticClass: "label", staticStyle: { width: "450px", margin: "0 0 0 2px" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.146", null, "同组时选项不能为空"))]), r("a-checkbox", { staticStyle: { margin: "0 0 0 20px" }, model: { value: t.isMutualExclusion, callback: function(o) {
|
|
76828
76854
|
t.isMutualExclusion = o;
|
|
76829
|
-
}, expression: "isMutualExclusion" } }), r("span", { staticClass: "label", staticStyle: { width: "450px", margin: "0 0 0 2px" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.136", null, "同组时选项互斥"))])], 1) : t._e(), t.boxGroup === 1 ? r("li", { staticClass: "control-item", staticStyle: { padding: "0" } }, [r("a-table", { staticStyle: { width: "1060px", height: "300px" }, attrs: { rowKey: (o, n) => n, scroll: { x:
|
|
76855
|
+
}, expression: "isMutualExclusion" } }), r("span", { staticClass: "label", staticStyle: { width: "450px", margin: "0 0 0 2px" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.136", null, "同组时选项互斥"))])], 1) : t._e(), t.boxGroup === 1 ? r("li", { staticClass: "control-item", staticStyle: { padding: "0" } }, [r("a-table", { staticStyle: { width: "1060px", height: "300px" }, attrs: { rowKey: (o, n) => n, scroll: { x: 1520, y: 270 }, "data-source": t.radioCheckBoxGroup, bordered: !0, pagination: !1 } }, [r("a-table-column", { key: "rowIndexs", attrs: { title: "", width: 30 }, scopedSlots: t._u([{ key: "default", fn: function(o, n, s) {
|
|
76830
76856
|
return [r("p", { staticStyle: { "text-align": "center" } }, [t._v(t._s(s + 1))])];
|
|
76831
76857
|
} }], null, !1, 546783599) }), r("a-table-column", { key: "text", attrs: { title: i18nHelper("04-001-009-EMR.3.3.176", null, "文本") }, scopedSlots: t._u([{ key: "default", fn: function(o, n) {
|
|
76832
76858
|
return [r("a-input", { attrs: { type: "text", size: "small", placeholder: i18nHelper("04-001-009-EMR.3.3.176", null, "文本") }, on: { input: t.addNewItem }, model: { value: n.text, callback: function(s) {
|
|
@@ -76882,13 +76908,13 @@ var _sfc_render$Z = function a() {
|
|
|
76882
76908
|
return [r("a-input", { attrs: { type: "text", placeholder: i18nHelper("04-001-009-EMR.3.3.174", null, "类型") }, model: { value: n.groupType, callback: function(s) {
|
|
76883
76909
|
t.$set(n, "groupType", s);
|
|
76884
76910
|
}, expression: "record.groupType" } })];
|
|
76885
|
-
} }], null, !1, 1256277561) }), r("a-table-column", { key: "associatedElement", attrs: { title: i18nHelper("04-001-009-EMR.3.3.140", null, "关联后元素必填"), width:
|
|
76886
|
-
return [r("a-select", { staticStyle: { "text-align": "left", width: "100%" }, attrs: { showSearch: "", allowClear: "", placeholder: "请选择需要关联的元素" }, model: { value: n.associatedElement, callback: function(s) {
|
|
76911
|
+
} }], null, !1, 1256277561) }), r("a-table-column", { key: "associatedElement", attrs: { title: i18nHelper("04-001-009-EMR.3.3.140", null, "关联后元素必填"), width: 320 }, scopedSlots: t._u([{ key: "default", fn: function(o, n) {
|
|
76912
|
+
return [r("a-select", { staticStyle: { "text-align": "left", width: "100%" }, attrs: { showSearch: "", allowClear: "", mode: "multiple", "option-label-prop": "label", "max-tag-count": 2, placeholder: "请选择需要关联的元素" }, model: { value: n.associatedElement, callback: function(s) {
|
|
76887
76913
|
t.$set(n, "associatedElement", s);
|
|
76888
76914
|
}, expression: "record.associatedElement" } }, t._l(t.nodeList, function(s, l) {
|
|
76889
|
-
return r("a-select-option", { key: s.name + "___" + s.dataId + "___" + l, attrs: { value: s.dataId } }, [r("div", { staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "12px" } }, [r("span", [t._v(t._s(s.name))]), r("span", [t._v(t._s(s.dataId))])])]);
|
|
76915
|
+
return r("a-select-option", { key: s.name + "___" + s.dataId + "___" + l, attrs: { value: s.dataId, label: s.name || s.dataId } }, [r("div", { staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "12px" } }, [r("span", [t._v(t._s(s.name))]), r("span", [t._v(t._s(s.dataId))])])]);
|
|
76890
76916
|
}), 1)];
|
|
76891
|
-
} }], null, !1,
|
|
76917
|
+
} }], null, !1, 4233730375) }), r("a-table-column", { key: "associatedShowElement", attrs: { title: "选中后显示元素", width: 260 }, scopedSlots: t._u([{ key: "default", fn: function(o, n) {
|
|
76892
76918
|
return [r("a-select", { staticStyle: { "text-align": "left", width: "100%" }, attrs: { showSearch: "", allowClear: "", placeholder: "请选择需要显示元素" }, model: { value: n.associatedShowElement, callback: function(s) {
|
|
76893
76919
|
t.$set(n, "associatedShowElement", s);
|
|
76894
76920
|
}, expression: "record.associatedShowElement" } }, t._l(t.nodeList, function(s, l) {
|
|
@@ -76930,10 +76956,10 @@ var _sfc_render$Z = function a() {
|
|
|
76930
76956
|
t.$set(t.radioCheckBox, "isMutualExclusion", o);
|
|
76931
76957
|
}, expression: "radioCheckBox.isMutualExclusion" } }, [t._v(i18nHelper("04-001-009-EMR.3.3.136", null, "同组时选项互斥"))]) : t._e()], 1), r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.145", null, "数值"))]), r("a-input", { attrs: { type: "text", placeholder: i18nHelper("04-001-009-EMR.3.3.145", null, "数值") }, model: { value: t.radioCheckBox.numericValue, callback: function(o) {
|
|
76932
76958
|
t.$set(t.radioCheckBox, "numericValue", o);
|
|
76933
|
-
}, expression: "radioCheckBox.numericValue" } })], 1), r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.140", null, "关联后元素必填"))]), r("a-select", { staticStyle: { "text-align": "left" }, attrs: { getPopupContainer: (o) => o.parentNode, showSearch: "", allowClear: "", placeholder: i18nHelper("04-001-009-EMR.3.3.140", null, "关联后元素必填") }, model: { value: t.radioCheckBox.associatedElement, callback: function(o) {
|
|
76959
|
+
}, expression: "radioCheckBox.numericValue" } })], 1), r("li", { staticClass: "control-item" }, [r("span", { staticClass: "label" }, [t._v(i18nHelper("04-001-009-EMR.3.3.140", null, "关联后元素必填"))]), r("a-select", { staticStyle: { "text-align": "left" }, attrs: { getPopupContainer: (o) => o.parentNode, showSearch: "", allowClear: "", mode: "multiple", "option-label-prop": "label", placeholder: i18nHelper("04-001-009-EMR.3.3.140", null, "关联后元素必填") }, model: { value: t.radioCheckBox.associatedElement, callback: function(o) {
|
|
76934
76960
|
t.$set(t.radioCheckBox, "associatedElement", o);
|
|
76935
76961
|
}, expression: "radioCheckBox.associatedElement" } }, t._l(t.nodeList, function(o, n) {
|
|
76936
|
-
return r("a-select-option", { key: o.name + "___" + o.dataId + "___" + n, attrs: { value: o.dataId } }, [r("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [r("span", [t._v(t._s(o.name))]), r("span", [t._v(t._s(o.dataId))])])]);
|
|
76962
|
+
return r("a-select-option", { key: o.name + "___" + o.dataId + "___" + n, attrs: { value: o.dataId, label: o.name || o.dataId } }, [r("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [r("span", [t._v(t._s(o.name))]), r("span", [t._v(t._s(o.dataId))])])]);
|
|
76937
76963
|
}), 1)], 1)] : t._e()], 2)]), t._t("hoTextFieldModal")], 2)], 1), r("footer", { staticClass: "ho-modal-footer" }, [t.boxGroup === 1 ? r("a-button", { staticStyle: { transform: "translateX(-352px)" }, attrs: { type: "primary" }, on: { click: t.addBox } }, [t._v(t._s(t.controlType === "RadioBox" ? i18nHelper("04-001-009-EMR.3.3.138", null, "增加单选项") : i18nHelper("04-001-009-EMR.3.3.137", null, "增加复选项")))]) : t._e(), r("a-button", { attrs: { type: "primary" }, on: { click: t.sure } }, [t._v(i18nHelper("04-001-009-EMR.3.3.347", null, "确定"))]), r("a-button", { staticStyle: { "margin-left": "30px" }, on: { click: t.handleClose } }, [t._v(i18nHelper("04-001-009-EMR.3.3.346", null, "取消"))])], 1)]);
|
|
76938
76964
|
}, _sfc_staticRenderFns$Z = [], __component__$Z = /* @__PURE__ */ normalizeComponent$1(
|
|
76939
76965
|
_sfc_main$Z,
|