xyvcard-itsm-flow 0.0.25 → 0.0.27

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 (58) hide show
  1. package/dist/{FileSaver.min-Dlb0564v.mjs → FileSaver.min-DDqwfEMu.mjs} +1 -1
  2. package/dist/{edit-b1Qpq27u.mjs → edit-BH_qEChy.mjs} +1 -1
  3. package/dist/{edit-X4DuZAeC.mjs → edit-BWaFYsWY.mjs} +2 -2
  4. package/dist/{edit-DGLeO86x.mjs → edit-BpAjiLxu.mjs} +36 -36
  5. package/dist/{edit-Bb1ZMrgr.mjs → edit-CkGTDSiH.mjs} +1 -1
  6. package/dist/{edit-DEz__zGH.mjs → edit-D0-xQV59.mjs} +1 -1
  7. package/dist/{edit-DYzjfcpe.mjs → edit-DIyC972n.mjs} +45 -43
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-DDFusQ6S.mjs → edit.vue_vue_type_script_setup_true_lang-CEHUWh-t.mjs} +2 -2
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-DK-kdI-u.mjs → edit.vue_vue_type_script_setup_true_lang-CxUe7kvR.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-COV7eZfh.mjs → edit.vue_vue_type_script_setup_true_lang-DcDT5675.mjs} +1 -1
  11. package/dist/{index-COlNrHOr.mjs → index-B20ya3NZ.mjs} +56 -56
  12. package/dist/{index-B3Od63yb.mjs → index-BKQGui3N.mjs} +3 -3
  13. package/dist/{index-ChiSO5mf.mjs → index-BKveaoi_.mjs} +18 -18
  14. package/dist/{index-Cc1yu7_y.mjs → index-Bjjyjlwd.mjs} +1 -1
  15. package/dist/{index-C6QayKyI.mjs → index-BkqkF7bW.mjs} +1 -1
  16. package/dist/{index-uhCfQAOU.mjs → index-C3zQQDPa.mjs} +3 -3
  17. package/dist/{index-BjIcvBcw.mjs → index-CGDEQO2p.mjs} +2 -2
  18. package/dist/{index-XQliRAX-.mjs → index-CI9FMMKr.mjs} +9 -9
  19. package/dist/{index-DReilvk8.mjs → index-CQ9elIv7.mjs} +2 -2
  20. package/dist/{index-D4hmXu0K.mjs → index-CV6uWLV9.mjs} +68 -68
  21. package/dist/{index-BzzIS37Q.mjs → index-CXOeg2so.mjs} +1426 -1444
  22. package/dist/{index-ZQIeIrUc.mjs → index-Cd9CTAUb.mjs} +27 -27
  23. package/dist/{index-Crv7Y3gz.mjs → index-Chh_9yED.mjs} +21 -21
  24. package/dist/{index-UIHGXuWX.mjs → index-CillImY_.mjs} +128 -128
  25. package/dist/{index-41pGjG4z.mjs → index-CjYlJigX.mjs} +13 -13
  26. package/dist/{index-CsRdrLdB.mjs → index-D6Poyzq3.mjs} +2 -2
  27. package/dist/{index-Dr2VSx72.mjs → index-DBRVK73O.mjs} +2 -2
  28. package/dist/{index-CTX-1ZJN.mjs → index-DTY8LR57.mjs} +1 -1
  29. package/dist/{index-BnbyM6r8.mjs → index-DY5EGkfi.mjs} +3 -3
  30. package/dist/{index-Ddn-uP9d.mjs → index-DcDzU5zK.mjs} +44 -44
  31. package/dist/{index-DB_7mB_B.mjs → index-DfptoNZ3.mjs} +93 -85
  32. package/dist/{index-DTmCekOe.mjs → index-DjZysfQB.mjs} +26 -26
  33. package/dist/index-DxoX_XqQ.mjs +384 -0
  34. package/dist/{index-CUdCuMce.mjs → index-QPdQNctc.mjs} +5 -5
  35. package/dist/{index-CK8x-scl.mjs → index-WpTFFCXY.mjs} +3 -3
  36. package/dist/{index-CJmsWz8H.mjs → index-YBHgdjIk.mjs} +25 -25
  37. package/dist/{index-Dx_iePKi.mjs → index-n6pwVFlo.mjs} +1 -1
  38. package/dist/{index-DsEA0PWP.mjs → index-qvWMlGg9.mjs} +2 -2
  39. package/dist/{index-BL1EL_Kk.mjs → index-rHARbj0G.mjs} +3 -3
  40. package/dist/index.mjs +1 -1
  41. package/dist/{info-ChOjJGUZ.mjs → info-0Dcd8VrX.mjs} +1 -1
  42. package/dist/{info-CqJnfPyk.mjs → info-BmfgBiif.mjs} +1 -1
  43. package/dist/{info-Cu1I8L0Q.mjs → info-C1J_4HDK.mjs} +1 -1
  44. package/dist/{info-C7BOFhdZ.mjs → info-DTZck-Y6.mjs} +1 -1
  45. package/dist/info-DjtHpeoT.mjs +4 -0
  46. package/dist/info-qIG0jebP.mjs +4 -0
  47. package/dist/{info.vue_vue_type_script_setup_true_lang-C9LpdXNC.mjs → info.vue_vue_type_script_setup_true_lang-0cRfUL0q.mjs} +10 -10
  48. package/dist/{info.vue_vue_type_script_setup_true_lang-BupLtTsI.mjs → info.vue_vue_type_script_setup_true_lang-BeDGwXfi.mjs} +8 -8
  49. package/dist/{info.vue_vue_type_script_setup_true_lang-CxZBVr6Z.mjs → info.vue_vue_type_script_setup_true_lang-CETcd2E0.mjs} +1 -1
  50. package/dist/{info.vue_vue_type_script_setup_true_lang-CwpN4E5Y.mjs → info.vue_vue_type_script_setup_true_lang-CEoQybvz.mjs} +2 -2
  51. package/dist/{info.vue_vue_type_script_setup_true_lang-D36lalXS.mjs → info.vue_vue_type_script_setup_true_lang-CdfnKI3-.mjs} +2 -2
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-_Rd1Paqi.mjs → info.vue_vue_type_script_setup_true_lang-CzLGZ50z.mjs} +1 -1
  53. package/dist/style.css +1 -1
  54. package/dts/lang/itsm-flow/zh-cn.d.ts +2 -2
  55. package/package.json +1 -1
  56. package/dist/index-M_tEOKq6.mjs +0 -366
  57. package/dist/info-DDaeV1sJ.mjs +0 -4
  58. package/dist/info-DstAR0-a.mjs +0 -4
@@ -1,8 +1,8 @@
1
- import { defineComponent as K, mergeModels as j, ref as w, useModel as W, resolveComponent as c, createElementBlock as v, openBlock as m, Fragment as h, createVNode as t, withCtx as e, createElementVNode as B, createBlock as g, createCommentVNode as F, createTextVNode as s, toDisplayString as n, unref as b, renderList as L } from "vue";
1
+ import { defineComponent as K, mergeModels as j, ref as w, useModel as W, resolveComponent as b, createElementBlock as v, openBlock as m, Fragment as B, createVNode as t, withCtx as e, createElementVNode as F, createBlock as g, createCommentVNode as P, createTextVNode as n, toDisplayString as s, unref as y, renderList as N } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as q } from "vue-i18n";
4
- import { C as D, D as y, i as G } from "./index-CTX-1ZJN.mjs";
5
- import { i as H, a as J } from "./index-Cc1yu7_y.mjs";
4
+ import { C as D, D as f, i as G } from "./index-DTY8LR57.mjs";
5
+ import { i as H, a as J } from "./index-Bjjyjlwd.mjs";
6
6
  import { fileApi as Q } from "jmash-core";
7
7
  import { rbacApi as X } from "jmash-rbac";
8
8
  const Y = { key: 0 }, se = /* @__PURE__ */ K({
@@ -19,23 +19,23 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
19
19
  }),
20
20
  emits: ["update:modelValue"],
21
21
  setup(I, { expose: O }) {
22
- const { t: Z } = q(), C = w(), A = w({}), f = W(I, "modelValue");
23
- console.log(D.applyStatus.finished, "=>Constant.applyStatus.finished "), y.budgetTypeDict.useValues();
24
- const P = I, u = w();
25
- H.findById({ flowSpareId: P.task.businessKey }).then(({ data: a }) => {
22
+ const { t: Z } = q(), V = w(), A = w({}), c = W(I, "modelValue");
23
+ console.log(D.applyStatus.finished, "=>Constant.applyStatus.finished "), f.orgIdBizDict.useValues(), f.budgetTypeDict.useValues(), f.itemBizLayDict.useValues();
24
+ const k = I, u = w();
25
+ H.findById({ flowSpareId: k.task.businessKey }).then(({ data: a }) => {
26
26
  u.value = a;
27
27
  });
28
- const V = w([]);
29
- J.findList({ flowSpareId: P.task.businessKey }).then((a) => {
30
- V.value = a.data.results;
28
+ const C = w([]);
29
+ J.findList({ flowSpareId: k.task.businessKey }).then((a) => {
30
+ C.value = a.data.results;
31
31
  });
32
- const M = w([]);
33
- G.findFilesList({ actionId: P.task.businessKey }).then((a) => {
34
- M.value = a.data.results;
32
+ const L = w([]);
33
+ G.findFilesList({ actionId: k.task.businessKey }).then((a) => {
34
+ L.value = a.data.results;
35
35
  });
36
36
  const E = (a) => {
37
37
  var p;
38
- return ((p = M.value) == null ? void 0 : p.filter((r) => r.fileSort === a)) || [];
38
+ return ((p = L.value) == null ? void 0 : p.filter((r) => r.fileSort === a)) || [];
39
39
  };
40
40
  async function T(a) {
41
41
  try {
@@ -45,38 +45,38 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
45
45
  }
46
46
  }
47
47
  O({
48
- changeModel: () => R()
48
+ changeModel: () => z()
49
49
  });
50
- function R() {
51
- return f.value && (f.value.selectActions = [
50
+ function z() {
51
+ return c.value && (c.value.selectActions = [
52
52
  { key: "true", value: "同意" },
53
53
  { key: "false", value: "不同意" }
54
- ], f.value.varName = "approved", f.value.module = "", f.value.module = D.MODULE_ITSMFLOW), new Promise((a, p) => {
54
+ ], c.value.varName = "approved", c.value.module = "", c.value.module = D.MODULE_ITSMFLOW), new Promise((a, p) => {
55
55
  var r;
56
- (r = C.value) == null || r.validate((i) => {
57
- i ? (f.value && (f.value.comment = ""), a(!0)) : p(!1);
56
+ (r = V.value) == null || r.validate((i) => {
57
+ i ? (c.value && (c.value.comment = ""), a(!0)) : p(!1);
58
58
  });
59
59
  });
60
60
  }
61
61
  return (a, p) => {
62
- const r = c("el-col"), i = c("el-form-item"), S = c("el-row"), d = c("el-table-column"), U = c("el-table"), z = c("el-button"), N = c("el-form");
63
- return m(), v(h, null, [
62
+ const r = b("el-col"), i = b("el-form-item"), S = b("el-row"), d = b("el-table-column"), R = b("el-table"), U = b("el-button"), M = b("el-form");
63
+ return m(), v(B, null, [
64
64
  t(r, { span: 24 }, {
65
65
  default: e(() => p[0] || (p[0] = [
66
- B("div", { class: "title" }, "备品备件申请领用确认单", -1)
66
+ F("div", { class: "title" }, "备品备件申请领用确认单", -1)
67
67
  ])),
68
68
  _: 1,
69
69
  __: [0]
70
70
  }),
71
- t(N, {
71
+ t(M, {
72
72
  ref_key: "taskFormRef",
73
- ref: C,
73
+ ref: V,
74
74
  model: A.value,
75
75
  "label-width": "150px",
76
76
  class: "custom-table-form"
77
77
  }, {
78
78
  default: e(() => [
79
- t(N, {
79
+ t(M, {
80
80
  ref: "itsmFlowEntrustFormRef",
81
81
  "label-width": "150px",
82
82
  class: "custom-table-form custom-form"
@@ -84,7 +84,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
84
84
  default: e(() => [
85
85
  t(S, null, {
86
86
  default: e(() => {
87
- var o, k, _;
87
+ var o, h, _;
88
88
  return [
89
89
  t(r, { span: 12 }, {
90
90
  default: e(() => [
@@ -95,7 +95,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
95
95
  default: e(() => {
96
96
  var l;
97
97
  return [
98
- s(n(b(y).orgIdBizDict.getValue((l = u.value) == null ? void 0 : l.orgId)), 1)
98
+ n(s(y(f).orgIdBizDict.getValue((l = u.value) == null ? void 0 : l.orgId)), 1)
99
99
  ];
100
100
  }),
101
101
  _: 1
@@ -112,7 +112,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
112
112
  default: e(() => {
113
113
  var l;
114
114
  return [
115
- s(n(b(y).purchaseTypeEnum.getEnumValue((l = u.value) == null ? void 0 : l.type)), 1)
115
+ n(s(y(f).purchaseTypeEnum.getEnumValue((l = u.value) == null ? void 0 : l.type)), 1)
116
116
  ];
117
117
  }),
118
118
  _: 1
@@ -129,7 +129,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
129
129
  default: e(() => {
130
130
  var l;
131
131
  return [
132
- s(n((l = u.value) == null ? void 0 : l.applyPlace), 1)
132
+ n(s((l = u.value) == null ? void 0 : l.applyPlace), 1)
133
133
  ];
134
134
  }),
135
135
  _: 1
@@ -146,7 +146,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
146
146
  default: e(() => {
147
147
  var l;
148
148
  return [
149
- s(n((l = u.value) == null ? void 0 : l.annual), 1)
149
+ n(s((l = u.value) == null ? void 0 : l.annual), 1)
150
150
  ];
151
151
  }),
152
152
  _: 1
@@ -160,40 +160,40 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
160
160
  }, {
161
161
  default: e(() => [
162
162
  t(i, {
163
- label: a.$t("itsmFlowSpareParts.itemId"),
163
+ label: a.$t("itsmFlowSpareParts.itsmFlowItemId"),
164
164
  prop: "itemId"
165
165
  }, {
166
166
  default: e(() => {
167
167
  var l;
168
168
  return [
169
- s(n(b(y).itemBizLayDict.getValue((l = u.value) == null ? void 0 : l.itemId)), 1)
169
+ n(s(y(f).itemBizLayDict.getValue((l = u.value) == null ? void 0 : l.itemId)), 1)
170
170
  ];
171
171
  }),
172
172
  _: 1
173
173
  }, 8, ["label"])
174
174
  ]),
175
175
  _: 1
176
- })) : F("", !0),
177
- ((k = u.value) == null ? void 0 : k.type) !== "BudgetOut" ? (m(), g(r, {
176
+ })) : P("", !0),
177
+ ((h = u.value) == null ? void 0 : h.type) !== "BudgetOut" ? (m(), g(r, {
178
178
  key: 1,
179
179
  span: 12
180
180
  }, {
181
181
  default: e(() => [
182
182
  t(i, {
183
- label: a.$t("itsmFlowSpareParts.budgetType"),
183
+ label: a.$t("itsmFlowSpareParts.itsmFlowBudgetType"),
184
184
  prop: "budgetType"
185
185
  }, {
186
186
  default: e(() => {
187
187
  var l;
188
188
  return [
189
- s(n(b(y).budgetTypeDict.getValue((l = u.value) == null ? void 0 : l.budgetType)), 1)
189
+ n(s(y(f).budgetTypeDict.getValue((l = u.value) == null ? void 0 : l.budgetType)), 1)
190
190
  ];
191
191
  }),
192
192
  _: 1
193
193
  }, 8, ["label"])
194
194
  ]),
195
195
  _: 1
196
- })) : F("", !0),
196
+ })) : P("", !0),
197
197
  ((_ = u.value) == null ? void 0 : _.type) !== "BudgetOut" ? (m(), g(r, {
198
198
  key: 2,
199
199
  span: 12
@@ -206,14 +206,14 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
206
206
  default: e(() => {
207
207
  var l;
208
208
  return [
209
- s(n((l = u.value) == null ? void 0 : l.contractMoney), 1)
209
+ n(s((l = u.value) == null ? void 0 : l.contractMoney), 1)
210
210
  ];
211
211
  }),
212
212
  _: 1
213
213
  }, 8, ["label"])
214
214
  ]),
215
215
  _: 1
216
- })) : F("", !0),
216
+ })) : P("", !0),
217
217
  t(r, { span: 12 }, {
218
218
  default: e(() => [
219
219
  t(i, {
@@ -223,7 +223,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
223
223
  default: e(() => {
224
224
  var l, $;
225
225
  return [
226
- s(n((l = u.value) != null && l.createBy ? ($ = b(X).userInfo(u.value.createBy)) == null ? void 0 : $.realName : ""), 1)
226
+ n(s((l = u.value) != null && l.createBy ? ($ = y(X).userInfo(u.value.createBy)) == null ? void 0 : $.realName : ""), 1)
227
227
  ];
228
228
  }),
229
229
  _: 1
@@ -240,7 +240,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
240
240
  default: e(() => {
241
241
  var l;
242
242
  return [
243
- s(n((l = u.value) == null ? void 0 : l.applyDate), 1)
243
+ n(s((l = u.value) == null ? void 0 : l.applyDate), 1)
244
244
  ];
245
245
  }),
246
246
  _: 1
@@ -256,17 +256,17 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
256
256
  default: e(() => [
257
257
  t(r, { span: 24 }, {
258
258
  default: e(() => p[1] || (p[1] = [
259
- B("div", { class: "title" }, "运维需求描述", -1)
259
+ F("div", { class: "title" }, "运维需求描述", -1)
260
260
  ])),
261
261
  _: 1,
262
262
  __: [1]
263
263
  }),
264
264
  t(r, { span: 24 }, {
265
265
  default: e(() => [
266
- t(U, {
266
+ t(R, {
267
267
  stripe: "",
268
268
  style: { width: "100%" },
269
- data: V.value
269
+ data: C.value
270
270
  }, {
271
271
  default: e(() => [
272
272
  t(d, {
@@ -274,7 +274,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
274
274
  label: a.$t("itsmFlowSpareParts.itsmtype")
275
275
  }, {
276
276
  default: e((o) => [
277
- s(n(o.row.type), 1)
277
+ n(s(o.row.type), 1)
278
278
  ]),
279
279
  _: 1
280
280
  }, 8, ["label"]),
@@ -283,7 +283,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
283
283
  label: a.$t("itsmFlowSpareParts.itsmName")
284
284
  }, {
285
285
  default: e((o) => [
286
- s(n(o.row.name), 1)
286
+ n(s(o.row.name), 1)
287
287
  ]),
288
288
  _: 1
289
289
  }, 8, ["label"]),
@@ -292,43 +292,43 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
292
292
  label: a.$t("itsmFlowSpareParts.number")
293
293
  }, {
294
294
  default: e((o) => [
295
- s(n(o.row.number), 1)
295
+ n(s(o.row.number), 1)
296
296
  ]),
297
297
  _: 1
298
298
  }, 8, ["label"]),
299
- t(d, {
300
- prop: "unit",
301
- label: a.$t("itsmFlowSpareParts.unit")
302
- }, {
299
+ t(d, { prop: "unit" }, {
300
+ header: e(() => [
301
+ F("span", null, s(a.$t("itsmFlowSpareParts.unit")), 1)
302
+ ]),
303
303
  default: e((o) => [
304
- s(n(o.row.unit), 1)
304
+ n(s(o.row.unit), 1)
305
305
  ]),
306
306
  _: 1
307
- }, 8, ["label"]),
307
+ }),
308
308
  t(d, {
309
309
  prop: "parameter",
310
310
  label: a.$t("itsmFlowSpareParts.parameter")
311
311
  }, {
312
312
  default: e((o) => [
313
- s(n(o.row.parameter), 1)
313
+ n(s(o.row.parameter), 1)
314
314
  ]),
315
315
  _: 1
316
316
  }, 8, ["label"]),
317
- t(d, {
318
- prop: "valuation",
319
- label: a.$t("itsmFlowSpareParts.valuation")
320
- }, {
317
+ t(d, { prop: "valuation" }, {
318
+ header: e(() => [
319
+ F("span", null, s(a.$t("itsmFlowSpareParts.valuation")) + "(万元)", 1)
320
+ ]),
321
321
  default: e((o) => [
322
- s(n(o.row.valuation), 1)
322
+ n(s(o.row.valuation), 1)
323
323
  ]),
324
324
  _: 1
325
- }, 8, ["label"]),
325
+ }),
326
326
  t(d, {
327
327
  prop: "range",
328
328
  label: a.$t("itsmFlowSpareParts.range")
329
329
  }, {
330
330
  default: e((o) => [
331
- s(n(o.row.range), 1)
331
+ n(s(o.row.range), 1)
332
332
  ]),
333
333
  _: 1
334
334
  }, 8, ["label"]),
@@ -337,7 +337,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
337
337
  label: a.$t("itsmFlowSpareParts.applyStatus ")
338
338
  }, {
339
339
  default: e((o) => [
340
- o.row.applyStatus === b(D).applyStatus.finished ? (m(), v("span", Y, "已领用 ")) : F("", !0)
340
+ o.row.applyStatus === y(D).applyStatus.finished ? (m(), v("span", Y, "已领用 ")) : P("", !0)
341
341
  ]),
342
342
  _: 1
343
343
  }, 8, ["label"])
@@ -352,17 +352,17 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
352
352
  class: "bordered-row"
353
353
  }, {
354
354
  default: e(() => [
355
- (m(!0), v(h, null, L(b(y).fileTypeDict.values.slice(0, 2), (o, k) => (m(), g(i, {
355
+ (m(!0), v(B, null, N(y(f).fileTypeDict.values.slice(0, 2), (o, h) => (m(), g(i, {
356
356
  key: o.dictCode,
357
357
  label: o.dictName
358
358
  }, {
359
359
  default: e(() => [
360
- (m(!0), v(h, null, L(E(o.dictCode), (_, l) => (m(), v("div", {
360
+ (m(!0), v(B, null, N(E(o.dictCode), (_, l) => (m(), v("div", {
361
361
  key: l,
362
362
  class: "files-list"
363
363
  }, [
364
- B("span", null, n(_.fileName), 1),
365
- t(z, {
364
+ F("span", null, s(_.fileName), 1),
365
+ t(U, {
366
366
  type: "primary",
367
367
  link: "",
368
368
  size: "small",
@@ -370,7 +370,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
370
370
  onClick: ($) => T(_)
371
371
  }, {
372
372
  default: e(() => p[2] || (p[2] = [
373
- s(" 查看 ")
373
+ n(" 查看 ")
374
374
  ])),
375
375
  _: 2,
376
376
  __: [2]