xyvcard-itsm-flow 0.0.26 → 0.0.28

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