xyvcard-itsm-flow 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FileSaver.min-Dlb0564v.mjs → FileSaver.min-FLjvLk81.mjs} +1 -1
- package/dist/{edit-DGLeO86x.mjs → edit-Bj6O1CiV.mjs} +36 -36
- package/dist/{edit-b1Qpq27u.mjs → edit-BoyxGI-j.mjs} +1 -1
- package/dist/{edit-DYzjfcpe.mjs → edit-ChPw3-tf.mjs} +45 -43
- package/dist/{edit-Bb1ZMrgr.mjs → edit-D--QEJjt.mjs} +1 -1
- package/dist/{edit-DEz__zGH.mjs → edit-DE30a8nF.mjs} +1 -1
- package/dist/{edit-X4DuZAeC.mjs → edit-DVqIGzRC.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-COV7eZfh.mjs → edit.vue_vue_type_script_setup_true_lang-D4j6dzcV.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DDFusQ6S.mjs → edit.vue_vue_type_script_setup_true_lang-DHCoPaGf.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DK-kdI-u.mjs → edit.vue_vue_type_script_setup_true_lang-DiY4aiPm.mjs} +1 -1
- package/dist/{index-CUdCuMce.mjs → index-8wrBAgqn.mjs} +5 -5
- package/dist/{index-Dx_iePKi.mjs → index-BCm8GyNp.mjs} +1 -1
- package/dist/{index-CJmsWz8H.mjs → index-BGUJBf1b.mjs} +25 -25
- package/dist/{index-COlNrHOr.mjs → index-BKReblQ-.mjs} +56 -56
- package/dist/{index-D4hmXu0K.mjs → index-BPbEgv_g.mjs} +68 -68
- package/dist/{index-C6QayKyI.mjs → index-BVKYrCIy.mjs} +1 -1
- package/dist/{index-BnbyM6r8.mjs → index-BnpWxtwn.mjs} +3 -3
- package/dist/{index-Cc1yu7_y.mjs → index-C2_qB4RV.mjs} +1 -1
- package/dist/{index-BjIcvBcw.mjs → index-C6lbS4Lo.mjs} +2 -2
- package/dist/{index-DTmCekOe.mjs → index-CBlDGIOm.mjs} +26 -26
- package/dist/{index-Crv7Y3gz.mjs → index-Cbd9gMMJ.mjs} +21 -21
- package/dist/{index-ZQIeIrUc.mjs → index-CcmelnG0.mjs} +27 -27
- package/dist/{index-DB_7mB_B.mjs → index-Cv9EtBjj.mjs} +93 -85
- package/dist/{index-CK8x-scl.mjs → index-DCrOzptR.mjs} +3 -3
- package/dist/{index-B3Od63yb.mjs → index-DLKaq1KT.mjs} +3 -3
- package/dist/{index-DsEA0PWP.mjs → index-DUeJgFzy.mjs} +2 -2
- package/dist/{index-CTX-1ZJN.mjs → index-DWJG5OHB.mjs} +1 -1
- package/dist/{index-Dr2VSx72.mjs → index-DeWL7kiw.mjs} +2 -2
- package/dist/{index-CsRdrLdB.mjs → index-DgMfinzm.mjs} +2 -2
- package/dist/{index-41pGjG4z.mjs → index-DrUmzzLs.mjs} +13 -13
- package/dist/{index-Ddn-uP9d.mjs → index-DvfEpZEP.mjs} +44 -44
- package/dist/{index-M_tEOKq6.mjs → index-DwPAoK5U.mjs} +130 -127
- package/dist/{index-ChiSO5mf.mjs → index-DyZhLpPq.mjs} +18 -18
- package/dist/{index-XQliRAX-.mjs → index-DyhFuDLH.mjs} +9 -9
- package/dist/{index-BL1EL_Kk.mjs → index-DymW6iPU.mjs} +3 -3
- package/dist/{index-BzzIS37Q.mjs → index-SilwoNEK.mjs} +123 -123
- package/dist/{index-UIHGXuWX.mjs → index-jG64vmFA.mjs} +128 -128
- package/dist/{index-uhCfQAOU.mjs → index-r4Tg0GX2.mjs} +3 -3
- package/dist/{index-DReilvk8.mjs → index-xWvPJZ-m.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{info-ChOjJGUZ.mjs → info-9EvTq-5p.mjs} +1 -1
- package/dist/{info-CqJnfPyk.mjs → info-BWhsB1Ap.mjs} +1 -1
- package/dist/{info-Cu1I8L0Q.mjs → info-CGUYIYny.mjs} +1 -1
- package/dist/{info-C7BOFhdZ.mjs → info-CbJJduEU.mjs} +1 -1
- package/dist/info-CtxVi70h.mjs +4 -0
- package/dist/info-ZeMWMgd3.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-_Rd1Paqi.mjs → info.vue_vue_type_script_setup_true_lang-C0J9fiF3.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-C9LpdXNC.mjs → info.vue_vue_type_script_setup_true_lang-CAfl8pgB.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-CwpN4E5Y.mjs → info.vue_vue_type_script_setup_true_lang-CY7c7Xmz.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-BupLtTsI.mjs → info.vue_vue_type_script_setup_true_lang-CdiFub3m.mjs} +8 -8
- package/dist/{info.vue_vue_type_script_setup_true_lang-D36lalXS.mjs → info.vue_vue_type_script_setup_true_lang-DIXXp0TI.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CxZBVr6Z.mjs → info.vue_vue_type_script_setup_true_lang-Dm4Ld-wL.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/lang/itsm-flow/zh-cn.d.ts +2 -2
- package/package.json +1 -1
- package/dist/info-DDaeV1sJ.mjs +0 -4
- package/dist/info-DstAR0-a.mjs +0 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as he, mergeModels as ve, useModel as we, ref as
|
|
1
|
+
import { defineComponent as he, mergeModels as ve, useModel as we, ref as V, reactive as Fe, computed as H, watch as W, resolveComponent as p, createElementBlock as P, openBlock as g, Fragment as I, createVNode as t, withCtx as n, createElementVNode as y, unref as s, createBlock as _, createCommentVNode as $, renderList as R, toDisplayString as S, createTextVNode as T } from "vue";
|
|
2
2
|
import { ElMessage as q } from "element-plus";
|
|
3
|
-
import { d as
|
|
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-
|
|
7
|
-
import { D as
|
|
6
|
+
import { i as G, a as $e } from "./index-C2_qB4RV.mjs";
|
|
7
|
+
import { D as c, i as qe, C as ke } from "./index-DWJG5OHB.mjs";
|
|
8
8
|
import { itemBudgetApi as J } from "xyvcard-itsm";
|
|
9
9
|
import { useUserStoreHook as De } from "jmash-core";
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
10
|
+
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
11
|
+
const Me = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE__ */ he({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: /* @__PURE__ */ ve({
|
|
14
14
|
task: {
|
|
@@ -23,32 +23,38 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
24
|
setup(U, { expose: Q }) {
|
|
25
25
|
const X = De();
|
|
26
|
-
|
|
27
|
-
const { t:
|
|
28
|
-
let a =
|
|
26
|
+
c.orgIdBizDict.useValues(), c.budgetTypeDict.useValues(), c.fileTypeDict.useDictValues(), c.itemBizLayDict.useValues(), console.log(c.budgetTypeDict.values, "=> budgetTypeDict"), console.log(c.fileTypeDict.values, "=>fileTypeDict ");
|
|
27
|
+
const { t: f } = Ie(), v = we(U, "modelValue"), C = V(), k = U, A = V("");
|
|
28
|
+
let a = Fe({
|
|
29
29
|
requestId: Math.random() * 10 + "",
|
|
30
30
|
updateMask: "",
|
|
31
31
|
files: [],
|
|
32
32
|
applyDate: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
33
33
|
details: []
|
|
34
34
|
});
|
|
35
|
-
const D =
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
const D = V(!1), O = V();
|
|
36
|
+
console.log(c.itemBizLayDict.values, "=> itemBizLayDict");
|
|
37
|
+
const Y = H(() => {
|
|
38
|
+
if (!a.orgId) return [];
|
|
39
|
+
const e = c.itemBizLayDict.values.filter(
|
|
40
|
+
(l) => l.orgId === a.orgId
|
|
41
|
+
);
|
|
42
|
+
return console.log("过滤后的项目:", e), e;
|
|
43
|
+
}), w = V([]);
|
|
38
44
|
function Z(e) {
|
|
39
45
|
a.itemId = void 0, a.budgetType = "", a.contractMoney = "0", w.value = [];
|
|
40
46
|
}
|
|
41
47
|
function x(e) {
|
|
42
|
-
|
|
48
|
+
B(e, a.annual);
|
|
43
49
|
}
|
|
44
50
|
function ee(e) {
|
|
45
|
-
|
|
51
|
+
B(a.itemId, e);
|
|
46
52
|
}
|
|
47
53
|
const N = (e, l) => (console.log(e), e.map((r) => {
|
|
48
54
|
console.log(r);
|
|
49
55
|
const u = { ...r };
|
|
50
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;
|
|
51
|
-
}).filter((r) => r !== null)),
|
|
57
|
+
}).filter((r) => r !== null)), B = async (e, l) => {
|
|
52
58
|
if (!e || !l) {
|
|
53
59
|
a.budgetType = "", a.contractMoney = "0", w.value = [];
|
|
54
60
|
return;
|
|
@@ -59,15 +65,15 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
59
65
|
annual: l
|
|
60
66
|
}, d = (await J.findList(r)).data.results || [];
|
|
61
67
|
if (d.length > 0) {
|
|
62
|
-
const i = d.map((
|
|
68
|
+
const i = d.map((F) => F.budgetType);
|
|
63
69
|
w.value = N(
|
|
64
|
-
|
|
70
|
+
c.budgetTypeDict.values,
|
|
65
71
|
i
|
|
66
72
|
), a.budgetType = d[0].budgetType || "", a.contractMoney = String(d[0].approvedAmount) || "0";
|
|
67
73
|
} else
|
|
68
|
-
a.budgetType = "", a.contractMoney = "0", w.value = [], q.warning(
|
|
74
|
+
a.budgetType = "", a.contractMoney = "0", w.value = [], q.warning(f("itsmFlowSpareParts.noBudgetType"));
|
|
69
75
|
} catch (r) {
|
|
70
|
-
a.budgetType = "", a.contractMoney = "0", w.value = [], q.error(
|
|
76
|
+
a.budgetType = "", a.contractMoney = "0", w.value = [], q.error(f("itsmFlowSpareParts.getBudgetFail")), console.error("获取预算类型失败:", r);
|
|
71
77
|
}
|
|
72
78
|
};
|
|
73
79
|
W(
|
|
@@ -89,7 +95,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
89
95
|
} catch (l) {
|
|
90
96
|
console.error("获取预算金额失败:", l), a.contractMoney = "0";
|
|
91
97
|
}
|
|
92
|
-
},
|
|
98
|
+
}, b = V([
|
|
93
99
|
{
|
|
94
100
|
type: "",
|
|
95
101
|
name: "",
|
|
@@ -102,7 +108,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
102
108
|
}
|
|
103
109
|
]);
|
|
104
110
|
function ae() {
|
|
105
|
-
|
|
111
|
+
b.value.push({
|
|
106
112
|
type: "",
|
|
107
113
|
name: "",
|
|
108
114
|
number: 0,
|
|
@@ -114,22 +120,22 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
114
120
|
});
|
|
115
121
|
}
|
|
116
122
|
function te(e) {
|
|
117
|
-
const l =
|
|
118
|
-
l !== 0 &&
|
|
123
|
+
const l = b.value.indexOf(e.row);
|
|
124
|
+
l !== 0 && b.value.splice(l, 1);
|
|
119
125
|
}
|
|
120
|
-
const
|
|
126
|
+
const M = V("0.00");
|
|
121
127
|
W(
|
|
122
|
-
() =>
|
|
128
|
+
() => b.value,
|
|
123
129
|
(e) => {
|
|
124
130
|
if (!e || e.length === 0) {
|
|
125
|
-
|
|
131
|
+
M.value = "0.00";
|
|
126
132
|
return;
|
|
127
133
|
}
|
|
128
134
|
const l = e.reduce((r, u) => {
|
|
129
135
|
const d = parseFloat(u.valuation) || 0, i = parseFloat(u.number) || 0;
|
|
130
136
|
return r + d * i;
|
|
131
137
|
}, 0);
|
|
132
|
-
|
|
138
|
+
M.value = l.toFixed(2);
|
|
133
139
|
},
|
|
134
140
|
{ deep: !0, immediate: !0 }
|
|
135
141
|
);
|
|
@@ -138,35 +144,35 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
138
144
|
orgId: [
|
|
139
145
|
{
|
|
140
146
|
required: !0,
|
|
141
|
-
message:
|
|
147
|
+
message: f("itsmFlowSpareParts.govOrgIdRequired"),
|
|
142
148
|
trigger: "change"
|
|
143
149
|
}
|
|
144
150
|
],
|
|
145
151
|
type: [
|
|
146
152
|
{
|
|
147
153
|
required: !0,
|
|
148
|
-
message:
|
|
154
|
+
message: f("itsmFlowSpareParts.itsmtypeRequired"),
|
|
149
155
|
trigger: "change"
|
|
150
156
|
}
|
|
151
157
|
],
|
|
152
158
|
applyPlace: [
|
|
153
159
|
{
|
|
154
160
|
required: !0,
|
|
155
|
-
message:
|
|
161
|
+
message: f("itsmFlowSpareParts.applyPlaceRequired"),
|
|
156
162
|
trigger: "change"
|
|
157
163
|
}
|
|
158
164
|
],
|
|
159
165
|
annual: [
|
|
160
166
|
{
|
|
161
167
|
required: !0,
|
|
162
|
-
message:
|
|
168
|
+
message: f("itsmFlowSpareParts.annualRequired"),
|
|
163
169
|
trigger: "change"
|
|
164
170
|
}
|
|
165
171
|
],
|
|
166
172
|
applyDate: [
|
|
167
173
|
{
|
|
168
174
|
required: !0,
|
|
169
|
-
message:
|
|
175
|
+
message: f("itsmFlowSpareParts.applyDateRequired"),
|
|
170
176
|
trigger: "change"
|
|
171
177
|
}
|
|
172
178
|
]
|
|
@@ -174,19 +180,19 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
174
180
|
return a.type !== "BudgetOut" && (e.itemId = [
|
|
175
181
|
{
|
|
176
182
|
required: !0,
|
|
177
|
-
message:
|
|
183
|
+
message: f("itsmFlowSpareParts.itemIdRequired"),
|
|
178
184
|
trigger: "change"
|
|
179
185
|
}
|
|
180
186
|
], e.budgetType = [
|
|
181
187
|
{
|
|
182
188
|
required: !0,
|
|
183
|
-
message:
|
|
189
|
+
message: f("itsmFlowSpareParts.budgetTypeRequired"),
|
|
184
190
|
trigger: "change"
|
|
185
191
|
}
|
|
186
192
|
], e.contractMoney = [
|
|
187
193
|
{
|
|
188
194
|
required: !0,
|
|
189
|
-
message:
|
|
195
|
+
message: f("itsmFlowSpareParts.contractMoneyRequired"),
|
|
190
196
|
trigger: "change"
|
|
191
197
|
}
|
|
192
198
|
]), e;
|
|
@@ -208,7 +214,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
208
214
|
}, se = (e, l) => {
|
|
209
215
|
var d, i;
|
|
210
216
|
const r = L(e), u = (d = a.files) == null ? void 0 : d.findIndex(
|
|
211
|
-
(
|
|
217
|
+
(F) => F.fileSort === e && F.fileId === r[l].fileId
|
|
212
218
|
);
|
|
213
219
|
u !== void 0 && u >= 0 && ((i = a.files) == null || i.splice(u, 1));
|
|
214
220
|
};
|
|
@@ -219,7 +225,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
219
225
|
};
|
|
220
226
|
$e.findList(l).then((r) => {
|
|
221
227
|
var u;
|
|
222
|
-
console.log("明细接口返回:", r), (u = r == null ? void 0 : r.data) != null && u.results && Array.isArray(r.data.results) ?
|
|
228
|
+
console.log("明细接口返回:", r), (u = r == null ? void 0 : r.data) != null && u.results && Array.isArray(r.data.results) ? b.value = r.data.results : (b.value = [
|
|
223
229
|
{
|
|
224
230
|
type: "",
|
|
225
231
|
name: "",
|
|
@@ -232,10 +238,10 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
232
238
|
}
|
|
233
239
|
], q.warning("未获取到明细数据,已初始化空白行"));
|
|
234
240
|
}).catch((r) => {
|
|
235
|
-
console.error("获取明细失败:", r), q.error("加载明细数据失败"),
|
|
241
|
+
console.error("获取明细失败:", r), q.error("加载明细数据失败"), b.value = [
|
|
236
242
|
/* 初始化空行 */
|
|
237
243
|
];
|
|
238
|
-
}), ue(),
|
|
244
|
+
}), ue(), B(
|
|
239
245
|
a.itemId,
|
|
240
246
|
a.annual
|
|
241
247
|
);
|
|
@@ -262,18 +268,18 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
262
268
|
], v.value.varName = "approved", v.value.module = "", v.value.module = ke.MODULE_ITSMFLOW), new Promise((e, l) => {
|
|
263
269
|
var r;
|
|
264
270
|
(r = C.value) == null || r.validate((u) => {
|
|
265
|
-
u ? (v.value && (v.value.comment = ""), a.requestId = Math.random() * 10 + "", a.details =
|
|
271
|
+
u ? (v.value && (v.value.comment = ""), a.requestId = Math.random() * 10 + "", a.details = b.value, G.create(a).then((d) => {
|
|
266
272
|
d.status === 200 ? e(!0) : l(!1);
|
|
267
273
|
})) : l(!1);
|
|
268
274
|
});
|
|
269
275
|
});
|
|
270
276
|
}
|
|
271
277
|
return (e, l) => {
|
|
272
|
-
const r = p("el-col"), u = p("jmash-select"), d = p("el-form-item"), i = p("el-input"),
|
|
273
|
-
return
|
|
278
|
+
const r = p("el-col"), u = p("jmash-select"), d = p("el-form-item"), i = p("el-input"), F = p("el-date-picker"), ie = p("el-option"), pe = p("el-select"), me = p("el-tree-select"), z = p("el-row"), h = p("el-table-column"), ce = p("el-input-number"), E = p("el-icon"), fe = p("el-table"), j = p("el-button"), ge = p("el-form"), ye = p("jmash-multi-upload");
|
|
279
|
+
return g(), P(I, null, [
|
|
274
280
|
t(r, { span: 24 }, {
|
|
275
281
|
default: n(() => l[9] || (l[9] = [
|
|
276
|
-
|
|
282
|
+
y("div", { class: "title" }, "备品备件按需采购申请单", -1)
|
|
277
283
|
])),
|
|
278
284
|
_: 1,
|
|
279
285
|
__: [9]
|
|
@@ -287,7 +293,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
287
293
|
class: "custom-table-form custom-form"
|
|
288
294
|
}, {
|
|
289
295
|
default: n(() => [
|
|
290
|
-
t(
|
|
296
|
+
t(z, null, {
|
|
291
297
|
default: n(() => [
|
|
292
298
|
t(r, { span: 12 }, {
|
|
293
299
|
default: n(() => [
|
|
@@ -300,7 +306,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
300
306
|
modelValue: s(a).orgId,
|
|
301
307
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => s(a).orgId = o),
|
|
302
308
|
placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
303
|
-
data: s(
|
|
309
|
+
data: s(c).orgIdBizDict.values,
|
|
304
310
|
clearable: "",
|
|
305
311
|
filterable: "",
|
|
306
312
|
onChange: Z,
|
|
@@ -323,7 +329,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
323
329
|
modelValue: s(a).type,
|
|
324
330
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => s(a).type = o),
|
|
325
331
|
placeholder: e.$t("itsmFlowSpareParts.itsmtypeRequired"),
|
|
326
|
-
data: s(
|
|
332
|
+
data: s(c).purchaseTypeEnum.values,
|
|
327
333
|
clearable: "",
|
|
328
334
|
class: "w-full"
|
|
329
335
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -362,7 +368,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
362
368
|
prop: "annual"
|
|
363
369
|
}, {
|
|
364
370
|
default: n(() => [
|
|
365
|
-
t(
|
|
371
|
+
t(F, {
|
|
366
372
|
modelValue: s(a).annual,
|
|
367
373
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => s(a).annual = o),
|
|
368
374
|
type: "year",
|
|
@@ -379,13 +385,13 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
379
385
|
]),
|
|
380
386
|
_: 1
|
|
381
387
|
}),
|
|
382
|
-
s(a).type !== "BudgetOut" ? (
|
|
388
|
+
s(a).type !== "BudgetOut" ? (g(), _(r, {
|
|
383
389
|
key: 0,
|
|
384
390
|
span: 24
|
|
385
391
|
}, {
|
|
386
392
|
default: n(() => [
|
|
387
393
|
t(d, {
|
|
388
|
-
label: e.$t("itsmFlowSpareParts.
|
|
394
|
+
label: e.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
389
395
|
prop: "itemId"
|
|
390
396
|
}, {
|
|
391
397
|
default: n(() => [
|
|
@@ -400,7 +406,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
400
406
|
onChange: x
|
|
401
407
|
}, {
|
|
402
408
|
default: n(() => [
|
|
403
|
-
(
|
|
409
|
+
(g(!0), P(I, null, R(Y.value, (o) => (g(), _(ie, {
|
|
404
410
|
key: o.key,
|
|
405
411
|
value: o.key,
|
|
406
412
|
label: o.value
|
|
@@ -414,13 +420,13 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
414
420
|
]),
|
|
415
421
|
_: 1
|
|
416
422
|
})) : $("", !0),
|
|
417
|
-
s(a).type !== "BudgetOut" ? (
|
|
423
|
+
s(a).type !== "BudgetOut" ? (g(), _(r, {
|
|
418
424
|
key: 1,
|
|
419
425
|
span: 12
|
|
420
426
|
}, {
|
|
421
427
|
default: n(() => [
|
|
422
428
|
t(d, {
|
|
423
|
-
label: e.$t("itsmFlowSpareParts.
|
|
429
|
+
label: e.$t("itsmFlowSpareParts.itsmFlowBudgetType"),
|
|
424
430
|
prop: "budgetType"
|
|
425
431
|
}, {
|
|
426
432
|
default: n(() => [
|
|
@@ -441,7 +447,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
441
447
|
]),
|
|
442
448
|
_: 1
|
|
443
449
|
})) : $("", !0),
|
|
444
|
-
s(a).type !== "BudgetOut" ? (
|
|
450
|
+
s(a).type !== "BudgetOut" ? (g(), _(r, {
|
|
445
451
|
key: 2,
|
|
446
452
|
span: 12
|
|
447
453
|
}, {
|
|
@@ -492,7 +498,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
492
498
|
prop: "applyDate"
|
|
493
499
|
}, {
|
|
494
500
|
default: n(() => [
|
|
495
|
-
t(
|
|
501
|
+
t(F, {
|
|
496
502
|
modelValue: s(a).applyDate,
|
|
497
503
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => s(a).applyDate = o),
|
|
498
504
|
type: "date",
|
|
@@ -510,28 +516,28 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
510
516
|
]),
|
|
511
517
|
_: 1
|
|
512
518
|
}),
|
|
513
|
-
t(
|
|
519
|
+
t(z, null, {
|
|
514
520
|
default: n(() => [
|
|
515
521
|
t(r, { span: 24 }, {
|
|
516
522
|
default: n(() => l[10] || (l[10] = [
|
|
517
|
-
|
|
523
|
+
y("div", { class: "title" }, "运维需求描述", -1)
|
|
518
524
|
])),
|
|
519
525
|
_: 1,
|
|
520
526
|
__: [10]
|
|
521
527
|
}),
|
|
522
528
|
t(fe, {
|
|
523
|
-
data:
|
|
529
|
+
data: b.value,
|
|
524
530
|
border: "",
|
|
525
531
|
style: { width: "100%" }
|
|
526
532
|
}, {
|
|
527
533
|
default: n(() => [
|
|
528
|
-
t(
|
|
534
|
+
t(h, {
|
|
529
535
|
type: "index",
|
|
530
536
|
label: e.$t("itsmFlowSpareParts.index"),
|
|
531
537
|
width: "60",
|
|
532
538
|
align: "center"
|
|
533
539
|
}, null, 8, ["label"]),
|
|
534
|
-
t(
|
|
540
|
+
t(h, {
|
|
535
541
|
prop: "type",
|
|
536
542
|
label: e.$t("itsmFlowSpareParts.itsmtype"),
|
|
537
543
|
"header-align": "center",
|
|
@@ -547,7 +553,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
547
553
|
]),
|
|
548
554
|
_: 1
|
|
549
555
|
}, 8, ["label"]),
|
|
550
|
-
t(
|
|
556
|
+
t(h, {
|
|
551
557
|
prop: "name",
|
|
552
558
|
label: e.$t("itsmFlowSpareParts.itsmName"),
|
|
553
559
|
"header-align": "center",
|
|
@@ -562,7 +568,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
562
568
|
]),
|
|
563
569
|
_: 1
|
|
564
570
|
}, 8, ["label"]),
|
|
565
|
-
t(
|
|
571
|
+
t(h, {
|
|
566
572
|
prop: "number",
|
|
567
573
|
label: e.$t("itsmFlowSpareParts.number"),
|
|
568
574
|
"header-align": "center",
|
|
@@ -581,14 +587,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
581
587
|
]),
|
|
582
588
|
_: 1
|
|
583
589
|
}, 8, ["label"]),
|
|
584
|
-
t(
|
|
590
|
+
t(h, {
|
|
585
591
|
prop: "unit",
|
|
586
592
|
"header-align": "center",
|
|
587
593
|
width: "200"
|
|
588
594
|
}, {
|
|
589
595
|
header: n(() => [
|
|
590
|
-
l[11] || (l[11] =
|
|
591
|
-
|
|
596
|
+
l[11] || (l[11] = y("span", { class: "required_red" }, "*", -1)),
|
|
597
|
+
y("span", null, S(e.$t("itsmFlowSpareParts.unit")) + "(计量单位)", 1)
|
|
592
598
|
]),
|
|
593
599
|
default: n(({ row: o }) => [
|
|
594
600
|
t(i, {
|
|
@@ -599,14 +605,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
599
605
|
]),
|
|
600
606
|
_: 1
|
|
601
607
|
}),
|
|
602
|
-
t(
|
|
608
|
+
t(h, {
|
|
603
609
|
prop: "parameter",
|
|
604
610
|
"header-align": "center",
|
|
605
611
|
width: "150"
|
|
606
612
|
}, {
|
|
607
613
|
header: n(() => [
|
|
608
|
-
l[12] || (l[12] =
|
|
609
|
-
|
|
614
|
+
l[12] || (l[12] = y("span", { class: "required_red" }, "*", -1)),
|
|
615
|
+
y("span", null, S(e.$t("itsmFlowSpareParts.parameter")), 1)
|
|
610
616
|
]),
|
|
611
617
|
default: n(({ row: o }) => [
|
|
612
618
|
t(i, {
|
|
@@ -617,12 +623,14 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
617
623
|
]),
|
|
618
624
|
_: 1
|
|
619
625
|
}),
|
|
620
|
-
t(
|
|
626
|
+
t(h, {
|
|
621
627
|
prop: "valuation",
|
|
622
|
-
label: e.$t("itsmFlowSpareParts.valuation"),
|
|
623
628
|
"header-align": "center",
|
|
624
629
|
width: "120"
|
|
625
630
|
}, {
|
|
631
|
+
header: n(() => [
|
|
632
|
+
y("span", null, S(e.$t("itsmFlowSpareParts.valuation")) + "(万元)", 1)
|
|
633
|
+
]),
|
|
626
634
|
default: n(({ row: o }) => [
|
|
627
635
|
t(i, {
|
|
628
636
|
modelValue: o.valuation,
|
|
@@ -631,8 +639,8 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
631
639
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
632
640
|
]),
|
|
633
641
|
_: 1
|
|
634
|
-
}
|
|
635
|
-
t(
|
|
642
|
+
}),
|
|
643
|
+
t(h, {
|
|
636
644
|
prop: "range",
|
|
637
645
|
label: e.$t("itsmFlowSpareParts.range"),
|
|
638
646
|
"header-align": "center",
|
|
@@ -647,13 +655,13 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
647
655
|
]),
|
|
648
656
|
_: 1
|
|
649
657
|
}, 8, ["label"]),
|
|
650
|
-
t(
|
|
658
|
+
t(h, {
|
|
651
659
|
label: e.$t("common.operate"),
|
|
652
660
|
width: "60",
|
|
653
661
|
align: "center"
|
|
654
662
|
}, {
|
|
655
663
|
default: n((o) => [
|
|
656
|
-
o.$index !== 0 ? (
|
|
664
|
+
o.$index !== 0 ? (g(), _(E, {
|
|
657
665
|
key: 0,
|
|
658
666
|
onClick: (m) => te(o),
|
|
659
667
|
size: "18",
|
|
@@ -661,7 +669,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
661
669
|
class: "hover-blue"
|
|
662
670
|
}, {
|
|
663
671
|
default: n(() => [
|
|
664
|
-
t(s(
|
|
672
|
+
t(s(Ve))
|
|
665
673
|
]),
|
|
666
674
|
_: 2
|
|
667
675
|
}, 1032, ["onClick"])) : $("", !0)
|
|
@@ -671,46 +679,46 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
671
679
|
]),
|
|
672
680
|
_: 1
|
|
673
681
|
}, 8, ["data"]),
|
|
674
|
-
t(
|
|
682
|
+
t(j, {
|
|
675
683
|
icon: s(Se),
|
|
676
684
|
class: "addButton",
|
|
677
685
|
onClick: ae
|
|
678
686
|
}, {
|
|
679
687
|
default: n(() => [
|
|
680
|
-
T(
|
|
688
|
+
T(S(s(f)("common.add")), 1)
|
|
681
689
|
]),
|
|
682
690
|
_: 1
|
|
683
691
|
}, 8, ["icon"]),
|
|
684
|
-
|
|
692
|
+
y("div", Me, [
|
|
685
693
|
l[13] || (l[13] = T(" 预估总价(万元):")),
|
|
686
|
-
|
|
694
|
+
y("span", Re, S(M.value), 1)
|
|
687
695
|
]),
|
|
688
696
|
t(r, {
|
|
689
697
|
span: 24,
|
|
690
698
|
class: "bordered-row"
|
|
691
699
|
}, {
|
|
692
700
|
default: n(() => [
|
|
693
|
-
(
|
|
701
|
+
(g(!0), P(I, null, R(s(c).fileTypeDict.values.slice(0, 2), (o, m) => (g(), _(d, {
|
|
694
702
|
key: o.dictCode,
|
|
695
703
|
label: o.dictName
|
|
696
704
|
}, {
|
|
697
705
|
default: n(() => [
|
|
698
|
-
t(
|
|
706
|
+
t(j, {
|
|
699
707
|
type: "primary",
|
|
700
708
|
icon: s(_e),
|
|
701
709
|
onClick: () => ne(o.dictCode)
|
|
702
710
|
}, {
|
|
703
711
|
default: n(() => [
|
|
704
|
-
T(
|
|
712
|
+
T(S(e.$t("common.uploadFiles")), 1)
|
|
705
713
|
]),
|
|
706
714
|
_: 2
|
|
707
715
|
}, 1032, ["icon", "onClick"]),
|
|
708
|
-
(
|
|
716
|
+
(g(!0), P(I, null, R(L(o.dictCode), (be, K) => (g(), P("div", {
|
|
709
717
|
key: K,
|
|
710
718
|
class: "files-list"
|
|
711
719
|
}, [
|
|
712
|
-
|
|
713
|
-
t(
|
|
720
|
+
y("span", null, S(be.fileName), 1),
|
|
721
|
+
t(E, {
|
|
714
722
|
size: "16",
|
|
715
723
|
class: "icon-right",
|
|
716
724
|
onClick: () => se(o.dictCode, K)
|
|
@@ -743,7 +751,7 @@ const Be = { class: "total-price" }, Re = { id: "totalPrice" }, Te = /* @__PURE_
|
|
|
743
751
|
], 64);
|
|
744
752
|
};
|
|
745
753
|
}
|
|
746
|
-
}), Ke = /* @__PURE__ */
|
|
754
|
+
}), Ke = /* @__PURE__ */ Be(Te, [["__scopeId", "data-v-36ea3096"]]);
|
|
747
755
|
export {
|
|
748
756
|
Ke as default
|
|
749
757
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as W, ref as C, reactive as G, resolveComponent as i, resolveDirective as J, createElementBlock as S, openBlock as y, createElementVNode as b, createVNode as t, createBlock as U, createCommentVNode as D, withCtx as o, withKeys as d, unref as n, createTextVNode as k, toDisplayString as v, withDirectives as M, isRef as R } from "vue";
|
|
2
2
|
import { useTableHooks as X } from "jmash-core";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
|
-
import { a as Z } from "./index-
|
|
5
|
-
import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { D as p, O as ee, C as le } from "./index-
|
|
4
|
+
import { a as Z } from "./index-SilwoNEK.mjs";
|
|
5
|
+
import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-CY7c7Xmz.mjs";
|
|
6
|
+
import { D as p, O as ee, C as le } from "./index-DWJG5OHB.mjs";
|
|
7
7
|
const te = { class: "app-container" }, oe = { class: "search-container" }, ae = ["onClick"], pe = /* @__PURE__ */ W({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ne) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as le, mergeModels as oe, ref as f, useModel as ne, resolveComponent as c, createElementBlock as k, openBlock as _, Fragment as j, createVNode as e, withCtx as t, createElementVNode as n, createTextVNode as r, toDisplayString as s, unref as b, createCommentVNode as g, withDirectives as L, vShow as q, createBlock as z, renderList as ae } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { u as se } from "./index-CvX2It1o.mjs";
|
|
4
|
-
import { a as h } from "./index-
|
|
5
|
-
import { D as y, C as $, a as ue } from "./index-
|
|
4
|
+
import { a as h } from "./index-SilwoNEK.mjs";
|
|
5
|
+
import { D as y, C as $, a as ue } from "./index-DWJG5OHB.mjs";
|
|
6
6
|
import "jmash-core";
|
|
7
7
|
import { useI18n as re } from "vue-i18n";
|
|
8
|
-
import { F as ie } from "./FileSaver.min-
|
|
8
|
+
import { F as ie } from "./FileSaver.min-FLjvLk81.mjs";
|
|
9
9
|
import { E as A } from "./el-message-BJAl6Gwu.mjs";
|
|
10
10
|
const de = { key: 0 }, pe = { key: 1 }, ce = {
|
|
11
11
|
key: 2,
|
|
@@ -2,8 +2,8 @@ import { defineComponent as H, ref as N, reactive as W, resolveComponent as u, r
|
|
|
2
2
|
import { useTableHooks as M } from "jmash-core";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
4
|
import { i as Y } from "./common-Cwl5jzlM.mjs";
|
|
5
|
-
import { D as k, O as Z, C as x } from "./index-
|
|
6
|
-
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { D as k, O as Z, C as x } from "./index-DWJG5OHB.mjs";
|
|
6
|
+
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-Dm4Ld-wL.mjs";
|
|
7
7
|
const le = { class: "app-container" }, oe = { class: "search-container" }, te = ["onClick"], de = /* @__PURE__ */ H({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ne) {
|
|
@@ -4,7 +4,7 @@ var r = (n, t, s) => E(n, typeof t != "symbol" ? t + "" : t, s);
|
|
|
4
4
|
import { useUserStore as p, clearEmpty as o, request as l, BizDict as d, BizLayDict as N, CustomBizDict as g, EnumDict as m } from "jmash-core";
|
|
5
5
|
import { contractApi as v, itemApi as _, contractUserApi as y } from "xyvcard-itsm";
|
|
6
6
|
import { sysUserExtApi as A, sysOrgApi as h } from "xyvcard-itsmsys";
|
|
7
|
-
import { a as T } from "./index-
|
|
7
|
+
import { a as T } from "./index-SilwoNEK.mjs";
|
|
8
8
|
import { ref as U } from "vue";
|
|
9
9
|
import { EntryDict as I, EntryBizLayDict as L } from "jmash-dict";
|
|
10
10
|
class O {
|
|
@@ -2,8 +2,8 @@ import { defineComponent as be, mergeModels as ge, ref as f, useModel as Ie, rea
|
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as we } from "vue-i18n";
|
|
4
4
|
import { p as Ee } from "./index-CvX2It1o.mjs";
|
|
5
|
-
import { a as J } from "./index-
|
|
6
|
-
import { b as Ve, C as v, c as _e, d as Ne, D as E, e as R, a as Fe } from "./index-
|
|
5
|
+
import { a as J } from "./index-SilwoNEK.mjs";
|
|
6
|
+
import { b as Ve, C as v, c as _e, d as Ne, D as E, e as R, a as Fe } from "./index-DWJG5OHB.mjs";
|
|
7
7
|
import { E as Ue } from "./el-message-BJAl6Gwu.mjs";
|
|
8
8
|
const De = /* @__PURE__ */ be({
|
|
9
9
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as H, ref as V, reactive as W, resolveComponent as u, resolveDirective as G, createElementBlock as h, openBlock as g, createElementVNode as y, createVNode as t, createBlock as S, createCommentVNode as D, withCtx as a, withKeys as c, unref as n, createTextVNode as k, toDisplayString as d, withDirectives as J, isRef as U } from "vue";
|
|
2
2
|
import { useTableHooks as M } from "jmash-core";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
|
-
import { D as w, O as Y, C as Z, i as x } from "./index-
|
|
5
|
-
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as w, O as Y, C as Z, i as x } from "./index-DWJG5OHB.mjs";
|
|
5
|
+
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-C0J9fiF3.mjs";
|
|
6
6
|
const le = { class: "app-container" }, te = { class: "search-container" }, ae = ["onClick"], me = /* @__PURE__ */ H({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(oe) {
|