xyvcard-itsm-flow 0.0.37 → 0.0.39

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 (71) hide show
  1. package/dist/{FileSaver.min-CcRexVWs.mjs → FileSaver.min-BMRKyFh3.mjs} +1 -1
  2. package/dist/{edit-CYO8KzcD.mjs → edit-BFj-cJFf.mjs} +2 -2
  3. package/dist/{edit-mhTHPQB-.mjs → edit-BvUjc7UO.mjs} +1 -1
  4. package/dist/{edit-tabydyPH.mjs → edit-C0Cq_jUX.mjs} +29 -29
  5. package/dist/{edit-ndrtIw5g.mjs → edit-D5gwJVQO.mjs} +1 -1
  6. package/dist/{edit-BrYSwWm8.mjs → edit-DdqzI_Iq.mjs} +1 -1
  7. package/dist/{edit-B8FY8M6x.mjs → edit-_XNRhIfe.mjs} +2 -2
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-BztTRMJP.mjs → edit.vue_vue_type_script_setup_true_lang--_knO1G4.mjs} +1 -1
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-9PY1bpNe.mjs → edit.vue_vue_type_script_setup_true_lang-7II7oUb_.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-bjVhQ_PJ.mjs → edit.vue_vue_type_script_setup_true_lang-BYIOm05z.mjs} +74 -70
  11. package/dist/{index-CKbI3tpx.mjs → index-B1x_AsUO.mjs} +4 -4
  12. package/dist/{index-DcgRM3T_.mjs → index-B59VK1az.mjs} +1 -1
  13. package/dist/{index-BcVc6IOP.mjs → index-B5KQp7b0.mjs} +1397 -1414
  14. package/dist/{index-BZCrZ2NM.mjs → index-BK3NeBLn.mjs} +3 -3
  15. package/dist/{index-seo1ROVp.mjs → index-BXVGgaak.mjs} +3 -3
  16. package/dist/{index-DqA8Hu3s.mjs → index-BYasxdX5.mjs} +96 -95
  17. package/dist/{index-DYF5Sb7s.mjs → index-B_TzXrea.mjs} +3 -3
  18. package/dist/{index-DDDjPU_6.mjs → index-CPHJcvoG.mjs} +1 -1
  19. package/dist/{index-hXWnm8E3.mjs → index-CPODIJ6K.mjs} +3 -3
  20. package/dist/{index-Ba5u8NXB.mjs → index-CQL-UkUY.mjs} +3 -3
  21. package/dist/{index-BAKUoBpo.mjs → index-CTvPaVzG.mjs} +72 -71
  22. package/dist/{index-DrQ7FvTu.mjs → index-CVonkny_.mjs} +3 -3
  23. package/dist/{index-BGtM6tx9.mjs → index-Cja8t3fR.mjs} +16 -16
  24. package/dist/{index-DO1JH6jO.mjs → index-CkGX7IFU.mjs} +2 -2
  25. package/dist/{index-Qnybzvhx.mjs → index-CoNeIE2w.mjs} +2 -2
  26. package/dist/{index-y58uESmU.mjs → index-CqIW6atk.mjs} +2 -2
  27. package/dist/{index-BbwdlA0W.mjs → index-CtUgoV4T.mjs} +4 -4
  28. package/dist/{index-Cm4MxGFZ.mjs → index-DK9cXze_.mjs} +4 -4
  29. package/dist/{index-BAnj1Koq.mjs → index-DLEEV11K.mjs} +55 -55
  30. package/dist/{index-BvoGbtCI.mjs → index-DNeSW0zf.mjs} +2 -2
  31. package/dist/{index-XHwUs18-.mjs → index-DOM5SeKc.mjs} +84 -84
  32. package/dist/{index-CzBjNiWz.mjs → index-DQjv9iQi.mjs} +12 -12
  33. package/dist/{index-Dn1b7GfK.mjs → index-DWAcpt7l.mjs} +1 -1
  34. package/dist/{index-Bmh2A5D0.mjs → index-DYbwtCeL.mjs} +2 -2
  35. package/dist/{index-C3a-IeXB.mjs → index-DaoE55n4.mjs} +3 -3
  36. package/dist/{index-CDYf1Lun.mjs → index-DjhLqSYC.mjs} +3 -3
  37. package/dist/{index-BBbYRQLd.mjs → index-Dp5NTPRt.mjs} +3 -3
  38. package/dist/{index-CoORscq-.mjs → index-DwxrOrrB.mjs} +20 -19
  39. package/dist/{index-FqOQHZLY.mjs → index-clGn5YjC.mjs} +2 -2
  40. package/dist/{index-60w9n0dT.mjs → index-m1fbkwSk.mjs} +2 -2
  41. package/dist/{index-BHufDvTp.mjs → index-soCKhzqO.mjs} +2 -2
  42. package/dist/{index-CIn70URA.mjs → index-wW4PUujK.mjs} +17 -17
  43. package/dist/{index-ByTfXvfu.mjs → index-yJ9WXclc.mjs} +2 -2
  44. package/dist/index.mjs +1 -1
  45. package/dist/{info-CHxS6e-5.mjs → info-B5uBfnYf.mjs} +1 -1
  46. package/dist/{info-CQu4kti_.mjs → info-BEWZzCVW.mjs} +1 -1
  47. package/dist/{info-CRbFsX7X.mjs → info-BULR864o.mjs} +1 -1
  48. package/dist/{info-B1nuQXGG.mjs → info-BaZXP7TI.mjs} +1 -1
  49. package/dist/info-CY0Une2D.mjs +4 -0
  50. package/dist/info-CsRGF3xk.mjs +4 -0
  51. package/dist/info-CxVGph6R.mjs +4 -0
  52. package/dist/info-D9nurmGm.mjs +4 -0
  53. package/dist/info-F4ootkog.mjs +4 -0
  54. package/dist/{info.vue_vue_type_script_setup_true_lang-JgJStqvz.mjs → info.vue_vue_type_script_setup_true_lang-B5uTH_2O.mjs} +28 -27
  55. package/dist/{info.vue_vue_type_script_setup_true_lang-BSPpLDkD.mjs → info.vue_vue_type_script_setup_true_lang-BIXF9GEE.mjs} +1 -1
  56. package/dist/{info.vue_vue_type_script_setup_true_lang-DnfgKcgP.mjs → info.vue_vue_type_script_setup_true_lang-Bi1mHnjh.mjs} +2 -2
  57. package/dist/{info.vue_vue_type_script_setup_true_lang-CIRdXvCE.mjs → info.vue_vue_type_script_setup_true_lang-CAwX89Kj.mjs} +2 -2
  58. package/dist/{info.vue_vue_type_script_setup_true_lang-B6I27uus.mjs → info.vue_vue_type_script_setup_true_lang-CCZjqFA6.mjs} +2 -2
  59. package/dist/{info.vue_vue_type_script_setup_true_lang-Ca_011gq.mjs → info.vue_vue_type_script_setup_true_lang-CE8Yg9AD.mjs} +2 -2
  60. package/dist/{info.vue_vue_type_script_setup_true_lang-DA3rqMgU.mjs → info.vue_vue_type_script_setup_true_lang-CFUnSMzb.mjs} +11 -11
  61. package/dist/{info.vue_vue_type_script_setup_true_lang-CJKMJgJT.mjs → info.vue_vue_type_script_setup_true_lang-EUowm_f8.mjs} +51 -50
  62. package/dist/{info.vue_vue_type_script_setup_true_lang-CEuLYRI4.mjs → info.vue_vue_type_script_setup_true_lang-F83TFtID.mjs} +1 -1
  63. package/dist/style.css +1 -1
  64. package/dts/constant.d.ts +1 -0
  65. package/dts/lang/itsm-flow/zh-cn.d.ts +1 -0
  66. package/package.json +2 -2
  67. package/dist/info-D2SRN11N.mjs +0 -4
  68. package/dist/info-Dp-hn9ce.mjs +0 -4
  69. package/dist/info-M92gprUH.mjs +0 -4
  70. package/dist/info-XOKKyoyw.mjs +0 -4
  71. package/dist/info-mSFJ4xKX.mjs +0 -4
@@ -1,4 +1,4 @@
1
- import { c } from "./index-BcVc6IOP.mjs";
1
+ import { c } from "./index-B5KQp7b0.mjs";
2
2
  var E = { exports: {} };
3
3
  (function(h, j) {
4
4
  (function(p, i) {
@@ -3,8 +3,8 @@ import { ElMessage as _ } from "element-plus";
3
3
  import { d as ke, p as Be, u as Ce, c as Ue } from "./index-CvX2It1o.mjs";
4
4
  import "jmash-rbac";
5
5
  import { useI18n as De } from "vue-i18n";
6
- import { i as A, a as Re } from "./index-Dn1b7GfK.mjs";
7
- import { D as P, O as Me, C as Te, i as Oe } from "./index-CoORscq-.mjs";
6
+ import { i as A, a as Re } from "./index-DWAcpt7l.mjs";
7
+ import { D as P, O as Me, C as Te, i as Oe } from "./index-DwxrOrrB.mjs";
8
8
  import { itemBudgetApi as ee } from "xyvcard-itsm";
9
9
  import { useUserStoreHook as Ae } from "jmash-core";
10
10
  import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BztTRMJP.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-7II7oUb_.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as re, mergeModels as U, ref as f, reactive as S, useModel as ae, computed as se, nextTick as ie, resolveComponent as i, createBlock as N, openBlock as c, withCtx as o, createVNode as t, unref as s, createElementBlock as w, Fragment as b, renderList as M, createCommentVNode as ne, createTextVNode as y, toDisplayString as g, createElementVNode as ue } from "vue";
1
+ import { defineComponent as re, mergeModels as D, ref as f, reactive as S, useModel as ae, computed as se, nextTick as ie, resolveComponent as i, createBlock as N, openBlock as c, withCtx as o, createVNode as t, unref as s, createElementBlock as w, Fragment as v, renderList as M, createCommentVNode as ne, createTextVNode as y, toDisplayString as g, createElementVNode as ue } from "vue";
2
2
  import { ElMessage as O } from "element-plus";
3
3
  import { useI18n as me } from "vue-i18n";
4
- import { i as V } from "./index-BcVc6IOP.mjs";
5
- import { U as de, C as Y, D as I, i as pe } from "./index-CoORscq-.mjs";
4
+ import { i as V } from "./index-B5KQp7b0.mjs";
5
+ import { U as de, C as Y, D as I, i as pe } from "./index-DwxrOrrB.mjs";
6
6
  import { u as ce } from "./index-CvX2It1o.mjs";
7
7
  import { useUserStoreHook as fe } from "jmash-core";
8
8
  import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
9
  const ge = { class: "title" }, _e = /* @__PURE__ */ re({
10
10
  __name: "edit",
11
- props: /* @__PURE__ */ U({
11
+ props: /* @__PURE__ */ D({
12
12
  entityKey: {
13
13
  type: Object,
14
14
  default: () => {
@@ -18,17 +18,17 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
18
18
  modelValue: { type: Boolean },
19
19
  modelModifiers: {}
20
20
  }),
21
- emits: /* @__PURE__ */ U(["refresh"], ["update:modelValue"]),
21
+ emits: /* @__PURE__ */ D(["refresh"], ["update:modelValue"]),
22
22
  setup(q, { emit: j }) {
23
- const A = fe(), { t: u } = me(), T = new de({ userType: Y.COMPANY_MANAGER });
24
- T.useValues(), console.log("userIdList values:", T.values);
25
- const F = f(), C = f((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
23
+ const A = fe(), { t: u } = me(), F = new de({ userType: Y.COMPANY_MANAGER });
24
+ F.useValues(), console.log("userIdList values:", F.values);
25
+ const T = f(), C = f((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
26
26
  let r = S({
27
27
  requestId: Math.random() * 10 + "",
28
28
  files: [],
29
29
  temporaryType: Y.Internal
30
30
  });
31
- const h = f(!1), k = f(), E = S({
31
+ const b = f(!1), k = f(), E = S({
32
32
  govOrgId: [
33
33
  {
34
34
  required: !0,
@@ -71,12 +71,12 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
71
71
  trigger: "change"
72
72
  }
73
73
  ]
74
- }), p = ae(q, "modelValue"), v = q, L = se(() => {
74
+ }), p = ae(q, "modelValue"), h = q, L = se(() => {
75
75
  const e = I.fileTypeDict.values.slice(2, 3)[0];
76
76
  return e ? e.dictCode : "temporary_file";
77
77
  });
78
78
  function B() {
79
- h.value = !0, k.value.clearFileList();
79
+ b.value = !0, k.value.clearFileList();
80
80
  }
81
81
  function P(e) {
82
82
  const l = {
@@ -92,14 +92,14 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
92
92
  var l;
93
93
  (l = r.files) == null || l.splice(e, 1);
94
94
  }
95
- const R = j, z = Object.keys(v.entityKey);
96
- f(z.length >= 1).value && V.findById(v.entityKey).then(({ data: e }) => {
95
+ const R = j, z = Object.keys(h.entityKey);
96
+ f(z.length >= 1).value && V.findById(h.entityKey).then(({ data: e }) => {
97
97
  r.outOrgId = e.outOrgId, ie(() => {
98
98
  Object.assign(r, e), G();
99
99
  });
100
100
  });
101
101
  function G() {
102
- pe.findFilesList({ actionId: v.entityKey.temporaryId }).then(({ data: e }) => {
102
+ pe.findFilesList({ actionId: h.entityKey.temporaryId }).then(({ data: e }) => {
103
103
  e.results && Array.isArray(e.results) && (r.files = e.results.map((l) => {
104
104
  let n = "";
105
105
  return l.fileName && (n = l.fileSort || l.type || ""), {
@@ -113,7 +113,7 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
113
113
  }
114
114
  const H = async () => {
115
115
  var e;
116
- await ((e = F.value) == null ? void 0 : e.validate(async (l) => {
116
+ await ((e = T.value) == null ? void 0 : e.validate(async (l) => {
117
117
  l && V.create(r).then((n) => {
118
118
  n.status === 200 && (O({
119
119
  message: u("common.submitSuccess"),
@@ -123,7 +123,7 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
123
123
  }));
124
124
  }, J = async () => {
125
125
  var e;
126
- await ((e = F.value) == null ? void 0 : e.validate(async (l) => {
126
+ await ((e = T.value) == null ? void 0 : e.validate(async (l) => {
127
127
  l && V.submit(r).then((n) => {
128
128
  n.status === 200 && (O({
129
129
  message: u("common.submitSuccess"),
@@ -132,7 +132,7 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
132
132
  });
133
133
  }));
134
134
  };
135
- function $() {
135
+ function U() {
136
136
  p.value && (p.value = !1);
137
137
  }
138
138
  return (e, l) => {
@@ -140,11 +140,11 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
140
140
  return c(), N(te, {
141
141
  modelValue: p.value,
142
142
  "onUpdate:modelValue": l[6] || (l[6] = (a) => p.value = a),
143
- onClose: $
143
+ onClose: U
144
144
  }, {
145
145
  footer: o(() => [
146
146
  ue("div", ge, [
147
- t(_, { onClick: $ }, {
147
+ t(_, { onClick: U }, {
148
148
  default: o(() => [
149
149
  y(g(e.$t("common.cancel")), 1)
150
150
  ]),
@@ -173,7 +173,7 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
173
173
  default: o(() => [
174
174
  t(ee, {
175
175
  ref_key: "itsmFlowTemporaryFormRef",
176
- ref: F,
176
+ ref: T,
177
177
  model: s(r),
178
178
  "label-width": "150px",
179
179
  rules: E,
@@ -224,7 +224,7 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
224
224
  }),
225
225
  t(d, { span: 24 }, {
226
226
  default: o(() => [
227
- (c(!0), w(b, null, M(s(I).fileTypeDict.values.slice(2, 3), (a, Te) => (c(), w(b, {
227
+ (c(!0), w(v, null, M(s(I).fileTypeDict.values.slice(2, 3), (a, Fe) => (c(), w(v, {
228
228
  key: a.dictCode
229
229
  }, [
230
230
  t(m, {
@@ -246,15 +246,15 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
246
246
  }, 1032, ["label"]),
247
247
  s(r).files && s(r).files.length > 0 ? (c(), N(m, { key: 0 }, {
248
248
  default: o(() => [
249
- (c(!0), w(b, null, M(s(r).files, (oe, D) => (c(), w("div", {
250
- key: D,
249
+ (c(!0), w(v, null, M(s(r).files, (oe, $) => (c(), w("div", {
250
+ key: $,
251
251
  class: "files-list"
252
252
  }, [
253
253
  y(g(oe.fileName) + " ", 1),
254
254
  t(W, {
255
255
  size: "16",
256
256
  class: "icon-right",
257
- onClick: (Fe) => K(D)
257
+ onClick: (Te) => K($)
258
258
  }, {
259
259
  default: o(() => [
260
260
  t(Q)
@@ -315,14 +315,14 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
315
315
  t(d, { span: 24 }, {
316
316
  default: o(() => [
317
317
  t(m, {
318
- label: e.$t("itsmFlowTemporary.userIdTemporary"),
318
+ label: e.$t("itsmFlowTemporary.assignUser"),
319
319
  prop: "userId"
320
320
  }, {
321
321
  default: o(() => [
322
322
  t(Z, {
323
323
  modelValue: s(r).userId,
324
324
  "onUpdate:modelValue": l[3] || (l[3] = (a) => s(r).userId = a),
325
- data: s(T).values,
325
+ data: s(F).values,
326
326
  placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
327
327
  "show-word-limit": "",
328
328
  clearable: "",
@@ -363,8 +363,8 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
363
363
  t(le, {
364
364
  ref_key: "uploadRef",
365
365
  ref: k,
366
- modelValue: h.value,
367
- "onUpdate:modelValue": l[5] || (l[5] = (a) => h.value = a),
366
+ modelValue: b.value,
367
+ "onUpdate:modelValue": l[5] || (l[5] = (a) => b.value = a),
368
368
  onUploadFileList: P
369
369
  }, null, 8, ["modelValue"])
370
370
  ]),
@@ -372,7 +372,7 @@ const ge = { class: "title" }, _e = /* @__PURE__ */ re({
372
372
  }, 8, ["modelValue"]);
373
373
  };
374
374
  }
375
- }), Re = /* @__PURE__ */ ye(_e, [["__scopeId", "data-v-898ff694"]]);
375
+ }), Re = /* @__PURE__ */ ye(_e, [["__scopeId", "data-v-0dfcf2ba"]]);
376
376
  export {
377
377
  Re as default
378
378
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-bjVhQ_PJ.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang--_knO1G4.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-9PY1bpNe.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BYIOm05z.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as fe, mergeModels as j, ref as c, reactive as Y, computed as z, watch as K, useModel as ye, nextTick as ge, resolveComponent as i, createBlock as h, openBlock as m, withCtx as r, createVNode as o, unref as s, createElementBlock as y, Fragment as I, renderList as V, createCommentVNode as Ie, createTextVNode as v, toDisplayString as w, createElementVNode as ve } from "vue";
2
2
  import { ElMessage as H } from "element-plus";
3
3
  import { useI18n as we } from "vue-i18n";
4
- import { i as C } from "./index-BcVc6IOP.mjs";
5
- import { D as b, O as G, C as $, i as be } from "./index-CoORscq-.mjs";
4
+ import { i as C } from "./index-B5KQp7b0.mjs";
5
+ import { D as b, O as G, C as $, i as be } from "./index-DwxrOrrB.mjs";
6
6
  import { u as _e } from "./index-CvX2It1o.mjs";
7
7
  import { sysUserExtApi as Fe } from "xyvcard-itsmsys";
8
8
  import { useUserStoreHook as Te } from "jmash-core";
@@ -3,7 +3,7 @@ import { ElMessage as S } from "element-plus";
3
3
  import { useI18n as pe } from "vue-i18n";
4
4
  import { i as I, t as fe, a as be } from "./common-Cwl5jzlM.mjs";
5
5
  import { p as ve } from "./index-CvX2It1o.mjs";
6
- import { f as ge, C as Ne, D as $, g as ke, a as _e } from "./index-CoORscq-.mjs";
6
+ import { f as ge, C as Ne, D as $, g as ke, a as _e } from "./index-DwxrOrrB.mjs";
7
7
  const he = { class: "title" }, $e = /* @__PURE__ */ se({
8
8
  __name: "edit",
9
9
  props: /* @__PURE__ */ z({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as ve, mergeModels as L, ref as f, useModel as be, reactive as T, resolveComponent as u, createBlock as H, openBlock as y, withCtx as o, createVNode as t, createElementVNode as r, unref as d, createElementBlock as R, Fragment as G, renderList as J, createTextVNode as b, toDisplayString as F } from "vue";
2
2
  import { ElMessage as N } from "element-plus";
3
3
  import { useI18n as we } from "vue-i18n";
4
- import { I as ge, C as j, U as he, D as A, i as V } from "./index-CoORscq-.mjs";
4
+ import { I as ge, C as j, U as he, D as A, i as V } from "./index-DwxrOrrB.mjs";
5
5
  import { u as ye } from "./index-CvX2It1o.mjs";
6
6
  import { useUserStore as Fe } from "jmash-core";
7
7
  const Ne = { class: "title" }, qe = /* @__PURE__ */ ve({
@@ -1,9 +1,9 @@
1
- import { defineComponent as Ee, mergeModels as Q, ref as f, useModel as _e, reactive as W, resolveComponent as d, createBlock as k, openBlock as E, withCtx as o, createVNode as l, createElementVNode as u, unref as s, createElementBlock as X, Fragment as Y, renderList as Z, toDisplayString as U, createCommentVNode as Ve, createTextVNode as _ } from "vue";
1
+ import { defineComponent as Ee, mergeModels as Q, ref as v, useModel as _e, reactive as W, resolveComponent as d, createBlock as k, openBlock as E, withCtx as o, createVNode as l, createElementVNode as u, unref as s, createElementBlock as X, Fragment as Y, renderList as Z, toDisplayString as U, createCommentVNode as Ve, createTextVNode as _ } from "vue";
2
2
  import { ElMessage as O } from "element-plus";
3
3
  import { useI18n as Fe } from "vue-i18n";
4
4
  import { p as Ue } from "./index-CvX2It1o.mjs";
5
- import { a as A } from "./index-BcVc6IOP.mjs";
6
- import { b as Ne, C as g, c as Ce, d as $e, D as V, a as ke, e as x } from "./index-CoORscq-.mjs";
5
+ import { a as A } from "./index-B5KQp7b0.mjs";
6
+ import { b as Ne, C as m, c as Ce, d as $e, D as V, a as ke, e as x } from "./index-DwxrOrrB.mjs";
7
7
  import "xyvcard-itsm";
8
8
  const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
9
9
  __name: "edit",
@@ -19,23 +19,27 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
19
19
  }),
20
20
  emits: /* @__PURE__ */ Q(["refresh"], ["update:modelValue"]),
21
21
  setup(M, { emit: ee }) {
22
- const { t: m } = Fe(), q = f(), v = _e(M, "modelValue"), K = ee, F = f([]), I = f({}), w = f([]), R = f([]), D = f([]), B = f([]);
22
+ const { t: p } = Fe(), D = v(), b = _e(M, "modelValue"), K = ee, F = v([]), I = v({}), w = v([]), q = v([]), R = v([]), S = v([]);
23
23
  let r = W({
24
24
  requestId: Math.random() * 10 + ""
25
25
  });
26
- const S = new Ne({
27
- contractSort: g.contractSort.manpower,
28
- contractType: g.contractType.outsource
26
+ const B = new Ne({
27
+ contractSort: m.contractSort.manpower,
28
+ contractType: m.contractType.outsource,
29
+ auditStatus: !0,
30
+ status: m.STATUS_COMPLETED
29
31
  });
30
- S.useValues();
31
- const z = new Ce({
32
- contractSort: g.contractSort.manpower,
33
- contractType: g.contractType.outsource
32
+ B.useValues();
33
+ const T = new Ce({
34
+ contractSort: m.contractSort.manpower,
35
+ contractType: m.contractType.outsource,
36
+ auditStatus: !0,
37
+ status: m.STATUS_COMPLETED
34
38
  });
35
- z.useValues();
39
+ T.useValues();
36
40
  const N = new $e({});
37
41
  N.useValues(), V.orgIdBizDict.useValues(), V.parentIdBizDict.useValues();
38
- const y = f([
42
+ const y = v([
39
43
  {
40
44
  contractUserId: "",
41
45
  idNo: "",
@@ -59,40 +63,40 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
59
63
  contractId: [
60
64
  {
61
65
  required: !0,
62
- message: m("itsmFlowEntrust.contractIdRequired"),
66
+ message: p("itsmFlowEntrust.contractIdRequired"),
63
67
  trigger: "change"
64
68
  }
65
69
  ],
66
70
  contractNo: [
67
71
  {
68
72
  required: !0,
69
- message: m("itsmFlowEntrust.contractNoRequired"),
73
+ message: p("itsmFlowEntrust.contractNoRequired"),
70
74
  trigger: "change"
71
75
  }
72
76
  ],
73
77
  entrustName: [
74
78
  {
75
79
  required: !0,
76
- message: m("itsmFlowEntrust.entrustNameRequired"),
80
+ message: p("itsmFlowEntrust.entrustNameRequired"),
77
81
  trigger: "change"
78
82
  }
79
83
  ],
80
84
  serviceContent: [
81
85
  {
82
86
  required: !0,
83
- message: m("itsmFlowEntrust.serviceContentRequired"),
87
+ message: p("itsmFlowEntrust.serviceContentRequired"),
84
88
  trigger: "blur"
85
89
  }
86
90
  ]
87
- }), b = M, ne = Object.keys(b.entityKey);
88
- f(ne.length >= 1).value && (A.findById({ entrustId: b.entityKey.entrustId }).then(({ data: e }) => {
91
+ }), g = M, ne = Object.keys(g.entityKey);
92
+ v(ne.length >= 1).value && (A.findById({ entrustId: g.entityKey.entrustId }).then(({ data: e }) => {
89
93
  Object.assign(r, e);
90
- }), oe(), se(), J(b.entityKey.contractId));
94
+ }), oe(), se(), H(g.entityKey.contractId));
91
95
  function oe() {
92
- w.value = typeof b.entityKey.entrustItsmId == "string" ? b.entityKey.entrustItsmId.split(",") || [] : [], F.value = typeof b.entityKey.belongOrgId == "string" ? b.entityKey.belongOrgId.split(",") || [] : [];
96
+ w.value = typeof g.entityKey.entrustItsmId == "string" ? g.entityKey.entrustItsmId.split(",") || [] : [], F.value = typeof g.entityKey.belongOrgId == "string" ? g.entityKey.belongOrgId.split(",") || [] : [];
93
97
  }
94
98
  function se() {
95
- ke.findList({ actionId: b.entityKey.entrustId }).then(({ data: e }) => {
99
+ ke.findList({ actionId: g.entityKey.entrustId }).then(({ data: e }) => {
96
100
  const t = e.results.map((a) => ({
97
101
  ...a,
98
102
  contractUserId: a.userId,
@@ -102,7 +106,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
102
106
  });
103
107
  }
104
108
  function re() {
105
- D.value = w.value.map((e) => {
109
+ R.value = w.value.map((e) => {
106
110
  const t = N.values.find(
107
111
  (a) => a.key === e
108
112
  );
@@ -113,7 +117,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
113
117
  });
114
118
  }
115
119
  function ue() {
116
- B.value = F.value.map((e) => {
120
+ S.value = F.value.map((e) => {
117
121
  const t = V.parentIdBizDict.values.find(
118
122
  (a) => a.value === e
119
123
  );
@@ -124,7 +128,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
124
128
  });
125
129
  }
126
130
  function j() {
127
- R.value = y.value.map((e) => {
131
+ q.value = y.value.map((e) => {
128
132
  console.log(e);
129
133
  const { duration: t, ...a } = e;
130
134
  return {
@@ -138,91 +142,91 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
138
142
  }
139
143
  const de = async () => {
140
144
  var e;
141
- await ((e = q.value) == null ? void 0 : e.validate((t) => {
145
+ await ((e = D.value) == null ? void 0 : e.validate((t) => {
142
146
  if (t) {
143
147
  if (w.value.length === 0) {
144
- O.warning(m("itsmFlowEntrust.entrustItsmIdRequired"));
148
+ O.warning(p("itsmFlowEntrust.entrustItsmIdRequired"));
145
149
  return;
146
150
  }
147
151
  j(), A.save({
148
152
  ...r,
149
- entrustUser: R.value,
150
- belongOrg: B.value,
151
- entrustItsm: D.value
153
+ entrustUser: q.value,
154
+ belongOrg: S.value,
155
+ entrustItsm: R.value
152
156
  }).then((a) => {
153
157
  a.status === 200 && (O({
154
- message: m("common.submitSuccess"),
158
+ message: p("common.submitSuccess"),
155
159
  type: "success"
156
- }), v.value && (v.value = !1), K("refresh", a.status === 200));
160
+ }), b.value && (b.value = !1), K("refresh", a.status === 200));
157
161
  });
158
162
  }
159
163
  }));
160
164
  }, ie = async () => {
161
165
  var e;
162
- await ((e = q.value) == null ? void 0 : e.validate((t) => {
166
+ await ((e = D.value) == null ? void 0 : e.validate((t) => {
163
167
  if (t) {
164
168
  if (w.value.length === 0) {
165
- O.warning(m("itsmFlowEntrust.entrustItsmIdRequired"));
169
+ O.warning(p("itsmFlowEntrust.entrustItsmIdRequired"));
166
170
  return;
167
171
  }
168
172
  j(), A.submit({
169
173
  ...r,
170
- entrustUser: R.value,
171
- belongOrg: B.value,
172
- entrustItsm: D.value
174
+ entrustUser: q.value,
175
+ belongOrg: S.value,
176
+ entrustItsm: R.value
173
177
  }).then((a) => {
174
178
  a.status === 200 && (O({
175
- message: m("common.submitSuccess"),
179
+ message: p("common.submitSuccess"),
176
180
  type: "success"
177
- }), v.value && (v.value = !1), K("refresh", a.status === 200));
181
+ }), b.value && (b.value = !1), K("refresh", a.status === 200));
178
182
  });
179
183
  }
180
184
  }));
181
185
  };
182
186
  function L() {
183
- v.value && (v.value = !1);
187
+ b.value && (b.value = !1);
184
188
  }
185
- function H() {
189
+ function P() {
186
190
  I.value = { values: [] }, y.value.forEach((e) => {
187
191
  e.contractUserId = "", e.idNo = "", e.cost = 0, e.duration = [];
188
192
  });
189
193
  }
190
- function J(e) {
191
- const t = S.values.find(
194
+ function H(e) {
195
+ const t = B.values.find(
192
196
  (a) => a.key === e
193
197
  );
194
- r.contractNo = (t == null ? void 0 : t.contractNumber) ?? "", r.serviceOrg = (t == null ? void 0 : t.orgId) ?? "", r.contractName = (t == null ? void 0 : t.value) ?? "", H(), I.value = new x({
198
+ r.contractNo = (t == null ? void 0 : t.contractNumber) ?? "", r.serviceOrg = (t == null ? void 0 : t.orgId) ?? "", r.contractName = (t == null ? void 0 : t.value) ?? "", P(), I.value = new x({
195
199
  contractId: e
196
200
  }), I.value.useValues();
197
201
  }
198
202
  function ce(e) {
199
- const t = z.values.find(
203
+ const t = T.values.find(
200
204
  (a) => a.key === e
201
205
  );
202
- r.contractId = (t == null ? void 0 : t.contractId) ?? "", r.serviceOrg = (t == null ? void 0 : t.orgId) ?? "", r.contractName = (t == null ? void 0 : t.value) ?? "", H(), I.value = new x({
206
+ r.contractId = (t == null ? void 0 : t.contractId) ?? "", r.serviceOrg = (t == null ? void 0 : t.orgId) ?? "", r.contractName = (t == null ? void 0 : t.value) ?? "", P(), I.value = new x({
203
207
  contractId: t.contractId
204
208
  }), I.value.useValues();
205
209
  }
206
210
  function me(e, t) {
207
211
  const a = I.value.values.find(
208
- (p) => p.key === e
212
+ (f) => f.key === e
209
213
  );
210
214
  a ? (t.userName = a.value ?? "", t.idNo = a.idNo ?? "", t.cost = Number(a.cost) || 0) : (t.userName = "", t.idNo = "", t.cost = 0);
211
215
  }
212
216
  function pe(e) {
213
217
  const t = e.map((a) => {
214
- const p = N.values.find(
218
+ const f = N.values.find(
215
219
  (c) => c.key === a
216
220
  );
217
- return p ? p.orgId : null;
221
+ return f ? f.orgId : null;
218
222
  }).filter((a) => a !== null);
219
223
  F.value = Array.from(new Set(t));
220
224
  }
221
225
  return (e, t) => {
222
- const a = d("el-col"), p = d("jmash-select"), c = d("el-form-item"), fe = d("jmash-dict-select"), P = d("el-option"), G = d("el-select"), ve = d("el-tree-select"), T = d("el-row"), C = d("el-input"), h = d("el-table-column"), be = d("el-date-picker"), ge = d("DeleteFilled"), Ie = d("el-icon"), ye = d("el-table"), $ = d("el-button"), we = d("el-form"), he = d("el-dialog");
226
+ const a = d("el-col"), f = d("jmash-select"), c = d("el-form-item"), fe = d("jmash-dict-select"), J = d("el-option"), G = d("el-select"), ve = d("el-tree-select"), z = d("el-row"), C = d("el-input"), h = d("el-table-column"), be = d("el-date-picker"), ge = d("DeleteFilled"), Ie = d("el-icon"), ye = d("el-table"), $ = d("el-button"), we = d("el-form"), he = d("el-dialog");
223
227
  return E(), k(he, {
224
- modelValue: v.value,
225
- "onUpdate:modelValue": t[9] || (t[9] = (n) => v.value = n),
228
+ modelValue: b.value,
229
+ "onUpdate:modelValue": t[9] || (t[9] = (n) => b.value = n),
226
230
  onClose: L
227
231
  }, {
228
232
  footer: o(() => [
@@ -263,7 +267,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
263
267
  }),
264
268
  l(we, {
265
269
  ref_key: "itsmFlowEntrustFormRef",
266
- ref: q,
270
+ ref: D,
267
271
  model: s(r),
268
272
  "label-width": "150px",
269
273
  rules: ae,
@@ -277,15 +281,15 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
277
281
  prop: "contractId"
278
282
  }, {
279
283
  default: o(() => [
280
- l(p, {
284
+ l(f, {
281
285
  modelValue: s(r).contractId,
282
286
  "onUpdate:modelValue": t[0] || (t[0] = (n) => s(r).contractId = n),
283
287
  placeholder: e.$t("itsmFlowEntrust.contractIdRequired"),
284
- data: s(S).values,
288
+ data: s(B).values,
285
289
  clearable: "",
286
290
  filterable: "",
287
291
  class: "w-full",
288
- onChange: J
292
+ onChange: H
289
293
  }, null, 8, ["modelValue", "placeholder", "data"])
290
294
  ]),
291
295
  _: 1
@@ -300,11 +304,11 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
300
304
  prop: "contractNo"
301
305
  }, {
302
306
  default: o(() => [
303
- l(p, {
307
+ l(f, {
304
308
  modelValue: s(r).contractNo,
305
309
  "onUpdate:modelValue": t[1] || (t[1] = (n) => s(r).contractNo = n),
306
310
  placeholder: e.$t("itsmFlowEntrust.contractIdRequireds"),
307
- data: s(z).values,
311
+ data: s(T).values,
308
312
  clearable: "",
309
313
  filterable: "",
310
314
  class: "w-full",
@@ -327,7 +331,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
327
331
  modelValue: s(r).entrustName,
328
332
  "onUpdate:modelValue": t[2] || (t[2] = (n) => s(r).entrustName = n),
329
333
  placeholder: e.$t("itsmFlowEntrust.entrustNameRequired"),
330
- "type-code": s(g).DICT_PROJECT_NAME,
334
+ "type-code": s(m).DICT_PROJECT_NAME,
331
335
  clearable: "",
332
336
  filterable: "",
333
337
  class: "w-full"
@@ -356,11 +360,11 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
356
360
  onChange: pe
357
361
  }, {
358
362
  default: o(() => [
359
- (E(!0), X(Y, null, Z(s(N).values, (n) => (E(), k(P, {
363
+ (E(!0), X(Y, null, Z(s(N).values, (n) => (E(), k(J, {
360
364
  key: n.key,
361
365
  label: n.value,
362
366
  value: n.key,
363
- disabled: ("status" in n && n.status) !== s(g).status.regular
367
+ disabled: ("status" in n && n.status) !== s(m).status.regular
364
368
  }, null, 8, ["label", "value", "disabled"]))), 128))
365
369
  ]),
366
370
  _: 1
@@ -397,7 +401,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
397
401
  ]),
398
402
  _: 1
399
403
  }),
400
- l(T, null, {
404
+ l(z, null, {
401
405
  default: o(() => [
402
406
  l(a, { span: 12 }, {
403
407
  default: o(() => [
@@ -406,7 +410,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
406
410
  prop: "serviceContent"
407
411
  }, {
408
412
  default: o(() => [
409
- l(p, {
413
+ l(f, {
410
414
  modelValue: s(r).serviceContent,
411
415
  "onUpdate:modelValue": t[5] || (t[5] = (n) => s(r).serviceContent = n),
412
416
  placeholder: e.$t("itsmFlowEntrust.serviceContentRequired"),
@@ -428,7 +432,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
428
432
  prop: "serviceOrg"
429
433
  }, {
430
434
  default: o(() => [
431
- l(p, {
435
+ l(f, {
432
436
  modelValue: s(r).serviceOrg,
433
437
  "onUpdate:modelValue": t[6] || (t[6] = (n) => s(r).serviceOrg = n),
434
438
  placeholder: e.$t("itsmFlowEntrust.contractIdRequireds"),
@@ -487,7 +491,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
487
491
  ]),
488
492
  _: 1
489
493
  }),
490
- l(T, null, {
494
+ l(z, null, {
491
495
  default: o(() => [
492
496
  l(ye, {
493
497
  data: y.value,
@@ -518,7 +522,7 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
518
522
  onChange: (i) => me(i, n)
519
523
  }, {
520
524
  default: o(() => [
521
- (E(!0), X(Y, null, Z(I.value.values, (i) => (E(), k(P, {
525
+ (E(!0), X(Y, null, Z(I.value.values, (i) => (E(), k(J, {
522
526
  key: i.key,
523
527
  label: i.value,
524
528
  value: i.key
@@ -576,8 +580,8 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
576
580
  type: "monthrange",
577
581
  "start-placeholder": e.$t("itsmFlowEntrustUser.startTime"),
578
582
  "end-placeholder": e.$t("itsmFlowEntrustUser.endTime"),
579
- format: s(g).FORMAT_MONTH,
580
- "value-format": s(g).FORMAT_MONTH,
583
+ format: s(m).FORMAT_MONTH,
584
+ "value-format": s(m).FORMAT_MONTH,
581
585
  class: "w-full"
582
586
  }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "format", "value-format"])
583
587
  ]),
@@ -613,14 +617,14 @@ const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
613
617
  onClick: te
614
618
  }, {
615
619
  default: o(() => [
616
- _(U(s(m)("common.add")), 1)
620
+ _(U(s(p)("common.add")), 1)
617
621
  ]),
618
622
  _: 1
619
623
  }, 8, ["icon"])
620
624
  ]),
621
625
  _: 1
622
626
  }),
623
- l(T, { class: "bordered-row" }, {
627
+ l(z, { class: "bordered-row" }, {
624
628
  default: o(() => [
625
629
  l(a, { span: 12 }, {
626
630
  default: o(() => t[12] || (t[12] = [