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