xyvcard-itsm-flow 0.0.24 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/{FileSaver.min-X2_RihtX.mjs → FileSaver.min-FLjvLk81.mjs} +1 -1
  2. package/dist/{edit-fNZ8seSE.mjs → edit-Bj6O1CiV.mjs} +36 -36
  3. package/dist/{edit-Crp2NJw2.mjs → edit-BoyxGI-j.mjs} +1 -1
  4. package/dist/{edit-C4uQUyxR.mjs → edit-ChPw3-tf.mjs} +52 -50
  5. package/dist/{edit-Da4XYqIW.mjs → edit-D--QEJjt.mjs} +1 -1
  6. package/dist/{edit-B4N5cmbv.mjs → edit-DE30a8nF.mjs} +1 -1
  7. package/dist/{edit-DSzeVnep.mjs → edit-DVqIGzRC.mjs} +2 -2
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-ClkzOaAV.mjs → edit.vue_vue_type_script_setup_true_lang-D4j6dzcV.mjs} +1 -1
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-DZj5V6Mk.mjs → edit.vue_vue_type_script_setup_true_lang-DHCoPaGf.mjs} +2 -2
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-VfP4qMQI.mjs → edit.vue_vue_type_script_setup_true_lang-DiY4aiPm.mjs} +1 -1
  11. package/dist/{index-CPwNJkJK.mjs → index-8wrBAgqn.mjs} +5 -5
  12. package/dist/{index-B5OVt83d.mjs → index-BCm8GyNp.mjs} +1 -1
  13. package/dist/{index-C9LdNu0a.mjs → index-BGUJBf1b.mjs} +27 -27
  14. package/dist/{index-BePwvZ9m.mjs → index-BKReblQ-.mjs} +56 -56
  15. package/dist/{index-D5jF4kAT.mjs → index-BPbEgv_g.mjs} +114 -114
  16. package/dist/{index-DNFVieqg.mjs → index-BVKYrCIy.mjs} +1 -1
  17. package/dist/{index-B0J0xma8.mjs → index-BnpWxtwn.mjs} +3 -3
  18. package/dist/{index-COvZrTZl.mjs → index-C2_qB4RV.mjs} +1 -1
  19. package/dist/{index-Dxfj5xxz.mjs → index-C6lbS4Lo.mjs} +2 -2
  20. package/dist/{index-DnIYE76A.mjs → index-CBlDGIOm.mjs} +37 -37
  21. package/dist/{index-jzk2C9cj.mjs → index-Cbd9gMMJ.mjs} +21 -21
  22. package/dist/{index-Dx0mdENP.mjs → index-CcmelnG0.mjs} +32 -32
  23. package/dist/{index-tcsDF6U0.mjs → index-Cv9EtBjj.mjs} +153 -145
  24. package/dist/{index-Bmev8P7I.mjs → index-DCrOzptR.mjs} +3 -3
  25. package/dist/{index-CCnjfMtC.mjs → index-DLKaq1KT.mjs} +3 -3
  26. package/dist/{index-COT8mjWU.mjs → index-DUeJgFzy.mjs} +2 -2
  27. package/dist/{index-5rQmXXAD.mjs → index-DWJG5OHB.mjs} +1 -1
  28. package/dist/{index-sjkYgg27.mjs → index-DeWL7kiw.mjs} +2 -2
  29. package/dist/{index-CBowEKcR.mjs → index-DgMfinzm.mjs} +2 -2
  30. package/dist/{index-p1DDr7xl.mjs → index-DrUmzzLs.mjs} +13 -13
  31. package/dist/{index-k6cvISUf.mjs → index-DvfEpZEP.mjs} +44 -44
  32. package/dist/{index-CIG303fh.mjs → index-DwPAoK5U.mjs} +121 -118
  33. package/dist/{index-CWrb0ryZ.mjs → index-DyZhLpPq.mjs} +18 -18
  34. package/dist/{index-KUs-CZ9C.mjs → index-DyhFuDLH.mjs} +9 -9
  35. package/dist/{index-BYazmSpv.mjs → index-DymW6iPU.mjs} +3 -3
  36. package/dist/index-SilwoNEK.mjs +4487 -0
  37. package/dist/{index-D47Eql1L.mjs → index-jG64vmFA.mjs} +130 -130
  38. package/dist/{index-DPqaoK4-.mjs → index-r4Tg0GX2.mjs} +3 -3
  39. package/dist/{index-DVyAUAgy.mjs → index-xWvPJZ-m.mjs} +2 -2
  40. package/dist/index.mjs +23 -2921
  41. package/dist/{info-B6nfKr37.mjs → info-9EvTq-5p.mjs} +1 -1
  42. package/dist/{info-Cd4n1Hxk.mjs → info-BWhsB1Ap.mjs} +1 -1
  43. package/dist/{info-D90oJO1z.mjs → info-CGUYIYny.mjs} +1 -1
  44. package/dist/{info-6YpNb7VF.mjs → info-CbJJduEU.mjs} +1 -1
  45. package/dist/info-CtxVi70h.mjs +4 -0
  46. package/dist/info-ZeMWMgd3.mjs +4 -0
  47. package/dist/{info.vue_vue_type_script_setup_true_lang-BzNQmLMY.mjs → info.vue_vue_type_script_setup_true_lang-C0J9fiF3.mjs} +1 -1
  48. package/dist/{info.vue_vue_type_script_setup_true_lang-BWMDxwv-.mjs → info.vue_vue_type_script_setup_true_lang-CAfl8pgB.mjs} +13 -13
  49. package/dist/{info.vue_vue_type_script_setup_true_lang-BvcEV_aO.mjs → info.vue_vue_type_script_setup_true_lang-CY7c7Xmz.mjs} +2 -2
  50. package/dist/{info.vue_vue_type_script_setup_true_lang-BM-bddTj.mjs → info.vue_vue_type_script_setup_true_lang-CdiFub3m.mjs} +8 -8
  51. package/dist/{info.vue_vue_type_script_setup_true_lang-CZa5y_q9.mjs → info.vue_vue_type_script_setup_true_lang-DIXXp0TI.mjs} +2 -2
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-DhuclI_H.mjs → info.vue_vue_type_script_setup_true_lang-Dm4Ld-wL.mjs} +1 -1
  53. package/dist/style.css +1 -1
  54. package/dts/api/itsm-flow-temporary/index.d.ts +2 -1
  55. package/dts/api/itsm-flow-temporary/types.d.ts +13 -0
  56. package/dts/index.d.ts +2 -0
  57. package/dts/lang/itsm-flow/zh-cn.d.ts +6 -6
  58. package/package.json +1 -1
  59. package/dist/_commonjsHelpers-BVfed4GL.mjs +0 -28
  60. package/dist/index-CYJvDaI_.mjs +0 -1371
  61. package/dist/index-o0oTSdUL.mjs +0 -149
  62. package/dist/info-XskyQapE.mjs +0 -4
  63. package/dist/info-a4HMapKP.mjs +0 -4
@@ -1,14 +1,14 @@
1
- import { defineComponent as he, mergeModels as ve, useModel as we, ref as F, reactive as Ve, computed as H, watch as W, resolveComponent as p, createElementBlock as P, openBlock as f, Fragment as I, createVNode as t, withCtx as n, createElementVNode as h, unref as u, createBlock as S, createCommentVNode as $, renderList as R, toDisplayString as _, createTextVNode as T } from "vue";
1
+ import { defineComponent as he, mergeModels as ve, useModel as we, ref as V, reactive as Fe, computed as H, watch as W, resolveComponent as p, createElementBlock as P, openBlock as g, Fragment as I, createVNode as t, withCtx as n, createElementVNode as y, unref as s, createBlock as _, createCommentVNode as $, renderList as R, toDisplayString as S, createTextVNode as T } from "vue";
2
2
  import { ElMessage as q } from "element-plus";
3
- import { d as Fe, p as Se, u as _e, c as Pe } from "./index-CvX2It1o.mjs";
3
+ import { d as Ve, p as Se, u as _e, c as Pe } from "./index-CvX2It1o.mjs";
4
4
  import "jmash-rbac";
5
5
  import { useI18n as Ie } from "vue-i18n";
6
- import { i as G, a as $e } from "./index-COvZrTZl.mjs";
7
- import { D as g, i as qe, C as ke } from "./index-5rQmXXAD.mjs";
6
+ import { i as G, a as $e } from "./index-C2_qB4RV.mjs";
7
+ import { D as c, i as qe, C as ke } from "./index-DWJG5OHB.mjs";
8
8
  import { itemBudgetApi as J } from "xyvcard-itsm";
9
9
  import { useUserStoreHook as De } from "jmash-core";
10
- import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
11
- const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE__ */ he({
10
+ import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
11
+ const Me = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE__ */ he({
12
12
  __name: "index",
13
13
  props: /* @__PURE__ */ ve({
14
14
  task: {
@@ -23,32 +23,38 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
23
23
  emits: ["update:modelValue"],
24
24
  setup(U, { expose: Q }) {
25
25
  const X = De();
26
- g.orgIdBizDict.useValues(), g.budgetTypeDict.useValues(), g.fileTypeDict.useDictValues(), console.log(g.budgetTypeDict.values, "=> budgetTypeDict"), console.log(g.fileTypeDict.values, "=>fileTypeDict ");
27
- const { t: c } = Ie(), v = we(U, "modelValue"), C = F(), k = U, A = F("");
28
- let a = Ve({
26
+ c.orgIdBizDict.useValues(), c.budgetTypeDict.useValues(), c.fileTypeDict.useDictValues(), c.itemBizLayDict.useValues(), console.log(c.budgetTypeDict.values, "=> budgetTypeDict"), console.log(c.fileTypeDict.values, "=>fileTypeDict ");
27
+ const { t: f } = Ie(), v = we(U, "modelValue"), C = V(), k = U, A = V("");
28
+ let a = Fe({
29
29
  requestId: Math.random() * 10 + "",
30
30
  updateMask: "",
31
31
  files: [],
32
32
  applyDate: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
33
33
  details: []
34
34
  });
35
- const D = F(!1), O = F(), Y = H(() => a.orgId ? g.itemBizLayDict.values.filter(
36
- (l) => l.orgId === a.orgId
37
- ) : []), w = F([]);
35
+ const D = V(!1), O = V();
36
+ console.log(c.itemBizLayDict.values, "=> itemBizLayDict");
37
+ const Y = H(() => {
38
+ if (!a.orgId) return [];
39
+ const e = c.itemBizLayDict.values.filter(
40
+ (l) => l.orgId === a.orgId
41
+ );
42
+ return console.log("过滤后的项目:", e), e;
43
+ }), w = V([]);
38
44
  function Z(e) {
39
45
  a.itemId = void 0, a.budgetType = "", a.contractMoney = "0", w.value = [];
40
46
  }
41
47
  function x(e) {
42
- M(e, a.annual);
48
+ B(e, a.annual);
43
49
  }
44
50
  function ee(e) {
45
- M(a.itemId, e);
51
+ B(a.itemId, e);
46
52
  }
47
53
  const N = (e, l) => (console.log(e), e.map((r) => {
48
54
  console.log(r);
49
- const d = { ...r };
50
- return console.log(d), d.children && d.children.length > 0 && (d.children = N(d.children, l)), l.includes(d.value) || d.children && d.children.length > 0 ? (console.log(d), d) : null;
51
- }).filter((r) => r !== null)), M = async (e, l) => {
55
+ const u = { ...r };
56
+ return console.log(u), u.children && u.children.length > 0 && (u.children = N(u.children, l)), l.includes(u.value) || u.children && u.children.length > 0 ? (console.log(u), u) : null;
57
+ }).filter((r) => r !== null)), B = async (e, l) => {
52
58
  if (!e || !l) {
53
59
  a.budgetType = "", a.contractMoney = "0", w.value = [];
54
60
  return;
@@ -57,17 +63,17 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
57
63
  const r = {
58
64
  itemId: e,
59
65
  annual: l
60
- }, s = (await J.findList(r)).data.results || [];
61
- if (s.length > 0) {
62
- const i = s.map((V) => V.budgetType);
66
+ }, d = (await J.findList(r)).data.results || [];
67
+ if (d.length > 0) {
68
+ const i = d.map((F) => F.budgetType);
63
69
  w.value = N(
64
- g.budgetTypeDict.values,
70
+ c.budgetTypeDict.values,
65
71
  i
66
- ), a.budgetType = s[0].budgetType || "", a.contractMoney = String(s[0].approvedAmount) || "0";
72
+ ), a.budgetType = d[0].budgetType || "", a.contractMoney = String(d[0].approvedAmount) || "0";
67
73
  } else
68
- a.budgetType = "", a.contractMoney = "0", w.value = [], q.warning(c("itsmFlowSpareParts.noBudgetType"));
74
+ a.budgetType = "", a.contractMoney = "0", w.value = [], q.warning(f("itsmFlowSpareParts.noBudgetType"));
69
75
  } catch (r) {
70
- a.budgetType = "", a.contractMoney = "0", w.value = [], q.error(c("itsmFlowSpareParts.getBudgetFail")), console.error("获取预算类型失败:", r);
76
+ a.budgetType = "", a.contractMoney = "0", w.value = [], q.error(f("itsmFlowSpareParts.getBudgetFail")), console.error("获取预算类型失败:", r);
71
77
  }
72
78
  };
73
79
  W(
@@ -82,14 +88,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
82
88
  const l = {
83
89
  itemId: a.itemId,
84
90
  annual: a.annual
85
- }, s = ((await J.findList(l)).data.results || []).find(
91
+ }, d = ((await J.findList(l)).data.results || []).find(
86
92
  (i) => i.budgetType === e
87
93
  );
88
- s ? a.contractMoney = String(s.approvedAmount) || "0" : a.contractMoney = "0";
94
+ d ? a.contractMoney = String(d.approvedAmount) || "0" : a.contractMoney = "0";
89
95
  } catch (l) {
90
96
  console.error("获取预算金额失败:", l), a.contractMoney = "0";
91
97
  }
92
- }, y = F([
98
+ }, b = V([
93
99
  {
94
100
  type: "",
95
101
  name: "",
@@ -102,7 +108,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
102
108
  }
103
109
  ]);
104
110
  function ae() {
105
- y.value.push({
111
+ b.value.push({
106
112
  type: "",
107
113
  name: "",
108
114
  number: 0,
@@ -114,22 +120,22 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
114
120
  });
115
121
  }
116
122
  function te(e) {
117
- const l = y.value.indexOf(e.row);
118
- l !== 0 && y.value.splice(l, 1);
123
+ const l = b.value.indexOf(e.row);
124
+ l !== 0 && b.value.splice(l, 1);
119
125
  }
120
- const B = F("0.00");
126
+ const M = V("0.00");
121
127
  W(
122
- () => y.value,
128
+ () => b.value,
123
129
  (e) => {
124
130
  if (!e || e.length === 0) {
125
- B.value = "0.00";
131
+ M.value = "0.00";
126
132
  return;
127
133
  }
128
- const l = e.reduce((r, d) => {
129
- const s = parseFloat(d.valuation) || 0, i = parseFloat(d.number) || 0;
130
- return r + s * i;
134
+ const l = e.reduce((r, u) => {
135
+ const d = parseFloat(u.valuation) || 0, i = parseFloat(u.number) || 0;
136
+ return r + d * i;
131
137
  }, 0);
132
- B.value = l.toFixed(2);
138
+ M.value = l.toFixed(2);
133
139
  },
134
140
  { deep: !0, immediate: !0 }
135
141
  );
@@ -138,35 +144,35 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
138
144
  orgId: [
139
145
  {
140
146
  required: !0,
141
- message: c("itsmFlowSpareParts.govOrgIdRequired"),
147
+ message: f("itsmFlowSpareParts.govOrgIdRequired"),
142
148
  trigger: "change"
143
149
  }
144
150
  ],
145
151
  type: [
146
152
  {
147
153
  required: !0,
148
- message: c("itsmFlowSpareParts.typeRequired"),
154
+ message: f("itsmFlowSpareParts.itsmtypeRequired"),
149
155
  trigger: "change"
150
156
  }
151
157
  ],
152
158
  applyPlace: [
153
159
  {
154
160
  required: !0,
155
- message: c("itsmFlowSpareParts.applyPlaceRequired"),
161
+ message: f("itsmFlowSpareParts.applyPlaceRequired"),
156
162
  trigger: "change"
157
163
  }
158
164
  ],
159
165
  annual: [
160
166
  {
161
167
  required: !0,
162
- message: c("itsmFlowSpareParts.annualRequired"),
168
+ message: f("itsmFlowSpareParts.annualRequired"),
163
169
  trigger: "change"
164
170
  }
165
171
  ],
166
172
  applyDate: [
167
173
  {
168
174
  required: !0,
169
- message: c("itsmFlowSpareParts.applyDateRequired"),
175
+ message: f("itsmFlowSpareParts.applyDateRequired"),
170
176
  trigger: "change"
171
177
  }
172
178
  ]
@@ -174,19 +180,19 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
174
180
  return a.type !== "BudgetOut" && (e.itemId = [
175
181
  {
176
182
  required: !0,
177
- message: c("itsmFlowSpareParts.itemIdRequired"),
183
+ message: f("itsmFlowSpareParts.itemIdRequired"),
178
184
  trigger: "change"
179
185
  }
180
186
  ], e.budgetType = [
181
187
  {
182
188
  required: !0,
183
- message: c("itsmFlowSpareParts.budgetTypeRequired"),
189
+ message: f("itsmFlowSpareParts.budgetTypeRequired"),
184
190
  trigger: "change"
185
191
  }
186
192
  ], e.contractMoney = [
187
193
  {
188
194
  required: !0,
189
- message: c("itsmFlowSpareParts.contractMoneyRequired"),
195
+ message: f("itsmFlowSpareParts.contractMoneyRequired"),
190
196
  trigger: "change"
191
197
  }
192
198
  ]), e;
@@ -205,12 +211,12 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
205
211
  const L = (e) => {
206
212
  var l;
207
213
  return ((l = a.files) == null ? void 0 : l.filter((r) => r.fileSort === e)) || [];
208
- }, ue = (e, l) => {
209
- var s, i;
210
- const r = L(e), d = (s = a.files) == null ? void 0 : s.findIndex(
211
- (V) => V.fileSort === e && V.fileId === r[l].fileId
214
+ }, se = (e, l) => {
215
+ var d, i;
216
+ const r = L(e), u = (d = a.files) == null ? void 0 : d.findIndex(
217
+ (F) => F.fileSort === e && F.fileId === r[l].fileId
212
218
  );
213
- d !== void 0 && d >= 0 && ((i = a.files) == null || i.splice(d, 1));
219
+ u !== void 0 && u >= 0 && ((i = a.files) == null || i.splice(u, 1));
214
220
  };
215
221
  G.findById({ flowSpareId: k.task.businessKey }).then(({ data: e }) => {
216
222
  Object.assign(a, e);
@@ -218,8 +224,8 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
218
224
  flowSpareId: k.task.businessKey
219
225
  };
220
226
  $e.findList(l).then((r) => {
221
- var d;
222
- console.log("明细接口返回:", r), (d = r == null ? void 0 : r.data) != null && d.results && Array.isArray(r.data.results) ? y.value = r.data.results : (y.value = [
227
+ var u;
228
+ console.log("明细接口返回:", r), (u = r == null ? void 0 : r.data) != null && u.results && Array.isArray(r.data.results) ? b.value = r.data.results : (b.value = [
223
229
  {
224
230
  type: "",
225
231
  name: "",
@@ -232,15 +238,15 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
232
238
  }
233
239
  ], q.warning("未获取到明细数据,已初始化空白行"));
234
240
  }).catch((r) => {
235
- console.error("获取明细失败:", r), q.error("加载明细数据失败"), y.value = [
241
+ console.error("获取明细失败:", r), q.error("加载明细数据失败"), b.value = [
236
242
  /* 初始化空行 */
237
243
  ];
238
- }), de(), M(
244
+ }), ue(), B(
239
245
  a.itemId,
240
246
  a.annual
241
247
  );
242
248
  });
243
- function de() {
249
+ function ue() {
244
250
  qe.findFilesList({ actionId: k.task.businessKey }).then(({ data: e }) => {
245
251
  e.results && Array.isArray(e.results) && (a.files = e.results.map((l) => {
246
252
  let r = "";
@@ -253,27 +259,27 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
253
259
  });
254
260
  }
255
261
  Q({
256
- changeModel: () => se()
262
+ changeModel: () => de()
257
263
  });
258
- function se() {
264
+ function de() {
259
265
  return v.value && (v.value.selectActions = [
260
266
  { key: "true", value: "同意" },
261
267
  { key: "false", value: "不同意" }
262
268
  ], v.value.varName = "approved", v.value.module = "", v.value.module = ke.MODULE_ITSMFLOW), new Promise((e, l) => {
263
269
  var r;
264
- (r = C.value) == null || r.validate((d) => {
265
- d ? (v.value && (v.value.comment = ""), a.requestId = Math.random() * 10 + "", a.details = y.value, G.create(a).then((s) => {
266
- s.status === 200 ? e(!0) : l(!1);
270
+ (r = C.value) == null || r.validate((u) => {
271
+ u ? (v.value && (v.value.comment = ""), a.requestId = Math.random() * 10 + "", a.details = b.value, G.create(a).then((d) => {
272
+ d.status === 200 ? e(!0) : l(!1);
267
273
  })) : l(!1);
268
274
  });
269
275
  });
270
276
  }
271
277
  return (e, l) => {
272
- const r = p("el-col"), d = p("jmash-select"), s = p("el-form-item"), i = p("el-input"), V = p("el-date-picker"), ie = p("el-option"), pe = p("el-select"), me = p("el-tree-select"), E = p("el-row"), b = p("el-table-column"), ce = p("el-input-number"), j = p("el-icon"), fe = p("el-table"), z = p("el-button"), ge = p("el-form"), ye = p("jmash-multi-upload");
273
- return f(), P(I, null, [
278
+ const r = p("el-col"), u = p("jmash-select"), d = p("el-form-item"), i = p("el-input"), F = p("el-date-picker"), ie = p("el-option"), pe = p("el-select"), me = p("el-tree-select"), z = p("el-row"), h = p("el-table-column"), ce = p("el-input-number"), E = p("el-icon"), fe = p("el-table"), j = p("el-button"), ge = p("el-form"), ye = p("jmash-multi-upload");
279
+ return g(), P(I, null, [
274
280
  t(r, { span: 24 }, {
275
281
  default: n(() => l[9] || (l[9] = [
276
- h("div", { class: "title" }, "备品备件按需采购申请单", -1)
282
+ y("div", { class: "title" }, "备品备件按需采购申请单", -1)
277
283
  ])),
278
284
  _: 1,
279
285
  __: [9]
@@ -281,26 +287,26 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
281
287
  t(ge, {
282
288
  ref_key: "taskFormRef",
283
289
  ref: C,
284
- model: u(a),
290
+ model: s(a),
285
291
  "label-width": "150px",
286
292
  rules: oe.value,
287
293
  class: "custom-table-form custom-form"
288
294
  }, {
289
295
  default: n(() => [
290
- t(E, null, {
296
+ t(z, null, {
291
297
  default: n(() => [
292
298
  t(r, { span: 12 }, {
293
299
  default: n(() => [
294
- t(s, {
300
+ t(d, {
295
301
  label: e.$t("itsmFlowSpareParts.govOrgId"),
296
302
  prop: "orgId"
297
303
  }, {
298
304
  default: n(() => [
299
- t(d, {
300
- modelValue: u(a).orgId,
301
- "onUpdate:modelValue": l[0] || (l[0] = (o) => u(a).orgId = o),
305
+ t(u, {
306
+ modelValue: s(a).orgId,
307
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => s(a).orgId = o),
302
308
  placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
303
- data: u(g).orgIdBizDict.values,
309
+ data: s(c).orgIdBizDict.values,
304
310
  clearable: "",
305
311
  filterable: "",
306
312
  onChange: Z,
@@ -314,16 +320,16 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
314
320
  }),
315
321
  t(r, { span: 12 }, {
316
322
  default: n(() => [
317
- t(s, {
318
- label: e.$t("itsmFlowSpareParts.type"),
323
+ t(d, {
324
+ label: e.$t("itsmFlowSpareParts.itsmtype"),
319
325
  prop: "type"
320
326
  }, {
321
327
  default: n(() => [
322
- t(d, {
323
- modelValue: u(a).type,
324
- "onUpdate:modelValue": l[1] || (l[1] = (o) => u(a).type = o),
325
- placeholder: e.$t("itsmFlowSpareParts.typeRequired"),
326
- data: u(g).purchaseTypeEnum.values,
328
+ t(u, {
329
+ modelValue: s(a).type,
330
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => s(a).type = o),
331
+ placeholder: e.$t("itsmFlowSpareParts.itsmtypeRequired"),
332
+ data: s(c).purchaseTypeEnum.values,
327
333
  clearable: "",
328
334
  class: "w-full"
329
335
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -335,14 +341,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
335
341
  }),
336
342
  t(r, { span: 12 }, {
337
343
  default: n(() => [
338
- t(s, {
344
+ t(d, {
339
345
  label: e.$t("itsmFlowSpareParts.applyPlace"),
340
346
  prop: "applyPlace"
341
347
  }, {
342
348
  default: n(() => [
343
349
  t(i, {
344
- modelValue: u(a).applyPlace,
345
- "onUpdate:modelValue": l[2] || (l[2] = (o) => u(a).applyPlace = o),
350
+ modelValue: s(a).applyPlace,
351
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => s(a).applyPlace = o),
346
352
  placeholder: e.$t("itsmFlowSpareParts.applyPlace"),
347
353
  maxlength: "30",
348
354
  "show-word-limit": "",
@@ -357,14 +363,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
357
363
  }),
358
364
  t(r, { span: 12 }, {
359
365
  default: n(() => [
360
- t(s, {
366
+ t(d, {
361
367
  label: e.$t("itsmFlowSpareParts.annual"),
362
368
  prop: "annual"
363
369
  }, {
364
370
  default: n(() => [
365
- t(V, {
366
- modelValue: u(a).annual,
367
- "onUpdate:modelValue": l[3] || (l[3] = (o) => u(a).annual = o),
371
+ t(F, {
372
+ modelValue: s(a).annual,
373
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => s(a).annual = o),
368
374
  type: "year",
369
375
  placeholder: e.$t("itsmFlowSpareParts.annualRequired"),
370
376
  format: "YYYY",
@@ -379,28 +385,28 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
379
385
  ]),
380
386
  _: 1
381
387
  }),
382
- u(a).type !== "BudgetOut" ? (f(), S(r, {
388
+ s(a).type !== "BudgetOut" ? (g(), _(r, {
383
389
  key: 0,
384
390
  span: 24
385
391
  }, {
386
392
  default: n(() => [
387
- t(s, {
388
- label: e.$t("itsmFlowSpareParts.itemId"),
393
+ t(d, {
394
+ label: e.$t("itsmFlowSpareParts.itsmFlowItemId"),
389
395
  prop: "itemId"
390
396
  }, {
391
397
  default: n(() => [
392
398
  t(pe, {
393
- modelValue: u(a).itemId,
394
- "onUpdate:modelValue": l[4] || (l[4] = (o) => u(a).itemId = o),
399
+ modelValue: s(a).itemId,
400
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => s(a).itemId = o),
395
401
  placeholder: e.$t("itsmFlowSpareParts.itemIdRequired"),
396
402
  data: Y.value,
397
403
  clearable: "",
398
404
  filterable: "",
399
- disabled: !u(a).orgId,
405
+ disabled: !s(a).orgId,
400
406
  onChange: x
401
407
  }, {
402
408
  default: n(() => [
403
- (f(!0), P(I, null, R(Y.value, (o) => (f(), S(ie, {
409
+ (g(!0), P(I, null, R(Y.value, (o) => (g(), _(ie, {
404
410
  key: o.key,
405
411
  value: o.key,
406
412
  label: o.value
@@ -414,19 +420,19 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
414
420
  ]),
415
421
  _: 1
416
422
  })) : $("", !0),
417
- u(a).type !== "BudgetOut" ? (f(), S(r, {
423
+ s(a).type !== "BudgetOut" ? (g(), _(r, {
418
424
  key: 1,
419
425
  span: 12
420
426
  }, {
421
427
  default: n(() => [
422
- t(s, {
423
- label: e.$t("itsmFlowSpareParts.budgetType"),
428
+ t(d, {
429
+ label: e.$t("itsmFlowSpareParts.itsmFlowBudgetType"),
424
430
  prop: "budgetType"
425
431
  }, {
426
432
  default: n(() => [
427
433
  t(me, {
428
- modelValue: u(a).budgetType,
429
- "onUpdate:modelValue": l[5] || (l[5] = (o) => u(a).budgetType = o),
434
+ modelValue: s(a).budgetType,
435
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => s(a).budgetType = o),
430
436
  placeholder: e.$t("itsmFlowSpareParts.budgetTypeRequired"),
431
437
  data: w.value,
432
438
  disabled: !w.value.length,
@@ -441,19 +447,19 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
441
447
  ]),
442
448
  _: 1
443
449
  })) : $("", !0),
444
- u(a).type !== "BudgetOut" ? (f(), S(r, {
450
+ s(a).type !== "BudgetOut" ? (g(), _(r, {
445
451
  key: 2,
446
452
  span: 12
447
453
  }, {
448
454
  default: n(() => [
449
- t(s, {
455
+ t(d, {
450
456
  label: e.$t("itsmFlowSpareParts.contractMoney"),
451
457
  prop: "contractMoney"
452
458
  }, {
453
459
  default: n(() => [
454
460
  t(i, {
455
- modelValue: u(a).contractMoney,
456
- "onUpdate:modelValue": l[6] || (l[6] = (o) => u(a).contractMoney = o),
461
+ modelValue: s(a).contractMoney,
462
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => s(a).contractMoney = o),
457
463
  placeholder: e.$t("itsmFlowSpareParts.contractMoneyRequired"),
458
464
  "show-word-limit": "",
459
465
  clearable: ""
@@ -466,13 +472,13 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
466
472
  })) : $("", !0),
467
473
  t(r, { span: 12 }, {
468
474
  default: n(() => [
469
- t(s, {
475
+ t(d, {
470
476
  label: e.$t("itsmFlowSpareParts.createBy"),
471
477
  prop: "createBy"
472
478
  }, {
473
479
  default: n(() => [
474
480
  t(i, {
475
- value: u(X).user.realName,
481
+ value: s(X).user.realName,
476
482
  placeholder: e.$t("itsmFlowSpareParts.createBy"),
477
483
  maxlength: "8",
478
484
  "show-word-limit": "",
@@ -487,14 +493,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
487
493
  }),
488
494
  t(r, { span: 12 }, {
489
495
  default: n(() => [
490
- t(s, {
496
+ t(d, {
491
497
  label: e.$t("itsmFlowSpareParts.applyDate"),
492
498
  prop: "applyDate"
493
499
  }, {
494
500
  default: n(() => [
495
- t(V, {
496
- modelValue: u(a).applyDate,
497
- "onUpdate:modelValue": l[7] || (l[7] = (o) => u(a).applyDate = o),
501
+ t(F, {
502
+ modelValue: s(a).applyDate,
503
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => s(a).applyDate = o),
498
504
  type: "date",
499
505
  placeholder: e.$t("itsmFlowSpareParts.applyDateRequired"),
500
506
  format: "YYYY-MM-DD",
@@ -510,30 +516,30 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
510
516
  ]),
511
517
  _: 1
512
518
  }),
513
- t(E, null, {
519
+ t(z, null, {
514
520
  default: n(() => [
515
521
  t(r, { span: 24 }, {
516
522
  default: n(() => l[10] || (l[10] = [
517
- h("div", { class: "title" }, "运维需求描述", -1)
523
+ y("div", { class: "title" }, "运维需求描述", -1)
518
524
  ])),
519
525
  _: 1,
520
526
  __: [10]
521
527
  }),
522
528
  t(fe, {
523
- data: y.value,
529
+ data: b.value,
524
530
  border: "",
525
531
  style: { width: "100%" }
526
532
  }, {
527
533
  default: n(() => [
528
- t(b, {
534
+ t(h, {
529
535
  type: "index",
530
536
  label: e.$t("itsmFlowSpareParts.index"),
531
537
  width: "60",
532
538
  align: "center"
533
539
  }, null, 8, ["label"]),
534
- t(b, {
540
+ t(h, {
535
541
  prop: "type",
536
- label: e.$t("itsmFlowSpareParts.type"),
542
+ label: e.$t("itsmFlowSpareParts.itsmtype"),
537
543
  "header-align": "center",
538
544
  width: "180"
539
545
  }, {
@@ -541,15 +547,15 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
541
547
  t(i, {
542
548
  modelValue: o.type,
543
549
  "onUpdate:modelValue": (m) => o.type = m,
544
- placeholder: e.$t("itsmFlowSpareParts.typeRequired"),
550
+ placeholder: e.$t("itsmFlowSpareParts.itsmtypeRequired"),
545
551
  class: "w-full"
546
552
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
547
553
  ]),
548
554
  _: 1
549
555
  }, 8, ["label"]),
550
- t(b, {
556
+ t(h, {
551
557
  prop: "name",
552
- label: e.$t("itsmFlowSpareParts.name"),
558
+ label: e.$t("itsmFlowSpareParts.itsmName"),
553
559
  "header-align": "center",
554
560
  width: "300"
555
561
  }, {
@@ -557,12 +563,12 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
557
563
  t(i, {
558
564
  modelValue: o.name,
559
565
  "onUpdate:modelValue": (m) => o.name = m,
560
- placeholder: e.$t("itsmFlowSpareParts.nameRequired")
566
+ placeholder: e.$t("itsmFlowSpareParts.itsmNameRequired")
561
567
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
562
568
  ]),
563
569
  _: 1
564
570
  }, 8, ["label"]),
565
- t(b, {
571
+ t(h, {
566
572
  prop: "number",
567
573
  label: e.$t("itsmFlowSpareParts.number"),
568
574
  "header-align": "center",
@@ -581,14 +587,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
581
587
  ]),
582
588
  _: 1
583
589
  }, 8, ["label"]),
584
- t(b, {
590
+ t(h, {
585
591
  prop: "unit",
586
592
  "header-align": "center",
587
593
  width: "200"
588
594
  }, {
589
595
  header: n(() => [
590
- l[11] || (l[11] = h("span", { class: "required_red" }, "*", -1)),
591
- h("span", null, _(e.$t("itsmFlowSpareParts.unit")), 1)
596
+ l[11] || (l[11] = y("span", { class: "required_red" }, "*", -1)),
597
+ y("span", null, S(e.$t("itsmFlowSpareParts.unit")) + "(计量单位)", 1)
592
598
  ]),
593
599
  default: n(({ row: o }) => [
594
600
  t(i, {
@@ -599,14 +605,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
599
605
  ]),
600
606
  _: 1
601
607
  }),
602
- t(b, {
608
+ t(h, {
603
609
  prop: "parameter",
604
610
  "header-align": "center",
605
611
  width: "150"
606
612
  }, {
607
613
  header: n(() => [
608
- l[12] || (l[12] = h("span", { class: "required_red" }, "*", -1)),
609
- h("span", null, _(e.$t("itsmFlowSpareParts.parameter")), 1)
614
+ l[12] || (l[12] = y("span", { class: "required_red" }, "*", -1)),
615
+ y("span", null, S(e.$t("itsmFlowSpareParts.parameter")), 1)
610
616
  ]),
611
617
  default: n(({ row: o }) => [
612
618
  t(i, {
@@ -617,12 +623,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
617
623
  ]),
618
624
  _: 1
619
625
  }),
620
- t(b, {
626
+ t(h, {
621
627
  prop: "valuation",
622
- label: e.$t("itsmFlowSpareParts.valuation"),
623
628
  "header-align": "center",
624
629
  width: "120"
625
630
  }, {
631
+ header: n(() => [
632
+ y("span", null, S(e.$t("itsmFlowSpareParts.valuation")) + "(万元)", 1)
633
+ ]),
626
634
  default: n(({ row: o }) => [
627
635
  t(i, {
628
636
  modelValue: o.valuation,
@@ -631,8 +639,8 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
631
639
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
632
640
  ]),
633
641
  _: 1
634
- }, 8, ["label"]),
635
- t(b, {
642
+ }),
643
+ t(h, {
636
644
  prop: "range",
637
645
  label: e.$t("itsmFlowSpareParts.range"),
638
646
  "header-align": "center",
@@ -647,13 +655,13 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
647
655
  ]),
648
656
  _: 1
649
657
  }, 8, ["label"]),
650
- t(b, {
658
+ t(h, {
651
659
  label: e.$t("common.operate"),
652
660
  width: "60",
653
661
  align: "center"
654
662
  }, {
655
663
  default: n((o) => [
656
- o.$index !== 0 ? (f(), S(j, {
664
+ o.$index !== 0 ? (g(), _(E, {
657
665
  key: 0,
658
666
  onClick: (m) => te(o),
659
667
  size: "18",
@@ -661,7 +669,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
661
669
  class: "hover-blue"
662
670
  }, {
663
671
  default: n(() => [
664
- t(u(Fe))
672
+ t(s(Ve))
665
673
  ]),
666
674
  _: 2
667
675
  }, 1032, ["onClick"])) : $("", !0)
@@ -671,52 +679,52 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
671
679
  ]),
672
680
  _: 1
673
681
  }, 8, ["data"]),
674
- t(z, {
675
- icon: u(Se),
682
+ t(j, {
683
+ icon: s(Se),
676
684
  class: "addButton",
677
685
  onClick: ae
678
686
  }, {
679
687
  default: n(() => [
680
- T(_(u(c)("common.add")), 1)
688
+ T(S(s(f)("common.add")), 1)
681
689
  ]),
682
690
  _: 1
683
691
  }, 8, ["icon"]),
684
- h("div", Be, [
692
+ y("div", Me, [
685
693
  l[13] || (l[13] = T(" 预估总价(万元):")),
686
- h("span", Re, _(B.value), 1)
694
+ y("span", Re, S(M.value), 1)
687
695
  ]),
688
696
  t(r, {
689
697
  span: 24,
690
698
  class: "bordered-row"
691
699
  }, {
692
700
  default: n(() => [
693
- (f(!0), P(I, null, R(u(g).fileTypeDict.values.slice(0, 2), (o, m) => (f(), S(s, {
701
+ (g(!0), P(I, null, R(s(c).fileTypeDict.values.slice(0, 2), (o, m) => (g(), _(d, {
694
702
  key: o.dictCode,
695
703
  label: o.dictName
696
704
  }, {
697
705
  default: n(() => [
698
- t(z, {
706
+ t(j, {
699
707
  type: "primary",
700
- icon: u(_e),
708
+ icon: s(_e),
701
709
  onClick: () => ne(o.dictCode)
702
710
  }, {
703
711
  default: n(() => [
704
- T(_(e.$t("common.uploadFiles")), 1)
712
+ T(S(e.$t("common.uploadFiles")), 1)
705
713
  ]),
706
714
  _: 2
707
715
  }, 1032, ["icon", "onClick"]),
708
- (f(!0), P(I, null, R(L(o.dictCode), (be, K) => (f(), P("div", {
716
+ (g(!0), P(I, null, R(L(o.dictCode), (be, K) => (g(), P("div", {
709
717
  key: K,
710
718
  class: "files-list"
711
719
  }, [
712
- h("span", null, _(be.fileName), 1),
713
- t(j, {
720
+ y("span", null, S(be.fileName), 1),
721
+ t(E, {
714
722
  size: "16",
715
723
  class: "icon-right",
716
- onClick: () => ue(o.dictCode, K)
724
+ onClick: () => se(o.dictCode, K)
717
725
  }, {
718
726
  default: n(() => [
719
- t(u(Pe))
727
+ t(s(Pe))
720
728
  ]),
721
729
  _: 2
722
730
  }, 1032, ["onClick"])
@@ -743,7 +751,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
743
751
  ], 64);
744
752
  };
745
753
  }
746
- }), Ke = /* @__PURE__ */ Me(Te, [["__scopeId", "data-v-c35c6fc3"]]);
754
+ }), Ke = /* @__PURE__ */ Be(Te, [["__scopeId", "data-v-36ea3096"]]);
747
755
  export {
748
756
  Ke as default
749
757
  };