xyvcard-itsm-flow 0.0.25 → 0.0.27
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-DDqwfEMu.mjs} +1 -1
- package/dist/{edit-b1Qpq27u.mjs → edit-BH_qEChy.mjs} +1 -1
- package/dist/{edit-X4DuZAeC.mjs → edit-BWaFYsWY.mjs} +2 -2
- package/dist/{edit-DGLeO86x.mjs → edit-BpAjiLxu.mjs} +36 -36
- package/dist/{edit-Bb1ZMrgr.mjs → edit-CkGTDSiH.mjs} +1 -1
- package/dist/{edit-DEz__zGH.mjs → edit-D0-xQV59.mjs} +1 -1
- package/dist/{edit-DYzjfcpe.mjs → edit-DIyC972n.mjs} +45 -43
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DDFusQ6S.mjs → edit.vue_vue_type_script_setup_true_lang-CEHUWh-t.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-CxUe7kvR.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-COV7eZfh.mjs → edit.vue_vue_type_script_setup_true_lang-DcDT5675.mjs} +1 -1
- package/dist/{index-COlNrHOr.mjs → index-B20ya3NZ.mjs} +56 -56
- package/dist/{index-B3Od63yb.mjs → index-BKQGui3N.mjs} +3 -3
- package/dist/{index-ChiSO5mf.mjs → index-BKveaoi_.mjs} +18 -18
- package/dist/{index-Cc1yu7_y.mjs → index-Bjjyjlwd.mjs} +1 -1
- package/dist/{index-C6QayKyI.mjs → index-BkqkF7bW.mjs} +1 -1
- package/dist/{index-uhCfQAOU.mjs → index-C3zQQDPa.mjs} +3 -3
- package/dist/{index-BjIcvBcw.mjs → index-CGDEQO2p.mjs} +2 -2
- package/dist/{index-XQliRAX-.mjs → index-CI9FMMKr.mjs} +9 -9
- package/dist/{index-DReilvk8.mjs → index-CQ9elIv7.mjs} +2 -2
- package/dist/{index-D4hmXu0K.mjs → index-CV6uWLV9.mjs} +68 -68
- package/dist/{index-BzzIS37Q.mjs → index-CXOeg2so.mjs} +1426 -1444
- package/dist/{index-ZQIeIrUc.mjs → index-Cd9CTAUb.mjs} +27 -27
- package/dist/{index-Crv7Y3gz.mjs → index-Chh_9yED.mjs} +21 -21
- package/dist/{index-UIHGXuWX.mjs → index-CillImY_.mjs} +128 -128
- package/dist/{index-41pGjG4z.mjs → index-CjYlJigX.mjs} +13 -13
- package/dist/{index-CsRdrLdB.mjs → index-D6Poyzq3.mjs} +2 -2
- package/dist/{index-Dr2VSx72.mjs → index-DBRVK73O.mjs} +2 -2
- package/dist/{index-CTX-1ZJN.mjs → index-DTY8LR57.mjs} +1 -1
- package/dist/{index-BnbyM6r8.mjs → index-DY5EGkfi.mjs} +3 -3
- package/dist/{index-Ddn-uP9d.mjs → index-DcDzU5zK.mjs} +44 -44
- package/dist/{index-DB_7mB_B.mjs → index-DfptoNZ3.mjs} +93 -85
- package/dist/{index-DTmCekOe.mjs → index-DjZysfQB.mjs} +26 -26
- package/dist/index-DxoX_XqQ.mjs +384 -0
- package/dist/{index-CUdCuMce.mjs → index-QPdQNctc.mjs} +5 -5
- package/dist/{index-CK8x-scl.mjs → index-WpTFFCXY.mjs} +3 -3
- package/dist/{index-CJmsWz8H.mjs → index-YBHgdjIk.mjs} +25 -25
- package/dist/{index-Dx_iePKi.mjs → index-n6pwVFlo.mjs} +1 -1
- package/dist/{index-DsEA0PWP.mjs → index-qvWMlGg9.mjs} +2 -2
- package/dist/{index-BL1EL_Kk.mjs → index-rHARbj0G.mjs} +3 -3
- package/dist/index.mjs +1 -1
- package/dist/{info-ChOjJGUZ.mjs → info-0Dcd8VrX.mjs} +1 -1
- package/dist/{info-CqJnfPyk.mjs → info-BmfgBiif.mjs} +1 -1
- package/dist/{info-Cu1I8L0Q.mjs → info-C1J_4HDK.mjs} +1 -1
- package/dist/{info-C7BOFhdZ.mjs → info-DTZck-Y6.mjs} +1 -1
- package/dist/info-DjtHpeoT.mjs +4 -0
- package/dist/info-qIG0jebP.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-C9LpdXNC.mjs → info.vue_vue_type_script_setup_true_lang-0cRfUL0q.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-BupLtTsI.mjs → info.vue_vue_type_script_setup_true_lang-BeDGwXfi.mjs} +8 -8
- package/dist/{info.vue_vue_type_script_setup_true_lang-CxZBVr6Z.mjs → info.vue_vue_type_script_setup_true_lang-CETcd2E0.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CwpN4E5Y.mjs → info.vue_vue_type_script_setup_true_lang-CEoQybvz.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-D36lalXS.mjs → info.vue_vue_type_script_setup_true_lang-CdfnKI3-.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-_Rd1Paqi.mjs → info.vue_vue_type_script_setup_true_lang-CzLGZ50z.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/index-M_tEOKq6.mjs +0 -366
- package/dist/info-DDaeV1sJ.mjs +0 -4
- package/dist/info-DstAR0-a.mjs +0 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as J, ref as S, reactive as R, onActivated as X, resolveComponent as s, resolveDirective as Z, createElementBlock as
|
|
1
|
+
import { defineComponent as J, ref as S, reactive as R, onActivated as X, resolveComponent as s, resolveDirective as Z, createElementBlock as P, openBlock as d, createElementVNode as b, createVNode as o, createBlock as h, createCommentVNode as D, withCtx as l, unref as r, withKeys as x, createTextVNode as y, toDisplayString as i, withDirectives as C, isRef as z } from "vue";
|
|
2
2
|
import { useTableHooks as ee } from "jmash-core";
|
|
3
3
|
import { useI18n as te } from "vue-i18n";
|
|
4
|
-
import { i as le } from "./index-
|
|
5
|
-
import ae from "./edit-
|
|
6
|
-
import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { D as p, C as re } from "./index-
|
|
4
|
+
import { i as le } from "./index-Bjjyjlwd.mjs";
|
|
5
|
+
import ae from "./edit-DIyC972n.mjs";
|
|
6
|
+
import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-0cRfUL0q.mjs";
|
|
7
|
+
import { D as p, C as re } from "./index-DTY8LR57.mjs";
|
|
8
8
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
9
|
const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], me = ["onClick"], de = /* @__PURE__ */ J({
|
|
10
10
|
__name: "index",
|
|
@@ -14,8 +14,8 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
14
14
|
applyStatus: re.applyStatus.draft
|
|
15
15
|
}), {
|
|
16
16
|
tableHooks: u,
|
|
17
|
-
multipleTableRef:
|
|
18
|
-
queryFormRef:
|
|
17
|
+
multipleTableRef: B,
|
|
18
|
+
queryFormRef: U,
|
|
19
19
|
listLoading: E,
|
|
20
20
|
tableData: N,
|
|
21
21
|
total: V
|
|
@@ -40,7 +40,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
40
40
|
isColumn: !0
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
label: "itsmFlowSpareParts.
|
|
43
|
+
label: "itsmFlowSpareParts.itsmFlowItemId",
|
|
44
44
|
prop: "itemId",
|
|
45
45
|
width: "150",
|
|
46
46
|
sortable: "custom",
|
|
@@ -72,7 +72,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
72
72
|
isColumn: !0
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
label: "itsmFlowSpareParts.
|
|
75
|
+
label: "itsmFlowSpareParts.itsmFlowBudgetType",
|
|
76
76
|
prop: "budgetType",
|
|
77
77
|
width: "105",
|
|
78
78
|
sortable: "custom",
|
|
@@ -132,12 +132,12 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
132
132
|
return X(() => {
|
|
133
133
|
u.getList();
|
|
134
134
|
}), (a, t) => {
|
|
135
|
-
const k = s("jmash-select"), g = s("el-form-item"), c = s("el-col"), K = s("el-date-picker"), F = s("el-row"), $ = s("el-button"), Q = s("el-form"), H = s("jmash-column-select"), M = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"),
|
|
136
|
-
return d(),
|
|
135
|
+
const k = s("jmash-select"), g = s("el-form-item"), c = s("el-col"), K = s("el-date-picker"), F = s("el-row"), $ = s("el-button"), Q = s("el-form"), H = s("jmash-column-select"), M = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"), I = Z("hasPerm");
|
|
136
|
+
return d(), P("div", se, [
|
|
137
137
|
b("div", ie, [
|
|
138
138
|
o(Q, {
|
|
139
139
|
ref_key: "queryFormRef",
|
|
140
|
-
ref:
|
|
140
|
+
ref: U,
|
|
141
141
|
model: n.value,
|
|
142
142
|
inline: !0
|
|
143
143
|
}, {
|
|
@@ -168,7 +168,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
168
168
|
o(c, { span: 6 }, {
|
|
169
169
|
default: l(() => [
|
|
170
170
|
o(g, {
|
|
171
|
-
label: a.$t("itsmFlowSpareParts.
|
|
171
|
+
label: a.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
172
172
|
prop: "itemId"
|
|
173
173
|
}, {
|
|
174
174
|
default: l(() => [
|
|
@@ -279,7 +279,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
279
279
|
default: l(() => [
|
|
280
280
|
o(c, { span: 17 }, {
|
|
281
281
|
default: l(() => [
|
|
282
|
-
C((d(),
|
|
282
|
+
C((d(), h($, {
|
|
283
283
|
type: "primary",
|
|
284
284
|
onClick: j
|
|
285
285
|
}, {
|
|
@@ -288,7 +288,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
288
288
|
]),
|
|
289
289
|
_: 1
|
|
290
290
|
})), [
|
|
291
|
-
[
|
|
291
|
+
[I, ["reports:itsm_flow_spare_parts:add"]]
|
|
292
292
|
])
|
|
293
293
|
]),
|
|
294
294
|
_: 1
|
|
@@ -311,7 +311,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
311
311
|
})
|
|
312
312
|
]),
|
|
313
313
|
footer: l(() => [
|
|
314
|
-
r(V) > 0 ? (d(),
|
|
314
|
+
r(V) > 0 ? (d(), h(W, {
|
|
315
315
|
key: 0,
|
|
316
316
|
total: r(V),
|
|
317
317
|
"onUpdate:total": t[8] || (t[8] = (e) => z(V) ? V.value = e : null),
|
|
@@ -325,7 +325,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
325
325
|
default: l(() => [
|
|
326
326
|
o(M, {
|
|
327
327
|
ref_key: "multipleTableRef",
|
|
328
|
-
ref:
|
|
328
|
+
ref: B,
|
|
329
329
|
"row-key": "flowSpareId",
|
|
330
330
|
"v-loading": r(E),
|
|
331
331
|
data: r(N),
|
|
@@ -346,29 +346,29 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
346
346
|
b("span", null, i(r(p).itemBizLayDict.getValue(e.data.row.itemId)), 1)
|
|
347
347
|
]),
|
|
348
348
|
operation: l((e) => [
|
|
349
|
-
C((d(),
|
|
349
|
+
C((d(), P("span", {
|
|
350
350
|
class: "el-button-color",
|
|
351
351
|
onClick: (T) => L(e.data.row)
|
|
352
352
|
}, [
|
|
353
353
|
y(i(a.$t("common.edit")), 1)
|
|
354
354
|
], 8, ue)), [
|
|
355
|
-
[
|
|
355
|
+
[I, ["reports:itsm_flow_spare_parts:update"]]
|
|
356
356
|
]),
|
|
357
|
-
C((d(),
|
|
357
|
+
C((d(), P("span", {
|
|
358
358
|
class: "el-button-color dropdown-left",
|
|
359
359
|
onClick: (T) => r(u).deleteRecord(e.data.row)
|
|
360
360
|
}, [
|
|
361
361
|
y(i(a.$t("common.delete")), 1)
|
|
362
362
|
], 8, pe)), [
|
|
363
|
-
[
|
|
363
|
+
[I, ["reports:itsm_flow_spare_parts:delete"]]
|
|
364
364
|
]),
|
|
365
|
-
C((d(),
|
|
365
|
+
C((d(), P("span", {
|
|
366
366
|
class: "el-button-color dropdown-left",
|
|
367
367
|
onClick: (T) => Y(e.data.row)
|
|
368
368
|
}, [
|
|
369
369
|
y(i(a.$t("common.view")), 1)
|
|
370
370
|
], 8, me)), [
|
|
371
|
-
[
|
|
371
|
+
[I, ["itsmflow:itsm_flow_entrust:view"]]
|
|
372
372
|
])
|
|
373
373
|
]),
|
|
374
374
|
_: 1
|
|
@@ -376,7 +376,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
376
376
|
]),
|
|
377
377
|
_: 1
|
|
378
378
|
}),
|
|
379
|
-
m.value.visible ? (d(),
|
|
379
|
+
m.value.visible ? (d(), h(ae, {
|
|
380
380
|
key: 0,
|
|
381
381
|
modelValue: m.value.visible,
|
|
382
382
|
"onUpdate:modelValue": t[12] || (t[12] = (e) => m.value.visible = e),
|
|
@@ -385,7 +385,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
385
385
|
onRefresh: A,
|
|
386
386
|
width: "1200px"
|
|
387
387
|
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0),
|
|
388
|
-
v.value.visible ? (d(),
|
|
388
|
+
v.value.visible ? (d(), h(oe, {
|
|
389
389
|
key: 1,
|
|
390
390
|
modelValue: v.value.visible,
|
|
391
391
|
"onUpdate:modelValue": t[13] || (t[13] = (e) => v.value.visible = e),
|
|
@@ -396,7 +396,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
396
396
|
]);
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
|
-
}), Ve = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-
|
|
399
|
+
}), Ve = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-2ee5a7d4"]]);
|
|
400
400
|
export {
|
|
401
401
|
Ve as default
|
|
402
402
|
};
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { defineComponent as K, mergeModels as j, ref as v, useModel as q, watch as W, resolveComponent as b, createElementBlock as F, openBlock as m, Fragment as I, createVNode as l, withCtx as t, createElementVNode as c, createBlock as P, createCommentVNode as $, createTextVNode as n, toDisplayString as s, unref as _, renderList as L } from "vue";
|
|
2
|
+
import "element-plus";
|
|
3
|
+
import { useI18n as G } from "vue-i18n";
|
|
4
|
+
import { D as d, C as H, i as J } from "./index-DTY8LR57.mjs";
|
|
5
|
+
import { i as Q, a as X } from "./index-Bjjyjlwd.mjs";
|
|
6
|
+
import { fileApi as Y } from "jmash-core";
|
|
7
|
+
import { rbacApi as Z } from "jmash-rbac";
|
|
8
|
+
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
const ee = { class: "total-price" }, te = { id: "totalPrice" }, le = /* @__PURE__ */ K({
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: /* @__PURE__ */ j({
|
|
12
|
+
task: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}, {
|
|
18
|
+
modelValue: {},
|
|
19
|
+
modelModifiers: {}
|
|
20
|
+
}),
|
|
21
|
+
emits: ["update:modelValue"],
|
|
22
|
+
setup(V, { expose: C }) {
|
|
23
|
+
d.fileTypeDict.useDictValues(), d.orgIdBizDict.useValues(), d.itemBizLayDict.useValues(), d.budgetTypeDict.useValues(), console.log(d.orgIdBizDict.values, "=> orgIdBizDict"), console.log(d.itemBizLayDict.values, "=>itemBizLayDict ");
|
|
24
|
+
const { t: ae } = G(), h = v(), M = v({}), f = q(V, "modelValue"), N = v([]), S = V;
|
|
25
|
+
console.log(d.budgetTypeDict.values, "=>budgetTypeDict ");
|
|
26
|
+
const i = v({});
|
|
27
|
+
Q.findById({ flowSpareId: S.task.businessKey }).then(({ data: e }) => {
|
|
28
|
+
i.value = e, console.log(e, "=>data");
|
|
29
|
+
});
|
|
30
|
+
const k = v([]);
|
|
31
|
+
X.findList({ flowSpareId: S.task.businessKey }).then((e) => {
|
|
32
|
+
k.value = e.data.results, console.log(e.data.results, "=>tableData ");
|
|
33
|
+
});
|
|
34
|
+
const z = (e) => {
|
|
35
|
+
var a;
|
|
36
|
+
return ((a = N.value) == null ? void 0 : a.filter((o) => o.fileSort === e)) || [];
|
|
37
|
+
}, D = v("0.00");
|
|
38
|
+
W(
|
|
39
|
+
() => k.value,
|
|
40
|
+
(e) => {
|
|
41
|
+
if (!e || e.length === 0) {
|
|
42
|
+
D.value = "0.00";
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const a = e.reduce((o, u) => {
|
|
46
|
+
const y = parseFloat(u.valuation) || 0, p = parseFloat(u.number) || 0;
|
|
47
|
+
return o + y * p;
|
|
48
|
+
}, 0);
|
|
49
|
+
D.value = a.toFixed(2);
|
|
50
|
+
},
|
|
51
|
+
{ deep: !0, immediate: !0 }
|
|
52
|
+
);
|
|
53
|
+
function A() {
|
|
54
|
+
J.findFilesList({ actionId: S.task.businessKey }).then(({ data: e }) => {
|
|
55
|
+
console.log(e, "=> data"), e.results && Array.isArray(e.results) && (N.value = e.results.map((a) => {
|
|
56
|
+
let o = "";
|
|
57
|
+
return a.fileName && (o = a.fileSort || a.type || ""), {
|
|
58
|
+
fileName: a.fileName || "",
|
|
59
|
+
fileId: a.fileId || "",
|
|
60
|
+
fileSort: o
|
|
61
|
+
};
|
|
62
|
+
}));
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
A();
|
|
66
|
+
async function O(e) {
|
|
67
|
+
try {
|
|
68
|
+
const a = Y.fileUrl(e.filePath), u = await (await fetch(a)).blob(), y = window.URL.createObjectURL(u), p = document.createElement("a");
|
|
69
|
+
p.href = y, p.download = e.fileName || "download", document.body.appendChild(p), p.click();
|
|
70
|
+
} catch {
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
C({
|
|
74
|
+
changeModel: () => T()
|
|
75
|
+
});
|
|
76
|
+
function T() {
|
|
77
|
+
return f.value && (f.value.selectActions = [
|
|
78
|
+
{ key: "true", value: "同意" },
|
|
79
|
+
{ key: "false", value: "不同意" }
|
|
80
|
+
], f.value.varName = "approved", f.value.module = "", f.value.module = H.MODULE_ITSMFLOW), new Promise((e, a) => {
|
|
81
|
+
var o;
|
|
82
|
+
(o = h.value) == null || o.validate((u) => {
|
|
83
|
+
u ? (f.value && (f.value.comment = ""), e(!0)) : a(!1);
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return (e, a) => {
|
|
88
|
+
const o = b("el-col"), u = b("el-form-item"), y = b("el-row"), p = b("el-table-column"), E = b("el-table"), U = b("el-button"), R = b("el-form");
|
|
89
|
+
return m(), F(I, null, [
|
|
90
|
+
l(o, { span: 24 }, {
|
|
91
|
+
default: t(() => a[0] || (a[0] = [
|
|
92
|
+
c("div", { class: "title" }, "备品备件申请领用表", -1)
|
|
93
|
+
])),
|
|
94
|
+
_: 1,
|
|
95
|
+
__: [0]
|
|
96
|
+
}),
|
|
97
|
+
l(R, {
|
|
98
|
+
ref_key: "taskFormRef",
|
|
99
|
+
ref: h,
|
|
100
|
+
model: M.value,
|
|
101
|
+
"label-width": "150px",
|
|
102
|
+
class: "custom-table-form"
|
|
103
|
+
}, {
|
|
104
|
+
default: t(() => [
|
|
105
|
+
l(y, null, {
|
|
106
|
+
default: t(() => {
|
|
107
|
+
var r, B, w;
|
|
108
|
+
return [
|
|
109
|
+
l(o, { span: 12 }, {
|
|
110
|
+
default: t(() => [
|
|
111
|
+
l(u, {
|
|
112
|
+
label: e.$t("itsmFlowSpareParts.govOrgId"),
|
|
113
|
+
prop: "govOrgId"
|
|
114
|
+
}, {
|
|
115
|
+
default: t(() => [
|
|
116
|
+
n(s(_(d).orgIdBizDict.getValue(i.value.orgId)), 1)
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 8, ["label"])
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}),
|
|
123
|
+
l(o, { span: 12 }, {
|
|
124
|
+
default: t(() => [
|
|
125
|
+
l(u, {
|
|
126
|
+
label: e.$t("itsmFlowSpareParts.itsmtype"),
|
|
127
|
+
prop: "type"
|
|
128
|
+
}, {
|
|
129
|
+
default: t(() => [
|
|
130
|
+
n(s(_(d).purchaseTypeEnum.getEnumValue(i.value.type)), 1)
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["label"])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}),
|
|
137
|
+
l(o, { span: 12 }, {
|
|
138
|
+
default: t(() => [
|
|
139
|
+
l(u, {
|
|
140
|
+
label: e.$t("itsmFlowSpareParts.applyPlace"),
|
|
141
|
+
prop: "applyPlace"
|
|
142
|
+
}, {
|
|
143
|
+
default: t(() => [
|
|
144
|
+
n(s(i.value.applyPlace), 1)
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 8, ["label"])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}),
|
|
151
|
+
l(o, { span: 12 }, {
|
|
152
|
+
default: t(() => [
|
|
153
|
+
l(u, {
|
|
154
|
+
label: e.$t("itsmFlowSpareParts.annual"),
|
|
155
|
+
prop: "annual"
|
|
156
|
+
}, {
|
|
157
|
+
default: t(() => [
|
|
158
|
+
n(s(i.value.annual), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["label"])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}),
|
|
165
|
+
((r = i.value) == null ? void 0 : r.type) !== "BudgetOut" ? (m(), P(o, {
|
|
166
|
+
key: 0,
|
|
167
|
+
span: 24
|
|
168
|
+
}, {
|
|
169
|
+
default: t(() => [
|
|
170
|
+
l(u, {
|
|
171
|
+
label: e.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
172
|
+
prop: "itemId"
|
|
173
|
+
}, {
|
|
174
|
+
default: t(() => [
|
|
175
|
+
n(s(_(d).itemBizLayDict.getValue(i.value.itemId)), 1)
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
}, 8, ["label"])
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
})) : $("", !0),
|
|
182
|
+
((B = i.value) == null ? void 0 : B.type) !== "BudgetOut" ? (m(), P(o, {
|
|
183
|
+
key: 1,
|
|
184
|
+
span: 12
|
|
185
|
+
}, {
|
|
186
|
+
default: t(() => [
|
|
187
|
+
l(u, {
|
|
188
|
+
label: e.$t("itsmFlowSpareParts.itsmFlowBudgetType"),
|
|
189
|
+
prop: "budgetType"
|
|
190
|
+
}, {
|
|
191
|
+
default: t(() => [
|
|
192
|
+
n(s(_(d).budgetTypeDict.getValue(i.value.budgetType)), 1)
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
}, 8, ["label"])
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
})) : $("", !0),
|
|
199
|
+
((w = i.value) == null ? void 0 : w.type) !== "BudgetOut" ? (m(), P(o, {
|
|
200
|
+
key: 2,
|
|
201
|
+
span: 12
|
|
202
|
+
}, {
|
|
203
|
+
default: t(() => [
|
|
204
|
+
l(u, {
|
|
205
|
+
label: e.$t("itsmFlowSpareParts.contractMoney"),
|
|
206
|
+
prop: "contractMoney"
|
|
207
|
+
}, {
|
|
208
|
+
default: t(() => [
|
|
209
|
+
n(s(i.value.contractMoney), 1)
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["label"])
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
})) : $("", !0),
|
|
216
|
+
l(o, { span: 12 }, {
|
|
217
|
+
default: t(() => [
|
|
218
|
+
l(u, {
|
|
219
|
+
label: e.$t("itsmFlowSpareParts.createBy"),
|
|
220
|
+
prop: "createBy"
|
|
221
|
+
}, {
|
|
222
|
+
default: t(() => {
|
|
223
|
+
var g;
|
|
224
|
+
return [
|
|
225
|
+
n(s(i.value.createBy ? (g = _(Z).userInfo(i.value.createBy)) == null ? void 0 : g.realName : ""), 1)
|
|
226
|
+
];
|
|
227
|
+
}),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 8, ["label"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}),
|
|
233
|
+
l(o, { span: 12 }, {
|
|
234
|
+
default: t(() => [
|
|
235
|
+
l(u, {
|
|
236
|
+
label: e.$t("itsmFlowSpareParts.applyDate"),
|
|
237
|
+
prop: "applyDate"
|
|
238
|
+
}, {
|
|
239
|
+
default: t(() => [
|
|
240
|
+
n(s(i.value.applyDate), 1)
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["label"])
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
})
|
|
247
|
+
];
|
|
248
|
+
}),
|
|
249
|
+
_: 1
|
|
250
|
+
}),
|
|
251
|
+
l(y, null, {
|
|
252
|
+
default: t(() => [
|
|
253
|
+
l(o, { span: 24 }, {
|
|
254
|
+
default: t(() => a[1] || (a[1] = [
|
|
255
|
+
c("div", { class: "title" }, "运维需求描述", -1)
|
|
256
|
+
])),
|
|
257
|
+
_: 1,
|
|
258
|
+
__: [1]
|
|
259
|
+
}),
|
|
260
|
+
l(E, {
|
|
261
|
+
stripe: "",
|
|
262
|
+
style: { width: "100%" },
|
|
263
|
+
data: k.value
|
|
264
|
+
}, {
|
|
265
|
+
default: t(() => [
|
|
266
|
+
l(p, {
|
|
267
|
+
prop: "type",
|
|
268
|
+
label: e.$t("itsmFlowSpareParts.itsmtype")
|
|
269
|
+
}, {
|
|
270
|
+
default: t((r) => [
|
|
271
|
+
n(s(r.row.type), 1)
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 8, ["label"]),
|
|
275
|
+
l(p, {
|
|
276
|
+
prop: "name",
|
|
277
|
+
label: e.$t("itsmFlowSpareParts.itsmName")
|
|
278
|
+
}, {
|
|
279
|
+
default: t((r) => [
|
|
280
|
+
n(s(r.row.name), 1)
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
}, 8, ["label"]),
|
|
284
|
+
l(p, {
|
|
285
|
+
prop: "number",
|
|
286
|
+
label: e.$t("itsmFlowSpareParts.number")
|
|
287
|
+
}, {
|
|
288
|
+
default: t((r) => [
|
|
289
|
+
n(s(r.row.number), 1)
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
}, 8, ["label"]),
|
|
293
|
+
l(p, { prop: "unit" }, {
|
|
294
|
+
header: t(() => [
|
|
295
|
+
a[2] || (a[2] = c("span", { class: "required_red" }, "*", -1)),
|
|
296
|
+
c("span", null, s(e.$t("itsmFlowSpareParts.unit")), 1)
|
|
297
|
+
]),
|
|
298
|
+
default: t((r) => [
|
|
299
|
+
n(s(r.row.unit), 1)
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}),
|
|
303
|
+
l(p, {
|
|
304
|
+
prop: "parameter",
|
|
305
|
+
label: e.$t("itsmFlowSpareParts.parameter")
|
|
306
|
+
}, {
|
|
307
|
+
default: t((r) => [
|
|
308
|
+
n(s(r.row.parameter), 1)
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
}, 8, ["label"]),
|
|
312
|
+
l(p, { prop: "valuation" }, {
|
|
313
|
+
header: t(() => [
|
|
314
|
+
c("span", null, s(e.$t("itsmFlowSpareParts.valuation")) + "(万元)", 1)
|
|
315
|
+
]),
|
|
316
|
+
default: t((r) => [
|
|
317
|
+
n(s(r.row.valuation), 1)
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
}),
|
|
321
|
+
l(p, {
|
|
322
|
+
prop: "range",
|
|
323
|
+
label: e.$t("itsmFlowSpareParts.range")
|
|
324
|
+
}, {
|
|
325
|
+
default: t((r) => [
|
|
326
|
+
n(s(r.row.range), 1)
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
}, 8, ["label"])
|
|
330
|
+
]),
|
|
331
|
+
_: 1
|
|
332
|
+
}, 8, ["data"]),
|
|
333
|
+
c("div", ee, [
|
|
334
|
+
a[3] || (a[3] = n(" 预估总价(万元):")),
|
|
335
|
+
c("span", te, s(D.value), 1)
|
|
336
|
+
]),
|
|
337
|
+
l(o, {
|
|
338
|
+
span: 24,
|
|
339
|
+
class: "bordered-row"
|
|
340
|
+
}, {
|
|
341
|
+
default: t(() => [
|
|
342
|
+
(m(!0), F(I, null, L(_(d).fileTypeDict.values.slice(0, 2), (r, B) => (m(), P(u, {
|
|
343
|
+
key: r.dictCode,
|
|
344
|
+
label: r.dictName
|
|
345
|
+
}, {
|
|
346
|
+
default: t(() => [
|
|
347
|
+
(m(!0), F(I, null, L(z(r.dictCode), (w, g) => (m(), F("div", {
|
|
348
|
+
key: g,
|
|
349
|
+
class: "files-list"
|
|
350
|
+
}, [
|
|
351
|
+
c("span", null, s(w.fileName), 1),
|
|
352
|
+
l(U, {
|
|
353
|
+
type: "primary",
|
|
354
|
+
link: "",
|
|
355
|
+
size: "small",
|
|
356
|
+
class: "icon-right",
|
|
357
|
+
onClick: (oe) => O(w)
|
|
358
|
+
}, {
|
|
359
|
+
default: t(() => a[4] || (a[4] = [
|
|
360
|
+
n(" 查看 ")
|
|
361
|
+
])),
|
|
362
|
+
_: 2,
|
|
363
|
+
__: [4]
|
|
364
|
+
}, 1032, ["onClick"])
|
|
365
|
+
]))), 128))
|
|
366
|
+
]),
|
|
367
|
+
_: 2
|
|
368
|
+
}, 1032, ["label"]))), 128))
|
|
369
|
+
]),
|
|
370
|
+
_: 1
|
|
371
|
+
})
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
})
|
|
375
|
+
]),
|
|
376
|
+
_: 1
|
|
377
|
+
}, 8, ["model"])
|
|
378
|
+
], 64);
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
}), ce = /* @__PURE__ */ x(le, [["__scopeId", "data-v-ed51aa55"]]);
|
|
382
|
+
export {
|
|
383
|
+
ce as default
|
|
384
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as X, getCurrentInstance as Z, ref as k, reactive as z, onActivated as ee, resolveComponent as n, resolveDirective as te, createElementBlock as _, openBlock as m, createElementVNode as $, createVNode as a, createBlock as h, createCommentVNode as C, withCtx as l, unref as r, withKeys as oe, createTextVNode as p, toDisplayString as u, withDirectives as V, isRef as R } from "vue";
|
|
2
2
|
import { useTableHooks as le } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
|
-
import { i as re } from "./index-
|
|
5
|
-
import ne from "./edit-
|
|
6
|
-
import { _ as ie } from "./info.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { D as w, O as se, C as P } from "./index-
|
|
4
|
+
import { i as re } from "./index-CXOeg2so.mjs";
|
|
5
|
+
import ne from "./edit-BWaFYsWY.mjs";
|
|
6
|
+
import { _ as ie } from "./info.vue_vue_type_script_setup_true_lang-CdfnKI3-.mjs";
|
|
7
|
+
import { D as w, O as se, C as P } from "./index-DTY8LR57.mjs";
|
|
8
8
|
import { rbacApi as me } from "jmash-rbac";
|
|
9
9
|
const ue = { class: "app-container" }, de = { class: "search-container" }, pe = { key: 0 }, ce = ["onClick"], ye = ["onClick"], fe = ["onClick"], Ie = /* @__PURE__ */ X({
|
|
10
10
|
__name: "index",
|
|
@@ -124,7 +124,7 @@ const ue = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
124
124
|
a(b, { span: 6 }, {
|
|
125
125
|
default: l(() => [
|
|
126
126
|
a(I, {
|
|
127
|
-
label: o.$t("itsmFlowSpareParts.
|
|
127
|
+
label: o.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
128
128
|
prop: "itemId"
|
|
129
129
|
}, {
|
|
130
130
|
default: l(() => [
|
|
@@ -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-CXOeg2so.mjs";
|
|
5
|
+
import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-CEoQybvz.mjs";
|
|
6
|
+
import { D as p, O as ee, C as le } from "./index-DTY8LR57.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) {
|