xyvcard-itsm-flow 0.0.20 → 0.0.21

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-AAIDp3Ys.mjs} +1 -1
  5. package/dist/edit-BC3HBHna.mjs +378 -0
  6. package/dist/{edit-DdzFTqhg.mjs → edit-CWx9fJF7.mjs} +1 -1
  7. package/dist/edit-CuL-MqiW.mjs +794 -0
  8. package/dist/{edit-Vw2XQ1u6.mjs → edit-XWSh98dW.mjs} +1 -1
  9. package/dist/edit-zRQs9w8y.mjs +492 -0
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs → edit.vue_vue_type_script_setup_true_lang-BCVm7-Ex.mjs} +2 -2
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs → edit.vue_vue_type_script_setup_true_lang-BHgx58mh.mjs} +2 -2
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs → edit.vue_vue_type_script_setup_true_lang-Rs79eFoT.mjs} +2 -2
  13. package/dist/{el-message-DawVzOVQ.mjs → el-message-BJAl6Gwu.mjs} +1 -1
  14. package/dist/{index-g0KiWDPW.mjs → index--gw38QeR.mjs} +3 -3
  15. package/dist/index-3BgV8fss.mjs +396 -0
  16. package/dist/index-BDh2WCIf.mjs +316 -0
  17. package/dist/{index-CxyHtsq2.mjs → index-BFtKB0qe.mjs} +2 -2
  18. package/dist/{index-DaSMRndr.mjs → index-BLHnAUcn.mjs} +2 -2
  19. package/dist/index-BSRU0wyQ.mjs +479 -0
  20. package/dist/{index-54evOMFJ.mjs → index-BYbmB9DD.mjs} +2 -2
  21. package/dist/{index-BI1uXq1f.mjs → index-Bom-5z91.mjs} +4 -4
  22. package/dist/index-BtiMpwj2.mjs +457 -0
  23. package/dist/{index-tnTugnqa.mjs → index-C-HQUPPS.mjs} +3 -3
  24. package/dist/{index-DyOibT57.mjs → index-C5pj6umx.mjs} +2 -2
  25. package/dist/{index-C7_kMdm5.mjs → index-CDKSx5IH.mjs} +2 -2
  26. package/dist/{index-Dooa5UH_.mjs → index-CLZfBnlo.mjs} +4 -4
  27. package/dist/index-COvZrTZl.mjs +278 -0
  28. package/dist/index-CXAtR6Vv.mjs +366 -0
  29. package/dist/index-CYJvDaI_.mjs +1371 -0
  30. package/dist/{index-PafaMNgK.mjs → index-CvX2It1o.mjs} +64 -30
  31. package/dist/index-D2AIn13F.mjs +339 -0
  32. package/dist/{index-Cgbv4Ijf.mjs → index-D7TvdZ0W.mjs} +180 -160
  33. package/dist/{index-7_pEehBt.mjs → index-DBRvKb1w.mjs} +2 -2
  34. package/dist/{index-CITy8Hqm.mjs → index-DFj2i4Kf.mjs} +4 -4
  35. package/dist/index-DNsy9Enp.mjs +272 -0
  36. package/dist/index-DQOGU1Vs.mjs +402 -0
  37. package/dist/index-D_PiZ_6x.mjs +749 -0
  38. package/dist/index-DesY4um_.mjs +330 -0
  39. package/dist/{index-v18knD_f.mjs → index-DkPqpjkA.mjs} +2 -2
  40. package/dist/index-Sm592CoC.mjs +273 -0
  41. package/dist/index-cjJjrvPP.mjs +390 -0
  42. package/dist/index-enjFe_Qb.mjs +400 -0
  43. package/dist/index-gWMTJ0gB.mjs +221 -0
  44. package/dist/index-o0oTSdUL.mjs +149 -0
  45. package/dist/index.mjs +1357 -1229
  46. package/dist/{info-8NydJYfB.mjs → info-06y0zz8D.mjs} +1 -1
  47. package/dist/{info-BbMCDfFR.mjs → info-BQh86EaI.mjs} +1 -1
  48. package/dist/{info-l0eP5Tw1.mjs → info-CYY7U06K.mjs} +1 -1
  49. package/dist/info-ClUXgnK1.mjs +4 -0
  50. package/dist/info-DJvahDDF.mjs +4 -0
  51. package/dist/info-nzbmqI2A.mjs +4 -0
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs → info.vue_vue_type_script_setup_true_lang-7L5RJMrf.mjs} +1 -1
  53. package/dist/{info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs → info.vue_vue_type_script_setup_true_lang-BHjv3DSd.mjs} +1 -1
  54. package/dist/{info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs → info.vue_vue_type_script_setup_true_lang-D5eF48hb.mjs} +1 -1
  55. package/dist/info.vue_vue_type_script_setup_true_lang-DxArle2x.mjs +260 -0
  56. package/dist/info.vue_vue_type_script_setup_true_lang-hwan7iwm.mjs +209 -0
  57. package/dist/info.vue_vue_type_script_setup_true_lang-y8F2Xg5z.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 +11 -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
@@ -0,0 +1,794 @@
1
+ import { defineComponent as Pe, mergeModels as W, ref as F, useModel as Ie, reactive as $e, computed as X, watch as Z, resolveComponent as p, createElementBlock as q, openBlock as f, Fragment as U, createVNode as t, withCtx as r, createElementVNode as g, unref as s, createBlock as V, createCommentVNode as k, renderList as O, toDisplayString as h, createTextVNode as _ } from "vue";
2
+ import { ElMessage as P } from "element-plus";
3
+ import { d as qe, p as ke, u as De, c as Ue } from "./index-CvX2It1o.mjs";
4
+ import "jmash-rbac";
5
+ import { useI18n as Be } from "vue-i18n";
6
+ import { i as Y, a as Re } from "./index-COvZrTZl.mjs";
7
+ import { D as v, i as Ce } from "./index-D7TvdZ0W.mjs";
8
+ import { itemBudgetApi as x } from "xyvcard-itsm";
9
+ import { useUserStoreHook as Me } from "jmash-core";
10
+ import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
11
+ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "title" }, Ne = /* @__PURE__ */ Pe({
12
+ __name: "edit",
13
+ props: /* @__PURE__ */ W({
14
+ entityKey: {
15
+ type: Object,
16
+ default: () => {
17
+ }
18
+ }
19
+ }, {
20
+ modelValue: { type: Boolean },
21
+ modelModifiers: {}
22
+ }),
23
+ emits: /* @__PURE__ */ W(["refresh"], ["update:modelValue"]),
24
+ setup(A, { emit: ee }) {
25
+ const le = Me();
26
+ v.budgetTypeDict.useValues(), v.fileTypeDict.useDictValues(), console.log(v.budgetTypeDict.values, "=> budgetTypeDict"), console.log(v.fileTypeDict.values, "=>fileTypeDict ");
27
+ const { t: c } = Be(), B = F(), I = Ie(A, "modelValue"), D = A, N = F(""), E = ee, ae = Object.keys(D.entityKey), R = F(ae.length >= 1);
28
+ let a = $e({
29
+ requestId: Math.random() * 10 + "",
30
+ updateMask: "",
31
+ files: [],
32
+ applyDate: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
33
+ details: []
34
+ });
35
+ const C = F(!1), L = F(), j = X(() => a.orgId ? v.itemBizLayDict.values.filter(
36
+ (l) => l.orgId === a.orgId
37
+ ) : []), w = F([]);
38
+ function te(e) {
39
+ a.itemId = void 0, a.budgetType = "", a.contractMoney = "0", w.value = [];
40
+ }
41
+ function oe(e) {
42
+ M(e, a.annual);
43
+ }
44
+ function re(e) {
45
+ M(a.itemId, e);
46
+ }
47
+ const K = (e, l) => (console.log(e), e.map((n) => {
48
+ console.log(n);
49
+ const u = { ...n };
50
+ return console.log(u), u.children && u.children.length > 0 && (u.children = K(u.children, l)), l.includes(u.value) || u.children && u.children.length > 0 ? (console.log(u), u) : null;
51
+ }).filter((n) => n !== null)), M = async (e, l) => {
52
+ if (!e || !l) {
53
+ a.budgetType = "", a.contractMoney = "0", w.value = [];
54
+ return;
55
+ }
56
+ try {
57
+ const n = {
58
+ itemId: e,
59
+ annual: l
60
+ }, u = await x.findList(n);
61
+ console.log(u, "=>response ");
62
+ const d = u.data.results || [];
63
+ if (console.log(d), d.length > 0) {
64
+ const i = d.map((S) => S.budgetType);
65
+ console.log("接口返回的预算编码:", i), w.value = K(
66
+ v.budgetTypeDict.values,
67
+ i
68
+ ), console.log("过滤后的预算类型:", w.value), a.budgetType = d[0].budgetType || "", a.contractMoney = String(d[0].approvedAmount) || "0";
69
+ } else
70
+ a.budgetType = "", a.contractMoney = "0", w.value = [], P.warning(c("itsmFlowSpareParts.noBudgetType"));
71
+ } catch (n) {
72
+ a.budgetType = "", a.contractMoney = "0", w.value = [], P.error(c("itsmFlowSpareParts.getBudgetFail")), console.error("获取预算类型失败:", n);
73
+ }
74
+ };
75
+ Z(
76
+ () => a.budgetType,
77
+ (e) => {
78
+ e && R.value ? ne(e) : e || (a.contractMoney = "0");
79
+ }
80
+ );
81
+ const ne = async (e) => {
82
+ if (!(!a.itemId || !a.annual))
83
+ try {
84
+ const l = {
85
+ itemId: a.itemId,
86
+ annual: a.annual
87
+ }, d = ((await x.findList(l)).data.results || []).find(
88
+ (i) => i.budgetType === e
89
+ );
90
+ d ? a.contractMoney = String(d.approvedAmount) || "0" : a.contractMoney = "0";
91
+ } catch (l) {
92
+ console.error("获取预算金额失败:", l), a.contractMoney = "0";
93
+ }
94
+ }, y = F([
95
+ {
96
+ type: "",
97
+ name: "",
98
+ number: 0,
99
+ unit: "",
100
+ parameter: "",
101
+ valuation: 0,
102
+ range: "",
103
+ orderBy: ""
104
+ }
105
+ ]);
106
+ function se() {
107
+ y.value.push({
108
+ type: "",
109
+ name: "",
110
+ number: 0,
111
+ unit: "",
112
+ parameter: "",
113
+ valuation: 0,
114
+ range: "",
115
+ orderBy: ""
116
+ });
117
+ }
118
+ function ue(e) {
119
+ const l = y.value.indexOf(e.row);
120
+ l !== 0 && y.value.splice(l, 1);
121
+ }
122
+ const T = F("0.00");
123
+ Z(
124
+ () => y.value,
125
+ (e) => {
126
+ if (!e || e.length === 0) {
127
+ T.value = "0.00";
128
+ return;
129
+ }
130
+ const l = e.reduce((n, u) => {
131
+ const d = parseFloat(u.valuation) || 0, i = parseFloat(u.number) || 0;
132
+ return n + d * i;
133
+ }, 0);
134
+ T.value = l.toFixed(2);
135
+ },
136
+ { deep: !0, immediate: !0 }
137
+ );
138
+ const de = X(() => {
139
+ const e = {
140
+ orgId: [
141
+ {
142
+ required: !0,
143
+ message: c("itsmFlowSpareParts.govOrgIdRequired"),
144
+ trigger: "change"
145
+ }
146
+ ],
147
+ type: [
148
+ {
149
+ required: !0,
150
+ message: c("itsmFlowSpareParts.typeRequired"),
151
+ trigger: "change"
152
+ }
153
+ ],
154
+ applyPlace: [
155
+ {
156
+ required: !0,
157
+ message: c("itsmFlowSpareParts.applyPlaceRequired"),
158
+ trigger: "change"
159
+ }
160
+ ],
161
+ annual: [
162
+ {
163
+ required: !0,
164
+ message: c("itsmFlowSpareParts.annualRequired"),
165
+ trigger: "change"
166
+ }
167
+ ],
168
+ applyDate: [
169
+ {
170
+ required: !0,
171
+ message: c("itsmFlowSpareParts.applyDateRequired"),
172
+ trigger: "change"
173
+ }
174
+ ]
175
+ };
176
+ return a.type !== "BudgetOut" && (e.itemId = [
177
+ {
178
+ required: !0,
179
+ message: c("itsmFlowSpareParts.itemIdRequired"),
180
+ trigger: "change"
181
+ }
182
+ ], e.budgetType = [
183
+ {
184
+ required: !0,
185
+ message: c("itsmFlowSpareParts.budgetTypeRequired"),
186
+ trigger: "change"
187
+ }
188
+ ], e.contractMoney = [
189
+ {
190
+ required: !0,
191
+ message: c("itsmFlowSpareParts.contractMoneyRequired"),
192
+ trigger: "change"
193
+ }
194
+ ]), e;
195
+ });
196
+ function ie(e) {
197
+ const l = {
198
+ fileName: e.name,
199
+ fileId: e.response.fileId,
200
+ fileSort: N.value
201
+ };
202
+ a.files || (a.files = []), a.files.push(l);
203
+ }
204
+ function pe(e) {
205
+ e && (N.value = e), C.value = !0, L.value.clearFileList();
206
+ }
207
+ const z = (e) => {
208
+ var l;
209
+ return ((l = a.files) == null ? void 0 : l.filter((n) => n.fileSort === e)) || [];
210
+ }, me = (e, l) => {
211
+ var d, i;
212
+ const n = z(e), u = (d = a.files) == null ? void 0 : d.findIndex(
213
+ (S) => S.fileSort === e && S.fileId === n[l].fileId
214
+ );
215
+ u !== void 0 && u >= 0 && ((i = a.files) == null || i.splice(u, 1));
216
+ };
217
+ R.value && Y.findById(D.entityKey).then(({ data: e }) => {
218
+ Object.assign(a, e);
219
+ const l = {
220
+ flowSpareId: D.entityKey.flowSpareId
221
+ };
222
+ Re.findList(l).then((n) => {
223
+ var u;
224
+ console.log("明细接口返回:", n), (u = n == null ? void 0 : n.data) != null && u.results && Array.isArray(n.data.results) ? y.value = n.data.results : (y.value = [
225
+ {
226
+ type: "",
227
+ name: "",
228
+ number: 0,
229
+ unit: "",
230
+ parameter: "",
231
+ valuation: 0,
232
+ range: "",
233
+ orderBy: ""
234
+ }
235
+ ], P.warning("未获取到明细数据,已初始化空白行"));
236
+ }).catch((n) => {
237
+ console.error("获取明细失败:", n), P.error("加载明细数据失败"), y.value = [
238
+ /* 初始化空行 */
239
+ ];
240
+ }), ce(), M(a.itemId, a.annual);
241
+ });
242
+ function ce() {
243
+ Ce.findFilesList({ actionId: D.entityKey.flowSpareId }).then(({ data: e }) => {
244
+ e.results && Array.isArray(e.results) && (a.files = e.results.map((l) => {
245
+ let n = "";
246
+ return l.fileName && (n = l.fileSort || l.type || ""), {
247
+ fileName: l.fileName || "",
248
+ fileId: l.fileId || "",
249
+ fileSort: n
250
+ };
251
+ }));
252
+ });
253
+ }
254
+ const fe = async () => {
255
+ var e;
256
+ await ((e = B.value) == null ? void 0 : e.validate((l) => {
257
+ l && (a.details = y.value, Y.create(a).then((n) => {
258
+ n.status === 200 && (P({
259
+ message: c("common.submitSuccess"),
260
+ type: "success"
261
+ }), I.value = !1, E("refresh", !0));
262
+ }));
263
+ }));
264
+ }, ge = async () => {
265
+ var e;
266
+ await ((e = B.value) == null ? void 0 : e.validate(async (l) => {
267
+ l && Y.submit(a).then((n) => {
268
+ n.status === 200 && (P({
269
+ message: c("common.submitSuccess"),
270
+ type: "success"
271
+ }), I.value = !1, E("refresh", !0));
272
+ });
273
+ }));
274
+ };
275
+ function H() {
276
+ I.value = !1;
277
+ }
278
+ return (e, l) => {
279
+ const n = p("el-col"), u = p("jmash-select"), d = p("el-form-item"), i = p("el-input"), S = p("el-date-picker"), ye = p("el-option"), be = p("el-select"), he = p("el-tree-select"), G = p("el-row"), b = p("el-table-column"), ve = p("el-input-number"), J = p("el-icon"), we = p("el-table"), $ = p("el-button"), Fe = p("el-form"), Se = p("el-dialog"), Ve = p("jmash-multi-upload");
280
+ return f(), q(U, null, [
281
+ t(Se, {
282
+ modelValue: I.value,
283
+ "onUpdate:modelValue": l[8] || (l[8] = (o) => I.value = o),
284
+ onClose: H
285
+ }, {
286
+ footer: r(() => [
287
+ g("div", Ae, [
288
+ t($, { onClick: H }, {
289
+ default: r(() => [
290
+ _(h(e.$t("common.cancel")), 1)
291
+ ]),
292
+ _: 1
293
+ }),
294
+ t($, {
295
+ type: "primary",
296
+ onClick: fe
297
+ }, {
298
+ default: r(() => [
299
+ _(h(e.$t("itsmFlowEntrustUser.save")), 1)
300
+ ]),
301
+ _: 1
302
+ }),
303
+ t($, {
304
+ type: "primary",
305
+ onClick: ge
306
+ }, {
307
+ default: r(() => [
308
+ _(h(e.$t("itsmFlowEntrustUser.submit")), 1)
309
+ ]),
310
+ _: 1
311
+ })
312
+ ])
313
+ ]),
314
+ default: r(() => [
315
+ t(n, { span: 24 }, {
316
+ default: r(() => l[10] || (l[10] = [
317
+ g("div", { class: "title" }, "备品备件按需采购申请单", -1)
318
+ ])),
319
+ _: 1,
320
+ __: [10]
321
+ }),
322
+ t(Fe, {
323
+ ref_key: "itsmFlowSparePartsFormRef",
324
+ ref: B,
325
+ model: s(a),
326
+ "label-width": "150px",
327
+ rules: de.value,
328
+ class: "custom-table-form custom-form"
329
+ }, {
330
+ default: r(() => [
331
+ t(G, null, {
332
+ default: r(() => [
333
+ t(n, { span: 12 }, {
334
+ default: r(() => [
335
+ t(d, {
336
+ label: e.$t("itsmFlowSpareParts.govOrgId"),
337
+ prop: "govOrgId"
338
+ }, {
339
+ default: r(() => [
340
+ t(u, {
341
+ modelValue: s(a).orgId,
342
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => s(a).orgId = o),
343
+ placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
344
+ data: s(v).orgIdBizDict.values,
345
+ clearable: "",
346
+ filterable: "",
347
+ onChange: te,
348
+ class: "w-full"
349
+ }, null, 8, ["modelValue", "placeholder", "data"])
350
+ ]),
351
+ _: 1
352
+ }, 8, ["label"])
353
+ ]),
354
+ _: 1
355
+ }),
356
+ t(n, { span: 12 }, {
357
+ default: r(() => [
358
+ t(d, {
359
+ label: e.$t("itsmFlowSpareParts.type"),
360
+ prop: "type"
361
+ }, {
362
+ default: r(() => [
363
+ t(u, {
364
+ modelValue: s(a).type,
365
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => s(a).type = o),
366
+ placeholder: e.$t("itsmFlowSpareParts.typeRequired"),
367
+ data: s(v).purchaseTypeEnum.values,
368
+ clearable: "",
369
+ class: "w-full"
370
+ }, null, 8, ["modelValue", "placeholder", "data"])
371
+ ]),
372
+ _: 1
373
+ }, 8, ["label"])
374
+ ]),
375
+ _: 1
376
+ }),
377
+ t(n, { span: 12 }, {
378
+ default: r(() => [
379
+ t(d, {
380
+ label: e.$t("itsmFlowSpareParts.applyPlace"),
381
+ prop: "applyPlace"
382
+ }, {
383
+ default: r(() => [
384
+ t(i, {
385
+ modelValue: s(a).applyPlace,
386
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => s(a).applyPlace = o),
387
+ placeholder: e.$t("itsmFlowSpareParts.applyPlace"),
388
+ maxlength: "30",
389
+ "show-word-limit": "",
390
+ clearable: "",
391
+ class: "w-full"
392
+ }, null, 8, ["modelValue", "placeholder"])
393
+ ]),
394
+ _: 1
395
+ }, 8, ["label"])
396
+ ]),
397
+ _: 1
398
+ }),
399
+ t(n, { span: 12 }, {
400
+ default: r(() => [
401
+ t(d, {
402
+ label: e.$t("itsmFlowSpareParts.annual"),
403
+ prop: "annual"
404
+ }, {
405
+ default: r(() => [
406
+ t(S, {
407
+ modelValue: s(a).annual,
408
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => s(a).annual = o),
409
+ type: "year",
410
+ placeholder: e.$t("itsmFlowSpareParts.annualRequired"),
411
+ format: "YYYY",
412
+ "value-format": "YYYY",
413
+ clearable: !1,
414
+ onChange: re,
415
+ class: "w-full"
416
+ }, null, 8, ["modelValue", "placeholder"])
417
+ ]),
418
+ _: 1
419
+ }, 8, ["label"])
420
+ ]),
421
+ _: 1
422
+ }),
423
+ s(a).type !== "BudgetOut" ? (f(), V(n, {
424
+ key: 0,
425
+ span: 24
426
+ }, {
427
+ default: r(() => [
428
+ t(d, {
429
+ label: e.$t("itsmFlowSpareParts.itemId"),
430
+ prop: "itemId"
431
+ }, {
432
+ default: r(() => [
433
+ t(be, {
434
+ modelValue: s(a).itemId,
435
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => s(a).itemId = o),
436
+ placeholder: e.$t("itsmFlowSpareParts.itemIdRequired"),
437
+ data: j.value,
438
+ clearable: "",
439
+ filterable: "",
440
+ disabled: !s(a).orgId,
441
+ onChange: oe
442
+ }, {
443
+ default: r(() => [
444
+ (f(!0), q(U, null, O(j.value, (o) => (f(), V(ye, {
445
+ key: o.key,
446
+ value: o.key,
447
+ label: o.value
448
+ }, null, 8, ["value", "label"]))), 128))
449
+ ]),
450
+ _: 1
451
+ }, 8, ["modelValue", "placeholder", "data", "disabled"])
452
+ ]),
453
+ _: 1
454
+ }, 8, ["label"])
455
+ ]),
456
+ _: 1
457
+ })) : k("", !0),
458
+ s(a).type !== "BudgetOut" ? (f(), V(n, {
459
+ key: 1,
460
+ span: 12
461
+ }, {
462
+ default: r(() => [
463
+ t(d, {
464
+ label: e.$t("itsmFlowSpareParts.budgetType"),
465
+ prop: "budgetType"
466
+ }, {
467
+ default: r(() => [
468
+ t(he, {
469
+ modelValue: s(a).budgetType,
470
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => s(a).budgetType = o),
471
+ placeholder: e.$t("itsmFlowSpareParts.budgetTypeRequired"),
472
+ data: w.value,
473
+ disabled: !w.value.length,
474
+ clearable: "",
475
+ class: "w-full",
476
+ filterable: "",
477
+ "check-strictly": !1
478
+ }, null, 8, ["modelValue", "placeholder", "data", "disabled"])
479
+ ]),
480
+ _: 1
481
+ }, 8, ["label"])
482
+ ]),
483
+ _: 1
484
+ })) : k("", !0),
485
+ s(a).type !== "BudgetOut" ? (f(), V(n, {
486
+ key: 2,
487
+ span: 12
488
+ }, {
489
+ default: r(() => [
490
+ t(d, {
491
+ label: e.$t("itsmFlowSpareParts.contractMoney"),
492
+ prop: "contractMoney"
493
+ }, {
494
+ default: r(() => [
495
+ t(i, {
496
+ modelValue: s(a).contractMoney,
497
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => s(a).contractMoney = o),
498
+ placeholder: e.$t("itsmFlowSpareParts.contractMoneyRequired"),
499
+ "show-word-limit": "",
500
+ clearable: ""
501
+ }, null, 8, ["modelValue", "placeholder"])
502
+ ]),
503
+ _: 1
504
+ }, 8, ["label"])
505
+ ]),
506
+ _: 1
507
+ })) : k("", !0),
508
+ t(n, { span: 12 }, {
509
+ default: r(() => [
510
+ t(d, {
511
+ label: e.$t("itsmFlowSpareParts.createBy"),
512
+ prop: "createBy"
513
+ }, {
514
+ default: r(() => [
515
+ t(i, {
516
+ value: s(le).user.realName,
517
+ placeholder: e.$t("itsmFlowSpareParts.createBy"),
518
+ maxlength: "8",
519
+ "show-word-limit": "",
520
+ clearable: "",
521
+ disabled: !0
522
+ }, null, 8, ["value", "placeholder"])
523
+ ]),
524
+ _: 1
525
+ }, 8, ["label"])
526
+ ]),
527
+ _: 1
528
+ }),
529
+ t(n, { span: 12 }, {
530
+ default: r(() => [
531
+ t(d, {
532
+ label: e.$t("itsmFlowSpareParts.applyDate"),
533
+ prop: "applyDate"
534
+ }, {
535
+ default: r(() => [
536
+ t(S, {
537
+ modelValue: s(a).applyDate,
538
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => s(a).applyDate = o),
539
+ type: "date",
540
+ placeholder: e.$t("itsmFlowSpareParts.applyDateRequired"),
541
+ format: "YYYY-MM-DD",
542
+ "value-format": "YYYY-MM-DD",
543
+ class: "w-full"
544
+ }, null, 8, ["modelValue", "placeholder"])
545
+ ]),
546
+ _: 1
547
+ }, 8, ["label"])
548
+ ]),
549
+ _: 1
550
+ })
551
+ ]),
552
+ _: 1
553
+ }),
554
+ t(G, null, {
555
+ default: r(() => [
556
+ t(n, { span: 24 }, {
557
+ default: r(() => l[11] || (l[11] = [
558
+ g("div", { class: "title" }, "运维需求描述", -1)
559
+ ])),
560
+ _: 1,
561
+ __: [11]
562
+ }),
563
+ t(we, {
564
+ data: y.value,
565
+ border: "",
566
+ style: { width: "100%" }
567
+ }, {
568
+ default: r(() => [
569
+ t(b, {
570
+ type: "index",
571
+ label: e.$t("itsmFlowSpareParts.index"),
572
+ width: "60",
573
+ align: "center"
574
+ }, null, 8, ["label"]),
575
+ t(b, {
576
+ prop: "type",
577
+ label: e.$t("itsmFlowSpareParts.type"),
578
+ "header-align": "center",
579
+ width: "180"
580
+ }, {
581
+ default: r(({ row: o }) => [
582
+ t(i, {
583
+ modelValue: o.type,
584
+ "onUpdate:modelValue": (m) => o.type = m,
585
+ placeholder: e.$t("itsmFlowSpareParts.typeRequired"),
586
+ class: "w-full"
587
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
588
+ ]),
589
+ _: 1
590
+ }, 8, ["label"]),
591
+ t(b, {
592
+ prop: "name",
593
+ label: e.$t("itsmFlowSpareParts.name"),
594
+ "header-align": "center",
595
+ width: "300"
596
+ }, {
597
+ default: r(({ row: o }) => [
598
+ t(i, {
599
+ modelValue: o.name,
600
+ "onUpdate:modelValue": (m) => o.name = m,
601
+ placeholder: e.$t("itsmFlowSpareParts.nameRequired")
602
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
603
+ ]),
604
+ _: 1
605
+ }, 8, ["label"]),
606
+ t(b, {
607
+ prop: "number",
608
+ label: e.$t("itsmFlowSpareParts.number"),
609
+ "header-align": "center",
610
+ width: "100"
611
+ }, {
612
+ default: r(({ row: o }) => [
613
+ t(ve, {
614
+ modelValue: o.number,
615
+ "onUpdate:modelValue": (m) => o.number = m,
616
+ placeholder: e.$t("itsmFlowSpareParts.numberRequireds"),
617
+ precision: 0,
618
+ min: 0,
619
+ "controls-position": "right",
620
+ class: "w-full"
621
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
622
+ ]),
623
+ _: 1
624
+ }, 8, ["label"]),
625
+ t(b, {
626
+ prop: "unit",
627
+ "header-align": "center",
628
+ width: "200"
629
+ }, {
630
+ header: r(() => [
631
+ l[12] || (l[12] = g("span", { class: "required_red" }, "*", -1)),
632
+ g("span", null, h(e.$t("itsmFlowSpareParts.unit")), 1)
633
+ ]),
634
+ default: r(({ row: o }) => [
635
+ t(i, {
636
+ modelValue: o.unit,
637
+ "onUpdate:modelValue": (m) => o.unit = m,
638
+ placeholder: e.$t("itsmFlowSpareParts.unitRequired")
639
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
640
+ ]),
641
+ _: 1
642
+ }),
643
+ t(b, {
644
+ prop: "parameter",
645
+ "header-align": "center",
646
+ width: "150"
647
+ }, {
648
+ header: r(() => [
649
+ l[13] || (l[13] = g("span", { class: "required_red" }, "*", -1)),
650
+ g("span", null, h(e.$t("itsmFlowSpareParts.parameter")), 1)
651
+ ]),
652
+ default: r(({ row: o }) => [
653
+ t(i, {
654
+ modelValue: o.parameter,
655
+ "onUpdate:modelValue": (m) => o.parameter = m,
656
+ placeholder: e.$t("itsmFlowSpareParts.parameterRequired")
657
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
658
+ ]),
659
+ _: 1
660
+ }),
661
+ t(b, {
662
+ prop: "valuation",
663
+ label: e.$t("itsmFlowSpareParts.valuation"),
664
+ "header-align": "center",
665
+ width: "120"
666
+ }, {
667
+ default: r(({ row: o }) => [
668
+ t(i, {
669
+ modelValue: o.valuation,
670
+ "onUpdate:modelValue": (m) => o.valuation = m,
671
+ placeholder: e.$t("itsmFlowSpareParts.valuationRequired")
672
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
673
+ ]),
674
+ _: 1
675
+ }, 8, ["label"]),
676
+ t(b, {
677
+ prop: "range",
678
+ label: e.$t("itsmFlowSpareParts.range"),
679
+ "header-align": "center",
680
+ width: "260"
681
+ }, {
682
+ default: r(({ row: o }) => [
683
+ t(i, {
684
+ modelValue: o.range,
685
+ "onUpdate:modelValue": (m) => o.range = m,
686
+ placeholder: e.$t("itsmFlowSpareParts.rangeRequired")
687
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
688
+ ]),
689
+ _: 1
690
+ }, 8, ["label"]),
691
+ t(b, {
692
+ label: e.$t("common.operate"),
693
+ width: "60",
694
+ align: "center"
695
+ }, {
696
+ default: r((o) => [
697
+ o.$index !== 0 ? (f(), V(J, {
698
+ key: 0,
699
+ onClick: (m) => ue(o),
700
+ size: "18",
701
+ style: { cursor: "pointer", color: "inherit" },
702
+ class: "hover-blue"
703
+ }, {
704
+ default: r(() => [
705
+ t(s(qe))
706
+ ]),
707
+ _: 2
708
+ }, 1032, ["onClick"])) : k("", !0)
709
+ ]),
710
+ _: 1
711
+ }, 8, ["label"])
712
+ ]),
713
+ _: 1
714
+ }, 8, ["data"]),
715
+ t($, {
716
+ icon: s(ke),
717
+ class: "addButton",
718
+ onClick: se
719
+ }, {
720
+ default: r(() => [
721
+ _(h(s(c)("common.add")), 1)
722
+ ]),
723
+ _: 1
724
+ }, 8, ["icon"]),
725
+ g("div", Oe, [
726
+ l[14] || (l[14] = _(" 预估总价(万元):")),
727
+ g("span", Ye, h(T.value), 1)
728
+ ]),
729
+ t(n, {
730
+ span: 24,
731
+ class: "bordered-row"
732
+ }, {
733
+ default: r(() => [
734
+ (f(!0), q(U, null, O(s(v).fileTypeDict.values.slice(0, 2), (o, m) => (f(), V(d, {
735
+ key: o.dictCode,
736
+ label: o.dictName
737
+ }, {
738
+ default: r(() => [
739
+ t($, {
740
+ type: "primary",
741
+ icon: s(De),
742
+ onClick: () => pe(o.dictCode)
743
+ }, {
744
+ default: r(() => [
745
+ _(h(e.$t("common.uploadFiles")), 1)
746
+ ]),
747
+ _: 2
748
+ }, 1032, ["icon", "onClick"]),
749
+ (f(!0), q(U, null, O(z(o.dictCode), (_e, Q) => (f(), q("div", {
750
+ key: Q,
751
+ class: "files-list"
752
+ }, [
753
+ g("span", null, h(_e.fileName), 1),
754
+ R.value ? (f(), V(J, {
755
+ key: 0,
756
+ size: "16",
757
+ class: "icon-right",
758
+ onClick: () => me(o.dictCode, Q)
759
+ }, {
760
+ default: r(() => [
761
+ t(s(Ue))
762
+ ]),
763
+ _: 2
764
+ }, 1032, ["onClick"])) : k("", !0)
765
+ ]))), 128))
766
+ ]),
767
+ _: 2
768
+ }, 1032, ["label"]))), 128))
769
+ ]),
770
+ _: 1
771
+ })
772
+ ]),
773
+ _: 1
774
+ })
775
+ ]),
776
+ _: 1
777
+ }, 8, ["model", "rules"])
778
+ ]),
779
+ _: 1
780
+ }, 8, ["modelValue"]),
781
+ t(Ve, {
782
+ ref_key: "uploadRef",
783
+ ref: L,
784
+ modelValue: C.value,
785
+ "onUpdate:modelValue": l[9] || (l[9] = (o) => C.value = o),
786
+ onUploadFileList: ie
787
+ }, null, 8, ["modelValue"])
788
+ ], 64);
789
+ };
790
+ }
791
+ }), Xe = /* @__PURE__ */ Te(Ne, [["__scopeId", "data-v-e4f273c4"]]);
792
+ export {
793
+ Xe as default
794
+ };