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,8 +1,8 @@
1
1
  import { defineComponent as Q, mergeModels as X, ref as y, useModel as Z, reactive as k, computed as x, nextTick as ee, resolveComponent as n, createElementBlock as f, openBlock as c, Fragment as g, createVNode as t, withCtx as r, createElementVNode as le, unref as a, renderList as q, createBlock as te, createCommentVNode as oe, createTextVNode as C, toDisplayString as R } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as re } from "vue-i18n";
4
- import { i as D } from "./index-BcVc6IOP.mjs";
5
- import { U as ae, C as w, D as M, i as ie } from "./index-CoORscq-.mjs";
4
+ import { i as D } from "./index-B5KQp7b0.mjs";
5
+ import { U as ae, C as w, D as M, i as ie } from "./index-DwxrOrrB.mjs";
6
6
  import { u as se } from "./index-CvX2It1o.mjs";
7
7
  import { useUserStoreHook as ne } from "jmash-core";
8
8
  import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -19,16 +19,16 @@ const de = /* @__PURE__ */ Q({
19
19
  modelModifiers: {}
20
20
  }),
21
21
  emits: ["update:modelValue"],
22
- setup(T, { expose: N }) {
23
- const $ = ne(), { t: m } = re(), v = new ae({ userType: w.COMPANY_MANAGER });
22
+ setup(b, { expose: N }) {
23
+ const U = ne(), { t: m } = re(), v = new ae({ userType: w.COMPANY_MANAGER });
24
24
  v.useValues();
25
- const F = y(), d = Z(T, "modelValue"), b = T, h = y((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
25
+ const F = y(), d = Z(b, "modelValue"), T = b, h = y((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
26
26
  let o = k({
27
27
  requestId: Math.random() * 10 + "",
28
28
  files: [],
29
29
  temporaryType: w.Internal
30
30
  });
31
- const _ = y(!1), I = y(), U = k({
31
+ const _ = y(!1), I = y(), $ = k({
32
32
  govOrgId: [
33
33
  {
34
34
  required: !0,
@@ -91,13 +91,13 @@ const de = /* @__PURE__ */ Q({
91
91
  var l;
92
92
  (l = o.files) == null || l.splice(e, 1);
93
93
  }
94
- D.findById({ temporaryId: b.task.businessKey }).then(({ data: e }) => {
94
+ D.findById({ temporaryId: T.task.businessKey }).then(({ data: e }) => {
95
95
  o.outOrgId = e.outOrgId, ee(() => {
96
96
  Object.assign(o, e), L();
97
97
  });
98
98
  });
99
99
  function L() {
100
- ie.findFilesList({ actionId: b.task.businessKey }).then(({ data: e }) => {
100
+ ie.findFilesList({ actionId: T.task.businessKey }).then(({ data: e }) => {
101
101
  e.results && Array.isArray(e.results) && (o.files = e.results.map((l) => {
102
102
  let i = "";
103
103
  return l.fileName && (i = l.fileSort || l.type || ""), {
@@ -138,7 +138,7 @@ const de = /* @__PURE__ */ Q({
138
138
  ref: F,
139
139
  model: a(o),
140
140
  "label-width": "150px",
141
- rules: U,
141
+ rules: $,
142
142
  class: "custom-table-form custom-form"
143
143
  }, {
144
144
  default: r(() => [
@@ -238,7 +238,7 @@ const de = /* @__PURE__ */ Q({
238
238
  }, {
239
239
  default: r(() => [
240
240
  t(p, {
241
- value: a($).user.realName,
241
+ value: a(U).user.realName,
242
242
  placeholder: e.$t("itsmFlowTemporary.createUserRequired"),
243
243
  "show-word-limit": "",
244
244
  clearable: "",
@@ -277,7 +277,7 @@ const de = /* @__PURE__ */ Q({
277
277
  t(i, { span: 24 }, {
278
278
  default: r(() => [
279
279
  t(u, {
280
- label: e.$t("itsmFlowTemporary.userIdTemporary"),
280
+ label: e.$t("itsmFlowTemporary.assignUser"),
281
281
  prop: "userId"
282
282
  }, {
283
283
  default: r(() => [
@@ -332,7 +332,7 @@ const de = /* @__PURE__ */ Q({
332
332
  ], 64);
333
333
  };
334
334
  }
335
- }), Fe = /* @__PURE__ */ ue(de, [["__scopeId", "data-v-56312c78"]]);
335
+ }), Fe = /* @__PURE__ */ ue(de, [["__scopeId", "data-v-310bdb2c"]]);
336
336
  export {
337
337
  Fe as default
338
338
  };
@@ -1,5 +1,5 @@
1
1
  import { useUserStore as s, clearEmpty as n, request as a } from "jmash-core";
2
- import { q as o } from "./index-BcVc6IOP.mjs";
2
+ import { q as o } from "./index-B5KQp7b0.mjs";
3
3
  class _ {
4
4
  getKey(t) {
5
5
  return {
@@ -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 { a as J } from "./index-BcVc6IOP.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-CoORscq-.mjs";
5
+ import { a as J } from "./index-B5KQp7b0.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-DwxrOrrB.mjs";
7
7
  import { E as Ue } from "./el-message-BJAl6Gwu.mjs";
8
8
  const De = /* @__PURE__ */ be({
9
9
  __name: "index",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as oe, mergeModels as ne, computed as ae, ref as f, useModel as se, resolveComponent as p, createElementBlock as k, openBlock as _, Fragment as P, createVNode as e, withCtx as l, createElementVNode as a, createTextVNode as r, toDisplayString as u, unref as b, createCommentVNode as I, withDirectives as A, vShow as B, createBlock as O, renderList as re } from "vue";
2
2
  import "element-plus";
3
3
  import { u as ue } from "./index-CvX2It1o.mjs";
4
- import { a as ie } from "./index-BcVc6IOP.mjs";
5
- import { D as C, C as $, a as de } from "./index-CoORscq-.mjs";
4
+ import { a as ie } from "./index-B5KQp7b0.mjs";
5
+ import { D as C, C as $, a as de } from "./index-DwxrOrrB.mjs";
6
6
  import { i as S, t as ce, a as pe } from "./common-Cwl5jzlM.mjs";
7
7
  import "jmash-core";
8
8
  import { useI18n as me } from "vue-i18n";
9
- import { F as fe } from "./FileSaver.min-CcRexVWs.mjs";
9
+ import { F as fe } from "./FileSaver.min-BMRKyFh3.mjs";
10
10
  import { E as j } from "./el-message-BJAl6Gwu.mjs";
11
11
  const _e = { key: 0 }, ve = { key: 1 }, be = {
12
12
  key: 2,
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Z, mergeModels as ee, ref as m, useModel as le, resolveComponent as d, createElementBlock as A, openBlock as k, Fragment as O, createVNode as e, withCtx as l, createElementVNode as s, createTextVNode as u, toDisplayString as r, unref as b, createBlock as $, createCommentVNode as V, renderList as te } from "vue";
2
2
  import "element-plus";
3
3
  import { u as ae } from "./index-CvX2It1o.mjs";
4
- import { a as oe } from "./index-BcVc6IOP.mjs";
5
- import { D as F, i as I, C as y } from "./index-CoORscq-.mjs";
4
+ import { a as oe } from "./index-B5KQp7b0.mjs";
5
+ import { D as F, i as I, C as y } from "./index-DwxrOrrB.mjs";
6
6
  import { fileApi as ne } from "jmash-core";
7
7
  import { useI18n as se } from "vue-i18n";
8
- import { F as ue } from "./FileSaver.min-CcRexVWs.mjs";
8
+ import { F as ue } from "./FileSaver.min-BMRKyFh3.mjs";
9
9
  import { E as j } from "./el-message-BJAl6Gwu.mjs";
10
10
  const ke = /* @__PURE__ */ Z({
11
11
  __name: "index",
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as W, ref as C, reactive as G, resolveComponent as i, resolveDirective as J, createElementBlock as S, openBlock as y, createElementVNode as b, createVNode as t, createBlock as U, createCommentVNode as D, withCtx as o, withKeys as d, unref as n, createTextVNode as k, toDisplayString as v, withDirectives as M, isRef as R } from "vue";
2
2
  import { useTableHooks as X } from "jmash-core";
3
3
  import { useI18n as Y } from "vue-i18n";
4
- import { a as Z } from "./index-BcVc6IOP.mjs";
5
- import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-B6I27uus.mjs";
6
- import { D as p, O as ee, C as le } from "./index-CoORscq-.mjs";
4
+ import { a as Z } from "./index-B5KQp7b0.mjs";
5
+ import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-CCZjqFA6.mjs";
6
+ import { D as p, O as ee, C as le } from "./index-DwxrOrrB.mjs";
7
7
  const te = { class: "app-container" }, oe = { class: "search-container" }, ae = ["onClick"], pe = /* @__PURE__ */ W({
8
8
  __name: "index",
9
9
  setup(ne) {
@@ -1,13 +1,13 @@
1
1
  var f = Object.defineProperty;
2
2
  var E = (n, t, s) => t in n ? f(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s;
3
3
  var r = (n, t, s) => E(n, typeof t != "symbol" ? t + "" : t, s);
4
- import { useUserStore as p, clearEmpty as o, request as l, BizDict as d, BizLayDict as N, CustomBizDict as g, EnumDict as m } from "jmash-core";
5
- import { contractApi as v, itemApi as _, contractUserApi as y } from "xyvcard-itsm";
6
- import { sysUserExtApi as A, sysOrgApi as h } from "xyvcard-itsmsys";
7
- import { a as T } from "./index-BcVc6IOP.mjs";
4
+ import { useUserStore as p, clearEmpty as o, request as l, BizDict as d, BizLayDict as N, CustomBizDict as _, EnumDict as m } from "jmash-core";
5
+ import { contractApi as v, itemApi as g, contractUserApi as y } from "xyvcard-itsm";
6
+ import { sysUserExtApi as T, sysOrgApi as h } from "xyvcard-itsmsys";
7
+ import { a as A } from "./index-B5KQp7b0.mjs";
8
8
  import { ref as U } from "vue";
9
9
  import { EntryDict as I, EntryBizLayDict as L } from "jmash-dict";
10
- class O {
10
+ class S {
11
11
  getKey(t) {
12
12
  return {
13
13
  acceptanceId: t.acceptanceId
@@ -90,7 +90,7 @@ class O {
90
90
  });
91
91
  }
92
92
  }
93
- const S = new O();
93
+ const O = new S();
94
94
  class P {
95
95
  getKey(t) {
96
96
  return {
@@ -129,7 +129,7 @@ class B extends d {
129
129
  });
130
130
  }
131
131
  }
132
- class z extends d {
132
+ class D extends d {
133
133
  // 实现 useValues 方法
134
134
  useValues() {
135
135
  return new Promise((t, s) => {
@@ -150,7 +150,7 @@ class z extends d {
150
150
  });
151
151
  }
152
152
  }
153
- class D extends d {
153
+ class z extends d {
154
154
  // 实现 useValues 方法
155
155
  useValues() {
156
156
  return new Promise((t, s) => {
@@ -216,7 +216,7 @@ class b extends d {
216
216
  // 实现 useValues 方法
217
217
  useValues() {
218
218
  return new Promise((t, s) => {
219
- _.findList(this.query).then(({ data: c }) => {
219
+ g.findList(this.query).then(({ data: c }) => {
220
220
  const i = c.results;
221
221
  this.values.length = 0, this.values.push(
222
222
  ...i.map(
@@ -236,7 +236,7 @@ class R extends d {
236
236
  // 实现 useValues 方法
237
237
  useValues() {
238
238
  return new Promise((t, s) => {
239
- T.findList(this.query).then(({ data: c }) => {
239
+ A.findList(this.query).then(({ data: c }) => {
240
240
  const i = c.results;
241
241
  this.values.length = 0, this.values.push(
242
242
  ...i.map(
@@ -260,7 +260,7 @@ class Y extends d {
260
260
  // 实现 useValues 方法
261
261
  useValues() {
262
262
  return new Promise((t, s) => {
263
- A.findList(this.query).then(({ data: c }) => {
263
+ T.findList(this.query).then(({ data: c }) => {
264
264
  console.log(c);
265
265
  const i = c.results;
266
266
  this.values.length = 0, this.values.push(
@@ -280,7 +280,7 @@ class V extends d {
280
280
  // 实现 useValues 方法
281
281
  useValues() {
282
282
  return new Promise((t, s) => {
283
- S.findList(this.query).then(({ data: c }) => {
283
+ O.findList(this.query).then(({ data: c }) => {
284
284
  const i = c.results;
285
285
  this.values.length = 0, this.values.push(
286
286
  ...i.map(
@@ -339,7 +339,8 @@ r(a, "FORMAT_MONTH", "YYYY-MM"), // 验查结果
339
339
  r(a, "IS_VALUES", U([
340
340
  { key: !0, value: "通过" },
341
341
  { key: !1, value: "不通过" }
342
- ])), // 服务内容枚举
342
+ ])), // 合同状态
343
+ r(a, "STATUS_COMPLETED", "completed"), // 服务内容枚举
343
344
  r(a, "ENUM_SERVICE_CONTENT", "xyvcard.itsmflow.protobuf.ServiceContent"), // 流程状态枚举
344
345
  r(a, "ENUM_APPLY_STATUS", "xyvcard.itsmflow.protobuf.ItsmApplyStatus"), // 申购类型
345
346
  r(a, "ENUM_PURCHASE_TYPE", "xyvcard.itsmflow.protobuf.SparePartsType"), // 项目名称
@@ -387,10 +388,10 @@ class u {
387
388
  }
388
389
  // 人力合同
389
390
  r(u, "itsmContractBizDict", new B({})), // 人力合同编号
390
- r(u, "contractNumberBizDict", new z({})), // 服务人员所属单位
391
- r(u, "orgIdBizDict", new D({})), // 实际投入人员
391
+ r(u, "contractNumberBizDict", new D({})), // 服务人员所属单位
392
+ r(u, "orgIdBizDict", new z({})), // 实际投入人员
392
393
  r(u, "contractUserBizDict", new F({})), // 验查结果
393
- r(u, "isValuesDict", new g(a.IS_VALUES, {})), // 服务内容
394
+ r(u, "isValuesDict", new _(a.IS_VALUES, {})), // 服务内容
394
395
  r(u, "serviceContentEnum", new m(
395
396
  a.MODULE_ITSMFLOW,
396
397
  a.ENUM_SERVICE_CONTENT
@@ -426,14 +427,14 @@ export {
426
427
  a as C,
427
428
  u as D,
428
429
  R as I,
429
- D as O,
430
+ z as O,
430
431
  Y as U,
431
432
  M as a,
432
433
  B as b,
433
- z as c,
434
+ D as c,
434
435
  b as d,
435
436
  F as e,
436
437
  V as f,
437
438
  k as g,
438
- S as i
439
+ O as i
439
440
  };
@@ -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-BztTRMJP.mjs";
6
- import { C as ee, D as h } from "./index-CoORscq-.mjs";
5
+ import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang--_knO1G4.mjs";
6
+ import { C as ee, D as h } from "./index-DwxrOrrB.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,8 +1,8 @@
1
1
  import { defineComponent as M, ref as k, reactive as R, resolveComponent as s, resolveDirective as W, createElementBlock as V, openBlock as p, createElementVNode as _, createVNode as o, createBlock as A, createCommentVNode as S, withCtx as l, withKeys as F, unref as n, createTextVNode as f, toDisplayString as u, withDirectives as $, isRef as T } from "vue";
2
2
  import { useTableHooks as X } from "jmash-core";
3
3
  import { useI18n as Y } from "vue-i18n";
4
- import { D as N, C as Z, i as x } from "./index-CoORscq-.mjs";
5
- import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-9PY1bpNe.mjs";
4
+ import { D as N, C as Z, i as x } from "./index-DwxrOrrB.mjs";
5
+ import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-7II7oUb_.mjs";
6
6
  const te = { class: "app-container" }, le = { class: "search-container" }, oe = ["onClick"], ae = ["onClick"], me = /* @__PURE__ */ M({
7
7
  __name: "index",
8
8
  setup(ne) {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as U, mergeModels as K, ref as w, useModel as j, resolveComponent as b, createElementBlock as g, openBlock as m, Fragment as $, createVNode as t, withCtx as e, createElementVNode as v, createBlock as S, createCommentVNode as D, createTextVNode as n, toDisplayString as s, unref as y, renderList as M } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as W } from "vue-i18n";
4
- import { D as f, i as q, C as G } from "./index-CoORscq-.mjs";
5
- import { i as H, a as J } from "./index-Dn1b7GfK.mjs";
4
+ import { D as f, i as q, C as G } from "./index-DwxrOrrB.mjs";
5
+ import { i as H, a as J } from "./index-DWAcpt7l.mjs";
6
6
  import { fileApi as Q } from "jmash-core";
7
7
  import { rbacApi as X } from "jmash-rbac";
8
8
  const re = /* @__PURE__ */ U({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as le, mergeModels as oe, ref as w, useModel as te, reactive as ae, computed as Y, nextTick as ie, resolveComponent as p, createElementBlock as y, openBlock as f, Fragment as _, createVNode as l, withCtx as t, createElementVNode as q, unref as d, renderList as k, createBlock as A, toDisplayString as I, createTextVNode as S, createCommentVNode as re } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as se } from "vue-i18n";
4
- import { i as L } from "./index-BcVc6IOP.mjs";
5
- import { U as ne, C as O, D as h, i as de } from "./index-CoORscq-.mjs";
4
+ import { i as L } from "./index-B5KQp7b0.mjs";
5
+ import { U as ne, C as O, D as h, i as de } from "./index-DwxrOrrB.mjs";
6
6
  import { u as ue } from "./index-CvX2It1o.mjs";
7
7
  import { useUserStoreHook as me, fileApi as pe } from "jmash-core";
8
8
  import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -20,9 +20,9 @@ const ce = /* @__PURE__ */ le({
20
20
  }),
21
21
  emits: ["update:modelValue"],
22
22
  setup(U, { expose: P }) {
23
- const j = me(), { t: ye } = se(), $ = new ne({ userType: O.COMPANY_MANAGER });
24
- $.useValues();
25
- const g = w(), v = te(U, "modelValue"), N = w([]), m = w({}), D = U, M = w((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
23
+ const j = me(), { t: ye } = se(), g = new ne({ userType: O.COMPANY_MANAGER });
24
+ g.useValues();
25
+ const $ = w(), b = te(U, "modelValue"), N = w([]), m = w({}), D = U, M = w((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
26
26
  let r = ae({
27
27
  files: [],
28
28
  requestId: Math.random() * 10 + "",
@@ -65,13 +65,13 @@ const ce = /* @__PURE__ */ le({
65
65
  if (e.results && Array.isArray(e.results)) {
66
66
  const u = [], s = [], c = ((o = h.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : o.dictCode) || "", T = ((i = h.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : i.dictCode) || "";
67
67
  e.results.forEach((n) => {
68
- const b = {
68
+ const v = {
69
69
  fileName: n.fileName || "",
70
70
  fileId: n.fileId || "",
71
71
  fileSort: n.fileSort || n.type || "",
72
72
  fileSrc: n.fileSrc || n.filePath || ""
73
73
  };
74
- b.fileSort === c ? u.push(b) : b.fileSort === T && s.push(b);
74
+ v.fileSort === c ? u.push(v) : v.fileSort === T && s.push(v);
75
75
  }), N.value = u, r.files = s.map((n) => ({
76
76
  fileName: n.fileName ?? "",
77
77
  fileId: n.fileId ?? "",
@@ -93,20 +93,20 @@ const ce = /* @__PURE__ */ le({
93
93
  changeModel: () => W()
94
94
  });
95
95
  function W() {
96
- return v.value && (v.value.selectActions = [
96
+ return b.value && (b.value.selectActions = [
97
97
  { key: "true", value: "同意" },
98
98
  { key: "false", value: "不同意" }
99
- ], v.value.varName = "approved", v.value.module = "", v.value.module = O.MODULE_ITSMFLOW), new Promise((e, o) => {
99
+ ], b.value.varName = "approved", b.value.module = "", b.value.module = O.MODULE_ITSMFLOW), new Promise((e, o) => {
100
100
  var i;
101
- (i = g.value) == null || i.validate((u) => {
102
- u ? (v.value && (v.value.comment = ""), L.finish(
101
+ (i = $.value) == null || i.validate((u) => {
102
+ u ? (b.value && (b.value.comment = ""), L.finish(
103
103
  r
104
104
  ), e(!0)) : o(!1);
105
105
  });
106
106
  });
107
107
  }
108
108
  return (e, o) => {
109
- const i = p("el-col"), u = p("el-input"), s = p("el-form-item"), c = p("el-button"), T = p("el-date-picker"), n = p("jmash-select"), b = p("CircleClose"), J = p("el-icon"), Q = p("el-row"), X = p("el-form"), Z = p("jmash-multi-upload");
109
+ const i = p("el-col"), u = p("el-input"), s = p("el-form-item"), c = p("el-button"), T = p("el-date-picker"), n = p("jmash-select"), v = p("CircleClose"), J = p("el-icon"), Q = p("el-row"), X = p("el-form"), Z = p("jmash-multi-upload");
110
110
  return f(), y(_, null, [
111
111
  l(i, { span: 24 }, {
112
112
  default: t(() => o[8] || (o[8] = [
@@ -117,7 +117,7 @@ const ce = /* @__PURE__ */ le({
117
117
  }),
118
118
  l(X, {
119
119
  ref_key: "taskFormRef",
120
- ref: g,
120
+ ref: $,
121
121
  model: d(r),
122
122
  "label-width": "150px",
123
123
  class: "custom-table-form custom-form"
@@ -245,14 +245,14 @@ const ce = /* @__PURE__ */ le({
245
245
  l(i, { span: 24 }, {
246
246
  default: t(() => [
247
247
  l(s, {
248
- label: e.$t("itsmFlowTemporary.userIdTemporary"),
248
+ label: e.$t("itsmFlowTemporary.assignUser"),
249
249
  prop: "userId"
250
250
  }, {
251
251
  default: t(() => [
252
252
  l(n, {
253
253
  modelValue: m.value.userId,
254
254
  "onUpdate:modelValue": o[3] || (o[3] = (a) => m.value.userId = a),
255
- data: d($).values,
255
+ data: d(g).values,
256
256
  placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
257
257
  "show-word-limit": "",
258
258
  clearable: "",
@@ -362,7 +362,7 @@ const ce = /* @__PURE__ */ le({
362
362
  onClick: (ee) => K(V)
363
363
  }, {
364
364
  default: t(() => [
365
- l(b)
365
+ l(v)
366
366
  ]),
367
367
  _: 2
368
368
  }, 1032, ["onClick"])
@@ -390,7 +390,7 @@ const ce = /* @__PURE__ */ le({
390
390
  ], 64);
391
391
  };
392
392
  }
393
- }), ke = /* @__PURE__ */ fe(ce, [["__scopeId", "data-v-de7c3f08"]]);
393
+ }), ke = /* @__PURE__ */ fe(ce, [["__scopeId", "data-v-26e50b35"]]);
394
394
  export {
395
395
  ke as default
396
396
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as H, ref as V, reactive as W, resolveComponent as u, resolveDirective as G, createElementBlock as h, openBlock as g, createElementVNode as y, createVNode as t, createBlock as S, createCommentVNode as D, withCtx as a, withKeys as c, unref as n, createTextVNode as k, toDisplayString as d, withDirectives as J, isRef as U } from "vue";
2
2
  import { useTableHooks as M } from "jmash-core";
3
3
  import { useI18n as X } from "vue-i18n";
4
- import { D as w, O as Y, C as Z, i as x } from "./index-CoORscq-.mjs";
5
- import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-BSPpLDkD.mjs";
4
+ import { D as w, O as Y, C as Z, i as x } from "./index-DwxrOrrB.mjs";
5
+ import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-BIXF9GEE.mjs";
6
6
  const le = { class: "app-container" }, te = { class: "search-container" }, ae = ["onClick"], me = /* @__PURE__ */ H({
7
7
  __name: "index",
8
8
  setup(oe) {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-BcVc6IOP.mjs";
2
+ import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-B5KQp7b0.mjs";
3
3
  import "jmash-flow";
4
4
  export {
5
5
  m as TaskItsmFlowAcceptance,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-BSPpLDkD.mjs";
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-CFUnSMzb.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-Ca_011gq.mjs";
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-CAwX89Kj.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-B6I27uus.mjs";
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-EUowm_f8.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-DA3rqMgU.mjs";
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-CE8Yg9AD.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-Bi1mHnjh.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-B5uTH_2O.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-BIXF9GEE.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-CCZjqFA6.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-F83TFtID.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,11 +1,11 @@
1
- import { defineComponent as z, mergeModels as L, useModel as P, getCurrentInstance as A, ref as T, resolveComponent as p, createBlock as V, openBlock as f, withCtx as l, createVNode as t, createTextVNode as i, toDisplayString as s, unref as m, createElementBlock as g, Fragment as B, renderList as D, createElementVNode as E } from "vue";
2
- import { rbacApi as M } from "jmash-rbac";
3
- import { D as c, i as U } from "./index-CoORscq-.mjs";
4
- import { fileApi as K } from "jmash-core";
5
- import { i as S } from "./index-BcVc6IOP.mjs";
6
- const Q = /* @__PURE__ */ z({
1
+ import { defineComponent as L, mergeModels as P, useModel as A, getCurrentInstance as E, ref as T, computed as M, resolveComponent as p, createBlock as V, openBlock as f, withCtx as l, createVNode as t, createTextVNode as i, toDisplayString as s, unref as m, createElementBlock as g, Fragment as B, renderList as D, createElementVNode as S } from "vue";
2
+ import { rbacApi as U } from "jmash-rbac";
3
+ import { D as c, i as K } from "./index-DwxrOrrB.mjs";
4
+ import { fileApi as Y } from "jmash-core";
5
+ import { i as R } from "./index-B5KQp7b0.mjs";
6
+ const X = /* @__PURE__ */ L({
7
7
  __name: "info",
8
- props: /* @__PURE__ */ L({
8
+ props: /* @__PURE__ */ P({
9
9
  entityKey: {
10
10
  type: Object,
11
11
  default: () => {
@@ -16,36 +16,37 @@ const Q = /* @__PURE__ */ z({
16
16
  modelModifiers: {}
17
17
  }),
18
18
  emits: ["update:modelValue"],
19
- setup(w) {
19
+ setup(v) {
20
20
  var I;
21
21
  c.orgIdBizDict.useValues();
22
- const y = P(w, "modelValue"), { proxy: $ } = A(), _ = w, n = T();
23
- (I = _.entityKey) != null && I.temporaryId && S.findById({ temporaryId: _.entityKey.temporaryId }).then((o) => {
22
+ const y = A(v, "modelValue"), { proxy: $ } = E(), _ = v, n = T();
23
+ (I = _.entityKey) != null && I.temporaryId && R.findById({ temporaryId: _.entityKey.temporaryId }).then((o) => {
24
24
  n.value = o.data;
25
25
  });
26
- const v = T([]);
27
- U.findFilesList({ actionId: _.entityKey.temporaryId }).then((o) => {
28
- v.value = o.data.results, console.log(o.data.results, "=> files");
26
+ const w = T([]);
27
+ K.findFilesList({ actionId: _.entityKey.temporaryId }).then((o) => {
28
+ w.value = o.data.results, console.log(o.data.results, "=> files");
29
29
  });
30
- async function h(o) {
30
+ const h = M(() => w.value.filter((o) => o.fileSort === "temporary_file"));
31
+ async function k(o) {
31
32
  try {
32
- const d = K.fileUrl(o.fileSrc), a = await (await fetch(d)).blob(), b = window.URL.createObjectURL(a), u = document.createElement("a");
33
+ const d = Y.fileUrl(o.fileSrc), a = await (await fetch(d)).blob(), b = window.URL.createObjectURL(a), u = document.createElement("a");
33
34
  u.href = b, u.download = o.fileName || "download", document.body.appendChild(u), u.click();
34
35
  } catch {
35
36
  }
36
37
  }
37
- function k() {
38
+ function C() {
38
39
  y.value && (y.value = !1);
39
40
  }
40
41
  return (o, d) => {
41
- const r = p("el-form-item"), a = p("el-col"), b = p("el-button"), u = p("el-row"), C = p("el-form"), O = p("el-dialog");
42
- return f(), V(O, {
42
+ const r = p("el-form-item"), a = p("el-col"), b = p("el-button"), u = p("el-row"), O = p("el-form"), N = p("el-dialog");
43
+ return f(), V(N, {
43
44
  modelValue: y.value,
44
45
  "onUpdate:modelValue": d[0] || (d[0] = (e) => y.value = e),
45
- onClose: k
46
+ onClose: C
46
47
  }, {
47
48
  default: l(() => [
48
- t(C, {
49
+ t(O, {
49
50
  ref: "itsmFlowEntrustFormRef",
50
51
  "label-width": "150px",
51
52
  class: "custom-table-form custom-form"
@@ -96,7 +97,7 @@ const Q = /* @__PURE__ */ z({
96
97
  default: l(() => {
97
98
  var e;
98
99
  return [
99
- i(s(m(M).userInfo((e = n.value) == null ? void 0 : e.createBy).realName), 1)
100
+ i(s(m(U).userInfo((e = n.value) == null ? void 0 : e.createBy).realName), 1)
100
101
  ];
101
102
  }),
102
103
  _: 1
@@ -163,22 +164,22 @@ const Q = /* @__PURE__ */ z({
163
164
  class: "bordered-row"
164
165
  }, {
165
166
  default: l(() => [
166
- (f(!0), g(B, null, D(m(c).fileTypeDict.values.slice(2, 3), (e, Y) => (f(), V(r, {
167
+ (f(!0), g(B, null, D(m(c).fileTypeDict.values.slice(2, 3), (e, j) => (f(), V(r, {
167
168
  key: e.dictCode,
168
169
  label: e.dictName
169
170
  }, {
170
171
  default: l(() => [
171
- (f(!0), g(B, null, D(v.value, (F, N) => (f(), g("div", {
172
- key: N,
172
+ (f(!0), g(B, null, D(h.value, (F, z) => (f(), g("div", {
173
+ key: z,
173
174
  class: "files-list"
174
175
  }, [
175
- E("span", null, s(F.fileName), 1),
176
+ S("span", null, s(F.fileName), 1),
176
177
  t(b, {
177
178
  type: "primary",
178
179
  link: "",
179
180
  size: "small",
180
181
  class: "icon-right",
181
- onClick: (R) => h(F)
182
+ onClick: (H) => k(F)
182
183
  }, {
183
184
  default: l(() => d[1] || (d[1] = [
184
185
  i(" 查看 ")
@@ -257,5 +258,5 @@ const Q = /* @__PURE__ */ z({
257
258
  }
258
259
  });
259
260
  export {
260
- Q as _
261
+ X as _
261
262
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, mergeModels as h, ref as N, useModel as B, resolveComponent as p, createBlock as O, openBlock as U, withCtx as e, createVNode as l, createElementVNode as a, createTextVNode as u, toDisplayString as i, unref as v } from "vue";
2
2
  import "element-plus";
3
- import { D as m, i as F } from "./index-CoORscq-.mjs";
3
+ import { D as m, i as F } from "./index-DwxrOrrB.mjs";
4
4
  import { fileApi as j } from "jmash-core";
5
5
  const M = /* @__PURE__ */ I({
6
6
  __name: "info",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as U, mergeModels as z, useModel as K, ref as P, resolveComponent as m, createBlock as _, openBlock as f, withCtx as e, createVNode as l, createElementVNode as B, createCommentVNode as I, createTextVNode as r, toDisplayString as n, unref as b, createElementBlock as $, Fragment as C, renderList as N } from "vue";
2
- import { D as c, i as R } from "./index-CoORscq-.mjs";
3
- import { i as j, a as q } from "./index-Dn1b7GfK.mjs";
2
+ import { D as c, i as R } from "./index-DwxrOrrB.mjs";
3
+ import { i as j, a as q } from "./index-DWAcpt7l.mjs";
4
4
  import { fileApi as G } from "jmash-core";
5
5
  import { rbacApi as H } from "jmash-rbac";
6
6
  const Z = /* @__PURE__ */ U({