xyvcard-asset 0.0.23 → 0.0.25

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.
Files changed (46) hide show
  1. package/dist/{assign-D4YB344H.mjs → assign-Cx16U6jb.mjs} +7 -5
  2. package/dist/{edit-yvYhMo5N.mjs → edit-B49ygJbc.mjs} +1 -1
  3. package/dist/{edit-Bwq5Vg9D.mjs → edit-Ds7g0sBn.mjs} +1 -1
  4. package/dist/{edit-D3zlqt11.mjs → edit-DuHNKz_4.mjs} +1 -1
  5. package/dist/{edit-DxvSeH5Y.mjs → edit-JbjxRp1e.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-CA2vVvh7.mjs → edit.vue_vue_type_script_setup_true_lang-BKhYm0-l.mjs} +28 -24
  7. package/dist/{edit.vue_vue_type_script_setup_true_lang-CK2dpk1z.mjs → edit.vue_vue_type_script_setup_true_lang-C06QNWoO.mjs} +120 -115
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-DnzT146Q.mjs → edit.vue_vue_type_script_setup_true_lang-DCQmjaPp.mjs} +10 -8
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-D59t05Ec.mjs → edit.vue_vue_type_script_setup_true_lang-mrDURO_L.mjs} +14 -13
  10. package/dist/{index-4gYJADQ3.mjs → index-5OS9ZzQf.mjs} +1 -1
  11. package/dist/index-BI8iDWzU.mjs +117 -0
  12. package/dist/index-BPuC76hs.mjs +338 -0
  13. package/dist/index-BQdGP1ah.mjs +152 -0
  14. package/dist/{index-DZAvRhPJ.mjs → index-BTfwEQad.mjs} +18 -16
  15. package/dist/index-BTvHsKHc.mjs +48286 -0
  16. package/dist/{index-CVU2G5rZ.mjs → index-B_EEJeEN.mjs} +1 -1
  17. package/dist/{index-CQE1DdOZ.mjs → index-C0Rd9wWv.mjs} +30 -27
  18. package/dist/{index-e_AlnW3A.mjs → index-C0cy2lYz.mjs} +37 -35
  19. package/dist/{index-BmxQiLjm.mjs → index-C33SaJIu.mjs} +48 -46
  20. package/dist/{index-DxQzN9_F.mjs → index-ColX0w7n.mjs} +17 -14
  21. package/dist/{index-Bx1vPk7S.mjs → index-D13F64qL.mjs} +142 -152
  22. package/dist/{index-vfIgwaoQ.mjs → index-DGHhDZ-w.mjs} +24 -22
  23. package/dist/{index-DmX4B8mf.mjs → index-DTHatck1.mjs} +61 -59
  24. package/dist/{index-eTof-sqF.mjs → index-DwPSpT78.mjs} +22 -20
  25. package/dist/index-U4WVV44p.mjs +1412 -0
  26. package/dist/{index-hCldWS2K.mjs → index-yjFsDfGI.mjs} +48 -45
  27. package/dist/index.mjs +2 -2
  28. package/dist/style.css +1 -1
  29. package/dts/api/asset/asset-asset/index.d.ts +1 -8
  30. package/dts/api/asset/asset-site-service/index.d.ts +2 -2
  31. package/dts/api/asset/asset-site-service/types.d.ts +1 -5
  32. package/dts/api/dict.d.ts +1 -4
  33. package/dts/api/index.d.ts +2 -1
  34. package/dts/constant.d.ts +3 -3
  35. package/dts/main.d.ts +1 -0
  36. package/dts/utils/common.d.ts +0 -41
  37. package/dts/views/asset/asset-site/edit.vue.d.ts +1 -1
  38. package/package.json +11 -13
  39. package/dist/index-0_FQdBCk.mjs +0 -322
  40. package/dist/index-BOS2gtjd.mjs +0 -165
  41. package/dist/index-eassrLOa.mjs +0 -1673
  42. package/dts/api/asset/text/index.d.ts +0 -140
  43. package/dts/api/asset/text/types.d.ts +0 -179
  44. package/dts/components/Upload/ImageUpload.vue.d.ts +0 -38
  45. package/dts/components/Upload/MultiUpload.vue.d.ts +0 -24
  46. package/dts/utils/index.d.ts +0 -24
@@ -1,5 +1,5 @@
1
1
  import { useUserStore as s, clearEmpty as a, request as n } from "jmash-core";
2
- import { q as o } from "./index-eassrLOa.mjs";
2
+ import { q as o } from "./index-U4WVV44p.mjs";
3
3
  class i {
4
4
  getKey(t) {
5
5
  return {
@@ -1,12 +1,13 @@
1
- import { defineComponent as K, ref as S, resolveComponent as r, resolveDirective as F, openBlock as m, 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
- import { useTableHooks as M } from "jmash-core";
3
- import { useI18n as x } from "vue-i18n";
4
- import { D as h, a as G } from "./index-eassrLOa.mjs";
5
- import { useRouter as J } from "vue-router";
6
- const O = { class: "app-container" }, W = { class: "search-container" }, X = ["onClick"], ne = /* @__PURE__ */ K({
1
+ import { defineComponent as K, ref as S, onActivated as F, resolveComponent as r, resolveDirective as H, createElementBlock as k, openBlock as p, createElementVNode as y, createVNode as a, withCtx as o, withKeys as V, unref as l, createTextVNode as c, toDisplayString as u, withDirectives as g, createBlock as w, createCommentVNode as M, isRef as $ } from "vue";
2
+ import { useTableHooks as x } from "jmash-core";
3
+ import { useI18n as G } from "vue-i18n";
4
+ import { D as h } from "./index-BTvHsKHc.mjs";
5
+ import { a as J } from "./index-BI8iDWzU.mjs";
6
+ import { useRouter as O } from "vue-router";
7
+ const W = { class: "app-container" }, X = { class: "search-container" }, Y = ["onClick"], se = /* @__PURE__ */ K({
7
8
  __name: "index",
8
- setup(Y) {
9
- const { t: R } = x(), D = J();
9
+ setup(Z) {
10
+ const { t: R } = G(), D = O();
10
11
  h.assetSortDictEnum.useEnumValues();
11
12
  const s = S({
12
13
  curPage: 1,
@@ -18,7 +19,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
18
19
  listLoading: j,
19
20
  tableData: E,
20
21
  total: b
21
- } = M(R, G, s);
22
+ } = x(R, J, s);
22
23
  let d = S([
23
24
  // 资产名称
24
25
  {
@@ -124,10 +125,12 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
124
125
  }
125
126
  });
126
127
  }
127
- return i.getList(), (n, e) => {
128
- const L = r("jmash-select"), _ = r("el-form-item"), p = r("el-col"), U = 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");
129
- return m(), k("div", O, [
130
- y("div", W, [
128
+ return F(() => {
129
+ i.getList();
130
+ }), (n, e) => {
131
+ const L = r("jmash-select"), _ = r("el-form-item"), m = r("el-col"), U = r("el-input"), f = r("el-button"), C = r("el-row"), I = r("el-form"), q = r("jmash-column-select"), A = r("jmash-table"), Q = r("jmash-pagination"), B = r("el-card"), v = H("hasPerm");
132
+ return p(), k("div", W, [
133
+ y("div", X, [
131
134
  a(I, {
132
135
  ref_key: "queryFormRef",
133
136
  ref: P,
@@ -137,7 +140,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
137
140
  default: o(() => [
138
141
  a(C, null, {
139
142
  default: o(() => [
140
- a(p, { span: 6 }, {
143
+ a(m, { span: 6 }, {
141
144
  default: o(() => [
142
145
  a(_, {
143
146
  label: n.$t("depreciationRecord.assetSort"),
@@ -157,7 +160,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
157
160
  ]),
158
161
  _: 1
159
162
  }),
160
- a(p, { span: 6 }, {
163
+ a(m, { span: 6 }, {
161
164
  default: o(() => [
162
165
  a(_, {
163
166
  label: n.$t("depreciationRecord.name"),
@@ -176,7 +179,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
176
179
  ]),
177
180
  _: 1
178
181
  }),
179
- a(p, { span: 12 }, {
182
+ a(m, { span: 12 }, {
180
183
  default: o(() => [
181
184
  a(_, { class: "search-btn" }, {
182
185
  default: o(() => [
@@ -220,9 +223,9 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
220
223
  span: 20
221
224
  }, {
222
225
  default: o(() => [
223
- a(p, { span: 12 }, {
226
+ a(m, { span: 12 }, {
224
227
  default: o(() => [
225
- g((m(), w(f, {
228
+ g((p(), w(f, {
226
229
  type: "primary",
227
230
  onClick: e[6] || (e[6] = (t) => l(i).deleteRecords())
228
231
  }, {
@@ -236,12 +239,12 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
236
239
  ]),
237
240
  _: 1
238
241
  }),
239
- a(p, {
242
+ a(m, {
240
243
  span: 8,
241
244
  align: "right"
242
245
  }, {
243
246
  default: o(() => [
244
- g((m(), w(f, {
247
+ g((p(), w(f, {
245
248
  plain: "",
246
249
  type: "primary",
247
250
  onClick: e[7] || (e[7] = (t) => l(i).handleExport(l(R)("depreciationRecord.name")))
@@ -266,7 +269,7 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
266
269
  })
267
270
  ]),
268
271
  footer: o(() => [
269
- l(b) > 0 ? (m(), w(A, {
272
+ l(b) > 0 ? (p(), w(Q, {
270
273
  key: 0,
271
274
  total: l(b),
272
275
  "onUpdate:total": e[9] || (e[9] = (t) => $(b) ? b.value = t : null),
@@ -275,10 +278,10 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
275
278
  "page-size": s.value.pageSize,
276
279
  "onUpdate:pageSize": e[11] || (e[11] = (t) => s.value.pageSize = t),
277
280
  onPagination: e[12] || (e[12] = (t) => l(i).getList())
278
- }, null, 8, ["total", "current-page", "page-size"])) : H("", !0)
281
+ }, null, 8, ["total", "current-page", "page-size"])) : M("", !0)
279
282
  ]),
280
283
  default: o(() => [
281
- a(Q, {
284
+ a(A, {
282
285
  ref_key: "multipleTableRef",
283
286
  ref: N,
284
287
  class: "table-top",
@@ -295,12 +298,12 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
295
298
  y("span", null, u(l(h).assetSortDictEnum.getEnumValue(t.data.row.assetSort)), 1)
296
299
  ]),
297
300
  operation: o((t) => [
298
- g((m(), k("span", {
301
+ g((p(), k("span", {
299
302
  class: "el-button-color",
300
- onClick: (Z) => z(t.data.row)
303
+ onClick: (ee) => z(t.data.row)
301
304
  }, [
302
305
  c(u(n.$t("common.view")), 1)
303
- ], 8, X)), [
306
+ ], 8, Y)), [
304
307
  [v, ["asset:depreciation_record:view"]]
305
308
  ])
306
309
  ]),
@@ -314,5 +317,5 @@ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["o
314
317
  }
315
318
  });
316
319
  export {
317
- ne as default
320
+ se as default
318
321
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as X, getCurrentInstance as Z, ref as v, reactive as ee, resolveComponent as r, resolveDirective as te, openBlock as p, createElementBlock as P, createElementVNode as d, createVNode as o, withCtx as l, unref as s, withKeys as _, toDisplayString as i, createBlock as N, createTextVNode as V, withDirectives as T, isRef as Q, createCommentVNode as z } from "vue";
2
- import { useI18n as le } from "vue-i18n";
3
- import { a as ae } from "./index-CVU2G5rZ.mjs";
4
- import { useTableHooks as oe } from "jmash-core";
5
- import { D as m, S as se } from "./index-eassrLOa.mjs";
6
- import { _ as ne } from "./edit.vue_vue_type_script_setup_true_lang-D59t05Ec.mjs";
7
- const re = { class: "app-container" }, ue = { class: "search-container" }, ie = ["onClick"], ye = /* @__PURE__ */ X({
1
+ import { defineComponent as X, getCurrentInstance as Z, ref as v, reactive as ee, onActivated as te, resolveComponent as r, resolveDirective as le, createElementBlock as P, openBlock as p, createElementVNode as d, createVNode as o, createBlock as _, createCommentVNode as T, withCtx as l, withKeys as N, unref as s, toDisplayString as i, createTextVNode as V, withDirectives as Q, isRef as z } from "vue";
2
+ import { useI18n as ae } from "vue-i18n";
3
+ import { a as oe } from "./index-B_EEJeEN.mjs";
4
+ import { useTableHooks as se } from "jmash-core";
5
+ import { D as m, S as ne } from "./index-BTvHsKHc.mjs";
6
+ import { _ as re } from "./edit.vue_vue_type_script_setup_true_lang-mrDURO_L.mjs";
7
+ const ue = { class: "app-container" }, ie = { class: "search-container" }, de = ["onClick"], De = /* @__PURE__ */ X({
8
8
  __name: "index",
9
- setup(de) {
9
+ setup(me) {
10
10
  m.unionOrgBizLayDict.useValues(), m.siteDict.useValues();
11
- const { t: g } = le(), { proxy: j } = Z(), w = v([]), n = v({
11
+ const { t: g } = ae(), { proxy: j } = Z(), w = v([]), n = v({
12
12
  curPage: 1,
13
13
  pageSize: 10
14
14
  }), {
@@ -18,7 +18,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
18
18
  listLoading: E,
19
19
  tableData: B,
20
20
  total: y
21
- } = oe(g, ae, n);
21
+ } = se(g, oe, n);
22
22
  let c = v([
23
23
  // 使用工会
24
24
  {
@@ -100,24 +100,26 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
100
100
  function R(a) {
101
101
  k = a, h.value = g("common.edit"), D.value = !0;
102
102
  }
103
- function K(a) {
103
+ function A(a) {
104
104
  u.selectionRows.value = a;
105
105
  }
106
- function A(a) {
106
+ function K(a) {
107
107
  u.handleSort(a.prop, a.order);
108
108
  }
109
109
  function Y(a) {
110
110
  n.value.siteId = "";
111
- const t = new se({ orgId: a });
111
+ const t = new ne({ orgId: a });
112
112
  t.useValues(), w.value = t.values;
113
113
  }
114
114
  function q(a) {
115
115
  a && u.getList();
116
116
  }
117
- return u.getList(), (a, t) => {
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
- return p(), P("div", re, [
120
- d("div", ue, [
117
+ return te(() => {
118
+ u.getList();
119
+ }), (a, t) => {
120
+ 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 = le("hasPerm");
121
+ return p(), P("div", ue, [
122
+ d("div", ie, [
121
123
  o(M, {
122
124
  ref_key: "queryFormRef",
123
125
  ref: U,
@@ -145,7 +147,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
145
147
  placeholder: a.$t("assetDetail.orgIdPlaceholder"),
146
148
  class: "!w-[203px]",
147
149
  onChange: Y,
148
- onKeyup: t[1] || (t[1] = _((e) => s(u).handleQuery(), ["enter"]))
150
+ onKeyup: t[1] || (t[1] = N((e) => s(u).handleQuery(), ["enter"]))
149
151
  }, {
150
152
  default: l(({ data: e }) => [
151
153
  d("span", null, [
@@ -177,7 +179,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
177
179
  prop: "siteId"
178
180
  }, {
179
181
  default: l(() => [
180
- (p(), N(C, {
182
+ (p(), _(C, {
181
183
  key: w.value.length,
182
184
  modelValue: n.value.siteId,
183
185
  "onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.siteId = e),
@@ -186,7 +188,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
186
188
  disabled: !n.value.orgId,
187
189
  placeholder: a.$t("assetDetail.siteNamePlaceholder"),
188
190
  data: w.value,
189
- onKeyup: t[3] || (t[3] = _((e) => s(u).handleQuery(), ["enter"]))
191
+ onKeyup: t[3] || (t[3] = N((e) => s(u).handleQuery(), ["enter"]))
190
192
  }, null, 8, ["modelValue", "disabled", "placeholder", "data"]))
191
193
  ]),
192
194
  _: 1
@@ -207,7 +209,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
207
209
  clearable: "",
208
210
  placeholder: a.$t("assetDetail.assetSortPlaceholder"),
209
211
  data: s(m).assetSortDictEnum.values,
210
- onKeyup: t[5] || (t[5] = _((e) => s(u).handleQuery(), ["enter"]))
212
+ onKeyup: t[5] || (t[5] = N((e) => s(u).handleQuery(), ["enter"]))
211
213
  }, null, 8, ["modelValue", "placeholder", "data"])
212
214
  ]),
213
215
  _: 1
@@ -226,7 +228,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
226
228
  modelValue: n.value.likeAssetName,
227
229
  "onUpdate:modelValue": t[6] || (t[6] = (e) => n.value.likeAssetName = e),
228
230
  placeholder: a.$t("assetDetail.assetNamePlaceholder"),
229
- onKeyup: t[7] || (t[7] = _((e) => s(u).handleQuery(), ["enter"]))
231
+ onKeyup: t[7] || (t[7] = N((e) => s(u).handleQuery(), ["enter"]))
230
232
  }, null, 8, ["modelValue", "placeholder"])
231
233
  ]),
232
234
  _: 1
@@ -276,7 +278,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
276
278
  align: "right"
277
279
  }, {
278
280
  default: l(() => [
279
- T((p(), N(S, {
281
+ Q((p(), _(S, {
280
282
  plain: "",
281
283
  type: "primary",
282
284
  onClick: t[10] || (t[10] = (e) => s(u).handleExport(s(g)("assetDetail.name")))
@@ -290,7 +292,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
290
292
  ]),
291
293
  o(x, {
292
294
  modelValue: s(c),
293
- "onUpdate:modelValue": t[11] || (t[11] = (e) => Q(c) ? c.value = e : c = e),
295
+ "onUpdate:modelValue": t[11] || (t[11] = (e) => z(c) ? c.value = e : c = e),
294
296
  "label-name": "asset/asset-asset-detail"
295
297
  }, null, 8, ["modelValue"])
296
298
  ]),
@@ -301,16 +303,16 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
301
303
  })
302
304
  ]),
303
305
  footer: l(() => [
304
- s(y) > 0 ? (p(), N(J, {
306
+ s(y) > 0 ? (p(), _(J, {
305
307
  key: 0,
306
308
  total: s(y),
307
- "onUpdate:total": t[12] || (t[12] = (e) => Q(y) ? y.value = e : null),
309
+ "onUpdate:total": t[12] || (t[12] = (e) => z(y) ? y.value = e : null),
308
310
  "current-page": n.value.curPage,
309
311
  "onUpdate:currentPage": t[13] || (t[13] = (e) => n.value.curPage = e),
310
312
  "page-size": n.value.pageSize,
311
313
  "onUpdate:pageSize": t[14] || (t[14] = (e) => n.value.pageSize = e),
312
314
  onPagination: t[15] || (t[15] = (e) => s(u).getList())
313
- }, null, 8, ["total", "current-page", "page-size"])) : z("", !0)
315
+ }, null, 8, ["total", "current-page", "page-size"])) : T("", !0)
314
316
  ]),
315
317
  default: l(() => [
316
318
  o(G, {
@@ -321,8 +323,8 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
321
323
  "list-loading": s(E),
322
324
  data: s(B),
323
325
  "table-label": s(c),
324
- onSelectionChange: K,
325
- onSortChange: A
326
+ onSelectionChange: A,
327
+ onSortChange: K
326
328
  }, {
327
329
  orgId: l((e) => [
328
330
  d("span", null, i(s(m).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
@@ -346,12 +348,12 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
346
348
  d("span", null, i(s(m).assetsStatus.getEnumValue(e.data.row.status)), 1)
347
349
  ]),
348
350
  operation: l((e) => [
349
- T((p(), P("span", {
351
+ Q((p(), P("span", {
350
352
  class: "el-button-color",
351
- onClick: (me) => R(e.data.row)
353
+ onClick: (pe) => R(e.data.row)
352
354
  }, [
353
355
  V(i(a.$t("common.edit")), 1)
354
- ], 8, ie)), [
356
+ ], 8, de)), [
355
357
  [I, ["asset:asset_detail:update"]]
356
358
  ])
357
359
  ]),
@@ -360,7 +362,7 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
360
362
  ]),
361
363
  _: 1
362
364
  }),
363
- D.value ? (p(), N(ne, {
365
+ D.value ? (p(), _(re, {
364
366
  key: 0,
365
367
  modelValue: D.value,
366
368
  "onUpdate:modelValue": t[16] || (t[16] = (e) => D.value = e),
@@ -368,11 +370,11 @@ const re = { class: "app-container" }, ue = { class: "search-container" }, ie =
368
370
  "entity-key": s(k),
369
371
  width: "900px",
370
372
  onRefresh: q
371
- }, null, 8, ["modelValue", "title", "entity-key"])) : z("", !0)
373
+ }, null, 8, ["modelValue", "title", "entity-key"])) : T("", !0)
372
374
  ]);
373
375
  };
374
376
  }
375
377
  });
376
378
  export {
377
- ye as default
379
+ De as default
378
380
  };
@@ -1,8 +1,9 @@
1
- import { defineComponent as z, getCurrentInstance as F, ref as N, reactive as V, onBeforeMount as H, resolveComponent as b, resolveDirective as Y, openBlock as A, createElementBlock as G, createVNode as u, withCtx as n, createTextVNode as g, toDisplayString as d, createElementVNode as v, unref as f, withDirectives as X, createBlock as U, isRef as K, createCommentVNode as Q } from "vue";
1
+ import { defineComponent as z, getCurrentInstance as F, ref as N, reactive as V, onBeforeMount as H, resolveComponent as b, resolveDirective as Y, createElementBlock as G, openBlock as A, createVNode as u, withCtx as n, createElementVNode as f, createTextVNode as g, toDisplayString as d, unref as v, createBlock as U, createCommentVNode as X, isRef as K, withDirectives as Q } from "vue";
2
2
  import { useRouter as W, useRoute as J } from "vue-router";
3
- import { c as E, D as I } from "./index-eassrLOa.mjs";
3
+ import { D as I } from "./index-BTvHsKHc.mjs";
4
4
  import { useTableHooks as Z, routerUtil as ee } from "jmash-core";
5
- import { i as T } from "./index-4gYJADQ3.mjs";
5
+ import { i as T } from "./index-5OS9ZzQf.mjs";
6
+ import { c as E } from "./index-U4WVV44p.mjs";
6
7
  import { useI18n as te } from "vue-i18n";
7
8
  var M = { exports: {} };
8
9
  (function(D, x) {
@@ -39,11 +40,11 @@ var M = { exports: {} };
39
40
  }
40
41
  var r = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof E == "object" && E.global === E ? E : void 0, k = r.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), h = r.saveAs || (typeof window != "object" || window !== r ? function() {
41
42
  } : "download" in HTMLAnchorElement.prototype && !k ? function(e, t, p) {
42
- var o = r.URL || r.webkitURL, l = document.createElement("a");
43
- t = t || e.name || "download", l.download = t, l.rel = "noopener", typeof e == "string" ? (l.href = e, l.origin === location.origin ? s(l) : y(l.href) ? w(e, t, p) : s(l, l.target = "_blank")) : (l.href = o.createObjectURL(e), setTimeout(function() {
44
- o.revokeObjectURL(l.href);
43
+ var o = r.URL || r.webkitURL, i = document.createElement("a");
44
+ t = t || e.name || "download", i.download = t, i.rel = "noopener", typeof e == "string" ? (i.href = e, i.origin === location.origin ? s(i) : y(i.href) ? w(e, t, p) : s(i, i.target = "_blank")) : (i.href = o.createObjectURL(e), setTimeout(function() {
45
+ o.revokeObjectURL(i.href);
45
46
  }, 4e4), setTimeout(function() {
46
- s(l);
47
+ s(i);
47
48
  }, 0));
48
49
  } : "msSaveOrOpenBlob" in navigator ? function(e, t, p) {
49
50
  if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(j(e, p), t);
@@ -56,13 +57,13 @@ var M = { exports: {} };
56
57
  }
57
58
  } : function(e, t, p, o) {
58
59
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string") return w(e, t, p);
59
- var l = e.type === "application/octet-stream", L = /constructor/i.test(r.HTMLElement) || r.safari, S = /CriOS\/[\d]+/.test(navigator.userAgent);
60
- if ((S || l && L || k) && typeof FileReader < "u") {
61
- var i = new FileReader();
62
- i.onloadend = function() {
63
- var c = i.result;
60
+ var i = e.type === "application/octet-stream", L = /constructor/i.test(r.HTMLElement) || r.safari, S = /CriOS\/[\d]+/.test(navigator.userAgent);
61
+ if ((S || i && L || k) && typeof FileReader < "u") {
62
+ var l = new FileReader();
63
+ l.onloadend = function() {
64
+ var c = l.result;
64
65
  c = S ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = c : location = c, o = null;
65
- }, i.readAsDataURL(e);
66
+ }, l.readAsDataURL(e);
66
67
  } else {
67
68
  var a = r.URL || r.webkitURL, m = a.createObjectURL(e);
68
69
  o ? o.location = m : location.href = m, o = null, setTimeout(function() {
@@ -74,7 +75,7 @@ var M = { exports: {} };
74
75
  });
75
76
  })(M);
76
77
  var oe = M.exports;
77
- const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class: "cell-item" }, ie = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, fe = /* @__PURE__ */ z({
78
+ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class: "cell-item" }, le = { class: "cell-item" }, ie = { class: "cell-item" }, se = { class: "cell-item" }, ye = /* @__PURE__ */ z({
78
79
  __name: "index",
79
80
  setup(D) {
80
81
  const { t: x } = te(), { proxy: j } = F(), w = W(), y = J(), s = N({
@@ -111,34 +112,34 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
111
112
  }
112
113
  ]);
113
114
  H(() => {
114
- T.findById({ inventoryId: y.query.inventoryId }).then(({ data: i }) => {
115
- Object.assign(r, i);
116
- }), l({ ...s.value });
115
+ T.findById({ inventoryId: y.query.inventoryId }).then(({ data: l }) => {
116
+ Object.assign(r, l);
117
+ }), i({ ...s.value });
117
118
  });
118
119
  function o() {
119
- l({ ...s.value });
120
+ i({ ...s.value });
120
121
  }
121
- function l(i) {
122
+ function i(l) {
122
123
  y.query.inventoryId ? T.findInfoAssetPage({
123
124
  inventoryId: y.query.inventoryId,
124
- ...i
125
+ ...l
125
126
  }).then(({ data: { results: a, curPage: m, pageSize: c, totalSize: R } }) => {
126
127
  a && (e.value = a, s.value.curPage = m, s.value.pageSize = c, t.value = R);
127
128
  }) : e.value = [];
128
129
  }
129
- function L(i) {
130
+ function L(l) {
130
131
  const a = y.query.inventoryId, m = {};
131
132
  m.req = { inventoryId: a, ...s.value }, T.exportExcel(m).then((c) => {
132
133
  const R = new Blob([c.data], {
133
134
  type: "application/octet-stream"
134
135
  });
135
- oe.saveAs(R, i + ".xlsx");
136
+ oe.saveAs(R, l + ".xlsx");
136
137
  });
137
138
  }
138
139
  function S() {
139
140
  ee.closeTagView(y.fullPath, w, !1);
140
141
  }
141
- return (i, a) => {
142
+ return (l, a) => {
142
143
  const m = b("el-button"), c = b("el-descriptions-item"), R = b("el-descriptions"), B = b("el-col"), P = b("el-row"), O = b("jmash-table"), $ = b("jmash-pagination"), C = b("el-card"), q = Y("hasPerm");
143
144
  return A(), G("div", ne, [
144
145
  u(C, { shadow: "never" }, {
@@ -148,13 +149,13 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
148
149
  onClick: S
149
150
  }, {
150
151
  default: n(() => [
151
- g(d(i.$t("common.back")), 1)
152
+ g(d(l.$t("common.back")), 1)
152
153
  ]),
153
154
  _: 1
154
155
  })
155
156
  ]),
156
157
  default: n(() => [
157
- a[4] || (a[4] = v("div", { class: "title-content" }, "盘点信息", -1)),
158
+ a[4] || (a[4] = f("div", { class: "title-content" }, "盘点信息", -1)),
158
159
  u(R, {
159
160
  class: "margin-top",
160
161
  column: 2,
@@ -163,7 +164,7 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
163
164
  default: n(() => [
164
165
  u(c, null, {
165
166
  label: n(() => [
166
- v("div", ae, d(i.$t("inventoryRecord.siteName")), 1)
167
+ f("div", ae, d(l.$t("inventoryRecord.siteName")), 1)
167
168
  ]),
168
169
  default: n(() => [
169
170
  g(" " + d(r.siteName), 1)
@@ -172,17 +173,17 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
172
173
  }),
173
174
  u(c, null, {
174
175
  label: n(() => [
175
- v("div", re, d(i.$t("inventoryRecord.inventoryTime")), 1)
176
+ f("div", re, d(l.$t("inventoryRecord.inventoryTime")), 1)
176
177
  ]),
177
178
  default: n(() => [
178
- g(" " + d(r.inventoryTime ? f(j).$moment.formatDate(r.inventoryTime, "YYYY-MM-DD") : ""), 1)
179
+ g(" " + d(r.inventoryTime ? v(j).$moment.formatDate(r.inventoryTime, "YYYY-MM-DD") : ""), 1)
179
180
  ]),
180
181
  _: 1
181
182
  }),
182
183
  u(c, null, {
183
184
  label: n(() => [
184
- v("span", null, [
185
- v("div", ie, d(i.$t("inventoryRecord.userName")), 1)
185
+ f("span", null, [
186
+ f("div", le, d(l.$t("inventoryRecord.userName")), 1)
186
187
  ])
187
188
  ]),
188
189
  default: n(() => [
@@ -192,16 +193,16 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
192
193
  }),
193
194
  u(c, null, {
194
195
  label: n(() => [
195
- v("div", le, d(i.$t("inventoryRecord.inventoryStatus")), 1)
196
+ f("div", ie, d(l.$t("inventoryRecord.inventoryStatus")), 1)
196
197
  ]),
197
198
  default: n(() => [
198
- g(" " + d(f(I).inventoryResults.getEnumValue(r.inventoryStatus)), 1)
199
+ g(" " + d(v(I).inventoryResults.getEnumValue(r.inventoryStatus)), 1)
199
200
  ]),
200
201
  _: 1
201
202
  }),
202
203
  u(c, null, {
203
204
  label: n(() => [
204
- v("div", se, d(i.$t("inventoryRecord.inventoryNote")), 1)
205
+ f("div", se, d(l.$t("inventoryRecord.inventoryNote")), 1)
205
206
  ]),
206
207
  default: n(() => [
207
208
  g(" " + d(r.inventoryNote), 1)
@@ -211,7 +212,7 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
211
212
  ]),
212
213
  _: 1
213
214
  }),
214
- a[5] || (a[5] = v("div", { class: "title-content" }, "资产信息", -1)),
215
+ a[5] || (a[5] = f("div", { class: "title-content" }, "资产信息", -1)),
215
216
  u(C, { shadow: "never" }, {
216
217
  header: n(() => [
217
218
  u(P, {
@@ -225,13 +226,13 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
225
226
  class: "container-float"
226
227
  }, {
227
228
  default: n(() => [
228
- X((A(), U(m, {
229
+ Q((A(), U(m, {
229
230
  plain: "",
230
231
  type: "primary",
231
- onClick: a[0] || (a[0] = (_) => L(f(x)("inventoryRecord.name")))
232
+ onClick: a[0] || (a[0] = (_) => L(v(x)("inventoryRecord.name")))
232
233
  }, {
233
234
  default: n(() => [
234
- g(d(i.$t("common.export")), 1)
235
+ g(d(l.$t("common.export")), 1)
235
236
  ]),
236
237
  _: 1
237
238
  })), [
@@ -245,16 +246,16 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
245
246
  })
246
247
  ]),
247
248
  footer: n(() => [
248
- f(t) > 0 ? (A(), U($, {
249
+ v(t) > 0 ? (A(), U($, {
249
250
  key: 0,
250
- total: f(t),
251
+ total: v(t),
251
252
  "onUpdate:total": a[1] || (a[1] = (_) => K(t) ? t.value = _ : null),
252
253
  "current-page": s.value.curPage,
253
254
  "onUpdate:currentPage": a[2] || (a[2] = (_) => s.value.curPage = _),
254
255
  "page-size": s.value.pageSize,
255
256
  "onUpdate:pageSize": a[3] || (a[3] = (_) => s.value.pageSize = _),
256
257
  onPagination: o
257
- }, null, 8, ["total", "current-page", "page-size"])) : Q("", !0)
258
+ }, null, 8, ["total", "current-page", "page-size"])) : X("", !0)
258
259
  ]),
259
260
  default: n(() => [
260
261
  u(O, {
@@ -263,12 +264,12 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
263
264
  class: "table-top",
264
265
  "row-key": "inventoryId",
265
266
  "is-selection": !1,
266
- "list-loading": f(h),
267
- data: f(e),
268
- "table-label": f(p)
267
+ "list-loading": v(h),
268
+ data: v(e),
269
+ "table-label": v(p)
269
270
  }, {
270
271
  status: n((_) => [
271
- v("span", null, d(f(I).inventoryResults.getEnumValue(_.data.row.status)), 1)
272
+ f("span", null, d(v(I).inventoryResults.getEnumValue(_.data.row.status)), 1)
272
273
  ]),
273
274
  _: 1
274
275
  }, 8, ["list-loading", "data", "table-label"])
@@ -276,12 +277,13 @@ const ne = { class: "app-container" }, ae = { class: "cell-item" }, re = { class
276
277
  _: 1
277
278
  })
278
279
  ]),
279
- _: 1
280
+ _: 1,
281
+ __: [4, 5]
280
282
  })
281
283
  ]);
282
284
  };
283
285
  }
284
286
  });
285
287
  export {
286
- fe as default
288
+ ye as default
287
289
  };