xyvcard-itsm-flow 0.0.20 → 0.0.22

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 (90) hide show
  1. package/dist/{FileSaver.min-5d27MsC6.mjs → FileSaver.min-X2_RihtX.mjs} +29 -28
  2. package/dist/_commonjsHelpers-BVfed4GL.mjs +28 -0
  3. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  4. package/dist/{edit-DIh0NEYf.mjs → edit-B4N5cmbv.mjs} +1 -1
  5. package/dist/edit-C1Zif4Ov.mjs +492 -0
  6. package/dist/edit-CUiT79xP.mjs +794 -0
  7. package/dist/{edit-DdzFTqhg.mjs → edit-Crp2NJw2.mjs} +1 -1
  8. package/dist/{edit-Vw2XQ1u6.mjs → edit-Da4XYqIW.mjs} +1 -1
  9. package/dist/edit-z2fcZzRN.mjs +378 -0
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs → edit.vue_vue_type_script_setup_true_lang-ClkzOaAV.mjs} +2 -2
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs → edit.vue_vue_type_script_setup_true_lang-DZj5V6Mk.mjs} +5 -4
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs → edit.vue_vue_type_script_setup_true_lang-VfP4qMQI.mjs} +2 -2
  13. package/dist/{el-message-DawVzOVQ.mjs → el-message-BJAl6Gwu.mjs} +1 -1
  14. package/dist/index-5ECLdS5y.mjs +749 -0
  15. package/dist/{index-Cgbv4Ijf.mjs → index-5rQmXXAD.mjs} +118 -173
  16. package/dist/{index-CITy8Hqm.mjs → index-B0J0xma8.mjs} +29 -28
  17. package/dist/{index-7_pEehBt.mjs → index-B5OVt83d.mjs} +2 -2
  18. package/dist/index-BMCOCsW6.mjs +278 -0
  19. package/dist/index-BNfIR-q1.mjs +330 -0
  20. package/dist/index-BW4DcS26.mjs +272 -0
  21. package/dist/{index-DaSMRndr.mjs → index-BYazmSpv.mjs} +8 -7
  22. package/dist/{index-54evOMFJ.mjs → index-Bmev8P7I.mjs} +8 -7
  23. package/dist/index-C3QjePKd.mjs +390 -0
  24. package/dist/{index-DyOibT57.mjs → index-CBowEKcR.mjs} +2 -2
  25. package/dist/{index-Dooa5UH_.mjs → index-CCnjfMtC.mjs} +23 -22
  26. package/dist/{index-v18knD_f.mjs → index-COT8mjWU.mjs} +2 -2
  27. package/dist/index-CbG_QqOf.mjs +149 -0
  28. package/dist/index-CeA9V38o.mjs +339 -0
  29. package/dist/index-ChmGQcWY.mjs +396 -0
  30. package/dist/index-Coz_j3ZO.mjs +400 -0
  31. package/dist/{index-PafaMNgK.mjs → index-CvX2It1o.mjs} +64 -30
  32. package/dist/index-DKewqFNP.mjs +273 -0
  33. package/dist/{index-g0KiWDPW.mjs → index-DNFVieqg.mjs} +3 -3
  34. package/dist/{index-BI1uXq1f.mjs → index-DPqaoK4-.mjs} +7 -6
  35. package/dist/{index-CxyHtsq2.mjs → index-DVyAUAgy.mjs} +2 -2
  36. package/dist/index-Dd1bJ-eY.mjs +479 -0
  37. package/dist/index-DgQ1cL3p.mjs +221 -0
  38. package/dist/{index-C7_kMdm5.mjs → index-Dxfj5xxz.mjs} +2 -2
  39. package/dist/index-HVCVVhoT.mjs +1385 -0
  40. package/dist/index-V8eBbfrN.mjs +402 -0
  41. package/dist/index-YVpXj5al.mjs +316 -0
  42. package/dist/index-gea6CFp0.mjs +457 -0
  43. package/dist/index-oGFiETVc.mjs +366 -0
  44. package/dist/{index-tnTugnqa.mjs → index-sjkYgg27.mjs} +6 -5
  45. package/dist/index.mjs +1203 -999
  46. package/dist/{info-8NydJYfB.mjs → info-C2QOALBq.mjs} +1 -1
  47. package/dist/{info-BbMCDfFR.mjs → info-D90oJO1z.mjs} +1 -1
  48. package/dist/{info-l0eP5Tw1.mjs → info-XskyQapE.mjs} +1 -1
  49. package/dist/info-Y2dPD9_Q.mjs +4 -0
  50. package/dist/info-a4HMapKP.mjs +4 -0
  51. package/dist/info-bvVxVHFs.mjs +4 -0
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs → info.vue_vue_type_script_setup_true_lang-BvcEV_aO.mjs} +115 -114
  53. package/dist/{info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs → info.vue_vue_type_script_setup_true_lang-BzNQmLMY.mjs} +1 -1
  54. package/dist/info.vue_vue_type_script_setup_true_lang-CAAnevRr.mjs +209 -0
  55. package/dist/info.vue_vue_type_script_setup_true_lang-DROdDnz4.mjs +260 -0
  56. package/dist/{info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs → info.vue_vue_type_script_setup_true_lang-DhuclI_H.mjs} +1 -1
  57. package/dist/info.vue_vue_type_script_setup_true_lang-Dngt4TDa.mjs +374 -0
  58. package/dist/style.css +1 -1
  59. package/dts/api/index.d.ts +5 -1
  60. package/dts/api/itsm-flow-spare-parts/index.d.ts +20 -0
  61. package/dts/api/itsm-flow-spare-parts/types.d.ts +113 -0
  62. package/dts/api/itsm-flow-spare-parts-details/index.d.ts +20 -0
  63. package/dts/api/itsm-flow-spare-parts-details/types.d.ts +77 -0
  64. package/dts/api/itsm-flow-temporary/index.d.ts +21 -0
  65. package/dts/api/itsm-flow-temporary/types.d.ts +115 -0
  66. package/dts/components/ImageUpload/ImageUpload.vue.d.ts +36 -0
  67. package/dts/components/TaskItsmFlowImOrderInterior/index.vue.d.ts +28 -0
  68. package/dts/components/TaskItsmFlowImOrderInteriorEdit/index.vue.d.ts +28 -0
  69. package/dts/components/TaskItsmFlowImOrderInteriorImplement/index.vue.d.ts +28 -0
  70. package/dts/components/TaskItsmFlowImOrderInteriorView/index.vue.d.ts +28 -0
  71. package/dts/components/TaskItsmFlowImSpareParts/index.vue.d.ts +28 -0
  72. package/dts/components/TaskItsmFlowImSparePartsEdit/index.vue.d.ts +28 -0
  73. package/dts/components/TaskItsmFlowImSparePartsUse/index.vue.d.ts +28 -0
  74. package/dts/components/TaskItsmFlowImSpareTemporary/index.vue.d.ts +28 -0
  75. package/dts/components/TaskItsmFlowImSpareTemporaryEdit/index.vue.d.ts +28 -0
  76. package/dts/components/TaskItsmFlowImSpareTemporaryImplement/index.vue.d.ts +28 -0
  77. package/dts/components/TaskItsmFlowImSpareTemporaryView/index.vue.d.ts +28 -0
  78. package/dts/constant.d.ts +8 -0
  79. package/dts/index.d.ts +13 -0
  80. package/dts/lang/itsm-flow/zh-cn.d.ts +81 -0
  81. package/dts/views/item-flow-orders-interior/edit.vue.d.ts +28 -0
  82. package/dts/views/item-flow-orders-interior/index.vue.d.ts +2 -0
  83. package/dts/views/item-flow-orders-interior/info.vue.d.ts +26 -0
  84. package/dts/views/itsm-flow-spare-parts/edit.vue.d.ts +28 -0
  85. package/dts/views/itsm-flow-spare-parts/index.vue.d.ts +2 -0
  86. package/dts/views/itsm-flow-spare-parts/info.vue.d.ts +26 -0
  87. package/dts/views/itsm-flow-temporary/edit.vue.d.ts +28 -0
  88. package/dts/views/itsm-flow-temporary/index.vue.d.ts +2 -0
  89. package/dts/views/itsm-flow-temporary/info.vue.d.ts +26 -0
  90. package/package.json +63 -63
@@ -1,15 +1,16 @@
1
- var l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, h = { exports: {} };
2
- (function(b, j) {
3
- (function(p, r) {
4
- r();
5
- })(l, function() {
1
+ import { c } from "./_commonjsHelpers-BVfed4GL.mjs";
2
+ var E = { exports: {} };
3
+ (function(h, j) {
4
+ (function(p, i) {
5
+ i();
6
+ })(c, function() {
6
7
  function p(e, t) {
7
8
  return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
8
9
  }
9
- function r(e, t, i) {
10
+ function i(e, t, r) {
10
11
  var n = new XMLHttpRequest();
11
12
  n.open("GET", e), n.responseType = "blob", n.onload = function() {
12
- f(n.response, t, i);
13
+ u(n.response, t, r);
13
14
  }, n.onerror = function() {
14
15
  console.error("could not download file");
15
16
  }, n.send();
@@ -23,7 +24,7 @@ var l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
23
24
  }
24
25
  return 200 <= t.status && 299 >= t.status;
25
26
  }
26
- function c(e) {
27
+ function l(e) {
27
28
  try {
28
29
  e.dispatchEvent(new MouseEvent("click"));
29
30
  } catch {
@@ -31,32 +32,32 @@ var l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
31
32
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
32
33
  }
33
34
  }
34
- var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof l == "object" && l.global === l ? l : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), f = a.saveAs || (typeof window != "object" || window !== a ? function() {
35
- } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, i) {
35
+ var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof c == "object" && c.global === c ? c : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
36
+ } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
36
37
  var n = a.URL || a.webkitURL, o = document.createElement("a");
37
- t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? c(o) : v(o.href) ? r(e, t, i) : c(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
38
+ t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? i(e, t, r) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
38
39
  n.revokeObjectURL(o.href);
39
40
  }, 4e4), setTimeout(function() {
40
- c(o);
41
+ l(o);
41
42
  }, 0));
42
- } : "msSaveOrOpenBlob" in navigator ? function(e, t, i) {
43
- if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, i), t);
44
- else if (v(e)) r(e, t, i);
43
+ } : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
44
+ if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, r), t);
45
+ else if (v(e)) i(e, t, r);
45
46
  else {
46
47
  var n = document.createElement("a");
47
48
  n.href = e, n.target = "_blank", setTimeout(function() {
48
- c(n);
49
+ l(n);
49
50
  });
50
51
  }
51
- } : function(e, t, i, n) {
52
- if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return r(e, t, i);
53
- var o = e.type === "application/octet-stream", E = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
54
- if ((m || o && E || w) && typeof FileReader < "u") {
55
- var u = new FileReader();
56
- u.onloadend = function() {
57
- var s = u.result;
52
+ } : function(e, t, r, n) {
53
+ if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
54
+ var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
55
+ if ((m || o && b || w) && typeof FileReader < "u") {
56
+ var f = new FileReader();
57
+ f.onloadend = function() {
58
+ var s = f.result;
58
59
  s = m ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
59
- }, u.readAsDataURL(e);
60
+ }, f.readAsDataURL(e);
60
61
  } else {
61
62
  var y = a.URL || a.webkitURL, d = y.createObjectURL(e);
62
63
  n ? n.location = d : location.href = d, n = null, setTimeout(function() {
@@ -64,10 +65,10 @@ var l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
64
65
  }, 4e4);
65
66
  }
66
67
  });
67
- a.saveAs = f.saveAs = f, b.exports = f;
68
+ a.saveAs = u.saveAs = u, h.exports = u;
68
69
  });
69
- })(h);
70
- var L = h.exports;
70
+ })(E);
71
+ var R = E.exports;
71
72
  export {
72
- L as F
73
+ R as F
73
74
  };
@@ -0,0 +1,28 @@
1
+ var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function f(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ function l(e) {
6
+ if (e.__esModule) return e;
7
+ var r = e.default;
8
+ if (typeof r == "function") {
9
+ var t = function o() {
10
+ return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
11
+ };
12
+ t.prototype = r.prototype;
13
+ } else t = {};
14
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
15
+ var n = Object.getOwnPropertyDescriptor(e, o);
16
+ Object.defineProperty(t, o, n.get ? n : {
17
+ enumerable: !0,
18
+ get: function() {
19
+ return e[o];
20
+ }
21
+ });
22
+ }), t;
23
+ }
24
+ export {
25
+ f as a,
26
+ u as c,
27
+ l as g
28
+ };
@@ -0,0 +1,9 @@
1
+ const s = (t, r) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [c, e] of r)
4
+ o[c] = e;
5
+ return o;
6
+ };
7
+ export {
8
+ s as _
9
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-ClkzOaAV.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,492 @@
1
+ import { defineComponent as fe, mergeModels as j, ref as c, reactive as Y, computed as z, watch as K, useModel as ge, nextTick as ye, resolveComponent as i, createBlock as h, openBlock as m, withCtx as a, createVNode as o, unref as s, createElementBlock as y, Fragment as I, renderList as V, createCommentVNode as ve, createTextVNode as w, toDisplayString as b, createElementVNode as Ie } from "vue";
2
+ import { ElMessage as H } from "element-plus";
3
+ import { useI18n as we } from "vue-i18n";
4
+ import { i as C } from "./index-CbG_QqOf.mjs";
5
+ import { D as v, O as G, C as $, i as be } from "./index-5rQmXXAD.mjs";
6
+ import { u as _e } from "./index-CvX2It1o.mjs";
7
+ import { sysUserExtApi as Fe } from "xyvcard-itsmsys";
8
+ import { useUserStoreHook as Te } from "jmash-core";
9
+ import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
10
+ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
11
+ __name: "edit",
12
+ props: /* @__PURE__ */ j({
13
+ entityKey: {
14
+ type: Object,
15
+ default: () => {
16
+ }
17
+ }
18
+ }, {
19
+ modelValue: { type: Boolean },
20
+ modelModifiers: {}
21
+ }),
22
+ emits: /* @__PURE__ */ j(["refresh"], ["update:modelValue"]),
23
+ setup(U, { emit: J }) {
24
+ const Q = Te(), { t: p } = we(), O = c();
25
+ v.itemBizLayDict.useValues();
26
+ const D = new G({ orgType: $.HALL });
27
+ D.useValues();
28
+ const R = new G({ orgType: $.OUTSOURCE });
29
+ R.useValues(), v.userExtBizDict.useValues();
30
+ const S = c((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
31
+ let t = Y({
32
+ requestId: Math.random() * 10 + "",
33
+ files: [],
34
+ temporaryType: $.External
35
+ });
36
+ const L = z(() => t.govOrgId ? v.itemBizLayDict.values.filter(
37
+ (l) => l.orgId === t.govOrgId
38
+ ) : []);
39
+ function W(e) {
40
+ t.itemId = void 0;
41
+ }
42
+ const _ = c([]), f = c([]);
43
+ Fe.findList().then((e) => {
44
+ _.value = e.data.results;
45
+ }), K(
46
+ [_, () => t.userId],
47
+ ([e, l]) => {
48
+ e && l && t.outOrgId && (f.value = e.filter(
49
+ (u) => u.orgId === t.outOrgId
50
+ ));
51
+ },
52
+ { immediate: !0 }
53
+ ), K(
54
+ () => t.outOrgId,
55
+ (e) => {
56
+ e && Array.isArray(_.value) ? (f.value = _.value.filter(
57
+ (l) => l.orgId === e
58
+ ), console.log("filteredUserList:", f.value), t.userId && !f.value.some((l) => l.userId === t.userId) && (t.userId = "")) : (f.value = [], t.userId = "");
59
+ },
60
+ { immediate: !0 }
61
+ );
62
+ const k = c(!1), N = c(), X = Y({
63
+ govOrgId: [
64
+ {
65
+ required: !0,
66
+ message: p("itsmFlowTemporary.govOrgIdRequired"),
67
+ trigger: "change"
68
+ }
69
+ ],
70
+ itemId: [
71
+ {
72
+ required: !0,
73
+ message: p("itsmFlowTemporary.itemIdRequired"),
74
+ trigger: "change"
75
+ }
76
+ ],
77
+ title: [
78
+ {
79
+ required: !0,
80
+ message: p("itsmFlowTemporary.titleRequired"),
81
+ trigger: "change"
82
+ }
83
+ ],
84
+ temporaryType: [
85
+ {
86
+ required: !0,
87
+ message: p("itsmFlowTemporary.temporaryTypeRequired"),
88
+ trigger: "change"
89
+ }
90
+ ],
91
+ outOrgId: [
92
+ {
93
+ required: !0,
94
+ message: p("itsmFlowTemporary.outOrgIdRequired"),
95
+ trigger: "change"
96
+ }
97
+ ],
98
+ userId: [
99
+ {
100
+ required: !0,
101
+ message: p("itsmFlowTemporary.userIdRequired"),
102
+ trigger: "change"
103
+ }
104
+ ]
105
+ }), g = ge(U, "modelValue"), q = U, Z = z(() => {
106
+ const e = v.fileTypeDict.values.slice(2, 3)[0];
107
+ return e ? e.dictCode : "temporary_file";
108
+ });
109
+ function x() {
110
+ k.value = !0, N.value.clearFileList();
111
+ }
112
+ function ee(e) {
113
+ const l = {
114
+ fileName: e.name,
115
+ fileId: e.response.fileId,
116
+ fileSort: Z.value,
117
+ fileSrc: ""
118
+ };
119
+ t.files || (t.files = []), t.files.push(l), t.files = [...new Set(t.files)];
120
+ }
121
+ console.log(v.fileTypeDict.values.slice(2, 3)[0], "=>fileTypeDict ");
122
+ function le(e) {
123
+ var l;
124
+ (l = t.files) == null || l.splice(e, 1);
125
+ }
126
+ const B = J, te = Object.keys(q.entityKey);
127
+ c(te.length >= 1).value && C.findById(q.entityKey).then(({ data: e }) => {
128
+ t.outOrgId = e.outOrgId, ye(() => {
129
+ Object.assign(t, e), oe();
130
+ });
131
+ });
132
+ function oe() {
133
+ be.findFilesList({ actionId: q.entityKey.temporaryId }).then(({ data: e }) => {
134
+ e.results && Array.isArray(e.results) && (t.files = e.results.map((l) => {
135
+ let u = "";
136
+ return l.fileName && (u = l.fileSort || l.type || ""), {
137
+ fileName: l.fileName || "",
138
+ fileId: l.fileId || "",
139
+ fileSort: u
140
+ };
141
+ }));
142
+ });
143
+ }
144
+ const ae = async () => {
145
+ var e;
146
+ await ((e = O.value) == null ? void 0 : e.validate(async (l) => {
147
+ l && C.create(t).then((u) => {
148
+ u.status === 200 && (H({
149
+ message: p("common.submitSuccess"),
150
+ type: "success"
151
+ }), g.value = !1, B("refresh", !0));
152
+ });
153
+ }));
154
+ }, re = async () => {
155
+ var e;
156
+ await ((e = O.value) == null ? void 0 : e.validate(async (l) => {
157
+ l && C.submit(t).then((u) => {
158
+ u.status === 200 && (H({
159
+ message: p("common.submitSuccess"),
160
+ type: "success"
161
+ }), g.value = !1, B("refresh", !0));
162
+ });
163
+ }));
164
+ };
165
+ function E() {
166
+ g.value && (g.value = !1);
167
+ }
168
+ return (e, l) => {
169
+ const u = i("jmash-select"), d = i("el-form-item"), n = i("el-col"), A = i("el-option"), M = i("el-select"), F = i("el-input"), se = i("el-date-picker"), T = i("el-button"), ie = i("CircleClose"), ue = i("el-icon"), de = i("el-row"), ne = i("el-form"), me = i("jmash-multi-upload"), pe = i("el-dialog");
170
+ return m(), h(pe, {
171
+ modelValue: g.value,
172
+ "onUpdate:modelValue": l[9] || (l[9] = (r) => g.value = r),
173
+ onClose: E
174
+ }, {
175
+ footer: a(() => [
176
+ Ie("div", Ve, [
177
+ o(T, { onClick: E }, {
178
+ default: a(() => [
179
+ w(b(e.$t("common.cancel")), 1)
180
+ ]),
181
+ _: 1
182
+ }),
183
+ o(T, {
184
+ type: "primary",
185
+ onClick: ae
186
+ }, {
187
+ default: a(() => [
188
+ w(b(e.$t("itsmFlowEntrustUser.save")), 1)
189
+ ]),
190
+ _: 1
191
+ }),
192
+ o(T, {
193
+ type: "primary",
194
+ onClick: re
195
+ }, {
196
+ default: a(() => [
197
+ w(b(e.$t("itsmFlowEntrustUser.submit")), 1)
198
+ ]),
199
+ _: 1
200
+ })
201
+ ])
202
+ ]),
203
+ default: a(() => [
204
+ o(ne, {
205
+ ref_key: "itsmFlowTemporaryFormRef",
206
+ ref: O,
207
+ model: s(t),
208
+ "label-width": "150px",
209
+ rules: X,
210
+ class: "custom-table-form custom-form"
211
+ }, {
212
+ default: a(() => [
213
+ o(de, null, {
214
+ default: a(() => [
215
+ o(n, { span: 24 }, {
216
+ default: a(() => [
217
+ o(d, {
218
+ label: e.$t("itsmFlowSpareParts.govOrgId"),
219
+ prop: "govOrgId"
220
+ }, {
221
+ default: a(() => [
222
+ o(u, {
223
+ modelValue: s(t).govOrgId,
224
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => s(t).govOrgId = r),
225
+ placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
226
+ data: s(D).values,
227
+ clearable: "",
228
+ filterable: "",
229
+ class: "w-full",
230
+ onChange: W
231
+ }, null, 8, ["modelValue", "placeholder", "data"])
232
+ ]),
233
+ _: 1
234
+ }, 8, ["label"])
235
+ ]),
236
+ _: 1
237
+ }),
238
+ o(n, { span: 24 }, {
239
+ default: a(() => [
240
+ o(d, {
241
+ label: e.$t("itsmFlowSpareParts.itemId"),
242
+ prop: "itemId"
243
+ }, {
244
+ default: a(() => [
245
+ o(M, {
246
+ modelValue: s(t).itemId,
247
+ "onUpdate:modelValue": l[1] || (l[1] = (r) => s(t).itemId = r),
248
+ placeholder: e.$t("itsmFlowSpareParts.itemIdRequired"),
249
+ data: L.value,
250
+ clearable: "",
251
+ filterable: "",
252
+ disabled: !s(t).govOrgId
253
+ }, {
254
+ default: a(() => [
255
+ (m(!0), y(I, null, V(L.value, (r) => (m(), h(A, {
256
+ key: r.key,
257
+ value: r.key,
258
+ label: r.value
259
+ }, null, 8, ["value", "label"]))), 128))
260
+ ]),
261
+ _: 1
262
+ }, 8, ["modelValue", "placeholder", "data", "disabled"])
263
+ ]),
264
+ _: 1
265
+ }, 8, ["label"])
266
+ ]),
267
+ _: 1
268
+ }),
269
+ o(n, { span: 12 }, {
270
+ default: a(() => [
271
+ o(d, {
272
+ label: e.$t("itsmFlowTemporary.createUser")
273
+ }, {
274
+ default: a(() => [
275
+ o(F, {
276
+ value: s(Q).user.realName,
277
+ placeholder: e.$t("itsmFlowTemporary.createUserRequired"),
278
+ "show-word-limit": "",
279
+ clearable: "",
280
+ disabled: !0
281
+ }, null, 8, ["value", "placeholder"])
282
+ ]),
283
+ _: 1
284
+ }, 8, ["label"])
285
+ ]),
286
+ _: 1
287
+ }),
288
+ o(n, { span: 12 }, {
289
+ default: a(() => [
290
+ o(d, {
291
+ label: e.$t("itsmFlowTemporary.createTime"),
292
+ prop: "createTime"
293
+ }, {
294
+ default: a(() => [
295
+ o(se, {
296
+ modelValue: S.value,
297
+ "onUpdate:modelValue": l[2] || (l[2] = (r) => S.value = r),
298
+ type: "date",
299
+ placeholder: e.$t("itsmFlowTemporary.createTimeRequired"),
300
+ format: "YYYY-MM-DD",
301
+ "value-format": "YYYY-MM-DD",
302
+ clearable: !1,
303
+ class: "w-full",
304
+ disabled: !0
305
+ }, null, 8, ["modelValue", "placeholder"])
306
+ ]),
307
+ _: 1
308
+ }, 8, ["label"])
309
+ ]),
310
+ _: 1
311
+ }),
312
+ o(n, { span: 24 }, {
313
+ default: a(() => [
314
+ o(d, {
315
+ label: e.$t("itsmFlowTemporary.title"),
316
+ prop: "title"
317
+ }, {
318
+ default: a(() => [
319
+ o(F, {
320
+ modelValue: s(t).title,
321
+ "onUpdate:modelValue": l[3] || (l[3] = (r) => s(t).title = r),
322
+ placeholder: e.$t("itsmFlowTemporary.titleRequired"),
323
+ "show-word-limit": "",
324
+ clearable: ""
325
+ }, null, 8, ["modelValue", "placeholder"])
326
+ ]),
327
+ _: 1
328
+ }, 8, ["label"])
329
+ ]),
330
+ _: 1
331
+ }),
332
+ o(n, { span: 24 }, {
333
+ default: a(() => [
334
+ o(d, {
335
+ label: e.$t("itsmFlowTemporary.content"),
336
+ prop: "content"
337
+ }, {
338
+ default: a(() => [
339
+ o(F, {
340
+ modelValue: s(t).content,
341
+ "onUpdate:modelValue": l[4] || (l[4] = (r) => s(t).content = r),
342
+ placeholder: e.$t("itsmFlowTemporary.contentRequired"),
343
+ "show-word-limit": "",
344
+ clearable: ""
345
+ }, null, 8, ["modelValue", "placeholder"])
346
+ ]),
347
+ _: 1
348
+ }, 8, ["label"])
349
+ ]),
350
+ _: 1
351
+ }),
352
+ o(n, { span: 24 }, {
353
+ default: a(() => [
354
+ (m(!0), y(I, null, V(s(v).fileTypeDict.values.slice(2, 3), (r, qe) => (m(), y(I, {
355
+ key: r.dictCode
356
+ }, [
357
+ o(d, {
358
+ label: r.dictName
359
+ }, {
360
+ default: a(() => [
361
+ o(T, {
362
+ type: "primary",
363
+ icon: s(_e),
364
+ onClick: x
365
+ }, {
366
+ default: a(() => [
367
+ w(b(e.$t("common.uploadFiles")), 1)
368
+ ]),
369
+ _: 1
370
+ }, 8, ["icon"])
371
+ ]),
372
+ _: 2
373
+ }, 1032, ["label"]),
374
+ s(t).files && s(t).files.length > 0 ? (m(), h(d, { key: 0 }, {
375
+ default: a(() => [
376
+ (m(!0), y(I, null, V(s(t).files, (ce, P) => (m(), y("div", {
377
+ key: P,
378
+ class: "files-list"
379
+ }, [
380
+ w(b(ce.fileName) + " ", 1),
381
+ o(ue, {
382
+ size: "16",
383
+ class: "icon-right",
384
+ onClick: (Ce) => le(P)
385
+ }, {
386
+ default: a(() => [
387
+ o(ie)
388
+ ]),
389
+ _: 2
390
+ }, 1032, ["onClick"])
391
+ ]))), 128))
392
+ ]),
393
+ _: 2
394
+ }, 1024)) : ve("", !0)
395
+ ], 64))), 128))
396
+ ]),
397
+ _: 1
398
+ }),
399
+ o(n, { span: 24 }, {
400
+ default: a(() => [
401
+ o(d, {
402
+ label: e.$t("itsmFlowTemporary.outOrgId"),
403
+ prop: "outOrgId"
404
+ }, {
405
+ default: a(() => [
406
+ o(u, {
407
+ modelValue: s(t).outOrgId,
408
+ "onUpdate:modelValue": l[5] || (l[5] = (r) => s(t).outOrgId = r),
409
+ placeholder: e.$t("itsmFlowTemporary.outOrgIdRequired"),
410
+ data: s(R).values,
411
+ clearable: "",
412
+ filterable: "",
413
+ class: "w-full"
414
+ }, null, 8, ["modelValue", "placeholder", "data"])
415
+ ]),
416
+ _: 1
417
+ }, 8, ["label"])
418
+ ]),
419
+ _: 1
420
+ }),
421
+ o(n, { span: 24 }, {
422
+ default: a(() => [
423
+ o(d, {
424
+ label: e.$t("itsmFlowTemporary.userId"),
425
+ prop: "userId"
426
+ }, {
427
+ default: a(() => [
428
+ o(M, {
429
+ modelValue: s(t).userId,
430
+ "onUpdate:modelValue": l[6] || (l[6] = (r) => s(t).userId = r),
431
+ placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
432
+ "show-word-limit": "",
433
+ clearable: "",
434
+ class: "w-full"
435
+ }, {
436
+ default: a(() => [
437
+ (m(!0), y(I, null, V(f.value, (r) => (m(), h(A, {
438
+ key: r.userId,
439
+ value: r.userId,
440
+ label: r.realName
441
+ }, null, 8, ["value", "label"]))), 128))
442
+ ]),
443
+ _: 1
444
+ }, 8, ["modelValue", "placeholder"])
445
+ ]),
446
+ _: 1
447
+ }, 8, ["label"])
448
+ ]),
449
+ _: 1
450
+ }),
451
+ o(n, { span: 24 }, {
452
+ default: a(() => [
453
+ o(d, {
454
+ label: e.$t("itsmFlowTemporary.handlingPeriod"),
455
+ prop: "handlingPeriod"
456
+ }, {
457
+ default: a(() => [
458
+ o(F, {
459
+ modelValue: s(t).handlingPeriod,
460
+ "onUpdate:modelValue": l[7] || (l[7] = (r) => s(t).handlingPeriod = r),
461
+ placeholder: e.$t("itsmFlowTemporary.handlingPeriodRequired"),
462
+ "show-word-limit": "",
463
+ clearable: ""
464
+ }, null, 8, ["modelValue", "placeholder"])
465
+ ]),
466
+ _: 1
467
+ }, 8, ["label"])
468
+ ]),
469
+ _: 1
470
+ })
471
+ ]),
472
+ _: 1
473
+ })
474
+ ]),
475
+ _: 1
476
+ }, 8, ["model", "rules"]),
477
+ o(me, {
478
+ ref_key: "uploadRef",
479
+ ref: N,
480
+ modelValue: k.value,
481
+ "onUpdate:modelValue": l[8] || (l[8] = (r) => k.value = r),
482
+ onUploadFileList: ee
483
+ }, null, 8, ["modelValue"])
484
+ ]),
485
+ _: 1
486
+ }, 8, ["modelValue"]);
487
+ };
488
+ }
489
+ }), Ae = /* @__PURE__ */ he(Oe, [["__scopeId", "data-v-644f76d1"]]);
490
+ export {
491
+ Ae as default
492
+ };