@ximatai/muyun-web-app 0.26.19 → 0.26.21
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/{BusinessActivityLogView-DudCmeKP.js → BusinessActivityLogView-6L75GZVc.js} +2 -2
- package/dist/{BusinessLogListDrawer-CVUvUG48.js → BusinessLogListDrawer-C4iFnkE7.js} +95 -95
- package/dist/{CodeConfigurationView-ZjVgaZkD.js → CodeConfigurationView-D7sqbNCg.js} +515 -515
- package/dist/{ConfigurationTranslationView-Dl757QMl.js → ConfigurationTranslationView-ta82REbn.js} +21 -21
- package/dist/{LoginAuditLogView-Cj3PMvN5.js → LoginAuditLogView-B_RQ9JIX.js} +2 -2
- package/dist/ModuleActionManagementView-DtGF3NC_.js +755 -0
- package/dist/{ModuleGovernanceView-C3RxdgQN.js → ModuleGovernanceView-Cl6tkZ6M.js} +2659 -2651
- package/dist/{RequestErrorLogView-tmjMOeLE.js → RequestErrorLogView-BJDO3Scn.js} +2 -2
- package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +1435 -0
- package/dist/{RuntimeLogView-BkkgHcF0.js → RuntimeLogView-jP9ceuJD.js} +61 -61
- package/dist/WorkflowAdministrationView-BmNJQYtq.js +650 -0
- package/dist/{WorkflowConfigurationView-Bnjdrkdx.js → WorkflowConfigurationView-Dh6BKQm5.js} +309 -309
- package/dist/WorkflowWorkbenchView-BvPNKbuV.js +759 -0
- package/dist/{codeConfiguration-DERwCY-U.js → codeConfiguration-DhCBKbkc.js} +38 -38
- package/dist/index.css +1 -1
- package/dist/index.js +999 -618
- package/dist/moduleMenuWorkspace-BbVmNKZn.js +626 -0
- package/dist/{platform-components-wRXbnwMr.js → platform-components-i2ONyZ8r.js} +2989 -2746
- package/dist/{platform-workbench-Cm_0kmTT.js → platform-workbench-DhaREttd.js} +5400 -5384
- package/dist/types/consumer/index.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +19 -29
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageTenantNavigator.vue.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/recordSaveFeedback.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +1 -0
- package/dist/types/platform-components/EmployeePicker.vue.d.ts +1 -1
- package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +3 -1
- package/dist/types/platform-components/ReadonlyRecordWorkspace.vue.d.ts +56 -0
- package/dist/types/platform-components/RecordAdaptiveDetailPanel.vue.d.ts +3 -1
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +3 -0
- package/dist/types/platform-components/RecordQueryControls.vue.d.ts +21 -0
- package/dist/types/platform-components/RecordQueryFieldControls.vue.d.ts +32 -0
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +2 -2
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +1 -1
- package/dist/types/platform-components/UserPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/queryCriteria.d.ts +7 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +5 -1
- package/dist/types/views/metadataChangeSetSubmission.d.ts +3 -0
- package/dist/types/views/metadataModelChangeSetClient.d.ts +7 -1
- package/dist/types/web-contracts/index.d.ts +3 -0
- package/dist/types/web-core/index.d.ts +3 -0
- package/dist/types/web-core/recordReadEntry.d.ts +23 -0
- package/dist/types/web-core/recordReadView.d.ts +28 -0
- package/dist/types/web-core/useRecordReadSession.d.ts +27 -0
- package/dist/{useWorkflowConfigurationContext-BE_UjKgk.js → useWorkflowConfigurationContext-B_NxZFyz.js} +8 -8
- package/dist/{workspaceViews-D37OpJ7g.js → workspaceViews-MTwNg_aQ.js} +565 -565
- package/package.json +1 -1
- package/dist/ModuleActionManagementView-BuhQrVA3.js +0 -755
- package/dist/RoleDetailWorkspaceView-OhpBChaT.js +0 -1435
- package/dist/WorkflowAdministrationView-DOhA_5-M.js +0 -650
- package/dist/WorkflowWorkbenchView-Cf6yiofx.js +0 -759
- package/dist/moduleMenuWorkspace-DPmYGkS_.js +0 -626
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-BAC7EHh5.js";
|
|
2
|
-
import { m as t, ut as n, y as r } from "./platform-workbench-
|
|
3
|
-
import { $
|
|
4
|
-
import { a as Ee, c as De, d as Oe, i as ke, l as Ae, n as je, o as Me, p as Ne, r as Pe, s as Fe, t as Ie, u as Le } from "./codeConfiguration-
|
|
5
|
-
import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as Re, createTextVNode as E, createVNode as D, defineComponent as ze, inject as Be, mergeModels as O, nextTick as Ve, normalizeClass as He, onActivated as
|
|
2
|
+
import { m as t, ut as n, y as r } from "./platform-workbench-DhaREttd.js";
|
|
3
|
+
import { $t as i, An as a, Da as ee, Fa as o, Ht as s, Ma as c, Mn as l, Nn as u, Tn as d, U as te, Ut as ne, Vt as f, Wn as re, Wr as ie, Xa as ae, Xn as p, Yn as oe, _n as se, _t as ce, da as le, ei as m, en as ue, eo as de, fr as h, it as fe, jr as pe, lr as g, ma as me, or as _, pa as he, qa as ge, qr as _e, r as ve, rr as v, rt as ye, sr as be, ur as y, v as xe, wa as Se, wn as Ce, xn as we, zn as Te } from "./platform-components-i2ONyZ8r.js";
|
|
4
|
+
import { a as Ee, c as De, d as Oe, i as ke, l as Ae, n as je, o as Me, p as Ne, r as Pe, s as Fe, t as Ie, u as Le } from "./codeConfiguration-DhCBKbkc.js";
|
|
5
|
+
import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as Re, createTextVNode as E, createVNode as D, defineComponent as ze, inject as Be, mergeModels as O, nextTick as Ve, normalizeClass as He, onActivated as k, onBeforeUnmount as Ue, onDeactivated as We, onUnmounted as A, openBlock as j, ref as M, renderList as Ge, toDisplayString as N, toRaw as Ke, unref as P, useModel as qe, vShow as Je, watch as Ye, withCtx as F, withDirectives as Xe } from "vue";
|
|
6
6
|
//#region src/views/CodeRuleFormatEditor.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var Ze = { class: "code-format" }, Qe = {
|
|
8
8
|
class: "code-format__segments",
|
|
9
9
|
role: "list"
|
|
10
|
-
},
|
|
10
|
+
}, $e = { class: "code-format__segment-heading" }, I = { class: "code-format__segment-number" }, et = { class: "code-format__segment-actions" }, L = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "code-format__grid"
|
|
13
|
-
},
|
|
13
|
+
}, R = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "code-format__field"
|
|
16
|
-
},
|
|
16
|
+
}, tt = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "code-format__field"
|
|
19
|
-
},
|
|
19
|
+
}, nt = {
|
|
20
20
|
key: 2,
|
|
21
21
|
class: "code-format__field"
|
|
22
|
-
},
|
|
22
|
+
}, rt = {
|
|
23
23
|
key: 3,
|
|
24
24
|
class: "code-format__field"
|
|
25
|
-
},
|
|
25
|
+
}, it = {
|
|
26
26
|
key: 4,
|
|
27
27
|
class: "code-format__field code-format__wide"
|
|
28
|
-
},
|
|
28
|
+
}, at = {
|
|
29
29
|
key: 5,
|
|
30
30
|
class: "code-format__field"
|
|
31
|
-
},
|
|
31
|
+
}, z = { class: "code-format__advanced" }, B = { key: 0 }, V = { class: "code-format__grid" }, ot = {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: "code-format__help code-format__wide"
|
|
34
|
-
},
|
|
34
|
+
}, H = {
|
|
35
35
|
key: 1,
|
|
36
36
|
class: "code-format__field"
|
|
37
|
-
},
|
|
37
|
+
}, st = {
|
|
38
38
|
key: 2,
|
|
39
39
|
class: "code-format__field"
|
|
40
|
-
},
|
|
40
|
+
}, U = {
|
|
41
41
|
key: 3,
|
|
42
42
|
class: "code-format__field"
|
|
43
|
-
},
|
|
43
|
+
}, ct = {
|
|
44
44
|
key: 4,
|
|
45
45
|
class: "code-format__field"
|
|
46
|
-
},
|
|
46
|
+
}, W = { class: "code-format__field" }, lt = {
|
|
47
47
|
key: 5,
|
|
48
48
|
class: "code-format__field"
|
|
49
|
-
},
|
|
49
|
+
}, ut = {
|
|
50
50
|
key: 6,
|
|
51
51
|
class: "code-format__field"
|
|
52
|
-
},
|
|
52
|
+
}, dt = {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "code-format__help"
|
|
55
|
-
},
|
|
55
|
+
}, G = {
|
|
56
56
|
key: 1,
|
|
57
57
|
class: "code-format__mapping"
|
|
58
|
-
},
|
|
58
|
+
}, ft = {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: "code-format__grid"
|
|
61
|
-
},
|
|
61
|
+
}, pt = { class: "code-format__field" }, mt = { class: "code-format__field" }, K = { class: "code-format__sequence-advanced code-format__wide" }, ht = { class: "code-format__grid" }, gt = { class: "code-format__field" }, _t = { class: "code-format__field" }, vt = { class: "code-format__field" }, q = {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: "code-format__help"
|
|
64
|
-
}, J = { class: "code-format__field" }, yt = /*#__PURE__*/
|
|
64
|
+
}, J = { class: "code-format__field" }, yt = /*#__PURE__*/ h(/* @__PURE__ */ ze({
|
|
65
65
|
__name: "CodeRuleFormatEditor",
|
|
66
66
|
props: /*@__PURE__*/ O({
|
|
67
67
|
sources: {},
|
|
@@ -73,14 +73,14 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
73
73
|
}),
|
|
74
74
|
emits: ["update:rule"],
|
|
75
75
|
setup(e) {
|
|
76
|
-
let t = e, n =
|
|
76
|
+
let t = e, n = qe(e, "rule"), r = ae(), i = (e, t) => r.t(`platform.code.config.${e}`, t), a = x(() => t.sources.map((e) => ({
|
|
77
77
|
value: e.fieldName,
|
|
78
78
|
label: Pe(e, r)
|
|
79
|
-
}))),
|
|
79
|
+
}))), ee = x(() => t.sources.map((e) => ({
|
|
80
80
|
name: e.fieldName,
|
|
81
81
|
label: Pe(e, r),
|
|
82
82
|
valueType: e.type
|
|
83
|
-
}))),
|
|
83
|
+
}))), o = {
|
|
84
84
|
CONSTANT: "固定文字",
|
|
85
85
|
FIELD_VALUE: "业务字段",
|
|
86
86
|
CONTEXT_VAR: "动作上下文",
|
|
@@ -88,13 +88,13 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
88
88
|
SEQUENCE: "流水号",
|
|
89
89
|
VALUE_MAPPING: "值映射",
|
|
90
90
|
FORMULA: "公式"
|
|
91
|
-
},
|
|
91
|
+
}, s = x(() => je.map((e) => ({
|
|
92
92
|
value: e,
|
|
93
|
-
label:
|
|
94
|
-
}))),
|
|
93
|
+
label: i(`segment.${e}`, o[e])
|
|
94
|
+
}))), c = (e, t) => Object.entries(t).map(([t, n]) => ({
|
|
95
95
|
value: t,
|
|
96
|
-
label:
|
|
97
|
-
})),
|
|
96
|
+
label: i(`enum.${e}.${t}`, n)
|
|
97
|
+
})), l = [
|
|
98
98
|
"YY",
|
|
99
99
|
"YYYY",
|
|
100
100
|
"YYMM",
|
|
@@ -105,14 +105,14 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
105
105
|
"YYYY_MM_DD",
|
|
106
106
|
"YYYY_MM_DD_HH_MM_SS",
|
|
107
107
|
"HHMMSS"
|
|
108
|
-
],
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
], u = /* @__PURE__ */ new WeakMap(), te = 0, f = /* @__PURE__ */ new WeakMap(), re = null;
|
|
109
|
+
Ye(() => n.value, () => {
|
|
110
|
+
re = null;
|
|
111
111
|
});
|
|
112
|
-
function
|
|
113
|
-
return e =
|
|
112
|
+
function ie(e) {
|
|
113
|
+
return e = Ke(e), u.has(e) || u.set(e, ++te), u.get(e);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function p(e) {
|
|
116
116
|
return [
|
|
117
117
|
"FIELD_VALUE",
|
|
118
118
|
"CONTEXT_VAR",
|
|
@@ -120,54 +120,54 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
120
120
|
"FORMULA"
|
|
121
121
|
].includes(e.segmentType);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function se(e) {
|
|
124
124
|
return !!n.value.sequencePolicy && !["CONSTANT", "SEQUENCE"].includes(e.segmentType);
|
|
125
125
|
}
|
|
126
|
-
let
|
|
126
|
+
let ce = x(() => r.t("platform.code.config.inherited-sequence-length", "继承流水长度:{length}", { length: n.value.sequencePolicy?.sequenceLength ?? "—" })), le = x(() => {
|
|
127
127
|
let e = n.value.sequencePolicy?.sequenceLength;
|
|
128
128
|
return e == null || !Number.isInteger(e) || e < 1 || e > 18 ? "" : r.t("platform.code.config.sequence-limit-hint", "按 {length} 位流水,最大 {maximum}", {
|
|
129
129
|
length: e,
|
|
130
130
|
maximum: "9".repeat(e)
|
|
131
131
|
});
|
|
132
132
|
});
|
|
133
|
-
function
|
|
133
|
+
function m(e) {
|
|
134
134
|
return e.length != null || !!e.separator || (e.padMode ?? "NONE") !== "NONE" || (e.truncatePolicy ?? "NONE") !== "NONE" || (e.nullPolicy ?? "ERROR") !== "ERROR" || !!e.sequenceBasis;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return e.segmentType === "SEQUENCE" && e.length != null ? r.t("platform.code.config.sequence-length-override-summary", "长度覆盖 {length} 位", { length: e.length }) :
|
|
136
|
+
function ue(e) {
|
|
137
|
+
return e.segmentType === "SEQUENCE" && e.length != null ? r.t("platform.code.config.sequence-length-override-summary", "长度覆盖 {length} 位", { length: e.length }) : i("configured", "已配置");
|
|
138
138
|
}
|
|
139
|
-
let
|
|
139
|
+
let de = x(() => {
|
|
140
140
|
let e = n.value.sequencePolicy;
|
|
141
141
|
if (!e) return "";
|
|
142
142
|
let t = [
|
|
143
|
-
e.startValue != null && e.startValue !== 1 ? `${
|
|
144
|
-
e.stepValue != null && e.stepValue !== 1 ? `${
|
|
145
|
-
e.maxValue == null ? "" : `${
|
|
146
|
-
e.overflowPolicy === "RESET" ?
|
|
143
|
+
e.startValue != null && e.startValue !== 1 ? `${i("start", "起始值")} ${e.startValue}` : "",
|
|
144
|
+
e.stepValue != null && e.stepValue !== 1 ? `${i("step", "递增步长")} ${e.stepValue}` : "",
|
|
145
|
+
e.maxValue == null ? "" : `${i("maximum", "流水上限")} ${e.maxValue}`,
|
|
146
|
+
e.overflowPolicy === "RESET" ? i("enum.overflow.RESET", "从起点重新尝试") : ""
|
|
147
147
|
].filter(Boolean);
|
|
148
|
-
return t.length ? t.join(" · ") :
|
|
148
|
+
return t.length ? t.join(" · ") : i("defaults", "默认设置");
|
|
149
149
|
});
|
|
150
|
-
function
|
|
150
|
+
function h(e) {
|
|
151
151
|
return e === "" || e == null ? null : Number(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
n.value && (n.value.segments.some((e) => e.segmentType === "SEQUENCE") ? n.value.sequencePolicy ??=
|
|
153
|
+
function fe() {
|
|
154
|
+
n.value && (n.value.segments.some((e) => e.segmentType === "SEQUENCE") ? n.value.sequencePolicy ??= re ?? Le() : (re = n.value.sequencePolicy ?? re, n.value.sequencePolicy = null));
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function pe(e, t) {
|
|
157
157
|
if (!n.value) return;
|
|
158
158
|
let r = n.value.segments[e];
|
|
159
159
|
if (r.segmentType === t) return;
|
|
160
|
-
let i =
|
|
160
|
+
let i = f.get(Ke(r)) ?? /* @__PURE__ */ new Map();
|
|
161
161
|
i.set(r.segmentType, JSON.parse(JSON.stringify(r)));
|
|
162
162
|
let a = {
|
|
163
163
|
...i.get(t) ?? Ae(t),
|
|
164
164
|
id: r.id,
|
|
165
165
|
version: r.version
|
|
166
166
|
};
|
|
167
|
-
|
|
167
|
+
u.set(a, ie(r)), f.set(a, i), n.value.segments[e] = a, fe();
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
n.value && (n.value.segments.push(Ae()),
|
|
169
|
+
function g() {
|
|
170
|
+
n.value && (n.value.segments.push(Ae()), fe());
|
|
171
171
|
}
|
|
172
172
|
function me(e, t) {
|
|
173
173
|
let r = n.value?.segments;
|
|
@@ -176,19 +176,19 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
176
176
|
i && r.splice(e + t, 0, i);
|
|
177
177
|
}
|
|
178
178
|
function he(e) {
|
|
179
|
-
n.value?.segments.splice(e, 1),
|
|
179
|
+
n.value?.segments.splice(e, 1), fe();
|
|
180
180
|
}
|
|
181
|
-
return (r,
|
|
182
|
-
D(
|
|
183
|
-
T("ol",
|
|
184
|
-
T("div",
|
|
185
|
-
T("span",
|
|
186
|
-
D(
|
|
187
|
-
"aria-label":
|
|
181
|
+
return (r, o) => (j(), w("section", Ze, [
|
|
182
|
+
D(P(ne), { title: i("format", "编码格式") }, null, 8, ["title"]),
|
|
183
|
+
T("ol", Qe, [(j(!0), w(b, null, Ge(n.value.segments, (r, u) => (j(), w("li", { key: ie(r) }, [
|
|
184
|
+
T("div", $e, [
|
|
185
|
+
T("span", I, N(u + 1), 1),
|
|
186
|
+
D(P(_), {
|
|
187
|
+
"aria-label": i("segment-type", "片段类型"),
|
|
188
188
|
value: r.segmentType,
|
|
189
189
|
disabled: !e.editable,
|
|
190
|
-
options:
|
|
191
|
-
"onUpdate:value": (e) =>
|
|
190
|
+
options: s.value,
|
|
191
|
+
"onUpdate:value": (e) => pe(u, e)
|
|
192
192
|
}, null, 8, [
|
|
193
193
|
"aria-label",
|
|
194
194
|
"value",
|
|
@@ -196,53 +196,53 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
196
196
|
"options",
|
|
197
197
|
"onUpdate:value"
|
|
198
198
|
]),
|
|
199
|
-
["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (
|
|
199
|
+
["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (j(), S(P(oe), {
|
|
200
200
|
key: 0,
|
|
201
|
-
label:
|
|
201
|
+
label: i("bounded-help-title", "片段长度说明")
|
|
202
202
|
}, {
|
|
203
|
-
default:
|
|
203
|
+
default: F(() => [E(N(i("bounded-help", "为公式或外部上下文设置长度与截取方式,确保编码不超出目标字段长度。")), 1)]),
|
|
204
204
|
_: 1
|
|
205
205
|
}, 8, ["label"])) : C("v-if", !0),
|
|
206
|
-
T("div",
|
|
207
|
-
D(
|
|
206
|
+
T("div", et, [
|
|
207
|
+
D(P(y), {
|
|
208
208
|
type: "text",
|
|
209
209
|
"icon-name": "up",
|
|
210
210
|
"icon-only": "",
|
|
211
211
|
size: "small",
|
|
212
|
-
title:
|
|
213
|
-
"aria-label":
|
|
214
|
-
disabled: !e.editable ||
|
|
215
|
-
onClick: (e) => me(
|
|
212
|
+
title: i("up", "上移"),
|
|
213
|
+
"aria-label": i("up", "上移"),
|
|
214
|
+
disabled: !e.editable || u === 0,
|
|
215
|
+
onClick: (e) => me(u, -1)
|
|
216
216
|
}, null, 8, [
|
|
217
217
|
"title",
|
|
218
218
|
"aria-label",
|
|
219
219
|
"disabled",
|
|
220
220
|
"onClick"
|
|
221
221
|
]),
|
|
222
|
-
D(
|
|
222
|
+
D(P(y), {
|
|
223
223
|
type: "text",
|
|
224
224
|
"icon-name": "down",
|
|
225
225
|
"icon-only": "",
|
|
226
226
|
size: "small",
|
|
227
|
-
title:
|
|
228
|
-
"aria-label":
|
|
229
|
-
disabled: !e.editable ||
|
|
230
|
-
onClick: (e) => me(
|
|
227
|
+
title: i("down", "下移"),
|
|
228
|
+
"aria-label": i("down", "下移"),
|
|
229
|
+
disabled: !e.editable || u === n.value.segments.length - 1,
|
|
230
|
+
onClick: (e) => me(u, 1)
|
|
231
231
|
}, null, 8, [
|
|
232
232
|
"title",
|
|
233
233
|
"aria-label",
|
|
234
234
|
"disabled",
|
|
235
235
|
"onClick"
|
|
236
236
|
]),
|
|
237
|
-
D(
|
|
237
|
+
D(P(y), {
|
|
238
238
|
type: "text",
|
|
239
239
|
"icon-name": "delete",
|
|
240
240
|
"icon-only": "",
|
|
241
241
|
size: "small",
|
|
242
|
-
title:
|
|
243
|
-
"aria-label":
|
|
242
|
+
title: i("remove", "删除"),
|
|
243
|
+
"aria-label": i("remove", "删除"),
|
|
244
244
|
disabled: !e.editable,
|
|
245
|
-
onClick: (e) => he(
|
|
245
|
+
onClick: (e) => he(u)
|
|
246
246
|
}, null, 8, [
|
|
247
247
|
"title",
|
|
248
248
|
"aria-label",
|
|
@@ -251,8 +251,8 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
251
251
|
])
|
|
252
252
|
])
|
|
253
253
|
]),
|
|
254
|
-
r.segmentType === "SEQUENCE" ? C("v-if", !0) : (
|
|
255
|
-
r.segmentType === "CONSTANT" ? (
|
|
254
|
+
r.segmentType === "SEQUENCE" ? C("v-if", !0) : (j(), w("div", L, [
|
|
255
|
+
r.segmentType === "CONSTANT" ? (j(), w("label", R, [E(N(i("constant", "固定文字")), 1), D(P(v), {
|
|
256
256
|
value: r.fixedValue,
|
|
257
257
|
"onUpdate:value": (e) => r.fixedValue = e,
|
|
258
258
|
disabled: !e.editable
|
|
@@ -261,18 +261,18 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
261
261
|
"onUpdate:value",
|
|
262
262
|
"disabled"
|
|
263
263
|
])])) : C("v-if", !0),
|
|
264
|
-
["FIELD_VALUE", "VALUE_MAPPING"].includes(r.segmentType) ? (
|
|
264
|
+
["FIELD_VALUE", "VALUE_MAPPING"].includes(r.segmentType) ? (j(), w("label", tt, [E(N(i("source", "来源字段")), 1), D(P(_), {
|
|
265
265
|
value: r.sourceRef,
|
|
266
266
|
"onUpdate:value": (e) => r.sourceRef = e,
|
|
267
267
|
disabled: !e.editable,
|
|
268
|
-
options:
|
|
268
|
+
options: a.value
|
|
269
269
|
}, null, 8, [
|
|
270
270
|
"value",
|
|
271
271
|
"onUpdate:value",
|
|
272
272
|
"disabled",
|
|
273
273
|
"options"
|
|
274
274
|
])])) : C("v-if", !0),
|
|
275
|
-
r.segmentType === "CONTEXT_VAR" ? (
|
|
275
|
+
r.segmentType === "CONTEXT_VAR" ? (j(), w("label", nt, [E(N(i("context", "动作传入的上下文名称")), 1), (t.trigger ?? n.value.fieldTrigger ?? "SAVE") === "EXPLICIT" ? (j(), S(P(v), {
|
|
276
276
|
key: 1,
|
|
277
277
|
value: r.sourceRef,
|
|
278
278
|
"onUpdate:value": (e) => r.sourceRef = e,
|
|
@@ -281,23 +281,23 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
281
281
|
"value",
|
|
282
282
|
"onUpdate:value",
|
|
283
283
|
"disabled"
|
|
284
|
-
])) : (
|
|
284
|
+
])) : (j(), S(P(_), {
|
|
285
285
|
key: 0,
|
|
286
286
|
value: r.sourceRef,
|
|
287
287
|
"onUpdate:value": (e) => r.sourceRef = e,
|
|
288
288
|
disabled: !e.editable,
|
|
289
|
-
options:
|
|
289
|
+
options: a.value
|
|
290
290
|
}, null, 8, [
|
|
291
291
|
"value",
|
|
292
292
|
"onUpdate:value",
|
|
293
293
|
"disabled",
|
|
294
294
|
"options"
|
|
295
295
|
]))])) : C("v-if", !0),
|
|
296
|
-
r.segmentType === "SYSTEM_TIME" ? (
|
|
296
|
+
r.segmentType === "SYSTEM_TIME" ? (j(), w("label", rt, [E(N(i("date-format", "时间格式")), 1), D(P(_), {
|
|
297
297
|
value: r.dateFormat,
|
|
298
298
|
"onUpdate:value": (e) => r.dateFormat = e,
|
|
299
299
|
disabled: !e.editable,
|
|
300
|
-
options:
|
|
300
|
+
options: l.map((e) => ({
|
|
301
301
|
value: e,
|
|
302
302
|
label: e
|
|
303
303
|
}))
|
|
@@ -307,47 +307,47 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
307
307
|
"disabled",
|
|
308
308
|
"options"
|
|
309
309
|
])])) : C("v-if", !0),
|
|
310
|
-
r.segmentType === "FORMULA" ? (
|
|
310
|
+
r.segmentType === "FORMULA" ? (j(), w("label", it, [E(N(i("formula", "返回编码片段的公式")), 1), D(P(d), {
|
|
311
311
|
value: r.formulaExpr ?? "",
|
|
312
312
|
"onUpdate:value": (e) => r.formulaExpr = e,
|
|
313
313
|
disabled: !e.editable,
|
|
314
|
-
fields:
|
|
314
|
+
fields: ee.value
|
|
315
315
|
}, null, 8, [
|
|
316
316
|
"value",
|
|
317
317
|
"onUpdate:value",
|
|
318
318
|
"disabled",
|
|
319
319
|
"fields"
|
|
320
320
|
])])) : C("v-if", !0),
|
|
321
|
-
["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (
|
|
321
|
+
["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (j(), w("label", at, [E(N(i("length", "片段长度")) + " ", 1), D(P(v), {
|
|
322
322
|
value: r.length ?? void 0,
|
|
323
323
|
type: "number",
|
|
324
324
|
disabled: !e.editable,
|
|
325
|
-
"onUpdate:value": (e) => r.length =
|
|
325
|
+
"onUpdate:value": (e) => r.length = h(e)
|
|
326
326
|
}, null, 8, [
|
|
327
327
|
"value",
|
|
328
328
|
"disabled",
|
|
329
329
|
"onUpdate:value"
|
|
330
330
|
])])) : C("v-if", !0)
|
|
331
331
|
])),
|
|
332
|
-
T("details",
|
|
333
|
-
r.segmentType !== "SEQUENCE" && !r.length ? (
|
|
334
|
-
["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? C("v-if", !0) : (
|
|
332
|
+
T("details", z, [T("summary", null, [E(N(i("advanced-format", "高级设置")), 1), m(r) ? (j(), w("span", B, " · " + N(ue(r)), 1)) : C("v-if", !0)]), T("div", V, [
|
|
333
|
+
r.segmentType !== "SEQUENCE" && !r.length ? (j(), w("p", ot, N(i("length-dependent-hint", "设置片段长度后,补位与超长截取才会生效。")), 1)) : C("v-if", !0),
|
|
334
|
+
["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? C("v-if", !0) : (j(), w("label", H, [E(N(r.segmentType === "SEQUENCE" ? i("sequence-length-override", "片段长度(覆盖流水长度)") : i("length", "片段长度")), 1), D(P(v), {
|
|
335
335
|
value: r.length ?? void 0,
|
|
336
|
-
placeholder: r.segmentType === "SEQUENCE" ?
|
|
336
|
+
placeholder: r.segmentType === "SEQUENCE" ? ce.value : void 0,
|
|
337
337
|
type: "number",
|
|
338
338
|
disabled: !e.editable,
|
|
339
|
-
"onUpdate:value": (e) => r.length =
|
|
339
|
+
"onUpdate:value": (e) => r.length = h(e)
|
|
340
340
|
}, null, 8, [
|
|
341
341
|
"value",
|
|
342
342
|
"placeholder",
|
|
343
343
|
"disabled",
|
|
344
344
|
"onUpdate:value"
|
|
345
345
|
])])),
|
|
346
|
-
r.segmentType !== "SEQUENCE" || (r.padMode ?? "NONE") !== "NONE" ? (
|
|
346
|
+
r.segmentType !== "SEQUENCE" || (r.padMode ?? "NONE") !== "NONE" ? (j(), w("label", st, [E(N(i("padding", "补位")), 1), D(P(_), {
|
|
347
347
|
value: r.padMode,
|
|
348
348
|
"onUpdate:value": (e) => r.padMode = e,
|
|
349
349
|
disabled: !e.editable,
|
|
350
|
-
options:
|
|
350
|
+
options: c("padding", {
|
|
351
351
|
NONE: "不补位",
|
|
352
352
|
LEFT: "左侧补位",
|
|
353
353
|
RIGHT: "右侧补位"
|
|
@@ -358,7 +358,7 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
358
358
|
"disabled",
|
|
359
359
|
"options"
|
|
360
360
|
])])) : C("v-if", !0),
|
|
361
|
-
(r.padMode ?? "NONE") === "NONE" ? C("v-if", !0) : (
|
|
361
|
+
(r.padMode ?? "NONE") === "NONE" ? C("v-if", !0) : (j(), w("label", U, [E(N(i("pad-char", "补位字符")), 1), D(P(v), {
|
|
362
362
|
value: r.padChar,
|
|
363
363
|
"onUpdate:value": (e) => r.padChar = e,
|
|
364
364
|
disabled: !e.editable
|
|
@@ -367,11 +367,11 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
367
367
|
"onUpdate:value",
|
|
368
368
|
"disabled"
|
|
369
369
|
])])),
|
|
370
|
-
r.segmentType !== "SEQUENCE" || (r.truncatePolicy ?? "NONE") !== "NONE" ? (
|
|
370
|
+
r.segmentType !== "SEQUENCE" || (r.truncatePolicy ?? "NONE") !== "NONE" ? (j(), w("label", ct, [E(N(i("truncate", "超长截取")), 1), D(P(_), {
|
|
371
371
|
value: r.truncatePolicy,
|
|
372
372
|
"onUpdate:value": (e) => r.truncatePolicy = e,
|
|
373
373
|
disabled: !e.editable,
|
|
374
|
-
options:
|
|
374
|
+
options: c("truncate", {
|
|
375
375
|
NONE: "保留原值",
|
|
376
376
|
LEFT: "截去左侧",
|
|
377
377
|
RIGHT: "截去右侧"
|
|
@@ -382,7 +382,7 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
382
382
|
"disabled",
|
|
383
383
|
"options"
|
|
384
384
|
])])) : C("v-if", !0),
|
|
385
|
-
T("label",
|
|
385
|
+
T("label", W, [E(N(i("separator", "片段后分隔符")), 1), D(P(v), {
|
|
386
386
|
value: r.separator,
|
|
387
387
|
"onUpdate:value": (e) => r.separator = e,
|
|
388
388
|
disabled: !e.editable
|
|
@@ -391,17 +391,17 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
391
391
|
"onUpdate:value",
|
|
392
392
|
"disabled"
|
|
393
393
|
])]),
|
|
394
|
-
|
|
394
|
+
p(r) || (r.nullPolicy ?? "ERROR") !== "ERROR" ? (j(), w("label", lt, [E(N(i("null-policy", "来源为空时")), 1), D(P(_), {
|
|
395
395
|
value: r.nullPolicy,
|
|
396
396
|
"onUpdate:value": (e) => r.nullPolicy = e,
|
|
397
397
|
disabled: !e.editable,
|
|
398
|
-
options:
|
|
398
|
+
options: c("null", {
|
|
399
399
|
ERROR: "拒绝生成",
|
|
400
400
|
SKIP_SEGMENT: "跳过该片段",
|
|
401
401
|
USE_DEFAULT: "使用默认文字"
|
|
402
402
|
}).map((e) => r.segmentType === "VALUE_MAPPING" && e.value === "USE_DEFAULT" ? {
|
|
403
403
|
...e,
|
|
404
|
-
label:
|
|
404
|
+
label: i("use-default-source", "使用来源默认值")
|
|
405
405
|
} : e)
|
|
406
406
|
}, null, 8, [
|
|
407
407
|
"value",
|
|
@@ -409,9 +409,9 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
409
409
|
"disabled",
|
|
410
410
|
"options"
|
|
411
411
|
])])) : C("v-if", !0),
|
|
412
|
-
r.nullPolicy === "USE_DEFAULT" && r.segmentType !== "CONSTANT" ? (
|
|
413
|
-
E(
|
|
414
|
-
D(
|
|
412
|
+
r.nullPolicy === "USE_DEFAULT" && r.segmentType !== "CONSTANT" ? (j(), w("label", ut, [
|
|
413
|
+
E(N(r.segmentType === "VALUE_MAPPING" ? i("mapping-fallback", "来源默认值") : i("default-text", "默认文字")), 1),
|
|
414
|
+
D(P(v), {
|
|
415
415
|
value: r.fixedValue,
|
|
416
416
|
"onUpdate:value": (e) => r.fixedValue = e,
|
|
417
417
|
disabled: !e.editable
|
|
@@ -420,16 +420,16 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
420
420
|
"onUpdate:value",
|
|
421
421
|
"disabled"
|
|
422
422
|
]),
|
|
423
|
-
r.segmentType === "VALUE_MAPPING" ? (
|
|
423
|
+
r.segmentType === "VALUE_MAPPING" ? (j(), w("span", dt, N(i("mapping-fallback-hint", "默认值仍需匹配下方映射。")), 1)) : C("v-if", !0)
|
|
424
424
|
])) : C("v-if", !0),
|
|
425
|
-
|
|
425
|
+
se(r) || r.sequenceBasis ? (j(), S(P(be), {
|
|
426
426
|
key: 7,
|
|
427
427
|
class: "code-format__basis code-format__wide",
|
|
428
428
|
checked: r.sequenceBasis,
|
|
429
429
|
"onUpdate:checked": (e) => r.sequenceBasis = e,
|
|
430
430
|
disabled: !e.editable
|
|
431
431
|
}, {
|
|
432
|
-
default:
|
|
432
|
+
default: F(() => [E(N(i("basis", "按该片段分别计数")), 1)]),
|
|
433
433
|
_: 1
|
|
434
434
|
}, 8, [
|
|
435
435
|
"checked",
|
|
@@ -437,15 +437,15 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
437
437
|
"disabled"
|
|
438
438
|
])) : C("v-if", !0)
|
|
439
439
|
])]),
|
|
440
|
-
r.segmentType === "VALUE_MAPPING" ? (
|
|
440
|
+
r.segmentType === "VALUE_MAPPING" ? (j(), w("div", G, [(j(!0), w(b, null, Ge(r.mappings, (t, n) => (j(), w("div", {
|
|
441
441
|
key: n,
|
|
442
442
|
class: "code-format__mapping-row"
|
|
443
443
|
}, [
|
|
444
|
-
D(
|
|
444
|
+
D(P(v), {
|
|
445
445
|
value: t.sourceValue,
|
|
446
446
|
"onUpdate:value": (e) => t.sourceValue = e,
|
|
447
|
-
placeholder:
|
|
448
|
-
"aria-label":
|
|
447
|
+
placeholder: i("mapping-source", "原值"),
|
|
448
|
+
"aria-label": i("mapping-source", "原值"),
|
|
449
449
|
disabled: !e.editable || t.defaultMapping
|
|
450
450
|
}, null, 8, [
|
|
451
451
|
"value",
|
|
@@ -454,12 +454,12 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
454
454
|
"aria-label",
|
|
455
455
|
"disabled"
|
|
456
456
|
]),
|
|
457
|
-
|
|
458
|
-
D(
|
|
457
|
+
o[6] ||= T("span", null, "→", -1),
|
|
458
|
+
D(P(v), {
|
|
459
459
|
value: t.targetValue,
|
|
460
460
|
"onUpdate:value": (e) => t.targetValue = e,
|
|
461
|
-
placeholder:
|
|
462
|
-
"aria-label":
|
|
461
|
+
placeholder: i("mapping-target", "编码文字"),
|
|
462
|
+
"aria-label": i("mapping-target", "编码文字"),
|
|
463
463
|
disabled: !e.editable
|
|
464
464
|
}, null, 8, [
|
|
465
465
|
"value",
|
|
@@ -468,28 +468,28 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
468
468
|
"aria-label",
|
|
469
469
|
"disabled"
|
|
470
470
|
]),
|
|
471
|
-
D(
|
|
471
|
+
D(P(be), {
|
|
472
472
|
class: "code-format__mapping-default",
|
|
473
473
|
checked: t.defaultMapping,
|
|
474
474
|
"onUpdate:checked": (e) => t.defaultMapping = e,
|
|
475
475
|
disabled: !e.editable
|
|
476
476
|
}, {
|
|
477
|
-
default:
|
|
477
|
+
default: F(() => [E(N(i("mapping-default", "其他值")), 1)]),
|
|
478
478
|
_: 1
|
|
479
479
|
}, 8, [
|
|
480
480
|
"checked",
|
|
481
481
|
"onUpdate:checked",
|
|
482
482
|
"disabled"
|
|
483
483
|
]),
|
|
484
|
-
D(
|
|
484
|
+
D(P(y), {
|
|
485
485
|
class: "code-format__mapping-remove",
|
|
486
486
|
disabled: !e.editable,
|
|
487
487
|
onClick: (e) => r.mappings.splice(n, 1)
|
|
488
488
|
}, {
|
|
489
|
-
default:
|
|
489
|
+
default: F(() => [E(N(i("remove", "删除")), 1)]),
|
|
490
490
|
_: 1
|
|
491
491
|
}, 8, ["disabled", "onClick"])
|
|
492
|
-
]))), 128)), D(
|
|
492
|
+
]))), 128)), D(P(y), {
|
|
493
493
|
disabled: !e.editable,
|
|
494
494
|
onClick: (e) => r.mappings.push({
|
|
495
495
|
sourceValue: "",
|
|
@@ -498,36 +498,36 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
498
498
|
enabled: !0
|
|
499
499
|
})
|
|
500
500
|
}, {
|
|
501
|
-
default:
|
|
501
|
+
default: F(() => [E(N(i("add-mapping", "增加映射")), 1)]),
|
|
502
502
|
_: 1
|
|
503
503
|
}, 8, ["disabled", "onClick"])])) : C("v-if", !0)
|
|
504
504
|
]))), 128))]),
|
|
505
|
-
D(
|
|
505
|
+
D(P(y), {
|
|
506
506
|
type: "dashed",
|
|
507
507
|
"icon-name": "plus",
|
|
508
|
-
"aria-label":
|
|
508
|
+
"aria-label": i("add-segment", "增加片段"),
|
|
509
509
|
disabled: !e.editable,
|
|
510
|
-
onClick:
|
|
510
|
+
onClick: g
|
|
511
511
|
}, {
|
|
512
|
-
default:
|
|
512
|
+
default: F(() => [E(N(i("add-segment", "增加片段")), 1)]),
|
|
513
513
|
_: 1
|
|
514
514
|
}, 8, ["aria-label", "disabled"]),
|
|
515
|
-
n.value.sequencePolicy ? (
|
|
516
|
-
D(
|
|
515
|
+
n.value.sequencePolicy ? (j(), w("div", ft, [
|
|
516
|
+
D(P(ne), {
|
|
517
517
|
class: "code-format__wide",
|
|
518
|
-
title:
|
|
518
|
+
title: i("sequence", "流水策略")
|
|
519
519
|
}, null, 8, ["title"]),
|
|
520
|
-
T("label",
|
|
520
|
+
T("label", pt, [E(N(i("sequence-length", "流水长度")), 1), D(P(v), {
|
|
521
521
|
value: n.value.sequencePolicy.sequenceLength ?? void 0,
|
|
522
522
|
type: "number",
|
|
523
523
|
disabled: !e.editable,
|
|
524
|
-
"onUpdate:value":
|
|
524
|
+
"onUpdate:value": o[0] ||= (e) => n.value.sequencePolicy.sequenceLength = h(e)
|
|
525
525
|
}, null, 8, ["value", "disabled"])]),
|
|
526
|
-
T("label",
|
|
526
|
+
T("label", mt, [E(N(i("reset", "计数周期")), 1), D(P(_), {
|
|
527
527
|
value: n.value.sequencePolicy.resetPolicy,
|
|
528
|
-
"onUpdate:value":
|
|
528
|
+
"onUpdate:value": o[1] ||= (e) => n.value.sequencePolicy.resetPolicy = e,
|
|
529
529
|
disabled: !e.editable,
|
|
530
|
-
options:
|
|
530
|
+
options: c("reset", {
|
|
531
531
|
NONE: "持续计数",
|
|
532
532
|
DAY: "每天重置",
|
|
533
533
|
MONTH: "每月重置",
|
|
@@ -538,34 +538,34 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
538
538
|
"disabled",
|
|
539
539
|
"options"
|
|
540
540
|
])]),
|
|
541
|
-
T("details",
|
|
542
|
-
T("label", gt, [E(
|
|
541
|
+
T("details", K, [T("summary", null, [E(N(i("sequence-advanced", "流水高级设置")), 1), T("span", null, " · " + N(de.value), 1)]), T("div", ht, [
|
|
542
|
+
T("label", gt, [E(N(i("start", "起始值")), 1), D(P(v), {
|
|
543
543
|
value: n.value.sequencePolicy.startValue ?? void 0,
|
|
544
544
|
type: "number",
|
|
545
545
|
disabled: !e.editable,
|
|
546
|
-
"onUpdate:value":
|
|
546
|
+
"onUpdate:value": o[2] ||= (e) => n.value.sequencePolicy.startValue = h(e)
|
|
547
547
|
}, null, 8, ["value", "disabled"])]),
|
|
548
|
-
T("label", _t, [E(
|
|
548
|
+
T("label", _t, [E(N(i("step", "递增步长")), 1), D(P(v), {
|
|
549
549
|
value: n.value.sequencePolicy.stepValue ?? void 0,
|
|
550
550
|
type: "number",
|
|
551
551
|
disabled: !e.editable,
|
|
552
|
-
"onUpdate:value":
|
|
552
|
+
"onUpdate:value": o[3] ||= (e) => n.value.sequencePolicy.stepValue = h(e)
|
|
553
553
|
}, null, 8, ["value", "disabled"])]),
|
|
554
554
|
T("label", vt, [
|
|
555
|
-
E(
|
|
556
|
-
D(
|
|
555
|
+
E(N(i("maximum", "流水上限")), 1),
|
|
556
|
+
D(P(v), {
|
|
557
557
|
value: n.value.sequencePolicy.maxValue ?? void 0,
|
|
558
558
|
type: "number",
|
|
559
559
|
disabled: !e.editable,
|
|
560
|
-
"onUpdate:value":
|
|
560
|
+
"onUpdate:value": o[4] ||= (e) => n.value.sequencePolicy.maxValue = h(e)
|
|
561
561
|
}, null, 8, ["value", "disabled"]),
|
|
562
|
-
|
|
562
|
+
le.value ? (j(), w("span", q, N(le.value), 1)) : C("v-if", !0)
|
|
563
563
|
]),
|
|
564
|
-
T("label", J, [E(
|
|
564
|
+
T("label", J, [E(N(i("overflow", "达到上限后")), 1), D(P(_), {
|
|
565
565
|
value: n.value.sequencePolicy.overflowPolicy,
|
|
566
|
-
"onUpdate:value":
|
|
566
|
+
"onUpdate:value": o[5] ||= (e) => n.value.sequencePolicy.overflowPolicy = e,
|
|
567
567
|
disabled: !e.editable,
|
|
568
|
-
options:
|
|
568
|
+
options: c("overflow", {
|
|
569
569
|
ERROR: "拒绝生成",
|
|
570
570
|
RESET: "从起点重新尝试"
|
|
571
571
|
})
|
|
@@ -579,7 +579,7 @@ var Qe = { class: "code-format" }, $e = {
|
|
|
579
579
|
]));
|
|
580
580
|
}
|
|
581
581
|
}), [["__scopeId", "data-v-cccc510e"]]), bt = Symbol("module-runtime-activation-refresh");
|
|
582
|
-
function xt(e, t =
|
|
582
|
+
function xt(e, t = ge) {
|
|
583
583
|
let n = e.status === "PENDING" || e.installedRevision !== e.desiredRevision;
|
|
584
584
|
return { message: {
|
|
585
585
|
text: e.status === "UNTRACKED" ? t.t("platform.screen.moduleRuntimeActivation.no-module-runtime-activation-has-been-recorded", "尚无模块运行配置生效记录") : e.status === "FAILED" ? t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-saved-activation-failed", "模块运行配置已保存,生效失败") : e.status === "PENDING" ? t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-saved-activation-is-in-progress", "模块运行配置已保存,正在生效") : e.installedRevision === e.desiredRevision ? e.status === "INACTIVE" ? t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-activated-business-runtime-entry-points-are-disabled", "模块运行配置已生效,业务运行入口已停用") : t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-activated", "模块运行配置已生效") : t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-saved-this-node-has-not-confirmed-activation", "模块运行配置已保存,当前节点尚未确认生效"),
|
|
@@ -594,36 +594,36 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
594
594
|
}, kt = { key: 2 }, At = {
|
|
595
595
|
key: 3,
|
|
596
596
|
class: "module-runtime-activation__versions"
|
|
597
|
-
}, jt = /*#__PURE__*/
|
|
597
|
+
}, jt = /*#__PURE__*/ h(/* @__PURE__ */ ze({
|
|
598
598
|
__name: "ModuleRuntimeActivationStatus",
|
|
599
599
|
props: {
|
|
600
600
|
moduleAlias: {},
|
|
601
601
|
reloadKey: {}
|
|
602
602
|
},
|
|
603
603
|
setup(e, { expose: t }) {
|
|
604
|
-
let n =
|
|
604
|
+
let n = ae(), r = e, i = _e({ moduleAlias: "platform.module" }), a = M(), ee = M(!1), o = M(!1), s = M(!1), c = 0, l = !0, u, d = x(() => {
|
|
605
605
|
let e = a.value;
|
|
606
606
|
return !(!e || e.status === "UNTRACKED" || e.status === "FAILED" || e.status !== "PENDING" && e.installedRevision === e.desiredRevision);
|
|
607
|
-
}),
|
|
608
|
-
|
|
609
|
-
c++, a.value = void 0, o.value = !1,
|
|
607
|
+
}), te = x(() => s.value || a.value?.status === "FAILED" || d.value), ne = x(() => s.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.unknown-status", "状态未知") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.activation-failed", "生效失败") : n.t("platform.screen.ModuleRuntimeActivationStatus.applying-changes", "正在应用修改")), re = x(() => s.value ? "NEUTRAL" : a.value?.status === "FAILED" ? "DANGER" : "WARNING"), ie = x(() => s.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.cannot-check-the-status-right-now-try-again-later", "暂时无法查询,请稍后重试。") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.the-changes-were-saved-but-activation-failed", "修改已保存,但未能生效。") : n.t("platform.screen.ModuleRuntimeActivationStatus.this-notice-will-close-when-activation-completes", "完成后将自动关闭提示。")), oe = x(() => a.value?.desiredRevision != null && (a.value.status === "FAILED" || a.value.status === "PENDING" || a.value.installedRevision !== a.value.desiredRevision) && i.can("retryRuntimeActivation") === !0);
|
|
608
|
+
Ye(() => [r.moduleAlias, r.reloadKey], () => {
|
|
609
|
+
c++, a.value = void 0, o.value = !1, m();
|
|
610
610
|
}, { immediate: !0 });
|
|
611
|
-
function
|
|
612
|
-
clearTimeout(
|
|
611
|
+
function ce() {
|
|
612
|
+
clearTimeout(u), u = void 0;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
|
|
614
|
+
function le() {
|
|
615
|
+
ce(), l && d.value && !s.value && (u = setTimeout(() => void m(), 2e3));
|
|
616
616
|
}
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}), Ue(() => {
|
|
620
|
-
u || (u = !0, o.value = !1, g());
|
|
617
|
+
We(() => {
|
|
618
|
+
l = !1, c++, ce();
|
|
621
619
|
}), k(() => {
|
|
622
|
-
|
|
620
|
+
l || (l = !0, o.value = !1, m());
|
|
621
|
+
}), A(() => {
|
|
622
|
+
l = !1, c++, ce();
|
|
623
623
|
});
|
|
624
|
-
async function
|
|
625
|
-
if (!
|
|
626
|
-
|
|
624
|
+
async function m() {
|
|
625
|
+
if (!l || o.value) return;
|
|
626
|
+
ce();
|
|
627
627
|
let e = ++c, t = r.moduleAlias;
|
|
628
628
|
s.value = !1, ee.value = !0;
|
|
629
629
|
try {
|
|
@@ -636,12 +636,12 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
636
636
|
if (e !== c) return;
|
|
637
637
|
s.value = !0;
|
|
638
638
|
} finally {
|
|
639
|
-
e === c && (ee.value = !1,
|
|
639
|
+
e === c && (ee.value = !1, le());
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
async function
|
|
643
|
-
if (!
|
|
644
|
-
|
|
642
|
+
async function ue() {
|
|
643
|
+
if (!oe.value || o.value) return;
|
|
644
|
+
ce();
|
|
645
645
|
let e = ++c, t = r.moduleAlias, ee = a.value.desiredRevision;
|
|
646
646
|
o.value = !0;
|
|
647
647
|
try {
|
|
@@ -649,83 +649,83 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
649
649
|
method: "POST",
|
|
650
650
|
path: `/platform.module/${encodeURIComponent(t)}/runtime/activation/retry?expectedRevision=${ee}`
|
|
651
651
|
});
|
|
652
|
-
e === c && (a.value =
|
|
652
|
+
e === c && (a.value = me(n), s.value = !1);
|
|
653
653
|
} catch (t) {
|
|
654
654
|
if (e !== c) return;
|
|
655
|
-
|
|
655
|
+
se(t, {
|
|
656
656
|
language: n,
|
|
657
657
|
source: "runtime-activation",
|
|
658
658
|
phase: "action"
|
|
659
|
-
}), o.value = !1, await
|
|
659
|
+
}), o.value = !1, await m();
|
|
660
660
|
} finally {
|
|
661
|
-
e === c && (o.value = !1,
|
|
661
|
+
e === c && (o.value = !1, le());
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
return t({ refresh:
|
|
664
|
+
return t({ refresh: m }), (t, r) => te.value ? (j(), w("section", {
|
|
665
665
|
key: 0,
|
|
666
666
|
class: "module-runtime-activation",
|
|
667
|
-
"aria-label":
|
|
667
|
+
"aria-label": P(n).t("platform.screen.ModuleRuntimeActivationStatus.module-runtime-configuration-activation-status", "模块运行配置生效状态"),
|
|
668
668
|
"aria-live": "polite"
|
|
669
669
|
}, [T("div", Ct, [
|
|
670
|
-
T("span", Y,
|
|
671
|
-
D(
|
|
670
|
+
T("span", Y, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.runtime-configuration", "运行配置")), 1),
|
|
671
|
+
D(P(f), {
|
|
672
672
|
enabled: !0,
|
|
673
|
-
"enabled-label":
|
|
674
|
-
"enabled-tone":
|
|
673
|
+
"enabled-label": ne.value,
|
|
674
|
+
"enabled-tone": re.value
|
|
675
675
|
}, null, 8, ["enabled-label", "enabled-tone"]),
|
|
676
|
-
T("span", X,
|
|
676
|
+
T("span", X, N(ie.value), 1)
|
|
677
677
|
]), T("div", wt, [
|
|
678
|
-
|
|
678
|
+
oe.value ? (j(), S(P(g), {
|
|
679
679
|
key: 0,
|
|
680
680
|
density: "compact",
|
|
681
681
|
disabled: ee.value || o.value,
|
|
682
682
|
loading: o.value,
|
|
683
|
-
onClick:
|
|
683
|
+
onClick: ue
|
|
684
684
|
}, {
|
|
685
|
-
default:
|
|
685
|
+
default: F(() => [E(N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.retry-activation", "重试生效")), 1)]),
|
|
686
686
|
_: 1
|
|
687
687
|
}, 8, ["disabled", "loading"])) : C("v-if", !0),
|
|
688
|
-
s.value ? (
|
|
688
|
+
s.value ? (j(), S(P(g), {
|
|
689
689
|
key: 1,
|
|
690
690
|
density: "compact",
|
|
691
691
|
disabled: ee.value || o.value,
|
|
692
692
|
"icon-name": "reload",
|
|
693
|
-
onClick:
|
|
693
|
+
onClick: m
|
|
694
694
|
}, {
|
|
695
|
-
default:
|
|
695
|
+
default: F(() => [E(N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.check-again", "重新查询")), 1)]),
|
|
696
696
|
_: 1
|
|
697
697
|
}, 8, ["disabled"])) : C("v-if", !0),
|
|
698
|
-
(
|
|
698
|
+
(j(), S(P(p), {
|
|
699
699
|
key: e.moduleAlias,
|
|
700
700
|
placement: "bottomRight"
|
|
701
701
|
}, {
|
|
702
|
-
content:
|
|
703
|
-
T("strong", null,
|
|
704
|
-
T("p", Et,
|
|
705
|
-
s.value ? (
|
|
706
|
-
a.value ? (
|
|
707
|
-
T("dt", null,
|
|
708
|
-
T("dd", null,
|
|
709
|
-
T("dt", null,
|
|
710
|
-
T("dd", null,
|
|
702
|
+
content: F(() => [T("div", Tt, [
|
|
703
|
+
T("strong", null, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1),
|
|
704
|
+
T("p", Et, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.activation-status-of-the-module-runtime-configuration", "模块运行配置的生效情况")), 1),
|
|
705
|
+
s.value ? (j(), w("p", Dt, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.failed-to-check-the-status-check-again", "状态查询失败,请重新查询。")), 1)) : a.value?.status === "FAILED" ? (j(), w("p", Ot, N(a.value.failureMessage || P(n).t("platform.screen.ModuleRuntimeActivationStatus.no-failure-reason-is-available-retry-or-contact-an-administrator", "暂未提供失败原因,请重试或联系管理员。")), 1)) : d.value ? (j(), w("p", kt, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.the-service-is-loading-the-latest-configuration-the-status-will", "服务正在加载最新配置,状态将自动更新。")), 1)) : C("v-if", !0),
|
|
706
|
+
a.value ? (j(), w("dl", At, [
|
|
707
|
+
T("dt", null, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.configuration-revision", "配置版本")), 1),
|
|
708
|
+
T("dd", null, N(a.value.desiredRevision ?? "—"), 1),
|
|
709
|
+
T("dt", null, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.loaded-revision", "已加载版本")), 1),
|
|
710
|
+
T("dd", null, N(a.value.installedRevision ?? "—"), 1)
|
|
711
711
|
])) : C("v-if", !0),
|
|
712
|
-
D(
|
|
712
|
+
D(P(g), {
|
|
713
713
|
density: "compact",
|
|
714
714
|
emphasis: "quiet",
|
|
715
715
|
"icon-name": "reload",
|
|
716
716
|
disabled: ee.value || o.value,
|
|
717
|
-
onClick:
|
|
717
|
+
onClick: m
|
|
718
718
|
}, {
|
|
719
|
-
default:
|
|
719
|
+
default: F(() => [E(N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.refresh-status", "刷新状态")), 1)]),
|
|
720
720
|
_: 1
|
|
721
721
|
}, 8, ["disabled"])
|
|
722
722
|
])]),
|
|
723
|
-
default:
|
|
723
|
+
default: F(() => [D(P(g), {
|
|
724
724
|
density: "compact",
|
|
725
725
|
emphasis: "quiet",
|
|
726
|
-
title:
|
|
726
|
+
title: P(n).t("platform.screen.WorkbenchAssistantPanel.show-diagnostics", "查看诊断信息")
|
|
727
727
|
}, {
|
|
728
|
-
default:
|
|
728
|
+
default: F(() => [E(N(a.value?.status === "FAILED" ? P(n).t("platform.screen.ModuleRuntimeActivationStatus.view-reason", "查看原因") : P(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1)]),
|
|
729
729
|
_: 1
|
|
730
730
|
}, 8, ["title"])]),
|
|
731
731
|
_: 1
|
|
@@ -796,98 +796,98 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
796
796
|
embedded: { type: Boolean }
|
|
797
797
|
},
|
|
798
798
|
setup(e) {
|
|
799
|
-
let
|
|
800
|
-
function
|
|
801
|
-
return e instanceof
|
|
799
|
+
let d = e, f = ae(), p = (e, t) => f.t(`platform.code.config.${e}`, t);
|
|
800
|
+
function h(e) {
|
|
801
|
+
return e instanceof le ? he(e, f) : ee(Se(e), f);
|
|
802
802
|
}
|
|
803
|
-
let
|
|
804
|
-
switch (
|
|
805
|
-
case "no-model": return
|
|
806
|
-
case "no-fields": return
|
|
807
|
-
case "not-declared": return
|
|
808
|
-
default: return
|
|
803
|
+
let g = _e({ moduleAlias: "platform.code_rule" }), me = t(), ge = M(), je = x(() => {
|
|
804
|
+
switch (ge.value) {
|
|
805
|
+
case "no-model": return p("reason.no-model", "尚未关联业务数据模型,请先配置模型,再设置编号规则。");
|
|
806
|
+
case "no-fields": return p("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。");
|
|
807
|
+
case "not-declared": return p("reason.not-declared", "该静态模块尚未声明可配置的编号字段,需由开发者在业务模型中声明。");
|
|
808
|
+
default: return d.moduleAlias ? p("reason.unavailable", "当前模块没有可配置的编号字段,请返回模块管理检查配置。") : p("no-modules", "没有可配置业务编码的模块。");
|
|
809
809
|
}
|
|
810
810
|
});
|
|
811
811
|
function ze() {
|
|
812
|
-
let e =
|
|
813
|
-
e &&
|
|
812
|
+
let e = d.moduleAlias ?? R.value;
|
|
813
|
+
e && me?.openPage(n(Ne, {
|
|
814
814
|
moduleAlias: e,
|
|
815
|
-
moduleTitle:
|
|
815
|
+
moduleTitle: d.moduleTitle ?? Y.value?.moduleTitle,
|
|
816
816
|
governanceTab: "metadata"
|
|
817
817
|
}));
|
|
818
818
|
}
|
|
819
|
-
let O = r(),
|
|
820
|
-
http:
|
|
821
|
-
language:
|
|
819
|
+
let O = r(), k = M(O?.value?.tenantId ?? ""), We = M(0), A = M(!1), Ke = x(() => !!k.value), qe = x(() => k.value && O?.value?.system ? de(g.http, { "X-MuYun-Tenant-Id": k.value }) : g.http), Ze = x(() => Fe(qe.value, f)), Qe = x(() => O?.value?.system ? ie({
|
|
820
|
+
http: g.http,
|
|
821
|
+
language: f,
|
|
822
822
|
moduleAlias: "iam.tenant",
|
|
823
823
|
runtimeAccess: "REFERENCE"
|
|
824
|
-
}) : void 0),
|
|
825
|
-
http:
|
|
826
|
-
language:
|
|
824
|
+
}) : void 0), $e = x(() => Ke.value ? ie({
|
|
825
|
+
http: qe.value,
|
|
826
|
+
language: f,
|
|
827
827
|
moduleAlias: "iam.organization",
|
|
828
828
|
runtimeAccess: "REFERENCE"
|
|
829
|
-
}) : void 0),
|
|
829
|
+
}) : void 0), I = x(() => Ke.value && g.can("saveTree") === !0), et = x(() => g.can("configureBinding") === !0), L = M([]), R = M(d.moduleAlias ?? ""), tt = M(""), nt = x(() => {
|
|
830
830
|
let e = /* @__PURE__ */ new Map();
|
|
831
|
-
for (let t of
|
|
831
|
+
for (let t of L.value) t.fields.length && (e.has(t.moduleAlias) || e.set(t.moduleAlias, {
|
|
832
832
|
id: t.moduleAlias,
|
|
833
|
-
title:
|
|
833
|
+
title: c(t.moduleTitle || t.moduleAlias, t.moduleTitleText, f),
|
|
834
834
|
code: t.moduleAlias
|
|
835
835
|
}));
|
|
836
836
|
return [...e.values()];
|
|
837
|
-
}),
|
|
838
|
-
|
|
837
|
+
}), rt = x(() => Ke.value && !d.moduleAlias), it = x(() => L.value.filter((e) => e.moduleAlias === R.value)), at = M(""), z = M(""), B = M([]), V = M(), ot = M(""), H = M(), st = M(""), U = M(!1), ct = M(!1), W = M(!1), lt = M(!1), ut = M(!1), dt = M([]), G = M(""), ft = M(""), pt = M(), mt = M(), K = M(""), ht = M(), gt = M(), _t = M({}), vt = M(""), q = M("NORMAL"), J = M("SAVE"), xt = M(), St = Be(bt, void 0), Ct = (e) => `${e.moduleAlias}/${e.entityAlias}`, Y = x(() => L.value.find((e) => Ct(e) === at.value)), X = x(() => Y.value?.fields.find((e) => e.fieldName === z.value)), wt = x(() => [p(`enum.${q.value}`, q.value === "PRIMARY" ? "主编码" : "业务编码"), p(`enum.${J.value}`, J.value === "SAVE" ? "首次保存" : "业务操作时生成")].join(" · ")), Tt = x(() => !!V.value && Ie(V.value)), Et = x(() => [Tt.value && V.value?.linkedUpdate ? p("linked-short", "来源变化时换号") : "", V.value?.allowRecycle ? p("recycle-short", "旧号可复用") : ""].filter(Boolean).join(" · ")), Dt = x(() => B.value.filter((e) => e.fieldName === z.value)), Ot = x(() => Dt.value.map((e) => ({ ...e }))), kt = M({}), At = 0;
|
|
838
|
+
Ye(() => [qe.value, Dt.value.map((e) => e.orgScopeType === "ORG" ? e.orgScopeId : "").join(",")], async ([e]) => {
|
|
839
839
|
let t = ++At;
|
|
840
840
|
kt.value = {};
|
|
841
841
|
let n = [...new Set(Dt.value.filter((e) => e.orgScopeType === "ORG").map((e) => e.orgScopeId).filter((e) => !!e))];
|
|
842
|
-
if (
|
|
843
|
-
let r = await
|
|
844
|
-
t === At && (kt.value = Object.fromEntries(r.records.map((e) => [String(e.id), o(e, "title",
|
|
842
|
+
if (Ke.value && n.length) try {
|
|
843
|
+
let r = await m(e, { moduleAlias: "iam.organization" }).translate(n);
|
|
844
|
+
t === At && (kt.value = Object.fromEntries(r.records.map((e) => [String(e.id), o(e, "title", f) ?? p("specific-org", "指定机构")])));
|
|
845
845
|
} catch {}
|
|
846
846
|
});
|
|
847
847
|
function En(e) {
|
|
848
|
-
return e.orgScopeType === "GLOBAL" ?
|
|
848
|
+
return e.orgScopeType === "GLOBAL" ? p("all-orgs", "全部机构") : kt.value[e.orgScopeId ?? ""] ?? p("specific-org", "指定机构");
|
|
849
849
|
}
|
|
850
850
|
let Dn = x(() => [
|
|
851
851
|
{
|
|
852
852
|
fieldName: "title",
|
|
853
|
-
title:
|
|
853
|
+
title: p("rule-title", "规则名称"),
|
|
854
854
|
width: 150
|
|
855
855
|
},
|
|
856
856
|
{
|
|
857
857
|
fieldName: "scope",
|
|
858
|
-
title:
|
|
858
|
+
title: p("scope", "适用范围"),
|
|
859
859
|
width: 152
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
862
|
fieldName: "organization",
|
|
863
|
-
title:
|
|
863
|
+
title: p("organization", "适用组织"),
|
|
864
864
|
width: 120
|
|
865
865
|
},
|
|
866
866
|
{
|
|
867
867
|
fieldName: "effectiveFrom",
|
|
868
|
-
title:
|
|
868
|
+
title: p("effective-from-short", "开始生效时间"),
|
|
869
869
|
width: 180
|
|
870
870
|
},
|
|
871
871
|
{
|
|
872
872
|
fieldName: "effectiveTo",
|
|
873
|
-
title:
|
|
873
|
+
title: p("effective-to-short", "结束生效时间"),
|
|
874
874
|
width: 180
|
|
875
875
|
},
|
|
876
876
|
{
|
|
877
877
|
fieldName: "enabled",
|
|
878
|
-
title:
|
|
878
|
+
title: p("enable-rule", "启用规则"),
|
|
879
879
|
width: 64
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
fieldName: "actions",
|
|
883
|
-
title:
|
|
883
|
+
title: p("actions", "操作"),
|
|
884
884
|
width: 112
|
|
885
885
|
}
|
|
886
|
-
]), On = x(() =>
|
|
887
|
-
|
|
888
|
-
let jn = x(() =>
|
|
889
|
-
if (!Rn.value || !
|
|
890
|
-
let e =
|
|
886
|
+
]), On = x(() => H.value != null && JSON.stringify(H.value) !== st.value), kn = x(() => Y.value?.source === "DYNAMIC" && X.value?.role != null && (q.value !== X.value.role || J.value !== (X.value.trigger ?? "SAVE"))), An = x(() => On.value || kn.value || V.value != null && JSON.stringify(V.value) !== ot.value), Z = x(() => U.value || W.value);
|
|
887
|
+
pe(() => p("title", "业务编码"), () => An.value, () => Z.value);
|
|
888
|
+
let jn = x(() => I.value && !Z.value), Mn = x(() => Y.value ? Me(Y.value, V.value) : []), Nn = x(() => Y.value?.sources.filter((e) => !Mn.value.some((t) => t.fieldName === e.fieldName)) ?? []), Pn = x(() => [...Mn.value, ...Nn.value.filter((e) => dt.value.includes(e.fieldName))]), Fn = 0, In, Ln, Rn = x(() => A.value && V.value?.mode !== "MANUAL" && !!V.value && !!Y.value && !Z.value && g.can("preview")), zn = x(() => {
|
|
889
|
+
if (!Rn.value || !V.value) return "";
|
|
890
|
+
let e = V.value;
|
|
891
891
|
return JSON.stringify([
|
|
892
892
|
e.id,
|
|
893
893
|
e.moduleAlias,
|
|
@@ -909,162 +909,162 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
909
909
|
]);
|
|
910
910
|
});
|
|
911
911
|
function Bn() {
|
|
912
|
-
In != null && clearTimeout(In), In = void 0,
|
|
912
|
+
In != null && clearTimeout(In), In = void 0, ut.value = !1, Ln?.abort(), Ln = void 0, lt.value = !1, ++Fn;
|
|
913
913
|
}
|
|
914
|
-
|
|
915
|
-
Bn(),
|
|
914
|
+
Ye(zn, (e) => {
|
|
915
|
+
Bn(), ht.value = void 0, ft.value = "", e && (ut.value = !0, In = setTimeout(() => {
|
|
916
916
|
ur();
|
|
917
917
|
}, 500));
|
|
918
|
-
}, { flush: "sync" }),
|
|
918
|
+
}, { flush: "sync" }), Ue(Bn);
|
|
919
919
|
let Vn = (e) => Object.entries(e).map(([e, t]) => ({
|
|
920
920
|
value: e,
|
|
921
|
-
label:
|
|
921
|
+
label: p(`enum.${e}`, t)
|
|
922
922
|
})), Q = 0;
|
|
923
923
|
function $(e) {
|
|
924
|
-
|
|
924
|
+
H.value = void 0, st.value = "", vt.value = "", e || (A.value = !1), V.value = e == null ? void 0 : JSON.parse(JSON.stringify(e)), X.value?.role || (q.value = e?.fieldRole ?? "NORMAL", J.value = e?.fieldTrigger ?? "SAVE"), ot.value = V.value == null ? "" : JSON.stringify(V.value);
|
|
925
925
|
}
|
|
926
|
-
|
|
927
|
-
|
|
926
|
+
Ye([q, J], () => {
|
|
927
|
+
A.value && !X.value?.role && V.value && (V.value.fieldRole = q.value, V.value.fieldTrigger = J.value);
|
|
928
928
|
}, { flush: "sync" });
|
|
929
929
|
function Hn() {
|
|
930
930
|
q.value = X.value?.role ?? "NORMAL", J.value = X.value?.trigger ?? "SAVE";
|
|
931
931
|
}
|
|
932
932
|
function Un() {
|
|
933
|
-
return An.value ? (
|
|
933
|
+
return An.value ? (G.value = p("unsaved", "请先保存或取消当前修改。"), !1) : !Z.value;
|
|
934
934
|
}
|
|
935
935
|
function Wn(e) {
|
|
936
|
-
Un() && (
|
|
936
|
+
Un() && (z.value = e, _t.value = {}, dt.value = [], Hn(), $(Dt.value[0]), G.value = "", K.value = "");
|
|
937
937
|
}
|
|
938
938
|
async function Gn(e) {
|
|
939
|
-
if (!Un() || !
|
|
940
|
-
|
|
941
|
-
let t =
|
|
939
|
+
if (!Un() || !nt.value.some((t) => t.id === e)) return;
|
|
940
|
+
R.value = e, tt.value = "", K.value = "";
|
|
941
|
+
let t = it.value.find((e) => e.fields.length) ?? it.value[0];
|
|
942
942
|
await Kn(t ? Ct(t) : "");
|
|
943
943
|
}
|
|
944
944
|
async function Kn(e) {
|
|
945
945
|
if (!Un()) return;
|
|
946
946
|
let t = ++Q;
|
|
947
|
-
|
|
947
|
+
at.value = e, _t.value = {}, dt.value = [], z.value = "", B.value = [], $(), G.value = "", U.value = !0;
|
|
948
948
|
try {
|
|
949
949
|
let e = Y.value;
|
|
950
950
|
if (!e) return;
|
|
951
|
-
let n =
|
|
951
|
+
let n = Ke.value ? await Ze.value.rules(e) : [];
|
|
952
952
|
if (t !== Q) return;
|
|
953
|
-
|
|
953
|
+
B.value = n, z.value = e.fields.find((e) => e.role != null)?.fieldName ?? e.fields[0]?.fieldName ?? "", Hn(), $(Dt.value[0]);
|
|
954
954
|
} catch (e) {
|
|
955
|
-
t === Q && (
|
|
955
|
+
t === Q && (G.value = h(e));
|
|
956
956
|
} finally {
|
|
957
|
-
t === Q && (
|
|
957
|
+
t === Q && (U.value = !1);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
async function qn() {
|
|
961
961
|
let e = ++Q;
|
|
962
|
-
if (
|
|
963
|
-
|
|
962
|
+
if (ct.value = !1, !Ke.value) {
|
|
963
|
+
U.value = !1, G.value = "";
|
|
964
964
|
return;
|
|
965
965
|
}
|
|
966
|
-
|
|
966
|
+
U.value = !0, ge.value = void 0, G.value = "";
|
|
967
967
|
try {
|
|
968
|
-
let t = await
|
|
968
|
+
let t = await Ze.value.targets(d.moduleAlias);
|
|
969
969
|
if (e !== Q) return;
|
|
970
|
-
if (
|
|
970
|
+
if (L.value = t, d.moduleAlias && !t.some((e) => e.fields.length)) {
|
|
971
971
|
try {
|
|
972
|
-
let t = await Oe(
|
|
972
|
+
let t = await Oe(qe.value, d.moduleAlias);
|
|
973
973
|
if (e !== Q) return;
|
|
974
|
-
|
|
974
|
+
ge.value = t.reason;
|
|
975
975
|
} catch {}
|
|
976
976
|
if (e !== Q) return;
|
|
977
977
|
}
|
|
978
|
-
|
|
979
|
-
let n =
|
|
978
|
+
U.value = !1, nt.value.some((e) => e.id === R.value) || (R.value = "");
|
|
979
|
+
let n = it.value.find((e) => e.fields.length) ?? it.value[0];
|
|
980
980
|
await Kn(n ? Ct(n) : "");
|
|
981
981
|
} catch (t) {
|
|
982
|
-
e === Q && (
|
|
982
|
+
e === Q && (G.value = h(t), ct.value = !0);
|
|
983
983
|
} finally {
|
|
984
|
-
e === Q && (
|
|
984
|
+
e === Q && (U.value = !1);
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}, { immediate: !0 }),
|
|
987
|
+
Ye(() => d.moduleAlias, () => {
|
|
988
|
+
R.value = d.moduleAlias ?? "", tt.value = "", $(), z.value = "", at.value = "", L.value = [], B.value = [], qn();
|
|
989
|
+
}, { immediate: !0 }), Ye(() => [
|
|
990
990
|
O?.value?.userId,
|
|
991
991
|
O?.value?.tenantId,
|
|
992
992
|
O?.value?.system
|
|
993
993
|
], () => {
|
|
994
|
-
|
|
994
|
+
k.value = O?.value?.tenantId ?? "", R.value = d.moduleAlias ?? "", tt.value = "", $(), L.value = [], B.value = [], z.value = "", at.value = "", qn();
|
|
995
995
|
});
|
|
996
996
|
async function Jn(e) {
|
|
997
|
-
Un() && (
|
|
997
|
+
Un() && (k.value = e ?? "", R.value = d.moduleAlias ?? "", tt.value = "", L.value = [], B.value = [], z.value = "", at.value = "", $(), await qn());
|
|
998
998
|
}
|
|
999
999
|
function Yn(e, t, n) {
|
|
1000
|
-
t && n === 1 && e.length === 1 && !
|
|
1000
|
+
t && n === 1 && e.length === 1 && !k.value && Jn(String(e[0].id));
|
|
1001
1001
|
}
|
|
1002
1002
|
async function Xn() {
|
|
1003
1003
|
return Z.value ? !1 : !An.value || await a({
|
|
1004
|
-
title:
|
|
1005
|
-
content:
|
|
1006
|
-
okText:
|
|
1004
|
+
title: p("discard-rule", "放弃未保存的编号规则修改?"),
|
|
1005
|
+
content: p("discard-rule-help", "当前修改尚未保存,放弃后将恢复已保存的规则。"),
|
|
1006
|
+
okText: p("discard", "放弃修改"),
|
|
1007
1007
|
danger: !0
|
|
1008
|
-
},
|
|
1008
|
+
}, f);
|
|
1009
1009
|
}
|
|
1010
1010
|
function Zn() {
|
|
1011
|
-
er(),
|
|
1011
|
+
er(), A.value = !1;
|
|
1012
1012
|
}
|
|
1013
1013
|
function Qn(e) {
|
|
1014
|
-
Un() && (Hn(), $(e),
|
|
1014
|
+
Un() && (Hn(), $(e), A.value = !0, G.value = "", K.value = "");
|
|
1015
1015
|
}
|
|
1016
1016
|
function $n() {
|
|
1017
1017
|
if (Un() && Y.value && X.value) {
|
|
1018
1018
|
let e = De(Y.value, X.value);
|
|
1019
|
-
e.fieldRole = q.value, e.fieldTrigger = J.value, $(e),
|
|
1019
|
+
e.fieldRole = q.value, e.fieldTrigger = J.value, $(e), A.value = !0, G.value = "", K.value = "";
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
function er() {
|
|
1023
|
-
Hn(), $(
|
|
1023
|
+
Hn(), $(V.value?.id ? B.value.find((e) => e.id === V.value?.id) : void 0), G.value = "";
|
|
1024
1024
|
}
|
|
1025
1025
|
function tr() {
|
|
1026
|
-
Hn(),
|
|
1026
|
+
Hn(), G.value = "", K.value = "";
|
|
1027
1027
|
}
|
|
1028
1028
|
async function nr() {
|
|
1029
|
-
if (Y.value && X.value && !
|
|
1030
|
-
|
|
1029
|
+
if (Y.value && X.value && !W.value) {
|
|
1030
|
+
W.value = !0, G.value = "", K.value = "";
|
|
1031
1031
|
try {
|
|
1032
|
-
let e = await
|
|
1033
|
-
|
|
1032
|
+
let e = await Ze.value.bind(Y.value, X.value, q.value, J.value);
|
|
1033
|
+
L.value = L.value.map((t) => Ct(t) === Ct(e) ? e : t), Hn(), St ? await St(e.moduleAlias) : await xt.value?.refresh(), K.value = p("binding-saved", "字段配置已保存,请查看运行态生效状态。");
|
|
1034
1034
|
} catch (e) {
|
|
1035
|
-
|
|
1036
|
-
language:
|
|
1035
|
+
G.value = h(e), e instanceof le || se(e, {
|
|
1036
|
+
language: f,
|
|
1037
1037
|
source: "business-code",
|
|
1038
1038
|
phase: "action"
|
|
1039
1039
|
});
|
|
1040
1040
|
} finally {
|
|
1041
|
-
|
|
1041
|
+
W.value = !1;
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
1045
|
async function rr(e) {
|
|
1046
|
-
let t = Y.value?.source === "DYNAMIC" && !X.value?.role, n = await
|
|
1047
|
-
if (
|
|
1048
|
-
|
|
1046
|
+
let t = Y.value?.source === "DYNAMIC" && !X.value?.role, n = await Ze.value.save(e);
|
|
1047
|
+
if (B.value = [...B.value.filter((e) => e.id !== n.id), n], t && n.enabled) try {
|
|
1048
|
+
L.value = await Ze.value.targets(d.moduleAlias), Hn(), St ? await St(n.moduleAlias) : await xt.value?.refresh();
|
|
1049
1049
|
} catch {
|
|
1050
|
-
|
|
1050
|
+
G.value = p("saved-refresh-failed", "规则已保存,但状态刷新失败,请刷新页面确认。");
|
|
1051
1051
|
}
|
|
1052
1052
|
return n;
|
|
1053
1053
|
}
|
|
1054
1054
|
async function ir() {
|
|
1055
|
-
if (
|
|
1056
|
-
|
|
1055
|
+
if (V.value && !W.value) {
|
|
1056
|
+
W.value = !0, G.value = "", K.value = "";
|
|
1057
1057
|
try {
|
|
1058
|
-
let e = await rr(
|
|
1059
|
-
$(e),
|
|
1058
|
+
let e = await rr(V.value);
|
|
1059
|
+
$(e), K.value = e.enabled ? p("active", "规则已启用,后续业务按适用范围匹配规则。") : p("saved-disabled", "规则已保存,可在规则列表中启用。");
|
|
1060
1060
|
} catch (e) {
|
|
1061
|
-
|
|
1062
|
-
language:
|
|
1061
|
+
G.value = h(e), e instanceof le || se(e, {
|
|
1062
|
+
language: f,
|
|
1063
1063
|
source: "business-code",
|
|
1064
1064
|
phase: "action"
|
|
1065
1065
|
});
|
|
1066
1066
|
} finally {
|
|
1067
|
-
|
|
1067
|
+
W.value = !1, await Ve(), mt.value?.scrollIntoView?.({
|
|
1068
1068
|
block: "nearest",
|
|
1069
1069
|
behavior: "smooth"
|
|
1070
1070
|
});
|
|
@@ -1072,8 +1072,8 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
1074
|
async function ar(e, t) {
|
|
1075
|
-
if (!
|
|
1076
|
-
|
|
1075
|
+
if (!H.value && Un() && I.value && (!t || X.value?.role || et.value)) {
|
|
1076
|
+
W.value = !0, G.value = "";
|
|
1077
1077
|
try {
|
|
1078
1078
|
let n = await rr({
|
|
1079
1079
|
...e,
|
|
@@ -1083,90 +1083,90 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1083
1083
|
} : {},
|
|
1084
1084
|
enabled: t
|
|
1085
1085
|
});
|
|
1086
|
-
|
|
1086
|
+
V.value?.id === n.id && $(n), K.value = n.enabled ? p("active", "规则已启用,后续业务按适用范围匹配规则。") : p("rule-stopped", "规则已停用,已有编码保持不变。");
|
|
1087
1087
|
} catch (e) {
|
|
1088
|
-
|
|
1088
|
+
G.value = h(e);
|
|
1089
1089
|
} finally {
|
|
1090
|
-
|
|
1090
|
+
W.value = !1;
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
function or(e) {
|
|
1095
|
-
Un() && ($(),
|
|
1095
|
+
Un() && ($(), H.value = JSON.parse(JSON.stringify(e)), st.value = JSON.stringify(H.value), G.value = "", K.value = "");
|
|
1096
1096
|
}
|
|
1097
1097
|
function sr() {
|
|
1098
|
-
|
|
1098
|
+
H.value = void 0, st.value = "", G.value = "";
|
|
1099
1099
|
}
|
|
1100
1100
|
async function cr() {
|
|
1101
|
-
if (
|
|
1102
|
-
|
|
1101
|
+
if (H.value && I.value && !Z.value) {
|
|
1102
|
+
W.value = !0, G.value = "", K.value = "";
|
|
1103
1103
|
try {
|
|
1104
|
-
$(await rr(
|
|
1104
|
+
$(await rr(H.value)), K.value = p("usage-saved", "适用配置已保存。");
|
|
1105
1105
|
} catch (e) {
|
|
1106
|
-
|
|
1106
|
+
G.value = h(e);
|
|
1107
1107
|
} finally {
|
|
1108
|
-
|
|
1108
|
+
W.value = !1;
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
function lr(e) {
|
|
1113
|
-
|
|
1113
|
+
V.value && (V.value.mode = e, e !== "MANUAL" && V.value.segments.length === 0 && (V.value.segments = [Ae(), Ae("SEQUENCE")], V.value.sequencePolicy = Le()));
|
|
1114
1114
|
}
|
|
1115
1115
|
async function ur(e = !1) {
|
|
1116
|
-
if (!
|
|
1116
|
+
if (!V.value || !Y.value || !Rn.value) return;
|
|
1117
1117
|
Bn();
|
|
1118
1118
|
let t = ++Fn, n = new AbortController();
|
|
1119
|
-
Ln = n,
|
|
1119
|
+
Ln = n, lt.value = !0, ft.value = "", ht.value = void 0;
|
|
1120
1120
|
try {
|
|
1121
|
-
let r = await
|
|
1122
|
-
t === Fn && (
|
|
1121
|
+
let r = await Ze.value.preview(V.value, ke(Pn.value, _t.value, f), vt.value.trim() === "" ? V.value.sequencePolicy?.startValue ?? 1 : Number(vt.value), n.signal);
|
|
1122
|
+
t === Fn && (ht.value = r, e && (await Ve(), t === Fn && gt.value?.scrollIntoView?.({
|
|
1123
1123
|
block: "nearest",
|
|
1124
1124
|
behavior: "smooth"
|
|
1125
1125
|
})));
|
|
1126
1126
|
} catch (r) {
|
|
1127
|
-
t === Fn && !n.signal.aborted && (
|
|
1127
|
+
t === Fn && !n.signal.aborted && (ft.value = h(r), e && (await Ve(), t === Fn && (pt.value?.scrollIntoView?.({
|
|
1128
1128
|
block: "nearest",
|
|
1129
1129
|
behavior: "smooth"
|
|
1130
|
-
}),
|
|
1130
|
+
}), pt.value?.focus({ preventScroll: !0 }))));
|
|
1131
1131
|
} finally {
|
|
1132
|
-
t === Fn && (
|
|
1132
|
+
t === Fn && (lt.value = !1, Ln = void 0);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
return (t, n) => (
|
|
1136
|
-
|
|
1137
|
-
title:
|
|
1138
|
-
message:
|
|
1139
|
-
}, null, 8, ["title", "message"]),
|
|
1135
|
+
return (t, n) => (j(), w("section", Mt, [
|
|
1136
|
+
G.value && !A.value ? (j(), w("div", Nt, [D(P(l), {
|
|
1137
|
+
title: p("request-failed", "操作未完成"),
|
|
1138
|
+
message: G.value
|
|
1139
|
+
}, null, 8, ["title", "message"]), ct.value ? (j(), S(P(y), {
|
|
1140
1140
|
key: 0,
|
|
1141
1141
|
disabled: Z.value,
|
|
1142
1142
|
onClick: qn
|
|
1143
1143
|
}, {
|
|
1144
|
-
default:
|
|
1144
|
+
default: F(() => [E(N(p("retry", "重试加载")), 1)]),
|
|
1145
1145
|
_: 1
|
|
1146
1146
|
}, 8, ["disabled"])) : C("v-if", !0)])) : C("v-if", !0),
|
|
1147
|
-
|
|
1148
|
-
D(
|
|
1147
|
+
K.value && !A.value ? (j(), w("p", Pt, N(K.value), 1)) : C("v-if", !0),
|
|
1148
|
+
D(P(ue), {
|
|
1149
1149
|
class: "code-config__layout",
|
|
1150
|
-
"explorer-count": (
|
|
1151
|
-
editing: Z.value || An.value || !!
|
|
1150
|
+
"explorer-count": (P(O)?.system && Qe.value ? 1 : 0) + +!!rt.value,
|
|
1151
|
+
editing: Z.value || An.value || !!H.value
|
|
1152
1152
|
}, {
|
|
1153
|
-
default:
|
|
1154
|
-
|
|
1153
|
+
default: F(() => [
|
|
1154
|
+
P(O)?.system && Qe.value ? (j(), S(P(i), {
|
|
1155
1155
|
key: 0,
|
|
1156
1156
|
collapsible: "",
|
|
1157
|
-
title:
|
|
1158
|
-
"has-selection": !!
|
|
1157
|
+
title: p("tenant-short", "租户"),
|
|
1158
|
+
"has-selection": !!k.value
|
|
1159
1159
|
}, {
|
|
1160
|
-
default:
|
|
1160
|
+
default: F(() => [P(O)?.system && Qe.value ? (j(), S(P(ve), {
|
|
1161
1161
|
key: 0,
|
|
1162
|
-
context:
|
|
1163
|
-
"selected-id":
|
|
1164
|
-
"reload-key":
|
|
1162
|
+
context: Qe.value,
|
|
1163
|
+
"selected-id": k.value || void 0,
|
|
1164
|
+
"reload-key": We.value,
|
|
1165
1165
|
disabled: Z.value || An.value,
|
|
1166
1166
|
onSelect: n[0] ||= (e) => Jn(String(e.id)),
|
|
1167
1167
|
onDeselect: n[1] ||= (e) => Jn(),
|
|
1168
1168
|
onLoaded: Yn,
|
|
1169
|
-
onRefresh: n[2] ||= (e) =>
|
|
1169
|
+
onRefresh: n[2] ||= (e) => We.value++
|
|
1170
1170
|
}, null, 8, [
|
|
1171
1171
|
"context",
|
|
1172
1172
|
"selected-id",
|
|
@@ -1175,24 +1175,24 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1175
1175
|
])) : C("v-if", !0)]),
|
|
1176
1176
|
_: 1
|
|
1177
1177
|
}, 8, ["title", "has-selection"])) : C("v-if", !0),
|
|
1178
|
-
|
|
1178
|
+
rt.value ? (j(), S(P(i), {
|
|
1179
1179
|
key: 1,
|
|
1180
1180
|
collapsible: "",
|
|
1181
|
-
title:
|
|
1182
|
-
"has-selection": !!
|
|
1181
|
+
title: p("module", "所属模块"),
|
|
1182
|
+
"has-selection": !!R.value
|
|
1183
1183
|
}, {
|
|
1184
|
-
default:
|
|
1185
|
-
title:
|
|
1184
|
+
default: F(() => [D(P(ye), {
|
|
1185
|
+
title: p("module", "所属模块"),
|
|
1186
1186
|
"refresh-disabled": Z.value || An.value,
|
|
1187
|
-
"search-keyword":
|
|
1187
|
+
"search-keyword": tt.value,
|
|
1188
1188
|
onRefresh: qn,
|
|
1189
|
-
"onUpdate:searchKeyword": n[4] ||= (e) =>
|
|
1189
|
+
"onUpdate:searchKeyword": n[4] ||= (e) => tt.value = e
|
|
1190
1190
|
}, {
|
|
1191
|
-
default:
|
|
1192
|
-
records:
|
|
1193
|
-
"selected-id":
|
|
1194
|
-
keyword:
|
|
1195
|
-
"empty-description":
|
|
1191
|
+
default: F(() => [D(P(we), {
|
|
1192
|
+
records: nt.value,
|
|
1193
|
+
"selected-id": R.value || void 0,
|
|
1194
|
+
keyword: tt.value,
|
|
1195
|
+
"empty-description": p("no-modules", "没有可配置业务编码的模块。"),
|
|
1196
1196
|
onSelect: n[3] ||= (e) => Gn(String(e.id))
|
|
1197
1197
|
}, null, 8, [
|
|
1198
1198
|
"records",
|
|
@@ -1208,43 +1208,43 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1208
1208
|
])]),
|
|
1209
1209
|
_: 1
|
|
1210
1210
|
}, 8, ["title", "has-selection"])) : C("v-if", !0),
|
|
1211
|
-
T("div", Ft, [
|
|
1211
|
+
T("div", Ft, [Ke.value ? U.value ? (j(), S(P(u), {
|
|
1212
1212
|
key: 1,
|
|
1213
1213
|
spinning: !0
|
|
1214
1214
|
}, {
|
|
1215
|
-
default:
|
|
1215
|
+
default: F(() => [T("p", null, N(p("loading", "正在读取编码配置…")), 1)]),
|
|
1216
1216
|
_: 1
|
|
1217
|
-
})) : !
|
|
1217
|
+
})) : !G.value && nt.value.length === 0 ? (j(), w("div", It, [D(P(Te), { description: je.value }, null, 8, ["description"]), P(me) ? (j(), w("div", Lt, [ge.value === "no-model" || ge.value === "no-fields" ? (j(), S(P(y), {
|
|
1218
1218
|
key: 0,
|
|
1219
1219
|
type: "primary",
|
|
1220
1220
|
onClick: ze
|
|
1221
1221
|
}, {
|
|
1222
|
-
default:
|
|
1222
|
+
default: F(() => [E(N(p("configure-model", "配置模型")), 1)]),
|
|
1223
1223
|
_: 1
|
|
1224
|
-
})) : C("v-if", !0), D(
|
|
1225
|
-
default:
|
|
1224
|
+
})) : C("v-if", !0), D(P(y), { onClick: n[5] ||= (e) => P(me).openRoute("/platform/module") }, {
|
|
1225
|
+
default: F(() => [E(N(p("back-to-modules", "返回模块管理")), 1)]),
|
|
1226
1226
|
_: 1
|
|
1227
|
-
})])) : C("v-if", !0)])) : !
|
|
1227
|
+
})])) : C("v-if", !0)])) : !R.value && L.value.length ? (j(), S(P(Te), {
|
|
1228
1228
|
key: 3,
|
|
1229
|
-
description:
|
|
1230
|
-
}, null, 8, ["description"])) :
|
|
1229
|
+
description: p("select-module", "选择模块后,配置业务对象的编码规则。")
|
|
1230
|
+
}, null, 8, ["description"])) : R.value && it.value.length ? (j(), w("div", Rt, [D(P(ye), {
|
|
1231
1231
|
class: "code-config__directory",
|
|
1232
|
-
title:
|
|
1232
|
+
title: p("binding-title", "编码对象"),
|
|
1233
1233
|
"refresh-disabled": Z.value || An.value,
|
|
1234
1234
|
searchable: !1,
|
|
1235
1235
|
onRefresh: qn
|
|
1236
1236
|
}, {
|
|
1237
|
-
actions:
|
|
1237
|
+
actions: F(() => [!e.embedded && Y.value?.source === "DYNAMIC" ? (j(), S(jt, {
|
|
1238
1238
|
key: 0,
|
|
1239
1239
|
ref_key: "localActivation",
|
|
1240
1240
|
ref: xt,
|
|
1241
1241
|
"module-alias": Y.value.moduleAlias
|
|
1242
1242
|
}, null, 8, ["module-alias"])) : C("v-if", !0)]),
|
|
1243
|
-
default:
|
|
1244
|
-
T("label", Bt, [E(
|
|
1245
|
-
value:
|
|
1243
|
+
default: F(() => [T("div", zt, [
|
|
1244
|
+
T("label", Bt, [E(N(p("entity", "业务对象")), 1), D(P(_), {
|
|
1245
|
+
value: at.value,
|
|
1246
1246
|
disabled: Z.value,
|
|
1247
|
-
options:
|
|
1247
|
+
options: it.value.map((e) => ({
|
|
1248
1248
|
value: Ct(e),
|
|
1249
1249
|
label: e.title
|
|
1250
1250
|
})),
|
|
@@ -1254,8 +1254,8 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1254
1254
|
"disabled",
|
|
1255
1255
|
"options"
|
|
1256
1256
|
])]),
|
|
1257
|
-
Y.value?.fields.length ? (
|
|
1258
|
-
value:
|
|
1257
|
+
Y.value?.fields.length ? (j(), w("label", Vt, [E(N(p("field", "编码字段")), 1), D(P(_), {
|
|
1258
|
+
value: z.value,
|
|
1259
1259
|
disabled: Z.value,
|
|
1260
1260
|
options: Y.value?.fields.map((e) => ({
|
|
1261
1261
|
value: e.fieldName,
|
|
@@ -1267,31 +1267,31 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1267
1267
|
"disabled",
|
|
1268
1268
|
"options"
|
|
1269
1269
|
])])) : C("v-if", !0),
|
|
1270
|
-
Y.value && !X.value ? (
|
|
1270
|
+
Y.value && !X.value ? (j(), w(b, { key: 1 }, [D(P(Te), { description: p("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。") }, null, 8, ["description"]), P(me) && Y.value.source === "DYNAMIC" ? (j(), S(P(y), {
|
|
1271
1271
|
key: 0,
|
|
1272
1272
|
onClick: ze
|
|
1273
1273
|
}, {
|
|
1274
|
-
default:
|
|
1274
|
+
default: F(() => [E(N(p("configure-model", "配置模型")), 1)]),
|
|
1275
1275
|
_: 1
|
|
1276
1276
|
})) : C("v-if", !0)], 64)) : C("v-if", !0),
|
|
1277
|
-
X.value ? (
|
|
1278
|
-
default:
|
|
1279
|
-
T("dt", null,
|
|
1280
|
-
T("dd", null,
|
|
1281
|
-
T("dt", null,
|
|
1282
|
-
T("dd", null,
|
|
1283
|
-
T("dt", null,
|
|
1284
|
-
T("dd", null,
|
|
1277
|
+
X.value ? (j(), w(b, { key: 2 }, [Y.value?.source === "STATIC" ? (j(), w("div", Ht, [T("span", null, N(wt.value), 1), D(P(oe), { label: p("binding-info", "字段设置说明") }, {
|
|
1278
|
+
default: F(() => [T("p", null, N(p("java-declaration", "字段角色和生成时机由业务模型预设。")), 1), T("dl", Ut, [
|
|
1279
|
+
T("dt", null, N(p("module", "所属模块")), 1),
|
|
1280
|
+
T("dd", null, N(Y.value.moduleAlias), 1),
|
|
1281
|
+
T("dt", null, N(p("entity", "业务对象")), 1),
|
|
1282
|
+
T("dd", null, N(Y.value.entityAlias), 1),
|
|
1283
|
+
T("dt", null, N(p("field", "编码字段")), 1),
|
|
1284
|
+
T("dd", null, N(X.value.fieldName), 1)
|
|
1285
1285
|
])]),
|
|
1286
1286
|
_: 1
|
|
1287
|
-
}, 8, ["label"])])) : (
|
|
1288
|
-
key: `${
|
|
1287
|
+
}, 8, ["label"])])) : (j(), w("section", {
|
|
1288
|
+
key: `${at.value}/${z.value}`,
|
|
1289
1289
|
class: "code-config__binding"
|
|
1290
1290
|
}, [T("div", Wt, [
|
|
1291
|
-
T("label", Gt, [E(
|
|
1291
|
+
T("label", Gt, [E(N(p("role", "编码角色")), 1), D(P(_), {
|
|
1292
1292
|
value: q.value,
|
|
1293
1293
|
"onUpdate:value": n[8] ||= (e) => q.value = e,
|
|
1294
|
-
disabled: Z.value || (X.value.role ? !
|
|
1294
|
+
disabled: Z.value || (X.value.role ? !et.value : !I.value),
|
|
1295
1295
|
options: Vn({
|
|
1296
1296
|
NORMAL: "业务编码",
|
|
1297
1297
|
PRIMARY: "主编码"
|
|
@@ -1301,10 +1301,10 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1301
1301
|
"disabled",
|
|
1302
1302
|
"options"
|
|
1303
1303
|
])]),
|
|
1304
|
-
T("label", Kt, [E(
|
|
1304
|
+
T("label", Kt, [E(N(p("trigger", "生成时机")), 1), D(P(_), {
|
|
1305
1305
|
value: J.value,
|
|
1306
1306
|
"onUpdate:value": n[9] ||= (e) => J.value = e,
|
|
1307
|
-
disabled: Z.value || (X.value.role ? !
|
|
1307
|
+
disabled: Z.value || (X.value.role ? !et.value : !I.value),
|
|
1308
1308
|
options: Vn({
|
|
1309
1309
|
SAVE: "首次保存",
|
|
1310
1310
|
EXPLICIT: "业务操作时生成"
|
|
@@ -1314,55 +1314,55 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1314
1314
|
"disabled",
|
|
1315
1315
|
"options"
|
|
1316
1316
|
])]),
|
|
1317
|
-
X.value.role && kn.value ? (
|
|
1318
|
-
disabled: !
|
|
1317
|
+
X.value.role && kn.value ? (j(), w("div", qt, [D(P(y), {
|
|
1318
|
+
disabled: !et.value || Z.value,
|
|
1319
1319
|
onClick: nr
|
|
1320
1320
|
}, {
|
|
1321
|
-
default:
|
|
1321
|
+
default: F(() => [E(N(p("save-binding", "保存字段配置")), 1)]),
|
|
1322
1322
|
_: 1
|
|
1323
|
-
}, 8, ["disabled"]), D(
|
|
1323
|
+
}, 8, ["disabled"]), D(P(y), {
|
|
1324
1324
|
disabled: Z.value,
|
|
1325
1325
|
onClick: tr
|
|
1326
1326
|
}, {
|
|
1327
|
-
default:
|
|
1327
|
+
default: F(() => [E(N(p("cancel-settings", "取消修改")), 1)]),
|
|
1328
1328
|
_: 1
|
|
1329
1329
|
}, 8, ["disabled"])])) : C("v-if", !0)
|
|
1330
|
-
])])), X.value ? (
|
|
1330
|
+
])])), X.value ? (j(), S(P(ce), {
|
|
1331
1331
|
key: 2,
|
|
1332
|
-
title:
|
|
1332
|
+
title: p("rules", "编号规则"),
|
|
1333
1333
|
kind: "relation"
|
|
1334
1334
|
}, {
|
|
1335
|
-
actions:
|
|
1335
|
+
actions: F(() => [D(P(te), {
|
|
1336
1336
|
"icon-name": "plus",
|
|
1337
|
-
title:
|
|
1338
|
-
"aria-label":
|
|
1339
|
-
disabled: !
|
|
1337
|
+
title: p("new-rule", "新增规则"),
|
|
1338
|
+
"aria-label": p("new-rule", "新增规则"),
|
|
1339
|
+
disabled: !I.value || Z.value,
|
|
1340
1340
|
onClick: $n
|
|
1341
1341
|
}, null, 8, [
|
|
1342
1342
|
"title",
|
|
1343
1343
|
"aria-label",
|
|
1344
1344
|
"disabled"
|
|
1345
1345
|
])]),
|
|
1346
|
-
default:
|
|
1346
|
+
default: F(() => [D(P(xe), {
|
|
1347
1347
|
class: "code-config__rules-table",
|
|
1348
1348
|
columns: Dn.value,
|
|
1349
1349
|
rows: Ot.value,
|
|
1350
1350
|
density: "compact"
|
|
1351
1351
|
}, {
|
|
1352
|
-
cell:
|
|
1352
|
+
cell: F(({ row: e, column: t }) => [t.fieldName === "title" ? (j(), S(P(y), {
|
|
1353
1353
|
key: 0,
|
|
1354
1354
|
type: "link",
|
|
1355
1355
|
class: "code-config__rule-name",
|
|
1356
1356
|
disabled: Z.value,
|
|
1357
1357
|
onClick: (t) => Qn(e)
|
|
1358
1358
|
}, {
|
|
1359
|
-
default:
|
|
1359
|
+
default: F(() => [E(N(e.title), 1)]),
|
|
1360
1360
|
_: 2
|
|
1361
|
-
}, 1032, ["disabled", "onClick"])) : t.fieldName === "scope" ? (
|
|
1361
|
+
}, 1032, ["disabled", "onClick"])) : t.fieldName === "scope" ? (j(), w(b, { key: 1 }, [H.value && H.value.id === e.id ? (j(), S(P(_), {
|
|
1362
1362
|
key: 0,
|
|
1363
|
-
value:
|
|
1364
|
-
"onUpdate:value": n[10] ||= (e) =>
|
|
1365
|
-
"aria-label":
|
|
1363
|
+
value: H.value.orgScopeType,
|
|
1364
|
+
"onUpdate:value": n[10] ||= (e) => H.value.orgScopeType = e,
|
|
1365
|
+
"aria-label": p("scope", "适用范围"),
|
|
1366
1366
|
disabled: !jn.value,
|
|
1367
1367
|
options: Vn({
|
|
1368
1368
|
GLOBAL: "当前租户全部组织",
|
|
@@ -1373,21 +1373,21 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1373
1373
|
"aria-label",
|
|
1374
1374
|
"disabled",
|
|
1375
1375
|
"options"
|
|
1376
|
-
])) : (
|
|
1376
|
+
])) : (j(), w("span", Jt, N(e.orgScopeType === "GLOBAL" ? p("all-orgs", "全部机构") : p("enum.ORG", "指定组织及其下级")), 1))], 64)) : t.fieldName === "organization" ? (j(), w(b, { key: 2 }, [H.value && H.value.id === e.id && H.value.orgScopeType === "ORG" ? (j(), w("label", Yt, [T("span", Xt, N(p("organization", "适用组织")), 1), $e.value ? (j(), S(P(fe), {
|
|
1377
1377
|
key: 0,
|
|
1378
|
-
value:
|
|
1379
|
-
context:
|
|
1378
|
+
value: H.value.orgScopeId ?? void 0,
|
|
1379
|
+
context: $e.value,
|
|
1380
1380
|
mode: "tree",
|
|
1381
1381
|
disabled: !jn.value,
|
|
1382
|
-
"onUpdate:value": n[11] ||= (e) =>
|
|
1382
|
+
"onUpdate:value": n[11] ||= (e) => H.value.orgScopeId = e
|
|
1383
1383
|
}, null, 8, [
|
|
1384
1384
|
"value",
|
|
1385
1385
|
"context",
|
|
1386
1386
|
"disabled"
|
|
1387
|
-
])) : (
|
|
1387
|
+
])) : (j(), w("span", Zt, N(p("tenant-required", "请使用租户身份选择组织。")), 1))])) : (j(), w("span", Qt, N((H.value && H.value.id === e.id ? H.value.orgScopeType : e.orgScopeType) === "GLOBAL" ? "—" : En(e)), 1))], 64)) : t.fieldName === "effectiveFrom" || t.fieldName === "effectiveTo" ? (j(), w(b, { key: 3 }, [H.value && H.value.id === e.id ? (j(), S(P(v), {
|
|
1388
1388
|
key: 0,
|
|
1389
|
-
value:
|
|
1390
|
-
"onUpdate:value": (e) =>
|
|
1389
|
+
value: H.value[t.fieldName],
|
|
1390
|
+
"onUpdate:value": (e) => H.value[t.fieldName] = e,
|
|
1391
1391
|
"aria-label": t.title,
|
|
1392
1392
|
type: "datetime-local",
|
|
1393
1393
|
step: 60,
|
|
@@ -1397,43 +1397,43 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1397
1397
|
"onUpdate:value",
|
|
1398
1398
|
"aria-label",
|
|
1399
1399
|
"disabled"
|
|
1400
|
-
])) : (
|
|
1401
|
-
language:
|
|
1400
|
+
])) : (j(), w("span", $t, N(P(Ce)(e[t.fieldName], {
|
|
1401
|
+
language: P(f),
|
|
1402
1402
|
precision: "minute",
|
|
1403
|
-
emptyText:
|
|
1404
|
-
}).text), 1))], 64)) : t.fieldName === "actions" ? (
|
|
1403
|
+
emptyText: p("unlimited", "不限")
|
|
1404
|
+
}).text), 1))], 64)) : t.fieldName === "actions" ? (j(), w("div", en, [H.value && H.value.id === e.id ? (j(), w(b, { key: 0 }, [D(P(y), {
|
|
1405
1405
|
type: "link",
|
|
1406
|
-
disabled: !
|
|
1406
|
+
disabled: !I.value || Z.value || !On.value,
|
|
1407
1407
|
onClick: cr
|
|
1408
1408
|
}, {
|
|
1409
|
-
default:
|
|
1409
|
+
default: F(() => [E(N(p("save", "保存")), 1)]),
|
|
1410
1410
|
_: 1
|
|
1411
|
-
}, 8, ["disabled"]), D(
|
|
1411
|
+
}, 8, ["disabled"]), D(P(y), {
|
|
1412
1412
|
type: "link",
|
|
1413
1413
|
disabled: Z.value,
|
|
1414
1414
|
onClick: sr
|
|
1415
1415
|
}, {
|
|
1416
|
-
default:
|
|
1416
|
+
default: F(() => [E(N(p("cancel-settings", "取消修改")), 1)]),
|
|
1417
1417
|
_: 1
|
|
1418
|
-
}, 8, ["disabled"])], 64)) : (
|
|
1418
|
+
}, 8, ["disabled"])], 64)) : (j(), S(P(y), {
|
|
1419
1419
|
key: 1,
|
|
1420
1420
|
type: "link",
|
|
1421
1421
|
class: "code-config__edit-usage",
|
|
1422
|
-
"aria-label":
|
|
1423
|
-
disabled: !
|
|
1422
|
+
"aria-label": p("edit-usage", "编辑适用配置") + ":" + e.title,
|
|
1423
|
+
disabled: !I.value || Z.value,
|
|
1424
1424
|
onClick: (t) => or(e)
|
|
1425
1425
|
}, {
|
|
1426
|
-
default:
|
|
1426
|
+
default: F(() => [E(N(p("edit", "编辑")), 1)]),
|
|
1427
1427
|
_: 1
|
|
1428
1428
|
}, 8, [
|
|
1429
1429
|
"aria-label",
|
|
1430
1430
|
"disabled",
|
|
1431
1431
|
"onClick"
|
|
1432
|
-
]))])) : t.fieldName === "enabled" ? (
|
|
1432
|
+
]))])) : t.fieldName === "enabled" ? (j(), S(P(re), {
|
|
1433
1433
|
key: 5,
|
|
1434
|
-
"aria-label":
|
|
1434
|
+
"aria-label": P(f).t("platform.code.config.rule-switch", "启用规则:{name}", { name: e.title }),
|
|
1435
1435
|
checked: e.enabled,
|
|
1436
|
-
disabled: !
|
|
1436
|
+
disabled: !I.value || Z.value || An.value || !!H.value || !e.enabled && !X.value.role && !et.value,
|
|
1437
1437
|
onChange: (t) => ar(e, t)
|
|
1438
1438
|
}, null, 8, [
|
|
1439
1439
|
"aria-label",
|
|
@@ -1441,45 +1441,45 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1441
1441
|
"disabled",
|
|
1442
1442
|
"onChange"
|
|
1443
1443
|
])) : C("v-if", !0)]),
|
|
1444
|
-
empty:
|
|
1444
|
+
empty: F(() => [E(N(p("no-rules", "暂无编号规则")), 1)]),
|
|
1445
1445
|
_: 1
|
|
1446
1446
|
}, 8, ["columns", "rows"])]),
|
|
1447
1447
|
_: 1
|
|
1448
1448
|
}, 8, ["title"])) : C("v-if", !0)], 64)) : C("v-if", !0)
|
|
1449
1449
|
])]),
|
|
1450
1450
|
_: 1
|
|
1451
|
-
}, 8, ["title", "refresh-disabled"])])) : C("v-if", !0) : (
|
|
1451
|
+
}, 8, ["title", "refresh-disabled"])])) : C("v-if", !0) : (j(), S(P(Te), {
|
|
1452
1452
|
key: 0,
|
|
1453
|
-
description:
|
|
1453
|
+
description: p("select-tenant", "选择规则所属租户后,可维护该租户的编号规则。")
|
|
1454
1454
|
}, null, 8, ["description"]))])
|
|
1455
1455
|
]),
|
|
1456
1456
|
_: 1
|
|
1457
1457
|
}, 8, ["explorer-count", "editing"]),
|
|
1458
|
-
|
|
1458
|
+
A.value ? (j(), S(P(s), {
|
|
1459
1459
|
key: 2,
|
|
1460
|
-
open:
|
|
1460
|
+
open: A.value,
|
|
1461
1461
|
width: "wide",
|
|
1462
1462
|
"before-close": Xn,
|
|
1463
1463
|
onClose: Zn,
|
|
1464
1464
|
class: "code-config__editor",
|
|
1465
|
-
title:
|
|
1465
|
+
title: V.value?.id ? p("rules", "编号规则") : p("create-rule-title", "新增编号规则"),
|
|
1466
1466
|
subtitle: [Y.value?.title, X.value?.title].filter(Boolean).join(" · ")
|
|
1467
1467
|
}, Re({
|
|
1468
|
-
default:
|
|
1468
|
+
default: F(() => [G.value || K.value ? (j(), w("div", {
|
|
1469
1469
|
key: 0,
|
|
1470
1470
|
ref_key: "editorFeedback",
|
|
1471
|
-
ref:
|
|
1472
|
-
}, [
|
|
1471
|
+
ref: mt
|
|
1472
|
+
}, [G.value ? (j(), S(P(l), {
|
|
1473
1473
|
key: 0,
|
|
1474
|
-
title:
|
|
1475
|
-
message:
|
|
1476
|
-
}, null, 8, ["title", "message"])) : C("v-if", !0),
|
|
1477
|
-
T("div", an, [T("label", on, [E(
|
|
1478
|
-
value:
|
|
1479
|
-
"onUpdate:value": n[12] ||= (e) =>
|
|
1474
|
+
title: p("request-failed", "操作未完成"),
|
|
1475
|
+
message: G.value
|
|
1476
|
+
}, null, 8, ["title", "message"])) : C("v-if", !0), K.value ? (j(), w("p", tn, N(K.value), 1)) : C("v-if", !0)], 512)) : C("v-if", !0), V.value ? (j(), w("div", nn, [T("div", { class: He(["code-config__editor-grid", { "code-config__editor-grid--manual": V.value.mode === "MANUAL" }]) }, [T("div", rn, [
|
|
1477
|
+
T("div", an, [T("label", on, [E(N(p("rule-title", "规则名称")), 1), D(P(v), {
|
|
1478
|
+
value: V.value.title,
|
|
1479
|
+
"onUpdate:value": n[12] ||= (e) => V.value.title = e,
|
|
1480
1480
|
disabled: !jn.value
|
|
1481
|
-
}, null, 8, ["value", "disabled"])]), T("label", sn, [E(
|
|
1482
|
-
value:
|
|
1481
|
+
}, null, 8, ["value", "disabled"])]), T("label", sn, [E(N(p("mode", "编号方式")), 1), D(P(_), {
|
|
1482
|
+
value: V.value.mode,
|
|
1483
1483
|
disabled: !jn.value,
|
|
1484
1484
|
options: Vn({
|
|
1485
1485
|
AUTO: "自动编号",
|
|
@@ -1492,10 +1492,10 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1492
1492
|
"disabled",
|
|
1493
1493
|
"options"
|
|
1494
1494
|
])])]),
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
rule:
|
|
1498
|
-
"onUpdate:rule": n[14] ||= (e) =>
|
|
1495
|
+
V.value.mode === "MANUAL" ? (j(), w("p", cn, N(p("manual-description", "人工填写编号,无需设置编码格式。")), 1)) : C("v-if", !0),
|
|
1496
|
+
Xe(D(yt, {
|
|
1497
|
+
rule: V.value,
|
|
1498
|
+
"onUpdate:rule": n[14] ||= (e) => V.value = e,
|
|
1499
1499
|
sources: Y.value?.sources ?? [],
|
|
1500
1500
|
trigger: X.value?.trigger ?? J.value,
|
|
1501
1501
|
editable: jn.value
|
|
@@ -1504,87 +1504,87 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1504
1504
|
"sources",
|
|
1505
1505
|
"trigger",
|
|
1506
1506
|
"editable"
|
|
1507
|
-
]), [[
|
|
1508
|
-
(
|
|
1509
|
-
key:
|
|
1507
|
+
]), [[Je, V.value.mode !== "MANUAL"]]),
|
|
1508
|
+
(j(), w("details", {
|
|
1509
|
+
key: V.value.id ?? "new",
|
|
1510
1510
|
class: "code-config__policy"
|
|
1511
|
-
}, [T("summary", null, [E(
|
|
1512
|
-
checked:
|
|
1513
|
-
"onUpdate:checked": n[15] ||= (e) =>
|
|
1511
|
+
}, [T("summary", null, [E(N(p("numbering-policy", "编号策略")), 1), Et.value ? (j(), w("span", ln, " · " + N(Et.value), 1)) : C("v-if", !0)]), T("div", un, [Tt.value ? (j(), w("div", dn, [D(P(be), {
|
|
1512
|
+
checked: V.value.linkedUpdate,
|
|
1513
|
+
"onUpdate:checked": n[15] ||= (e) => V.value.linkedUpdate = e,
|
|
1514
1514
|
disabled: !jn.value
|
|
1515
1515
|
}, {
|
|
1516
|
-
default:
|
|
1516
|
+
default: F(() => [E(N(p("linked", "修改编号来源后自动换号")), 1)]),
|
|
1517
1517
|
_: 1
|
|
1518
|
-
}, 8, ["checked", "disabled"]), D(
|
|
1519
|
-
default:
|
|
1518
|
+
}, 8, ["checked", "disabled"]), D(P(oe), { label: p("linked-help-title", "自动换号说明") }, {
|
|
1519
|
+
default: F(() => [T("p", null, N(p("linked-help", "已生成编号后,修改参与编号的业务字段并保存,将重新生成整个编号;包含流水号时会重新取号。未勾选则保留原编号,修改其他字段不受影响。")), 1), T("p", null, N(p("linked-example", "例如编号由“采购类别 + 流水号”组成:类别从“设备”改为“耗材”,编号会从 SB-0001 换为 HC-0002(示例)。")), 1)]),
|
|
1520
1520
|
_: 1
|
|
1521
|
-
}, 8, ["label"])])) : C("v-if", !0), T("div", fn, [D(
|
|
1522
|
-
checked:
|
|
1523
|
-
"onUpdate:checked": n[16] ||= (e) =>
|
|
1521
|
+
}, 8, ["label"])])) : C("v-if", !0), T("div", fn, [D(P(be), {
|
|
1522
|
+
checked: V.value.allowRecycle,
|
|
1523
|
+
"onUpdate:checked": n[16] ||= (e) => V.value.allowRecycle = e,
|
|
1524
1524
|
disabled: !jn.value
|
|
1525
1525
|
}, {
|
|
1526
|
-
default:
|
|
1526
|
+
default: F(() => [E(N(p("recycle-short-label", "允许复用旧号")), 1)]),
|
|
1527
1527
|
_: 1
|
|
1528
|
-
}, 8, ["checked", "disabled"]), D(
|
|
1529
|
-
default:
|
|
1528
|
+
}, 8, ["checked", "disabled"]), D(P(oe), { label: p("recycle-help-title", "旧号复用说明") }, {
|
|
1529
|
+
default: F(() => [T("p", null, N(p("recycle-help", "记录彻底删除或更换编号后,释放的旧号允许再次分配。移入回收站仍会占用原编号;取消勾选后,旧号不再分配给其他记录。")), 1)]),
|
|
1530
1530
|
_: 1
|
|
1531
1531
|
}, 8, ["label"])])])]))
|
|
1532
|
-
]),
|
|
1532
|
+
]), V.value.mode === "MANUAL" ? C("v-if", !0) : (j(), w("aside", {
|
|
1533
1533
|
key: 0,
|
|
1534
1534
|
class: "code-config__trial",
|
|
1535
|
-
"aria-label":
|
|
1535
|
+
"aria-label": p("trial", "草稿试算")
|
|
1536
1536
|
}, [
|
|
1537
|
-
D(
|
|
1538
|
-
T("p", mn,
|
|
1539
|
-
T("div", hn, [T("div", gn, [T("span", null,
|
|
1537
|
+
D(P(ne), { title: p("trial", "草稿试算") }, null, 8, ["title"]),
|
|
1538
|
+
T("p", mn, N(p("auto-trial-short", "自动试算,不占号")), 1),
|
|
1539
|
+
T("div", hn, [T("div", gn, [T("span", null, N(p("trial-result", "试算结果")), 1), D(P(y), {
|
|
1540
1540
|
type: "text",
|
|
1541
1541
|
"icon-name": "reload",
|
|
1542
1542
|
"icon-only": "",
|
|
1543
1543
|
size: "small",
|
|
1544
|
-
title:
|
|
1545
|
-
"aria-label":
|
|
1546
|
-
disabled: !Rn.value ||
|
|
1547
|
-
loading:
|
|
1544
|
+
title: p("refresh-trial", "刷新试算"),
|
|
1545
|
+
"aria-label": p("refresh-trial", "刷新试算"),
|
|
1546
|
+
disabled: !Rn.value || lt.value,
|
|
1547
|
+
loading: lt.value,
|
|
1548
1548
|
onClick: n[17] ||= (e) => ur(!0)
|
|
1549
1549
|
}, null, 8, [
|
|
1550
1550
|
"title",
|
|
1551
1551
|
"aria-label",
|
|
1552
1552
|
"disabled",
|
|
1553
1553
|
"loading"
|
|
1554
|
-
])]),
|
|
1554
|
+
])]), ft.value ? (j(), w("div", {
|
|
1555
1555
|
key: 0,
|
|
1556
1556
|
ref_key: "trialErrorElement",
|
|
1557
|
-
ref:
|
|
1557
|
+
ref: pt,
|
|
1558
1558
|
tabindex: "-1",
|
|
1559
1559
|
class: "code-config__trial-error"
|
|
1560
|
-
}, [D(
|
|
1561
|
-
title:
|
|
1562
|
-
message:
|
|
1563
|
-
}, null, 8, ["title", "message"])], 512)) :
|
|
1560
|
+
}, [D(P(l), {
|
|
1561
|
+
title: p("trial-failed", "试算未完成"),
|
|
1562
|
+
message: ft.value
|
|
1563
|
+
}, null, 8, ["title", "message"])], 512)) : ht.value ? (j(), w("output", {
|
|
1564
1564
|
key: 1,
|
|
1565
1565
|
ref_key: "previewElement",
|
|
1566
1566
|
ref: gt,
|
|
1567
|
-
"aria-label":
|
|
1568
|
-
}, [T("strong", null,
|
|
1569
|
-
Nn.value.length ? (
|
|
1570
|
-
value:
|
|
1571
|
-
"onUpdate:value": n[18] ||= (e) =>
|
|
1567
|
+
"aria-label": p("trial-result", "试算结果")
|
|
1568
|
+
}, [T("strong", null, N(ht.value.value), 1)], 8, _n)) : (j(), w("p", vn, N(ut.value || lt.value ? p("trial-updating", "正在更新…") : p("auto-trial-placeholder", "修改配置后自动更新")), 1))]),
|
|
1569
|
+
Nn.value.length ? (j(), w("details", yn, [T("summary", null, N(p("trial-extra-short", "补充试算来源")), 1), T("label", bn, [T("span", xn, N(p("trial-extra-short", "补充试算来源")), 1), D(P(_), {
|
|
1570
|
+
value: dt.value,
|
|
1571
|
+
"onUpdate:value": n[18] ||= (e) => dt.value = e,
|
|
1572
1572
|
mode: "multiple",
|
|
1573
1573
|
"show-search": "",
|
|
1574
1574
|
disabled: Z.value,
|
|
1575
1575
|
options: Nn.value.map((e) => ({
|
|
1576
1576
|
value: e.fieldName,
|
|
1577
|
-
label:
|
|
1577
|
+
label: P(Pe)(e, P(f))
|
|
1578
1578
|
}))
|
|
1579
1579
|
}, null, 8, [
|
|
1580
1580
|
"value",
|
|
1581
1581
|
"disabled",
|
|
1582
1582
|
"options"
|
|
1583
1583
|
])])])) : C("v-if", !0),
|
|
1584
|
-
T("div", Sn, [(
|
|
1584
|
+
T("div", Sn, [(j(!0), w(b, null, Ge(Pn.value, (e) => (j(), w("label", {
|
|
1585
1585
|
class: "code-config__field",
|
|
1586
1586
|
key: e.fieldName
|
|
1587
|
-
}, [E(
|
|
1587
|
+
}, [E(N(P(Pe)(e, P(f))), 1), P(Ee)(e) === "boolean" ? (j(), S(P(_), {
|
|
1588
1588
|
key: 0,
|
|
1589
1589
|
value: _t.value[e.fieldName],
|
|
1590
1590
|
"onUpdate:value": (t) => _t.value[e.fieldName] = t,
|
|
@@ -1592,22 +1592,22 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1592
1592
|
disabled: Z.value,
|
|
1593
1593
|
options: [{
|
|
1594
1594
|
value: "true",
|
|
1595
|
-
label:
|
|
1595
|
+
label: p("boolean-true", "是")
|
|
1596
1596
|
}, {
|
|
1597
1597
|
value: "false",
|
|
1598
|
-
label:
|
|
1598
|
+
label: p("boolean-false", "否")
|
|
1599
1599
|
}]
|
|
1600
1600
|
}, null, 8, [
|
|
1601
1601
|
"value",
|
|
1602
1602
|
"onUpdate:value",
|
|
1603
1603
|
"disabled",
|
|
1604
1604
|
"options"
|
|
1605
|
-
])) : (
|
|
1605
|
+
])) : (j(), S(P(v), {
|
|
1606
1606
|
key: 1,
|
|
1607
1607
|
value: _t.value[e.fieldName],
|
|
1608
1608
|
"onUpdate:value": (t) => _t.value[e.fieldName] = t,
|
|
1609
|
-
step:
|
|
1610
|
-
type:
|
|
1609
|
+
step: P(Ee)(e) === "number" ? "any" : void 0,
|
|
1610
|
+
type: P(Ee)(e) === "datetime" ? "datetime-local" : P(Ee)(e) === "number" ? "number" : P(Ee)(e) === "date" ? "date" : "text",
|
|
1611
1611
|
disabled: Z.value
|
|
1612
1612
|
}, null, 8, [
|
|
1613
1613
|
"value",
|
|
@@ -1615,43 +1615,43 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1615
1615
|
"step",
|
|
1616
1616
|
"type",
|
|
1617
1617
|
"disabled"
|
|
1618
|
-
]))]))), 128)),
|
|
1618
|
+
]))]))), 128)), V.value.sequencePolicy ? (j(), w("label", Cn, [E(N(p("trial-sequence", "试算流水值")), 1), D(P(v), {
|
|
1619
1619
|
value: vt.value,
|
|
1620
1620
|
"onUpdate:value": n[19] ||= (e) => vt.value = e,
|
|
1621
1621
|
type: "number",
|
|
1622
|
-
placeholder: String(
|
|
1622
|
+
placeholder: String(V.value.sequencePolicy?.startValue ?? 1),
|
|
1623
1623
|
disabled: Z.value
|
|
1624
1624
|
}, null, 8, [
|
|
1625
1625
|
"value",
|
|
1626
1626
|
"placeholder",
|
|
1627
1627
|
"disabled"
|
|
1628
1628
|
])])) : C("v-if", !0)]),
|
|
1629
|
-
|
|
1630
|
-
|
|
1629
|
+
ht.value?.segments.length ? (j(), w("p", wn, N(p("segment-results", "片段结果(不含分隔符)")), 1)) : C("v-if", !0),
|
|
1630
|
+
ht.value?.segments.length ? (j(), w("ol", {
|
|
1631
1631
|
key: 2,
|
|
1632
1632
|
class: "code-config__preview-segments",
|
|
1633
|
-
"aria-label":
|
|
1634
|
-
}, [(
|
|
1635
|
-
], 8, pn))], 2)])) : (
|
|
1633
|
+
"aria-label": p("segment-results", "片段结果(不含分隔符)")
|
|
1634
|
+
}, [(j(!0), w(b, null, Ge(ht.value.segments, (e, t) => (j(), w("li", { key: t }, [T("span", null, N(p(`segment.${e.segmentType}`, e.segmentType)), 1), T("code", null, N(e.value), 1)]))), 128))], 8, Tn)) : C("v-if", !0)
|
|
1635
|
+
], 8, pn))], 2)])) : (j(), S(P(Te), {
|
|
1636
1636
|
key: 1,
|
|
1637
|
-
description:
|
|
1637
|
+
description: p("choose-rule", "选择或新增编号规则。")
|
|
1638
1638
|
}, null, 8, ["description"]))]),
|
|
1639
1639
|
_: 2
|
|
1640
|
-
}, [
|
|
1640
|
+
}, [V.value ? {
|
|
1641
1641
|
name: "header-actions",
|
|
1642
|
-
fn:
|
|
1642
|
+
fn: F(() => [D(P(y), {
|
|
1643
1643
|
disabled: Z.value,
|
|
1644
1644
|
onClick: Zn
|
|
1645
1645
|
}, {
|
|
1646
|
-
default:
|
|
1646
|
+
default: F(() => [E(N(p("cancel", "取消修改")), 1)]),
|
|
1647
1647
|
_: 1
|
|
1648
|
-
}, 8, ["disabled"]), D(
|
|
1648
|
+
}, 8, ["disabled"]), D(P(y), {
|
|
1649
1649
|
type: "primary",
|
|
1650
1650
|
disabled: !jn.value || kn.value,
|
|
1651
|
-
loading:
|
|
1651
|
+
loading: W.value,
|
|
1652
1652
|
onClick: ir
|
|
1653
1653
|
}, {
|
|
1654
|
-
default:
|
|
1654
|
+
default: F(() => [E(N(p("save-rule", "保存规则")), 1)]),
|
|
1655
1655
|
_: 1
|
|
1656
1656
|
}, 8, ["disabled", "loading"])]),
|
|
1657
1657
|
key: "0"
|
|
@@ -1662,6 +1662,6 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
|
|
|
1662
1662
|
])) : C("v-if", !0)
|
|
1663
1663
|
]));
|
|
1664
1664
|
}
|
|
1665
|
-
}), Dn = /* @__PURE__ */ e({ default: () => On }), On = /*#__PURE__*/
|
|
1665
|
+
}), Dn = /* @__PURE__ */ e({ default: () => On }), On = /*#__PURE__*/ h(En, [["__scopeId", "data-v-a792aff4"]]);
|
|
1666
1666
|
//#endregion
|
|
1667
1667
|
export { bt as i, Dn as n, jt as r, On as t };
|