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,416 @@
|
|
1
|
+
import { _ as le } from "./index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs";
|
2
|
+
import { defineComponent as ne, ref as S, reactive as P, resolveComponent as r, resolveDirective as se, openBlock as d, createElementBlock as U, createElementVNode as C, createVNode as n, withCtx as l, withKeys as D, unref as a, createTextVNode as m, toDisplayString as u, withDirectives as y, createBlock as p, isRef as z, createCommentVNode as E } from "vue";
|
3
|
+
import { useI18n as re } from "vue-i18n";
|
4
|
+
import { a as ue, A as ie } from "./edit-DJFxVmvv.mjs";
|
5
|
+
import { useTableHooks as de } from "jmash-core";
|
6
|
+
import { D as k } from "./index-DLxpE9s5.mjs";
|
7
|
+
const me = { class: "app-container" }, pe = { class: "search-container" }, ce = ["onClick"], be = ["onClick"], Ce = /* @__PURE__ */ ne({
|
8
|
+
__name: "index",
|
9
|
+
setup(fe) {
|
10
|
+
const { t: c } = re(), i = S({
|
11
|
+
curPage: 1,
|
12
|
+
pageSize: 10
|
13
|
+
}), {
|
14
|
+
tableHooks: s,
|
15
|
+
multipleTableRef: q,
|
16
|
+
queryFormRef: A,
|
17
|
+
listLoading: B,
|
18
|
+
tableData: I,
|
19
|
+
total: $
|
20
|
+
} = de(c, ue, i);
|
21
|
+
let g = S([
|
22
|
+
// 资产名称
|
23
|
+
{
|
24
|
+
label: "asset.name",
|
25
|
+
prop: "name",
|
26
|
+
width: "150",
|
27
|
+
sortable: "custom",
|
28
|
+
isColumn: !0
|
29
|
+
},
|
30
|
+
// 资产编号
|
31
|
+
{
|
32
|
+
label: "asset.code",
|
33
|
+
prop: "code",
|
34
|
+
width: "150",
|
35
|
+
sortable: "custom",
|
36
|
+
isColumn: !0
|
37
|
+
},
|
38
|
+
// 数量及单位
|
39
|
+
{
|
40
|
+
label: "asset.numberUnit",
|
41
|
+
prop: "numberUnit",
|
42
|
+
slotName: "numberUnit",
|
43
|
+
columnType: "slot",
|
44
|
+
width: "150",
|
45
|
+
sortable: "custom",
|
46
|
+
isColumn: !0
|
47
|
+
},
|
48
|
+
// 购买日期
|
49
|
+
{
|
50
|
+
label: "asset.buyDate",
|
51
|
+
prop: "buyDate",
|
52
|
+
width: "150",
|
53
|
+
sortable: "custom",
|
54
|
+
isColumn: !0
|
55
|
+
},
|
56
|
+
// 单价
|
57
|
+
{
|
58
|
+
label: "asset.buyMoney",
|
59
|
+
prop: "buyMoney",
|
60
|
+
width: "150",
|
61
|
+
sortable: "custom",
|
62
|
+
isColumn: !0
|
63
|
+
},
|
64
|
+
// 资产属性
|
65
|
+
{
|
66
|
+
label: "asset.assetSort",
|
67
|
+
prop: "assetSort",
|
68
|
+
slotName: "assetSort",
|
69
|
+
columnType: "slot",
|
70
|
+
width: "150",
|
71
|
+
sortable: "custom",
|
72
|
+
isColumn: !0
|
73
|
+
},
|
74
|
+
// 折旧方式
|
75
|
+
{
|
76
|
+
label: "asset.depreciationType",
|
77
|
+
prop: "depreciationType",
|
78
|
+
slotName: "depreciationType",
|
79
|
+
columnType: "slot",
|
80
|
+
width: "150",
|
81
|
+
sortable: "custom",
|
82
|
+
isColumn: !0
|
83
|
+
},
|
84
|
+
// 分配状态
|
85
|
+
{
|
86
|
+
label: "asset.assignStatus",
|
87
|
+
prop: "assignStatus",
|
88
|
+
slotName: "assignStatus",
|
89
|
+
columnType: "slot",
|
90
|
+
width: "150",
|
91
|
+
sortable: "custom",
|
92
|
+
isColumn: !0
|
93
|
+
},
|
94
|
+
{
|
95
|
+
label: c("common.operate"),
|
96
|
+
width: "200",
|
97
|
+
slotName: "operation",
|
98
|
+
columnType: "slot",
|
99
|
+
fixed: "right",
|
100
|
+
isColumn: !0
|
101
|
+
}
|
102
|
+
]);
|
103
|
+
const V = S(""), w = S(!1), _ = S(!1);
|
104
|
+
let T = P({});
|
105
|
+
function K() {
|
106
|
+
T = P({}), V.value = c("common.add"), w.value = !0;
|
107
|
+
}
|
108
|
+
function L(o) {
|
109
|
+
T.assetId = o.assetId, V.value = c("common.edit"), w.value = !0;
|
110
|
+
}
|
111
|
+
function M(o) {
|
112
|
+
s.selectionRows.value = o;
|
113
|
+
}
|
114
|
+
function Q(o) {
|
115
|
+
s.handleSort(o.prop, o.order);
|
116
|
+
}
|
117
|
+
function F(o) {
|
118
|
+
o && s.getList();
|
119
|
+
}
|
120
|
+
function H() {
|
121
|
+
_.value = !1;
|
122
|
+
}
|
123
|
+
function O(o) {
|
124
|
+
o.updateMask = "", s.importExcel(o).then(() => {
|
125
|
+
_.value = !1;
|
126
|
+
});
|
127
|
+
}
|
128
|
+
return s.getList(), (o, t) => {
|
129
|
+
const G = r("el-input"), h = r("el-form-item"), R = le, b = r("el-button"), J = r("el-form"), N = r("el-col"), W = r("jmash-column-select"), X = r("el-row"), Y = r("Bottom"), j = r("el-icon"), Z = r("Top"), x = r("el-switch"), ee = r("jmash-table"), te = r("jmash-pagination"), ae = r("el-card"), oe = r("jmash-import-upload"), f = se("hasPerm");
|
130
|
+
return d(), U("div", me, [
|
131
|
+
C("div", pe, [
|
132
|
+
n(J, {
|
133
|
+
ref_key: "queryFormRef",
|
134
|
+
ref: A,
|
135
|
+
model: i.value,
|
136
|
+
inline: !0
|
137
|
+
}, {
|
138
|
+
default: l(() => [
|
139
|
+
n(h, {
|
140
|
+
label: o.$t("asset.name"),
|
141
|
+
prop: "likeName"
|
142
|
+
}, {
|
143
|
+
default: l(() => [
|
144
|
+
n(G, {
|
145
|
+
modelValue: i.value.likeName,
|
146
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.value.likeName = e),
|
147
|
+
placeholder: o.$t("asset.nameRequired"),
|
148
|
+
onKeyup: t[1] || (t[1] = D((e) => a(s).handleQuery(), ["enter"]))
|
149
|
+
}, null, 8, ["modelValue", "placeholder"])
|
150
|
+
]),
|
151
|
+
_: 1
|
152
|
+
}, 8, ["label"]),
|
153
|
+
n(h, {
|
154
|
+
label: o.$t("asset.assetSort"),
|
155
|
+
prop: "assetSort"
|
156
|
+
}, {
|
157
|
+
default: l(() => [
|
158
|
+
n(R, {
|
159
|
+
modelValue: i.value.assetSort,
|
160
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.assetSort = e),
|
161
|
+
data: a(k).assetSortDictEnum.values,
|
162
|
+
placeholder: o.$t("asset.assetSortRequired"),
|
163
|
+
"enum-type": "jmash.rbac.protobuf.UserStatus",
|
164
|
+
clearable: "",
|
165
|
+
style: { width: "203px" },
|
166
|
+
onKeyup: t[3] || (t[3] = D((e) => a(s).handleQuery(), ["enter"]))
|
167
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
168
|
+
]),
|
169
|
+
_: 1
|
170
|
+
}, 8, ["label"]),
|
171
|
+
n(h, {
|
172
|
+
label: o.$t("asset.assignStatus"),
|
173
|
+
prop: "assignStatus"
|
174
|
+
}, {
|
175
|
+
default: l(() => [
|
176
|
+
n(R, {
|
177
|
+
modelValue: i.value.assignStatus,
|
178
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => i.value.assignStatus = e),
|
179
|
+
placeholder: o.$t("asset.assignStatusRequired"),
|
180
|
+
data: a(k).assetStatusDict.values,
|
181
|
+
clearable: "",
|
182
|
+
style: { width: "203px" },
|
183
|
+
onKeyup: t[5] || (t[5] = D((e) => a(s).handleQuery(), ["enter"]))
|
184
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
185
|
+
]),
|
186
|
+
_: 1
|
187
|
+
}, 8, ["label"]),
|
188
|
+
n(h, null, {
|
189
|
+
default: l(() => [
|
190
|
+
n(b, {
|
191
|
+
type: "primary",
|
192
|
+
onClick: t[6] || (t[6] = (e) => a(s).handleQuery())
|
193
|
+
}, {
|
194
|
+
default: l(() => [
|
195
|
+
m(u(o.$t("common.search")), 1)
|
196
|
+
]),
|
197
|
+
_: 1
|
198
|
+
}),
|
199
|
+
n(b, {
|
200
|
+
onClick: t[7] || (t[7] = (e) => a(s).resetQuery())
|
201
|
+
}, {
|
202
|
+
default: l(() => [
|
203
|
+
m(u(o.$t("common.reset")), 1)
|
204
|
+
]),
|
205
|
+
_: 1
|
206
|
+
})
|
207
|
+
]),
|
208
|
+
_: 1
|
209
|
+
})
|
210
|
+
]),
|
211
|
+
_: 1
|
212
|
+
}, 8, ["model"])
|
213
|
+
]),
|
214
|
+
n(ae, {
|
215
|
+
shadow: "never",
|
216
|
+
class: "table-container"
|
217
|
+
}, {
|
218
|
+
header: l(() => [
|
219
|
+
n(X, {
|
220
|
+
justify: "space-between",
|
221
|
+
span: 20
|
222
|
+
}, {
|
223
|
+
default: l(() => [
|
224
|
+
n(N, { span: 12 }, {
|
225
|
+
default: l(() => [
|
226
|
+
y((d(), p(b, {
|
227
|
+
type: "primary",
|
228
|
+
onClick: K
|
229
|
+
}, {
|
230
|
+
default: l(() => [
|
231
|
+
m(u(o.$t("common.add")), 1)
|
232
|
+
]),
|
233
|
+
_: 1
|
234
|
+
})), [
|
235
|
+
[f, ["asset:asset:add"]]
|
236
|
+
]),
|
237
|
+
y((d(), p(b, {
|
238
|
+
type: "primary",
|
239
|
+
onClick: t[8] || (t[8] = (e) => a(s).deleteRecords())
|
240
|
+
}, {
|
241
|
+
default: l(() => [
|
242
|
+
m(u(o.$t("common.batchDelete")), 1)
|
243
|
+
]),
|
244
|
+
_: 1
|
245
|
+
})), [
|
246
|
+
[f, ["asset:asset:delete"]]
|
247
|
+
])
|
248
|
+
]),
|
249
|
+
_: 1
|
250
|
+
}),
|
251
|
+
n(N, {
|
252
|
+
span: 8,
|
253
|
+
align: "right"
|
254
|
+
}, {
|
255
|
+
default: l(() => [
|
256
|
+
y((d(), p(b, {
|
257
|
+
plain: "",
|
258
|
+
type: "primary",
|
259
|
+
onClick: t[9] || (t[9] = (e) => _.value = !0)
|
260
|
+
}, {
|
261
|
+
default: l(() => [
|
262
|
+
m(u(o.$t("common.import")), 1)
|
263
|
+
]),
|
264
|
+
_: 1
|
265
|
+
})), [
|
266
|
+
[f, ["asset:asset:import"]]
|
267
|
+
]),
|
268
|
+
y((d(), p(b, {
|
269
|
+
plain: "",
|
270
|
+
type: "primary",
|
271
|
+
onClick: t[10] || (t[10] = (e) => a(s).handleExport(a(c)("asset.asset.name")))
|
272
|
+
}, {
|
273
|
+
default: l(() => [
|
274
|
+
m(u(o.$t("common.export")), 1)
|
275
|
+
]),
|
276
|
+
_: 1
|
277
|
+
})), [
|
278
|
+
[f, ["asset:asset:export"]]
|
279
|
+
]),
|
280
|
+
y((d(), p(b, {
|
281
|
+
plain: "",
|
282
|
+
type: "primary",
|
283
|
+
onClick: t[11] || (t[11] = (e) => a(s).handleExportPdf(a(c)("asset.asset.name")))
|
284
|
+
}, {
|
285
|
+
default: l(() => [
|
286
|
+
m(u(o.$t("common.print")), 1)
|
287
|
+
]),
|
288
|
+
_: 1
|
289
|
+
})), [
|
290
|
+
[f, ["asset:asset:print"]]
|
291
|
+
]),
|
292
|
+
n(W, {
|
293
|
+
modelValue: a(g),
|
294
|
+
"onUpdate:modelValue": t[12] || (t[12] = (e) => z(g) ? g.value = e : g = e),
|
295
|
+
"label-name": "asset/asset-asset"
|
296
|
+
}, null, 8, ["modelValue"])
|
297
|
+
]),
|
298
|
+
_: 1
|
299
|
+
})
|
300
|
+
]),
|
301
|
+
_: 1
|
302
|
+
})
|
303
|
+
]),
|
304
|
+
footer: l(() => [
|
305
|
+
a($) > 0 ? (d(), p(te, {
|
306
|
+
key: 0,
|
307
|
+
total: a($),
|
308
|
+
"onUpdate:total": t[13] || (t[13] = (e) => z($) ? $.value = e : null),
|
309
|
+
"current-page": i.value.curPage,
|
310
|
+
"onUpdate:currentPage": t[14] || (t[14] = (e) => i.value.curPage = e),
|
311
|
+
"page-size": i.value.pageSize,
|
312
|
+
"onUpdate:pageSize": t[15] || (t[15] = (e) => i.value.pageSize = e),
|
313
|
+
onPagination: t[16] || (t[16] = (e) => a(s).getList())
|
314
|
+
}, null, 8, ["total", "current-page", "page-size"])) : E("", !0),
|
315
|
+
m(" ")
|
316
|
+
]),
|
317
|
+
default: l(() => [
|
318
|
+
n(ee, {
|
319
|
+
ref_key: "multipleTableRef",
|
320
|
+
ref: q,
|
321
|
+
class: "table-top",
|
322
|
+
"row-key": "AssetId",
|
323
|
+
"list-loading": a(B),
|
324
|
+
data: a(I),
|
325
|
+
"table-label": a(g),
|
326
|
+
onSelectionChange: M,
|
327
|
+
onSortChange: Q
|
328
|
+
}, {
|
329
|
+
numberUnit: l((e) => [
|
330
|
+
C("span", null, u(e.data.row.number) + "/" + u(e.data.row.unit), 1)
|
331
|
+
]),
|
332
|
+
assetSort: l((e) => [
|
333
|
+
C("span", null, u(a(k).assetSortDictEnum.getEnumValue(e.data.row.assetSort)), 1)
|
334
|
+
]),
|
335
|
+
depreciationType: l((e) => [
|
336
|
+
C("span", null, u(a(k).depreciationTypeEnum.getEnumValue(
|
337
|
+
e.data.row.depreciationType
|
338
|
+
)), 1)
|
339
|
+
]),
|
340
|
+
assignStatus: l((e) => [
|
341
|
+
C("span", null, u(a(k).assetStatusDict.getValue(e.data.row.assignStatus)), 1)
|
342
|
+
]),
|
343
|
+
listOrder: l((e) => [
|
344
|
+
n(j, {
|
345
|
+
size: "16",
|
346
|
+
onClick: (v) => a(s).handleMove(e.data.row, !1)
|
347
|
+
}, {
|
348
|
+
default: l(() => [
|
349
|
+
n(Y)
|
350
|
+
]),
|
351
|
+
_: 2
|
352
|
+
}, 1032, ["onClick"]),
|
353
|
+
n(j, {
|
354
|
+
size: "16",
|
355
|
+
onClick: (v) => a(s).handleMove(e.data.row, !0)
|
356
|
+
}, {
|
357
|
+
default: l(() => [
|
358
|
+
n(Z)
|
359
|
+
]),
|
360
|
+
_: 2
|
361
|
+
}, 1032, ["onClick"])
|
362
|
+
]),
|
363
|
+
enable: l((e) => [
|
364
|
+
n(x, {
|
365
|
+
modelValue: e.data.row.enable,
|
366
|
+
"onUpdate:modelValue": (v) => e.data.row.enable = v,
|
367
|
+
onChange: (v) => a(s).enableRecord(e.data.row, e.data.row.enable)
|
368
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
369
|
+
]),
|
370
|
+
operation: l((e) => [
|
371
|
+
y((d(), U("span", {
|
372
|
+
class: "el-button-color",
|
373
|
+
onClick: (v) => L(e.data.row)
|
374
|
+
}, [
|
375
|
+
m(u(o.$t("common.edit")), 1)
|
376
|
+
], 8, ce)), [
|
377
|
+
[f, ["asset:asset:update"]]
|
378
|
+
]),
|
379
|
+
y((d(), U("span", {
|
380
|
+
class: "el-button-color dropdown-left",
|
381
|
+
onClick: (v) => a(s).deleteRecord(e.data.row)
|
382
|
+
}, [
|
383
|
+
m(u(o.$t("common.delete")), 1)
|
384
|
+
], 8, be)), [
|
385
|
+
[f, ["asset:asset:delete"]]
|
386
|
+
])
|
387
|
+
]),
|
388
|
+
_: 1
|
389
|
+
}, 8, ["list-loading", "data", "table-label"])
|
390
|
+
]),
|
391
|
+
_: 1
|
392
|
+
}),
|
393
|
+
w.value ? (d(), p(ie, {
|
394
|
+
key: 0,
|
395
|
+
modelValue: w.value,
|
396
|
+
"onUpdate:modelValue": t[17] || (t[17] = (e) => w.value = e),
|
397
|
+
title: V.value,
|
398
|
+
"entity-key": a(T),
|
399
|
+
width: "900px",
|
400
|
+
onRefresh: F
|
401
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : E("", !0),
|
402
|
+
_.value ? (d(), p(oe, {
|
403
|
+
key: 1,
|
404
|
+
"upload-visible": _.value,
|
405
|
+
"template-title": o.$t("sysUser.templateDownload"),
|
406
|
+
onTemplateDown: t[18] || (t[18] = (e) => a(s).downloadTemplate(a(c)("asset.asset.name"))),
|
407
|
+
onImportEvents: O,
|
408
|
+
onUploadClosed: H
|
409
|
+
}, null, 8, ["upload-visible", "template-title"])) : E("", !0)
|
410
|
+
]);
|
411
|
+
};
|
412
|
+
}
|
413
|
+
});
|
414
|
+
export {
|
415
|
+
Ce as default
|
416
|
+
};
|
@@ -0,0 +1,187 @@
|
|
1
|
+
import { defineComponent as S, ref as g, resolveComponent as p, openBlock as b, createElementBlock as T, createVNode as s, withCtx as e, createTextVNode as i, toDisplayString as o, unref as t, createBlock as L, isRef as j, createCommentVNode as E, createElementVNode as a } from "vue";
|
2
|
+
import { useRouter as q, useRoute as M } from "vue-router";
|
3
|
+
import { D as m } from "./index-DLxpE9s5.mjs";
|
4
|
+
import { useTableHooks as O } from "jmash-core";
|
5
|
+
import { s as U } from "./index-DA_FS24d.mjs";
|
6
|
+
import { useI18n as H } from "vue-i18n";
|
7
|
+
import { s as K } from "./index-Bh2imlN_.mjs";
|
8
|
+
const F = { class: "app-container" }, G = /* @__PURE__ */ a("div", { class: "title-content" }, "预约信息", -1), J = { class: "cell-item" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Y = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = /* @__PURE__ */ a("div", { class: "title-content" }, "预约人员信息", -1), ce = /* @__PURE__ */ S({
|
9
|
+
__name: "index",
|
10
|
+
setup(te) {
|
11
|
+
const { t: y } = H(), h = q(), v = M(), d = g({
|
12
|
+
curPage: 1,
|
13
|
+
pageSize: 10,
|
14
|
+
recordId: v.query.entityKey
|
15
|
+
}), { tableHooks: f, multipleTableRef: R, listLoading: A, tableData: D, total: _ } = O(y, K, d);
|
16
|
+
let k = g([
|
17
|
+
{
|
18
|
+
label: "serviceApptMember.realName",
|
19
|
+
prop: "realName",
|
20
|
+
isColumn: !0
|
21
|
+
},
|
22
|
+
{
|
23
|
+
label: "serviceApptMember.status",
|
24
|
+
prop: "status",
|
25
|
+
slotName: "status",
|
26
|
+
columnType: "slot",
|
27
|
+
isColumn: !0
|
28
|
+
}
|
29
|
+
]);
|
30
|
+
function N(l) {
|
31
|
+
f.selectionRows.value = l;
|
32
|
+
}
|
33
|
+
const n = g({});
|
34
|
+
U.findById({ recordId: v.query.entityKey }).then((l) => {
|
35
|
+
console.log(l, "res"), n.value = l.data;
|
36
|
+
}), f.getList(), m.unionOrgBizLayDict.useValues(), m.serviceNameDict.useValues();
|
37
|
+
function P() {
|
38
|
+
h.push({ path: "/asset/asset-service-appt-record" });
|
39
|
+
}
|
40
|
+
return (l, r) => {
|
41
|
+
const I = p("el-button"), u = p("el-descriptions-item"), V = p("el-descriptions"), $ = p("el-col"), w = p("el-row"), z = p("jmash-table"), C = p("jmash-pagination"), B = p("el-card");
|
42
|
+
return b(), T("div", F, [
|
43
|
+
s(B, { shadow: "never" }, {
|
44
|
+
header: e(() => [
|
45
|
+
s(I, {
|
46
|
+
type: "primary",
|
47
|
+
onClick: P
|
48
|
+
}, {
|
49
|
+
default: e(() => [
|
50
|
+
i(o(l.$t("common.back")), 1)
|
51
|
+
]),
|
52
|
+
_: 1
|
53
|
+
})
|
54
|
+
]),
|
55
|
+
footer: e(() => [
|
56
|
+
t(_) > 0 ? (b(), L(C, {
|
57
|
+
key: 0,
|
58
|
+
total: t(_),
|
59
|
+
"onUpdate:total": r[0] || (r[0] = (c) => j(_) ? _.value = c : null),
|
60
|
+
"current-page": t(d).curPage,
|
61
|
+
"onUpdate:currentPage": r[1] || (r[1] = (c) => t(d).curPage = c),
|
62
|
+
"page-size": t(d).pageSize,
|
63
|
+
"onUpdate:pageSize": r[2] || (r[2] = (c) => t(d).pageSize = c),
|
64
|
+
onPagination: r[3] || (r[3] = (c) => t(f).getList())
|
65
|
+
}, null, 8, ["total", "current-page", "page-size"])) : E("", !0),
|
66
|
+
i(" ")
|
67
|
+
]),
|
68
|
+
default: e(() => [
|
69
|
+
s(w, {
|
70
|
+
gutter: 20,
|
71
|
+
style: { width: "100%" }
|
72
|
+
}, {
|
73
|
+
default: e(() => [
|
74
|
+
s($, { span: 24 }, {
|
75
|
+
default: e(() => [
|
76
|
+
G,
|
77
|
+
s(V, {
|
78
|
+
class: "margin-top",
|
79
|
+
column: 2,
|
80
|
+
border: ""
|
81
|
+
}, {
|
82
|
+
default: e(() => [
|
83
|
+
s(u, null, {
|
84
|
+
label: e(() => [
|
85
|
+
a("div", J, o(l.$t("serviceApptRecord.orgId")), 1)
|
86
|
+
]),
|
87
|
+
default: e(() => [
|
88
|
+
i(" " + o(t(m).unionOrgBizLayDict.getValue(t(n).orgId)), 1)
|
89
|
+
]),
|
90
|
+
_: 1
|
91
|
+
}),
|
92
|
+
s(u, null, {
|
93
|
+
label: e(() => [
|
94
|
+
a("div", Q, o(l.$t("serviceApptRecord.siteId")), 1)
|
95
|
+
]),
|
96
|
+
default: e(() => [
|
97
|
+
i(" " + o(t(m).serviceNameDict.getValue(t(n).siteId)), 1)
|
98
|
+
]),
|
99
|
+
_: 1
|
100
|
+
}),
|
101
|
+
s(u, null, {
|
102
|
+
label: e(() => [
|
103
|
+
a("div", W, o(l.$t("serviceApptRecord.serviceName")), 1)
|
104
|
+
]),
|
105
|
+
default: e(() => [
|
106
|
+
i(" " + o(t(n).serviceName), 1)
|
107
|
+
]),
|
108
|
+
_: 1
|
109
|
+
}),
|
110
|
+
s(u, null, {
|
111
|
+
label: e(() => [
|
112
|
+
a("div", X, o(l.$t("serviceApptRecord.appointmentDate")), 1)
|
113
|
+
]),
|
114
|
+
default: e(() => [
|
115
|
+
i(" " + o(t(n).appointmentDate), 1)
|
116
|
+
]),
|
117
|
+
_: 1
|
118
|
+
}),
|
119
|
+
s(u, null, {
|
120
|
+
label: e(() => [
|
121
|
+
a("span", null, [
|
122
|
+
a("div", Y, o(l.$t("serviceApptRecord.time")), 1)
|
123
|
+
])
|
124
|
+
]),
|
125
|
+
default: e(() => [
|
126
|
+
i(" " + o(t(n).startTime) + " - " + o(t(n).endTime), 1)
|
127
|
+
]),
|
128
|
+
_: 1
|
129
|
+
}),
|
130
|
+
s(u, null, {
|
131
|
+
label: e(() => [
|
132
|
+
a("span", null, [
|
133
|
+
a("div", Z, o(l.$t("serviceApptRecord.limitPerson")), 1)
|
134
|
+
])
|
135
|
+
]),
|
136
|
+
default: e(() => [
|
137
|
+
i(" " + o(t(n).limitPerson), 1)
|
138
|
+
]),
|
139
|
+
_: 1
|
140
|
+
}),
|
141
|
+
s(u, null, {
|
142
|
+
label: e(() => [
|
143
|
+
a("span", null, [
|
144
|
+
a("div", x, o(l.$t("serviceApptRecord.apptPerson")), 1)
|
145
|
+
])
|
146
|
+
]),
|
147
|
+
default: e(() => [
|
148
|
+
i(" " + o(t(n).apptPerson), 1)
|
149
|
+
]),
|
150
|
+
_: 1
|
151
|
+
})
|
152
|
+
]),
|
153
|
+
_: 1
|
154
|
+
})
|
155
|
+
]),
|
156
|
+
_: 1
|
157
|
+
})
|
158
|
+
]),
|
159
|
+
_: 1
|
160
|
+
}),
|
161
|
+
ee,
|
162
|
+
s(z, {
|
163
|
+
ref_key: "multipleTableRef",
|
164
|
+
ref: R,
|
165
|
+
"is-selection": !1,
|
166
|
+
class: "table-top",
|
167
|
+
"row-key": "recordId",
|
168
|
+
"list-loading": t(A),
|
169
|
+
data: t(D),
|
170
|
+
"table-label": t(k),
|
171
|
+
onSelectionChange: N
|
172
|
+
}, {
|
173
|
+
status: e((c) => [
|
174
|
+
a("span", null, o(t(m).statusDictEnum.getEnumValue(c.data.row.status)), 1)
|
175
|
+
]),
|
176
|
+
_: 1
|
177
|
+
}, 8, ["list-loading", "data", "table-label"])
|
178
|
+
]),
|
179
|
+
_: 1
|
180
|
+
})
|
181
|
+
]);
|
182
|
+
};
|
183
|
+
}
|
184
|
+
});
|
185
|
+
export {
|
186
|
+
ce as default
|
187
|
+
};
|