xyvcard-asset 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +52 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/common-kbgEWG-E.mjs +24 -0
- package/dist/edit-Bo9bnbUP.mjs +492 -0
- package/dist/edit-CE3u81Q0.mjs +4 -0
- package/dist/edit-DJFxVmvv.mjs +624 -0
- package/dist/edit-qp_2xtTZ.mjs +242 -0
- package/dist/edit-zFZfd8e1.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs +401 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +322 -0
- package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/index-Bf5U4Ucl.mjs +369 -0
- package/dist/index-Bh2imlN_.mjs +149 -0
- package/dist/index-CHNiaFZk.mjs +291 -0
- package/dist/index-CmlP_Rro.mjs +332 -0
- package/dist/index-Cqw_E8lr.mjs +1269 -0
- package/dist/index-DA_FS24d.mjs +146 -0
- package/dist/index-DKmGNvQl.mjs +370 -0
- package/dist/index-DLxpE9s5.mjs +305 -0
- package/dist/index-DWaL87j5.mjs +89 -0
- package/dist/index-jOnQLJaB.mjs +416 -0
- package/dist/index-pyyjj1xa.mjs +187 -0
- package/dist/index.mjs +144 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +37 -0
- package/dist/style.css +1 -0
- package/dts/App.vue.d.ts +2 -0
- package/dts/api/asset/asset-asset/index.d.ts +20 -0
- package/dts/api/asset/asset-asset/types.d.ts +93 -0
- package/dts/api/asset/asset-service-appt-member/index.d.ts +20 -0
- package/dts/api/asset/asset-service-appt-member/types.d.ts +71 -0
- package/dts/api/asset/asset-service-appt-record/index.d.ts +20 -0
- package/dts/api/asset/asset-service-appt-record/types.d.ts +98 -0
- package/dts/api/asset/asset-site/index.d.ts +15 -0
- package/dts/api/asset/asset-site/types.d.ts +81 -0
- package/dts/api/asset/asset-site-service/index.d.ts +14 -0
- package/dts/api/asset/asset-site-service/types.d.ts +80 -0
- package/dts/api/dict.d.ts +22 -0
- package/dts/api/index.d.ts +14 -0
- package/dts/api/org/union-org/index.d.ts +14 -0
- package/dts/api/org/union-org/types.d.ts +49 -0
- package/dts/components/EnumRadio/index.vue.d.ts +18 -0
- package/dts/components/EnumSelect/index.vue.d.ts +18 -0
- package/dts/components/TMaps/index.vue.d.ts +20 -0
- package/dts/components/Upload/ImageUpload.vue.d.ts +38 -0
- package/dts/components/Upload/MultiUpload.vue.d.ts +24 -0
- package/dts/constant.d.ts +16 -0
- package/dts/index.d.ts +4 -0
- package/dts/lang/asset/en.d.ts +2 -0
- package/dts/lang/asset/zh-cn.d.ts +91 -0
- package/dts/lang/index.d.ts +1 -0
- package/dts/main.d.ts +4 -0
- package/dts/permission.d.ts +1 -0
- package/dts/router/page.d.ts +2 -0
- package/dts/src/App.vue.d.ts +2 -0
- package/dts/src/api/asset/asset-asset/index.d.ts +20 -0
- package/dts/src/api/asset/asset-asset/types.d.ts +93 -0
- package/dts/src/api/asset/asset-service-appt-member/index.d.ts +20 -0
- package/dts/src/api/asset/asset-service-appt-member/types.d.ts +71 -0
- package/dts/src/api/asset/asset-service-appt-record/index.d.ts +20 -0
- package/dts/src/api/asset/asset-service-appt-record/types.d.ts +98 -0
- package/dts/src/api/asset/asset-site/index.d.ts +15 -0
- package/dts/src/api/asset/asset-site/types.d.ts +81 -0
- package/dts/src/api/asset/asset-site-service/index.d.ts +14 -0
- package/dts/src/api/asset/asset-site-service/types.d.ts +80 -0
- package/dts/src/api/dict.d.ts +22 -0
- package/dts/src/api/index.d.ts +14 -0
- package/dts/src/api/org/union-org/index.d.ts +14 -0
- package/dts/src/api/org/union-org/types.d.ts +49 -0
- package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
- package/dts/src/components/EnumSelect/index.vue.d.ts +18 -0
- package/dts/src/components/Upload/ImageUpload.vue.d.ts +38 -0
- package/dts/src/components/Upload/MultiUpload.vue.d.ts +24 -0
- package/dts/src/constant.d.ts +16 -0
- package/dts/src/index.d.ts +4 -0
- package/dts/src/lang/asset/en.d.ts +2 -0
- package/dts/src/lang/asset/zh-cn.d.ts +91 -0
- package/dts/src/lang/index.d.ts +1 -0
- package/dts/src/main.d.ts +4 -0
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/page.d.ts +4 -0
- package/dts/src/utils/common.d.ts +51 -0
- package/dts/src/utils/index.d.ts +24 -0
- package/dts/src/views/asset/asset-asset/edit.vue.d.ts +22 -0
- package/dts/src/views/asset/asset-asset/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-service-appt-member/edit.vue.d.ts +22 -0
- package/dts/src/views/asset/asset-service-appt-member/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-service-appt-record/edit.vue.d.ts +22 -0
- package/dts/src/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-site/edit.vue.d.ts +22 -0
- package/dts/src/views/asset/asset-site/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-site/info/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-site-service/edit.vue.d.ts +22 -0
- package/dts/src/views/asset/asset-site-service/index.vue.d.ts +2 -0
- package/dts/tsconfig.tsbuildinfo +1 -0
- package/dts/utils/common.d.ts +51 -0
- package/dts/utils/index.d.ts +24 -0
- package/dts/views/asset/asset-asset/edit.vue.d.ts +22 -0
- package/dts/views/asset/asset-asset/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-service-appt-member/edit.vue.d.ts +22 -0
- package/dts/views/asset/asset-service-appt-member/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-service-appt-record/edit.vue.d.ts +22 -0
- package/dts/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-site/edit.vue.d.ts +22 -0
- package/dts/views/asset/asset-site/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-site/info/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-site-service/edit.vue.d.ts +22 -0
- package/dts/views/asset/asset-site-service/index.vue.d.ts +2 -0
- package/package.json +60 -0
@@ -0,0 +1,332 @@
|
|
1
|
+
import { _ as te } from "./index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs";
|
2
|
+
import { defineComponent as le, ref as b, reactive as D, resolveComponent as i, resolveDirective as ae, openBlock as d, createElementBlock as y, createElementVNode as c, createVNode as s, withCtx as a, unref as o, Fragment as oe, renderList as se, createBlock as S, withKeys as R, createTextVNode as p, toDisplayString as u, withDirectives as C, isRef as L, createCommentVNode as z } from "vue";
|
3
|
+
import { D as m, a as ne, S as ie } from "./index-DLxpE9s5.mjs";
|
4
|
+
import { useI18n as re } from "vue-i18n";
|
5
|
+
import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs";
|
6
|
+
import { useTableHooks as de } from "jmash-core";
|
7
|
+
const me = { class: "app-container" }, pe = { class: "search-container" }, ce = /* @__PURE__ */ c("div", { class: "clear" }, null, -1), ve = ["onClick"], fe = ["onClick"], he = /* @__PURE__ */ le({
|
8
|
+
__name: "index",
|
9
|
+
setup(ge) {
|
10
|
+
const { t: I } = re();
|
11
|
+
m.unionOrgBizLayDict.useValues(), m.siteDict.useValues();
|
12
|
+
const n = b({
|
13
|
+
curPage: 1,
|
14
|
+
pageSize: 10
|
15
|
+
}), {
|
16
|
+
tableHooks: r,
|
17
|
+
multipleTableRef: T,
|
18
|
+
queryFormRef: U,
|
19
|
+
listLoading: P,
|
20
|
+
tableData: j,
|
21
|
+
total: _
|
22
|
+
} = de(I, ne, n);
|
23
|
+
let v = b([
|
24
|
+
{
|
25
|
+
label: "siteService.orgId",
|
26
|
+
prop: "orgId",
|
27
|
+
slotName: "orgId",
|
28
|
+
columnType: "slot",
|
29
|
+
width: "150",
|
30
|
+
isColumn: !0
|
31
|
+
},
|
32
|
+
{
|
33
|
+
label: "siteService.siteId",
|
34
|
+
prop: "siteId",
|
35
|
+
slotName: "siteId",
|
36
|
+
columnType: "slot",
|
37
|
+
sortable: "custom",
|
38
|
+
isColumn: !0
|
39
|
+
},
|
40
|
+
{
|
41
|
+
label: "siteService.serviceName",
|
42
|
+
prop: "serviceName",
|
43
|
+
width: "150",
|
44
|
+
sortable: "custom",
|
45
|
+
isColumn: !0
|
46
|
+
},
|
47
|
+
{
|
48
|
+
label: "siteService.day",
|
49
|
+
prop: "day",
|
50
|
+
slotName: "day",
|
51
|
+
columnType: "slot",
|
52
|
+
width: "150",
|
53
|
+
sortable: "custom",
|
54
|
+
isColumn: !0
|
55
|
+
},
|
56
|
+
{
|
57
|
+
label: "siteService.manager",
|
58
|
+
prop: "manager",
|
59
|
+
sortable: "custom",
|
60
|
+
isColumn: !0
|
61
|
+
},
|
62
|
+
{
|
63
|
+
label: "siteService.status",
|
64
|
+
prop: "status",
|
65
|
+
slotName: "status",
|
66
|
+
columnType: "slot",
|
67
|
+
sortable: "custom",
|
68
|
+
isColumn: !0
|
69
|
+
},
|
70
|
+
{
|
71
|
+
label: "common.operate",
|
72
|
+
width: "200",
|
73
|
+
slotName: "operation",
|
74
|
+
columnType: "slot",
|
75
|
+
fixed: "right",
|
76
|
+
isColumn: !0
|
77
|
+
}
|
78
|
+
]), $ = b();
|
79
|
+
function q(l) {
|
80
|
+
n.value.siteId = "";
|
81
|
+
const t = new ie({ orgId: l });
|
82
|
+
t.useValues(), $.value = t.values;
|
83
|
+
}
|
84
|
+
const V = b(""), f = b(!1);
|
85
|
+
let h = D({});
|
86
|
+
function B() {
|
87
|
+
h = D({}), V.value = I("common.add"), f.value = !0;
|
88
|
+
}
|
89
|
+
function E(l) {
|
90
|
+
h.serviceId = l.serviceId, V.value = I("common.edit"), f.value = !0;
|
91
|
+
}
|
92
|
+
function K(l) {
|
93
|
+
r.selectionRows.value = l;
|
94
|
+
}
|
95
|
+
function O(l) {
|
96
|
+
r.handleSort(l.prop, l.order);
|
97
|
+
}
|
98
|
+
function Q(l) {
|
99
|
+
l && r.getList();
|
100
|
+
}
|
101
|
+
return r.getList(), (l, t) => {
|
102
|
+
const F = i("el-tree-select"), g = i("el-form-item"), A = i("el-option"), H = i("el-select"), G = i("el-input"), J = te, k = i("el-button"), M = i("el-form"), N = i("el-col"), W = i("jmash-column-select"), X = i("el-row"), Y = i("jmash-table"), Z = i("jmash-pagination"), x = i("el-card"), w = ae("hasPerm");
|
103
|
+
return d(), y("div", me, [
|
104
|
+
c("div", pe, [
|
105
|
+
s(M, {
|
106
|
+
ref_key: "queryFormRef",
|
107
|
+
ref: U,
|
108
|
+
model: n.value,
|
109
|
+
inline: !0
|
110
|
+
}, {
|
111
|
+
default: a(() => [
|
112
|
+
s(g, {
|
113
|
+
label: l.$t("siteService.orgId"),
|
114
|
+
prop: "orgId"
|
115
|
+
}, {
|
116
|
+
default: a(() => [
|
117
|
+
s(F, {
|
118
|
+
modelValue: n.value.orgId,
|
119
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.orgId = e),
|
120
|
+
data: o(m).unionOrgBizLayDict.values,
|
121
|
+
filterable: "",
|
122
|
+
"check-strictly": "",
|
123
|
+
"render-after-expand": !1,
|
124
|
+
placeholder: l.$t("siteService.orgIdRequired"),
|
125
|
+
style: { width: "203px" },
|
126
|
+
onChange: q
|
127
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
128
|
+
]),
|
129
|
+
_: 1
|
130
|
+
}, 8, ["label"]),
|
131
|
+
s(g, {
|
132
|
+
label: l.$t("siteService.siteId"),
|
133
|
+
prop: "siteId"
|
134
|
+
}, {
|
135
|
+
default: a(() => [
|
136
|
+
s(H, {
|
137
|
+
modelValue: n.value.siteId,
|
138
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => n.value.siteId = e),
|
139
|
+
disabled: !n.value.orgId,
|
140
|
+
placeholder: l.$t("siteService.siteIdRequired"),
|
141
|
+
style: { width: "220px" },
|
142
|
+
clearable: ""
|
143
|
+
}, {
|
144
|
+
default: a(() => [
|
145
|
+
(d(!0), y(oe, null, se(o($), (e) => (d(), S(A, {
|
146
|
+
key: e.key,
|
147
|
+
label: e.value,
|
148
|
+
value: e.key
|
149
|
+
}, null, 8, ["label", "value"]))), 128))
|
150
|
+
]),
|
151
|
+
_: 1
|
152
|
+
}, 8, ["modelValue", "disabled", "placeholder"])
|
153
|
+
]),
|
154
|
+
_: 1
|
155
|
+
}, 8, ["label"]),
|
156
|
+
s(g, {
|
157
|
+
label: l.$t("siteService.serviceName"),
|
158
|
+
prop: "likeServiceName"
|
159
|
+
}, {
|
160
|
+
default: a(() => [
|
161
|
+
s(G, {
|
162
|
+
modelValue: n.value.likeServiceName,
|
163
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.likeServiceName = e),
|
164
|
+
placeholder: l.$t("siteService.serviceNameRequired"),
|
165
|
+
onKeyup: t[3] || (t[3] = R((e) => o(r).handleQuery(), ["enter"]))
|
166
|
+
}, null, 8, ["modelValue", "placeholder"])
|
167
|
+
]),
|
168
|
+
_: 1
|
169
|
+
}, 8, ["label"]),
|
170
|
+
s(g, {
|
171
|
+
label: l.$t("siteService.status"),
|
172
|
+
prop: "status"
|
173
|
+
}, {
|
174
|
+
default: a(() => [
|
175
|
+
s(J, {
|
176
|
+
modelValue: n.value.status,
|
177
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.status = e),
|
178
|
+
placeholder: l.$t("siteService.statusRequired"),
|
179
|
+
data: o(m).serviceStatusEnum.values,
|
180
|
+
clearable: "",
|
181
|
+
style: { width: "203px" },
|
182
|
+
onKeyup: t[5] || (t[5] = R((e) => o(r).handleQuery(), ["enter"]))
|
183
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
184
|
+
]),
|
185
|
+
_: 1
|
186
|
+
}, 8, ["label"]),
|
187
|
+
s(g, { class: "search-btn" }, {
|
188
|
+
default: a(() => [
|
189
|
+
s(k, {
|
190
|
+
type: "primary",
|
191
|
+
onClick: t[6] || (t[6] = (e) => o(r).handleQuery())
|
192
|
+
}, {
|
193
|
+
default: a(() => [
|
194
|
+
p(u(l.$t("common.search")), 1)
|
195
|
+
]),
|
196
|
+
_: 1
|
197
|
+
}),
|
198
|
+
s(k, {
|
199
|
+
onClick: t[7] || (t[7] = (e) => o(r).resetQuery())
|
200
|
+
}, {
|
201
|
+
default: a(() => [
|
202
|
+
p(u(l.$t("common.reset")), 1)
|
203
|
+
]),
|
204
|
+
_: 1
|
205
|
+
})
|
206
|
+
]),
|
207
|
+
_: 1
|
208
|
+
})
|
209
|
+
]),
|
210
|
+
_: 1
|
211
|
+
}, 8, ["model"]),
|
212
|
+
ce
|
213
|
+
]),
|
214
|
+
s(x, {
|
215
|
+
shadow: "never",
|
216
|
+
class: "table-container"
|
217
|
+
}, {
|
218
|
+
header: a(() => [
|
219
|
+
s(X, {
|
220
|
+
justify: "space-between",
|
221
|
+
span: 20
|
222
|
+
}, {
|
223
|
+
default: a(() => [
|
224
|
+
s(N, { span: 12 }, {
|
225
|
+
default: a(() => [
|
226
|
+
C((d(), S(k, {
|
227
|
+
type: "primary",
|
228
|
+
onClick: B
|
229
|
+
}, {
|
230
|
+
default: a(() => [
|
231
|
+
p(u(l.$t("common.add")), 1)
|
232
|
+
]),
|
233
|
+
_: 1
|
234
|
+
})), [
|
235
|
+
[w, ["asset:site_service:add"]]
|
236
|
+
])
|
237
|
+
]),
|
238
|
+
_: 1
|
239
|
+
}),
|
240
|
+
s(N, {
|
241
|
+
span: 8,
|
242
|
+
align: "right"
|
243
|
+
}, {
|
244
|
+
default: a(() => [
|
245
|
+
s(W, {
|
246
|
+
modelValue: o(v),
|
247
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => L(v) ? v.value = e : v = e),
|
248
|
+
"label-name": "asset/asset-site-service"
|
249
|
+
}, null, 8, ["modelValue"])
|
250
|
+
]),
|
251
|
+
_: 1
|
252
|
+
})
|
253
|
+
]),
|
254
|
+
_: 1
|
255
|
+
})
|
256
|
+
]),
|
257
|
+
footer: a(() => [
|
258
|
+
o(_) > 0 ? (d(), S(Z, {
|
259
|
+
key: 0,
|
260
|
+
total: o(_),
|
261
|
+
"onUpdate:total": t[9] || (t[9] = (e) => L(_) ? _.value = e : null),
|
262
|
+
"current-page": n.value.curPage,
|
263
|
+
"onUpdate:currentPage": t[10] || (t[10] = (e) => n.value.curPage = e),
|
264
|
+
"page-size": n.value.pageSize,
|
265
|
+
"onUpdate:pageSize": t[11] || (t[11] = (e) => n.value.pageSize = e),
|
266
|
+
onPagination: t[12] || (t[12] = (e) => o(r).getList())
|
267
|
+
}, null, 8, ["total", "current-page", "page-size"])) : z("", !0),
|
268
|
+
p(" ")
|
269
|
+
]),
|
270
|
+
default: a(() => [
|
271
|
+
s(Y, {
|
272
|
+
ref_key: "multipleTableRef",
|
273
|
+
ref: T,
|
274
|
+
class: "table-top",
|
275
|
+
"row-key": "serviceId",
|
276
|
+
"list-loading": o(P),
|
277
|
+
data: o(j),
|
278
|
+
"table-label": o(v),
|
279
|
+
onSelectionChange: K,
|
280
|
+
onSortChange: O
|
281
|
+
}, {
|
282
|
+
orgId: a((e) => [
|
283
|
+
c("span", null, u(o(m).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
|
284
|
+
]),
|
285
|
+
siteId: a((e) => [
|
286
|
+
c("span", null, u(o(m).siteDict.getValue(e.data.row.siteId)), 1)
|
287
|
+
]),
|
288
|
+
day: a((e) => [
|
289
|
+
c("span", null, u(e.data.row.minDay) + " - " + u(e.data.row.maxDay), 1)
|
290
|
+
]),
|
291
|
+
status: a((e) => [
|
292
|
+
c("span", null, u(o(m).serviceStatusEnum.getEnumValue(e.data.row.status)), 1)
|
293
|
+
]),
|
294
|
+
operation: a((e) => [
|
295
|
+
C((d(), y("span", {
|
296
|
+
class: "el-button-color",
|
297
|
+
onClick: (ee) => E(e.data.row)
|
298
|
+
}, [
|
299
|
+
p(u(l.$t("common.edit")), 1)
|
300
|
+
], 8, ve)), [
|
301
|
+
[w, ["asset:site_service:update"]]
|
302
|
+
]),
|
303
|
+
C((d(), y("span", {
|
304
|
+
class: "el-button-color dropdown-left",
|
305
|
+
onClick: (ee) => o(r).deleteRecord(e.data.row)
|
306
|
+
}, [
|
307
|
+
p(u(l.$t("common.delete")), 1)
|
308
|
+
], 8, fe)), [
|
309
|
+
[w, ["asset:site_service:delete"]]
|
310
|
+
])
|
311
|
+
]),
|
312
|
+
_: 1
|
313
|
+
}, 8, ["list-loading", "data", "table-label"])
|
314
|
+
]),
|
315
|
+
_: 1
|
316
|
+
}),
|
317
|
+
f.value ? (d(), S(ue, {
|
318
|
+
key: 0,
|
319
|
+
modelValue: f.value,
|
320
|
+
"onUpdate:modelValue": t[13] || (t[13] = (e) => f.value = e),
|
321
|
+
title: V.value,
|
322
|
+
"entity-key": o(h),
|
323
|
+
width: "900px",
|
324
|
+
onRefresh: Q
|
325
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : z("", !0)
|
326
|
+
]);
|
327
|
+
};
|
328
|
+
}
|
329
|
+
});
|
330
|
+
export {
|
331
|
+
he as default
|
332
|
+
};
|