@dazhicheng/ui 1.6.79 → 1.6.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/api/supplier.d.ts +16 -0
  2. package/dist/api/supplier.js +39 -12
  3. package/dist/assets/svg/download.svg.js +1 -1
  4. package/dist/components/tt-area/TtArea.vue.js +1 -1
  5. package/dist/components/tt-button/index.d.ts +28 -28
  6. package/dist/components/tt-button/index.vue.d.ts +16 -16
  7. package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +5 -5
  8. package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +3 -3
  9. package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +7 -7
  10. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +1 -1
  11. package/dist/components/tt-drawer/index.d.ts +109 -109
  12. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +60 -60
  13. package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
  14. package/dist/components/tt-empty/index.d.ts +4 -4
  15. package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +10 -10
  16. package/dist/components/tt-icon/index.vue.js +2 -2
  17. package/dist/components/tt-image/index.d.ts +29 -29
  18. package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
  19. package/dist/components/tt-image/tt-image.d.ts +29 -29
  20. package/dist/components/tt-input-textarea/index.vue.d.ts +40 -40
  21. package/dist/components/tt-loading/src/loading.vue.js +2 -2
  22. package/dist/components/tt-modal/index.d.ts +150 -150
  23. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +42 -42
  24. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +17 -17
  25. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +5 -5
  26. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +133 -122
  27. package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +77 -66
  28. package/dist/components/tt-panel-select/src/hooks/usePanelData.d.ts +2 -0
  29. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +14 -14
  30. package/dist/components/tt-panel-select/src/index.vue.d.ts +7 -5
  31. package/dist/components/tt-panel-select/src/index.vue.js +300 -219
  32. package/dist/components/tt-panel-select/src/types.d.ts +12 -0
  33. package/dist/components/tt-table/index.js +6 -5
  34. package/dist/components/tt-table/src/TableForm.vue.js +3 -2
  35. package/dist/components/tt-table/src/hooks/useQuery.js +52 -50
  36. package/dist/components/tt-upload/index.d.ts +60 -60
  37. package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
  38. package/dist/components/tt-upload/src/typing.d.ts +17 -17
  39. package/dist/hooks/basicDataCodes.d.ts +5 -0
  40. package/dist/hooks/basicDataCodes.js +61 -60
  41. package/dist/hooks/missingOptionsCache.d.ts +53 -0
  42. package/dist/hooks/missingOptionsCache.js +133 -0
  43. package/dist/hooks/panelSelectEchoFields.d.ts +12 -0
  44. package/dist/hooks/panelSelectEchoFields.js +46 -0
  45. package/dist/hooks/useBasicDataOptions.d.ts +2 -0
  46. package/dist/hooks/useBasicDataOptions.js +85 -78
  47. package/dist/hooks/useDataPermissionOptions.d.ts +10 -0
  48. package/dist/hooks/useDataPermissionOptions.js +83 -66
  49. package/dist/hooks/useFormSchemasLink.js +240 -194
  50. package/dist/hooks/usePanelSelectSchemas.d.ts +11 -0
  51. package/dist/hooks/usePanelSelectSchemas.js +158 -122
  52. package/dist/style.css +1 -1
  53. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { useDataPermissionOptions as te } from "./useDataPermissionOptions.js";
1
+ import { useDataPermissionOptions as me } from "./useDataPermissionOptions.js";
2
2
  import "axios";
3
- import { ElSelectV2 as oe } from "element-plus";
4
- import { isArray as C, isFunction as q, isString as re } from "../packages/utils/src/is.js";
5
- import "vue";
3
+ import { ElSelectV2 as he } from "element-plus";
4
+ import { isArray as O, isFunction as K, isString as ge } from "../packages/utils/src/is.js";
5
+ import { computed as Ie, unref as T } from "vue";
6
6
  import "dayjs";
7
7
  import "numeral";
8
8
  import "xe-utils";
@@ -14,327 +14,373 @@ import "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
14
14
  import "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
15
15
  import "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
16
16
  import "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
17
- import { get as h, set as S, omit as se } from "lodash-es";
18
- const z = "all", le = { label: "全部", value: z }, W = [
17
+ import { get as h, set as C, omit as Pe } from "lodash-es";
18
+ import { CODES as G } from "./basicDataCodes.js";
19
+ import { registerPanelSelectEchoField as be } from "./panelSelectEchoFields.js";
20
+ import { missingOptionsEchoVersion as Se, withMissingOptionDisabled as y, getMergedOptions as Ce, ensureMissingOptions as Oe } from "./missingOptionsCache.js";
21
+ import { useOwnerRoutePath as Ae } from "./useOwnerRoutePath.js";
22
+ const Q = "all", we = { label: "全部", value: Q }, te = [
19
23
  "platformId",
20
24
  "shopId",
21
25
  "purchasePlaceId",
22
26
  "businessType",
23
27
  "lockUserId",
24
28
  "userId"
25
- ], ie = {
29
+ ], ee = {
26
30
  platformId: "platformIds",
27
31
  shopId: "shopIds",
28
32
  purchasePlaceId: "purchasePlaceId",
29
33
  businessType: "businessType",
30
34
  lockUserId: "lockUserId"
31
- }, ce = {
35
+ }, Fe = {
32
36
  platformId: "平台",
33
37
  shopId: "店铺",
34
38
  purchasePlaceId: "采购地",
35
39
  businessType: "业务线",
36
40
  lockUserId: "锁单人"
37
41
  };
38
- function ue(r, i) {
39
- return i ? r ? `${r}.${i}` : i : "";
42
+ function Me(r, l) {
43
+ return l ? r ? `${r}.${l}` : l : "";
40
44
  }
41
- function $(r) {
42
- return re(r) && r.toLowerCase() === z.toLowerCase();
45
+ function J(r) {
46
+ return ge(r) && r.toLowerCase() === Q.toLowerCase();
43
47
  }
44
48
  function V(r) {
45
- return C(r) ? r : r == null || r === "" ? [] : [r];
49
+ return O(r) ? r : r == null || r === "" ? [] : [r];
46
50
  }
47
- function fe(r = []) {
48
- return [le].concat(r);
51
+ function Ve(r = []) {
52
+ return [we].concat(r);
49
53
  }
50
- function de(r, i, f, I) {
51
- return r ? q(r) ? r(i, f, I) : r : {};
54
+ function Ee(r, l, c, g) {
55
+ return r ? K(r) ? r(l, c, g) : r : {};
52
56
  }
53
- function Q(r, i, f, I) {
54
- i == null || i(r);
55
- const F = I(), N = h(F.values, F.fieldName);
56
- f == null || f(N, F);
57
+ function ne(r, l, c, g) {
58
+ l == null || l(r);
59
+ const P = g(), R = h(P.values, P.fieldName);
60
+ c == null || c(R, P);
57
61
  }
58
- function X(r = {}, i = W, f) {
59
- const I = r.scene || "list", F = i.reduce(
62
+ function oe(r = {}, l = te, c) {
63
+ var Z, H;
64
+ const g = r.scene || "list", P = Ae(), R = l.includes("purchasePlaceId"), W = g === "action", re = l.reduce(
60
65
  (e, t) => {
61
66
  if (t === "userId") return e;
62
- const n = P(t), o = O(t) === "TtPanelSelect";
67
+ const n = b(t), o = w(t) === "TtPanelSelect";
63
68
  return e[t] = o ? !1 : n.showAll ?? !1, e;
64
69
  },
65
70
  {}
66
- ), { dataSource: N } = f ? { dataSource: f } : te({
67
- codes: i,
71
+ ), { dataSource: _ } = c ? { dataSource: c } : me({
72
+ codes: l,
68
73
  dataSource: r.dataSource,
69
- showAll: F
74
+ showAll: re
70
75
  });
71
- function a(e, t = r.basePath) {
72
- const n = P(e).fieldName || ie[e];
73
- return ue(t, n);
76
+ if (R && !c) {
77
+ const e = String(((H = (Z = r.fieldConfigs) == null ? void 0 : Z.purchasePlaceId) == null ? void 0 : H.fieldName) || ee.purchasePlaceId);
78
+ be(P, G.PURCHASE_PLACE, e);
74
79
  }
75
- function R(e) {
76
- return P(e).rules;
80
+ const D = R && !c ? Ie(() => {
81
+ Se.value;
82
+ const e = T(_);
83
+ return new Proxy(e, {
84
+ get(t, n, o) {
85
+ if (typeof n == "symbol")
86
+ return Reflect.get(t, n, o);
87
+ if (n === "purchasePlaceId") {
88
+ const i = Reflect.get(t, n, o) || [];
89
+ return y(
90
+ Ce(P, G.PURCHASE_PLACE, i),
91
+ W
92
+ );
93
+ }
94
+ return Reflect.get(t, n, o);
95
+ },
96
+ set(t, n) {
97
+ return !0;
98
+ }
99
+ });
100
+ }) : _;
101
+ function p(e, t = r.basePath) {
102
+ const n = b(e).fieldName || ee[e];
103
+ return Me(t, n);
77
104
  }
78
- function D(e) {
79
- return P(e).label || ce[e];
105
+ function x(e) {
106
+ return b(e).rules;
80
107
  }
81
- function P(e) {
108
+ function B(e) {
109
+ return b(e).label || Fe[e];
110
+ }
111
+ function b(e) {
82
112
  var t;
83
113
  return ((t = r.fieldConfigs) == null ? void 0 : t[e]) || {};
84
114
  }
85
115
  function A(e) {
86
- return P(e).showAllField ?? z;
116
+ return b(e).showAllField ?? Q;
87
117
  }
88
118
  function U(e, t, n) {
89
- return q(e) ? e(t, n) : e;
119
+ return K(e) ? e(t, n) : e;
90
120
  }
91
- function B(e, t) {
92
- const n = P(e).dependencies;
121
+ function j(e, t) {
122
+ const n = b(e).dependencies;
93
123
  if (!t) return n;
94
124
  if (!n) return t;
95
125
  const o = {
96
126
  ...t,
97
127
  ...n
98
- }, l = t.triggerFields || [], s = n.triggerFields || [];
99
- (l.length || s.length) && (o.triggerFields = Array.from(/* @__PURE__ */ new Set([...l, ...s])));
100
- const c = t.disabled, u = n.disabled;
101
- c !== void 0 && u !== void 0 && (o.disabled = (d, p) => U(c, d, p) ? !0 : U(u, d, p));
102
- const m = t.rules, g = n.rules;
103
- return m !== void 0 && g !== void 0 && (o.rules = (d, p) => c !== void 0 && U(c, d, p) ? null : U(g ?? m, d, p)), o;
128
+ }, i = t.triggerFields || [], s = n.triggerFields || [];
129
+ (i.length || s.length) && (o.triggerFields = Array.from(/* @__PURE__ */ new Set([...i, ...s])));
130
+ const u = t.disabled, f = n.disabled;
131
+ u !== void 0 && f !== void 0 && (o.disabled = (m, d) => U(u, m, d) ? !0 : U(f, m, d));
132
+ const a = t.rules, S = n.rules;
133
+ return a !== void 0 && S !== void 0 && (o.rules = (m, d) => u !== void 0 && U(u, m, d) ? null : U(S ?? a, m, d)), o;
104
134
  }
105
- function O(e) {
106
- return P(e).component || (e === "platformId" || e === "shopId" || e === "purchasePlaceId" ? "TtPanelSelect" : "TtApiComponent");
135
+ function w(e) {
136
+ return b(e).component || (e === "platformId" || e === "shopId" || e === "purchasePlaceId" ? "TtPanelSelect" : "TtApiComponent");
107
137
  }
108
- function M(e) {
109
- return P(e).multiple ?? !0;
138
+ function E(e) {
139
+ return b(e).multiple ?? !0;
110
140
  }
111
- function _(e) {
112
- return N.value[e] || [];
141
+ function $(e) {
142
+ return D.value[e] || [];
113
143
  }
114
- function Y(e) {
144
+ function se(e) {
115
145
  const t = /* @__PURE__ */ new Map();
116
146
  return e.forEach((n) => {
117
- const o = n.purchaseInfo, l = (o == null ? void 0 : o.supplierSubType) ?? "其他";
118
- let s = t.get(l);
147
+ const o = n.purchaseInfo, i = (o == null ? void 0 : o.supplierSubType) ?? "其他";
148
+ let s = t.get(i);
119
149
  s || (s = {
120
- label: String(l),
121
- value: l,
150
+ label: String(i),
151
+ value: i,
122
152
  children: []
123
- }, t.set(l, s)), s.children.push(n);
153
+ }, t.set(i, s)), s.children.push(n);
124
154
  }), Array.from(t.values());
125
155
  }
126
- function Z(e) {
156
+ function ie(e) {
127
157
  const t = /* @__PURE__ */ new Map();
128
158
  return e.forEach((n) => {
129
159
  const o = n.platformId;
130
160
  if (o == null) return;
131
- let l = t.get(o);
132
- l || (l = {
161
+ let i = t.get(o);
162
+ i || (i = {
133
163
  label: String(n.platformName ?? n.platformId),
134
164
  value: o,
135
165
  children: []
136
- }, t.set(o, l)), l.children.push(n);
166
+ }, t.set(o, i)), i.children.push(n);
137
167
  }), Array.from(t.values());
138
168
  }
139
- function G(e) {
169
+ function X(e) {
140
170
  return e.flatMap((t) => {
141
171
  const n = t.children;
142
- return n != null && n.length ? G(n) : [t];
172
+ return n != null && n.length ? X(n) : [t];
143
173
  });
144
174
  }
145
- function v(e, t) {
146
- return V(e).some((n) => n === t || $(n));
175
+ function le(e, t) {
176
+ return V(e).some((n) => n === t || J(n));
147
177
  }
148
- function H(e, t) {
149
- const n = a("shopId"), o = M("shopId"), l = A("shopId");
150
- if (I === "action" && L(t)) {
151
- S(e, n, o ? [l] : l);
178
+ function ce(e, t) {
179
+ const n = p("shopId"), o = E("shopId"), i = A("shopId");
180
+ if (g === "action" && L(t)) {
181
+ C(e, n, o ? [i] : i);
152
182
  return;
153
183
  }
154
- S(e, n, o ? [] : void 0);
184
+ C(e, n, o ? [] : void 0);
155
185
  }
156
186
  function L(e) {
157
- const t = v(e, A("platformId")), n = C(e) ? e.length > 1 : !1;
158
- return I === "action" && (t || n);
187
+ const t = le(e, A("platformId")), n = O(e) ? e.length > 1 : !1;
188
+ return g === "action" && (t || n);
159
189
  }
160
- function T(e) {
161
- const t = _("shopId"), n = V(e);
190
+ function ue(e) {
191
+ const t = $("shopId"), n = V(e);
162
192
  if (!n.length)
163
- return I === "action" ? [] : t;
193
+ return g === "action" ? [] : t;
164
194
  if (L(e)) return [];
165
195
  const o = t.filter((s) => n.includes(s.platformId));
166
- return !o.some((s) => s.value === A("shopId") || $(s.value)) || o.length <= 1 ? o : fe(o.filter((s) => s.value !== A("shopId") && !$(s.value)));
196
+ return !o.some((s) => s.value === A("shopId") || J(s.value)) || o.length <= 1 ? o : Ve(o.filter((s) => s.value !== A("shopId") && !J(s.value)));
167
197
  }
168
- function J(e, t, n, o, l) {
169
- const s = a(e), c = h(t, s), u = l ? o.filter((m) => C(c) && c.includes(m.value)) : o.find((m) => m.value === c);
198
+ function Y(e, t, n, o, i) {
199
+ const s = p(e), u = h(t, s), f = i ? o.filter((a) => O(u) && u.includes(a.value)) : o.find((a) => a.value === u);
170
200
  return {
171
201
  values: t,
172
202
  actions: n,
173
203
  fieldName: s,
174
204
  dataType: e,
175
205
  options: o,
176
- currentOption: u
206
+ currentOption: f
177
207
  };
178
208
  }
179
- function x(e, t, n, o, l) {
180
- const s = P(e), c = de(s.componentProps, t, n, o), u = M(e), { onChange: m, ...g } = c, d = q(s.customOptions) ? s.customOptions(t, o) : o, p = O(e) === "TtPanelSelect", b = p && e === "shopId" ? Z(d) : p && e === "purchasePlaceId" ? Y(d) : d, w = p ? G(b) : d;
181
- return p ? {
182
- multiple: u,
183
- showAll: s.showAll ?? (e === "shopId" && I === "action" ? V(h(t, a("platformId"))).length > 0 : !0),
209
+ function q(e, t, n, o, i) {
210
+ const s = b(e), u = Ee(s.componentProps, t, n, o), f = E(e), {
211
+ onChange: a,
212
+ resolveMissingOptions: S,
213
+ ...m
214
+ } = u, d = K(s.customOptions) ? s.customOptions(t, o) : o, I = w(e) === "TtPanelSelect", F = I && e === "shopId" ? ie(d) : I && e === "purchasePlaceId" ? se(d) : d, v = I ? X(F) : d, ae = I && e === "purchasePlaceId";
215
+ return I ? {
216
+ multiple: f,
217
+ showAll: s.showAll ?? (e === "shopId" && g === "action" ? V(h(t, p("platformId"))).length > 0 : !0),
184
218
  showAllField: A(e),
185
219
  showNav: e !== "platformId" && e !== "purchasePlaceId",
186
220
  showOriginMode: e === "platformId",
187
221
  showPinyinMode: e !== "shopId" && e !== "purchasePlaceId",
188
- ...g,
189
- options: b,
190
- onChange(E) {
191
- const K = E !== void 0 ? E : h(t, a(e));
192
- S(t, a(e), K), Q(
193
- K,
194
- l,
222
+ ...m,
223
+ options: F,
224
+ ...ae ? {
225
+ resolveMissingOptions: async (M) => {
226
+ const k = await Oe(
227
+ P,
228
+ G.PURCHASE_PLACE,
229
+ M,
230
+ // 差集相对数据权限主列表(不含 echo),避免把已回显项再当缺码
231
+ T(_).purchasePlaceId || []
232
+ );
233
+ return y(k, W);
234
+ }
235
+ } : {},
236
+ onChange(M) {
237
+ const k = M !== void 0 ? M : h(t, p(e));
238
+ C(t, p(e), k), ne(
239
+ k,
240
+ i,
195
241
  s.onChange,
196
- () => J(e, t, n, w, u)
242
+ () => Y(e, t, n, v, f)
197
243
  );
198
244
  }
199
245
  } : {
200
- multiple: u,
201
- component: oe,
246
+ multiple: f,
247
+ component: he,
202
248
  showOriginMode: !1,
203
249
  showPinyinMode: !0,
204
- ...g,
250
+ ...m,
205
251
  options: d,
206
- onChange(E) {
207
- Q(
208
- E,
209
- l,
252
+ onChange(M) {
253
+ ne(
254
+ M,
255
+ i,
210
256
  s.onChange,
211
- () => J(e, t, n, w, u)
257
+ () => Y(e, t, n, v, f)
212
258
  );
213
259
  }
214
260
  };
215
261
  }
216
- function j(e) {
217
- const t = a(e);
262
+ function z(e) {
263
+ const t = p(e);
218
264
  return {
219
- component: O(e),
265
+ component: w(e),
220
266
  fieldName: t,
221
- label: D(e),
222
- rules: R(e),
223
- dependencies: B(e),
267
+ label: B(e),
268
+ rules: x(e),
269
+ dependencies: j(e),
224
270
  componentProps: (n, o) => {
225
- const l = _(e), s = a(e), c = M(e), u = A(e), m = h(n, s), g = C(m) ? m.at(-1) !== u : !0;
226
- return x(e, n, o, l, (d) => {
227
- if (O(e) !== "TtPanelSelect") {
228
- const p = h(n, s);
229
- if (c)
230
- if (g && V(d).at(-1) === u)
231
- S(n, s, [u]);
271
+ const i = $(e), s = p(e), u = E(e), f = A(e), a = h(n, s), S = O(a) ? a.at(-1) !== f : !0;
272
+ return q(e, n, o, i, (m) => {
273
+ if (w(e) !== "TtPanelSelect") {
274
+ const d = h(n, s);
275
+ if (u)
276
+ if (S && V(m).at(-1) === f)
277
+ C(n, s, [f]);
232
278
  else {
233
- const b = C(p) ? p.filter((w) => w !== u) : [];
234
- S(n, s, b);
279
+ const I = O(d) ? d.filter((F) => F !== f) : [];
280
+ C(n, s, I);
235
281
  }
236
282
  }
237
283
  });
238
284
  }
239
285
  };
240
286
  }
241
- const y = {
287
+ const fe = {
242
288
  // 平台
243
289
  platformId: {
244
- component: O("platformId"),
245
- fieldName: a("platformId"),
246
- label: D("platformId"),
247
- rules: R("platformId"),
248
- dependencies: B("platformId"),
290
+ component: w("platformId"),
291
+ fieldName: p("platformId"),
292
+ label: B("platformId"),
293
+ rules: x("platformId"),
294
+ dependencies: j("platformId"),
249
295
  componentProps: (e, t) => {
250
- const n = "platformId", o = a(n), l = M(n), s = _(n), c = A(n), u = h(e, o), m = C(u) ? u.at(-1) !== c : !0;
251
- return x(n, e, t, s, (g) => {
252
- if (O(n) !== "TtPanelSelect") {
253
- const d = h(e, o);
254
- if (l)
255
- if (m && V(g).at(-1) === c)
256
- S(e, o, [c]);
296
+ const n = "platformId", o = p(n), i = E(n), s = $(n), u = A(n), f = h(e, o), a = O(f) ? f.at(-1) !== u : !0;
297
+ return q(n, e, t, s, (S) => {
298
+ if (w(n) !== "TtPanelSelect") {
299
+ const m = h(e, o);
300
+ if (i)
301
+ if (a && V(S).at(-1) === u)
302
+ C(e, o, [u]);
257
303
  else {
258
- const p = C(d) ? d.filter((b) => b !== c) : [];
259
- S(e, o, p);
304
+ const d = O(m) ? m.filter((I) => I !== u) : [];
305
+ C(e, o, d);
260
306
  }
261
307
  }
262
- H(e, h(e, o));
308
+ ce(e, h(e, o));
263
309
  });
264
310
  }
265
311
  },
266
312
  // 店铺
267
313
  shopId: {
268
- component: O("shopId"),
269
- fieldName: a("shopId"),
270
- label: D("shopId"),
314
+ component: w("shopId"),
315
+ fieldName: p("shopId"),
316
+ label: B("shopId"),
271
317
  componentProps: (e, t) => {
272
- const n = "shopId", o = a(n), l = h(e, a("platformId")), s = T(l), c = M(n), u = A(n), m = h(e, o), g = C(m) ? m.at(-1) !== u : !0;
273
- return x(n, e, t, s, (d) => {
274
- if (O(n) !== "TtPanelSelect") {
275
- const p = h(e, o);
276
- if (c)
277
- if (g && V(d).at(-1) === u)
278
- S(e, o, [u]);
318
+ const n = "shopId", o = p(n), i = h(e, p("platformId")), s = ue(i), u = E(n), f = A(n), a = h(e, o), S = O(a) ? a.at(-1) !== f : !0;
319
+ return q(n, e, t, s, (m) => {
320
+ if (w(n) !== "TtPanelSelect") {
321
+ const d = h(e, o);
322
+ if (u)
323
+ if (S && V(m).at(-1) === f)
324
+ C(e, o, [f]);
279
325
  else {
280
- const b = C(p) ? p.filter((w) => w !== u) : [];
281
- S(e, o, b);
326
+ const I = O(d) ? d.filter((F) => F !== f) : [];
327
+ C(e, o, I);
282
328
  }
283
329
  }
284
330
  });
285
331
  },
286
- dependencies: B("shopId", {
287
- triggerFields: [a("platformId")],
332
+ dependencies: j("shopId", {
333
+ triggerFields: [p("platformId")],
288
334
  disabled(e) {
289
- return L(h(e, a("platformId")));
335
+ return L(h(e, p("platformId")));
290
336
  },
291
337
  rules(e) {
292
- return L(h(e, a("platformId"))) ? null : R("shopId") || null;
338
+ return L(h(e, p("platformId"))) ? null : x("shopId") || null;
293
339
  }
294
340
  })
295
341
  },
296
- purchasePlaceId: j("purchasePlaceId"),
297
- businessType: j("businessType"),
298
- lockUserId: j("lockUserId")
342
+ purchasePlaceId: z("purchasePlaceId"),
343
+ businessType: z("businessType"),
344
+ lockUserId: z("lockUserId")
299
345
  };
300
- function k(e) {
346
+ function N(e) {
301
347
  var o;
302
- const t = y[e], n = (o = r.fieldConfigs) == null ? void 0 : o[e];
348
+ const t = fe[e], n = (o = r.fieldConfigs) == null ? void 0 : o[e];
303
349
  return {
304
350
  ...t,
305
- ...se(n, ["componentProps", "rules", "fieldName", "dependencies"]),
351
+ ...Pe(n, ["componentProps", "rules", "fieldName", "dependencies"]),
306
352
  fieldName: t.fieldName
307
353
  };
308
354
  }
309
- function ee() {
355
+ function de() {
310
356
  return {
311
- platformId: k("platformId"),
312
- shopId: k("shopId"),
313
- purchasePlaceId: k("purchasePlaceId"),
314
- businessType: k("businessType"),
315
- lockUserId: k("lockUserId")
357
+ platformId: N("platformId"),
358
+ shopId: N("shopId"),
359
+ purchasePlaceId: N("purchasePlaceId"),
360
+ businessType: N("businessType"),
361
+ lockUserId: N("lockUserId")
316
362
  };
317
363
  }
318
- function ne(e, t) {
364
+ function pe(e, t) {
319
365
  const n = t ? {
320
366
  ...r.fieldConfigs,
321
367
  ...Object.fromEntries(
322
- Object.entries(t).map(([l, s]) => {
323
- var c;
368
+ Object.entries(t).map(([i, s]) => {
369
+ var u;
324
370
  return [
325
- l,
326
- { ...((c = r.fieldConfigs) == null ? void 0 : c[l]) || {}, ...s }
371
+ i,
372
+ { ...((u = r.fieldConfigs) == null ? void 0 : u[i]) || {}, ...s }
327
373
  ];
328
374
  })
329
375
  )
330
- } : r.fieldConfigs, o = X(
376
+ } : r.fieldConfigs, o = oe(
331
377
  {
332
378
  ...r,
333
379
  basePath: e,
334
380
  fieldConfigs: n
335
381
  },
336
- i,
337
- N
382
+ l,
383
+ D
338
384
  );
339
385
  return {
340
386
  platformId: o.platformId,
@@ -345,89 +391,89 @@ function X(r = {}, i = W, f) {
345
391
  };
346
392
  }
347
393
  return {
348
- ...ee(),
349
- dataSource: N,
350
- createRowSchemas: ne
394
+ ...de(),
395
+ dataSource: D,
396
+ createRowSchemas: pe
351
397
  };
352
398
  }
353
- function ke() {
399
+ function He() {
354
400
  const r = {
355
401
  options: {},
356
- codes: [...W]
357
- }, i = {
402
+ codes: [...te]
403
+ }, l = {
358
404
  /**
359
405
  * @description 渲染查询场景
360
406
  */
361
407
  list() {
362
- return r.options.scene = "list", i;
408
+ return r.options.scene = "list", l;
363
409
  },
364
410
  /**
365
411
  * @description 渲染新增编辑场景
366
412
  */
367
413
  action() {
368
- return r.options.scene = "action", i;
414
+ return r.options.scene = "action", l;
369
415
  },
370
416
  /**
371
417
  * @param scene - 场景值,list 为查询筛选,action 为新增编辑等操作
372
418
  * @returns FormSchemasLinkBuilder
373
419
  */
374
- scene(f) {
375
- return r.options.scene = f, i;
420
+ scene(c) {
421
+ return r.options.scene = c, l;
376
422
  },
377
423
  /**
378
424
  * @param basePath - 字段路径前缀,例如 "items[0]" 或 "condition"
379
425
  * @returns FormSchemasLinkBuilder
380
426
  */
381
- basePath(f) {
382
- return r.options.basePath = f, i;
427
+ basePath(c) {
428
+ return r.options.basePath = c, l;
383
429
  },
384
430
  /**
385
431
  * @param codes - 接口请求所需要的数据权限维度 code 列表
386
432
  * @returns FormSchemasLinkBuilder
387
433
  */
388
- codes(f) {
389
- return r.codes = [...f], i;
434
+ codes(c) {
435
+ return r.codes = [...c], l;
390
436
  },
391
437
  /**
392
438
  * @param dataSource - 外部自定义数据源
393
439
  * @returns FormSchemasLinkBuilder
394
440
  */
395
- dataSource(f) {
396
- return r.options.dataSource = f, i;
441
+ dataSource(c) {
442
+ return r.options.dataSource = c, l;
397
443
  },
398
444
  /**
399
445
  * @param dataType - 待配置的数据类型维度
400
446
  * @param config - 字段自定义配置
401
447
  * @returns FormSchemasLinkBuilder
402
448
  */
403
- field(f, I) {
404
- var F;
449
+ field(c, g) {
450
+ var P;
405
451
  return r.options.fieldConfigs = {
406
452
  ...r.options.fieldConfigs,
407
- [f]: {
408
- ...((F = r.options.fieldConfigs) == null ? void 0 : F[f]) || {},
409
- ...I
453
+ [c]: {
454
+ ...((P = r.options.fieldConfigs) == null ? void 0 : P[c]) || {},
455
+ ...g
410
456
  }
411
- }, i;
457
+ }, l;
412
458
  },
413
459
  /**
414
460
  * @description 执行构建并返回字段 schema 映射及数据源
415
461
  * @returns UseFormSchemasLinkResult
416
462
  */
417
463
  build() {
418
- return X(r.options, r.codes);
464
+ return oe(r.options, r.codes);
419
465
  },
420
466
  /**
421
467
  * @param itemPath - 数组行路径(如 "tableData[0]")
422
468
  * @param rowFieldConfigs - 可选,针对当前行的字段覆盖配置
423
469
  * @returns 该行对应的表单 schema 映射
424
470
  */
425
- createRowSchemas(f, I) {
426
- return i.build().createRowSchemas(f, I);
471
+ createRowSchemas(c, g) {
472
+ return l.build().createRowSchemas(c, g);
427
473
  }
428
474
  };
429
- return i;
475
+ return l;
430
476
  }
431
477
  export {
432
- ke as useFormSchemasLink
478
+ He as useFormSchemasLink
433
479
  };