xyvcard-asset 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +52 -52
- package/dist/assign-BLa-fXcy.mjs +1626 -0
- package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
- package/dist/{edit-CE3u81Q0.mjs → edit-DmRG7fo0.mjs} +1 -1
- package/dist/edit-Dn-QMuy6.mjs +4 -0
- package/dist/edit-FdqpKRgF.mjs +294 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs +547 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs → edit.vue_vue_type_script_setup_true_lang-DSfByOkx.mjs} +146 -139
- package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
- package/dist/index copy-Di49EjkG.mjs +76 -0
- package/dist/index-B4vUTwSW.mjs +171 -0
- package/dist/index-BK24yagy.mjs +1663 -0
- package/dist/index-BW-5IuVN.mjs +91 -0
- package/dist/index-BWwU9hSp.mjs +320 -0
- package/dist/index-BvKWLFdr.mjs +345 -0
- package/dist/index-BwbnYpa1.mjs +29 -0
- package/dist/index-ByVysHgI.mjs +4 -0
- package/dist/index-C5_f5Lce.mjs +213 -0
- package/dist/index-CgAq70-p.mjs +314 -0
- package/dist/index-DElPNxc7.mjs +398 -0
- package/dist/index-De4u-LEl.mjs +325 -0
- package/dist/index-DeBZxOsC.mjs +372 -0
- package/dist/index-Dyo7je0Z.mjs +38 -0
- package/dist/index-FUnFB7nG.mjs +61 -0
- package/dist/index-axEqTssj.mjs +378 -0
- package/dist/index-jOcS7tqC.mjs +311 -0
- package/dist/index-qQuyprvx.mjs +4 -0
- package/dist/index-xyCxQquE.mjs +432 -0
- package/dist/index.mjs +2752 -35
- package/dist/index.vue_vue_type_script_setup_true_lang-05kzecXV.mjs +274 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Bl9nmo3f.mjs +120 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-BtIlu38i.mjs +105 -0
- package/dist/index/345/244/207/344/273/275-CaiMDP8J.mjs +319 -0
- package/dist/style.css +1 -1
- package/dts/src/api/asset/asset-asset/index.d.ts +10 -5
- package/dts/src/api/asset/asset-asset/types.d.ts +39 -23
- package/dts/src/api/asset/asset-asset-detail/index.d.ts +12 -0
- package/dts/src/api/asset/asset-asset-detail/types.d.ts +56 -0
- package/dts/src/api/asset/asset-depreciation-record/index.d.ts +11 -0
- package/dts/src/api/asset/asset-depreciation-record/types.d.ts +38 -0
- package/dts/src/api/asset/asset-inventory-record/index.d.ts +10 -0
- package/dts/src/api/asset/asset-inventory-record/types.d.ts +62 -0
- package/dts/src/api/asset/asset-service-appt-member/index.d.ts +1 -12
- package/dts/src/api/asset/asset-service-appt-member/types.d.ts +1 -44
- package/dts/src/api/asset/asset-service-appt-record/index.d.ts +1 -12
- package/dts/src/api/asset/asset-service-appt-record/types.d.ts +7 -68
- package/dts/src/api/asset/asset-site/index.d.ts +1 -2
- package/dts/src/api/asset/asset-site/types.d.ts +4 -14
- package/dts/src/api/asset/asset-site-service/index.d.ts +1 -2
- package/dts/src/api/asset/asset-site-service/types.d.ts +1 -0
- package/dts/src/api/asset/text/index.d.ts +0 -0
- package/dts/src/api/asset/text/types.d.ts +0 -0
- package/dts/src/api/dict.d.ts +1 -4
- package/dts/src/api/index.d.ts +2 -0
- package/dts/src/components/PeopleSelect/index.vue.d.ts +18 -0
- package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
- package/dts/{components/TMaps/index.vue.d.ts → src/components copy/PeopleSelect/index.vue.d.ts } +5 -7
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +34 -0
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +18 -0
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +34 -0
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index/345/215/225/351/200/211/346/241/206/346/234/200/346/226/260.vue.d.ts" +34 -0
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/tree/351/200/211/346/213/251/346/241/206/344/270/215/345/261/225/347/244/272/346/225/260/346/215/256,/344/270/213/346/226/271/351/242/204/350/247/210/346/225/260/346/215/256.vue.d.ts" +18 -0
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//345/217/214/351/200/211/346/213/251.vue.d.ts" +42 -0
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//351/200/211/346/213/251/344/272/272/345/221/230/index.vue.d.ts" +34 -0
- package/dts/{components/Upload/ImageUpload.vue.d.ts → src/components copy/Upload/ImageUpload.vue.d.ts } +1 -1
- package/dts/src/constant.d.ts +4 -1
- package/dts/src/index.d.ts +3 -1
- package/dts/src/lang/asset/zh-cn.d.ts +59 -1
- package/dts/src/router/page.d.ts +4 -0
- package/dts/src/utils/momentPlugin.d.ts +5 -0
- package/dts/{views/asset/asset-asset/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +12 -5
- package/dts/{views/asset/asset-site → src/views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
- package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
- package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -6
- package/dist/edit-Bo9bnbUP.mjs +0 -492
- package/dist/edit-DJFxVmvv.mjs +0 -624
- package/dist/edit-qp_2xtTZ.mjs +0 -242
- package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +0 -322
- package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +0 -1
- package/dist/index-Bf5U4Ucl.mjs +0 -369
- package/dist/index-Bh2imlN_.mjs +0 -149
- package/dist/index-CHNiaFZk.mjs +0 -291
- package/dist/index-CmlP_Rro.mjs +0 -332
- package/dist/index-Cqw_E8lr.mjs +0 -1269
- package/dist/index-DA_FS24d.mjs +0 -146
- package/dist/index-DKmGNvQl.mjs +0 -370
- package/dist/index-DLxpE9s5.mjs +0 -305
- package/dist/index-DWaL87j5.mjs +0 -89
- package/dist/index-jOnQLJaB.mjs +0 -416
- package/dist/index-pyyjj1xa.mjs +0 -187
- package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +0 -37
- package/dts/api/asset/asset-asset/index.d.ts +0 -20
- package/dts/api/asset/asset-asset/types.d.ts +0 -93
- package/dts/api/asset/asset-service-appt-member/index.d.ts +0 -20
- package/dts/api/asset/asset-service-appt-member/types.d.ts +0 -71
- package/dts/api/asset/asset-service-appt-record/index.d.ts +0 -20
- package/dts/api/asset/asset-service-appt-record/types.d.ts +0 -98
- package/dts/api/asset/asset-site/index.d.ts +0 -15
- package/dts/api/asset/asset-site/types.d.ts +0 -81
- package/dts/api/asset/asset-site-service/index.d.ts +0 -14
- package/dts/api/asset/asset-site-service/types.d.ts +0 -80
- package/dts/api/dict.d.ts +0 -22
- package/dts/api/index.d.ts +0 -14
- package/dts/api/org/union-org/index.d.ts +0 -14
- package/dts/api/org/union-org/types.d.ts +0 -49
- package/dts/components/EnumRadio/index.vue.d.ts +0 -18
- package/dts/components/EnumSelect/index.vue.d.ts +0 -18
- package/dts/constant.d.ts +0 -16
- package/dts/index.d.ts +0 -4
- package/dts/lang/asset/en.d.ts +0 -2
- package/dts/lang/asset/zh-cn.d.ts +0 -91
- package/dts/lang/index.d.ts +0 -1
- package/dts/main.d.ts +0 -4
- package/dts/permission.d.ts +0 -1
- package/dts/router/page.d.ts +0 -2
- package/dts/src/api/org/union-org/index.d.ts +0 -14
- package/dts/src/api/org/union-org/types.d.ts +0 -49
- package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
- package/dts/src/components/EnumSelect/index.vue.d.ts +0 -18
- package/dts/src/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
- package/dts/src/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
- package/dts/utils/common.d.ts +0 -51
- package/dts/utils/index.d.ts +0 -24
- package/dts/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
- package/dts/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
- package/dts/views/asset/asset-site-service/edit.vue.d.ts +0 -22
- /package/dts/{views/asset/asset-asset → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
- /package/dts/{components → src/components copy}/Upload/MultiUpload.vue.d.ts +0 -0
- /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
- /package/dts/{views/asset/asset-service-appt-record → src/views/asset/asset-asset/info}/index.vue.d.ts +0 -0
- /package/dts/{views/asset/asset-service-appt-member → src/views/asset/asset-asset-detail}/index.vue.d.ts +0 -0
- /package/dts/{views/asset/asset-service-appt-record/info → src/views/asset/asset-depreciation-record}/index.vue.d.ts +0 -0
- /package/dts/{views/asset/asset-site-service → src/views/asset/asset-depreciation-record/info}/index.vue.d.ts +0 -0
- /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/index.vue.d.ts +0 -0
- /package/dts/{App.vue.d.ts → src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts"} +0 -0
- /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/info/index.vue.d.ts +0 -0
@@ -0,0 +1,325 @@
|
|
1
|
+
import { defineComponent as F, ref as I, onBeforeMount as H, resolveComponent as u, openBlock as D, createElementBlock as Q, createVNode as l, withCtx as e, createTextVNode as d, toDisplayString as o, unref as t, createBlock as K, isRef as G, createCommentVNode as J, createElementVNode as n } from "vue";
|
2
|
+
import { useUserStore as g, clearEmpty as v, request as h, useTableHooks as O, routerUtil as W } from "jmash-core";
|
3
|
+
import { useI18n as X } from "vue-i18n";
|
4
|
+
import { useRouter as Z, useRoute as x } from "vue-router";
|
5
|
+
import { q as ee, D as V, a as te } from "./index-BK24yagy.mjs";
|
6
|
+
import { c as oe } from "./common-kbgEWG-E.mjs";
|
7
|
+
class ae {
|
8
|
+
getKey(s) {
|
9
|
+
return {
|
10
|
+
recordId: s.recordId
|
11
|
+
};
|
12
|
+
}
|
13
|
+
// 查询翻页信息资产折旧记录
|
14
|
+
findPage(s) {
|
15
|
+
const p = g().user.tenant;
|
16
|
+
return v(s), h({
|
17
|
+
url: "/v1/asset/depreciation_record/page/" + p,
|
18
|
+
method: "get",
|
19
|
+
params: s
|
20
|
+
});
|
21
|
+
}
|
22
|
+
// 查询列表信息资产折旧记录
|
23
|
+
findList(s) {
|
24
|
+
const p = g().user.tenant;
|
25
|
+
return v(s), h({
|
26
|
+
url: "/v1/asset/depreciation_record/list/" + p,
|
27
|
+
method: "get",
|
28
|
+
params: s
|
29
|
+
});
|
30
|
+
}
|
31
|
+
// 查询资产折旧记录
|
32
|
+
findById(s) {
|
33
|
+
const p = g().user.tenant;
|
34
|
+
return v(s), h({
|
35
|
+
url: "/v1/asset/depreciation_record/id/" + p + "/" + s.recordId,
|
36
|
+
method: "get"
|
37
|
+
});
|
38
|
+
}
|
39
|
+
// 导出资产折旧记录Excel文件
|
40
|
+
exportExcel(s) {
|
41
|
+
const p = g().user.tenant;
|
42
|
+
v(s);
|
43
|
+
const f = ee.stringify(s, {
|
44
|
+
arrayFormat: "brackets",
|
45
|
+
allowDots: !0
|
46
|
+
});
|
47
|
+
return h({
|
48
|
+
url: "/v1/asset/depreciation_record/" + p + "/depreciation_records.xlsx?" + f,
|
49
|
+
method: "get",
|
50
|
+
responseType: "blob"
|
51
|
+
});
|
52
|
+
}
|
53
|
+
}
|
54
|
+
const w = new ae(), le = { class: "app-container" }, se = /* @__PURE__ */ n("div", { class: "title-content" }, "资产信息", -1), ne = { class: "cell-item" }, re = { class: "cell-item" }, ie = { class: "cell-item" }, de = { class: "cell-item" }, ce = { class: "cell-item" }, ue = { class: "cell-item" }, me = { class: "cell-item" }, pe = { class: "cell-item" }, _e = { class: "cell-item" }, fe = { class: "cell-item" }, be = /* @__PURE__ */ n("div", { class: "title-content" }, "折旧记录", -1), ye = {
|
55
|
+
class: "search-container",
|
56
|
+
style: { border: "none" }
|
57
|
+
}, Re = /* @__PURE__ */ F({
|
58
|
+
__name: "index",
|
59
|
+
setup(C) {
|
60
|
+
const { t: s } = X(), p = Z(), f = x();
|
61
|
+
V.assetSortDictEnum.useEnumValues();
|
62
|
+
const _ = I({
|
63
|
+
assetId: f.query.assetId
|
64
|
+
}), c = I({}), {
|
65
|
+
tableHooks: $,
|
66
|
+
multipleTableRef: S,
|
67
|
+
queryFormRef: M,
|
68
|
+
listLoading: P,
|
69
|
+
tableData: b,
|
70
|
+
total: y
|
71
|
+
} = O(s, w, _);
|
72
|
+
let E = I([
|
73
|
+
// 折旧年月
|
74
|
+
{
|
75
|
+
label: "depreciationRecord.year",
|
76
|
+
prop: "yearMonth",
|
77
|
+
sortable: "custom",
|
78
|
+
isColumn: !0,
|
79
|
+
slotName: "yearMonth",
|
80
|
+
columnType: "slot"
|
81
|
+
},
|
82
|
+
// 月折旧额
|
83
|
+
{
|
84
|
+
label: "depreciationRecord.depreciationMoney",
|
85
|
+
prop: "depreciationMoney",
|
86
|
+
sortable: "custom",
|
87
|
+
isColumn: !0
|
88
|
+
}
|
89
|
+
]);
|
90
|
+
function q(a) {
|
91
|
+
_.value.year = oe(a).getYear();
|
92
|
+
}
|
93
|
+
function B() {
|
94
|
+
W.closeTagView(f.fullPath, p, !1);
|
95
|
+
}
|
96
|
+
return H(() => {
|
97
|
+
f.query.assetId ? (te.findById({ assetId: f.query.assetId }).then(({ data: a }) => {
|
98
|
+
c.value = a;
|
99
|
+
}), w.findPage({
|
100
|
+
assetId: f.query.assetId
|
101
|
+
}).then(({ data: { results: a } }) => {
|
102
|
+
b.value = a;
|
103
|
+
})) : b.value = [];
|
104
|
+
}), (a, r) => {
|
105
|
+
const k = u("el-button"), T = u("el-col"), L = u("el-row"), m = u("el-descriptions-item"), U = u("el-descriptions"), j = u("el-date-picker"), R = u("el-form-item"), z = u("el-form"), A = u("jmash-table"), N = u("jmash-pagination"), Y = u("el-card");
|
106
|
+
return D(), Q("div", le, [
|
107
|
+
l(Y, {
|
108
|
+
shadow: "never",
|
109
|
+
class: "table-container"
|
110
|
+
}, {
|
111
|
+
header: e(() => [
|
112
|
+
l(L, { justify: "space-between" }, {
|
113
|
+
default: e(() => [
|
114
|
+
l(T, { span: 12 }, {
|
115
|
+
default: e(() => [
|
116
|
+
l(k, {
|
117
|
+
type: "primary",
|
118
|
+
onClick: B
|
119
|
+
}, {
|
120
|
+
default: e(() => [
|
121
|
+
d(o(a.$t("common.back")), 1)
|
122
|
+
]),
|
123
|
+
_: 1
|
124
|
+
})
|
125
|
+
]),
|
126
|
+
_: 1
|
127
|
+
})
|
128
|
+
]),
|
129
|
+
_: 1
|
130
|
+
})
|
131
|
+
]),
|
132
|
+
footer: e(() => [
|
133
|
+
t(y) > 0 ? (D(), K(N, {
|
134
|
+
key: 0,
|
135
|
+
total: t(y),
|
136
|
+
"onUpdate:total": r[3] || (r[3] = (i) => G(y) ? y.value = i : null),
|
137
|
+
"current-page": t(_).curPage,
|
138
|
+
"onUpdate:currentPage": r[4] || (r[4] = (i) => t(_).curPage = i),
|
139
|
+
"page-size": t(_).pageSize,
|
140
|
+
"onUpdate:pageSize": r[5] || (r[5] = (i) => t(_).pageSize = i),
|
141
|
+
onPagination: r[6] || (r[6] = (i) => t($).getList())
|
142
|
+
}, null, 8, ["total", "current-page", "page-size"])) : J("", !0)
|
143
|
+
]),
|
144
|
+
default: e(() => [
|
145
|
+
se,
|
146
|
+
l(U, {
|
147
|
+
class: "margin-top",
|
148
|
+
column: 2,
|
149
|
+
border: ""
|
150
|
+
}, {
|
151
|
+
default: e(() => [
|
152
|
+
l(m, null, {
|
153
|
+
label: e(() => [
|
154
|
+
n("div", ne, o(a.$t("asset.name")), 1)
|
155
|
+
]),
|
156
|
+
default: e(() => [
|
157
|
+
d(" " + o(t(c).name), 1)
|
158
|
+
]),
|
159
|
+
_: 1
|
160
|
+
}),
|
161
|
+
l(m, null, {
|
162
|
+
label: e(() => [
|
163
|
+
n("div", re, o(a.$t("asset.code")), 1)
|
164
|
+
]),
|
165
|
+
default: e(() => [
|
166
|
+
d(" " + o(t(c).code), 1)
|
167
|
+
]),
|
168
|
+
_: 1
|
169
|
+
}),
|
170
|
+
l(m, null, {
|
171
|
+
label: e(() => [
|
172
|
+
n("div", ie, o(a.$t("asset.number")) + "/" + o(a.$t("asset.unit")), 1)
|
173
|
+
]),
|
174
|
+
default: e(() => [
|
175
|
+
d(" " + o(t(c).number) + "/" + o(t(c).unit), 1)
|
176
|
+
]),
|
177
|
+
_: 1
|
178
|
+
}),
|
179
|
+
l(m, null, {
|
180
|
+
label: e(() => [
|
181
|
+
n("div", de, o(a.$t("asset.buyDate")), 1)
|
182
|
+
]),
|
183
|
+
default: e(() => [
|
184
|
+
d(" " + o(t(c).buyDate), 1)
|
185
|
+
]),
|
186
|
+
_: 1
|
187
|
+
}),
|
188
|
+
l(m, null, {
|
189
|
+
label: e(() => [
|
190
|
+
n("div", ce, o(a.$t("asset.assetSort")), 1)
|
191
|
+
]),
|
192
|
+
default: e(() => [
|
193
|
+
d(" " + o(t(V).assetSortDictEnum.getEnumValue(
|
194
|
+
t(c).assetSort
|
195
|
+
)), 1)
|
196
|
+
]),
|
197
|
+
_: 1
|
198
|
+
}),
|
199
|
+
l(m, null, {
|
200
|
+
label: e(() => [
|
201
|
+
n("div", ue, o(a.$t("asset.useLimit")), 1)
|
202
|
+
]),
|
203
|
+
default: e(() => [
|
204
|
+
d(" " + o(t(c).useLimit), 1)
|
205
|
+
]),
|
206
|
+
_: 1
|
207
|
+
}),
|
208
|
+
l(m, null, {
|
209
|
+
label: e(() => [
|
210
|
+
n("div", me, o(a.$t("asset.oldMoney")), 1)
|
211
|
+
]),
|
212
|
+
default: e(() => [
|
213
|
+
d(" " + o(t(c).oldMoney), 1)
|
214
|
+
]),
|
215
|
+
_: 1
|
216
|
+
}),
|
217
|
+
l(m, null, {
|
218
|
+
label: e(() => [
|
219
|
+
n("div", pe, o(a.$t("asset.netSalvage")), 1)
|
220
|
+
]),
|
221
|
+
default: e(() => [
|
222
|
+
d(" " + o(t(c).netSalvage), 1)
|
223
|
+
]),
|
224
|
+
_: 1
|
225
|
+
}),
|
226
|
+
l(m, null, {
|
227
|
+
label: e(() => [
|
228
|
+
n("div", _e, o(a.$t("depreciationRecord.netAssetValue")), 1)
|
229
|
+
]),
|
230
|
+
default: e(() => [
|
231
|
+
d(" " + o(t(c).netAssetValue), 1)
|
232
|
+
]),
|
233
|
+
_: 1
|
234
|
+
}),
|
235
|
+
l(m, null, {
|
236
|
+
label: e(() => [
|
237
|
+
n("div", fe, o(a.$t("depreciationRecord.totalDepreciation")), 1)
|
238
|
+
]),
|
239
|
+
default: e(() => [
|
240
|
+
d(" " + o(t(c).totalDepreciation), 1)
|
241
|
+
]),
|
242
|
+
_: 1
|
243
|
+
})
|
244
|
+
]),
|
245
|
+
_: 1
|
246
|
+
}),
|
247
|
+
be,
|
248
|
+
n("div", ye, [
|
249
|
+
l(z, {
|
250
|
+
ref_key: "queryFormRef",
|
251
|
+
ref: M,
|
252
|
+
model: t(_),
|
253
|
+
inline: !0
|
254
|
+
}, {
|
255
|
+
default: e(() => [
|
256
|
+
l(R, {
|
257
|
+
label: a.$t("depreciationRecord.year"),
|
258
|
+
prop: "selectYear"
|
259
|
+
}, {
|
260
|
+
default: e(() => [
|
261
|
+
l(j, {
|
262
|
+
modelValue: t(_).selectYear,
|
263
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => t(_).selectYear = i),
|
264
|
+
disabled: t(b).length === 0,
|
265
|
+
type: "year",
|
266
|
+
placeholder: a.$t("depreciationRecord.yearPlaceholder"),
|
267
|
+
onChange: q
|
268
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
269
|
+
]),
|
270
|
+
_: 1
|
271
|
+
}, 8, ["label"]),
|
272
|
+
l(R, { class: "search-btn" }, {
|
273
|
+
default: e(() => [
|
274
|
+
l(k, {
|
275
|
+
type: "primary",
|
276
|
+
onClick: r[1] || (r[1] = (i) => t($).handleQuery())
|
277
|
+
}, {
|
278
|
+
default: e(() => [
|
279
|
+
d(o(a.$t("common.search")), 1)
|
280
|
+
]),
|
281
|
+
_: 1
|
282
|
+
}),
|
283
|
+
l(k, {
|
284
|
+
onClick: r[2] || (r[2] = (i) => t($).resetQuery())
|
285
|
+
}, {
|
286
|
+
default: e(() => [
|
287
|
+
d(o(a.$t("common.reset")), 1)
|
288
|
+
]),
|
289
|
+
_: 1
|
290
|
+
})
|
291
|
+
]),
|
292
|
+
_: 1
|
293
|
+
})
|
294
|
+
]),
|
295
|
+
_: 1
|
296
|
+
}, 8, ["model"])
|
297
|
+
]),
|
298
|
+
l(A, {
|
299
|
+
ref_key: "multipleTableRef",
|
300
|
+
ref: S,
|
301
|
+
class: "table-top",
|
302
|
+
"row-key": "assetId",
|
303
|
+
"is-selection": !1,
|
304
|
+
"list-loading": t(P),
|
305
|
+
data: t(b),
|
306
|
+
"table-label": t(E)
|
307
|
+
}, {
|
308
|
+
assetId: e((i) => [
|
309
|
+
n("span", null, o(i.data.row.assetId), 1)
|
310
|
+
]),
|
311
|
+
yearMonth: e((i) => [
|
312
|
+
n("span", null, o(i.data.row.yearMonth), 1)
|
313
|
+
]),
|
314
|
+
_: 1
|
315
|
+
}, 8, ["list-loading", "data", "table-label"])
|
316
|
+
]),
|
317
|
+
_: 1
|
318
|
+
})
|
319
|
+
]);
|
320
|
+
};
|
321
|
+
}
|
322
|
+
});
|
323
|
+
export {
|
324
|
+
Re as default
|
325
|
+
};
|
@@ -0,0 +1,372 @@
|
|
1
|
+
import { defineComponent as le, ref as b, reactive as R, resolveComponent as i, resolveDirective as ae, openBlock as d, createElementBlock as S, createElementVNode as m, createVNode as o, withCtx as l, unref as s, toDisplayString as r, Fragment as oe, renderList as se, createBlock as I, withKeys as L, createTextVNode as g, withDirectives as $, isRef as z, createCommentVNode as j } from "vue";
|
2
|
+
import { D as c, b as ne, S as ie } from "./index-BK24yagy.mjs";
|
3
|
+
import { useI18n as re } from "vue-i18n";
|
4
|
+
import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-DSfByOkx.mjs";
|
5
|
+
import { useTableHooks as de } from "jmash-core";
|
6
|
+
const me = { class: "app-container" }, ce = { class: "search-container" }, pe = /* @__PURE__ */ m("div", { class: "clear" }, null, -1), ve = ["onClick"], fe = ["onClick"], Ve = /* @__PURE__ */ le({
|
7
|
+
__name: "index",
|
8
|
+
setup(_e) {
|
9
|
+
c.unionOrgBizLayDict.useValues(), c.siteDict.useValues();
|
10
|
+
const { t: V } = re(), n = b({
|
11
|
+
curPage: 1,
|
12
|
+
pageSize: 10
|
13
|
+
}), {
|
14
|
+
tableHooks: u,
|
15
|
+
multipleTableRef: T,
|
16
|
+
queryFormRef: U,
|
17
|
+
listLoading: P,
|
18
|
+
tableData: q,
|
19
|
+
total: y
|
20
|
+
} = de(V, ne, n);
|
21
|
+
let v = b([
|
22
|
+
// 所属工会
|
23
|
+
{
|
24
|
+
label: "siteService.orgId",
|
25
|
+
prop: "orgId",
|
26
|
+
slotName: "orgId",
|
27
|
+
columnType: "slot",
|
28
|
+
isColumn: !0
|
29
|
+
},
|
30
|
+
// 场地名称
|
31
|
+
{
|
32
|
+
label: "siteService.siteId",
|
33
|
+
prop: "siteId",
|
34
|
+
slotName: "siteId",
|
35
|
+
columnType: "slot",
|
36
|
+
sortable: "custom",
|
37
|
+
isColumn: !0
|
38
|
+
},
|
39
|
+
// 预约项目
|
40
|
+
{
|
41
|
+
label: "siteService.serviceName",
|
42
|
+
prop: "serviceName",
|
43
|
+
sortable: "custom",
|
44
|
+
isColumn: !0
|
45
|
+
},
|
46
|
+
// 可预约天数
|
47
|
+
{
|
48
|
+
label: "siteService.day",
|
49
|
+
prop: "day",
|
50
|
+
slotName: "day",
|
51
|
+
columnType: "slot",
|
52
|
+
width: "180",
|
53
|
+
sortable: "custom",
|
54
|
+
isColumn: !0
|
55
|
+
},
|
56
|
+
// 管理员姓名
|
57
|
+
{
|
58
|
+
label: "siteService.manager",
|
59
|
+
prop: "manager",
|
60
|
+
sortable: "custom",
|
61
|
+
isColumn: !0,
|
62
|
+
width: "180"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
label: "siteService.status",
|
66
|
+
prop: "status",
|
67
|
+
slotName: "status",
|
68
|
+
columnType: "slot",
|
69
|
+
sortable: "custom",
|
70
|
+
isColumn: !0,
|
71
|
+
width: "180"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
label: "common.operate",
|
75
|
+
width: "150",
|
76
|
+
slotName: "operation",
|
77
|
+
columnType: "slot",
|
78
|
+
fixed: "right",
|
79
|
+
isColumn: !0
|
80
|
+
}
|
81
|
+
]), N = b();
|
82
|
+
function B(a) {
|
83
|
+
n.value.siteId = "";
|
84
|
+
const t = new ie({ orgId: a });
|
85
|
+
t.useValues(), N.value = t.values;
|
86
|
+
}
|
87
|
+
const k = b(""), f = b(!1);
|
88
|
+
let h = R({});
|
89
|
+
function E() {
|
90
|
+
h = R({}), k.value = V("common.add"), f.value = !0;
|
91
|
+
}
|
92
|
+
function K(a) {
|
93
|
+
h.serviceId = a.serviceId, k.value = V("common.edit"), f.value = !0;
|
94
|
+
}
|
95
|
+
function O(a) {
|
96
|
+
u.selectionRows.value = a;
|
97
|
+
}
|
98
|
+
function Q(a) {
|
99
|
+
u.handleSort(a.prop, a.order);
|
100
|
+
}
|
101
|
+
function F(a) {
|
102
|
+
a && u.getList();
|
103
|
+
}
|
104
|
+
return u.getList(), (a, t) => {
|
105
|
+
const A = i("el-tooltip"), H = i("el-tree-select"), _ = i("el-form-item"), p = i("el-col"), G = i("el-option"), J = i("el-select"), M = i("el-input"), W = i("jmash-select"), D = i("el-row"), w = i("el-button"), X = i("el-form"), Y = i("jmash-column-select"), Z = i("jmash-table"), x = i("jmash-pagination"), ee = i("el-card"), C = ae("hasPerm");
|
106
|
+
return d(), S("div", me, [
|
107
|
+
m("div", ce, [
|
108
|
+
o(X, {
|
109
|
+
ref_key: "queryFormRef",
|
110
|
+
ref: U,
|
111
|
+
model: n.value,
|
112
|
+
inline: !0
|
113
|
+
}, {
|
114
|
+
default: l(() => [
|
115
|
+
o(D, null, {
|
116
|
+
default: l(() => [
|
117
|
+
o(p, { span: 6 }, {
|
118
|
+
default: l(() => [
|
119
|
+
o(_, {
|
120
|
+
label: a.$t("siteService.orgId"),
|
121
|
+
prop: "orgId"
|
122
|
+
}, {
|
123
|
+
default: l(() => [
|
124
|
+
o(H, {
|
125
|
+
modelValue: n.value.orgId,
|
126
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.orgId = e),
|
127
|
+
data: s(c).unionOrgBizLayDict.values,
|
128
|
+
filterable: "",
|
129
|
+
clearable: "",
|
130
|
+
"check-strictly": "",
|
131
|
+
"render-after-expand": !1,
|
132
|
+
placeholder: a.$t("siteService.orgIdRequired"),
|
133
|
+
class: "!w-[203px]",
|
134
|
+
onChange: B
|
135
|
+
}, {
|
136
|
+
default: l(({ data: e }) => [
|
137
|
+
m("span", null, [
|
138
|
+
o(A, {
|
139
|
+
class: "box-item",
|
140
|
+
effect: "light",
|
141
|
+
content: e.label,
|
142
|
+
placement: "top"
|
143
|
+
}, {
|
144
|
+
default: l(() => [
|
145
|
+
m("span", null, r(e.label), 1)
|
146
|
+
]),
|
147
|
+
_: 2
|
148
|
+
}, 1032, ["content"])
|
149
|
+
])
|
150
|
+
]),
|
151
|
+
_: 1
|
152
|
+
}, 8, ["modelValue", "data", "placeholder"])
|
153
|
+
]),
|
154
|
+
_: 1
|
155
|
+
}, 8, ["label"])
|
156
|
+
]),
|
157
|
+
_: 1
|
158
|
+
}),
|
159
|
+
o(p, { span: 6 }, {
|
160
|
+
default: l(() => [
|
161
|
+
o(_, {
|
162
|
+
label: a.$t("siteService.siteId"),
|
163
|
+
prop: "siteId"
|
164
|
+
}, {
|
165
|
+
default: l(() => [
|
166
|
+
o(J, {
|
167
|
+
modelValue: n.value.siteId,
|
168
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => n.value.siteId = e),
|
169
|
+
disabled: !n.value.orgId,
|
170
|
+
placeholder: a.$t("siteService.siteIdRequired"),
|
171
|
+
class: "!w-[203px]",
|
172
|
+
clearable: ""
|
173
|
+
}, {
|
174
|
+
default: l(() => [
|
175
|
+
(d(!0), S(oe, null, se(s(N), (e) => (d(), I(G, {
|
176
|
+
key: e.key,
|
177
|
+
label: e.value,
|
178
|
+
value: e.key
|
179
|
+
}, null, 8, ["label", "value"]))), 128))
|
180
|
+
]),
|
181
|
+
_: 1
|
182
|
+
}, 8, ["modelValue", "disabled", "placeholder"])
|
183
|
+
]),
|
184
|
+
_: 1
|
185
|
+
}, 8, ["label"])
|
186
|
+
]),
|
187
|
+
_: 1
|
188
|
+
}),
|
189
|
+
o(p, { span: 6 }, {
|
190
|
+
default: l(() => [
|
191
|
+
o(_, {
|
192
|
+
label: a.$t("siteService.serviceName"),
|
193
|
+
prop: "likeServiceName"
|
194
|
+
}, {
|
195
|
+
default: l(() => [
|
196
|
+
o(M, {
|
197
|
+
modelValue: n.value.likeServiceName,
|
198
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.likeServiceName = e),
|
199
|
+
placeholder: a.$t("siteService.serviceNameRequired"),
|
200
|
+
onKeyup: t[3] || (t[3] = L((e) => s(u).handleQuery(), ["enter"]))
|
201
|
+
}, null, 8, ["modelValue", "placeholder"])
|
202
|
+
]),
|
203
|
+
_: 1
|
204
|
+
}, 8, ["label"])
|
205
|
+
]),
|
206
|
+
_: 1
|
207
|
+
}),
|
208
|
+
o(p, { span: 6 }, {
|
209
|
+
default: l(() => [
|
210
|
+
o(_, {
|
211
|
+
label: a.$t("siteService.status"),
|
212
|
+
prop: "status"
|
213
|
+
}, {
|
214
|
+
default: l(() => [
|
215
|
+
o(W, {
|
216
|
+
modelValue: n.value.status,
|
217
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.status = e),
|
218
|
+
placeholder: a.$t("siteService.statusRequired"),
|
219
|
+
data: s(c).serviceStatusEnum.values,
|
220
|
+
onKeyup: t[5] || (t[5] = L((e) => s(u).handleQuery(), ["enter"]))
|
221
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
222
|
+
]),
|
223
|
+
_: 1
|
224
|
+
}, 8, ["label"])
|
225
|
+
]),
|
226
|
+
_: 1
|
227
|
+
})
|
228
|
+
]),
|
229
|
+
_: 1
|
230
|
+
}),
|
231
|
+
o(_, { class: "search-btn" }, {
|
232
|
+
default: l(() => [
|
233
|
+
o(w, {
|
234
|
+
type: "primary",
|
235
|
+
onClick: t[6] || (t[6] = (e) => s(u).handleQuery())
|
236
|
+
}, {
|
237
|
+
default: l(() => [
|
238
|
+
g(r(a.$t("common.search")), 1)
|
239
|
+
]),
|
240
|
+
_: 1
|
241
|
+
}),
|
242
|
+
o(w, {
|
243
|
+
onClick: t[7] || (t[7] = (e) => s(u).resetQuery())
|
244
|
+
}, {
|
245
|
+
default: l(() => [
|
246
|
+
g(r(a.$t("common.reset")), 1)
|
247
|
+
]),
|
248
|
+
_: 1
|
249
|
+
})
|
250
|
+
]),
|
251
|
+
_: 1
|
252
|
+
})
|
253
|
+
]),
|
254
|
+
_: 1
|
255
|
+
}, 8, ["model"]),
|
256
|
+
pe
|
257
|
+
]),
|
258
|
+
o(ee, {
|
259
|
+
shadow: "never",
|
260
|
+
class: "table-container"
|
261
|
+
}, {
|
262
|
+
header: l(() => [
|
263
|
+
o(D, { justify: "space-between" }, {
|
264
|
+
default: l(() => [
|
265
|
+
o(p, { span: 17 }, {
|
266
|
+
default: l(() => [
|
267
|
+
$((d(), I(w, {
|
268
|
+
type: "primary",
|
269
|
+
onClick: E
|
270
|
+
}, {
|
271
|
+
default: l(() => [
|
272
|
+
g(r(a.$t("common.add")), 1)
|
273
|
+
]),
|
274
|
+
_: 1
|
275
|
+
})), [
|
276
|
+
[C, ["asset:site_service:add"]]
|
277
|
+
])
|
278
|
+
]),
|
279
|
+
_: 1
|
280
|
+
}),
|
281
|
+
o(p, {
|
282
|
+
span: 7,
|
283
|
+
class: "container-float"
|
284
|
+
}, {
|
285
|
+
default: l(() => [
|
286
|
+
o(Y, {
|
287
|
+
modelValue: s(v),
|
288
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => z(v) ? v.value = e : v = e),
|
289
|
+
"label-name": "asset/asset-site-service"
|
290
|
+
}, null, 8, ["modelValue"])
|
291
|
+
]),
|
292
|
+
_: 1
|
293
|
+
})
|
294
|
+
]),
|
295
|
+
_: 1
|
296
|
+
})
|
297
|
+
]),
|
298
|
+
footer: l(() => [
|
299
|
+
s(y) > 0 ? (d(), I(x, {
|
300
|
+
key: 0,
|
301
|
+
total: s(y),
|
302
|
+
"onUpdate:total": t[9] || (t[9] = (e) => z(y) ? y.value = e : null),
|
303
|
+
"current-page": n.value.curPage,
|
304
|
+
"onUpdate:currentPage": t[10] || (t[10] = (e) => n.value.curPage = e),
|
305
|
+
"page-size": n.value.pageSize,
|
306
|
+
"onUpdate:pageSize": t[11] || (t[11] = (e) => n.value.pageSize = e),
|
307
|
+
onPagination: t[12] || (t[12] = (e) => s(u).getList())
|
308
|
+
}, null, 8, ["total", "current-page", "page-size"])) : j("", !0)
|
309
|
+
]),
|
310
|
+
default: l(() => [
|
311
|
+
o(Z, {
|
312
|
+
ref_key: "multipleTableRef",
|
313
|
+
ref: T,
|
314
|
+
class: "table-top",
|
315
|
+
"row-key": "serviceId",
|
316
|
+
"list-loading": s(P),
|
317
|
+
data: s(q),
|
318
|
+
"table-label": s(v),
|
319
|
+
onSelectionChange: O,
|
320
|
+
onSortChange: Q
|
321
|
+
}, {
|
322
|
+
orgId: l((e) => [
|
323
|
+
m("span", null, r(s(c).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
|
324
|
+
]),
|
325
|
+
siteId: l((e) => [
|
326
|
+
m("span", null, r(s(c).siteDict.getValue(e.data.row.siteId)), 1)
|
327
|
+
]),
|
328
|
+
day: l((e) => [
|
329
|
+
m("span", null, r(e.data.row.minDay) + " - " + r(e.data.row.maxDay), 1)
|
330
|
+
]),
|
331
|
+
status: l((e) => [
|
332
|
+
m("span", null, r(s(c).serviceStatusEnum.getEnumValue(e.data.row.status)), 1)
|
333
|
+
]),
|
334
|
+
operation: l((e) => [
|
335
|
+
$((d(), S("span", {
|
336
|
+
class: "el-button-color",
|
337
|
+
onClick: (te) => K(e.data.row)
|
338
|
+
}, [
|
339
|
+
g(r(a.$t("common.edit")), 1)
|
340
|
+
], 8, ve)), [
|
341
|
+
[C, ["asset:site_service:update"]]
|
342
|
+
]),
|
343
|
+
$((d(), S("span", {
|
344
|
+
class: "el-button-color dropdown-left",
|
345
|
+
onClick: (te) => s(u).deleteRecord(e.data.row)
|
346
|
+
}, [
|
347
|
+
g(r(a.$t("common.delete")), 1)
|
348
|
+
], 8, fe)), [
|
349
|
+
[C, ["asset:site_service:delete"]]
|
350
|
+
])
|
351
|
+
]),
|
352
|
+
_: 1
|
353
|
+
}, 8, ["list-loading", "data", "table-label"])
|
354
|
+
]),
|
355
|
+
_: 1
|
356
|
+
}),
|
357
|
+
f.value ? (d(), I(ue, {
|
358
|
+
key: 0,
|
359
|
+
modelValue: f.value,
|
360
|
+
"onUpdate:modelValue": t[13] || (t[13] = (e) => f.value = e),
|
361
|
+
title: k.value,
|
362
|
+
"entity-key": s(h),
|
363
|
+
width: "900px",
|
364
|
+
onRefresh: F
|
365
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : j("", !0)
|
366
|
+
]);
|
367
|
+
};
|
368
|
+
}
|
369
|
+
});
|
370
|
+
export {
|
371
|
+
Ve as default
|
372
|
+
};
|