@aplus-frontend/ui 0.5.10 → 0.5.11

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.
@@ -61,8 +61,8 @@ declare function __VLS_template(): {
61
61
  popupClassName: StringConstructor;
62
62
  dropdownClassName: StringConstructor;
63
63
  placement: {
64
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
65
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
64
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
65
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
66
66
  };
67
67
  status: {
68
68
  type: PropType<"" | "error" | "warning">;
@@ -208,7 +208,7 @@ declare function __VLS_template(): {
208
208
  status: "" | "error" | "warning";
209
209
  defaultValue: SelectValue;
210
210
  'onUpdate:value': (val: SelectValue) => void;
211
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
211
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
212
212
  loading: boolean;
213
213
  bordered: boolean;
214
214
  allowClear: boolean;
@@ -272,8 +272,8 @@ declare function __VLS_template(): {
272
272
  popupClassName: StringConstructor;
273
273
  dropdownClassName: StringConstructor;
274
274
  placement: {
275
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
276
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
275
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
276
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
277
277
  };
278
278
  status: {
279
279
  type: PropType<"" | "error" | "warning">;
@@ -419,7 +419,7 @@ declare function __VLS_template(): {
419
419
  status: "" | "error" | "warning";
420
420
  defaultValue: SelectValue;
421
421
  'onUpdate:value': (val: SelectValue) => void;
422
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
422
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
423
423
  loading: boolean;
424
424
  bordered: boolean;
425
425
  allowClear: boolean;
@@ -497,8 +497,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
497
497
  popupClassName: StringConstructor;
498
498
  dropdownClassName: StringConstructor;
499
499
  placement: {
500
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
501
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
500
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
501
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
502
502
  };
503
503
  status: {
504
504
  type: PropType<"" | "error" | "warning">;
@@ -644,7 +644,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
644
644
  status: "" | "error" | "warning";
645
645
  defaultValue: SelectValue;
646
646
  'onUpdate:value': (val: SelectValue) => void;
647
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
647
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
648
648
  loading: boolean;
649
649
  bordered: boolean;
650
650
  allowClear: boolean;
@@ -708,8 +708,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
708
708
  popupClassName: StringConstructor;
709
709
  dropdownClassName: StringConstructor;
710
710
  placement: {
711
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
712
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
711
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
712
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
713
713
  };
714
714
  status: {
715
715
  type: PropType<"" | "error" | "warning">;
@@ -855,7 +855,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
855
855
  status: "" | "error" | "warning";
856
856
  defaultValue: SelectValue;
857
857
  'onUpdate:value': (val: SelectValue) => void;
858
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
858
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
859
859
  loading: boolean;
860
860
  bordered: boolean;
861
861
  allowClear: boolean;
@@ -2649,8 +2649,8 @@ export declare const apTableRenderItemMap: {
2649
2649
  popupClassName: StringConstructor;
2650
2650
  dropdownClassName: StringConstructor;
2651
2651
  placement: {
2652
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
2653
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
2652
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
2653
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
2654
2654
  };
2655
2655
  status: {
2656
2656
  type: PropType<"" | "error" | "warning">;
@@ -2796,7 +2796,7 @@ export declare const apTableRenderItemMap: {
2796
2796
  status: "" | "error" | "warning";
2797
2797
  defaultValue: SelectValue;
2798
2798
  'onUpdate:value': (val: SelectValue) => void;
2799
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
2799
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
2800
2800
  loading: boolean;
2801
2801
  bordered: boolean;
2802
2802
  allowClear: boolean;
@@ -2860,8 +2860,8 @@ export declare const apTableRenderItemMap: {
2860
2860
  popupClassName: StringConstructor;
2861
2861
  dropdownClassName: StringConstructor;
2862
2862
  placement: {
2863
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
2864
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
2863
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
2864
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
2865
2865
  };
2866
2866
  status: {
2867
2867
  type: PropType<"" | "error" | "warning">;
@@ -3007,7 +3007,7 @@ export declare const apTableRenderItemMap: {
3007
3007
  status: "" | "error" | "warning";
3008
3008
  defaultValue: SelectValue;
3009
3009
  'onUpdate:value': (val: SelectValue) => void;
3010
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
3010
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
3011
3011
  loading: boolean;
3012
3012
  bordered: boolean;
3013
3013
  allowClear: boolean;
@@ -264,7 +264,7 @@ declare const ApBatchActionGroup: {
264
264
  };
265
265
  getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
266
266
  transitionName: StringConstructor;
267
- placement: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter">;
267
+ placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
268
268
  overlayClassName: StringConstructor;
269
269
  overlayStyle: {
270
270
  type: PropType<CSSProperties>;
@@ -565,7 +565,7 @@ declare const ApBatchActionGroup: {
565
565
  };
566
566
  getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
567
567
  transitionName: StringConstructor;
568
- placement: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter">;
568
+ placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
569
569
  overlayClassName: StringConstructor;
570
570
  overlayStyle: {
571
571
  type: PropType<CSSProperties>;
@@ -863,7 +863,7 @@ declare const ApBatchActionGroup: {
863
863
  };
864
864
  getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
865
865
  transitionName: StringConstructor;
866
- placement: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter">;
866
+ placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
867
867
  overlayClassName: StringConstructor;
868
868
  overlayStyle: {
869
869
  type: PropType<CSSProperties>;
@@ -87,8 +87,8 @@ declare const ApExtensionSelect: {
87
87
  popupClassName: StringConstructor;
88
88
  dropdownClassName: StringConstructor;
89
89
  placement: {
90
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
91
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
90
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
91
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
92
92
  };
93
93
  status: {
94
94
  type: PropType<"" | "error" | "warning">;
@@ -269,8 +269,8 @@ declare const ApExtensionSelect: {
269
269
  popupClassName: StringConstructor;
270
270
  dropdownClassName: StringConstructor;
271
271
  placement: {
272
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
273
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
272
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
273
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
274
274
  };
275
275
  status: {
276
276
  type: PropType<"" | "error" | "warning">;
@@ -444,8 +444,8 @@ declare const ApExtensionSelect: {
444
444
  popupClassName: StringConstructor;
445
445
  dropdownClassName: StringConstructor;
446
446
  placement: {
447
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
448
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
447
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
448
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
449
449
  };
450
450
  status: {
451
451
  type: PropType<"" | "error" | "warning">;
@@ -623,8 +623,8 @@ declare const ApPopoverSelect: {
623
623
  popupClassName: StringConstructor;
624
624
  dropdownClassName: StringConstructor;
625
625
  placement: {
626
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
627
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
626
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
627
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
628
628
  };
629
629
  status: {
630
630
  type: PropType<"" | "error" | "warning">;
@@ -799,8 +799,8 @@ declare const ApPopoverSelect: {
799
799
  popupClassName: StringConstructor;
800
800
  dropdownClassName: StringConstructor;
801
801
  placement: {
802
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
803
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
802
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
803
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
804
804
  };
805
805
  status: {
806
806
  type: PropType<"" | "error" | "warning">;
@@ -946,7 +946,7 @@ declare const ApPopoverSelect: {
946
946
  status: "" | "error" | "warning";
947
947
  defaultValue: SelectValue;
948
948
  'onUpdate:value': (val: SelectValue) => void;
949
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
949
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
950
950
  loading: boolean;
951
951
  bordered: boolean;
952
952
  allowClear: boolean;
@@ -1010,8 +1010,8 @@ declare const ApPopoverSelect: {
1010
1010
  popupClassName: StringConstructor;
1011
1011
  dropdownClassName: StringConstructor;
1012
1012
  placement: {
1013
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
1014
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1013
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
1014
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
1015
1015
  };
1016
1016
  status: {
1017
1017
  type: PropType<"" | "error" | "warning">;
@@ -1157,7 +1157,7 @@ declare const ApPopoverSelect: {
1157
1157
  status: "" | "error" | "warning";
1158
1158
  defaultValue: SelectValue;
1159
1159
  'onUpdate:value': (val: SelectValue) => void;
1160
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1160
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
1161
1161
  loading: boolean;
1162
1162
  bordered: boolean;
1163
1163
  allowClear: boolean;
@@ -1209,8 +1209,8 @@ declare const ApPopoverSelect: {
1209
1209
  popupClassName: StringConstructor;
1210
1210
  dropdownClassName: StringConstructor;
1211
1211
  placement: {
1212
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
1213
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1212
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
1213
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
1214
1214
  };
1215
1215
  status: {
1216
1216
  type: PropType<"" | "error" | "warning">;
@@ -1385,8 +1385,8 @@ declare const ApPopoverSelect: {
1385
1385
  popupClassName: StringConstructor;
1386
1386
  dropdownClassName: StringConstructor;
1387
1387
  placement: {
1388
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
1389
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1388
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
1389
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
1390
1390
  };
1391
1391
  status: {
1392
1392
  type: PropType<"" | "error" | "warning">;
@@ -49,8 +49,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
49
49
  popupClassName: StringConstructor;
50
50
  dropdownClassName: StringConstructor;
51
51
  placement: {
52
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
53
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
52
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
53
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
54
54
  };
55
55
  status: {
56
56
  type: PropType<"" | "error" | "warning">;
@@ -196,7 +196,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
196
196
  status: "" | "error" | "warning";
197
197
  defaultValue: SelectValue;
198
198
  'onUpdate:value': (val: SelectValue) => void;
199
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
199
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
200
200
  loading: boolean;
201
201
  bordered: boolean;
202
202
  allowClear: boolean;
@@ -260,8 +260,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
260
260
  popupClassName: StringConstructor;
261
261
  dropdownClassName: StringConstructor;
262
262
  placement: {
263
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
264
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
263
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
264
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
265
265
  };
266
266
  status: {
267
267
  type: PropType<"" | "error" | "warning">;
@@ -407,7 +407,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
407
407
  status: "" | "error" | "warning";
408
408
  defaultValue: SelectValue;
409
409
  'onUpdate:value': (val: SelectValue) => void;
410
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
410
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
411
411
  loading: boolean;
412
412
  bordered: boolean;
413
413
  allowClear: boolean;
@@ -106,7 +106,7 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
106
106
  readonly hideRequiredMark?: boolean | undefined;
107
107
  readonly validateOnRuleChange?: boolean | undefined;
108
108
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
109
- readonly onFieldsChange?: ((changedFields: FieldData[], allFields: ** @type { typeof __VLS_ctx.formRef } */).FieldData[]) => void) | undefined;
109
+ readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
110
110
  readonly onFinish?: ((values: any) => void) | undefined;
111
111
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
112
112
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
@@ -1,12 +1,12 @@
1
- import { defineComponent as T, ref as g, computed as F, createElementBlock as E, openBlock as N, createVNode as t, unref as e, mergeProps as L, withCtx as n, h as P } from "vue";
2
- import { message as q, Modal as I, Input as A, Textarea as V } from "@aplus-frontend/antdv";
3
- import { ApForm as i } from "../ap-form/index.mjs";
1
+ import { defineComponent as F, ref as g, computed as M, createElementBlock as N, openBlock as L, createVNode as t, unref as e, mergeProps as P, withCtx as n, h as q } from "vue";
2
+ import { message as E, Modal as I, Input as A, Textarea as V } from "@aplus-frontend/antdv";
3
+ import { ApForm as c } from "../ap-form/index.mjs";
4
4
  import "./help-message.vue.mjs";
5
5
  import "../ap-upload/index.mjs";
6
- import { langMap as R, DictCode as w } from "./interfaces.mjs";
6
+ import { langMap as R, DictCode as b } from "./interfaces.mjs";
7
7
  import "../config-provider/index.mjs";
8
8
  import "../hooks/index.mjs";
9
- import { useLocale as b } from "../config-provider/hooks/use-locale.mjs";
9
+ import { useLocale as w } from "../config-provider/hooks/use-locale.mjs";
10
10
  import { useNamespace as $ } from "../config-provider/hooks/use-namespace.mjs";
11
11
  import { useGlobalConfig as z } from "../config-provider/hooks/use-global-config.mjs";
12
12
  import { useControllableValue as D } from "../hooks/useControllableValue.mjs";
@@ -14,7 +14,7 @@ import S from "../ap-form/items/select/index.vue.mjs";
14
14
  import j from "../ap-form/items/radio/index.vue.mjs";
15
15
  import K from "../ap-upload/apUpload.vue.mjs";
16
16
  import U from "./help-message.vue2.mjs";
17
- const pe = /* @__PURE__ */ T({
17
+ const pe = /* @__PURE__ */ F({
18
18
  __name: "work-order-modal",
19
19
  props: {
20
20
  api: { type: Function },
@@ -60,14 +60,14 @@ const pe = /* @__PURE__ */ T({
60
60
  },
61
61
  emits: ["update:open", "modalClose"],
62
62
  setup(v, { emit: x }) {
63
- const { t: o } = b(), { b: C } = $("work-order-modal"), m = x, d = g(), l = g(!1), s = v, O = z("api"), { lang: h } = b(), _ = F(() => R[h.value] ?? "zh_CN"), { value: c, updateValue: M } = D(s, m, {
63
+ const { t: o } = w(), { b: C } = $("work-order-modal"), m = x, u = g(), l = g(!1), s = v, h = z("api"), { lang: _ } = w(), O = M(() => R[_.value] ?? "zh_CN"), { value: i, updateValue: T } = D(s, m, {
64
64
  valuePropName: "open",
65
65
  defaultValue: !0
66
- }), u = async (r) => {
66
+ }), d = async (r) => {
67
67
  var p, k;
68
- const a = await ((k = (p = O.value) == null ? void 0 : p.select) == null ? void 0 : k.call(p, {
68
+ const a = await ((k = (p = h.value) == null ? void 0 : p.select) == null ? void 0 : k.call(p, {
69
69
  dictCode: r,
70
- locale: _.value
70
+ locale: O.value
71
71
  }));
72
72
  return a == null ? void 0 : a.map((y) => ({ label: y.itemText, value: y.itemValue }));
73
73
  }, B = async () => {
@@ -75,22 +75,22 @@ const pe = /* @__PURE__ */ T({
75
75
  if (!l.value)
76
76
  try {
77
77
  l.value = !0;
78
- const a = await ((r = d.value) == null ? void 0 : r.validateFields());
79
- await s.api(a), l.value = !1, q.success("操作成功"), f();
78
+ const a = await ((r = u.value) == null ? void 0 : r.validateFields());
79
+ await s.api(a), l.value = !1, E.success("操作成功"), f();
80
80
  } catch {
81
81
  l.value = !1;
82
82
  return;
83
83
  }
84
84
  }, f = () => {
85
- M(!1), c.value = !1, setTimeout(() => {
86
- console.log(c.value);
85
+ T(!1), i.value = !1, setTimeout(() => {
86
+ console.log(i.value);
87
87
  }, 500), m("modalClose");
88
88
  };
89
- return (r, a) => (N(), E("div", null, [
90
- t(e(I), L(s, {
89
+ return (r, a) => (L(), N("div", null, [
90
+ t(e(I), P(s, {
91
91
  width: 600,
92
92
  centered: !0,
93
- open: e(c),
93
+ open: e(i),
94
94
  title: e(o)("ap.workOrderModal.createTickets"),
95
95
  "ok-text": e(o)("ap.workOrderModal.submit"),
96
96
  "cancel-text": e(o)("ap.workOrderModal.cancel"),
@@ -103,20 +103,20 @@ const pe = /* @__PURE__ */ T({
103
103
  onCancel: f
104
104
  }), {
105
105
  default: n(() => [
106
- t(e(i), {
106
+ t(e(c), {
107
107
  ref_key: "formRef",
108
- ref: d,
108
+ ref: u,
109
109
  colon: ""
110
110
  }, {
111
111
  default: n(() => [
112
- t(e(i).FormItem, {
112
+ t(e(c).FormItem, {
113
113
  label: e(o)("ap.workOrderModal.ticketsTitle"),
114
114
  name: "ticketsTitle",
115
115
  rules: [{ required: !0, message: e(o)("ap.workOrderModal.noEmpty") }]
116
116
  }, {
117
117
  default: n(() => [
118
118
  t(e(A), {
119
- placeholder: e(o)("ap.workOrderModal.pleaseEntry"),
119
+ placeholder: e(o)("ap.common.inputText"),
120
120
  maxlength: 50,
121
121
  "show-count": !0
122
122
  }, null, 8, ["placeholder"])
@@ -128,11 +128,11 @@ const pe = /* @__PURE__ */ T({
128
128
  name: "ticketsType",
129
129
  rules: [{ required: !0, message: e(o)("ap.workOrderModal.noEmpty") }],
130
130
  field: {
131
- placeholder: e(o)("ap.workOrderModal.pleaseEntry"),
132
- request: () => u(e(w).TicketsType)
131
+ placeholder: e(o)("ap.common.chooseText"),
132
+ request: () => d(e(b).TicketsType)
133
133
  }
134
134
  }, null, 8, ["label", "rules", "field"]),
135
- t(e(i).FormItem, {
135
+ t(e(c).FormItem, {
136
136
  label: e(o)("ap.workOrderModal.ticketsDetail"),
137
137
  name: "ticketsContent",
138
138
  rules: [{ required: !0, message: e(o)("ap.workOrderModal.noEmpty") }]
@@ -151,10 +151,10 @@ const pe = /* @__PURE__ */ T({
151
151
  name: "ticketsLevel",
152
152
  rules: [{ required: !0, message: e(o)("ap.workOrderModal.noEmpty") }],
153
153
  field: {
154
- request: () => u(e(w).TicketsLevel)
154
+ request: () => d(e(b).TicketsLevel)
155
155
  }
156
156
  }, null, 8, ["label", "rules", "field"]),
157
- t(e(i).FormItem, {
157
+ t(e(c).FormItem, {
158
158
  name: "files",
159
159
  label: e(o)("ap.workOrderModal.fileLabel")
160
160
  }, {
@@ -170,7 +170,7 @@ const pe = /* @__PURE__ */ T({
170
170
  accept: ".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",
171
171
  "max-count": 10,
172
172
  "max-size": 50,
173
- "sub-title": P(U)
173
+ "sub-title": q(U)
174
174
  }, null, 8, ["get-oss-access", "sub-title"])
175
175
  ]),
176
176
  _: 1
@@ -61,8 +61,8 @@ declare function __VLS_template(): {
61
61
  popupClassName: StringConstructor;
62
62
  dropdownClassName: StringConstructor;
63
63
  placement: {
64
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
65
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
64
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
65
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
66
66
  };
67
67
  status: {
68
68
  type: PropType<"" | "error" | "warning">;
@@ -208,7 +208,7 @@ declare function __VLS_template(): {
208
208
  status: "" | "error" | "warning";
209
209
  defaultValue: SelectValue;
210
210
  'onUpdate:value': (val: SelectValue) => void;
211
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
211
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
212
212
  loading: boolean;
213
213
  bordered: boolean;
214
214
  allowClear: boolean;
@@ -272,8 +272,8 @@ declare function __VLS_template(): {
272
272
  popupClassName: StringConstructor;
273
273
  dropdownClassName: StringConstructor;
274
274
  placement: {
275
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
276
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
275
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
276
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
277
277
  };
278
278
  status: {
279
279
  type: PropType<"" | "error" | "warning">;
@@ -419,7 +419,7 @@ declare function __VLS_template(): {
419
419
  status: "" | "error" | "warning";
420
420
  defaultValue: SelectValue;
421
421
  'onUpdate:value': (val: SelectValue) => void;
422
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
422
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
423
423
  loading: boolean;
424
424
  bordered: boolean;
425
425
  allowClear: boolean;
@@ -497,8 +497,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
497
497
  popupClassName: StringConstructor;
498
498
  dropdownClassName: StringConstructor;
499
499
  placement: {
500
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
501
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
500
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
501
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
502
502
  };
503
503
  status: {
504
504
  type: PropType<"" | "error" | "warning">;
@@ -644,7 +644,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
644
644
  status: "" | "error" | "warning";
645
645
  defaultValue: SelectValue;
646
646
  'onUpdate:value': (val: SelectValue) => void;
647
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
647
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
648
648
  loading: boolean;
649
649
  bordered: boolean;
650
650
  allowClear: boolean;
@@ -708,8 +708,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
708
708
  popupClassName: StringConstructor;
709
709
  dropdownClassName: StringConstructor;
710
710
  placement: {
711
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
712
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
711
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
712
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
713
713
  };
714
714
  status: {
715
715
  type: PropType<"" | "error" | "warning">;
@@ -855,7 +855,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
855
855
  status: "" | "error" | "warning";
856
856
  defaultValue: SelectValue;
857
857
  'onUpdate:value': (val: SelectValue) => void;
858
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
858
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
859
859
  loading: boolean;
860
860
  bordered: boolean;
861
861
  allowClear: boolean;
@@ -2649,8 +2649,8 @@ export declare const apTableRenderItemMap: {
2649
2649
  popupClassName: StringConstructor;
2650
2650
  dropdownClassName: StringConstructor;
2651
2651
  placement: {
2652
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
2653
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
2652
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
2653
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
2654
2654
  };
2655
2655
  status: {
2656
2656
  type: PropType<"" | "error" | "warning">;
@@ -2796,7 +2796,7 @@ export declare const apTableRenderItemMap: {
2796
2796
  status: "" | "error" | "warning";
2797
2797
  defaultValue: SelectValue;
2798
2798
  'onUpdate:value': (val: SelectValue) => void;
2799
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
2799
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
2800
2800
  loading: boolean;
2801
2801
  bordered: boolean;
2802
2802
  allowClear: boolean;
@@ -2860,8 +2860,8 @@ export declare const apTableRenderItemMap: {
2860
2860
  popupClassName: StringConstructor;
2861
2861
  dropdownClassName: StringConstructor;
2862
2862
  placement: {
2863
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
2864
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
2863
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
2864
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
2865
2865
  };
2866
2866
  status: {
2867
2867
  type: PropType<"" | "error" | "warning">;
@@ -3007,7 +3007,7 @@ export declare const apTableRenderItemMap: {
3007
3007
  status: "" | "error" | "warning";
3008
3008
  defaultValue: SelectValue;
3009
3009
  'onUpdate:value': (val: SelectValue) => void;
3010
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
3010
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
3011
3011
  loading: boolean;
3012
3012
  bordered: boolean;
3013
3013
  allowClear: boolean;
@@ -264,7 +264,7 @@ declare const ApBatchActionGroup: {
264
264
  };
265
265
  getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
266
266
  transitionName: StringConstructor;
267
- placement: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter">;
267
+ placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
268
268
  overlayClassName: StringConstructor;
269
269
  overlayStyle: {
270
270
  type: PropType<CSSProperties>;
@@ -565,7 +565,7 @@ declare const ApBatchActionGroup: {
565
565
  };
566
566
  getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
567
567
  transitionName: StringConstructor;
568
- placement: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter">;
568
+ placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
569
569
  overlayClassName: StringConstructor;
570
570
  overlayStyle: {
571
571
  type: PropType<CSSProperties>;
@@ -863,7 +863,7 @@ declare const ApBatchActionGroup: {
863
863
  };
864
864
  getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
865
865
  transitionName: StringConstructor;
866
- placement: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter">;
866
+ placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
867
867
  overlayClassName: StringConstructor;
868
868
  overlayStyle: {
869
869
  type: PropType<CSSProperties>;
@@ -87,8 +87,8 @@ declare const ApExtensionSelect: {
87
87
  popupClassName: StringConstructor;
88
88
  dropdownClassName: StringConstructor;
89
89
  placement: {
90
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
91
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
90
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
91
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
92
92
  };
93
93
  status: {
94
94
  type: PropType<"" | "error" | "warning">;
@@ -269,8 +269,8 @@ declare const ApExtensionSelect: {
269
269
  popupClassName: StringConstructor;
270
270
  dropdownClassName: StringConstructor;
271
271
  placement: {
272
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
273
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
272
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
273
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
274
274
  };
275
275
  status: {
276
276
  type: PropType<"" | "error" | "warning">;
@@ -444,8 +444,8 @@ declare const ApExtensionSelect: {
444
444
  popupClassName: StringConstructor;
445
445
  dropdownClassName: StringConstructor;
446
446
  placement: {
447
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
448
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
447
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
448
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
449
449
  };
450
450
  status: {
451
451
  type: PropType<"" | "error" | "warning">;
@@ -623,8 +623,8 @@ declare const ApPopoverSelect: {
623
623
  popupClassName: StringConstructor;
624
624
  dropdownClassName: StringConstructor;
625
625
  placement: {
626
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
627
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
626
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
627
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
628
628
  };
629
629
  status: {
630
630
  type: PropType<"" | "error" | "warning">;
@@ -799,8 +799,8 @@ declare const ApPopoverSelect: {
799
799
  popupClassName: StringConstructor;
800
800
  dropdownClassName: StringConstructor;
801
801
  placement: {
802
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
803
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
802
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
803
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
804
804
  };
805
805
  status: {
806
806
  type: PropType<"" | "error" | "warning">;
@@ -946,7 +946,7 @@ declare const ApPopoverSelect: {
946
946
  status: "" | "error" | "warning";
947
947
  defaultValue: SelectValue;
948
948
  'onUpdate:value': (val: SelectValue) => void;
949
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
949
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
950
950
  loading: boolean;
951
951
  bordered: boolean;
952
952
  allowClear: boolean;
@@ -1010,8 +1010,8 @@ declare const ApPopoverSelect: {
1010
1010
  popupClassName: StringConstructor;
1011
1011
  dropdownClassName: StringConstructor;
1012
1012
  placement: {
1013
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
1014
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1013
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
1014
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
1015
1015
  };
1016
1016
  status: {
1017
1017
  type: PropType<"" | "error" | "warning">;
@@ -1157,7 +1157,7 @@ declare const ApPopoverSelect: {
1157
1157
  status: "" | "error" | "warning";
1158
1158
  defaultValue: SelectValue;
1159
1159
  'onUpdate:value': (val: SelectValue) => void;
1160
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1160
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
1161
1161
  loading: boolean;
1162
1162
  bordered: boolean;
1163
1163
  allowClear: boolean;
@@ -1209,8 +1209,8 @@ declare const ApPopoverSelect: {
1209
1209
  popupClassName: StringConstructor;
1210
1210
  dropdownClassName: StringConstructor;
1211
1211
  placement: {
1212
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
1213
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1212
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
1213
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
1214
1214
  };
1215
1215
  status: {
1216
1216
  type: PropType<"" | "error" | "warning">;
@@ -1385,8 +1385,8 @@ declare const ApPopoverSelect: {
1385
1385
  popupClassName: StringConstructor;
1386
1386
  dropdownClassName: StringConstructor;
1387
1387
  placement: {
1388
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
1389
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
1388
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
1389
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
1390
1390
  };
1391
1391
  status: {
1392
1392
  type: PropType<"" | "error" | "warning">;
@@ -49,8 +49,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
49
49
  popupClassName: StringConstructor;
50
50
  dropdownClassName: StringConstructor;
51
51
  placement: {
52
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
53
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
52
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
53
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
54
54
  };
55
55
  status: {
56
56
  type: PropType<"" | "error" | "warning">;
@@ -196,7 +196,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
196
196
  status: "" | "error" | "warning";
197
197
  defaultValue: SelectValue;
198
198
  'onUpdate:value': (val: SelectValue) => void;
199
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
199
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
200
200
  loading: boolean;
201
201
  bordered: boolean;
202
202
  allowClear: boolean;
@@ -260,8 +260,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
260
260
  popupClassName: StringConstructor;
261
261
  dropdownClassName: StringConstructor;
262
262
  placement: {
263
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
264
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
263
+ type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
264
+ default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
265
265
  };
266
266
  status: {
267
267
  type: PropType<"" | "error" | "warning">;
@@ -407,7 +407,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
407
407
  status: "" | "error" | "warning";
408
408
  defaultValue: SelectValue;
409
409
  'onUpdate:value': (val: SelectValue) => void;
410
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
410
+ placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
411
411
  loading: boolean;
412
412
  bordered: boolean;
413
413
  allowClear: boolean;
@@ -106,7 +106,7 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
106
106
  readonly hideRequiredMark?: boolean | undefined;
107
107
  readonly validateOnRuleChange?: boolean | undefined;
108
108
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
109
- readonly onFieldsChange?: ((changedFields: FieldData[], allFields: ** @type { typeof __VLS_ctx.formRef } */).FieldData[]) => void) | undefined;
109
+ readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
110
110
  readonly onFinish?: ((values: any) => void) | undefined;
111
111
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
112
112
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv"),s=require("../ap-form/index.js");require("./help-message.vue.js");require("../ap-upload/index.js");const i=require("./interfaces.js");require("../config-provider/index.js");require("../hooks/index.js");const _=require("../config-provider/hooks/use-locale.js"),q=require("../config-provider/hooks/use-namespace.js"),M=require("../config-provider/hooks/use-global-config.js"),F=require("../hooks/useControllableValue.js"),N=require("../ap-form/items/select/index.vue.js"),T=require("../ap-form/items/radio/index.vue.js"),B=require("../ap-upload/apUpload.vue.js"),V=require("./help-message.vue2.js"),L=e.defineComponent({__name:"work-order-modal",props:{api:{type:Function},getOssAccess:{},prefixCls:{},visible:{type:Boolean},open:{type:Boolean},confirmLoading:{type:Boolean},title:{},closable:{type:Boolean},closeIcon:{},onOk:{type:Function},onCancel:{type:Function},"onUpdate:visible":{type:Function},"onUpdate:open":{type:Function},onChange:{type:Function},afterClose:{type:Function},centered:{type:Boolean},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean},forceRender:{type:Boolean},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function]},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean},keyboard:{type:Boolean},wrapProps:{},focusTriggerAfterClose:{type:Boolean},modalRender:{type:Function},mousePosition:{}},emits:["update:open","modalClose"],setup(g,{emit:v}){const{t}=_.useLocale(),{b:w}=q.useNamespace("work-order-modal"),p=v,d=e.ref(),a=e.ref(!1),l=g,b=M.useGlobalConfig("api"),{lang:C}=_.useLocale(),x=e.computed(()=>i.langMap[C.value]??"zh_CN"),{value:c,updateValue:h}=F.useControllableValue(l,p,{valuePropName:"open",defaultValue:!0}),f=async o=>{var n,k;const r=await((k=(n=b.value)==null?void 0:n.select)==null?void 0:k.call(n,{dictCode:o,locale:x.value}));return r==null?void 0:r.map(y=>({label:y.itemText,value:y.itemValue}))},O=async()=>{var o;if(!a.value)try{a.value=!0;const r=await((o=d.value)==null?void 0:o.validateFields());await l.api(r),a.value=!1,u.message.success("操作成功"),m()}catch{a.value=!1;return}},m=()=>{h(!1),c.value=!1,setTimeout(()=>{console.log(c.value)},500),p("modalClose")};return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(u.Modal),e.mergeProps(l,{width:600,centered:!0,open:e.unref(c),title:e.unref(t)("ap.workOrderModal.createTickets"),"ok-text":e.unref(t)("ap.workOrderModal.submit"),"cancel-text":e.unref(t)("ap.workOrderModal.cancel"),mask:!0,"mask-closable":!0,"wrap-class-name":e.unref(w)(),closable:!0,"confirm-loading":a.value,onOk:O,onCancel:m}),{default:e.withCtx(()=>[e.createVNode(e.unref(s.ApForm),{ref_key:"formRef",ref:d,colon:""},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ApForm).FormItem,{label:e.unref(t)("ap.workOrderModal.ticketsTitle"),name:"ticketsTitle",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}]},{default:e.withCtx(()=>[e.createVNode(e.unref(u.Input),{placeholder:e.unref(t)("ap.workOrderModal.pleaseEntry"),maxlength:50,"show-count":!0},null,8,["placeholder"])]),_:1},8,["label","rules"]),e.createVNode(e.unref(N.default),{label:e.unref(t)("ap.workOrderModal.ticketsType"),name:"ticketsType",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}],field:{placeholder:e.unref(t)("ap.workOrderModal.pleaseEntry"),request:()=>f(e.unref(i.DictCode).TicketsType)}},null,8,["label","rules","field"]),e.createVNode(e.unref(s.ApForm).FormItem,{label:e.unref(t)("ap.workOrderModal.ticketsDetail"),name:"ticketsContent",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}]},{default:e.withCtx(()=>[e.createVNode(e.unref(u.Textarea),{placeholder:e.unref(t)("ap.workOrderModal.pleaseEntry"),maxlength:300,"show-count":!1},null,8,["placeholder"])]),_:1},8,["label","rules"]),e.createVNode(e.unref(T.default),{label:e.unref(t)("ap.workOrderModal.ticketsLevel"),name:"ticketsLevel",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}],field:{request:()=>f(e.unref(i.DictCode).TicketsLevel)}},null,8,["label","rules","field"]),e.createVNode(e.unref(s.ApForm).FormItem,{name:"files",label:e.unref(t)("ap.workOrderModal.fileLabel")},{default:e.withCtx(()=>[e.createVNode(e.unref(B.default),{"dir-name":"WorkOrder","get-oss-access":l.getOssAccess,type:"multipleFile","need-name":{pathKey:"filePath",nameKey:"fileName"},accept:".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx","max-count":10,"max-size":50,"sub-title":e.h(V.default)},null,8,["get-oss-access","sub-title"])]),_:1},8,["label"])]),_:1},512)]),_:1},16,["open","title","ok-text","cancel-text","wrap-class-name","confirm-loading"])]))}});exports.default=L;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv"),s=require("../ap-form/index.js");require("./help-message.vue.js");require("../ap-upload/index.js");const i=require("./interfaces.js");require("../config-provider/index.js");require("../hooks/index.js");const _=require("../config-provider/hooks/use-locale.js"),O=require("../config-provider/hooks/use-namespace.js"),T=require("../config-provider/hooks/use-global-config.js"),F=require("../hooks/useControllableValue.js"),M=require("../ap-form/items/select/index.vue.js"),N=require("../ap-form/items/radio/index.vue.js"),B=require("../ap-upload/apUpload.vue.js"),V=require("./help-message.vue2.js"),L=e.defineComponent({__name:"work-order-modal",props:{api:{type:Function},getOssAccess:{},prefixCls:{},visible:{type:Boolean},open:{type:Boolean},confirmLoading:{type:Boolean},title:{},closable:{type:Boolean},closeIcon:{},onOk:{type:Function},onCancel:{type:Function},"onUpdate:visible":{type:Function},"onUpdate:open":{type:Function},onChange:{type:Function},afterClose:{type:Function},centered:{type:Boolean},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean},forceRender:{type:Boolean},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function]},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean},keyboard:{type:Boolean},wrapProps:{},focusTriggerAfterClose:{type:Boolean},modalRender:{type:Function},mousePosition:{}},emits:["update:open","modalClose"],setup(g,{emit:v}){const{t}=_.useLocale(),{b}=O.useNamespace("work-order-modal"),p=v,d=e.ref(),a=e.ref(!1),l=g,w=T.useGlobalConfig("api"),{lang:x}=_.useLocale(),C=e.computed(()=>i.langMap[x.value]??"zh_CN"),{value:c,updateValue:h}=F.useControllableValue(l,p,{valuePropName:"open",defaultValue:!0}),f=async r=>{var n,k;const o=await((k=(n=w.value)==null?void 0:n.select)==null?void 0:k.call(n,{dictCode:r,locale:C.value}));return o==null?void 0:o.map(y=>({label:y.itemText,value:y.itemValue}))},q=async()=>{var r;if(!a.value)try{a.value=!0;const o=await((r=d.value)==null?void 0:r.validateFields());await l.api(o),a.value=!1,u.message.success("操作成功"),m()}catch{a.value=!1;return}},m=()=>{h(!1),c.value=!1,setTimeout(()=>{console.log(c.value)},500),p("modalClose")};return(r,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(u.Modal),e.mergeProps(l,{width:600,centered:!0,open:e.unref(c),title:e.unref(t)("ap.workOrderModal.createTickets"),"ok-text":e.unref(t)("ap.workOrderModal.submit"),"cancel-text":e.unref(t)("ap.workOrderModal.cancel"),mask:!0,"mask-closable":!0,"wrap-class-name":e.unref(b)(),closable:!0,"confirm-loading":a.value,onOk:q,onCancel:m}),{default:e.withCtx(()=>[e.createVNode(e.unref(s.ApForm),{ref_key:"formRef",ref:d,colon:""},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ApForm).FormItem,{label:e.unref(t)("ap.workOrderModal.ticketsTitle"),name:"ticketsTitle",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}]},{default:e.withCtx(()=>[e.createVNode(e.unref(u.Input),{placeholder:e.unref(t)("ap.common.inputText"),maxlength:50,"show-count":!0},null,8,["placeholder"])]),_:1},8,["label","rules"]),e.createVNode(e.unref(M.default),{label:e.unref(t)("ap.workOrderModal.ticketsType"),name:"ticketsType",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}],field:{placeholder:e.unref(t)("ap.common.chooseText"),request:()=>f(e.unref(i.DictCode).TicketsType)}},null,8,["label","rules","field"]),e.createVNode(e.unref(s.ApForm).FormItem,{label:e.unref(t)("ap.workOrderModal.ticketsDetail"),name:"ticketsContent",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}]},{default:e.withCtx(()=>[e.createVNode(e.unref(u.Textarea),{placeholder:e.unref(t)("ap.workOrderModal.pleaseEntry"),maxlength:300,"show-count":!1},null,8,["placeholder"])]),_:1},8,["label","rules"]),e.createVNode(e.unref(N.default),{label:e.unref(t)("ap.workOrderModal.ticketsLevel"),name:"ticketsLevel",rules:[{required:!0,message:e.unref(t)("ap.workOrderModal.noEmpty")}],field:{request:()=>f(e.unref(i.DictCode).TicketsLevel)}},null,8,["label","rules","field"]),e.createVNode(e.unref(s.ApForm).FormItem,{name:"files",label:e.unref(t)("ap.workOrderModal.fileLabel")},{default:e.withCtx(()=>[e.createVNode(e.unref(B.default),{"dir-name":"WorkOrder","get-oss-access":l.getOssAccess,type:"multipleFile","need-name":{pathKey:"filePath",nameKey:"fileName"},accept:".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx","max-count":10,"max-size":50,"sub-title":e.h(V.default)},null,8,["get-oss-access","sub-title"])]),_:1},8,["label"])]),_:1},512)]),_:1},16,["open","title","ok-text","cancel-text","wrap-class-name","confirm-loading"])]))}});exports.default=L;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -4,7 +4,7 @@
4
4
  display: inline-block;
5
5
  max-width: 100%;
6
6
  }
7
- .aplus-tag-inner-wrapper {
7
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper {
8
8
  display: inline-block;
9
9
  border-radius: 4px;
10
10
  border: 1px solid var(--tag-main-color);
@@ -12,30 +12,30 @@
12
12
  box-sizing: border-box;
13
13
  color: var(--tag-main-color);
14
14
  }
15
- .aplus-tag-inner-wrapper--large {
15
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--large {
16
16
  padding: 0 8px;
17
17
  line-height: 26px;
18
18
  height: 28px;
19
19
  font-size: 14px;
20
20
  }
21
- .aplus-tag-inner-wrapper--middle {
21
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--middle {
22
22
  line-height: 22px;
23
23
  padding: 0 8px;
24
24
  height: 24px;
25
25
  font-size: 12px;
26
26
  }
27
- .aplus-tag-inner-wrapper--small {
27
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--small {
28
28
  padding: 0 6px;
29
29
  line-height: 19px;
30
30
  height: 20px;
31
31
  font-size: 12px;
32
32
  }
33
- .aplus-tag-inner-wrapper--disabled {
33
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--disabled {
34
34
  border: 1px solid #DEE4ED;
35
35
  background-color: #526a900f;
36
36
  color: #8896b0;
37
37
  }
38
- .aplus-tag-inner-wrapper--disabled-admin {
38
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--disabled-admin {
39
39
  border: 1px solid #d9d9d9;
40
40
  background-color: #9999990f;
41
41
  color: #999;
@@ -8,14 +8,13 @@
8
8
  max-width: 100%;
9
9
  }
10
10
 
11
- &-inner-wrapper {
11
+ &-wrapper &-inner-wrapper {
12
12
  display: inline-block;
13
13
  border-radius: 4px;
14
14
  border: 1px solid var(--tag-main-color);
15
15
  background-color: var(--tag-main-color-opacity);
16
16
  box-sizing: border-box;
17
17
  color: var(--tag-main-color);
18
-
19
18
  &--large {
20
19
  padding: 0 8px;
21
20
  line-height: 26px;
package/theme/index.css CHANGED
@@ -1185,7 +1185,7 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
1185
1185
  display: inline-block;
1186
1186
  max-width: 100%;
1187
1187
  }
1188
- .aplus-tag-inner-wrapper {
1188
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper {
1189
1189
  display: inline-block;
1190
1190
  border-radius: 4px;
1191
1191
  border: 1px solid var(--tag-main-color);
@@ -1193,30 +1193,30 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
1193
1193
  box-sizing: border-box;
1194
1194
  color: var(--tag-main-color);
1195
1195
  }
1196
- .aplus-tag-inner-wrapper--large {
1196
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--large {
1197
1197
  padding: 0 8px;
1198
1198
  line-height: 26px;
1199
1199
  height: 28px;
1200
1200
  font-size: 14px;
1201
1201
  }
1202
- .aplus-tag-inner-wrapper--middle {
1202
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--middle {
1203
1203
  line-height: 22px;
1204
1204
  padding: 0 8px;
1205
1205
  height: 24px;
1206
1206
  font-size: 12px;
1207
1207
  }
1208
- .aplus-tag-inner-wrapper--small {
1208
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--small {
1209
1209
  padding: 0 6px;
1210
1210
  line-height: 19px;
1211
1211
  height: 20px;
1212
1212
  font-size: 12px;
1213
1213
  }
1214
- .aplus-tag-inner-wrapper--disabled {
1214
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--disabled {
1215
1215
  border: 1px solid #DEE4ED;
1216
1216
  background-color: #526a900f;
1217
1217
  color: #8896b0;
1218
1218
  }
1219
- .aplus-tag-inner-wrapper--disabled-admin {
1219
+ .aplus-tag-wrapper .aplus-tag-inner-wrapper--disabled-admin {
1220
1220
  border: 1px solid #d9d9d9;
1221
1221
  background-color: #9999990f;
1222
1222
  color: #999;