liyu-pc-base 1.0.821 → 1.0.825
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/dist/{FieldRender2-DS1HanOb.js → FieldRender2-DXkt6Dbo.js} +34 -30
- package/dist/FieldRender2-DXkt6Dbo.js.map +1 -0
- package/dist/{FormRender3-ByeYf048.js → FormRender3-Coihr6aF.js} +1 -1
- package/dist/{FormRender3-ByeYf048.js.map → FormRender3-Coihr6aF.js.map} +1 -1
- package/dist/{SearchRender-A9FKXeDW.js → SearchRender-Cw770Ovx.js} +1 -1
- package/dist/{SearchRender-A9FKXeDW.js.map → SearchRender-Cw770Ovx.js.map} +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/remotePages/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{remotePages-BpWm5XG7.js → remotePages-Czm0rhlO.js} +29 -1
- package/dist/{remotePages-BpWm5XG7.js.map → remotePages-Czm0rhlO.js.map} +1 -1
- package/package.json +1 -1
- package/dist/FieldRender2-DS1HanOb.js.map +0 -1
|
@@ -87,7 +87,7 @@ var ke = L({
|
|
|
87
87
|
},
|
|
88
88
|
emits: ["update:value", "remove"],
|
|
89
89
|
setup(e, { emit: t }) {
|
|
90
|
-
let n = V({ ...e.field.form.rules }), r = H({}), i = le(() => import("./FormRender3-
|
|
90
|
+
let n = V({ ...e.field.form.rules }), r = H({}), i = le(() => import("./FormRender3-Coihr6aF.js").then((e) => e.n)), a, o = () => {
|
|
91
91
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
92
92
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
93
93
|
}, s = H([]), c = o(), l = ([t, i]) => {
|
|
@@ -821,7 +821,7 @@ async function rt(e) {
|
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
823
|
async function it(e) {
|
|
824
|
-
let { field: t, currentValue: n, innerModel: r, globalInnerModel: i, formModel: o, context: s, baseKeyPath: l = [], workerHostFunctions: d = {}, is_form_design: f = !1 } = e;
|
|
824
|
+
let { field: t, currentValue: n, innerModel: r, globalInnerModel: i, formModel: o, context: s, baseKeyPath: l = [], workerHostFunctions: d = {}, is_form_design: f = !1, lock_structure: p = !1 } = e;
|
|
825
825
|
if (t.watchType === "scoped") {
|
|
826
826
|
if (t.valueType === "single") {
|
|
827
827
|
let e = r?.[t.fieldName];
|
|
@@ -883,25 +883,27 @@ async function it(e) {
|
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
885
|
else if (t.watchType === "serial") {
|
|
886
|
+
let e = t.serialConfig || {};
|
|
887
|
+
if (p && e.mode === "M5") return null;
|
|
886
888
|
if (f) return await rt(t);
|
|
887
889
|
if (n != null && n !== "") return null;
|
|
888
|
-
let
|
|
889
|
-
if (tt.has(
|
|
890
|
-
tt.add(
|
|
890
|
+
let r = nt(t, l);
|
|
891
|
+
if (tt.has(r)) return null;
|
|
892
|
+
tt.add(r);
|
|
891
893
|
try {
|
|
892
|
-
let
|
|
894
|
+
let t = await a({
|
|
893
895
|
org_id: c(),
|
|
894
896
|
mode: e.mode || "M1",
|
|
895
897
|
kwargs: JSON.stringify(e)
|
|
896
898
|
}, "/approve/get_approve_serial_number", !1);
|
|
897
|
-
if (
|
|
899
|
+
if (t !== n) return { value: t };
|
|
898
900
|
} catch (e) {
|
|
899
901
|
return console.error(e), {
|
|
900
902
|
value: void 0,
|
|
901
903
|
error: e?.message || "流水号分配失败"
|
|
902
904
|
};
|
|
903
905
|
} finally {
|
|
904
|
-
tt.delete(
|
|
906
|
+
tt.delete(r);
|
|
905
907
|
}
|
|
906
908
|
}
|
|
907
909
|
return null;
|
|
@@ -1126,26 +1128,27 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1126
1128
|
if (!e || e.length === 0 || se.value.length === 0) return;
|
|
1127
1129
|
let t = !1, r = [...e];
|
|
1128
1130
|
for (let e = 0; e < r.length; e++) {
|
|
1129
|
-
let
|
|
1131
|
+
let a = ne.value[e], o = [
|
|
1130
1132
|
...n.baseKeyPath || [],
|
|
1131
1133
|
n.field.name,
|
|
1132
1134
|
e
|
|
1133
1135
|
];
|
|
1134
|
-
for (let
|
|
1135
|
-
let
|
|
1136
|
-
field:
|
|
1137
|
-
currentValue:
|
|
1138
|
-
innerModel:
|
|
1136
|
+
for (let s of se.value) {
|
|
1137
|
+
let c = r[e]?.[s.name], l = await it({
|
|
1138
|
+
field: s,
|
|
1139
|
+
currentValue: c,
|
|
1140
|
+
innerModel: a,
|
|
1139
1141
|
globalInnerModel: n.globalInnerModel,
|
|
1140
1142
|
formModel: r[e],
|
|
1141
1143
|
context: n.context,
|
|
1142
|
-
baseKeyPath:
|
|
1144
|
+
baseKeyPath: o,
|
|
1143
1145
|
workerHostFunctions: n.workerHostFunctions || {},
|
|
1144
|
-
is_form_design: n.is_form_design
|
|
1146
|
+
is_form_design: n.is_form_design,
|
|
1147
|
+
lock_structure: i.value
|
|
1145
1148
|
});
|
|
1146
|
-
|
|
1149
|
+
l && l.value !== void 0 && l.value !== null && (r[e] = {
|
|
1147
1150
|
...r[e],
|
|
1148
|
-
[
|
|
1151
|
+
[s.name]: l.value
|
|
1149
1152
|
}, t = !0);
|
|
1150
1153
|
}
|
|
1151
1154
|
}
|
|
@@ -1350,7 +1353,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1350
1353
|
]))), 256))], 64);
|
|
1351
1354
|
};
|
|
1352
1355
|
}
|
|
1353
|
-
}), [["__scopeId", "data-v-
|
|
1356
|
+
}), [["__scopeId", "data-v-14aa2333"]]), ft = {
|
|
1354
1357
|
key: 0,
|
|
1355
1358
|
class: "error-msg"
|
|
1356
1359
|
}, pt = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
@@ -1393,19 +1396,20 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1393
1396
|
},
|
|
1394
1397
|
emits: ["update:value"],
|
|
1395
1398
|
setup(e, { emit: t }) {
|
|
1396
|
-
let n = e, r = t, i = H(
|
|
1397
|
-
let
|
|
1398
|
-
field:
|
|
1399
|
-
currentValue:
|
|
1399
|
+
let n = e, r = t, i = de("FORM_LOCK_STRUCTURE", H(!1)), a = k(() => !!_e(i)), o = H(null), s = H(n.value || ""), c = k(() => n.is_form_design ? s.value : n.value), l = (0, Q.debounce)(async (e, t, i, l) => {
|
|
1400
|
+
let u = await it({
|
|
1401
|
+
field: i,
|
|
1402
|
+
currentValue: c.value,
|
|
1400
1403
|
innerModel: e,
|
|
1401
1404
|
globalInnerModel: t,
|
|
1402
|
-
formModel:
|
|
1405
|
+
formModel: l,
|
|
1403
1406
|
context: n.context,
|
|
1404
1407
|
baseKeyPath: n.baseKeyPath,
|
|
1405
1408
|
workerHostFunctions: n.workerHostFunctions || {},
|
|
1406
|
-
is_form_design: n.is_form_design
|
|
1409
|
+
is_form_design: n.is_form_design,
|
|
1410
|
+
lock_structure: a.value
|
|
1407
1411
|
});
|
|
1408
|
-
|
|
1412
|
+
u && (n.is_form_design ? s.value = u.value ?? "" : u.value !== void 0 && u.value !== null && r("update:value", u.value), (i.watchType === "code" || i.watchType === "serial") && (o.value = u.error || null));
|
|
1409
1413
|
}, 200);
|
|
1410
1414
|
return q(() => [
|
|
1411
1415
|
n.innerModel,
|
|
@@ -1414,7 +1418,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1414
1418
|
n.formModel,
|
|
1415
1419
|
n.context
|
|
1416
1420
|
], ([e, t, n, r]) => {
|
|
1417
|
-
|
|
1421
|
+
l(e, t, n, r);
|
|
1418
1422
|
}, {
|
|
1419
1423
|
immediate: !0,
|
|
1420
1424
|
deep: !0
|
|
@@ -1425,16 +1429,16 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1425
1429
|
"show-debug-code": e.field.watchType === "code"
|
|
1426
1430
|
}, {
|
|
1427
1431
|
default: J(() => [I(r, {
|
|
1428
|
-
value:
|
|
1432
|
+
value: c.value,
|
|
1429
1433
|
readonly: "",
|
|
1430
1434
|
size: "small",
|
|
1431
1435
|
style: { "background-color": "#f5f5f5" }
|
|
1432
1436
|
}, null, 8, ["value"])]),
|
|
1433
1437
|
_: 1
|
|
1434
|
-
}, 8, ["value-code", "show-debug-code"]),
|
|
1438
|
+
}, 8, ["value-code", "show-debug-code"]), o.value ? (B(), M("span", ft, K(o.value), 1)) : j("", !0)], 64);
|
|
1435
1439
|
};
|
|
1436
1440
|
}
|
|
1437
|
-
}), [["__scopeId", "data-v-
|
|
1441
|
+
}), [["__scopeId", "data-v-b40513b5"]]), mt = L({
|
|
1438
1442
|
name: "FormButton",
|
|
1439
1443
|
components: { debugCode: C },
|
|
1440
1444
|
props: {
|