xyvcard-itsm-flow 0.0.22 → 0.0.24
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.
- package/dist/{edit-CUiT79xP.mjs → edit-C4uQUyxR.mjs} +136 -134
- package/dist/{edit-z2fcZzRN.mjs → edit-DSzeVnep.mjs} +13 -13
- package/dist/{edit-C1Zif4Ov.mjs → edit-fNZ8seSE.mjs} +91 -91
- package/dist/{index-YVpXj5al.mjs → index-BePwvZ9m.mjs} +1 -1
- package/dist/{index-Dd1bJ-eY.mjs → index-C9LdNu0a.mjs} +1 -1
- package/dist/{index-oGFiETVc.mjs → index-CIG303fh.mjs} +1 -1
- package/dist/{index-BMCOCsW6.mjs → index-COvZrTZl.mjs} +1 -1
- package/dist/{index-BNfIR-q1.mjs → index-CPwNJkJK.mjs} +17 -17
- package/dist/{index-DgQ1cL3p.mjs → index-CWrb0ryZ.mjs} +1 -1
- package/dist/{index-HVCVVhoT.mjs → index-CYJvDaI_.mjs} +465 -479
- package/dist/{index-gea6CFp0.mjs → index-D47Eql1L.mjs} +1 -1
- package/dist/{index-Coz_j3ZO.mjs → index-D5jF4kAT.mjs} +1 -1
- package/dist/{index-V8eBbfrN.mjs → index-DnIYE76A.mjs} +3 -3
- package/dist/{index-DKewqFNP.mjs → index-Dx0mdENP.mjs} +1 -1
- package/dist/{index-CeA9V38o.mjs → index-KUs-CZ9C.mjs} +1 -1
- package/dist/{index-ChmGQcWY.mjs → index-jzk2C9cj.mjs} +1 -1
- package/dist/{index-BW4DcS26.mjs → index-k6cvISUf.mjs} +1 -1
- package/dist/{index-CbG_QqOf.mjs → index-o0oTSdUL.mjs} +1 -1
- package/dist/{index-C3QjePKd.mjs → index-p1DDr7xl.mjs} +5 -5
- package/dist/{index-5ECLdS5y.mjs → index-tcsDF6U0.mjs} +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{info-C2QOALBq.mjs → info-6YpNb7VF.mjs} +1 -1
- package/dist/{info-Y2dPD9_Q.mjs → info-B6nfKr37.mjs} +1 -1
- package/dist/{info-bvVxVHFs.mjs → info-Cd4n1Hxk.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-DROdDnz4.mjs → info.vue_vue_type_script_setup_true_lang-BM-bddTj.mjs} +14 -14
- package/dist/{info.vue_vue_type_script_setup_true_lang-Dngt4TDa.mjs → info.vue_vue_type_script_setup_true_lang-BWMDxwv-.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CAAnevRr.mjs → info.vue_vue_type_script_setup_true_lang-CZa5y_q9.mjs} +27 -27
- package/dist/style.css +1 -1
- package/dts/lang/itsm-flow/zh-cn.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { d as
|
|
1
|
+
import { defineComponent as Ie, mergeModels as X, ref as w, useModel as $e, reactive as qe, computed as Z, watch as x, resolveComponent as p, createElementBlock as q, openBlock as f, Fragment as C, createVNode as t, withCtx as r, createElementVNode as y, unref as s, createBlock as V, createCommentVNode as k, renderList as O, toDisplayString as h, createTextVNode as S } from "vue";
|
|
2
|
+
import { ElMessage as _ } from "element-plus";
|
|
3
|
+
import { d as ke, p as Be, u as Ce, c as Ue } from "./index-CvX2It1o.mjs";
|
|
4
4
|
import "jmash-rbac";
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { i as
|
|
7
|
-
import { D as
|
|
8
|
-
import { itemBudgetApi as
|
|
9
|
-
import { useUserStoreHook as
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
5
|
+
import { useI18n as De } from "vue-i18n";
|
|
6
|
+
import { i as A, a as Re } from "./index-COvZrTZl.mjs";
|
|
7
|
+
import { D as P, O as Me, C as Te, i as Oe } from "./index-5rQmXXAD.mjs";
|
|
8
|
+
import { itemBudgetApi as ee } from "xyvcard-itsm";
|
|
9
|
+
import { useUserStoreHook as Ae } from "jmash-core";
|
|
10
|
+
import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
11
|
+
const Ne = { class: "total-price" }, Le = { id: "totalPrice" }, Ee = { class: "title" }, je = /* @__PURE__ */ Ie({
|
|
12
12
|
__name: "edit",
|
|
13
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ X({
|
|
14
14
|
entityKey: {
|
|
15
15
|
type: Object,
|
|
16
16
|
default: () => {
|
|
@@ -20,28 +20,30 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
20
20
|
modelValue: { type: Boolean },
|
|
21
21
|
modelModifiers: {}
|
|
22
22
|
}),
|
|
23
|
-
emits: /* @__PURE__ */
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
23
|
+
emits: /* @__PURE__ */ X(["refresh"], ["update:modelValue"]),
|
|
24
|
+
setup(Y, { emit: le }) {
|
|
25
|
+
const ae = Ae();
|
|
26
|
+
P.budgetTypeDict.useValues(), P.fileTypeDict.useDictValues();
|
|
27
|
+
const N = new Me({ orgType: Te.HALL });
|
|
28
|
+
N.useValues();
|
|
29
|
+
const { t: c } = De(), U = w(), I = $e(Y, "modelValue"), B = Y, L = w(""), E = le, te = Object.keys(B.entityKey), D = w(te.length >= 1);
|
|
30
|
+
let a = qe({
|
|
29
31
|
requestId: Math.random() * 10 + "",
|
|
30
32
|
updateMask: "",
|
|
31
33
|
files: [],
|
|
32
34
|
applyDate: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
33
35
|
details: []
|
|
34
36
|
});
|
|
35
|
-
const
|
|
37
|
+
const R = w(!1), j = w(), z = Z(() => a.orgId ? P.itemBizLayDict.values.filter(
|
|
36
38
|
(l) => l.orgId === a.orgId
|
|
37
|
-
) : []),
|
|
38
|
-
function te(e) {
|
|
39
|
-
a.itemId = void 0, a.budgetType = "", a.contractMoney = "0", w.value = [];
|
|
40
|
-
}
|
|
39
|
+
) : []), v = w([]);
|
|
41
40
|
function oe(e) {
|
|
42
|
-
|
|
41
|
+
a.itemId = void 0, a.budgetType = "", a.contractMoney = "0", v.value = [];
|
|
43
42
|
}
|
|
44
43
|
function re(e) {
|
|
44
|
+
M(e, a.annual);
|
|
45
|
+
}
|
|
46
|
+
function ne(e) {
|
|
45
47
|
M(a.itemId, e);
|
|
46
48
|
}
|
|
47
49
|
const K = (e, l) => (console.log(e), e.map((n) => {
|
|
@@ -50,48 +52,48 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
50
52
|
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
53
|
}).filter((n) => n !== null)), M = async (e, l) => {
|
|
52
54
|
if (!e || !l) {
|
|
53
|
-
a.budgetType = "", a.contractMoney = "0",
|
|
55
|
+
a.budgetType = "", a.contractMoney = "0", v.value = [];
|
|
54
56
|
return;
|
|
55
57
|
}
|
|
56
58
|
try {
|
|
57
59
|
const n = {
|
|
58
60
|
itemId: e,
|
|
59
61
|
annual: l
|
|
60
|
-
}, u = await
|
|
62
|
+
}, u = await ee.findList(n);
|
|
61
63
|
console.log(u, "=>response ");
|
|
62
64
|
const d = u.data.results || [];
|
|
63
65
|
if (console.log(d), d.length > 0) {
|
|
64
|
-
const i = d.map((
|
|
65
|
-
console.log("接口返回的预算编码:", i),
|
|
66
|
-
|
|
66
|
+
const i = d.map((F) => F.budgetType);
|
|
67
|
+
console.log("接口返回的预算编码:", i), v.value = K(
|
|
68
|
+
P.budgetTypeDict.values,
|
|
67
69
|
i
|
|
68
|
-
), console.log("过滤后的预算类型:",
|
|
70
|
+
), console.log("过滤后的预算类型:", v.value), a.budgetType = d[0].budgetType || "", a.contractMoney = String(d[0].approvedAmount) || "0";
|
|
69
71
|
} else
|
|
70
|
-
a.budgetType = "", a.contractMoney = "0",
|
|
72
|
+
a.budgetType = "", a.contractMoney = "0", v.value = [], _.warning(c("itsmFlowSpareParts.noBudgetType"));
|
|
71
73
|
} catch (n) {
|
|
72
|
-
a.budgetType = "", a.contractMoney = "0",
|
|
74
|
+
a.budgetType = "", a.contractMoney = "0", v.value = [], _.error(c("itsmFlowSpareParts.getBudgetFail")), console.error("获取预算类型失败:", n);
|
|
73
75
|
}
|
|
74
76
|
};
|
|
75
|
-
|
|
77
|
+
x(
|
|
76
78
|
() => a.budgetType,
|
|
77
79
|
(e) => {
|
|
78
|
-
e &&
|
|
80
|
+
e && D.value ? se(e) : e || (a.contractMoney = "0");
|
|
79
81
|
}
|
|
80
82
|
);
|
|
81
|
-
const
|
|
83
|
+
const se = async (e) => {
|
|
82
84
|
if (!(!a.itemId || !a.annual))
|
|
83
85
|
try {
|
|
84
86
|
const l = {
|
|
85
87
|
itemId: a.itemId,
|
|
86
88
|
annual: a.annual
|
|
87
|
-
}, d = ((await
|
|
89
|
+
}, d = ((await ee.findList(l)).data.results || []).find(
|
|
88
90
|
(i) => i.budgetType === e
|
|
89
91
|
);
|
|
90
92
|
d ? a.contractMoney = String(d.approvedAmount) || "0" : a.contractMoney = "0";
|
|
91
93
|
} catch (l) {
|
|
92
94
|
console.error("获取预算金额失败:", l), a.contractMoney = "0";
|
|
93
95
|
}
|
|
94
|
-
},
|
|
96
|
+
}, g = w([
|
|
95
97
|
{
|
|
96
98
|
type: "",
|
|
97
99
|
name: "",
|
|
@@ -103,8 +105,8 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
103
105
|
orderBy: ""
|
|
104
106
|
}
|
|
105
107
|
]);
|
|
106
|
-
function
|
|
107
|
-
|
|
108
|
+
function ue() {
|
|
109
|
+
g.value.push({
|
|
108
110
|
type: "",
|
|
109
111
|
name: "",
|
|
110
112
|
number: 0,
|
|
@@ -115,13 +117,13 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
115
117
|
orderBy: ""
|
|
116
118
|
});
|
|
117
119
|
}
|
|
118
|
-
function
|
|
119
|
-
const l =
|
|
120
|
-
l !== 0 &&
|
|
120
|
+
function de(e) {
|
|
121
|
+
const l = g.value.indexOf(e.row);
|
|
122
|
+
l !== 0 && g.value.splice(l, 1);
|
|
121
123
|
}
|
|
122
|
-
const T =
|
|
123
|
-
|
|
124
|
-
() =>
|
|
124
|
+
const T = w("0.00");
|
|
125
|
+
x(
|
|
126
|
+
() => g.value,
|
|
125
127
|
(e) => {
|
|
126
128
|
if (!e || e.length === 0) {
|
|
127
129
|
T.value = "0.00";
|
|
@@ -135,7 +137,7 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
135
137
|
},
|
|
136
138
|
{ deep: !0, immediate: !0 }
|
|
137
139
|
);
|
|
138
|
-
const
|
|
140
|
+
const ie = Z(() => {
|
|
139
141
|
const e = {
|
|
140
142
|
orgId: [
|
|
141
143
|
{
|
|
@@ -193,35 +195,35 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
193
195
|
}
|
|
194
196
|
]), e;
|
|
195
197
|
});
|
|
196
|
-
function
|
|
198
|
+
function pe(e) {
|
|
197
199
|
const l = {
|
|
198
200
|
fileName: e.name,
|
|
199
201
|
fileId: e.response.fileId,
|
|
200
|
-
fileSort:
|
|
202
|
+
fileSort: L.value
|
|
201
203
|
};
|
|
202
204
|
a.files || (a.files = []), a.files.push(l);
|
|
203
205
|
}
|
|
204
|
-
function
|
|
205
|
-
e && (
|
|
206
|
+
function me(e) {
|
|
207
|
+
e && (L.value = e), R.value = !0, j.value.clearFileList();
|
|
206
208
|
}
|
|
207
|
-
const
|
|
209
|
+
const H = (e) => {
|
|
208
210
|
var l;
|
|
209
211
|
return ((l = a.files) == null ? void 0 : l.filter((n) => n.fileSort === e)) || [];
|
|
210
|
-
},
|
|
212
|
+
}, ce = (e, l) => {
|
|
211
213
|
var d, i;
|
|
212
|
-
const n =
|
|
213
|
-
(
|
|
214
|
+
const n = H(e), u = (d = a.files) == null ? void 0 : d.findIndex(
|
|
215
|
+
(F) => F.fileSort === e && F.fileId === n[l].fileId
|
|
214
216
|
);
|
|
215
217
|
u !== void 0 && u >= 0 && ((i = a.files) == null || i.splice(u, 1));
|
|
216
218
|
};
|
|
217
|
-
|
|
219
|
+
D.value && A.findById(B.entityKey).then(({ data: e }) => {
|
|
218
220
|
Object.assign(a, e);
|
|
219
221
|
const l = {
|
|
220
|
-
flowSpareId:
|
|
222
|
+
flowSpareId: B.entityKey.flowSpareId
|
|
221
223
|
};
|
|
222
224
|
Re.findList(l).then((n) => {
|
|
223
225
|
var u;
|
|
224
|
-
console.log("明细接口返回:", n), (u = n == null ? void 0 : n.data) != null && u.results && Array.isArray(n.data.results) ?
|
|
226
|
+
console.log("明细接口返回:", n), (u = n == null ? void 0 : n.data) != null && u.results && Array.isArray(n.data.results) ? g.value = n.data.results : (g.value = [
|
|
225
227
|
{
|
|
226
228
|
type: "",
|
|
227
229
|
name: "",
|
|
@@ -232,15 +234,15 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
232
234
|
range: "",
|
|
233
235
|
orderBy: ""
|
|
234
236
|
}
|
|
235
|
-
],
|
|
237
|
+
], _.warning("未获取到明细数据,已初始化空白行"));
|
|
236
238
|
}).catch((n) => {
|
|
237
|
-
console.error("获取明细失败:", n),
|
|
239
|
+
console.error("获取明细失败:", n), _.error("加载明细数据失败"), g.value = [
|
|
238
240
|
/* 初始化空行 */
|
|
239
241
|
];
|
|
240
|
-
}),
|
|
242
|
+
}), fe(), M(a.itemId, a.annual);
|
|
241
243
|
});
|
|
242
|
-
function
|
|
243
|
-
|
|
244
|
+
function fe() {
|
|
245
|
+
Oe.findFilesList({ actionId: B.entityKey.flowSpareId }).then(({ data: e }) => {
|
|
244
246
|
e.results && Array.isArray(e.results) && (a.files = e.results.map((l) => {
|
|
245
247
|
let n = "";
|
|
246
248
|
return l.fileName && (n = l.fileSort || l.type || ""), {
|
|
@@ -251,61 +253,61 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
251
253
|
}));
|
|
252
254
|
});
|
|
253
255
|
}
|
|
254
|
-
const
|
|
256
|
+
const ge = async () => {
|
|
255
257
|
var e;
|
|
256
|
-
await ((e =
|
|
257
|
-
l && (a.details =
|
|
258
|
-
n.status === 200 && (
|
|
258
|
+
await ((e = U.value) == null ? void 0 : e.validate((l) => {
|
|
259
|
+
l && (a.details = g.value, A.create(a).then((n) => {
|
|
260
|
+
n.status === 200 && (_({
|
|
259
261
|
message: c("common.submitSuccess"),
|
|
260
262
|
type: "success"
|
|
261
263
|
}), I.value = !1, E("refresh", !0));
|
|
262
264
|
}));
|
|
263
265
|
}));
|
|
264
|
-
},
|
|
266
|
+
}, ye = async () => {
|
|
265
267
|
var e;
|
|
266
|
-
await ((e =
|
|
267
|
-
l &&
|
|
268
|
-
n.status === 200 && (
|
|
268
|
+
await ((e = U.value) == null ? void 0 : e.validate(async (l) => {
|
|
269
|
+
l && (a.details = g.value, A.submit(a).then((n) => {
|
|
270
|
+
n.status === 200 && (_({
|
|
269
271
|
message: c("common.submitSuccess"),
|
|
270
272
|
type: "success"
|
|
271
273
|
}), I.value = !1, E("refresh", !0));
|
|
272
|
-
});
|
|
274
|
+
}));
|
|
273
275
|
}));
|
|
274
276
|
};
|
|
275
|
-
function
|
|
277
|
+
function G() {
|
|
276
278
|
I.value = !1;
|
|
277
279
|
}
|
|
278
280
|
return (e, l) => {
|
|
279
|
-
const n = p("el-col"), u = p("jmash-select"), d = p("el-form-item"), i = p("el-input"),
|
|
280
|
-
return f(), q(
|
|
281
|
+
const n = p("el-col"), u = p("jmash-select"), d = p("el-form-item"), i = p("el-input"), F = p("el-date-picker"), be = p("el-option"), he = p("el-select"), ve = p("el-tree-select"), J = p("el-row"), b = p("el-table-column"), we = p("el-input-number"), Q = p("el-icon"), Fe = p("el-table"), $ = p("el-button"), Ve = p("el-form"), Se = p("el-dialog"), _e = p("jmash-multi-upload");
|
|
282
|
+
return f(), q(C, null, [
|
|
281
283
|
t(Se, {
|
|
282
284
|
modelValue: I.value,
|
|
283
285
|
"onUpdate:modelValue": l[8] || (l[8] = (o) => I.value = o),
|
|
284
|
-
onClose:
|
|
286
|
+
onClose: G
|
|
285
287
|
}, {
|
|
286
288
|
footer: r(() => [
|
|
287
|
-
|
|
288
|
-
t($, { onClick:
|
|
289
|
+
y("div", Ee, [
|
|
290
|
+
t($, { onClick: G }, {
|
|
289
291
|
default: r(() => [
|
|
290
|
-
|
|
292
|
+
S(h(e.$t("common.cancel")), 1)
|
|
291
293
|
]),
|
|
292
294
|
_: 1
|
|
293
295
|
}),
|
|
294
296
|
t($, {
|
|
295
297
|
type: "primary",
|
|
296
|
-
onClick:
|
|
298
|
+
onClick: ge
|
|
297
299
|
}, {
|
|
298
300
|
default: r(() => [
|
|
299
|
-
|
|
301
|
+
S(h(e.$t("itsmFlowEntrustUser.save")), 1)
|
|
300
302
|
]),
|
|
301
303
|
_: 1
|
|
302
304
|
}),
|
|
303
305
|
t($, {
|
|
304
306
|
type: "primary",
|
|
305
|
-
onClick:
|
|
307
|
+
onClick: ye
|
|
306
308
|
}, {
|
|
307
309
|
default: r(() => [
|
|
308
|
-
|
|
310
|
+
S(h(e.$t("itsmFlowEntrustUser.submit")), 1)
|
|
309
311
|
]),
|
|
310
312
|
_: 1
|
|
311
313
|
})
|
|
@@ -314,21 +316,21 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
314
316
|
default: r(() => [
|
|
315
317
|
t(n, { span: 24 }, {
|
|
316
318
|
default: r(() => l[10] || (l[10] = [
|
|
317
|
-
|
|
319
|
+
y("div", { class: "title" }, "备品备件按需采购申请单", -1)
|
|
318
320
|
])),
|
|
319
321
|
_: 1,
|
|
320
322
|
__: [10]
|
|
321
323
|
}),
|
|
322
|
-
t(
|
|
324
|
+
t(Ve, {
|
|
323
325
|
ref_key: "itsmFlowSparePartsFormRef",
|
|
324
|
-
ref:
|
|
326
|
+
ref: U,
|
|
325
327
|
model: s(a),
|
|
326
328
|
"label-width": "150px",
|
|
327
|
-
rules:
|
|
329
|
+
rules: ie.value,
|
|
328
330
|
class: "custom-table-form custom-form"
|
|
329
331
|
}, {
|
|
330
332
|
default: r(() => [
|
|
331
|
-
t(
|
|
333
|
+
t(J, null, {
|
|
332
334
|
default: r(() => [
|
|
333
335
|
t(n, { span: 12 }, {
|
|
334
336
|
default: r(() => [
|
|
@@ -341,10 +343,10 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
341
343
|
modelValue: s(a).orgId,
|
|
342
344
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => s(a).orgId = o),
|
|
343
345
|
placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
344
|
-
data: s(
|
|
346
|
+
data: s(N).values,
|
|
345
347
|
clearable: "",
|
|
346
348
|
filterable: "",
|
|
347
|
-
onChange:
|
|
349
|
+
onChange: oe,
|
|
348
350
|
class: "w-full"
|
|
349
351
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
350
352
|
]),
|
|
@@ -364,7 +366,7 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
364
366
|
modelValue: s(a).type,
|
|
365
367
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => s(a).type = o),
|
|
366
368
|
placeholder: e.$t("itsmFlowSpareParts.typeRequired"),
|
|
367
|
-
data: s(
|
|
369
|
+
data: s(P).purchaseTypeEnum.values,
|
|
368
370
|
clearable: "",
|
|
369
371
|
class: "w-full"
|
|
370
372
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -403,7 +405,7 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
403
405
|
prop: "annual"
|
|
404
406
|
}, {
|
|
405
407
|
default: r(() => [
|
|
406
|
-
t(
|
|
408
|
+
t(F, {
|
|
407
409
|
modelValue: s(a).annual,
|
|
408
410
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => s(a).annual = o),
|
|
409
411
|
type: "year",
|
|
@@ -411,7 +413,7 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
411
413
|
format: "YYYY",
|
|
412
414
|
"value-format": "YYYY",
|
|
413
415
|
clearable: !1,
|
|
414
|
-
onChange:
|
|
416
|
+
onChange: ne,
|
|
415
417
|
class: "w-full"
|
|
416
418
|
}, null, 8, ["modelValue", "placeholder"])
|
|
417
419
|
]),
|
|
@@ -430,18 +432,18 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
430
432
|
prop: "itemId"
|
|
431
433
|
}, {
|
|
432
434
|
default: r(() => [
|
|
433
|
-
t(
|
|
435
|
+
t(he, {
|
|
434
436
|
modelValue: s(a).itemId,
|
|
435
437
|
"onUpdate:modelValue": l[4] || (l[4] = (o) => s(a).itemId = o),
|
|
436
438
|
placeholder: e.$t("itsmFlowSpareParts.itemIdRequired"),
|
|
437
|
-
data:
|
|
439
|
+
data: z.value,
|
|
438
440
|
clearable: "",
|
|
439
441
|
filterable: "",
|
|
440
442
|
disabled: !s(a).orgId,
|
|
441
|
-
onChange:
|
|
443
|
+
onChange: re
|
|
442
444
|
}, {
|
|
443
445
|
default: r(() => [
|
|
444
|
-
(f(!0), q(
|
|
446
|
+
(f(!0), q(C, null, O(z.value, (o) => (f(), V(be, {
|
|
445
447
|
key: o.key,
|
|
446
448
|
value: o.key,
|
|
447
449
|
label: o.value
|
|
@@ -465,12 +467,12 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
465
467
|
prop: "budgetType"
|
|
466
468
|
}, {
|
|
467
469
|
default: r(() => [
|
|
468
|
-
t(
|
|
470
|
+
t(ve, {
|
|
469
471
|
modelValue: s(a).budgetType,
|
|
470
472
|
"onUpdate:modelValue": l[5] || (l[5] = (o) => s(a).budgetType = o),
|
|
471
473
|
placeholder: e.$t("itsmFlowSpareParts.budgetTypeRequired"),
|
|
472
|
-
data:
|
|
473
|
-
disabled: !
|
|
474
|
+
data: v.value,
|
|
475
|
+
disabled: !v.value.length,
|
|
474
476
|
clearable: "",
|
|
475
477
|
class: "w-full",
|
|
476
478
|
filterable: "",
|
|
@@ -513,7 +515,7 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
513
515
|
}, {
|
|
514
516
|
default: r(() => [
|
|
515
517
|
t(i, {
|
|
516
|
-
value: s(
|
|
518
|
+
value: s(ae).user.realName,
|
|
517
519
|
placeholder: e.$t("itsmFlowSpareParts.createBy"),
|
|
518
520
|
maxlength: "8",
|
|
519
521
|
"show-word-limit": "",
|
|
@@ -533,7 +535,7 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
533
535
|
prop: "applyDate"
|
|
534
536
|
}, {
|
|
535
537
|
default: r(() => [
|
|
536
|
-
t(
|
|
538
|
+
t(F, {
|
|
537
539
|
modelValue: s(a).applyDate,
|
|
538
540
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => s(a).applyDate = o),
|
|
539
541
|
type: "date",
|
|
@@ -551,17 +553,17 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
551
553
|
]),
|
|
552
554
|
_: 1
|
|
553
555
|
}),
|
|
554
|
-
t(
|
|
556
|
+
t(J, null, {
|
|
555
557
|
default: r(() => [
|
|
556
558
|
t(n, { span: 24 }, {
|
|
557
559
|
default: r(() => l[11] || (l[11] = [
|
|
558
|
-
|
|
560
|
+
y("div", { class: "title" }, "运维需求描述", -1)
|
|
559
561
|
])),
|
|
560
562
|
_: 1,
|
|
561
563
|
__: [11]
|
|
562
564
|
}),
|
|
563
|
-
t(
|
|
564
|
-
data:
|
|
565
|
+
t(Fe, {
|
|
566
|
+
data: g.value,
|
|
565
567
|
border: "",
|
|
566
568
|
style: { width: "100%" }
|
|
567
569
|
}, {
|
|
@@ -610,7 +612,7 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
610
612
|
width: "100"
|
|
611
613
|
}, {
|
|
612
614
|
default: r(({ row: o }) => [
|
|
613
|
-
t(
|
|
615
|
+
t(we, {
|
|
614
616
|
modelValue: o.number,
|
|
615
617
|
"onUpdate:modelValue": (m) => o.number = m,
|
|
616
618
|
placeholder: e.$t("itsmFlowSpareParts.numberRequireds"),
|
|
@@ -628,8 +630,8 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
628
630
|
width: "200"
|
|
629
631
|
}, {
|
|
630
632
|
header: r(() => [
|
|
631
|
-
l[12] || (l[12] =
|
|
632
|
-
|
|
633
|
+
l[12] || (l[12] = y("span", { class: "required_red" }, "*", -1)),
|
|
634
|
+
y("span", null, h(e.$t("itsmFlowSpareParts.unit")), 1)
|
|
633
635
|
]),
|
|
634
636
|
default: r(({ row: o }) => [
|
|
635
637
|
t(i, {
|
|
@@ -646,8 +648,8 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
646
648
|
width: "150"
|
|
647
649
|
}, {
|
|
648
650
|
header: r(() => [
|
|
649
|
-
l[13] || (l[13] =
|
|
650
|
-
|
|
651
|
+
l[13] || (l[13] = y("span", { class: "required_red" }, "*", -1)),
|
|
652
|
+
y("span", null, h(e.$t("itsmFlowSpareParts.parameter")), 1)
|
|
651
653
|
]),
|
|
652
654
|
default: r(({ row: o }) => [
|
|
653
655
|
t(i, {
|
|
@@ -694,15 +696,15 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
694
696
|
align: "center"
|
|
695
697
|
}, {
|
|
696
698
|
default: r((o) => [
|
|
697
|
-
o.$index !== 0 ? (f(), V(
|
|
699
|
+
o.$index !== 0 ? (f(), V(Q, {
|
|
698
700
|
key: 0,
|
|
699
|
-
onClick: (m) =>
|
|
701
|
+
onClick: (m) => de(o),
|
|
700
702
|
size: "18",
|
|
701
703
|
style: { cursor: "pointer", color: "inherit" },
|
|
702
704
|
class: "hover-blue"
|
|
703
705
|
}, {
|
|
704
706
|
default: r(() => [
|
|
705
|
-
t(s(
|
|
707
|
+
t(s(ke))
|
|
706
708
|
]),
|
|
707
709
|
_: 2
|
|
708
710
|
}, 1032, ["onClick"])) : k("", !0)
|
|
@@ -713,49 +715,49 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
713
715
|
_: 1
|
|
714
716
|
}, 8, ["data"]),
|
|
715
717
|
t($, {
|
|
716
|
-
icon: s(
|
|
718
|
+
icon: s(Be),
|
|
717
719
|
class: "addButton",
|
|
718
|
-
onClick:
|
|
720
|
+
onClick: ue
|
|
719
721
|
}, {
|
|
720
722
|
default: r(() => [
|
|
721
|
-
|
|
723
|
+
S(h(s(c)("common.add")), 1)
|
|
722
724
|
]),
|
|
723
725
|
_: 1
|
|
724
726
|
}, 8, ["icon"]),
|
|
725
|
-
|
|
726
|
-
l[14] || (l[14] =
|
|
727
|
-
|
|
727
|
+
y("div", Ne, [
|
|
728
|
+
l[14] || (l[14] = S(" 预估总价(万元):")),
|
|
729
|
+
y("span", Le, h(T.value), 1)
|
|
728
730
|
]),
|
|
729
731
|
t(n, {
|
|
730
732
|
span: 24,
|
|
731
733
|
class: "bordered-row"
|
|
732
734
|
}, {
|
|
733
735
|
default: r(() => [
|
|
734
|
-
(f(!0), q(
|
|
736
|
+
(f(!0), q(C, null, O(s(P).fileTypeDict.values.slice(0, 2), (o, m) => (f(), V(d, {
|
|
735
737
|
key: o.dictCode,
|
|
736
738
|
label: o.dictName
|
|
737
739
|
}, {
|
|
738
740
|
default: r(() => [
|
|
739
741
|
t($, {
|
|
740
742
|
type: "primary",
|
|
741
|
-
icon: s(
|
|
742
|
-
onClick: () =>
|
|
743
|
+
icon: s(Ce),
|
|
744
|
+
onClick: () => me(o.dictCode)
|
|
743
745
|
}, {
|
|
744
746
|
default: r(() => [
|
|
745
|
-
|
|
747
|
+
S(h(e.$t("common.uploadFiles")), 1)
|
|
746
748
|
]),
|
|
747
749
|
_: 2
|
|
748
750
|
}, 1032, ["icon", "onClick"]),
|
|
749
|
-
(f(!0), q(
|
|
750
|
-
key:
|
|
751
|
+
(f(!0), q(C, null, O(H(o.dictCode), (Pe, W) => (f(), q("div", {
|
|
752
|
+
key: W,
|
|
751
753
|
class: "files-list"
|
|
752
754
|
}, [
|
|
753
|
-
|
|
754
|
-
|
|
755
|
+
y("span", null, h(Pe.fileName), 1),
|
|
756
|
+
D.value ? (f(), V(Q, {
|
|
755
757
|
key: 0,
|
|
756
758
|
size: "16",
|
|
757
759
|
class: "icon-right",
|
|
758
|
-
onClick: () =>
|
|
760
|
+
onClick: () => ce(o.dictCode, W)
|
|
759
761
|
}, {
|
|
760
762
|
default: r(() => [
|
|
761
763
|
t(s(Ue))
|
|
@@ -778,17 +780,17 @@ const Oe = { class: "total-price" }, Ye = { id: "totalPrice" }, Ae = { class: "t
|
|
|
778
780
|
]),
|
|
779
781
|
_: 1
|
|
780
782
|
}, 8, ["modelValue"]),
|
|
781
|
-
t(
|
|
783
|
+
t(_e, {
|
|
782
784
|
ref_key: "uploadRef",
|
|
783
|
-
ref:
|
|
784
|
-
modelValue:
|
|
785
|
-
"onUpdate:modelValue": l[9] || (l[9] = (o) =>
|
|
786
|
-
onUploadFileList:
|
|
785
|
+
ref: j,
|
|
786
|
+
modelValue: R.value,
|
|
787
|
+
"onUpdate:modelValue": l[9] || (l[9] = (o) => R.value = o),
|
|
788
|
+
onUploadFileList: pe
|
|
787
789
|
}, null, 8, ["modelValue"])
|
|
788
790
|
], 64);
|
|
789
791
|
};
|
|
790
792
|
}
|
|
791
|
-
}),
|
|
793
|
+
}), el = /* @__PURE__ */ Ye(je, [["__scopeId", "data-v-a55b9bb6"]]);
|
|
792
794
|
export {
|
|
793
|
-
|
|
795
|
+
el as default
|
|
794
796
|
};
|