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