xyvcard-itsm-flow 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-AAIDp3Ys.mjs} +1 -1
- package/dist/edit-BC3HBHna.mjs +378 -0
- package/dist/{edit-DdzFTqhg.mjs → edit-CWx9fJF7.mjs} +1 -1
- package/dist/edit-CuL-MqiW.mjs +794 -0
- package/dist/{edit-Vw2XQ1u6.mjs → edit-XWSh98dW.mjs} +1 -1
- package/dist/edit-zRQs9w8y.mjs +492 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs → edit.vue_vue_type_script_setup_true_lang-BCVm7-Ex.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs → edit.vue_vue_type_script_setup_true_lang-BHgx58mh.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs → edit.vue_vue_type_script_setup_true_lang-Rs79eFoT.mjs} +2 -2
- package/dist/{el-message-DawVzOVQ.mjs → el-message-BJAl6Gwu.mjs} +1 -1
- package/dist/{index-g0KiWDPW.mjs → index--gw38QeR.mjs} +3 -3
- package/dist/index-3BgV8fss.mjs +396 -0
- package/dist/index-BDh2WCIf.mjs +316 -0
- package/dist/{index-CxyHtsq2.mjs → index-BFtKB0qe.mjs} +2 -2
- package/dist/{index-DaSMRndr.mjs → index-BLHnAUcn.mjs} +2 -2
- package/dist/index-BSRU0wyQ.mjs +479 -0
- package/dist/{index-DeerMT0Q.mjs → index-BYbmB9DD.mjs} +31 -29
- package/dist/{index-BI1uXq1f.mjs → index-Bom-5z91.mjs} +4 -4
- package/dist/index-BtiMpwj2.mjs +457 -0
- package/dist/{index-tnTugnqa.mjs → index-C-HQUPPS.mjs} +3 -3
- package/dist/{index-DB-P0VX0.mjs → index-C5pj6umx.mjs} +23 -22
- package/dist/{index-C7_kMdm5.mjs → index-CDKSx5IH.mjs} +2 -2
- package/dist/{index-Dooa5UH_.mjs → index-CLZfBnlo.mjs} +4 -4
- package/dist/index-COvZrTZl.mjs +278 -0
- package/dist/index-CXAtR6Vv.mjs +366 -0
- package/dist/index-CYJvDaI_.mjs +1371 -0
- package/dist/{index-PafaMNgK.mjs → index-CvX2It1o.mjs} +64 -30
- package/dist/index-D2AIn13F.mjs +339 -0
- package/dist/{index-Cgbv4Ijf.mjs → index-D7TvdZ0W.mjs} +180 -160
- package/dist/{index-7_pEehBt.mjs → index-DBRvKb1w.mjs} +2 -2
- package/dist/{index-CITy8Hqm.mjs → index-DFj2i4Kf.mjs} +4 -4
- package/dist/index-DNsy9Enp.mjs +272 -0
- package/dist/index-DQOGU1Vs.mjs +402 -0
- package/dist/index-D_PiZ_6x.mjs +749 -0
- package/dist/index-DesY4um_.mjs +330 -0
- package/dist/{index-Cqw8Rz4q.mjs → index-DkPqpjkA.mjs} +26 -24
- package/dist/index-Sm592CoC.mjs +273 -0
- package/dist/index-cjJjrvPP.mjs +390 -0
- package/dist/index-enjFe_Qb.mjs +400 -0
- package/dist/index-gWMTJ0gB.mjs +221 -0
- package/dist/index-o0oTSdUL.mjs +149 -0
- package/dist/index.mjs +1357 -1229
- package/dist/{info-8NydJYfB.mjs → info-06y0zz8D.mjs} +1 -1
- package/dist/{info-BbMCDfFR.mjs → info-BQh86EaI.mjs} +1 -1
- package/dist/{info-l0eP5Tw1.mjs → info-CYY7U06K.mjs} +1 -1
- package/dist/info-ClUXgnK1.mjs +4 -0
- package/dist/info-DJvahDDF.mjs +4 -0
- package/dist/info-nzbmqI2A.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs → info.vue_vue_type_script_setup_true_lang-7L5RJMrf.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs → info.vue_vue_type_script_setup_true_lang-BHjv3DSd.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs → info.vue_vue_type_script_setup_true_lang-D5eF48hb.mjs} +1 -1
- package/dist/info.vue_vue_type_script_setup_true_lang-DxArle2x.mjs +260 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-hwan7iwm.mjs +209 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-y8F2Xg5z.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 +11 -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,272 @@
|
|
|
1
|
+
import { defineComponent as A, mergeModels as z, getCurrentInstance as R, ref as _, useModel as Y, nextTick as j, resolveComponent as b, createElementBlock as v, openBlock as c, Fragment as k, createVNode as l, withCtx as e, createElementVNode as C, createTextVNode as r, toDisplayString as u, renderList as T, unref as w, createBlock as M } from "vue";
|
|
2
|
+
import "element-plus";
|
|
3
|
+
import { i as H } from "./index-o0oTSdUL.mjs";
|
|
4
|
+
import { D as m, i as K, C as W } from "./index-D7TvdZ0W.mjs";
|
|
5
|
+
import { useUserStoreHook as q, fileApi as G } from "jmash-core";
|
|
6
|
+
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const Q = /* @__PURE__ */ A({
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: /* @__PURE__ */ z({
|
|
10
|
+
task: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: {},
|
|
17
|
+
modelModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:modelValue"],
|
|
20
|
+
setup(F, { expose: V }) {
|
|
21
|
+
const { proxy: x } = R(), O = q();
|
|
22
|
+
m.userExtBizDict.useValues();
|
|
23
|
+
const h = _(), p = Y(F, "modelValue"), U = _({}), g = _([]), I = _([]), $ = _([]), n = _({}), L = F;
|
|
24
|
+
console.log(m.fileTypeDict.values.slice(2, 3)), console.log(m.fileTypeDict.values.slice(3, 4)), K.findFilesList({ actionId: L.task.businessKey }).then((t) => {
|
|
25
|
+
var o, f;
|
|
26
|
+
g.value = t.data.results, console.log(t.data.results, "=> files");
|
|
27
|
+
const s = ((o = m.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : o.dictCode) || "", a = ((f = m.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : f.dictCode) || "";
|
|
28
|
+
I.value = g.value.filter(
|
|
29
|
+
(i) => i.fileSort === s
|
|
30
|
+
), $.value = g.value.filter(
|
|
31
|
+
(i) => i.fileSort === a
|
|
32
|
+
);
|
|
33
|
+
}), H.findById({ temporaryId: L.task.businessKey }).then(({ data: t }) => {
|
|
34
|
+
n.value = t, n.value.outOrgId = t.outOrgId, j(() => {
|
|
35
|
+
Object.assign(n.value, t);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
async function N(t) {
|
|
39
|
+
try {
|
|
40
|
+
const s = G.fileUrl(t.filePath), o = await (await fetch(s)).blob(), f = window.URL.createObjectURL(o), i = document.createElement("a");
|
|
41
|
+
i.href = f, i.download = t.fileName || "download", document.body.appendChild(i), i.click();
|
|
42
|
+
} catch {
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
V({
|
|
46
|
+
changeModel: () => B()
|
|
47
|
+
});
|
|
48
|
+
function B() {
|
|
49
|
+
return p.value && (p.value.selectActions = [
|
|
50
|
+
{ key: "true", value: "同意" },
|
|
51
|
+
{ key: "false", value: "不同意" }
|
|
52
|
+
], p.value.varName = "approved", p.value.module = "", p.value.module = W.MODULE_ITSMFLOW), new Promise((t, s) => {
|
|
53
|
+
var a;
|
|
54
|
+
(a = h.value) == null || a.validate((o) => {
|
|
55
|
+
o ? (p.value && (p.value.comment = ""), t(!0)) : s(!1);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return (t, s) => {
|
|
60
|
+
const a = b("el-col"), o = b("el-form-item"), f = b("el-button"), i = b("el-row"), E = b("el-form");
|
|
61
|
+
return c(), v(k, null, [
|
|
62
|
+
l(a, { span: 24 }, {
|
|
63
|
+
default: e(() => s[0] || (s[0] = [
|
|
64
|
+
C("div", { class: "title" }, "内部临时工单", -1)
|
|
65
|
+
])),
|
|
66
|
+
_: 1,
|
|
67
|
+
__: [0]
|
|
68
|
+
}),
|
|
69
|
+
l(E, {
|
|
70
|
+
ref_key: "taskFormRef",
|
|
71
|
+
ref: h,
|
|
72
|
+
model: U.value,
|
|
73
|
+
"label-width": "150px",
|
|
74
|
+
class: "custom-table-form custom-form"
|
|
75
|
+
}, {
|
|
76
|
+
default: e(() => [
|
|
77
|
+
l(i, null, {
|
|
78
|
+
default: e(() => [
|
|
79
|
+
l(a, { span: 24 }, {
|
|
80
|
+
default: e(() => [
|
|
81
|
+
l(o, {
|
|
82
|
+
label: t.$t("itsmFlowTemporary.title"),
|
|
83
|
+
prop: "title"
|
|
84
|
+
}, {
|
|
85
|
+
default: e(() => [
|
|
86
|
+
r(u(n.value.title), 1)
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["label"])
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}),
|
|
93
|
+
l(a, { span: 24 }, {
|
|
94
|
+
default: e(() => [
|
|
95
|
+
l(o, {
|
|
96
|
+
label: t.$t("itsmFlowTemporary.content"),
|
|
97
|
+
prop: "content"
|
|
98
|
+
}, {
|
|
99
|
+
default: e(() => [
|
|
100
|
+
r(u(n.value.content), 1)
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["label"])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}),
|
|
107
|
+
l(a, { span: 24 }, {
|
|
108
|
+
default: e(() => [
|
|
109
|
+
(c(!0), v(k, null, T(w(m).fileTypeDict.values.slice(2, 3), (d, P) => (c(), M(o, {
|
|
110
|
+
key: d.dictCode,
|
|
111
|
+
label: d.dictName
|
|
112
|
+
}, {
|
|
113
|
+
default: e(() => [
|
|
114
|
+
(c(!0), v(k, null, T(I.value, (y, D) => (c(), v("div", {
|
|
115
|
+
key: D,
|
|
116
|
+
class: "files-list"
|
|
117
|
+
}, [
|
|
118
|
+
C("span", null, u(y.fileName), 1),
|
|
119
|
+
l(f, {
|
|
120
|
+
type: "primary",
|
|
121
|
+
link: "",
|
|
122
|
+
size: "small",
|
|
123
|
+
class: "icon-right",
|
|
124
|
+
onClick: (S) => N(y)
|
|
125
|
+
}, {
|
|
126
|
+
default: e(() => s[1] || (s[1] = [
|
|
127
|
+
r(" 查看 ")
|
|
128
|
+
])),
|
|
129
|
+
_: 2,
|
|
130
|
+
__: [1]
|
|
131
|
+
}, 1032, ["onClick"])
|
|
132
|
+
]))), 128))
|
|
133
|
+
]),
|
|
134
|
+
_: 2
|
|
135
|
+
}, 1032, ["label"]))), 128))
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}),
|
|
139
|
+
l(a, { span: 12 }, {
|
|
140
|
+
default: e(() => [
|
|
141
|
+
l(o, {
|
|
142
|
+
label: t.$t("itsmFlowTemporary.createUser")
|
|
143
|
+
}, {
|
|
144
|
+
default: e(() => [
|
|
145
|
+
r(u(w(O).user.realName), 1)
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["label"])
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}),
|
|
152
|
+
l(a, { span: 12 }, {
|
|
153
|
+
default: e(() => [
|
|
154
|
+
l(o, {
|
|
155
|
+
label: t.$t("itsmFlowTemporary.createTime"),
|
|
156
|
+
prop: "createTime"
|
|
157
|
+
}, {
|
|
158
|
+
default: e(() => {
|
|
159
|
+
var d;
|
|
160
|
+
return [
|
|
161
|
+
r(u(w(x).$moment.formatDate(
|
|
162
|
+
(d = n.value) == null ? void 0 : d.createTime,
|
|
163
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
164
|
+
)), 1)
|
|
165
|
+
];
|
|
166
|
+
}),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["label"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}),
|
|
172
|
+
l(a, { span: 24 }, {
|
|
173
|
+
default: e(() => [
|
|
174
|
+
l(o, {
|
|
175
|
+
label: t.$t("itsmFlowTemporary.userId"),
|
|
176
|
+
prop: "userId"
|
|
177
|
+
}, {
|
|
178
|
+
default: e(() => [
|
|
179
|
+
r(u(w(m).userExtBizDict.getValue(n.value.userId)), 1)
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["label"])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}),
|
|
186
|
+
l(a, { span: 12 }, {
|
|
187
|
+
default: e(() => [
|
|
188
|
+
l(o, {
|
|
189
|
+
label: t.$t("itsmFlowTemporary.handlingPeriod"),
|
|
190
|
+
prop: "handlingPeriod"
|
|
191
|
+
}, {
|
|
192
|
+
default: e(() => [
|
|
193
|
+
r(u(n.value.handlingPeriod), 1)
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
}, 8, ["label"])
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}),
|
|
200
|
+
l(a, { span: 12 }, {
|
|
201
|
+
default: e(() => [
|
|
202
|
+
l(o, {
|
|
203
|
+
label: t.$t("itsmFlowTemporary.finishDate"),
|
|
204
|
+
prop: "finishDate"
|
|
205
|
+
}, {
|
|
206
|
+
default: e(() => [
|
|
207
|
+
r(u(n.value.finishDate), 1)
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["label"])
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
}),
|
|
214
|
+
l(a, { span: 24 }, {
|
|
215
|
+
default: e(() => [
|
|
216
|
+
l(o, {
|
|
217
|
+
label: t.$t("itsmFlowTemporary.completion"),
|
|
218
|
+
prop: "completion"
|
|
219
|
+
}, {
|
|
220
|
+
default: e(() => [
|
|
221
|
+
r(u(n.value.completion), 1)
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}, 8, ["label"])
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}),
|
|
228
|
+
l(a, { span: 24 }, {
|
|
229
|
+
default: e(() => [
|
|
230
|
+
(c(!0), v(k, null, T(w(m).fileTypeDict.values.slice(3, 4), (d, P) => (c(), M(o, {
|
|
231
|
+
key: d.dictCode,
|
|
232
|
+
label: d.dictName
|
|
233
|
+
}, {
|
|
234
|
+
default: e(() => [
|
|
235
|
+
(c(!0), v(k, null, T($.value, (y, D) => (c(), v("div", {
|
|
236
|
+
key: D,
|
|
237
|
+
class: "files-list"
|
|
238
|
+
}, [
|
|
239
|
+
C("span", null, u(y.fileName), 1),
|
|
240
|
+
l(f, {
|
|
241
|
+
type: "primary",
|
|
242
|
+
link: "",
|
|
243
|
+
size: "small",
|
|
244
|
+
class: "icon-right",
|
|
245
|
+
onClick: (S) => N(y)
|
|
246
|
+
}, {
|
|
247
|
+
default: e(() => s[2] || (s[2] = [
|
|
248
|
+
r(" 查看 ")
|
|
249
|
+
])),
|
|
250
|
+
_: 2,
|
|
251
|
+
__: [2]
|
|
252
|
+
}, 1032, ["onClick"])
|
|
253
|
+
]))), 128))
|
|
254
|
+
]),
|
|
255
|
+
_: 2
|
|
256
|
+
}, 1032, ["label"]))), 128))
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
})
|
|
260
|
+
]),
|
|
261
|
+
_: 1
|
|
262
|
+
})
|
|
263
|
+
]),
|
|
264
|
+
_: 1
|
|
265
|
+
}, 8, ["model"])
|
|
266
|
+
], 64);
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
}), oe = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-4ca61881"]]);
|
|
270
|
+
export {
|
|
271
|
+
oe as default
|
|
272
|
+
};
|
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import { defineComponent as J, ref as S, reactive as R, onActivated as X, resolveComponent as s, resolveDirective as Z, createElementBlock as h, openBlock as m, createElementVNode as b, createVNode as o, createBlock as I, 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
|
+
import { useTableHooks as ee } from "jmash-core";
|
|
3
|
+
import { useI18n as te } from "vue-i18n";
|
|
4
|
+
import { i as le } from "./index-COvZrTZl.mjs";
|
|
5
|
+
import ae from "./edit-CuL-MqiW.mjs";
|
|
6
|
+
import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-y8F2Xg5z.mjs";
|
|
7
|
+
import { D as p, C as re } from "./index-D7TvdZ0W.mjs";
|
|
8
|
+
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de = ["onClick"], me = /* @__PURE__ */ J({
|
|
10
|
+
__name: "index",
|
|
11
|
+
setup(ce) {
|
|
12
|
+
p.itemBizLayDict.useValues(), p.orgIdBizDict.useValues();
|
|
13
|
+
const { t: f } = te(), n = S({
|
|
14
|
+
applyStatus: re.applyStatus.draft
|
|
15
|
+
}), {
|
|
16
|
+
tableHooks: u,
|
|
17
|
+
multipleTableRef: U,
|
|
18
|
+
queryFormRef: B,
|
|
19
|
+
listLoading: E,
|
|
20
|
+
tableData: N,
|
|
21
|
+
total: V
|
|
22
|
+
} = ee(f, le, n);
|
|
23
|
+
let w = S([
|
|
24
|
+
{
|
|
25
|
+
label: "itsmFlowSpareParts.applyStatus",
|
|
26
|
+
prop: "applyStatus",
|
|
27
|
+
width: "105",
|
|
28
|
+
sortable: "custom",
|
|
29
|
+
slotName: "applyStatus",
|
|
30
|
+
columnType: "slot",
|
|
31
|
+
isColumn: !0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "itsmFlowSpareParts.govOrgId",
|
|
35
|
+
prop: "orgId",
|
|
36
|
+
slotName: "orgId",
|
|
37
|
+
columnType: "slot",
|
|
38
|
+
minWidth: "150",
|
|
39
|
+
sortable: "custom",
|
|
40
|
+
isColumn: !0
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "itsmFlowSpareParts.itemId",
|
|
44
|
+
prop: "itemId",
|
|
45
|
+
width: "150",
|
|
46
|
+
sortable: "custom",
|
|
47
|
+
isColumn: !0,
|
|
48
|
+
slotName: "itemId",
|
|
49
|
+
columnType: "slot"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "itsmFlowSpareParts.annual",
|
|
53
|
+
prop: "annual",
|
|
54
|
+
width: "105",
|
|
55
|
+
sortable: "custom",
|
|
56
|
+
isColumn: !0
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: "itsmFlowSpareParts.type",
|
|
60
|
+
prop: "type",
|
|
61
|
+
width: "105",
|
|
62
|
+
sortable: "custom",
|
|
63
|
+
isColumn: !0,
|
|
64
|
+
slotName: "type",
|
|
65
|
+
columnType: "slot"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "itsmFlowSpareParts.applyPlace",
|
|
69
|
+
prop: "applyPlace",
|
|
70
|
+
width: "150",
|
|
71
|
+
sortable: "custom",
|
|
72
|
+
isColumn: !0
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: "itsmFlowSpareParts.budgetType",
|
|
76
|
+
prop: "budgetType",
|
|
77
|
+
width: "105",
|
|
78
|
+
sortable: "custom",
|
|
79
|
+
isColumn: !0
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: "itsmFlowSpareParts.contractMoney",
|
|
83
|
+
prop: "contractMoney",
|
|
84
|
+
width: "105",
|
|
85
|
+
sortable: "custom",
|
|
86
|
+
isColumn: !0
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: "itsmFlowSpareParts.applyDate",
|
|
90
|
+
prop: "applyDate",
|
|
91
|
+
width: "105",
|
|
92
|
+
sortable: "custom",
|
|
93
|
+
isColumn: !0
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: "common.operate",
|
|
97
|
+
width: "140",
|
|
98
|
+
slotName: "operation",
|
|
99
|
+
columnType: "slot",
|
|
100
|
+
fixed: "right",
|
|
101
|
+
isColumn: !0
|
|
102
|
+
}
|
|
103
|
+
]);
|
|
104
|
+
const d = S({
|
|
105
|
+
title: f("common.edit"),
|
|
106
|
+
visible: !1
|
|
107
|
+
});
|
|
108
|
+
S(!1);
|
|
109
|
+
let _ = R({});
|
|
110
|
+
function j() {
|
|
111
|
+
_ = R({}), d.value.title = f("common.add"), d.value.visible = !0;
|
|
112
|
+
}
|
|
113
|
+
function L(a) {
|
|
114
|
+
_.flowSpareId = a.flowSpareId, d.value.title = f("common.edit"), d.value.visible = !0;
|
|
115
|
+
}
|
|
116
|
+
const v = S({
|
|
117
|
+
title: f("common.view"),
|
|
118
|
+
visible: !1
|
|
119
|
+
});
|
|
120
|
+
function Y(a) {
|
|
121
|
+
_ = { ...a }, v.value.title = f("common.view"), v.value.visible = !0;
|
|
122
|
+
}
|
|
123
|
+
function q(a) {
|
|
124
|
+
u.selectionRows.value = a;
|
|
125
|
+
}
|
|
126
|
+
function O(a) {
|
|
127
|
+
u.handleSort(a.prop, a.order);
|
|
128
|
+
}
|
|
129
|
+
function A(a) {
|
|
130
|
+
a && u.getList();
|
|
131
|
+
}
|
|
132
|
+
return X(() => {
|
|
133
|
+
u.getList();
|
|
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"), P = Z("hasPerm");
|
|
136
|
+
return m(), h("div", se, [
|
|
137
|
+
b("div", ie, [
|
|
138
|
+
o(Q, {
|
|
139
|
+
ref_key: "queryFormRef",
|
|
140
|
+
ref: B,
|
|
141
|
+
model: n.value,
|
|
142
|
+
inline: !0
|
|
143
|
+
}, {
|
|
144
|
+
default: l(() => [
|
|
145
|
+
o(F, null, {
|
|
146
|
+
default: l(() => [
|
|
147
|
+
o(c, { span: 6 }, {
|
|
148
|
+
default: l(() => [
|
|
149
|
+
o(g, {
|
|
150
|
+
label: a.$t("itsmFlowSpareParts.govOrgId"),
|
|
151
|
+
prop: "govOrgId"
|
|
152
|
+
}, {
|
|
153
|
+
default: l(() => [
|
|
154
|
+
o(k, {
|
|
155
|
+
modelValue: n.value.govOrgId,
|
|
156
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.govOrgId = e),
|
|
157
|
+
placeholder: a.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
158
|
+
data: r(p).orgIdBizDict.values,
|
|
159
|
+
clearable: "",
|
|
160
|
+
filterable: ""
|
|
161
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["label"])
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}),
|
|
168
|
+
o(c, { span: 6 }, {
|
|
169
|
+
default: l(() => [
|
|
170
|
+
o(g, {
|
|
171
|
+
label: a.$t("itsmFlowSpareParts.itemId"),
|
|
172
|
+
prop: "itemId"
|
|
173
|
+
}, {
|
|
174
|
+
default: l(() => [
|
|
175
|
+
o(k, {
|
|
176
|
+
modelValue: n.value.itemId,
|
|
177
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => n.value.itemId = e),
|
|
178
|
+
placeholder: a.$t("itsmFlowSpareParts.itemIdRequired"),
|
|
179
|
+
data: r(p).itemBizLayDict.values,
|
|
180
|
+
clearable: "",
|
|
181
|
+
filterable: ""
|
|
182
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["label"])
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}),
|
|
189
|
+
o(c, { span: 6 }, {
|
|
190
|
+
default: l(() => [
|
|
191
|
+
o(g, {
|
|
192
|
+
label: a.$t("itsmFlowSpareParts.annual"),
|
|
193
|
+
prop: "annual"
|
|
194
|
+
}, {
|
|
195
|
+
default: l(() => [
|
|
196
|
+
o(K, {
|
|
197
|
+
modelValue: n.value.annual,
|
|
198
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.annual = e),
|
|
199
|
+
type: "year",
|
|
200
|
+
placeholder: a.$t("itsmFlowSpareParts.annualRequired"),
|
|
201
|
+
format: "YYYY",
|
|
202
|
+
"value-format": "YYYY",
|
|
203
|
+
clearable: !1,
|
|
204
|
+
class: "!w-[203px]"
|
|
205
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}, 8, ["label"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}),
|
|
212
|
+
o(c, { span: 6 }, {
|
|
213
|
+
default: l(() => [
|
|
214
|
+
o(g, {
|
|
215
|
+
label: a.$t("itsmFlowSpareParts.type"),
|
|
216
|
+
prop: "type"
|
|
217
|
+
}, {
|
|
218
|
+
default: l(() => [
|
|
219
|
+
o(k, {
|
|
220
|
+
modelValue: n.value.type,
|
|
221
|
+
"onUpdate:modelValue": t[3] || (t[3] = (e) => n.value.type = e),
|
|
222
|
+
placeholder: a.$t("itsmFlowSpareParts.typeRequired"),
|
|
223
|
+
data: r(p).purchaseTypeEnum.values,
|
|
224
|
+
onKeyup: t[4] || (t[4] = x((e) => r(u).handleQuery(), ["enter"])),
|
|
225
|
+
clearable: ""
|
|
226
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 8, ["label"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
})
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}),
|
|
236
|
+
o(F, null, {
|
|
237
|
+
default: l(() => [
|
|
238
|
+
o(c, { span: 24 }, {
|
|
239
|
+
default: l(() => [
|
|
240
|
+
o(g, { class: "search-btn" }, {
|
|
241
|
+
default: l(() => [
|
|
242
|
+
o($, {
|
|
243
|
+
type: "primary",
|
|
244
|
+
onClick: t[5] || (t[5] = (e) => r(u).handleQuery())
|
|
245
|
+
}, {
|
|
246
|
+
default: l(() => [
|
|
247
|
+
y(i(a.$t("common.search")), 1)
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
}),
|
|
251
|
+
o($, {
|
|
252
|
+
onClick: t[6] || (t[6] = (e) => r(u).resetQuery())
|
|
253
|
+
}, {
|
|
254
|
+
default: l(() => [
|
|
255
|
+
y(i(a.$t("common.reset")), 1)
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
})
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
})
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
})
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
})
|
|
268
|
+
]),
|
|
269
|
+
_: 1
|
|
270
|
+
}, 8, ["model"]),
|
|
271
|
+
t[14] || (t[14] = b("div", { class: "clear" }, null, -1))
|
|
272
|
+
]),
|
|
273
|
+
o(G, {
|
|
274
|
+
shadow: "never",
|
|
275
|
+
class: "table-container"
|
|
276
|
+
}, {
|
|
277
|
+
header: l(() => [
|
|
278
|
+
o(F, null, {
|
|
279
|
+
default: l(() => [
|
|
280
|
+
o(c, { span: 17 }, {
|
|
281
|
+
default: l(() => [
|
|
282
|
+
C((m(), I($, {
|
|
283
|
+
type: "primary",
|
|
284
|
+
onClick: j
|
|
285
|
+
}, {
|
|
286
|
+
default: l(() => [
|
|
287
|
+
y(i(a.$t("common.add")), 1)
|
|
288
|
+
]),
|
|
289
|
+
_: 1
|
|
290
|
+
})), [
|
|
291
|
+
[P, ["reports:itsm_flow_spare_parts:add"]]
|
|
292
|
+
])
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
}),
|
|
296
|
+
o(c, {
|
|
297
|
+
span: 7,
|
|
298
|
+
class: "container-float"
|
|
299
|
+
}, {
|
|
300
|
+
default: l(() => [
|
|
301
|
+
o(H, {
|
|
302
|
+
modelValue: r(w),
|
|
303
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => z(w) ? w.value = e : w = e),
|
|
304
|
+
"label-name": "reports/itsm-flow-spare-parts"
|
|
305
|
+
}, null, 8, ["modelValue"])
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
})
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
})
|
|
312
|
+
]),
|
|
313
|
+
footer: l(() => [
|
|
314
|
+
r(V) > 0 ? (m(), I(W, {
|
|
315
|
+
key: 0,
|
|
316
|
+
total: r(V),
|
|
317
|
+
"onUpdate:total": t[8] || (t[8] = (e) => z(V) ? V.value = e : null),
|
|
318
|
+
"current-page": n.value.curPage,
|
|
319
|
+
"onUpdate:currentPage": t[9] || (t[9] = (e) => n.value.curPage = e),
|
|
320
|
+
"page-size": n.value.pageSize,
|
|
321
|
+
"onUpdate:pageSize": t[10] || (t[10] = (e) => n.value.pageSize = e),
|
|
322
|
+
onPagination: t[11] || (t[11] = (e) => r(u).getList())
|
|
323
|
+
}, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
|
|
324
|
+
]),
|
|
325
|
+
default: l(() => [
|
|
326
|
+
o(M, {
|
|
327
|
+
ref_key: "multipleTableRef",
|
|
328
|
+
ref: U,
|
|
329
|
+
"row-key": "flowSpareId",
|
|
330
|
+
"v-loading": r(E),
|
|
331
|
+
data: r(N),
|
|
332
|
+
"table-label": r(w),
|
|
333
|
+
onSelectionChange: q,
|
|
334
|
+
onSortChange: O
|
|
335
|
+
}, {
|
|
336
|
+
orgId: l((e) => [
|
|
337
|
+
b("span", null, i(r(p).orgIdBizDict.getValue(e.data.row.orgId)), 1)
|
|
338
|
+
]),
|
|
339
|
+
applyStatus: l((e) => [
|
|
340
|
+
b("span", null, i(r(p).applyStatusEnum.getEnumValue(e.data.row.applyStatus)), 1)
|
|
341
|
+
]),
|
|
342
|
+
type: l((e) => [
|
|
343
|
+
b("span", null, i(r(p).purchaseTypeEnum.getEnumValue(e.data.row.type)), 1)
|
|
344
|
+
]),
|
|
345
|
+
itemId: l((e) => [
|
|
346
|
+
b("span", null, i(r(p).itemBizLayDict.getValue(e.data.row.itemId)), 1)
|
|
347
|
+
]),
|
|
348
|
+
operation: l((e) => [
|
|
349
|
+
C((m(), h("span", {
|
|
350
|
+
class: "el-button-color",
|
|
351
|
+
onClick: (T) => L(e.data.row)
|
|
352
|
+
}, [
|
|
353
|
+
y(i(a.$t("common.edit")), 1)
|
|
354
|
+
], 8, ue)), [
|
|
355
|
+
[P, ["reports:itsm_flow_spare_parts:update"]]
|
|
356
|
+
]),
|
|
357
|
+
C((m(), h("span", {
|
|
358
|
+
class: "el-button-color dropdown-left",
|
|
359
|
+
onClick: (T) => r(u).deleteRecord(e.data.row)
|
|
360
|
+
}, [
|
|
361
|
+
y(i(a.$t("common.delete")), 1)
|
|
362
|
+
], 8, pe)), [
|
|
363
|
+
[P, ["reports:itsm_flow_spare_parts:delete"]]
|
|
364
|
+
]),
|
|
365
|
+
C((m(), h("span", {
|
|
366
|
+
class: "el-button-color dropdown-left",
|
|
367
|
+
onClick: (T) => Y(e.data.row)
|
|
368
|
+
}, [
|
|
369
|
+
y(i(a.$t("common.view")), 1)
|
|
370
|
+
], 8, de)), [
|
|
371
|
+
[P, ["itsmflow:itsm_flow_entrust:view"]]
|
|
372
|
+
])
|
|
373
|
+
]),
|
|
374
|
+
_: 1
|
|
375
|
+
}, 8, ["v-loading", "data", "table-label"])
|
|
376
|
+
]),
|
|
377
|
+
_: 1
|
|
378
|
+
}),
|
|
379
|
+
d.value.visible ? (m(), I(ae, {
|
|
380
|
+
key: 0,
|
|
381
|
+
modelValue: d.value.visible,
|
|
382
|
+
"onUpdate:modelValue": t[12] || (t[12] = (e) => d.value.visible = e),
|
|
383
|
+
title: d.value.title,
|
|
384
|
+
"entity-key": r(_),
|
|
385
|
+
onRefresh: A,
|
|
386
|
+
width: "1200px"
|
|
387
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0),
|
|
388
|
+
v.value.visible ? (m(), I(oe, {
|
|
389
|
+
key: 1,
|
|
390
|
+
modelValue: v.value.visible,
|
|
391
|
+
"onUpdate:modelValue": t[13] || (t[13] = (e) => v.value.visible = e),
|
|
392
|
+
title: v.value.title,
|
|
393
|
+
"entity-key": r(_),
|
|
394
|
+
width: "900px"
|
|
395
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0)
|
|
396
|
+
]);
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
}), Ve = /* @__PURE__ */ ne(me, [["__scopeId", "data-v-0afd0049"]]);
|
|
400
|
+
export {
|
|
401
|
+
Ve as default
|
|
402
|
+
};
|