xyvcard-asset 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{assign-CnuGWSFW.mjs → assign-DS84uCHm.mjs} +95 -91
- package/dist/{edit-B-LYCCbp.mjs → edit-BV3P-kiT.mjs} +1 -1
- package/dist/{edit-D17Gyv98.mjs → edit-BaWrwFgf.mjs} +1 -1
- package/dist/edit-CuEUJBMa.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-LbrAsCMD.mjs → edit.vue_vue_type_script_setup_true_lang-CSvQU9EU.mjs} +28 -29
- package/dist/{edit-D32-_mu1.mjs → edit.vue_vue_type_script_setup_true_lang-JZ4KujwQ.mjs} +20 -21
- package/dist/{edit.vue_vue_type_script_setup_true_lang-rgOtFZu6.mjs → edit.vue_vue_type_script_setup_true_lang-NJMVf1bn.mjs} +46 -46
- package/dist/index-Bb_sQScO.mjs +169 -0
- package/dist/{index-BdDLFlf4.mjs → index-Br-xX9gN.mjs} +5 -5
- package/dist/{index-C-pCJ3qR.mjs → index-Bvn3U9pm.mjs} +18 -18
- package/dist/{index-BpLDkr7K.mjs → index-CQjuk7-u.mjs} +40 -41
- package/dist/{index-DTvR5Kzi.mjs → index-CoeHKpWi.mjs} +13 -13
- package/dist/{index-DsSb9DBJ.mjs → index-DFm7gtx_.mjs} +22 -22
- package/dist/{index-DTA_c5of.mjs → index-DunHcdgk.mjs} +13 -13
- package/dist/{index-CAxWHIh9.mjs → index-DycM8yjC.mjs} +11 -11
- package/dist/{index-3yyPfzhR.mjs → index-U9RubJnZ.mjs} +1 -1
- package/dist/index.mjs +422 -457
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +2 -2
- package/dts/api/index.d.ts +3 -3
- package/dts/router/page.d.ts +5 -5
- package/package.json +1 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
- package/dist/index-DeX1io_N.mjs +0 -158
@@ -1,11 +1,11 @@
|
|
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
|
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 w } from "vue";
|
2
2
|
import { useI18n as re } from "vue-i18n";
|
3
3
|
import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-BA4yxgQj.mjs";
|
4
|
-
import de from "./assign-
|
4
|
+
import de from "./assign-DS84uCHm.mjs";
|
5
5
|
import { a as me, D as V } from "./index-CGds22-2.mjs";
|
6
6
|
import { useTableHooks as pe } from "jmash-core";
|
7
7
|
import { useRouter as fe } from "vue-router";
|
8
|
-
const
|
8
|
+
const ce = { class: "app-container" }, be = { class: "search-container" }, ye = ["onClick"], ve = ["onClick"], ge = ["onClick"], we = ["onClick"], De = /* @__PURE__ */ ne({
|
9
9
|
__name: "index",
|
10
10
|
setup(ke) {
|
11
11
|
const { t: y } = re(), K = fe(), i = f({
|
@@ -122,7 +122,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
122
122
|
}
|
123
123
|
function X(a) {
|
124
124
|
K.push({
|
125
|
-
path: "/
|
125
|
+
path: "/rawasset/asset-asset/info",
|
126
126
|
query: { entityKey: a.assetId }
|
127
127
|
});
|
128
128
|
}
|
@@ -139,8 +139,8 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
139
139
|
}
|
140
140
|
return n.getList(), (a, t) => {
|
141
141
|
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");
|
142
|
-
return r(), _("div",
|
143
|
-
h("div",
|
142
|
+
return r(), _("div", ce, [
|
143
|
+
h("div", be, [
|
144
144
|
s(ee, {
|
145
145
|
ref_key: "queryFormRef",
|
146
146
|
ref: Q,
|
@@ -252,7 +252,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
252
252
|
default: l(() => [
|
253
253
|
s(v, { span: 12 }, {
|
254
254
|
default: l(() => [
|
255
|
-
|
255
|
+
c((r(), b(g, {
|
256
256
|
type: "primary",
|
257
257
|
onClick: G
|
258
258
|
}, {
|
@@ -263,7 +263,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
263
263
|
})), [
|
264
264
|
[p, ["asset:asset:add"]]
|
265
265
|
]),
|
266
|
-
|
266
|
+
c((r(), b(g, {
|
267
267
|
type: "primary",
|
268
268
|
onClick: t[8] || (t[8] = (e) => o(n).deleteRecords())
|
269
269
|
}, {
|
@@ -282,7 +282,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
282
282
|
align: "right"
|
283
283
|
}, {
|
284
284
|
default: l(() => [
|
285
|
-
|
285
|
+
c((r(), b(g, {
|
286
286
|
plain: "",
|
287
287
|
type: "primary",
|
288
288
|
onClick: t[9] || (t[9] = (e) => C.value = !0)
|
@@ -294,7 +294,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
294
294
|
})), [
|
295
295
|
[p, ["asset:asset:import"]]
|
296
296
|
]),
|
297
|
-
|
297
|
+
c((r(), b(g, {
|
298
298
|
plain: "",
|
299
299
|
type: "primary",
|
300
300
|
onClick: t[10] || (t[10] = (e) => o(n).handleExport(o(y)("asset.asset.name")))
|
@@ -319,7 +319,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
319
319
|
})
|
320
320
|
]),
|
321
321
|
footer: l(() => [
|
322
|
-
o(T) > 0 ? (r(),
|
322
|
+
o(T) > 0 ? (r(), b(le, {
|
323
323
|
key: 0,
|
324
324
|
total: o(T),
|
325
325
|
"onUpdate:total": t[12] || (t[12] = (e) => A(T) ? T.value = e : null),
|
@@ -358,7 +358,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
358
358
|
h("span", null, u(o(V).assetStatusDict.getValue(e.data.row.assignStatus)), 1)
|
359
359
|
]),
|
360
360
|
operation: l((e) => [
|
361
|
-
|
361
|
+
c((r(), _("span", {
|
362
362
|
class: "el-button-color",
|
363
363
|
onClick: (E) => J(e.data.row)
|
364
364
|
}, [
|
@@ -366,7 +366,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
366
366
|
], 8, ye)), [
|
367
367
|
[p, ["asset:asset:update"]]
|
368
368
|
]),
|
369
|
-
e.data.row.assignStatus === !1 ?
|
369
|
+
e.data.row.assignStatus === !1 ? c((r(), _("span", {
|
370
370
|
key: 0,
|
371
371
|
class: "el-button-color dropdown-left",
|
372
372
|
onClick: (E) => o(n).deleteRecord(e.data.row)
|
@@ -375,7 +375,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
375
375
|
], 8, ve)), [
|
376
376
|
[p, ["asset:asset:delete"]]
|
377
377
|
]) : w("", !0),
|
378
|
-
e.data.row.assignStatus === !1 ?
|
378
|
+
e.data.row.assignStatus === !1 ? c((r(), _("span", {
|
379
379
|
key: 1,
|
380
380
|
class: "el-button-color dropdown-left",
|
381
381
|
onClick: (E) => H(e.data.row)
|
@@ -384,7 +384,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
384
384
|
], 8, ge)), [
|
385
385
|
[p, ["asset:asset:assign"]]
|
386
386
|
]) : w("", !0),
|
387
|
-
|
387
|
+
c((r(), _("span", {
|
388
388
|
class: "el-button-color dropdown-left",
|
389
389
|
onClick: (E) => X(e.data.row)
|
390
390
|
}, [
|
@@ -398,7 +398,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
398
398
|
]),
|
399
399
|
_: 1
|
400
400
|
}),
|
401
|
-
S.value ? (r(),
|
401
|
+
S.value ? (r(), b(ie, {
|
402
402
|
key: 0,
|
403
403
|
modelValue: S.value,
|
404
404
|
"onUpdate:modelValue": t[16] || (t[16] = (e) => S.value = e),
|
@@ -407,7 +407,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
407
407
|
width: "900px",
|
408
408
|
onRefresh: I
|
409
409
|
}, null, 8, ["modelValue", "title", "entity-key"])) : w("", !0),
|
410
|
-
C.value ? (r(),
|
410
|
+
C.value ? (r(), b(se, {
|
411
411
|
key: 1,
|
412
412
|
"upload-visible": C.value,
|
413
413
|
"template-title": a.$t("sysUser.templateDownload"),
|
@@ -415,7 +415,7 @@ const be = { class: "app-container" }, ce = { class: "search-container" }, ye =
|
|
415
415
|
onImportEvents: Z,
|
416
416
|
onUploadClosed: Y
|
417
417
|
}, null, 8, ["upload-visible", "template-title"])) : w("", !0),
|
418
|
-
D.value ? (r(),
|
418
|
+
D.value ? (r(), b(de, {
|
419
419
|
key: 2,
|
420
420
|
modelValue: D.value,
|
421
421
|
"onUpdate:modelValue": t[18] || (t[18] = (e) => D.value = e),
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import { defineComponent as K, ref as S, resolveComponent as r, resolveDirective as F, openBlock as
|
1
|
+
import { defineComponent as K, ref as S, resolveComponent as r, resolveDirective as F, openBlock as p, createElementBlock as k, createElementVNode as y, createVNode as a, withCtx as o, unref as l, withKeys as V, createTextVNode as c, toDisplayString as u, withDirectives as g, createBlock as w, isRef as $, createCommentVNode as H } from "vue";
|
2
2
|
import { useTableHooks as M } from "jmash-core";
|
3
3
|
import { useI18n as x } from "vue-i18n";
|
4
|
-
import { D as
|
4
|
+
import { D as h, a as G } from "./index-CGds22-2.mjs";
|
5
5
|
import { useRouter as J } from "vue-router";
|
6
6
|
const O = { class: "app-container" }, W = { class: "search-container" }, X = ["onClick"], ne = /* @__PURE__ */ K({
|
7
7
|
__name: "index",
|
8
8
|
setup(Y) {
|
9
|
-
const { t:
|
10
|
-
|
9
|
+
const { t: R } = x(), D = J();
|
10
|
+
h.assetSortDictEnum.useEnumValues();
|
11
11
|
const s = S({}), {
|
12
12
|
tableHooks: i,
|
13
13
|
multipleTableRef: N,
|
@@ -15,8 +15,8 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
15
15
|
listLoading: P,
|
16
16
|
tableData: E,
|
17
17
|
total: b
|
18
|
-
} = M(
|
19
|
-
let
|
18
|
+
} = M(R, G, s);
|
19
|
+
let d = S([
|
20
20
|
// 资产名称
|
21
21
|
{
|
22
22
|
label: "depreciationRecord.name",
|
@@ -47,7 +47,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
47
47
|
{
|
48
48
|
label: "depreciationRecord.buyDate",
|
49
49
|
prop: "buyDate",
|
50
|
-
width: "
|
50
|
+
width: "120",
|
51
51
|
sortable: "custom",
|
52
52
|
isColumn: !0
|
53
53
|
},
|
@@ -55,7 +55,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
55
55
|
{
|
56
56
|
label: "depreciationRecord.assetSort",
|
57
57
|
prop: "assetSort",
|
58
|
-
width: "
|
58
|
+
width: "120",
|
59
59
|
sortable: "custom",
|
60
60
|
isColumn: !0,
|
61
61
|
slotName: "assetSort",
|
@@ -65,7 +65,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
65
65
|
{
|
66
66
|
label: "depreciationRecord.useLimit",
|
67
67
|
prop: "useLimit",
|
68
|
-
width: "
|
68
|
+
width: "120",
|
69
69
|
sortable: "custom",
|
70
70
|
isColumn: !0
|
71
71
|
},
|
@@ -73,7 +73,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
73
73
|
{
|
74
74
|
label: "depreciationRecord.oldMoney",
|
75
75
|
prop: "oldMoney",
|
76
|
-
width: "
|
76
|
+
width: "120",
|
77
77
|
sortable: "custom",
|
78
78
|
isColumn: !0
|
79
79
|
},
|
@@ -81,7 +81,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
81
81
|
{
|
82
82
|
label: "depreciationRecord.netSalvage",
|
83
83
|
prop: "netSalvage",
|
84
|
-
width: "
|
84
|
+
width: "120",
|
85
85
|
sortable: "custom",
|
86
86
|
isColumn: !0
|
87
87
|
},
|
@@ -89,7 +89,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
89
89
|
{
|
90
90
|
label: "depreciationRecord.totalDepreciation",
|
91
91
|
prop: "totalDepreciation",
|
92
|
-
width: "
|
92
|
+
width: "120",
|
93
93
|
sortable: "custom",
|
94
94
|
isColumn: !0
|
95
95
|
},
|
@@ -97,13 +97,13 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
97
97
|
{
|
98
98
|
label: "depreciationRecord.netAssetValue",
|
99
99
|
prop: "netAssetValue",
|
100
|
-
width: "
|
100
|
+
width: "120",
|
101
101
|
sortable: "custom",
|
102
102
|
isColumn: !0
|
103
103
|
},
|
104
104
|
{
|
105
105
|
label: "common.operate",
|
106
|
-
width: "
|
106
|
+
width: "200",
|
107
107
|
slotName: "operation",
|
108
108
|
columnType: "slot",
|
109
109
|
fixed: "right",
|
@@ -113,26 +113,26 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
113
113
|
function T(n) {
|
114
114
|
i.selectionRows.value = n;
|
115
115
|
}
|
116
|
-
function
|
116
|
+
function L(n) {
|
117
117
|
D.push({
|
118
|
-
path: "/
|
118
|
+
path: "/rawasset/asset-depreciation-record/info",
|
119
119
|
query: {
|
120
120
|
assetId: n.assetId
|
121
121
|
}
|
122
122
|
});
|
123
123
|
}
|
124
124
|
return i.getList(), (n, e) => {
|
125
|
-
const
|
126
|
-
return
|
125
|
+
const U = r("jmash-select"), _ = r("el-form-item"), m = r("el-col"), z = r("el-input"), f = r("el-button"), C = r("el-row"), I = r("el-form"), q = r("jmash-column-select"), Q = r("jmash-table"), A = r("jmash-pagination"), B = r("el-card"), v = F("hasPerm");
|
126
|
+
return p(), k("div", O, [
|
127
127
|
y("div", W, [
|
128
|
-
a(
|
128
|
+
a(I, {
|
129
129
|
ref_key: "queryFormRef",
|
130
130
|
ref: j,
|
131
131
|
model: s.value,
|
132
132
|
inline: !0
|
133
133
|
}, {
|
134
134
|
default: o(() => [
|
135
|
-
a(
|
135
|
+
a(C, null, {
|
136
136
|
default: o(() => [
|
137
137
|
a(m, { span: 6 }, {
|
138
138
|
default: o(() => [
|
@@ -141,11 +141,11 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
141
141
|
prop: "assetSort"
|
142
142
|
}, {
|
143
143
|
default: o(() => [
|
144
|
-
a(
|
144
|
+
a(U, {
|
145
145
|
modelValue: s.value.assetSort,
|
146
146
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => s.value.assetSort = t),
|
147
147
|
placeholder: n.$t("depreciationRecord.assetSortPlaceholder"),
|
148
|
-
data: l(
|
148
|
+
data: l(h).assetSortDictEnum.values,
|
149
149
|
onKeyup: e[1] || (e[1] = V((t) => l(i).handleQuery(), ["enter"]))
|
150
150
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
151
151
|
]),
|
@@ -161,7 +161,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
161
161
|
prop: "likeName"
|
162
162
|
}, {
|
163
163
|
default: o(() => [
|
164
|
-
a(
|
164
|
+
a(z, {
|
165
165
|
modelValue: s.value.likeName,
|
166
166
|
"onUpdate:modelValue": e[2] || (e[2] = (t) => s.value.likeName = t),
|
167
167
|
placeholder: n.$t("depreciationRecord.namePlaceholder"),
|
@@ -182,7 +182,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
182
182
|
onClick: e[4] || (e[4] = (t) => l(i).handleQuery())
|
183
183
|
}, {
|
184
184
|
default: o(() => [
|
185
|
-
|
185
|
+
c(u(n.$t("common.search")), 1)
|
186
186
|
]),
|
187
187
|
_: 1
|
188
188
|
}),
|
@@ -190,7 +190,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
190
190
|
onClick: e[5] || (e[5] = (t) => l(i).resetQuery())
|
191
191
|
}, {
|
192
192
|
default: o(() => [
|
193
|
-
|
193
|
+
c(u(n.$t("common.reset")), 1)
|
194
194
|
]),
|
195
195
|
_: 1
|
196
196
|
})
|
@@ -212,19 +212,19 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
212
212
|
class: "table-container"
|
213
213
|
}, {
|
214
214
|
header: o(() => [
|
215
|
-
a(
|
215
|
+
a(C, {
|
216
216
|
justify: "space-between",
|
217
217
|
span: 20
|
218
218
|
}, {
|
219
219
|
default: o(() => [
|
220
220
|
a(m, { span: 12 }, {
|
221
221
|
default: o(() => [
|
222
|
-
g((
|
222
|
+
g((p(), w(f, {
|
223
223
|
type: "primary",
|
224
224
|
onClick: e[6] || (e[6] = (t) => l(i).deleteRecords())
|
225
225
|
}, {
|
226
226
|
default: o(() => [
|
227
|
-
|
227
|
+
c(u(n.$t("common.batchDelete")), 1)
|
228
228
|
]),
|
229
229
|
_: 1
|
230
230
|
})), [
|
@@ -238,21 +238,21 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
238
238
|
align: "right"
|
239
239
|
}, {
|
240
240
|
default: o(() => [
|
241
|
-
g((
|
241
|
+
g((p(), w(f, {
|
242
242
|
plain: "",
|
243
243
|
type: "primary",
|
244
|
-
onClick: e[7] || (e[7] = (t) => l(i).handleExport(l(
|
244
|
+
onClick: e[7] || (e[7] = (t) => l(i).handleExport(l(R)("asset.depreciationRecord.name")))
|
245
245
|
}, {
|
246
246
|
default: o(() => [
|
247
|
-
|
247
|
+
c(u(n.$t("common.export")), 1)
|
248
248
|
]),
|
249
249
|
_: 1
|
250
250
|
})), [
|
251
251
|
[v, ["asset:depreciation_record:export"]]
|
252
252
|
]),
|
253
253
|
a(q, {
|
254
|
-
modelValue: l(
|
255
|
-
"onUpdate:modelValue": e[8] || (e[8] = (t) => $(
|
254
|
+
modelValue: l(d),
|
255
|
+
"onUpdate:modelValue": e[8] || (e[8] = (t) => $(d) ? d.value = t : d = t),
|
256
256
|
"label-name": "asset/asset-depreciation-record"
|
257
257
|
}, null, 8, ["modelValue"])
|
258
258
|
]),
|
@@ -263,7 +263,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
263
263
|
})
|
264
264
|
]),
|
265
265
|
footer: o(() => [
|
266
|
-
l(b) > 0 ? (
|
266
|
+
l(b) > 0 ? (p(), w(A, {
|
267
267
|
key: 0,
|
268
268
|
total: l(b),
|
269
269
|
"onUpdate:total": e[9] || (e[9] = (t) => $(b) ? b.value = t : null),
|
@@ -272,8 +272,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
272
272
|
"page-size": s.value.pageSize,
|
273
273
|
"onUpdate:pageSize": e[11] || (e[11] = (t) => s.value.pageSize = t),
|
274
274
|
onPagination: e[12] || (e[12] = (t) => l(i).getList())
|
275
|
-
}, null, 8, ["total", "current-page", "page-size"])) : H("", !0)
|
276
|
-
e[13] || (e[13] = d(" "))
|
275
|
+
}, null, 8, ["total", "current-page", "page-size"])) : H("", !0)
|
277
276
|
]),
|
278
277
|
default: o(() => [
|
279
278
|
a(Q, {
|
@@ -283,21 +282,21 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
|
|
283
282
|
"row-key": "recordId",
|
284
283
|
"list-loading": l(P),
|
285
284
|
data: l(E),
|
286
|
-
"table-label": l(
|
285
|
+
"table-label": l(d),
|
287
286
|
onSelectionChange: T
|
288
287
|
}, {
|
289
288
|
number: o((t) => [
|
290
289
|
y("span", null, u(t.data.row.number) + "/" + u(t.data.row.unit), 1)
|
291
290
|
]),
|
292
291
|
assetSort: o((t) => [
|
293
|
-
y("span", null, u(l(
|
292
|
+
y("span", null, u(l(h).assetSortDictEnum.getEnumValue(t.data.row.assetSort)), 1)
|
294
293
|
]),
|
295
294
|
operation: o((t) => [
|
296
|
-
g((
|
295
|
+
g((p(), k("span", {
|
297
296
|
class: "el-button-color",
|
298
|
-
onClick: (Z) =>
|
297
|
+
onClick: (Z) => L(t.data.row)
|
299
298
|
}, [
|
300
|
-
|
299
|
+
c(u(n.$t("common.view")), 1)
|
301
300
|
], 8, X)), [
|
302
301
|
[v, ["asset:depreciation_record:view"]]
|
303
302
|
])
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as W, ref as b, resolveComponent as n, resolveDirective as X, openBlock as f, createElementBlock as I, createElementVNode as u, createVNode as l, withCtx as o, unref as s, withKeys as
|
1
|
+
import { defineComponent as W, ref as b, resolveComponent as n, resolveDirective as X, openBlock as f, createElementBlock as I, createElementVNode as u, createVNode as l, withCtx as o, unref as s, withKeys as w, toDisplayString as p, Fragment as Z, renderList as x, createBlock as A, createTextVNode as R, isRef as k, createCommentVNode as ee, withDirectives as te } from "vue";
|
2
2
|
import { D as _, s as le } from "./index-CGds22-2.mjs";
|
3
3
|
import { useI18n as oe } from "vue-i18n";
|
4
4
|
import { s as ae } from "./index-BwbnYpa1.mjs";
|
@@ -10,7 +10,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
10
10
|
setup(de) {
|
11
11
|
_.unionOrgBizLayDict.useValues(), _.siteDict.useValues();
|
12
12
|
const $ = ne(), { t: N } = oe();
|
13
|
-
let
|
13
|
+
let h = b();
|
14
14
|
const c = b([]), r = b({
|
15
15
|
curPage: 1,
|
16
16
|
pageSize: 10
|
@@ -50,7 +50,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
50
50
|
{
|
51
51
|
label: "serviceApptRecord.appointmentDate",
|
52
52
|
prop: "appointmentDate",
|
53
|
-
width: "
|
53
|
+
width: "120",
|
54
54
|
isColumn: !0
|
55
55
|
},
|
56
56
|
// 预约时间段
|
@@ -89,12 +89,12 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
89
89
|
columnType: "slot",
|
90
90
|
fixed: "right",
|
91
91
|
isColumn: !0,
|
92
|
-
width: "
|
92
|
+
width: "200"
|
93
93
|
}
|
94
94
|
]);
|
95
95
|
function S(a) {
|
96
96
|
r.value.siteId = "", le.findList({ orgId: a }).then(({ data: { results: t } }) => {
|
97
|
-
|
97
|
+
h.value = t;
|
98
98
|
});
|
99
99
|
}
|
100
100
|
function U(a) {
|
@@ -106,7 +106,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
106
106
|
}
|
107
107
|
function j(a) {
|
108
108
|
$.push({
|
109
|
-
path: "/
|
109
|
+
path: "/rawasset/asset-service-appt-record/info",
|
110
110
|
query: { entityKey: a.recordId }
|
111
111
|
});
|
112
112
|
}
|
@@ -143,7 +143,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
143
143
|
"render-after-expand": !1,
|
144
144
|
placeholder: a.$t("serviceApptRecord.orgIdRequired"),
|
145
145
|
class: "!w-[203px]",
|
146
|
-
onKeyup: t[1] || (t[1] =
|
146
|
+
onKeyup: t[1] || (t[1] = w((e) => s(i).handleQuery(), ["enter"])),
|
147
147
|
onChange: S
|
148
148
|
}, {
|
149
149
|
default: o(({ data: e }) => [
|
@@ -183,10 +183,10 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
183
183
|
placeholder: a.$t("serviceApptRecord.siteIdRequired"),
|
184
184
|
class: "!w-[203px]",
|
185
185
|
clearable: "",
|
186
|
-
onKeyup: t[3] || (t[3] =
|
186
|
+
onKeyup: t[3] || (t[3] = w((e) => s(i).handleQuery(), ["enter"]))
|
187
187
|
}, {
|
188
188
|
default: o(() => [
|
189
|
-
(f(!0), I(Z, null, x(s(
|
189
|
+
(f(!0), I(Z, null, x(s(h), (e) => (f(), A(Q, {
|
190
190
|
key: e.siteId,
|
191
191
|
label: e.name,
|
192
192
|
value: e.siteId
|
@@ -211,7 +211,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
211
211
|
modelValue: r.value.likeServiceName,
|
212
212
|
"onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.likeServiceName = e),
|
213
213
|
placeholder: a.$t("serviceApptRecord.serviceNameRequired"),
|
214
|
-
onKeyup: t[5] || (t[5] =
|
214
|
+
onKeyup: t[5] || (t[5] = w((e) => s(i).handleQuery(), ["enter"]))
|
215
215
|
}, null, 8, ["modelValue", "placeholder"])
|
216
216
|
]),
|
217
217
|
_: 1
|
@@ -256,13 +256,13 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
256
256
|
onClick: t[7] || (t[7] = (e) => s(i).handleQuery())
|
257
257
|
}, {
|
258
258
|
default: o(() => [
|
259
|
-
|
259
|
+
R(p(a.$t("common.search")), 1)
|
260
260
|
]),
|
261
261
|
_: 1
|
262
262
|
}),
|
263
263
|
l(V, { onClick: D }, {
|
264
264
|
default: o(() => [
|
265
|
-
|
265
|
+
R(p(a.$t("common.reset")), 1)
|
266
266
|
]),
|
267
267
|
_: 1
|
268
268
|
})
|
@@ -339,7 +339,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
339
339
|
class: "el-button-color",
|
340
340
|
onClick: (ue) => j(e.data.row)
|
341
341
|
}, [
|
342
|
-
|
342
|
+
R(p(a.$t("common.view")), 1)
|
343
343
|
], 8, pe)), [
|
344
344
|
[J, ["asset:service_appt_record:view"]]
|
345
345
|
])
|
@@ -3,7 +3,7 @@ import { useI18n as le } from "vue-i18n";
|
|
3
3
|
import { a as ae } from "./index-rSyUfdXn.mjs";
|
4
4
|
import { useTableHooks as oe } from "jmash-core";
|
5
5
|
import { D as m, S as se } from "./index-CGds22-2.mjs";
|
6
|
-
import ne from "./edit-
|
6
|
+
import { _ as ne } from "./edit.vue_vue_type_script_setup_true_lang-JZ4KujwQ.mjs";
|
7
7
|
const re = { class: "app-container" }, ue = { class: "search-container" }, ie = ["onClick"], ye = /* @__PURE__ */ X({
|
8
8
|
__name: "index",
|
9
9
|
setup(de) {
|
@@ -13,9 +13,9 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
13
13
|
pageSize: 10
|
14
14
|
}), {
|
15
15
|
tableHooks: u,
|
16
|
-
multipleTableRef:
|
17
|
-
queryFormRef:
|
18
|
-
listLoading:
|
16
|
+
multipleTableRef: L,
|
17
|
+
queryFormRef: U,
|
18
|
+
listLoading: E,
|
19
19
|
tableData: B,
|
20
20
|
total: y
|
21
21
|
} = oe(g, ae, n);
|
@@ -51,7 +51,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
51
51
|
{
|
52
52
|
label: "assetDetail.deviceQrcode",
|
53
53
|
prop: "deviceQrcode",
|
54
|
-
width: "
|
54
|
+
width: "120",
|
55
55
|
sortable: "custom",
|
56
56
|
isColumn: !0,
|
57
57
|
slotName: "deviceQrcode",
|
@@ -65,13 +65,13 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
65
65
|
isColumn: !0,
|
66
66
|
slotName: "buyDate",
|
67
67
|
columnType: "slot",
|
68
|
-
width: "
|
68
|
+
width: "120"
|
69
69
|
},
|
70
70
|
// 资产属性
|
71
71
|
{
|
72
72
|
label: "assetDetail.assetSort",
|
73
73
|
prop: "assetSort",
|
74
|
-
width: "
|
74
|
+
width: "120",
|
75
75
|
sortable: "custom",
|
76
76
|
isColumn: !0,
|
77
77
|
slotName: "assetSort",
|
@@ -89,7 +89,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
89
89
|
},
|
90
90
|
{
|
91
91
|
label: g("common.operate"),
|
92
|
-
width: "
|
92
|
+
width: "200",
|
93
93
|
slotName: "operation",
|
94
94
|
columnType: "slot",
|
95
95
|
isColumn: !0
|
@@ -115,21 +115,21 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
115
115
|
a && u.getList();
|
116
116
|
}
|
117
117
|
return u.getList(), (a, t) => {
|
118
|
-
const O = r("el-tooltip"), F = r("el-tree-select"),
|
118
|
+
const O = r("el-tooltip"), F = r("el-tree-select"), f = r("el-form-item"), b = r("el-col"), C = r("jmash-select"), H = r("el-input"), $ = r("el-row"), S = r("el-button"), M = r("el-form"), x = r("jmash-column-select"), G = r("jmash-table"), J = r("jmash-pagination"), W = r("el-card"), I = te("hasPerm");
|
119
119
|
return p(), P("div", re, [
|
120
120
|
d("div", ue, [
|
121
121
|
o(M, {
|
122
122
|
ref_key: "queryFormRef",
|
123
|
-
ref:
|
123
|
+
ref: U,
|
124
124
|
model: n.value,
|
125
125
|
inline: !0
|
126
126
|
}, {
|
127
127
|
default: l(() => [
|
128
128
|
o($, null, {
|
129
129
|
default: l(() => [
|
130
|
-
o(
|
130
|
+
o(b, { span: 6 }, {
|
131
131
|
default: l(() => [
|
132
|
-
o(
|
132
|
+
o(f, {
|
133
133
|
label: a.$t("assetDetail.orgId"),
|
134
134
|
prop: "orgId"
|
135
135
|
}, {
|
@@ -170,9 +170,9 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
170
170
|
]),
|
171
171
|
_: 1
|
172
172
|
}),
|
173
|
-
o(
|
173
|
+
o(b, { span: 6 }, {
|
174
174
|
default: l(() => [
|
175
|
-
o(
|
175
|
+
o(f, {
|
176
176
|
label: a.$t("assetDetail.siteName"),
|
177
177
|
prop: "siteId"
|
178
178
|
}, {
|
@@ -194,9 +194,9 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
194
194
|
]),
|
195
195
|
_: 1
|
196
196
|
}),
|
197
|
-
o(
|
197
|
+
o(b, { span: 6 }, {
|
198
198
|
default: l(() => [
|
199
|
-
o(
|
199
|
+
o(f, {
|
200
200
|
label: a.$t("assetDetail.assetSort"),
|
201
201
|
prop: "assetSort"
|
202
202
|
}, {
|
@@ -215,9 +215,9 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
215
215
|
]),
|
216
216
|
_: 1
|
217
217
|
}),
|
218
|
-
o(
|
218
|
+
o(b, { span: 6 }, {
|
219
219
|
default: l(() => [
|
220
|
-
o(
|
220
|
+
o(f, {
|
221
221
|
label: a.$t("assetDetail.assetName"),
|
222
222
|
prop: "likeAssetName"
|
223
223
|
}, {
|
@@ -237,7 +237,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
237
237
|
]),
|
238
238
|
_: 1
|
239
239
|
}),
|
240
|
-
o(
|
240
|
+
o(f, { class: "search-btn" }, {
|
241
241
|
default: l(() => [
|
242
242
|
o(S, {
|
243
243
|
type: "primary",
|
@@ -271,7 +271,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
271
271
|
header: l(() => [
|
272
272
|
o($, { justify: "space-between" }, {
|
273
273
|
default: l(() => [
|
274
|
-
o(
|
274
|
+
o(b, {
|
275
275
|
span: 24,
|
276
276
|
align: "right"
|
277
277
|
}, {
|
@@ -315,10 +315,10 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
|
|
315
315
|
default: l(() => [
|
316
316
|
o(G, {
|
317
317
|
ref_key: "multipleTableRef",
|
318
|
-
ref:
|
318
|
+
ref: L,
|
319
319
|
class: "table-top",
|
320
320
|
"row-key": "DetailId",
|
321
|
-
"list-loading": s(
|
321
|
+
"list-loading": s(E),
|
322
322
|
data: s(B),
|
323
323
|
"table-label": s(c),
|
324
324
|
onSelectionChange: K,
|