xyvcard-itsm-flow 0.0.20 → 0.0.22
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-5d27MsC6.mjs → FileSaver.min-X2_RihtX.mjs} +29 -28
- package/dist/_commonjsHelpers-BVfed4GL.mjs +28 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/{edit-DIh0NEYf.mjs → edit-B4N5cmbv.mjs} +1 -1
- package/dist/edit-C1Zif4Ov.mjs +492 -0
- package/dist/edit-CUiT79xP.mjs +794 -0
- package/dist/{edit-DdzFTqhg.mjs → edit-Crp2NJw2.mjs} +1 -1
- package/dist/{edit-Vw2XQ1u6.mjs → edit-Da4XYqIW.mjs} +1 -1
- package/dist/edit-z2fcZzRN.mjs +378 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs → edit.vue_vue_type_script_setup_true_lang-ClkzOaAV.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs → edit.vue_vue_type_script_setup_true_lang-DZj5V6Mk.mjs} +5 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs → edit.vue_vue_type_script_setup_true_lang-VfP4qMQI.mjs} +2 -2
- package/dist/{el-message-DawVzOVQ.mjs → el-message-BJAl6Gwu.mjs} +1 -1
- package/dist/index-5ECLdS5y.mjs +749 -0
- package/dist/{index-Cgbv4Ijf.mjs → index-5rQmXXAD.mjs} +118 -173
- package/dist/{index-CITy8Hqm.mjs → index-B0J0xma8.mjs} +29 -28
- package/dist/{index-7_pEehBt.mjs → index-B5OVt83d.mjs} +2 -2
- package/dist/index-BMCOCsW6.mjs +278 -0
- package/dist/index-BNfIR-q1.mjs +330 -0
- package/dist/index-BW4DcS26.mjs +272 -0
- package/dist/{index-DaSMRndr.mjs → index-BYazmSpv.mjs} +8 -7
- package/dist/{index-54evOMFJ.mjs → index-Bmev8P7I.mjs} +8 -7
- package/dist/index-C3QjePKd.mjs +390 -0
- package/dist/{index-DyOibT57.mjs → index-CBowEKcR.mjs} +2 -2
- package/dist/{index-Dooa5UH_.mjs → index-CCnjfMtC.mjs} +23 -22
- package/dist/{index-v18knD_f.mjs → index-COT8mjWU.mjs} +2 -2
- package/dist/index-CbG_QqOf.mjs +149 -0
- package/dist/index-CeA9V38o.mjs +339 -0
- package/dist/index-ChmGQcWY.mjs +396 -0
- package/dist/index-Coz_j3ZO.mjs +400 -0
- package/dist/{index-PafaMNgK.mjs → index-CvX2It1o.mjs} +64 -30
- package/dist/index-DKewqFNP.mjs +273 -0
- package/dist/{index-g0KiWDPW.mjs → index-DNFVieqg.mjs} +3 -3
- package/dist/{index-BI1uXq1f.mjs → index-DPqaoK4-.mjs} +7 -6
- package/dist/{index-CxyHtsq2.mjs → index-DVyAUAgy.mjs} +2 -2
- package/dist/index-Dd1bJ-eY.mjs +479 -0
- package/dist/index-DgQ1cL3p.mjs +221 -0
- package/dist/{index-C7_kMdm5.mjs → index-Dxfj5xxz.mjs} +2 -2
- package/dist/index-HVCVVhoT.mjs +1385 -0
- package/dist/index-V8eBbfrN.mjs +402 -0
- package/dist/index-YVpXj5al.mjs +316 -0
- package/dist/index-gea6CFp0.mjs +457 -0
- package/dist/index-oGFiETVc.mjs +366 -0
- package/dist/{index-tnTugnqa.mjs → index-sjkYgg27.mjs} +6 -5
- package/dist/index.mjs +1203 -999
- package/dist/{info-8NydJYfB.mjs → info-C2QOALBq.mjs} +1 -1
- package/dist/{info-BbMCDfFR.mjs → info-D90oJO1z.mjs} +1 -1
- package/dist/{info-l0eP5Tw1.mjs → info-XskyQapE.mjs} +1 -1
- package/dist/info-Y2dPD9_Q.mjs +4 -0
- package/dist/info-a4HMapKP.mjs +4 -0
- package/dist/info-bvVxVHFs.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs → info.vue_vue_type_script_setup_true_lang-BvcEV_aO.mjs} +115 -114
- package/dist/{info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs → info.vue_vue_type_script_setup_true_lang-BzNQmLMY.mjs} +1 -1
- package/dist/info.vue_vue_type_script_setup_true_lang-CAAnevRr.mjs +209 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-DROdDnz4.mjs +260 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs → info.vue_vue_type_script_setup_true_lang-DhuclI_H.mjs} +1 -1
- package/dist/info.vue_vue_type_script_setup_true_lang-Dngt4TDa.mjs +374 -0
- package/dist/style.css +1 -1
- package/dts/api/index.d.ts +5 -1
- package/dts/api/itsm-flow-spare-parts/index.d.ts +20 -0
- package/dts/api/itsm-flow-spare-parts/types.d.ts +113 -0
- package/dts/api/itsm-flow-spare-parts-details/index.d.ts +20 -0
- package/dts/api/itsm-flow-spare-parts-details/types.d.ts +77 -0
- package/dts/api/itsm-flow-temporary/index.d.ts +21 -0
- package/dts/api/itsm-flow-temporary/types.d.ts +115 -0
- package/dts/components/ImageUpload/ImageUpload.vue.d.ts +36 -0
- package/dts/components/TaskItsmFlowImOrderInterior/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImOrderInteriorEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImOrderInteriorImplement/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImOrderInteriorView/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareParts/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSparePartsEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSparePartsUse/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareTemporary/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareTemporaryEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareTemporaryImplement/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareTemporaryView/index.vue.d.ts +28 -0
- package/dts/constant.d.ts +8 -0
- package/dts/index.d.ts +13 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +81 -0
- package/dts/views/item-flow-orders-interior/edit.vue.d.ts +28 -0
- package/dts/views/item-flow-orders-interior/index.vue.d.ts +2 -0
- package/dts/views/item-flow-orders-interior/info.vue.d.ts +26 -0
- package/dts/views/itsm-flow-spare-parts/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-spare-parts/index.vue.d.ts +2 -0
- package/dts/views/itsm-flow-spare-parts/info.vue.d.ts +26 -0
- package/dts/views/itsm-flow-temporary/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-temporary/index.vue.d.ts +2 -0
- package/dts/views/itsm-flow-temporary/info.vue.d.ts +26 -0
- package/package.json +63 -63
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { defineComponent as P, mergeModels as L, useModel as z, getCurrentInstance as A, ref as V, resolveComponent as p, createBlock as B, openBlock as c, withCtx as l, createVNode as t, createTextVNode as i, toDisplayString as s, unref as m, createElementBlock as g, Fragment as D, renderList as T, createElementVNode as E } from "vue";
|
|
2
|
+
import { rbacApi as M } from "jmash-rbac";
|
|
3
|
+
import { i as U, D as f } from "./index-5rQmXXAD.mjs";
|
|
4
|
+
import { fileApi as K } from "jmash-core";
|
|
5
|
+
import { i as Y } from "./index-CbG_QqOf.mjs";
|
|
6
|
+
const Q = /* @__PURE__ */ P({
|
|
7
|
+
__name: "info",
|
|
8
|
+
props: /* @__PURE__ */ L({
|
|
9
|
+
entityKey: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: { type: Boolean },
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(v) {
|
|
20
|
+
var I;
|
|
21
|
+
const _ = z(v, "modelValue"), { proxy: h } = A(), y = v, n = V();
|
|
22
|
+
(I = y.entityKey) != null && I.temporaryId && Y.findById({ temporaryId: y.entityKey.temporaryId }).then((o) => {
|
|
23
|
+
n.value = o.data;
|
|
24
|
+
});
|
|
25
|
+
const w = V([]);
|
|
26
|
+
U.findFilesList({ actionId: y.entityKey.temporaryId }).then((o) => {
|
|
27
|
+
w.value = o.data.results, console.log(o.data.results, "=> files");
|
|
28
|
+
});
|
|
29
|
+
async function $(o) {
|
|
30
|
+
try {
|
|
31
|
+
const d = K.fileUrl(o.filePath), a = await (await fetch(d)).blob(), b = window.URL.createObjectURL(a), u = document.createElement("a");
|
|
32
|
+
u.href = b, u.download = o.fileName || "download", document.body.appendChild(u), u.click();
|
|
33
|
+
} catch {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function k() {
|
|
37
|
+
_.value && (_.value = !1);
|
|
38
|
+
}
|
|
39
|
+
return (o, d) => {
|
|
40
|
+
const r = p("el-form-item"), a = p("el-col"), b = p("el-button"), u = p("el-row"), C = p("el-form"), O = p("el-dialog");
|
|
41
|
+
return c(), B(O, {
|
|
42
|
+
modelValue: _.value,
|
|
43
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => _.value = e),
|
|
44
|
+
onClose: k
|
|
45
|
+
}, {
|
|
46
|
+
default: l(() => [
|
|
47
|
+
t(C, {
|
|
48
|
+
ref: "itsmFlowEntrustFormRef",
|
|
49
|
+
"label-width": "150px",
|
|
50
|
+
class: "custom-table-form custom-form"
|
|
51
|
+
}, {
|
|
52
|
+
default: l(() => [
|
|
53
|
+
t(u, null, {
|
|
54
|
+
default: l(() => [
|
|
55
|
+
t(a, { span: 24 }, {
|
|
56
|
+
default: l(() => [
|
|
57
|
+
t(r, {
|
|
58
|
+
label: o.$t("itsmFlowSpareParts.govOrgId"),
|
|
59
|
+
prop: "govOrgId"
|
|
60
|
+
}, {
|
|
61
|
+
default: l(() => {
|
|
62
|
+
var e;
|
|
63
|
+
return [
|
|
64
|
+
i(s(m(f).orgIdBizDict.getValue((e = n.value) == null ? void 0 : e.govOrgId)), 1)
|
|
65
|
+
];
|
|
66
|
+
}),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["label"])
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}),
|
|
72
|
+
t(a, { span: 24 }, {
|
|
73
|
+
default: l(() => [
|
|
74
|
+
t(r, {
|
|
75
|
+
label: o.$t("itsmFlowSpareParts.itemId"),
|
|
76
|
+
prop: "itemId"
|
|
77
|
+
}, {
|
|
78
|
+
default: l(() => {
|
|
79
|
+
var e;
|
|
80
|
+
return [
|
|
81
|
+
i(s(m(f).itemBizLayDict.getValue((e = n.value) == null ? void 0 : e.itemId)), 1)
|
|
82
|
+
];
|
|
83
|
+
}),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["label"])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}),
|
|
89
|
+
t(a, { span: 12 }, {
|
|
90
|
+
default: l(() => [
|
|
91
|
+
t(r, {
|
|
92
|
+
label: o.$t("itsmFlowTemporary.createBy"),
|
|
93
|
+
prop: "createBy"
|
|
94
|
+
}, {
|
|
95
|
+
default: l(() => {
|
|
96
|
+
var e;
|
|
97
|
+
return [
|
|
98
|
+
i(s(m(M).userInfo((e = n.value) == null ? void 0 : e.createBy).realName), 1)
|
|
99
|
+
];
|
|
100
|
+
}),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["label"])
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}),
|
|
106
|
+
t(a, { span: 12 }, {
|
|
107
|
+
default: l(() => [
|
|
108
|
+
t(r, {
|
|
109
|
+
label: o.$t("itsmFlowTemporary.createTime"),
|
|
110
|
+
prop: "createTime"
|
|
111
|
+
}, {
|
|
112
|
+
default: l(() => {
|
|
113
|
+
var e;
|
|
114
|
+
return [
|
|
115
|
+
i(s(m(h).$moment.formatDate(
|
|
116
|
+
(e = n.value) == null ? void 0 : e.createTime,
|
|
117
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
118
|
+
)), 1)
|
|
119
|
+
];
|
|
120
|
+
}),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["label"])
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}),
|
|
126
|
+
t(a, { span: 24 }, {
|
|
127
|
+
default: l(() => [
|
|
128
|
+
t(r, {
|
|
129
|
+
label: o.$t("itsmFlowTemporary.title"),
|
|
130
|
+
prop: "title"
|
|
131
|
+
}, {
|
|
132
|
+
default: l(() => {
|
|
133
|
+
var e;
|
|
134
|
+
return [
|
|
135
|
+
i(s((e = n.value) == null ? void 0 : e.title), 1)
|
|
136
|
+
];
|
|
137
|
+
}),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 8, ["label"])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}),
|
|
143
|
+
t(a, { span: 24 }, {
|
|
144
|
+
default: l(() => [
|
|
145
|
+
t(r, {
|
|
146
|
+
label: o.$t("itsmFlowTemporary.content"),
|
|
147
|
+
prop: "content"
|
|
148
|
+
}, {
|
|
149
|
+
default: l(() => {
|
|
150
|
+
var e;
|
|
151
|
+
return [
|
|
152
|
+
i(s((e = n.value) == null ? void 0 : e.content), 1)
|
|
153
|
+
];
|
|
154
|
+
}),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["label"])
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}),
|
|
160
|
+
t(a, {
|
|
161
|
+
span: 24,
|
|
162
|
+
class: "bordered-row"
|
|
163
|
+
}, {
|
|
164
|
+
default: l(() => [
|
|
165
|
+
(c(!0), g(D, null, T(m(f).fileTypeDict.values.slice(2, 3), (e, R) => (c(), B(r, {
|
|
166
|
+
key: e.dictCode,
|
|
167
|
+
label: e.dictName
|
|
168
|
+
}, {
|
|
169
|
+
default: l(() => [
|
|
170
|
+
(c(!0), g(D, null, T(w.value, (F, N) => (c(), g("div", {
|
|
171
|
+
key: N,
|
|
172
|
+
class: "files-list"
|
|
173
|
+
}, [
|
|
174
|
+
E("span", null, s(F.fileName), 1),
|
|
175
|
+
t(b, {
|
|
176
|
+
type: "primary",
|
|
177
|
+
link: "",
|
|
178
|
+
size: "small",
|
|
179
|
+
class: "icon-right",
|
|
180
|
+
onClick: (S) => $(F)
|
|
181
|
+
}, {
|
|
182
|
+
default: l(() => d[1] || (d[1] = [
|
|
183
|
+
i(" 查看 ")
|
|
184
|
+
])),
|
|
185
|
+
_: 2,
|
|
186
|
+
__: [1]
|
|
187
|
+
}, 1032, ["onClick"])
|
|
188
|
+
]))), 128))
|
|
189
|
+
]),
|
|
190
|
+
_: 2
|
|
191
|
+
}, 1032, ["label"]))), 128))
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}),
|
|
195
|
+
t(a, { span: 24 }, {
|
|
196
|
+
default: l(() => [
|
|
197
|
+
t(r, {
|
|
198
|
+
label: o.$t("itsmFlowTemporary.outOrgId"),
|
|
199
|
+
prop: "outOrgId"
|
|
200
|
+
}, {
|
|
201
|
+
default: l(() => {
|
|
202
|
+
var e;
|
|
203
|
+
return [
|
|
204
|
+
i(s(m(f).orgIdBizDict.getValue((e = n.value) == null ? void 0 : e.outOrgId)), 1)
|
|
205
|
+
];
|
|
206
|
+
}),
|
|
207
|
+
_: 1
|
|
208
|
+
}, 8, ["label"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}),
|
|
212
|
+
t(a, { span: 24 }, {
|
|
213
|
+
default: l(() => [
|
|
214
|
+
t(r, {
|
|
215
|
+
label: o.$t("itsmFlowTemporary.userId"),
|
|
216
|
+
prop: "userId"
|
|
217
|
+
}, {
|
|
218
|
+
default: l(() => {
|
|
219
|
+
var e;
|
|
220
|
+
return [
|
|
221
|
+
i(s(m(f).userExtBizDict.getValue((e = n.value) == null ? void 0 : e.userId)), 1)
|
|
222
|
+
];
|
|
223
|
+
}),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["label"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}),
|
|
229
|
+
t(a, { span: 24 }, {
|
|
230
|
+
default: l(() => [
|
|
231
|
+
t(r, {
|
|
232
|
+
label: o.$t("itsmFlowTemporary.handlingPeriod"),
|
|
233
|
+
prop: "handlingPeriod"
|
|
234
|
+
}, {
|
|
235
|
+
default: l(() => {
|
|
236
|
+
var e;
|
|
237
|
+
return [
|
|
238
|
+
i(s((e = n.value) == null ? void 0 : e.handlingPeriod), 1)
|
|
239
|
+
];
|
|
240
|
+
}),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["label"])
|
|
243
|
+
]),
|
|
244
|
+
_: 1
|
|
245
|
+
})
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
})
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
}, 512)
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}, 8, ["modelValue"]);
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
export {
|
|
259
|
+
Q as _
|
|
260
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as K, mergeModels as O, ref as F, useModel as A, computed as P, resolveComponent as p, createBlock as j, openBlock as b, withCtx as t, createVNode as e, createElementVNode as n, createTextVNode as a, toDisplayString as s, unref as v, createElementBlock as g, createCommentVNode as M, withDirectives as I, vShow as $ } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { i as z, t as L, a as S } from "./common-Cwl5jzlM.mjs";
|
|
4
|
-
import { D as w,
|
|
4
|
+
import { D as w, a as q } from "./index-5rQmXXAD.mjs";
|
|
5
5
|
const T = { key: 0 }, G = { key: 1 }, H = {
|
|
6
6
|
key: 2,
|
|
7
7
|
class: "distance-left"
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import { defineComponent as U, mergeModels as K, useModel as z, ref as P, resolveComponent as m, createBlock as _, openBlock as f, withCtx as e, createVNode as l, createElementVNode as $, createCommentVNode as B, createTextVNode as r, toDisplayString as n, unref as c, createElementBlock as I, Fragment as C, renderList as N } from "vue";
|
|
2
|
+
import { D as b, i as R } from "./index-5rQmXXAD.mjs";
|
|
3
|
+
import { i as j, a as q } from "./index-BMCOCsW6.mjs";
|
|
4
|
+
import { fileApi as G } from "jmash-core";
|
|
5
|
+
import { rbacApi as H } from "jmash-rbac";
|
|
6
|
+
const Z = /* @__PURE__ */ U({
|
|
7
|
+
__name: "info",
|
|
8
|
+
props: /* @__PURE__ */ K({
|
|
9
|
+
entityKey: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: { type: Boolean },
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(V) {
|
|
20
|
+
const w = z(V, "modelValue");
|
|
21
|
+
b.budgetTypeDict.useValues();
|
|
22
|
+
const g = V, s = P();
|
|
23
|
+
j.findById({ flowSpareId: g.entityKey.flowSpareId }).then(({ data: a }) => {
|
|
24
|
+
s.value = a;
|
|
25
|
+
});
|
|
26
|
+
const D = P([]);
|
|
27
|
+
q.findList({ flowSpareId: g.entityKey.flowSpareId }).then((a) => {
|
|
28
|
+
D.value = a.data.results;
|
|
29
|
+
});
|
|
30
|
+
const k = P([]);
|
|
31
|
+
R.findFilesList({ actionId: g.entityKey.flowSpareId }).then((a) => {
|
|
32
|
+
k.value = a.data.results;
|
|
33
|
+
});
|
|
34
|
+
const h = (a) => {
|
|
35
|
+
var u;
|
|
36
|
+
return ((u = k.value) == null ? void 0 : u.filter((p) => p.fileSort === a)) || [];
|
|
37
|
+
};
|
|
38
|
+
async function L(a) {
|
|
39
|
+
try {
|
|
40
|
+
const u = G.fileUrl(a.filePath), i = await (await fetch(u)).blob(), v = window.URL.createObjectURL(i), d = document.createElement("a");
|
|
41
|
+
d.href = v, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
|
|
42
|
+
} catch {
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function O() {
|
|
46
|
+
w.value && (w.value = !1);
|
|
47
|
+
}
|
|
48
|
+
return (a, u) => {
|
|
49
|
+
const p = m("el-col"), i = m("el-form-item"), v = m("el-row"), d = m("el-table-column"), A = m("el-table"), E = m("el-button"), M = m("el-form"), T = m("el-dialog");
|
|
50
|
+
return f(), _(T, {
|
|
51
|
+
modelValue: w.value,
|
|
52
|
+
"onUpdate:modelValue": u[0] || (u[0] = (o) => w.value = o),
|
|
53
|
+
onClose: O
|
|
54
|
+
}, {
|
|
55
|
+
default: e(() => [
|
|
56
|
+
l(p, { span: 24 }, {
|
|
57
|
+
default: e(() => u[1] || (u[1] = [
|
|
58
|
+
$("div", { class: "title" }, "备品备件按需采购申请单", -1)
|
|
59
|
+
])),
|
|
60
|
+
_: 1,
|
|
61
|
+
__: [1]
|
|
62
|
+
}),
|
|
63
|
+
l(M, {
|
|
64
|
+
ref: "itsmFlowEntrustFormRef",
|
|
65
|
+
"label-width": "150px",
|
|
66
|
+
class: "custom-table-form custom-form"
|
|
67
|
+
}, {
|
|
68
|
+
default: e(() => [
|
|
69
|
+
l(v, null, {
|
|
70
|
+
default: e(() => {
|
|
71
|
+
var o, S, y;
|
|
72
|
+
return [
|
|
73
|
+
l(p, { span: 12 }, {
|
|
74
|
+
default: e(() => [
|
|
75
|
+
l(i, {
|
|
76
|
+
label: a.$t("itsmFlowSpareParts.govOrgId"),
|
|
77
|
+
prop: "govOrgId"
|
|
78
|
+
}, {
|
|
79
|
+
default: e(() => {
|
|
80
|
+
var t;
|
|
81
|
+
return [
|
|
82
|
+
r(n(c(b).orgIdBizDict.getValue((t = s.value) == null ? void 0 : t.orgId)), 1)
|
|
83
|
+
];
|
|
84
|
+
}),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["label"])
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}),
|
|
90
|
+
l(p, { span: 12 }, {
|
|
91
|
+
default: e(() => [
|
|
92
|
+
l(i, {
|
|
93
|
+
label: a.$t("itsmFlowSpareParts.type"),
|
|
94
|
+
prop: "type"
|
|
95
|
+
}, {
|
|
96
|
+
default: e(() => {
|
|
97
|
+
var t;
|
|
98
|
+
return [
|
|
99
|
+
r(n(c(b).purchaseTypeEnum.getEnumValue((t = s.value) == null ? void 0 : t.type)), 1)
|
|
100
|
+
];
|
|
101
|
+
}),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["label"])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}),
|
|
107
|
+
l(p, { span: 12 }, {
|
|
108
|
+
default: e(() => [
|
|
109
|
+
l(i, {
|
|
110
|
+
label: a.$t("itsmFlowSpareParts.applyPlace"),
|
|
111
|
+
prop: "applyPlace"
|
|
112
|
+
}, {
|
|
113
|
+
default: e(() => {
|
|
114
|
+
var t;
|
|
115
|
+
return [
|
|
116
|
+
r(n((t = s.value) == null ? void 0 : t.applyPlace), 1)
|
|
117
|
+
];
|
|
118
|
+
}),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["label"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}),
|
|
124
|
+
l(p, { span: 12 }, {
|
|
125
|
+
default: e(() => [
|
|
126
|
+
l(i, {
|
|
127
|
+
label: a.$t("itsmFlowSpareParts.annual"),
|
|
128
|
+
prop: "annual"
|
|
129
|
+
}, {
|
|
130
|
+
default: e(() => {
|
|
131
|
+
var t;
|
|
132
|
+
return [
|
|
133
|
+
r(n((t = s.value) == null ? void 0 : t.annual), 1)
|
|
134
|
+
];
|
|
135
|
+
}),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 8, ["label"])
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
((o = s.value) == null ? void 0 : o.type) !== "BudgetOut" ? (f(), _(p, {
|
|
142
|
+
key: 0,
|
|
143
|
+
span: 24
|
|
144
|
+
}, {
|
|
145
|
+
default: e(() => [
|
|
146
|
+
l(i, {
|
|
147
|
+
label: a.$t("itsmFlowSpareParts.itemId"),
|
|
148
|
+
prop: "itemId"
|
|
149
|
+
}, {
|
|
150
|
+
default: e(() => {
|
|
151
|
+
var t;
|
|
152
|
+
return [
|
|
153
|
+
r(n(c(b).itemBizLayDict.getValue((t = s.value) == null ? void 0 : t.itemId)), 1)
|
|
154
|
+
];
|
|
155
|
+
}),
|
|
156
|
+
_: 1
|
|
157
|
+
}, 8, ["label"])
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
})) : B("", !0),
|
|
161
|
+
((S = s.value) == null ? void 0 : S.type) !== "BudgetOut" ? (f(), _(p, {
|
|
162
|
+
key: 1,
|
|
163
|
+
span: 12
|
|
164
|
+
}, {
|
|
165
|
+
default: e(() => [
|
|
166
|
+
l(i, {
|
|
167
|
+
label: a.$t("itsmFlowSpareParts.budgetType"),
|
|
168
|
+
prop: "budgetType"
|
|
169
|
+
}, {
|
|
170
|
+
default: e(() => {
|
|
171
|
+
var t;
|
|
172
|
+
return [
|
|
173
|
+
r(n(c(b).budgetTypeDict.getValue((t = s.value) == null ? void 0 : t.budgetType)), 1)
|
|
174
|
+
];
|
|
175
|
+
}),
|
|
176
|
+
_: 1
|
|
177
|
+
}, 8, ["label"])
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
})) : B("", !0),
|
|
181
|
+
((y = s.value) == null ? void 0 : y.type) !== "BudgetOut" ? (f(), _(p, {
|
|
182
|
+
key: 2,
|
|
183
|
+
span: 12
|
|
184
|
+
}, {
|
|
185
|
+
default: e(() => [
|
|
186
|
+
l(i, {
|
|
187
|
+
label: a.$t("itsmFlowSpareParts.contractMoney"),
|
|
188
|
+
prop: "contractMoney"
|
|
189
|
+
}, {
|
|
190
|
+
default: e(() => {
|
|
191
|
+
var t;
|
|
192
|
+
return [
|
|
193
|
+
r(n((t = s.value) == null ? void 0 : t.contractMoney), 1)
|
|
194
|
+
];
|
|
195
|
+
}),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["label"])
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
})) : B("", !0),
|
|
201
|
+
l(p, { span: 12 }, {
|
|
202
|
+
default: e(() => [
|
|
203
|
+
l(i, {
|
|
204
|
+
label: a.$t("itsmFlowSpareParts.createBy"),
|
|
205
|
+
prop: "createBy"
|
|
206
|
+
}, {
|
|
207
|
+
default: e(() => {
|
|
208
|
+
var t, F;
|
|
209
|
+
return [
|
|
210
|
+
r(n((t = s.value) != null && t.createBy ? (F = c(H).userInfo(s.value.createBy)) == null ? void 0 : F.realName : ""), 1)
|
|
211
|
+
];
|
|
212
|
+
}),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 8, ["label"])
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}),
|
|
218
|
+
l(p, { span: 12 }, {
|
|
219
|
+
default: e(() => [
|
|
220
|
+
l(i, {
|
|
221
|
+
label: a.$t("itsmFlowSpareParts.applyDate"),
|
|
222
|
+
prop: "applyDate"
|
|
223
|
+
}, {
|
|
224
|
+
default: e(() => {
|
|
225
|
+
var t;
|
|
226
|
+
return [
|
|
227
|
+
r(n((t = s.value) == null ? void 0 : t.applyDate), 1)
|
|
228
|
+
];
|
|
229
|
+
}),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["label"])
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
})
|
|
235
|
+
];
|
|
236
|
+
}),
|
|
237
|
+
_: 1
|
|
238
|
+
}),
|
|
239
|
+
l(v, null, {
|
|
240
|
+
default: e(() => [
|
|
241
|
+
l(p, { span: 24 }, {
|
|
242
|
+
default: e(() => u[2] || (u[2] = [
|
|
243
|
+
$("div", { class: "title" }, "运维需求描述", -1)
|
|
244
|
+
])),
|
|
245
|
+
_: 1,
|
|
246
|
+
__: [2]
|
|
247
|
+
}),
|
|
248
|
+
l(p, { span: 24 }, {
|
|
249
|
+
default: e(() => [
|
|
250
|
+
l(A, {
|
|
251
|
+
stripe: "",
|
|
252
|
+
style: { width: "100%" },
|
|
253
|
+
data: D.value
|
|
254
|
+
}, {
|
|
255
|
+
default: e(() => [
|
|
256
|
+
l(d, {
|
|
257
|
+
prop: "type",
|
|
258
|
+
label: a.$t("itsmFlowSpareParts.type")
|
|
259
|
+
}, {
|
|
260
|
+
default: e((o) => [
|
|
261
|
+
r(n(o.row.type), 1)
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
}, 8, ["label"]),
|
|
265
|
+
l(d, {
|
|
266
|
+
prop: "name",
|
|
267
|
+
label: a.$t("itsmFlowSpareParts.name")
|
|
268
|
+
}, {
|
|
269
|
+
default: e((o) => [
|
|
270
|
+
r(n(o.row.name), 1)
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, ["label"]),
|
|
274
|
+
l(d, {
|
|
275
|
+
prop: "number",
|
|
276
|
+
label: a.$t("itsmFlowSpareParts.number")
|
|
277
|
+
}, {
|
|
278
|
+
default: e((o) => [
|
|
279
|
+
r(n(o.row.number), 1)
|
|
280
|
+
]),
|
|
281
|
+
_: 1
|
|
282
|
+
}, 8, ["label"]),
|
|
283
|
+
l(d, {
|
|
284
|
+
prop: "unit",
|
|
285
|
+
label: a.$t("itsmFlowSpareParts.unit")
|
|
286
|
+
}, {
|
|
287
|
+
default: e((o) => [
|
|
288
|
+
r(n(o.row.unit), 1)
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
}, 8, ["label"]),
|
|
292
|
+
l(d, {
|
|
293
|
+
prop: "parameter",
|
|
294
|
+
label: a.$t("itsmFlowSpareParts.parameter")
|
|
295
|
+
}, {
|
|
296
|
+
default: e((o) => [
|
|
297
|
+
r(n(o.row.parameter), 1)
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
}, 8, ["label"]),
|
|
301
|
+
l(d, {
|
|
302
|
+
prop: "valuation",
|
|
303
|
+
label: a.$t("itsmFlowSpareParts.valuation")
|
|
304
|
+
}, {
|
|
305
|
+
default: e((o) => [
|
|
306
|
+
r(n(o.row.valuation), 1)
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}, 8, ["label"]),
|
|
310
|
+
l(d, {
|
|
311
|
+
prop: "range",
|
|
312
|
+
label: a.$t("itsmFlowSpareParts.range")
|
|
313
|
+
}, {
|
|
314
|
+
default: e((o) => [
|
|
315
|
+
r(n(o.row.range), 1)
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}, 8, ["label"])
|
|
319
|
+
]),
|
|
320
|
+
_: 1
|
|
321
|
+
}, 8, ["data"])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
}),
|
|
325
|
+
l(p, {
|
|
326
|
+
span: 24,
|
|
327
|
+
class: "bordered-row"
|
|
328
|
+
}, {
|
|
329
|
+
default: e(() => [
|
|
330
|
+
(f(!0), I(C, null, N(c(b).fileTypeDict.values.slice(0, 2), (o, S) => (f(), _(i, {
|
|
331
|
+
key: o.dictCode,
|
|
332
|
+
label: o.dictName
|
|
333
|
+
}, {
|
|
334
|
+
default: e(() => [
|
|
335
|
+
(f(!0), I(C, null, N(h(o.dictCode), (y, t) => (f(), I("div", {
|
|
336
|
+
key: t,
|
|
337
|
+
class: "files-list"
|
|
338
|
+
}, [
|
|
339
|
+
$("span", null, n(y.fileName), 1),
|
|
340
|
+
l(E, {
|
|
341
|
+
type: "primary",
|
|
342
|
+
link: "",
|
|
343
|
+
size: "small",
|
|
344
|
+
class: "icon-right",
|
|
345
|
+
onClick: (F) => L(y)
|
|
346
|
+
}, {
|
|
347
|
+
default: e(() => u[3] || (u[3] = [
|
|
348
|
+
r(" 查看 ")
|
|
349
|
+
])),
|
|
350
|
+
_: 2,
|
|
351
|
+
__: [3]
|
|
352
|
+
}, 1032, ["onClick"])
|
|
353
|
+
]))), 128))
|
|
354
|
+
]),
|
|
355
|
+
_: 2
|
|
356
|
+
}, 1032, ["label"]))), 128))
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
})
|
|
360
|
+
]),
|
|
361
|
+
_: 1
|
|
362
|
+
})
|
|
363
|
+
]),
|
|
364
|
+
_: 1
|
|
365
|
+
}, 512)
|
|
366
|
+
]),
|
|
367
|
+
_: 1
|
|
368
|
+
}, 8, ["modelValue"]);
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
export {
|
|
373
|
+
Z as _
|
|
374
|
+
};
|