xyvcard-asset 0.0.8 → 0.0.10
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-DzQUNp-Y.mjs +1626 -0
- package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
- package/dist/{edit-CE3u81Q0.mjs → edit-DdzPtYyH.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-BdkCgqqE.mjs → edit.vue_vue_type_script_setup_true_lang-BP4-GiBE.mjs} +152 -145
- package/dist/edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs +547 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
- package/dist/index copy-CxTCJcvX.mjs +75 -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-C5_f5Lce.mjs +213 -0
- package/dist/index-CSMEsPcN.mjs +432 -0
- package/dist/index-CgAq70-p.mjs +314 -0
- package/dist/index-CugJCeed.mjs +373 -0
- package/dist/index-DElPNxc7.mjs +398 -0
- package/dist/index-De4u-LEl.mjs +325 -0
- package/dist/index-Dyo7je0Z.mjs +38 -0
- package/dist/index-FUnFB7nG.mjs +61 -0
- package/dist/index-GhvyIwc3.mjs +4 -0
- package/dist/index-axEqTssj.mjs +378 -0
- package/dist/index-jOcS7tqC.mjs +311 -0
- package/dist/index-pfeu6d82.mjs +4 -0
- package/dist/index.mjs +2753 -35
- package/dist/index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs +110 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Dh1DZzIU.mjs +54 -0
- package/dist/index/345/244/207/344/273/275-BfKo5eBT.mjs +323 -0
- package/dist/style.css +1 -1
- package/dts/api/asset/asset-asset/index.d.ts +10 -5
- package/dts/api/asset/asset-asset/types.d.ts +39 -23
- package/dts/api/asset/asset-asset-detail/index.d.ts +12 -0
- package/dts/api/asset/asset-asset-detail/types.d.ts +56 -0
- package/dts/api/asset/asset-depreciation-record/index.d.ts +11 -0
- package/dts/api/asset/asset-depreciation-record/types.d.ts +38 -0
- package/dts/api/asset/asset-inventory-record/index.d.ts +10 -0
- package/dts/api/asset/asset-inventory-record/types.d.ts +62 -0
- package/dts/api/asset/asset-service-appt-member/index.d.ts +1 -12
- package/dts/api/asset/asset-service-appt-member/types.d.ts +1 -44
- package/dts/api/asset/asset-service-appt-record/index.d.ts +1 -12
- package/dts/api/asset/asset-service-appt-record/types.d.ts +7 -68
- package/dts/api/asset/asset-site/index.d.ts +1 -2
- package/dts/api/asset/asset-site/types.d.ts +4 -14
- package/dts/api/asset/asset-site-service/index.d.ts +1 -2
- package/dts/api/asset/asset-site-service/types.d.ts +1 -0
- package/dts/api/asset/text/index.d.ts +140 -0
- package/dts/api/asset/text/types.d.ts +179 -0
- package/dts/api/dict.d.ts +1 -4
- package/dts/api/index.d.ts +2 -0
- package/dts/components/{TMaps → PeopleSelectAsset}/index.vue.d.ts +5 -7
- package/dts/components/Upload/ImageUpload.vue.d.ts +1 -1
- package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +14 -0
- package/dts/constant.d.ts +4 -1
- package/dts/index.d.ts +3 -1
- package/dts/lang/asset/zh-cn.d.ts +60 -1
- package/dts/router/page.d.ts +6 -0
- 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/src/components copy/PeopleSelect/index.vue.d.ts +18 -0
- 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/src/components copy/Upload/ImageUpload.vue.d.ts +38 -0
- package/dts/src/components copy/Upload/MultiUpload.vue.d.ts +24 -0
- 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-service-appt-member/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +14 -7
- package/dts/src/views/asset/asset-asset/info/index.vue.d.ts +2 -0
- package/dts/src/views/asset/{asset-service-appt-member → asset-asset-detail}/edit.vue.d.ts +5 -7
- package/dts/src/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
- package/dts/src/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -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/dts/utils/momentPlugin.d.ts +5 -0
- package/dts/views/asset/{asset-service-appt-record/edit.vue.d.ts → asset-asset/assign.vue.d.ts} +14 -7
- package/dts/views/asset/asset-asset/info/index.vue.d.ts +2 -0
- package/dts/{src/views/asset/asset-service-appt-record → views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
- package/dts/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
- package/dts/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
- 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/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/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/{views/asset/asset-service-appt-member → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
- /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
@@ -0,0 +1,314 @@
|
|
1
|
+
import { defineComponent as K, ref as S, resolveComponent as r, resolveDirective as F, openBlock as c, createElementBlock as k, createElementVNode as y, createVNode as a, withCtx as o, unref as l, withKeys as V, createTextVNode as d, toDisplayString as u, withDirectives as g, createBlock as w, isRef as $, createCommentVNode as H } from "vue";
|
2
|
+
import { useTableHooks as M } from "jmash-core";
|
3
|
+
import { useI18n as x } from "vue-i18n";
|
4
|
+
import { D as R, a as G } from "./index-BK24yagy.mjs";
|
5
|
+
import { useRouter as J } from "vue-router";
|
6
|
+
const O = { class: "app-container" }, W = { class: "search-container" }, X = ["onClick"], ne = /* @__PURE__ */ K({
|
7
|
+
__name: "index",
|
8
|
+
setup(Y) {
|
9
|
+
const { t: C } = x(), D = J();
|
10
|
+
R.assetSortDictEnum.useEnumValues();
|
11
|
+
const s = S({}), {
|
12
|
+
tableHooks: i,
|
13
|
+
multipleTableRef: N,
|
14
|
+
queryFormRef: j,
|
15
|
+
listLoading: P,
|
16
|
+
tableData: E,
|
17
|
+
total: b
|
18
|
+
} = M(C, G, s);
|
19
|
+
let p = S([
|
20
|
+
// 资产名称
|
21
|
+
{
|
22
|
+
label: "depreciationRecord.name",
|
23
|
+
prop: "name",
|
24
|
+
sortable: "custom",
|
25
|
+
isColumn: !0
|
26
|
+
},
|
27
|
+
// 资产编号
|
28
|
+
{
|
29
|
+
label: "depreciationRecord.code",
|
30
|
+
prop: "code",
|
31
|
+
sortable: "custom",
|
32
|
+
isColumn: !0
|
33
|
+
},
|
34
|
+
// 数量及单位
|
35
|
+
{
|
36
|
+
label: "depreciationRecord.number",
|
37
|
+
prop: "number",
|
38
|
+
width: "120",
|
39
|
+
sortable: "custom",
|
40
|
+
isColumn: !0,
|
41
|
+
slotName: "number",
|
42
|
+
columnType: "slot"
|
43
|
+
},
|
44
|
+
// 购买日期
|
45
|
+
{
|
46
|
+
label: "depreciationRecord.buyDate",
|
47
|
+
prop: "buyDate",
|
48
|
+
width: "150",
|
49
|
+
sortable: "custom",
|
50
|
+
isColumn: !0
|
51
|
+
},
|
52
|
+
// 资产属性
|
53
|
+
{
|
54
|
+
label: "depreciationRecord.assetSort",
|
55
|
+
prop: "assetSort",
|
56
|
+
width: "150",
|
57
|
+
sortable: "custom",
|
58
|
+
isColumn: !0,
|
59
|
+
slotName: "assetSort",
|
60
|
+
columnType: "slot"
|
61
|
+
},
|
62
|
+
// 折旧年限
|
63
|
+
{
|
64
|
+
label: "depreciationRecord.useLimit",
|
65
|
+
prop: "useLimit",
|
66
|
+
width: "150",
|
67
|
+
sortable: "custom",
|
68
|
+
isColumn: !0
|
69
|
+
},
|
70
|
+
// 资产原值
|
71
|
+
{
|
72
|
+
label: "depreciationRecord.oldMoney",
|
73
|
+
prop: "oldMoney",
|
74
|
+
width: "120",
|
75
|
+
sortable: "custom",
|
76
|
+
isColumn: !0
|
77
|
+
},
|
78
|
+
// 预计净残值
|
79
|
+
{
|
80
|
+
label: "depreciationRecord.netSalvage",
|
81
|
+
prop: "netSalvage",
|
82
|
+
width: "120",
|
83
|
+
sortable: "custom",
|
84
|
+
isColumn: !0
|
85
|
+
},
|
86
|
+
// 累计折旧额
|
87
|
+
{
|
88
|
+
label: "depreciationRecord.totalDepreciation",
|
89
|
+
prop: "totalDepreciation",
|
90
|
+
width: "120",
|
91
|
+
sortable: "custom",
|
92
|
+
isColumn: !0
|
93
|
+
},
|
94
|
+
// 资产净值
|
95
|
+
{
|
96
|
+
label: "depreciationRecord.netAssetValue",
|
97
|
+
prop: "netAssetValue",
|
98
|
+
width: "120",
|
99
|
+
sortable: "custom",
|
100
|
+
isColumn: !0
|
101
|
+
},
|
102
|
+
{
|
103
|
+
label: "common.operate",
|
104
|
+
width: "80",
|
105
|
+
slotName: "operation",
|
106
|
+
columnType: "slot",
|
107
|
+
fixed: "right",
|
108
|
+
isColumn: !0
|
109
|
+
}
|
110
|
+
]);
|
111
|
+
function T(n) {
|
112
|
+
i.selectionRows.value = n;
|
113
|
+
}
|
114
|
+
function I(n) {
|
115
|
+
D.push({
|
116
|
+
path: "/asset/asset-depreciation-record/depreciationInfo",
|
117
|
+
query: {
|
118
|
+
assetId: n.assetId
|
119
|
+
}
|
120
|
+
});
|
121
|
+
}
|
122
|
+
return i.getList(), (n, e) => {
|
123
|
+
const L = r("jmash-select"), _ = r("el-form-item"), m = r("el-col"), U = r("el-input"), f = r("el-button"), h = r("el-row"), z = r("el-form"), q = r("jmash-column-select"), Q = r("jmash-table"), A = r("jmash-pagination"), B = r("el-card"), v = F("hasPerm");
|
124
|
+
return c(), k("div", O, [
|
125
|
+
y("div", W, [
|
126
|
+
a(z, {
|
127
|
+
ref_key: "queryFormRef",
|
128
|
+
ref: j,
|
129
|
+
model: s.value,
|
130
|
+
inline: !0
|
131
|
+
}, {
|
132
|
+
default: o(() => [
|
133
|
+
a(h, null, {
|
134
|
+
default: o(() => [
|
135
|
+
a(m, { span: 6 }, {
|
136
|
+
default: o(() => [
|
137
|
+
a(_, {
|
138
|
+
label: n.$t("depreciationRecord.assetSort"),
|
139
|
+
prop: "assetSort"
|
140
|
+
}, {
|
141
|
+
default: o(() => [
|
142
|
+
a(L, {
|
143
|
+
modelValue: s.value.assetSort,
|
144
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => s.value.assetSort = t),
|
145
|
+
placeholder: n.$t("depreciationRecord.assetSortPlaceholder"),
|
146
|
+
data: l(R).assetSortDictEnum.values,
|
147
|
+
onKeyup: e[1] || (e[1] = V((t) => l(i).handleQuery(), ["enter"]))
|
148
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
149
|
+
]),
|
150
|
+
_: 1
|
151
|
+
}, 8, ["label"])
|
152
|
+
]),
|
153
|
+
_: 1
|
154
|
+
}),
|
155
|
+
a(m, { span: 6 }, {
|
156
|
+
default: o(() => [
|
157
|
+
a(_, {
|
158
|
+
label: n.$t("depreciationRecord.name"),
|
159
|
+
prop: "likeName"
|
160
|
+
}, {
|
161
|
+
default: o(() => [
|
162
|
+
a(U, {
|
163
|
+
modelValue: s.value.likeName,
|
164
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => s.value.likeName = t),
|
165
|
+
placeholder: n.$t("depreciationRecord.namePlaceholder"),
|
166
|
+
onKeyup: e[3] || (e[3] = V((t) => l(i).handleQuery(), ["enter"]))
|
167
|
+
}, null, 8, ["modelValue", "placeholder"])
|
168
|
+
]),
|
169
|
+
_: 1
|
170
|
+
}, 8, ["label"])
|
171
|
+
]),
|
172
|
+
_: 1
|
173
|
+
}),
|
174
|
+
a(m, { span: 12 }, {
|
175
|
+
default: o(() => [
|
176
|
+
a(_, { class: "search-btn" }, {
|
177
|
+
default: o(() => [
|
178
|
+
a(f, {
|
179
|
+
type: "primary",
|
180
|
+
onClick: e[4] || (e[4] = (t) => l(i).handleQuery())
|
181
|
+
}, {
|
182
|
+
default: o(() => [
|
183
|
+
d(u(n.$t("common.search")), 1)
|
184
|
+
]),
|
185
|
+
_: 1
|
186
|
+
}),
|
187
|
+
a(f, {
|
188
|
+
onClick: e[5] || (e[5] = (t) => l(i).resetQuery())
|
189
|
+
}, {
|
190
|
+
default: o(() => [
|
191
|
+
d(u(n.$t("common.reset")), 1)
|
192
|
+
]),
|
193
|
+
_: 1
|
194
|
+
})
|
195
|
+
]),
|
196
|
+
_: 1
|
197
|
+
})
|
198
|
+
]),
|
199
|
+
_: 1
|
200
|
+
})
|
201
|
+
]),
|
202
|
+
_: 1
|
203
|
+
})
|
204
|
+
]),
|
205
|
+
_: 1
|
206
|
+
}, 8, ["model"])
|
207
|
+
]),
|
208
|
+
a(B, {
|
209
|
+
shadow: "never",
|
210
|
+
class: "table-container"
|
211
|
+
}, {
|
212
|
+
header: o(() => [
|
213
|
+
a(h, {
|
214
|
+
justify: "space-between",
|
215
|
+
span: 20
|
216
|
+
}, {
|
217
|
+
default: o(() => [
|
218
|
+
a(m, { span: 12 }, {
|
219
|
+
default: o(() => [
|
220
|
+
g((c(), w(f, {
|
221
|
+
type: "primary",
|
222
|
+
onClick: e[6] || (e[6] = (t) => l(i).deleteRecords())
|
223
|
+
}, {
|
224
|
+
default: o(() => [
|
225
|
+
d(u(n.$t("common.batchDelete")), 1)
|
226
|
+
]),
|
227
|
+
_: 1
|
228
|
+
})), [
|
229
|
+
[v, ["asset:depreciation_record:delete"]]
|
230
|
+
])
|
231
|
+
]),
|
232
|
+
_: 1
|
233
|
+
}),
|
234
|
+
a(m, {
|
235
|
+
span: 8,
|
236
|
+
align: "right"
|
237
|
+
}, {
|
238
|
+
default: o(() => [
|
239
|
+
g((c(), w(f, {
|
240
|
+
plain: "",
|
241
|
+
type: "primary",
|
242
|
+
onClick: e[7] || (e[7] = (t) => l(i).handleExport(l(C)("asset.depreciationRecord.name")))
|
243
|
+
}, {
|
244
|
+
default: o(() => [
|
245
|
+
d(u(n.$t("common.export")), 1)
|
246
|
+
]),
|
247
|
+
_: 1
|
248
|
+
})), [
|
249
|
+
[v, ["asset:depreciation_record:export"]]
|
250
|
+
]),
|
251
|
+
a(q, {
|
252
|
+
modelValue: l(p),
|
253
|
+
"onUpdate:modelValue": e[8] || (e[8] = (t) => $(p) ? p.value = t : p = t),
|
254
|
+
"label-name": "asset/asset-depreciation-record"
|
255
|
+
}, null, 8, ["modelValue"])
|
256
|
+
]),
|
257
|
+
_: 1
|
258
|
+
})
|
259
|
+
]),
|
260
|
+
_: 1
|
261
|
+
})
|
262
|
+
]),
|
263
|
+
footer: o(() => [
|
264
|
+
l(b) > 0 ? (c(), w(A, {
|
265
|
+
key: 0,
|
266
|
+
total: l(b),
|
267
|
+
"onUpdate:total": e[9] || (e[9] = (t) => $(b) ? b.value = t : null),
|
268
|
+
"current-page": s.value.curPage,
|
269
|
+
"onUpdate:currentPage": e[10] || (e[10] = (t) => s.value.curPage = t),
|
270
|
+
"page-size": s.value.pageSize,
|
271
|
+
"onUpdate:pageSize": e[11] || (e[11] = (t) => s.value.pageSize = t),
|
272
|
+
onPagination: e[12] || (e[12] = (t) => l(i).getList())
|
273
|
+
}, null, 8, ["total", "current-page", "page-size"])) : H("", !0),
|
274
|
+
d(" ")
|
275
|
+
]),
|
276
|
+
default: o(() => [
|
277
|
+
a(Q, {
|
278
|
+
ref_key: "multipleTableRef",
|
279
|
+
ref: N,
|
280
|
+
class: "table-top",
|
281
|
+
"row-key": "recordId",
|
282
|
+
"list-loading": l(P),
|
283
|
+
data: l(E),
|
284
|
+
"table-label": l(p),
|
285
|
+
onSelectionChange: T
|
286
|
+
}, {
|
287
|
+
number: o((t) => [
|
288
|
+
y("span", null, u(t.data.row.number) + "/" + u(t.data.row.unit), 1)
|
289
|
+
]),
|
290
|
+
assetSort: o((t) => [
|
291
|
+
y("span", null, u(l(R).assetSortDictEnum.getEnumValue(t.data.row.assetSort)), 1)
|
292
|
+
]),
|
293
|
+
operation: o((t) => [
|
294
|
+
g((c(), k("span", {
|
295
|
+
class: "el-button-color",
|
296
|
+
onClick: (Z) => I(t.data.row)
|
297
|
+
}, [
|
298
|
+
d(u(n.$t("common.view")), 1)
|
299
|
+
], 8, X)), [
|
300
|
+
[v, ["asset:depreciation_record:view"]]
|
301
|
+
])
|
302
|
+
]),
|
303
|
+
_: 1
|
304
|
+
}, 8, ["list-loading", "data", "table-label"])
|
305
|
+
]),
|
306
|
+
_: 1
|
307
|
+
})
|
308
|
+
]);
|
309
|
+
};
|
310
|
+
}
|
311
|
+
});
|
312
|
+
export {
|
313
|
+
ne as default
|
314
|
+
};
|
@@ -0,0 +1,373 @@
|
|
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-BP4-GiBE.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
|
+
{
|
66
|
+
label: "siteService.status",
|
67
|
+
prop: "status",
|
68
|
+
slotName: "status",
|
69
|
+
columnType: "slot",
|
70
|
+
sortable: "custom",
|
71
|
+
isColumn: !0,
|
72
|
+
width: "180"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
label: "common.operate",
|
76
|
+
width: "150",
|
77
|
+
slotName: "operation",
|
78
|
+
columnType: "slot",
|
79
|
+
fixed: "right",
|
80
|
+
isColumn: !0
|
81
|
+
}
|
82
|
+
]), N = b();
|
83
|
+
function B(a) {
|
84
|
+
n.value.siteId = "";
|
85
|
+
const t = new ie({ orgId: a });
|
86
|
+
t.useValues(), N.value = t.values;
|
87
|
+
}
|
88
|
+
const k = b(""), f = b(!1);
|
89
|
+
let h = R({});
|
90
|
+
function E() {
|
91
|
+
h = R({}), k.value = V("common.add"), f.value = !0;
|
92
|
+
}
|
93
|
+
function K(a) {
|
94
|
+
h.serviceId = a.serviceId, k.value = V("common.edit"), f.value = !0;
|
95
|
+
}
|
96
|
+
function O(a) {
|
97
|
+
u.selectionRows.value = a;
|
98
|
+
}
|
99
|
+
function Q(a) {
|
100
|
+
u.handleSort(a.prop, a.order);
|
101
|
+
}
|
102
|
+
function F(a) {
|
103
|
+
a && u.getList();
|
104
|
+
}
|
105
|
+
return u.getList(), (a, t) => {
|
106
|
+
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");
|
107
|
+
return d(), S("div", me, [
|
108
|
+
m("div", ce, [
|
109
|
+
o(X, {
|
110
|
+
ref_key: "queryFormRef",
|
111
|
+
ref: U,
|
112
|
+
model: n.value,
|
113
|
+
inline: !0
|
114
|
+
}, {
|
115
|
+
default: l(() => [
|
116
|
+
o(D, null, {
|
117
|
+
default: l(() => [
|
118
|
+
o(p, { span: 6 }, {
|
119
|
+
default: l(() => [
|
120
|
+
o(_, {
|
121
|
+
label: a.$t("siteService.orgId"),
|
122
|
+
prop: "orgId"
|
123
|
+
}, {
|
124
|
+
default: l(() => [
|
125
|
+
o(H, {
|
126
|
+
modelValue: n.value.orgId,
|
127
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.orgId = e),
|
128
|
+
data: s(c).unionOrgBizLayDict.values,
|
129
|
+
filterable: "",
|
130
|
+
clearable: "",
|
131
|
+
"check-strictly": "",
|
132
|
+
"render-after-expand": !1,
|
133
|
+
placeholder: a.$t("siteService.orgIdRequired"),
|
134
|
+
class: "!w-[203px]",
|
135
|
+
onChange: B
|
136
|
+
}, {
|
137
|
+
default: l(({ data: e }) => [
|
138
|
+
m("span", null, [
|
139
|
+
o(A, {
|
140
|
+
class: "box-item",
|
141
|
+
effect: "light",
|
142
|
+
content: e.label,
|
143
|
+
placement: "top"
|
144
|
+
}, {
|
145
|
+
default: l(() => [
|
146
|
+
m("span", null, r(e.label), 1)
|
147
|
+
]),
|
148
|
+
_: 2
|
149
|
+
}, 1032, ["content"])
|
150
|
+
])
|
151
|
+
]),
|
152
|
+
_: 1
|
153
|
+
}, 8, ["modelValue", "data", "placeholder"])
|
154
|
+
]),
|
155
|
+
_: 1
|
156
|
+
}, 8, ["label"])
|
157
|
+
]),
|
158
|
+
_: 1
|
159
|
+
}),
|
160
|
+
o(p, { span: 6 }, {
|
161
|
+
default: l(() => [
|
162
|
+
o(_, {
|
163
|
+
label: a.$t("siteService.siteId"),
|
164
|
+
prop: "siteId"
|
165
|
+
}, {
|
166
|
+
default: l(() => [
|
167
|
+
o(J, {
|
168
|
+
modelValue: n.value.siteId,
|
169
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => n.value.siteId = e),
|
170
|
+
disabled: !n.value.orgId,
|
171
|
+
placeholder: a.$t("siteService.siteIdRequired"),
|
172
|
+
class: "!w-[203px]",
|
173
|
+
clearable: ""
|
174
|
+
}, {
|
175
|
+
default: l(() => [
|
176
|
+
(d(!0), S(oe, null, se(s(N), (e) => (d(), I(G, {
|
177
|
+
key: e.key,
|
178
|
+
label: e.value,
|
179
|
+
value: e.key
|
180
|
+
}, null, 8, ["label", "value"]))), 128))
|
181
|
+
]),
|
182
|
+
_: 1
|
183
|
+
}, 8, ["modelValue", "disabled", "placeholder"])
|
184
|
+
]),
|
185
|
+
_: 1
|
186
|
+
}, 8, ["label"])
|
187
|
+
]),
|
188
|
+
_: 1
|
189
|
+
}),
|
190
|
+
o(p, { span: 6 }, {
|
191
|
+
default: l(() => [
|
192
|
+
o(_, {
|
193
|
+
label: a.$t("siteService.serviceName"),
|
194
|
+
prop: "likeServiceName"
|
195
|
+
}, {
|
196
|
+
default: l(() => [
|
197
|
+
o(M, {
|
198
|
+
modelValue: n.value.likeServiceName,
|
199
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.likeServiceName = e),
|
200
|
+
placeholder: a.$t("siteService.serviceNameRequired"),
|
201
|
+
onKeyup: t[3] || (t[3] = L((e) => s(u).handleQuery(), ["enter"]))
|
202
|
+
}, null, 8, ["modelValue", "placeholder"])
|
203
|
+
]),
|
204
|
+
_: 1
|
205
|
+
}, 8, ["label"])
|
206
|
+
]),
|
207
|
+
_: 1
|
208
|
+
}),
|
209
|
+
o(p, { span: 6 }, {
|
210
|
+
default: l(() => [
|
211
|
+
o(_, {
|
212
|
+
label: a.$t("siteService.status"),
|
213
|
+
prop: "status"
|
214
|
+
}, {
|
215
|
+
default: l(() => [
|
216
|
+
o(W, {
|
217
|
+
modelValue: n.value.status,
|
218
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.status = e),
|
219
|
+
placeholder: a.$t("siteService.statusRequired"),
|
220
|
+
data: s(c).serviceStatusEnum.values,
|
221
|
+
onKeyup: t[5] || (t[5] = L((e) => s(u).handleQuery(), ["enter"]))
|
222
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
223
|
+
]),
|
224
|
+
_: 1
|
225
|
+
}, 8, ["label"])
|
226
|
+
]),
|
227
|
+
_: 1
|
228
|
+
})
|
229
|
+
]),
|
230
|
+
_: 1
|
231
|
+
}),
|
232
|
+
o(_, { class: "search-btn" }, {
|
233
|
+
default: l(() => [
|
234
|
+
o(w, {
|
235
|
+
type: "primary",
|
236
|
+
onClick: t[6] || (t[6] = (e) => s(u).handleQuery())
|
237
|
+
}, {
|
238
|
+
default: l(() => [
|
239
|
+
g(r(a.$t("common.search")), 1)
|
240
|
+
]),
|
241
|
+
_: 1
|
242
|
+
}),
|
243
|
+
o(w, {
|
244
|
+
onClick: t[7] || (t[7] = (e) => s(u).resetQuery())
|
245
|
+
}, {
|
246
|
+
default: l(() => [
|
247
|
+
g(r(a.$t("common.reset")), 1)
|
248
|
+
]),
|
249
|
+
_: 1
|
250
|
+
})
|
251
|
+
]),
|
252
|
+
_: 1
|
253
|
+
})
|
254
|
+
]),
|
255
|
+
_: 1
|
256
|
+
}, 8, ["model"]),
|
257
|
+
pe
|
258
|
+
]),
|
259
|
+
o(ee, {
|
260
|
+
shadow: "never",
|
261
|
+
class: "table-container"
|
262
|
+
}, {
|
263
|
+
header: l(() => [
|
264
|
+
o(D, { justify: "space-between" }, {
|
265
|
+
default: l(() => [
|
266
|
+
o(p, { span: 17 }, {
|
267
|
+
default: l(() => [
|
268
|
+
$((d(), I(w, {
|
269
|
+
type: "primary",
|
270
|
+
onClick: E
|
271
|
+
}, {
|
272
|
+
default: l(() => [
|
273
|
+
g(r(a.$t("common.add")), 1)
|
274
|
+
]),
|
275
|
+
_: 1
|
276
|
+
})), [
|
277
|
+
[C, ["asset:site_service:add"]]
|
278
|
+
])
|
279
|
+
]),
|
280
|
+
_: 1
|
281
|
+
}),
|
282
|
+
o(p, {
|
283
|
+
span: 7,
|
284
|
+
class: "container-float"
|
285
|
+
}, {
|
286
|
+
default: l(() => [
|
287
|
+
o(Y, {
|
288
|
+
modelValue: s(v),
|
289
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => z(v) ? v.value = e : v = e),
|
290
|
+
"label-name": "asset/asset-site-service"
|
291
|
+
}, null, 8, ["modelValue"])
|
292
|
+
]),
|
293
|
+
_: 1
|
294
|
+
})
|
295
|
+
]),
|
296
|
+
_: 1
|
297
|
+
})
|
298
|
+
]),
|
299
|
+
footer: l(() => [
|
300
|
+
s(y) > 0 ? (d(), I(x, {
|
301
|
+
key: 0,
|
302
|
+
total: s(y),
|
303
|
+
"onUpdate:total": t[9] || (t[9] = (e) => z(y) ? y.value = e : null),
|
304
|
+
"current-page": n.value.curPage,
|
305
|
+
"onUpdate:currentPage": t[10] || (t[10] = (e) => n.value.curPage = e),
|
306
|
+
"page-size": n.value.pageSize,
|
307
|
+
"onUpdate:pageSize": t[11] || (t[11] = (e) => n.value.pageSize = e),
|
308
|
+
onPagination: t[12] || (t[12] = (e) => s(u).getList())
|
309
|
+
}, null, 8, ["total", "current-page", "page-size"])) : j("", !0)
|
310
|
+
]),
|
311
|
+
default: l(() => [
|
312
|
+
o(Z, {
|
313
|
+
ref_key: "multipleTableRef",
|
314
|
+
ref: T,
|
315
|
+
class: "table-top",
|
316
|
+
"row-key": "serviceId",
|
317
|
+
"list-loading": s(P),
|
318
|
+
data: s(q),
|
319
|
+
"table-label": s(v),
|
320
|
+
onSelectionChange: O,
|
321
|
+
onSortChange: Q
|
322
|
+
}, {
|
323
|
+
orgId: l((e) => [
|
324
|
+
m("span", null, r(s(c).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
|
325
|
+
]),
|
326
|
+
siteId: l((e) => [
|
327
|
+
m("span", null, r(s(c).siteDict.getValue(e.data.row.siteId)), 1)
|
328
|
+
]),
|
329
|
+
day: l((e) => [
|
330
|
+
m("span", null, r(e.data.row.minDay) + " - " + r(e.data.row.maxDay), 1)
|
331
|
+
]),
|
332
|
+
status: l((e) => [
|
333
|
+
m("span", null, r(s(c).serviceStatusEnum.getEnumValue(e.data.row.status)), 1)
|
334
|
+
]),
|
335
|
+
operation: l((e) => [
|
336
|
+
$((d(), S("span", {
|
337
|
+
class: "el-button-color",
|
338
|
+
onClick: (te) => K(e.data.row)
|
339
|
+
}, [
|
340
|
+
g(r(a.$t("common.edit")), 1)
|
341
|
+
], 8, ve)), [
|
342
|
+
[C, ["asset:site_service:update"]]
|
343
|
+
]),
|
344
|
+
$((d(), S("span", {
|
345
|
+
class: "el-button-color dropdown-left",
|
346
|
+
onClick: (te) => s(u).deleteRecord(e.data.row)
|
347
|
+
}, [
|
348
|
+
g(r(a.$t("common.delete")), 1)
|
349
|
+
], 8, fe)), [
|
350
|
+
[C, ["asset:site_service:delete"]]
|
351
|
+
])
|
352
|
+
]),
|
353
|
+
_: 1
|
354
|
+
}, 8, ["list-loading", "data", "table-label"])
|
355
|
+
]),
|
356
|
+
_: 1
|
357
|
+
}),
|
358
|
+
f.value ? (d(), I(ue, {
|
359
|
+
key: 0,
|
360
|
+
modelValue: f.value,
|
361
|
+
"onUpdate:modelValue": t[13] || (t[13] = (e) => f.value = e),
|
362
|
+
title: k.value,
|
363
|
+
"entity-key": s(h),
|
364
|
+
width: "900px",
|
365
|
+
onRefresh: F
|
366
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : j("", !0)
|
367
|
+
]);
|
368
|
+
};
|
369
|
+
}
|
370
|
+
});
|
371
|
+
export {
|
372
|
+
Ve as default
|
373
|
+
};
|