xyvcard-itsm-flow 0.0.24 → 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 (63) hide show
  1. package/dist/{FileSaver.min-X2_RihtX.mjs → FileSaver.min-Dlb0564v.mjs} +1 -1
  2. package/dist/{edit-Crp2NJw2.mjs → edit-Bb1ZMrgr.mjs} +1 -1
  3. package/dist/{edit-Da4XYqIW.mjs → edit-DEz__zGH.mjs} +1 -1
  4. package/dist/{edit-fNZ8seSE.mjs → edit-DGLeO86x.mjs} +2 -2
  5. package/dist/{edit-C4uQUyxR.mjs → edit-DYzjfcpe.mjs} +10 -10
  6. package/dist/{edit-DSzeVnep.mjs → edit-X4DuZAeC.mjs} +2 -2
  7. package/dist/{edit-B4N5cmbv.mjs → edit-b1Qpq27u.mjs} +1 -1
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-ClkzOaAV.mjs → edit.vue_vue_type_script_setup_true_lang-COV7eZfh.mjs} +1 -1
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-DZj5V6Mk.mjs → edit.vue_vue_type_script_setup_true_lang-DDFusQ6S.mjs} +2 -2
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-VfP4qMQI.mjs → edit.vue_vue_type_script_setup_true_lang-DK-kdI-u.mjs} +1 -1
  11. package/dist/{index-p1DDr7xl.mjs → index-41pGjG4z.mjs} +4 -4
  12. package/dist/{index-CCnjfMtC.mjs → index-B3Od63yb.mjs} +3 -3
  13. package/dist/{index-BYazmSpv.mjs → index-BL1EL_Kk.mjs} +3 -3
  14. package/dist/{index-Dxfj5xxz.mjs → index-BjIcvBcw.mjs} +2 -2
  15. package/dist/{index-B0J0xma8.mjs → index-BnbyM6r8.mjs} +3 -3
  16. package/dist/index-BzzIS37Q.mjs +4487 -0
  17. package/dist/{index-DNFVieqg.mjs → index-C6QayKyI.mjs} +1 -1
  18. package/dist/{index-C9LdNu0a.mjs → index-CJmsWz8H.mjs} +4 -4
  19. package/dist/{index-Bmev8P7I.mjs → index-CK8x-scl.mjs} +3 -3
  20. package/dist/{index-BePwvZ9m.mjs → index-COlNrHOr.mjs} +2 -2
  21. package/dist/{index-5rQmXXAD.mjs → index-CTX-1ZJN.mjs} +1 -1
  22. package/dist/{index-CPwNJkJK.mjs → index-CUdCuMce.mjs} +4 -4
  23. package/dist/{index-COvZrTZl.mjs → index-Cc1yu7_y.mjs} +1 -1
  24. package/dist/{index-CWrb0ryZ.mjs → index-ChiSO5mf.mjs} +2 -2
  25. package/dist/{index-jzk2C9cj.mjs → index-Crv7Y3gz.mjs} +2 -2
  26. package/dist/{index-CBowEKcR.mjs → index-CsRdrLdB.mjs} +2 -2
  27. package/dist/{index-D5jF4kAT.mjs → index-D4hmXu0K.mjs} +70 -70
  28. package/dist/{index-tcsDF6U0.mjs → index-DB_7mB_B.mjs} +78 -78
  29. package/dist/{index-DVyAUAgy.mjs → index-DReilvk8.mjs} +2 -2
  30. package/dist/{index-DnIYE76A.mjs → index-DTmCekOe.mjs} +25 -25
  31. package/dist/{index-k6cvISUf.mjs → index-Ddn-uP9d.mjs} +2 -2
  32. package/dist/{index-sjkYgg27.mjs → index-Dr2VSx72.mjs} +2 -2
  33. package/dist/{index-COT8mjWU.mjs → index-DsEA0PWP.mjs} +2 -2
  34. package/dist/{index-B5OVt83d.mjs → index-Dx_iePKi.mjs} +1 -1
  35. package/dist/{index-CIG303fh.mjs → index-M_tEOKq6.mjs} +41 -41
  36. package/dist/{index-D47Eql1L.mjs → index-UIHGXuWX.mjs} +5 -5
  37. package/dist/{index-KUs-CZ9C.mjs → index-XQliRAX-.mjs} +2 -2
  38. package/dist/{index-Dx0mdENP.mjs → index-ZQIeIrUc.mjs} +9 -9
  39. package/dist/{index-DPqaoK4-.mjs → index-uhCfQAOU.mjs} +3 -3
  40. package/dist/index.mjs +23 -2921
  41. package/dist/{info-B6nfKr37.mjs → info-C7BOFhdZ.mjs} +1 -1
  42. package/dist/{info-Cd4n1Hxk.mjs → info-ChOjJGUZ.mjs} +1 -1
  43. package/dist/{info-D90oJO1z.mjs → info-CqJnfPyk.mjs} +1 -1
  44. package/dist/{info-6YpNb7VF.mjs → info-Cu1I8L0Q.mjs} +1 -1
  45. package/dist/info-DDaeV1sJ.mjs +4 -0
  46. package/dist/info-DstAR0-a.mjs +4 -0
  47. package/dist/{info.vue_vue_type_script_setup_true_lang-BM-bddTj.mjs → info.vue_vue_type_script_setup_true_lang-BupLtTsI.mjs} +2 -2
  48. package/dist/{info.vue_vue_type_script_setup_true_lang-BWMDxwv-.mjs → info.vue_vue_type_script_setup_true_lang-C9LpdXNC.mjs} +5 -5
  49. package/dist/{info.vue_vue_type_script_setup_true_lang-BvcEV_aO.mjs → info.vue_vue_type_script_setup_true_lang-CwpN4E5Y.mjs} +2 -2
  50. package/dist/{info.vue_vue_type_script_setup_true_lang-DhuclI_H.mjs → info.vue_vue_type_script_setup_true_lang-CxZBVr6Z.mjs} +1 -1
  51. package/dist/{info.vue_vue_type_script_setup_true_lang-CZa5y_q9.mjs → info.vue_vue_type_script_setup_true_lang-D36lalXS.mjs} +2 -2
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-BzNQmLMY.mjs → info.vue_vue_type_script_setup_true_lang-_Rd1Paqi.mjs} +1 -1
  53. package/dist/style.css +1 -1
  54. package/dts/api/itsm-flow-temporary/index.d.ts +2 -1
  55. package/dts/api/itsm-flow-temporary/types.d.ts +13 -0
  56. package/dts/index.d.ts +2 -0
  57. package/dts/lang/itsm-flow/zh-cn.d.ts +4 -4
  58. package/package.json +1 -1
  59. package/dist/_commonjsHelpers-BVfed4GL.mjs +0 -28
  60. package/dist/index-CYJvDaI_.mjs +0 -1371
  61. package/dist/index-o0oTSdUL.mjs +0 -149
  62. package/dist/info-XskyQapE.mjs +0 -4
  63. package/dist/info-a4HMapKP.mjs +0 -4
@@ -1,10 +1,10 @@
1
- import { defineComponent as he, mergeModels as ve, useModel as we, ref as F, reactive as Ve, computed as H, watch as W, resolveComponent as p, createElementBlock as P, openBlock as f, Fragment as I, createVNode as t, withCtx as n, createElementVNode as h, unref as u, createBlock as S, createCommentVNode as $, renderList as R, toDisplayString as _, createTextVNode as T } from "vue";
1
+ import { defineComponent as he, mergeModels as ve, useModel as we, ref as F, reactive as Ve, computed as H, watch as W, resolveComponent as p, createElementBlock as P, openBlock as f, Fragment as I, createVNode as t, withCtx as n, createElementVNode as h, unref as s, createBlock as S, createCommentVNode as $, renderList as R, toDisplayString as _, createTextVNode as T } from "vue";
2
2
  import { ElMessage as q } from "element-plus";
3
3
  import { d as Fe, p as Se, u as _e, c as Pe } from "./index-CvX2It1o.mjs";
4
4
  import "jmash-rbac";
5
5
  import { useI18n as Ie } from "vue-i18n";
6
- import { i as G, a as $e } from "./index-COvZrTZl.mjs";
7
- import { D as g, i as qe, C as ke } from "./index-5rQmXXAD.mjs";
6
+ import { i as G, a as $e } from "./index-Cc1yu7_y.mjs";
7
+ import { D as g, i as qe, C as ke } from "./index-CTX-1ZJN.mjs";
8
8
  import { itemBudgetApi as J } from "xyvcard-itsm";
9
9
  import { useUserStoreHook as De } from "jmash-core";
10
10
  import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -46,8 +46,8 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
46
46
  }
47
47
  const N = (e, l) => (console.log(e), e.map((r) => {
48
48
  console.log(r);
49
- const d = { ...r };
50
- return console.log(d), d.children && d.children.length > 0 && (d.children = N(d.children, l)), l.includes(d.value) || d.children && d.children.length > 0 ? (console.log(d), d) : null;
49
+ const u = { ...r };
50
+ return console.log(u), u.children && u.children.length > 0 && (u.children = N(u.children, l)), l.includes(u.value) || u.children && u.children.length > 0 ? (console.log(u), u) : null;
51
51
  }).filter((r) => r !== null)), M = async (e, l) => {
52
52
  if (!e || !l) {
53
53
  a.budgetType = "", a.contractMoney = "0", w.value = [];
@@ -57,13 +57,13 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
57
57
  const r = {
58
58
  itemId: e,
59
59
  annual: l
60
- }, s = (await J.findList(r)).data.results || [];
61
- if (s.length > 0) {
62
- const i = s.map((V) => V.budgetType);
60
+ }, d = (await J.findList(r)).data.results || [];
61
+ if (d.length > 0) {
62
+ const i = d.map((V) => V.budgetType);
63
63
  w.value = N(
64
64
  g.budgetTypeDict.values,
65
65
  i
66
- ), a.budgetType = s[0].budgetType || "", a.contractMoney = String(s[0].approvedAmount) || "0";
66
+ ), a.budgetType = d[0].budgetType || "", a.contractMoney = String(d[0].approvedAmount) || "0";
67
67
  } else
68
68
  a.budgetType = "", a.contractMoney = "0", w.value = [], q.warning(c("itsmFlowSpareParts.noBudgetType"));
69
69
  } catch (r) {
@@ -82,10 +82,10 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
82
82
  const l = {
83
83
  itemId: a.itemId,
84
84
  annual: a.annual
85
- }, s = ((await J.findList(l)).data.results || []).find(
85
+ }, d = ((await J.findList(l)).data.results || []).find(
86
86
  (i) => i.budgetType === e
87
87
  );
88
- s ? a.contractMoney = String(s.approvedAmount) || "0" : a.contractMoney = "0";
88
+ d ? a.contractMoney = String(d.approvedAmount) || "0" : a.contractMoney = "0";
89
89
  } catch (l) {
90
90
  console.error("获取预算金额失败:", l), a.contractMoney = "0";
91
91
  }
@@ -125,9 +125,9 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
125
125
  B.value = "0.00";
126
126
  return;
127
127
  }
128
- const l = e.reduce((r, d) => {
129
- const s = parseFloat(d.valuation) || 0, i = parseFloat(d.number) || 0;
130
- return r + s * i;
128
+ const l = e.reduce((r, u) => {
129
+ const d = parseFloat(u.valuation) || 0, i = parseFloat(u.number) || 0;
130
+ return r + d * i;
131
131
  }, 0);
132
132
  B.value = l.toFixed(2);
133
133
  },
@@ -145,7 +145,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
145
145
  type: [
146
146
  {
147
147
  required: !0,
148
- message: c("itsmFlowSpareParts.typeRequired"),
148
+ message: c("itsmFlowSpareParts.itsmtypeRequired"),
149
149
  trigger: "change"
150
150
  }
151
151
  ],
@@ -205,12 +205,12 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
205
205
  const L = (e) => {
206
206
  var l;
207
207
  return ((l = a.files) == null ? void 0 : l.filter((r) => r.fileSort === e)) || [];
208
- }, ue = (e, l) => {
209
- var s, i;
210
- const r = L(e), d = (s = a.files) == null ? void 0 : s.findIndex(
208
+ }, se = (e, l) => {
209
+ var d, i;
210
+ const r = L(e), u = (d = a.files) == null ? void 0 : d.findIndex(
211
211
  (V) => V.fileSort === e && V.fileId === r[l].fileId
212
212
  );
213
- d !== void 0 && d >= 0 && ((i = a.files) == null || i.splice(d, 1));
213
+ u !== void 0 && u >= 0 && ((i = a.files) == null || i.splice(u, 1));
214
214
  };
215
215
  G.findById({ flowSpareId: k.task.businessKey }).then(({ data: e }) => {
216
216
  Object.assign(a, e);
@@ -218,8 +218,8 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
218
218
  flowSpareId: k.task.businessKey
219
219
  };
220
220
  $e.findList(l).then((r) => {
221
- var d;
222
- console.log("明细接口返回:", r), (d = r == null ? void 0 : r.data) != null && d.results && Array.isArray(r.data.results) ? y.value = r.data.results : (y.value = [
221
+ var u;
222
+ console.log("明细接口返回:", r), (u = r == null ? void 0 : r.data) != null && u.results && Array.isArray(r.data.results) ? y.value = r.data.results : (y.value = [
223
223
  {
224
224
  type: "",
225
225
  name: "",
@@ -235,12 +235,12 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
235
235
  console.error("获取明细失败:", r), q.error("加载明细数据失败"), y.value = [
236
236
  /* 初始化空行 */
237
237
  ];
238
- }), de(), M(
238
+ }), ue(), M(
239
239
  a.itemId,
240
240
  a.annual
241
241
  );
242
242
  });
243
- function de() {
243
+ function ue() {
244
244
  qe.findFilesList({ actionId: k.task.businessKey }).then(({ data: e }) => {
245
245
  e.results && Array.isArray(e.results) && (a.files = e.results.map((l) => {
246
246
  let r = "";
@@ -253,23 +253,23 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
253
253
  });
254
254
  }
255
255
  Q({
256
- changeModel: () => se()
256
+ changeModel: () => de()
257
257
  });
258
- function se() {
258
+ function de() {
259
259
  return v.value && (v.value.selectActions = [
260
260
  { key: "true", value: "同意" },
261
261
  { key: "false", value: "不同意" }
262
262
  ], v.value.varName = "approved", v.value.module = "", v.value.module = ke.MODULE_ITSMFLOW), new Promise((e, l) => {
263
263
  var r;
264
- (r = C.value) == null || r.validate((d) => {
265
- d ? (v.value && (v.value.comment = ""), a.requestId = Math.random() * 10 + "", a.details = y.value, G.create(a).then((s) => {
266
- s.status === 200 ? e(!0) : l(!1);
264
+ (r = C.value) == null || r.validate((u) => {
265
+ u ? (v.value && (v.value.comment = ""), a.requestId = Math.random() * 10 + "", a.details = y.value, G.create(a).then((d) => {
266
+ d.status === 200 ? e(!0) : l(!1);
267
267
  })) : l(!1);
268
268
  });
269
269
  });
270
270
  }
271
271
  return (e, l) => {
272
- const r = p("el-col"), d = p("jmash-select"), s = p("el-form-item"), i = p("el-input"), V = p("el-date-picker"), ie = p("el-option"), pe = p("el-select"), me = p("el-tree-select"), E = p("el-row"), b = p("el-table-column"), ce = p("el-input-number"), j = p("el-icon"), fe = p("el-table"), z = p("el-button"), ge = p("el-form"), ye = p("jmash-multi-upload");
272
+ const r = p("el-col"), u = p("jmash-select"), d = p("el-form-item"), i = p("el-input"), V = p("el-date-picker"), ie = p("el-option"), pe = p("el-select"), me = p("el-tree-select"), E = p("el-row"), b = p("el-table-column"), ce = p("el-input-number"), j = p("el-icon"), fe = p("el-table"), z = p("el-button"), ge = p("el-form"), ye = p("jmash-multi-upload");
273
273
  return f(), P(I, null, [
274
274
  t(r, { span: 24 }, {
275
275
  default: n(() => l[9] || (l[9] = [
@@ -281,7 +281,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
281
281
  t(ge, {
282
282
  ref_key: "taskFormRef",
283
283
  ref: C,
284
- model: u(a),
284
+ model: s(a),
285
285
  "label-width": "150px",
286
286
  rules: oe.value,
287
287
  class: "custom-table-form custom-form"
@@ -291,16 +291,16 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
291
291
  default: n(() => [
292
292
  t(r, { span: 12 }, {
293
293
  default: n(() => [
294
- t(s, {
294
+ t(d, {
295
295
  label: e.$t("itsmFlowSpareParts.govOrgId"),
296
296
  prop: "orgId"
297
297
  }, {
298
298
  default: n(() => [
299
- t(d, {
300
- modelValue: u(a).orgId,
301
- "onUpdate:modelValue": l[0] || (l[0] = (o) => u(a).orgId = o),
299
+ t(u, {
300
+ modelValue: s(a).orgId,
301
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => s(a).orgId = o),
302
302
  placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
303
- data: u(g).orgIdBizDict.values,
303
+ data: s(g).orgIdBizDict.values,
304
304
  clearable: "",
305
305
  filterable: "",
306
306
  onChange: Z,
@@ -314,16 +314,16 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
314
314
  }),
315
315
  t(r, { span: 12 }, {
316
316
  default: n(() => [
317
- t(s, {
318
- label: e.$t("itsmFlowSpareParts.type"),
317
+ t(d, {
318
+ label: e.$t("itsmFlowSpareParts.itsmtype"),
319
319
  prop: "type"
320
320
  }, {
321
321
  default: n(() => [
322
- t(d, {
323
- modelValue: u(a).type,
324
- "onUpdate:modelValue": l[1] || (l[1] = (o) => u(a).type = o),
325
- placeholder: e.$t("itsmFlowSpareParts.typeRequired"),
326
- data: u(g).purchaseTypeEnum.values,
322
+ t(u, {
323
+ modelValue: s(a).type,
324
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => s(a).type = o),
325
+ placeholder: e.$t("itsmFlowSpareParts.itsmtypeRequired"),
326
+ data: s(g).purchaseTypeEnum.values,
327
327
  clearable: "",
328
328
  class: "w-full"
329
329
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -335,14 +335,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
335
335
  }),
336
336
  t(r, { span: 12 }, {
337
337
  default: n(() => [
338
- t(s, {
338
+ t(d, {
339
339
  label: e.$t("itsmFlowSpareParts.applyPlace"),
340
340
  prop: "applyPlace"
341
341
  }, {
342
342
  default: n(() => [
343
343
  t(i, {
344
- modelValue: u(a).applyPlace,
345
- "onUpdate:modelValue": l[2] || (l[2] = (o) => u(a).applyPlace = o),
344
+ modelValue: s(a).applyPlace,
345
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => s(a).applyPlace = o),
346
346
  placeholder: e.$t("itsmFlowSpareParts.applyPlace"),
347
347
  maxlength: "30",
348
348
  "show-word-limit": "",
@@ -357,14 +357,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
357
357
  }),
358
358
  t(r, { span: 12 }, {
359
359
  default: n(() => [
360
- t(s, {
360
+ t(d, {
361
361
  label: e.$t("itsmFlowSpareParts.annual"),
362
362
  prop: "annual"
363
363
  }, {
364
364
  default: n(() => [
365
365
  t(V, {
366
- modelValue: u(a).annual,
367
- "onUpdate:modelValue": l[3] || (l[3] = (o) => u(a).annual = o),
366
+ modelValue: s(a).annual,
367
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => s(a).annual = o),
368
368
  type: "year",
369
369
  placeholder: e.$t("itsmFlowSpareParts.annualRequired"),
370
370
  format: "YYYY",
@@ -379,24 +379,24 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
379
379
  ]),
380
380
  _: 1
381
381
  }),
382
- u(a).type !== "BudgetOut" ? (f(), S(r, {
382
+ s(a).type !== "BudgetOut" ? (f(), S(r, {
383
383
  key: 0,
384
384
  span: 24
385
385
  }, {
386
386
  default: n(() => [
387
- t(s, {
387
+ t(d, {
388
388
  label: e.$t("itsmFlowSpareParts.itemId"),
389
389
  prop: "itemId"
390
390
  }, {
391
391
  default: n(() => [
392
392
  t(pe, {
393
- modelValue: u(a).itemId,
394
- "onUpdate:modelValue": l[4] || (l[4] = (o) => u(a).itemId = o),
393
+ modelValue: s(a).itemId,
394
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => s(a).itemId = o),
395
395
  placeholder: e.$t("itsmFlowSpareParts.itemIdRequired"),
396
396
  data: Y.value,
397
397
  clearable: "",
398
398
  filterable: "",
399
- disabled: !u(a).orgId,
399
+ disabled: !s(a).orgId,
400
400
  onChange: x
401
401
  }, {
402
402
  default: n(() => [
@@ -414,19 +414,19 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
414
414
  ]),
415
415
  _: 1
416
416
  })) : $("", !0),
417
- u(a).type !== "BudgetOut" ? (f(), S(r, {
417
+ s(a).type !== "BudgetOut" ? (f(), S(r, {
418
418
  key: 1,
419
419
  span: 12
420
420
  }, {
421
421
  default: n(() => [
422
- t(s, {
422
+ t(d, {
423
423
  label: e.$t("itsmFlowSpareParts.budgetType"),
424
424
  prop: "budgetType"
425
425
  }, {
426
426
  default: n(() => [
427
427
  t(me, {
428
- modelValue: u(a).budgetType,
429
- "onUpdate:modelValue": l[5] || (l[5] = (o) => u(a).budgetType = o),
428
+ modelValue: s(a).budgetType,
429
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => s(a).budgetType = o),
430
430
  placeholder: e.$t("itsmFlowSpareParts.budgetTypeRequired"),
431
431
  data: w.value,
432
432
  disabled: !w.value.length,
@@ -441,19 +441,19 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
441
441
  ]),
442
442
  _: 1
443
443
  })) : $("", !0),
444
- u(a).type !== "BudgetOut" ? (f(), S(r, {
444
+ s(a).type !== "BudgetOut" ? (f(), S(r, {
445
445
  key: 2,
446
446
  span: 12
447
447
  }, {
448
448
  default: n(() => [
449
- t(s, {
449
+ t(d, {
450
450
  label: e.$t("itsmFlowSpareParts.contractMoney"),
451
451
  prop: "contractMoney"
452
452
  }, {
453
453
  default: n(() => [
454
454
  t(i, {
455
- modelValue: u(a).contractMoney,
456
- "onUpdate:modelValue": l[6] || (l[6] = (o) => u(a).contractMoney = o),
455
+ modelValue: s(a).contractMoney,
456
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => s(a).contractMoney = o),
457
457
  placeholder: e.$t("itsmFlowSpareParts.contractMoneyRequired"),
458
458
  "show-word-limit": "",
459
459
  clearable: ""
@@ -466,13 +466,13 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
466
466
  })) : $("", !0),
467
467
  t(r, { span: 12 }, {
468
468
  default: n(() => [
469
- t(s, {
469
+ t(d, {
470
470
  label: e.$t("itsmFlowSpareParts.createBy"),
471
471
  prop: "createBy"
472
472
  }, {
473
473
  default: n(() => [
474
474
  t(i, {
475
- value: u(X).user.realName,
475
+ value: s(X).user.realName,
476
476
  placeholder: e.$t("itsmFlowSpareParts.createBy"),
477
477
  maxlength: "8",
478
478
  "show-word-limit": "",
@@ -487,14 +487,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
487
487
  }),
488
488
  t(r, { span: 12 }, {
489
489
  default: n(() => [
490
- t(s, {
490
+ t(d, {
491
491
  label: e.$t("itsmFlowSpareParts.applyDate"),
492
492
  prop: "applyDate"
493
493
  }, {
494
494
  default: n(() => [
495
495
  t(V, {
496
- modelValue: u(a).applyDate,
497
- "onUpdate:modelValue": l[7] || (l[7] = (o) => u(a).applyDate = o),
496
+ modelValue: s(a).applyDate,
497
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => s(a).applyDate = o),
498
498
  type: "date",
499
499
  placeholder: e.$t("itsmFlowSpareParts.applyDateRequired"),
500
500
  format: "YYYY-MM-DD",
@@ -533,7 +533,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
533
533
  }, null, 8, ["label"]),
534
534
  t(b, {
535
535
  prop: "type",
536
- label: e.$t("itsmFlowSpareParts.type"),
536
+ label: e.$t("itsmFlowSpareParts.itsmtype"),
537
537
  "header-align": "center",
538
538
  width: "180"
539
539
  }, {
@@ -541,7 +541,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
541
541
  t(i, {
542
542
  modelValue: o.type,
543
543
  "onUpdate:modelValue": (m) => o.type = m,
544
- placeholder: e.$t("itsmFlowSpareParts.typeRequired"),
544
+ placeholder: e.$t("itsmFlowSpareParts.itsmtypeRequired"),
545
545
  class: "w-full"
546
546
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
547
547
  ]),
@@ -549,7 +549,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
549
549
  }, 8, ["label"]),
550
550
  t(b, {
551
551
  prop: "name",
552
- label: e.$t("itsmFlowSpareParts.name"),
552
+ label: e.$t("itsmFlowSpareParts.itsmName"),
553
553
  "header-align": "center",
554
554
  width: "300"
555
555
  }, {
@@ -557,7 +557,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
557
557
  t(i, {
558
558
  modelValue: o.name,
559
559
  "onUpdate:modelValue": (m) => o.name = m,
560
- placeholder: e.$t("itsmFlowSpareParts.nameRequired")
560
+ placeholder: e.$t("itsmFlowSpareParts.itsmNameRequired")
561
561
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
562
562
  ]),
563
563
  _: 1
@@ -661,7 +661,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
661
661
  class: "hover-blue"
662
662
  }, {
663
663
  default: n(() => [
664
- t(u(Fe))
664
+ t(s(Fe))
665
665
  ]),
666
666
  _: 2
667
667
  }, 1032, ["onClick"])) : $("", !0)
@@ -672,12 +672,12 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
672
672
  _: 1
673
673
  }, 8, ["data"]),
674
674
  t(z, {
675
- icon: u(Se),
675
+ icon: s(Se),
676
676
  class: "addButton",
677
677
  onClick: ae
678
678
  }, {
679
679
  default: n(() => [
680
- T(_(u(c)("common.add")), 1)
680
+ T(_(s(c)("common.add")), 1)
681
681
  ]),
682
682
  _: 1
683
683
  }, 8, ["icon"]),
@@ -690,14 +690,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
690
690
  class: "bordered-row"
691
691
  }, {
692
692
  default: n(() => [
693
- (f(!0), P(I, null, R(u(g).fileTypeDict.values.slice(0, 2), (o, m) => (f(), S(s, {
693
+ (f(!0), P(I, null, R(s(g).fileTypeDict.values.slice(0, 2), (o, m) => (f(), S(d, {
694
694
  key: o.dictCode,
695
695
  label: o.dictName
696
696
  }, {
697
697
  default: n(() => [
698
698
  t(z, {
699
699
  type: "primary",
700
- icon: u(_e),
700
+ icon: s(_e),
701
701
  onClick: () => ne(o.dictCode)
702
702
  }, {
703
703
  default: n(() => [
@@ -713,10 +713,10 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
713
713
  t(j, {
714
714
  size: "16",
715
715
  class: "icon-right",
716
- onClick: () => ue(o.dictCode, K)
716
+ onClick: () => se(o.dictCode, K)
717
717
  }, {
718
718
  default: n(() => [
719
- t(u(Pe))
719
+ t(s(Pe))
720
720
  ]),
721
721
  _: 2
722
722
  }, 1032, ["onClick"])
@@ -743,7 +743,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
743
743
  ], 64);
744
744
  };
745
745
  }
746
- }), Ke = /* @__PURE__ */ Me(Te, [["__scopeId", "data-v-c35c6fc3"]]);
746
+ }), Ke = /* @__PURE__ */ Me(Te, [["__scopeId", "data-v-17a7619b"]]);
747
747
  export {
748
748
  Ke as default
749
749
  };
@@ -2,8 +2,8 @@ import { defineComponent as M, ref as R, reactive as S, resolveComponent as s, r
2
2
  import { useTableHooks as X } from "jmash-core";
3
3
  import { useI18n as Y } from "vue-i18n";
4
4
  import { i as Z } from "./common-Cwl5jzlM.mjs";
5
- import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-VfP4qMQI.mjs";
6
- import { C as ee, D as h } from "./index-5rQmXXAD.mjs";
5
+ import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-DK-kdI-u.mjs";
6
+ import { C as ee, D as h } from "./index-CTX-1ZJN.mjs";
7
7
  const oe = { class: "app-container" }, le = { class: "search-container" }, te = ["onClick"], ne = ["onClick"], pe = /* @__PURE__ */ M({
8
8
  __name: "index",
9
9
  setup(ae) {
@@ -1,12 +1,12 @@
1
- import { defineComponent as J, ref as S, reactive as R, onActivated as X, resolveComponent as s, resolveDirective as Z, createElementBlock as h, openBlock as m, createElementVNode as b, createVNode as o, createBlock as I, createCommentVNode as D, withCtx as l, unref as r, withKeys as x, createTextVNode as y, toDisplayString as i, withDirectives as C, isRef as z } from "vue";
1
+ import { defineComponent as J, ref as S, reactive as R, onActivated as X, resolveComponent as s, resolveDirective as Z, createElementBlock as h, openBlock as d, createElementVNode as b, createVNode as o, createBlock as I, createCommentVNode as D, withCtx as l, unref as r, withKeys as x, createTextVNode as y, toDisplayString as i, withDirectives as C, isRef as z } from "vue";
2
2
  import { useTableHooks as ee } from "jmash-core";
3
3
  import { useI18n as te } from "vue-i18n";
4
- import { i as le } from "./index-COvZrTZl.mjs";
5
- import ae from "./edit-C4uQUyxR.mjs";
6
- import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-BWMDxwv-.mjs";
7
- import { D as p, C as re } from "./index-5rQmXXAD.mjs";
4
+ import { i as le } from "./index-Cc1yu7_y.mjs";
5
+ import ae from "./edit-DYzjfcpe.mjs";
6
+ import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-C9LpdXNC.mjs";
7
+ import { D as p, C as re } from "./index-CTX-1ZJN.mjs";
8
8
  import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
- const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de = ["onClick"], me = /* @__PURE__ */ J({
9
+ const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], me = ["onClick"], de = /* @__PURE__ */ J({
10
10
  __name: "index",
11
11
  setup(ce) {
12
12
  p.itemBizLayDict.useValues(), p.orgIdBizDict.useValues();
@@ -56,7 +56,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
56
56
  isColumn: !0
57
57
  },
58
58
  {
59
- label: "itsmFlowSpareParts.type",
59
+ label: "itsmFlowSpareParts.itsmtype",
60
60
  prop: "type",
61
61
  width: "105",
62
62
  sortable: "custom",
@@ -101,17 +101,17 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
101
101
  isColumn: !0
102
102
  }
103
103
  ]);
104
- const d = S({
104
+ const m = S({
105
105
  title: f("common.edit"),
106
106
  visible: !1
107
107
  });
108
108
  S(!1);
109
109
  let _ = R({});
110
110
  function j() {
111
- _ = R({}), d.value.title = f("common.add"), d.value.visible = !0;
111
+ _ = R({}), m.value.title = f("common.add"), m.value.visible = !0;
112
112
  }
113
113
  function L(a) {
114
- _.flowSpareId = a.flowSpareId, d.value.title = f("common.edit"), d.value.visible = !0;
114
+ _.flowSpareId = a.flowSpareId, m.value.title = f("common.edit"), m.value.visible = !0;
115
115
  }
116
116
  const v = S({
117
117
  title: f("common.view"),
@@ -133,7 +133,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
133
133
  u.getList();
134
134
  }), (a, t) => {
135
135
  const k = s("jmash-select"), g = s("el-form-item"), c = s("el-col"), K = s("el-date-picker"), F = s("el-row"), $ = s("el-button"), Q = s("el-form"), H = s("jmash-column-select"), M = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"), P = Z("hasPerm");
136
- return m(), h("div", se, [
136
+ return d(), h("div", se, [
137
137
  b("div", ie, [
138
138
  o(Q, {
139
139
  ref_key: "queryFormRef",
@@ -212,14 +212,14 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
212
212
  o(c, { span: 6 }, {
213
213
  default: l(() => [
214
214
  o(g, {
215
- label: a.$t("itsmFlowSpareParts.type"),
215
+ label: a.$t("itsmFlowSpareParts.itsmtype"),
216
216
  prop: "type"
217
217
  }, {
218
218
  default: l(() => [
219
219
  o(k, {
220
220
  modelValue: n.value.type,
221
221
  "onUpdate:modelValue": t[3] || (t[3] = (e) => n.value.type = e),
222
- placeholder: a.$t("itsmFlowSpareParts.typeRequired"),
222
+ placeholder: a.$t("itsmFlowSpareParts.itsmtypeRequired"),
223
223
  data: r(p).purchaseTypeEnum.values,
224
224
  onKeyup: t[4] || (t[4] = x((e) => r(u).handleQuery(), ["enter"])),
225
225
  clearable: ""
@@ -279,7 +279,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
279
279
  default: l(() => [
280
280
  o(c, { span: 17 }, {
281
281
  default: l(() => [
282
- C((m(), I($, {
282
+ C((d(), I($, {
283
283
  type: "primary",
284
284
  onClick: j
285
285
  }, {
@@ -311,7 +311,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
311
311
  })
312
312
  ]),
313
313
  footer: l(() => [
314
- r(V) > 0 ? (m(), I(W, {
314
+ r(V) > 0 ? (d(), I(W, {
315
315
  key: 0,
316
316
  total: r(V),
317
317
  "onUpdate:total": t[8] || (t[8] = (e) => z(V) ? V.value = e : null),
@@ -346,7 +346,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
346
346
  b("span", null, i(r(p).itemBizLayDict.getValue(e.data.row.itemId)), 1)
347
347
  ]),
348
348
  operation: l((e) => [
349
- C((m(), h("span", {
349
+ C((d(), h("span", {
350
350
  class: "el-button-color",
351
351
  onClick: (T) => L(e.data.row)
352
352
  }, [
@@ -354,7 +354,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
354
354
  ], 8, ue)), [
355
355
  [P, ["reports:itsm_flow_spare_parts:update"]]
356
356
  ]),
357
- C((m(), h("span", {
357
+ C((d(), h("span", {
358
358
  class: "el-button-color dropdown-left",
359
359
  onClick: (T) => r(u).deleteRecord(e.data.row)
360
360
  }, [
@@ -362,12 +362,12 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
362
362
  ], 8, pe)), [
363
363
  [P, ["reports:itsm_flow_spare_parts:delete"]]
364
364
  ]),
365
- C((m(), h("span", {
365
+ C((d(), h("span", {
366
366
  class: "el-button-color dropdown-left",
367
367
  onClick: (T) => Y(e.data.row)
368
368
  }, [
369
369
  y(i(a.$t("common.view")), 1)
370
- ], 8, de)), [
370
+ ], 8, me)), [
371
371
  [P, ["itsmflow:itsm_flow_entrust:view"]]
372
372
  ])
373
373
  ]),
@@ -376,16 +376,16 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
376
376
  ]),
377
377
  _: 1
378
378
  }),
379
- d.value.visible ? (m(), I(ae, {
379
+ m.value.visible ? (d(), I(ae, {
380
380
  key: 0,
381
- modelValue: d.value.visible,
382
- "onUpdate:modelValue": t[12] || (t[12] = (e) => d.value.visible = e),
383
- title: d.value.title,
381
+ modelValue: m.value.visible,
382
+ "onUpdate:modelValue": t[12] || (t[12] = (e) => m.value.visible = e),
383
+ title: m.value.title,
384
384
  "entity-key": r(_),
385
385
  onRefresh: A,
386
386
  width: "1200px"
387
387
  }, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0),
388
- v.value.visible ? (m(), I(oe, {
388
+ v.value.visible ? (d(), I(oe, {
389
389
  key: 1,
390
390
  modelValue: v.value.visible,
391
391
  "onUpdate:modelValue": t[13] || (t[13] = (e) => v.value.visible = e),
@@ -396,7 +396,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
396
396
  ]);
397
397
  };
398
398
  }
399
- }), Ve = /* @__PURE__ */ ne(me, [["__scopeId", "data-v-0afd0049"]]);
399
+ }), Ve = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-22fea36b"]]);
400
400
  export {
401
401
  Ve as default
402
402
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as A, mergeModels as z, getCurrentInstance as R, ref as _, useModel as Y, nextTick as j, resolveComponent as b, createElementBlock as v, openBlock as c, Fragment as k, createVNode as l, withCtx as e, createElementVNode as C, createTextVNode as r, toDisplayString as u, renderList as T, unref as w, createBlock as M } from "vue";
2
2
  import "element-plus";
3
- import { i as H } from "./index-o0oTSdUL.mjs";
4
- import { D as m, i as K, C as W } from "./index-5rQmXXAD.mjs";
3
+ import { i as H } from "./index-BzzIS37Q.mjs";
4
+ import { D as m, i as K, C as W } from "./index-CTX-1ZJN.mjs";
5
5
  import { useUserStoreHook as q, fileApi as G } from "jmash-core";
6
6
  import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const Q = /* @__PURE__ */ A({
@@ -2,8 +2,8 @@ import { defineComponent as be, mergeModels as ge, ref as f, useModel as Ie, rea
2
2
  import "element-plus";
3
3
  import { useI18n as we } from "vue-i18n";
4
4
  import { p as Ee } from "./index-CvX2It1o.mjs";
5
- import { itsmFlowEntrustApi as J } from "./index.mjs";
6
- import { b as Ve, C as v, c as _e, d as Ne, D as E, e as R, a as Fe } from "./index-5rQmXXAD.mjs";
5
+ import { a as J } from "./index-BzzIS37Q.mjs";
6
+ import { b as Ve, C as v, c as _e, d as Ne, D as E, e as R, a as Fe } from "./index-CTX-1ZJN.mjs";
7
7
  import { E as Ue } from "./el-message-BJAl6Gwu.mjs";
8
8
  const De = /* @__PURE__ */ be({
9
9
  __name: "index",
@@ -2,8 +2,8 @@ import { defineComponent as H, ref as N, reactive as W, resolveComponent as u, r
2
2
  import { useTableHooks as M } from "jmash-core";
3
3
  import { useI18n as X } from "vue-i18n";
4
4
  import { i as Y } from "./common-Cwl5jzlM.mjs";
5
- import { D as k, O as Z, C as x } from "./index-5rQmXXAD.mjs";
6
- import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-DhuclI_H.mjs";
5
+ import { D as k, O as Z, C as x } from "./index-CTX-1ZJN.mjs";
6
+ import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-CxZBVr6Z.mjs";
7
7
  const le = { class: "app-container" }, oe = { class: "search-container" }, te = ["onClick"], de = /* @__PURE__ */ H({
8
8
  __name: "index",
9
9
  setup(ne) {