xyvcard-asset 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/README.md +52 -0
  2. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  3. package/dist/common-kbgEWG-E.mjs +24 -0
  4. package/dist/edit-Bo9bnbUP.mjs +492 -0
  5. package/dist/edit-CE3u81Q0.mjs +4 -0
  6. package/dist/edit-DJFxVmvv.mjs +624 -0
  7. package/dist/edit-qp_2xtTZ.mjs +242 -0
  8. package/dist/edit-zFZfd8e1.mjs +4 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs +401 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +322 -0
  11. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +1 -0
  12. package/dist/favicon.ico +0 -0
  13. package/dist/index-Bf5U4Ucl.mjs +369 -0
  14. package/dist/index-Bh2imlN_.mjs +149 -0
  15. package/dist/index-CHNiaFZk.mjs +291 -0
  16. package/dist/index-CmlP_Rro.mjs +332 -0
  17. package/dist/index-Cqw_E8lr.mjs +1269 -0
  18. package/dist/index-DA_FS24d.mjs +146 -0
  19. package/dist/index-DKmGNvQl.mjs +370 -0
  20. package/dist/index-DLxpE9s5.mjs +305 -0
  21. package/dist/index-DWaL87j5.mjs +89 -0
  22. package/dist/index-jOnQLJaB.mjs +416 -0
  23. package/dist/index-pyyjj1xa.mjs +187 -0
  24. package/dist/index.mjs +144 -0
  25. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +37 -0
  26. package/dist/style.css +1 -0
  27. package/dts/App.vue.d.ts +2 -0
  28. package/dts/api/asset/asset-asset/index.d.ts +20 -0
  29. package/dts/api/asset/asset-asset/types.d.ts +93 -0
  30. package/dts/api/asset/asset-service-appt-member/index.d.ts +20 -0
  31. package/dts/api/asset/asset-service-appt-member/types.d.ts +71 -0
  32. package/dts/api/asset/asset-service-appt-record/index.d.ts +20 -0
  33. package/dts/api/asset/asset-service-appt-record/types.d.ts +98 -0
  34. package/dts/api/asset/asset-site/index.d.ts +15 -0
  35. package/dts/api/asset/asset-site/types.d.ts +81 -0
  36. package/dts/api/asset/asset-site-service/index.d.ts +14 -0
  37. package/dts/api/asset/asset-site-service/types.d.ts +80 -0
  38. package/dts/api/dict.d.ts +22 -0
  39. package/dts/api/index.d.ts +14 -0
  40. package/dts/api/org/union-org/index.d.ts +14 -0
  41. package/dts/api/org/union-org/types.d.ts +49 -0
  42. package/dts/components/EnumRadio/index.vue.d.ts +18 -0
  43. package/dts/components/EnumSelect/index.vue.d.ts +18 -0
  44. package/dts/components/TMaps/index.vue.d.ts +20 -0
  45. package/dts/components/Upload/ImageUpload.vue.d.ts +38 -0
  46. package/dts/components/Upload/MultiUpload.vue.d.ts +24 -0
  47. package/dts/constant.d.ts +16 -0
  48. package/dts/index.d.ts +4 -0
  49. package/dts/lang/asset/en.d.ts +2 -0
  50. package/dts/lang/asset/zh-cn.d.ts +91 -0
  51. package/dts/lang/index.d.ts +1 -0
  52. package/dts/main.d.ts +4 -0
  53. package/dts/permission.d.ts +1 -0
  54. package/dts/router/page.d.ts +2 -0
  55. package/dts/src/App.vue.d.ts +2 -0
  56. package/dts/src/api/asset/asset-asset/index.d.ts +20 -0
  57. package/dts/src/api/asset/asset-asset/types.d.ts +93 -0
  58. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +20 -0
  59. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +71 -0
  60. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +20 -0
  61. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +98 -0
  62. package/dts/src/api/asset/asset-site/index.d.ts +15 -0
  63. package/dts/src/api/asset/asset-site/types.d.ts +81 -0
  64. package/dts/src/api/asset/asset-site-service/index.d.ts +14 -0
  65. package/dts/src/api/asset/asset-site-service/types.d.ts +80 -0
  66. package/dts/src/api/dict.d.ts +22 -0
  67. package/dts/src/api/index.d.ts +14 -0
  68. package/dts/src/api/org/union-org/index.d.ts +14 -0
  69. package/dts/src/api/org/union-org/types.d.ts +49 -0
  70. package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
  71. package/dts/src/components/EnumSelect/index.vue.d.ts +18 -0
  72. package/dts/src/components/Upload/ImageUpload.vue.d.ts +38 -0
  73. package/dts/src/components/Upload/MultiUpload.vue.d.ts +24 -0
  74. package/dts/src/constant.d.ts +16 -0
  75. package/dts/src/index.d.ts +4 -0
  76. package/dts/src/lang/asset/en.d.ts +2 -0
  77. package/dts/src/lang/asset/zh-cn.d.ts +91 -0
  78. package/dts/src/lang/index.d.ts +1 -0
  79. package/dts/src/main.d.ts +4 -0
  80. package/dts/src/permission.d.ts +1 -0
  81. package/dts/src/router/page.d.ts +4 -0
  82. package/dts/src/utils/common.d.ts +51 -0
  83. package/dts/src/utils/index.d.ts +24 -0
  84. package/dts/src/views/asset/asset-asset/edit.vue.d.ts +22 -0
  85. package/dts/src/views/asset/asset-asset/index.vue.d.ts +2 -0
  86. package/dts/src/views/asset/asset-service-appt-member/edit.vue.d.ts +22 -0
  87. package/dts/src/views/asset/asset-service-appt-member/index.vue.d.ts +2 -0
  88. package/dts/src/views/asset/asset-service-appt-record/edit.vue.d.ts +22 -0
  89. package/dts/src/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
  90. package/dts/src/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
  91. package/dts/src/views/asset/asset-site/edit.vue.d.ts +22 -0
  92. package/dts/src/views/asset/asset-site/index.vue.d.ts +2 -0
  93. package/dts/src/views/asset/asset-site/info/index.vue.d.ts +2 -0
  94. package/dts/src/views/asset/asset-site-service/edit.vue.d.ts +22 -0
  95. package/dts/src/views/asset/asset-site-service/index.vue.d.ts +2 -0
  96. package/dts/tsconfig.tsbuildinfo +1 -0
  97. package/dts/utils/common.d.ts +51 -0
  98. package/dts/utils/index.d.ts +24 -0
  99. package/dts/views/asset/asset-asset/edit.vue.d.ts +22 -0
  100. package/dts/views/asset/asset-asset/index.vue.d.ts +2 -0
  101. package/dts/views/asset/asset-service-appt-member/edit.vue.d.ts +22 -0
  102. package/dts/views/asset/asset-service-appt-member/index.vue.d.ts +2 -0
  103. package/dts/views/asset/asset-service-appt-record/edit.vue.d.ts +22 -0
  104. package/dts/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
  105. package/dts/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
  106. package/dts/views/asset/asset-site/edit.vue.d.ts +22 -0
  107. package/dts/views/asset/asset-site/index.vue.d.ts +2 -0
  108. package/dts/views/asset/asset-site/info/index.vue.d.ts +2 -0
  109. package/dts/views/asset/asset-site-service/edit.vue.d.ts +22 -0
  110. package/dts/views/asset/asset-site-service/index.vue.d.ts +2 -0
  111. package/package.json +60 -0
@@ -0,0 +1,242 @@
1
+ import { _ as S } from "./index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs";
2
+ import { defineComponent as F, mergeModels as V, ref as y, reactive as A, useModel as K, resolveComponent as p, openBlock as O, createBlock as D, withCtx as l, createElementVNode as E, createVNode as e, createTextVNode as I, toDisplayString as w, unref as m } from "vue";
3
+ import { ElMessage as $ } from "element-plus";
4
+ import { useI18n as R } from "vue-i18n";
5
+ import { s as c } from "./index-Bh2imlN_.mjs";
6
+ import "./edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs";
7
+ import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
+ const G = { class: "dialog-footer" }, H = /* @__PURE__ */ F({
9
+ __name: "edit",
10
+ props: /* @__PURE__ */ V({
11
+ entityKey: {
12
+ type: Object,
13
+ default: () => {
14
+ }
15
+ }
16
+ }, {
17
+ modelValue: { type: Boolean },
18
+ modelModifiers: {}
19
+ }),
20
+ emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
21
+ setup(f, { emit: N }) {
22
+ const { t: u } = R(), b = y();
23
+ let o = A({
24
+ requestId: Math.random() * 10 + "",
25
+ updateMask: ""
26
+ });
27
+ const k = A({
28
+ recordId: [
29
+ {
30
+ required: !0,
31
+ message: u("serviceApptMember.recordId"),
32
+ trigger: "change"
33
+ }
34
+ ],
35
+ memberId: [
36
+ {
37
+ required: !0,
38
+ message: u("serviceApptMember.memberId"),
39
+ trigger: "change"
40
+ }
41
+ ],
42
+ realName: [
43
+ {
44
+ required: !0,
45
+ message: u("serviceApptMember.realName"),
46
+ trigger: "change"
47
+ }
48
+ ],
49
+ status: [
50
+ {
51
+ required: !0,
52
+ message: u("serviceApptMember.status"),
53
+ trigger: "change"
54
+ }
55
+ ],
56
+ statusTime: [
57
+ {
58
+ required: !0,
59
+ message: u("serviceApptMember.statusTime"),
60
+ trigger: "change"
61
+ }
62
+ ]
63
+ }), d = K(f, "modelValue"), g = f, v = N, T = Object.keys(g.entityKey), _ = y(T.length >= 1);
64
+ _.value && c.findById(g.entityKey).then(({ data: t }) => {
65
+ Object.assign(o, t);
66
+ });
67
+ const U = async () => {
68
+ var t;
69
+ await ((t = b.value) == null ? void 0 : t.validate((a) => {
70
+ a && (_.value ? c.update(o).then((r) => {
71
+ console.log(r), r.status === 200 && ($({
72
+ message: u("common.submitSuccess"),
73
+ type: "success"
74
+ }), d.value && (d.value = !1), v("refresh", r.status === 200));
75
+ }) : c.create(o).then((r) => {
76
+ console.log(r), r.status === 200 && ($({
77
+ message: u("common.submitSuccess"),
78
+ type: "success"
79
+ }), d.value && (d.value = !1), v("refresh", r.status === 200));
80
+ }));
81
+ }));
82
+ };
83
+ function h() {
84
+ d.value && (d.value = !1);
85
+ }
86
+ return (t, a) => {
87
+ const r = p("el-input"), n = p("el-form-item"), i = p("el-col"), q = S, C = p("el-row"), j = p("el-form"), M = p("el-button"), B = p("el-dialog");
88
+ return O(), D(B, {
89
+ modelValue: d.value,
90
+ "onUpdate:modelValue": a[5] || (a[5] = (s) => d.value = s),
91
+ onClose: h
92
+ }, {
93
+ footer: l(() => [
94
+ E("div", G, [
95
+ e(M, { onClick: h }, {
96
+ default: l(() => [
97
+ I(w(t.$t("common.cancel")), 1)
98
+ ]),
99
+ _: 1
100
+ }),
101
+ e(M, {
102
+ type: "primary",
103
+ onClick: U
104
+ }, {
105
+ default: l(() => [
106
+ I(w(t.$t("common.confirm")), 1)
107
+ ]),
108
+ _: 1
109
+ })
110
+ ])
111
+ ]),
112
+ default: l(() => [
113
+ e(j, {
114
+ ref_key: "serviceApptMemberFormRef",
115
+ ref: b,
116
+ model: m(o),
117
+ "label-width": "120px",
118
+ rules: k
119
+ }, {
120
+ default: l(() => [
121
+ e(C, null, {
122
+ default: l(() => [
123
+ e(i, { span: 12 }, {
124
+ default: l(() => [
125
+ e(n, {
126
+ label: t.$t("serviceApptMember.recordId"),
127
+ prop: "recordId"
128
+ }, {
129
+ default: l(() => [
130
+ e(r, {
131
+ modelValue: m(o).recordId,
132
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => m(o).recordId = s),
133
+ placeholder: t.$t("serviceApptMember.recordId"),
134
+ maxlength: "8",
135
+ "show-word-limit": "",
136
+ clearable: ""
137
+ }, null, 8, ["modelValue", "placeholder"])
138
+ ]),
139
+ _: 1
140
+ }, 8, ["label"])
141
+ ]),
142
+ _: 1
143
+ }),
144
+ e(i, { span: 12 }, {
145
+ default: l(() => [
146
+ e(n, {
147
+ label: t.$t("serviceApptMember.memberId"),
148
+ prop: "memberId"
149
+ }, {
150
+ default: l(() => [
151
+ e(r, {
152
+ modelValue: m(o).memberId,
153
+ "onUpdate:modelValue": a[1] || (a[1] = (s) => m(o).memberId = s),
154
+ placeholder: t.$t("serviceApptMember.memberId"),
155
+ maxlength: "8",
156
+ "show-word-limit": "",
157
+ clearable: ""
158
+ }, null, 8, ["modelValue", "placeholder"])
159
+ ]),
160
+ _: 1
161
+ }, 8, ["label"])
162
+ ]),
163
+ _: 1
164
+ }),
165
+ e(i, { span: 12 }, {
166
+ default: l(() => [
167
+ e(n, {
168
+ label: t.$t("serviceApptMember.realName"),
169
+ prop: "realName"
170
+ }, {
171
+ default: l(() => [
172
+ e(r, {
173
+ modelValue: m(o).realName,
174
+ "onUpdate:modelValue": a[2] || (a[2] = (s) => m(o).realName = s),
175
+ placeholder: t.$t("serviceApptMember.realName"),
176
+ maxlength: "15",
177
+ "show-word-limit": "",
178
+ clearable: ""
179
+ }, null, 8, ["modelValue", "placeholder"])
180
+ ]),
181
+ _: 1
182
+ }, 8, ["label"])
183
+ ]),
184
+ _: 1
185
+ }),
186
+ e(i, { span: 12 }, {
187
+ default: l(() => [
188
+ e(n, {
189
+ label: t.$t("serviceApptMember.status"),
190
+ prop: "status"
191
+ }, {
192
+ default: l(() => [
193
+ e(q, {
194
+ modelValue: m(o).status,
195
+ "onUpdate:modelValue": a[3] || (a[3] = (s) => m(o).status = s),
196
+ placeholder: t.$t("serviceApptMember.status"),
197
+ "enum-type": "jmash.rbac.protobuf.UserStatus",
198
+ clearable: "",
199
+ style: { width: "203px" }
200
+ }, null, 8, ["modelValue", "placeholder"])
201
+ ]),
202
+ _: 1
203
+ }, 8, ["label"])
204
+ ]),
205
+ _: 1
206
+ }),
207
+ e(i, { span: 12 }, {
208
+ default: l(() => [
209
+ e(n, {
210
+ label: t.$t("serviceApptMember.statusTime"),
211
+ prop: "statusTime"
212
+ }, {
213
+ default: l(() => [
214
+ e(r, {
215
+ modelValue: m(o).statusTime,
216
+ "onUpdate:modelValue": a[4] || (a[4] = (s) => m(o).statusTime = s),
217
+ placeholder: t.$t("serviceApptMember.statusTime"),
218
+ maxlength: "9",
219
+ "show-word-limit": "",
220
+ clearable: ""
221
+ }, null, 8, ["modelValue", "placeholder"])
222
+ ]),
223
+ _: 1
224
+ }, 8, ["label"])
225
+ ]),
226
+ _: 1
227
+ })
228
+ ]),
229
+ _: 1
230
+ })
231
+ ]),
232
+ _: 1
233
+ }, 8, ["model", "rules"])
234
+ ]),
235
+ _: 1
236
+ }, 8, ["modelValue"]);
237
+ };
238
+ }
239
+ }), Z = /* @__PURE__ */ z(H, [["__scopeId", "data-v-198fdb2f"]]);
240
+ export {
241
+ Z as default
242
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,401 @@
1
+ import { _ as ee } from "./index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs";
2
+ import { defineComponent as le, mergeModels as U, ref as y, reactive as w, useModel as te, resolveComponent as s, openBlock as f, createBlock as P, withCtx as o, createElementVNode as ae, createVNode as e, createTextVNode as g, toDisplayString as B, unref as r, createElementBlock as _, Fragment as z, renderList as M } from "vue";
3
+ import { D as p, a as S, S as oe } from "./index-DLxpE9s5.mjs";
4
+ import { ElMessage as h } from "element-plus";
5
+ import { useI18n as ie } from "vue-i18n";
6
+ import { r as O } from "./common-kbgEWG-E.mjs";
7
+ const re = { class: "dialog-footer" }, pe = /* @__PURE__ */ le({
8
+ __name: "edit",
9
+ props: /* @__PURE__ */ U({
10
+ entityKey: {
11
+ type: Object,
12
+ default: () => {
13
+ }
14
+ }
15
+ }, {
16
+ modelValue: { type: Boolean },
17
+ modelModifiers: {}
18
+ }),
19
+ emits: /* @__PURE__ */ U(["refresh"], ["update:modelValue"]),
20
+ setup(I, { emit: L }) {
21
+ const { t: m } = ie();
22
+ p.unionOrgBizLayDict.useValues(), p.managerDict.useValues(), p.serviceNameDict.useValues();
23
+ const $ = y();
24
+ let t = w({
25
+ requestId: Math.random() * 10 + "",
26
+ updateMask: "siteId,serviceName,minDay,maxDay,limitPerson,status,note",
27
+ limitInfo: [
28
+ {
29
+ startTime: "",
30
+ endTime: "",
31
+ limitPerson: 1
32
+ }
33
+ ]
34
+ });
35
+ const E = w({
36
+ orgId: [
37
+ {
38
+ required: !0,
39
+ message: m("siteService.orgIdRequired"),
40
+ trigger: "change"
41
+ }
42
+ ],
43
+ siteId: [
44
+ {
45
+ required: !0,
46
+ message: m("siteService.siteIdRequired"),
47
+ trigger: "change"
48
+ }
49
+ ],
50
+ serviceName: [
51
+ {
52
+ required: !0,
53
+ message: m("siteService.serviceNameRequired"),
54
+ trigger: "change"
55
+ }
56
+ ],
57
+ limitPerson: [
58
+ {
59
+ required: !0,
60
+ message: m("siteService.limitPerson"),
61
+ trigger: "blur"
62
+ }
63
+ ],
64
+ status: [
65
+ {
66
+ required: !0,
67
+ message: m("siteService.statusRequired"),
68
+ trigger: "change"
69
+ }
70
+ ],
71
+ note: [
72
+ {
73
+ message: m("siteService.note"),
74
+ trigger: "change"
75
+ }
76
+ ]
77
+ }), k = y();
78
+ function F(l) {
79
+ t.siteId = "";
80
+ const a = new oe({ orgId: l });
81
+ a.useValues(), k.value = a.values, console.log(a.values, " siteDict.values");
82
+ }
83
+ const c = te(I, "modelValue"), D = I, q = L, j = Object.keys(D.entityKey), R = y(j.length >= 1);
84
+ R.value && S.findById(D.entityKey).then(({ data: l }) => {
85
+ Object.assign(t, l);
86
+ });
87
+ const K = async () => {
88
+ var l;
89
+ await ((l = $.value) == null ? void 0 : l.validate((a) => {
90
+ a && (R.value ? S.update(t).then((n) => {
91
+ console.log(n), n.status === 200 && (h({
92
+ message: m("common.submitSuccess"),
93
+ type: "success"
94
+ }), c.value && (c.value = !1), q("refresh", n.status === 200));
95
+ }) : S.create(t).then((n) => {
96
+ console.log(n), n.status === 200 && (h({
97
+ message: m("common.submitSuccess"),
98
+ type: "success"
99
+ }), c.value && (c.value = !1), q("refresh", n.status === 200));
100
+ }));
101
+ }));
102
+ };
103
+ function A(l, a) {
104
+ t.limitInfo[a].startTime = O(l[0]), t.limitInfo[a].endTime = O(l[1]);
105
+ }
106
+ function G() {
107
+ t.limitInfo.push({
108
+ startTime: "",
109
+ endTime: "",
110
+ limitPerson: 1
111
+ });
112
+ }
113
+ function H(l) {
114
+ if (t.limitInfo.length === 1) {
115
+ h({
116
+ message: "最少保留一个时间段",
117
+ type: "success"
118
+ });
119
+ return;
120
+ }
121
+ t.limitInfo.splice(l, 1);
122
+ }
123
+ function C() {
124
+ c.value && (c.value = !1);
125
+ }
126
+ return (l, a) => {
127
+ const n = s("el-tree-select"), d = s("el-form-item"), u = s("el-col"), J = s("el-option"), Q = s("el-select"), N = s("el-input-number"), T = s("el-input"), W = ee, X = s("el-time-picker"), v = s("el-button"), Y = s("el-row"), Z = s("el-form"), x = s("el-dialog");
128
+ return f(), P(x, {
129
+ modelValue: c.value,
130
+ "onUpdate:modelValue": a[9] || (a[9] = (i) => c.value = i),
131
+ onClose: C
132
+ }, {
133
+ footer: o(() => [
134
+ ae("div", re, [
135
+ e(v, { onClick: C }, {
136
+ default: o(() => [
137
+ g(B(l.$t("common.cancel")), 1)
138
+ ]),
139
+ _: 1
140
+ }),
141
+ e(v, {
142
+ type: "primary",
143
+ onClick: K
144
+ }, {
145
+ default: o(() => [
146
+ g(B(l.$t("common.confirm")), 1)
147
+ ]),
148
+ _: 1
149
+ })
150
+ ])
151
+ ]),
152
+ default: o(() => [
153
+ e(Z, {
154
+ ref_key: "siteServiceFormRef",
155
+ ref: $,
156
+ model: r(t),
157
+ "label-width": "120px",
158
+ rules: E
159
+ }, {
160
+ default: o(() => [
161
+ e(Y, null, {
162
+ default: o(() => [
163
+ e(u, { span: 12 }, {
164
+ default: o(() => [
165
+ e(d, {
166
+ label: l.$t("siteService.orgId"),
167
+ prop: "orgId"
168
+ }, {
169
+ default: o(() => [
170
+ e(n, {
171
+ modelValue: r(t).orgId,
172
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => r(t).orgId = i),
173
+ data: r(p).unionOrgBizLayDict.values,
174
+ filterable: "",
175
+ "check-strictly": "",
176
+ "render-after-expand": !1,
177
+ placeholder: l.$t("siteService.orgIdRequired"),
178
+ onChange: F
179
+ }, null, 8, ["modelValue", "data", "placeholder"])
180
+ ]),
181
+ _: 1
182
+ }, 8, ["label"])
183
+ ]),
184
+ _: 1
185
+ }),
186
+ e(u, { span: 12 }, {
187
+ default: o(() => [
188
+ e(d, {
189
+ label: l.$t("siteService.siteId"),
190
+ prop: "siteId"
191
+ }, {
192
+ default: o(() => [
193
+ e(Q, {
194
+ modelValue: r(t).siteId,
195
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => r(t).siteId = i),
196
+ disabled: !r(t).orgId,
197
+ placeholder: l.$t("siteService.siteIdRequired"),
198
+ clearable: ""
199
+ }, {
200
+ default: o(() => [
201
+ (f(!0), _(z, null, M(k.value, (i) => (f(), P(J, {
202
+ key: i.key,
203
+ label: i.value,
204
+ value: i.key
205
+ }, null, 8, ["label", "value"]))), 128))
206
+ ]),
207
+ _: 1
208
+ }, 8, ["modelValue", "disabled", "placeholder"])
209
+ ]),
210
+ _: 1
211
+ }, 8, ["label"])
212
+ ]),
213
+ _: 1
214
+ }),
215
+ e(u, { span: 12 }, {
216
+ default: o(() => [
217
+ e(d, {
218
+ label: l.$t("siteService.serviceName"),
219
+ prop: "serviceName"
220
+ }, {
221
+ default: o(() => [
222
+ e(n, {
223
+ modelValue: r(t).serviceName,
224
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => r(t).serviceName = i),
225
+ data: r(p).serviceNameDict.values,
226
+ filterable: "",
227
+ "check-strictly": "",
228
+ "render-after-expand": !1,
229
+ placeholder: l.$t("siteService.serviceNameRequired")
230
+ }, null, 8, ["modelValue", "data", "placeholder"])
231
+ ]),
232
+ _: 1
233
+ }, 8, ["label"])
234
+ ]),
235
+ _: 1
236
+ }),
237
+ e(u, { span: 12 }, {
238
+ default: o(() => [
239
+ e(d, {
240
+ label: l.$t("siteService.day"),
241
+ prop: "day"
242
+ }, {
243
+ default: o(() => [
244
+ e(N, {
245
+ modelValue: r(t).minDay,
246
+ "onUpdate:modelValue": a[3] || (a[3] = (i) => r(t).minDay = i),
247
+ size: "small",
248
+ min: 0
249
+ }, null, 8, ["modelValue"]),
250
+ g("~ "),
251
+ e(N, {
252
+ modelValue: r(t).maxDay,
253
+ "onUpdate:modelValue": a[4] || (a[4] = (i) => r(t).maxDay = i),
254
+ size: "small",
255
+ min: 0
256
+ }, null, 8, ["modelValue"])
257
+ ]),
258
+ _: 1
259
+ }, 8, ["label"])
260
+ ]),
261
+ _: 1
262
+ }),
263
+ e(u, { span: 12 }, {
264
+ default: o(() => [
265
+ e(d, {
266
+ label: l.$t("siteService.limitPerson"),
267
+ prop: "limitPerson"
268
+ }, {
269
+ default: o(() => [
270
+ e(T, {
271
+ modelValue: r(t).limitPerson,
272
+ "onUpdate:modelValue": a[5] || (a[5] = (i) => r(t).limitPerson = i),
273
+ placeholder: l.$t("siteService.limitPersonRequired"),
274
+ "show-word-limit": "",
275
+ clearable: ""
276
+ }, null, 8, ["modelValue", "placeholder"])
277
+ ]),
278
+ _: 1
279
+ }, 8, ["label"])
280
+ ]),
281
+ _: 1
282
+ }),
283
+ e(u, { span: 12 }, {
284
+ default: o(() => [
285
+ e(d, {
286
+ label: l.$t("siteService.manager"),
287
+ prop: "manager"
288
+ }, {
289
+ default: o(() => [
290
+ e(n, {
291
+ modelValue: r(t).manager,
292
+ "onUpdate:modelValue": a[6] || (a[6] = (i) => r(t).manager = i),
293
+ data: r(p).managerDict.values,
294
+ filterable: "",
295
+ "check-strictly": "",
296
+ "render-after-expand": !1,
297
+ placeholder: l.$t("siteService.managerRequired")
298
+ }, null, 8, ["modelValue", "data", "placeholder"])
299
+ ]),
300
+ _: 1
301
+ }, 8, ["label"])
302
+ ]),
303
+ _: 1
304
+ }),
305
+ e(u, { span: 12 }, {
306
+ default: o(() => [
307
+ e(d, {
308
+ label: l.$t("siteService.status"),
309
+ prop: "status"
310
+ }, {
311
+ default: o(() => [
312
+ e(W, {
313
+ modelValue: r(t).status,
314
+ "onUpdate:modelValue": a[7] || (a[7] = (i) => r(t).status = i),
315
+ placeholder: l.$t("siteService.statusRequired"),
316
+ data: r(p).serviceStatusEnum.values,
317
+ clearable: ""
318
+ }, null, 8, ["modelValue", "placeholder", "data"])
319
+ ]),
320
+ _: 1
321
+ }, 8, ["label"])
322
+ ]),
323
+ _: 1
324
+ }),
325
+ e(u, { span: 12 }, {
326
+ default: o(() => [
327
+ e(d, {
328
+ label: l.$t("siteService.note"),
329
+ prop: "note"
330
+ }, {
331
+ default: o(() => [
332
+ e(T, {
333
+ modelValue: r(t).note,
334
+ "onUpdate:modelValue": a[8] || (a[8] = (i) => r(t).note = i),
335
+ autosize: "",
336
+ type: "textarea",
337
+ maxlength: "100",
338
+ "show-word-limit": "",
339
+ placeholder: l.$t("siteService.noteRequired")
340
+ }, null, 8, ["modelValue", "placeholder"])
341
+ ]),
342
+ _: 1
343
+ }, 8, ["label"])
344
+ ]),
345
+ _: 1
346
+ }),
347
+ e(u, { span: 24 }, {
348
+ default: o(() => [
349
+ e(d, {
350
+ label: l.$t("siteService.time"),
351
+ prop: "time"
352
+ }, {
353
+ default: o(() => [
354
+ (f(!0), _(z, null, M(r(t).limitInfo, (i, b) => (f(), _("div", { key: b }, [
355
+ e(X, {
356
+ modelValue: i.time,
357
+ "onUpdate:modelValue": (V) => i.time = V,
358
+ "is-range": "",
359
+ style: { width: "315px" },
360
+ "range-separator": "To",
361
+ "start-placeholder": l.$t("siteService.startTime"),
362
+ "end-placeholder": l.$t("siteService.endTime"),
363
+ onChange: (V) => A(V, b)
364
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "onChange"]),
365
+ e(v, {
366
+ style: { "margin-left": "30px", "margin-right": "30px" },
367
+ onClick: (V) => H(b)
368
+ }, {
369
+ default: o(() => [
370
+ g("删除")
371
+ ]),
372
+ _: 2
373
+ }, 1032, ["onClick"]),
374
+ e(v, { onClick: G }, {
375
+ default: o(() => [
376
+ g("添加")
377
+ ]),
378
+ _: 1
379
+ })
380
+ ]))), 128))
381
+ ]),
382
+ _: 1
383
+ }, 8, ["label"])
384
+ ]),
385
+ _: 1
386
+ })
387
+ ]),
388
+ _: 1
389
+ })
390
+ ]),
391
+ _: 1
392
+ }, 8, ["model", "rules"])
393
+ ]),
394
+ _: 1
395
+ }, 8, ["modelValue"]);
396
+ };
397
+ }
398
+ });
399
+ export {
400
+ pe as _
401
+ };