xyvcard-itsm-flow 0.0.20 → 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-54evOMFJ.mjs → index-BYbmB9DD.mjs} +2 -2
- 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-DyOibT57.mjs → index-C5pj6umx.mjs} +2 -2
- 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-v18knD_f.mjs → index-DkPqpjkA.mjs} +2 -2
- 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,330 @@
|
|
|
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
|
+
import { useTableHooks as le } from "jmash-core";
|
|
3
|
+
import { useI18n as ae } from "vue-i18n";
|
|
4
|
+
import { i as re } from "./index-o0oTSdUL.mjs";
|
|
5
|
+
import ne from "./edit-BC3HBHna.mjs";
|
|
6
|
+
import { _ as ie } from "./info.vue_vue_type_script_setup_true_lang-hwan7iwm.mjs";
|
|
7
|
+
import { D as w, O as se, C as P } from "./index-D7TvdZ0W.mjs";
|
|
8
|
+
import { rbacApi as me } from "jmash-rbac";
|
|
9
|
+
const ue = { class: "app-container" }, de = { class: "search-container" }, pe = { key: 0 }, ce = ["onClick"], fe = ["onClick"], ye = ["onClick"], Ie = /* @__PURE__ */ X({
|
|
10
|
+
__name: "index",
|
|
11
|
+
setup(ve) {
|
|
12
|
+
const { proxy: U } = Z();
|
|
13
|
+
w.itemBizLayDict.useValues(), w.orgIdBizDict.useValues(), w.userExtBizDict.useValues(), new se({ orgType: "OUTSOURCE" }).useValues();
|
|
14
|
+
const { t: c } = ae(), i = k({
|
|
15
|
+
temporaryType: P.Internal,
|
|
16
|
+
applyStatus: P.applyStatus.draft
|
|
17
|
+
}), {
|
|
18
|
+
tableHooks: s,
|
|
19
|
+
multipleTableRef: N,
|
|
20
|
+
queryFormRef: j,
|
|
21
|
+
listLoading: E,
|
|
22
|
+
tableData: L,
|
|
23
|
+
total: g
|
|
24
|
+
} = le(c, re, i);
|
|
25
|
+
let y = k([
|
|
26
|
+
{
|
|
27
|
+
label: "itsmFlowTemporary.title",
|
|
28
|
+
prop: "title",
|
|
29
|
+
minWidth: "150",
|
|
30
|
+
sortable: "custom",
|
|
31
|
+
isColumn: !0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "itsmFlowTemporary.content",
|
|
35
|
+
prop: "content",
|
|
36
|
+
minWidth: "150",
|
|
37
|
+
sortable: "custom",
|
|
38
|
+
isColumn: !0
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: "itsmFlowTemporary.userId",
|
|
42
|
+
prop: "userId",
|
|
43
|
+
slotName: "userId",
|
|
44
|
+
columnType: "slot",
|
|
45
|
+
width: "150",
|
|
46
|
+
sortable: "custom",
|
|
47
|
+
isColumn: !0
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: "itsmFlowTemporary.handlingPeriod",
|
|
51
|
+
prop: "handlingPeriod",
|
|
52
|
+
width: "105",
|
|
53
|
+
sortable: "custom",
|
|
54
|
+
isColumn: !0
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: "itsmFlowTemporary.createBy",
|
|
58
|
+
prop: "createBy",
|
|
59
|
+
slotName: "createBy",
|
|
60
|
+
columnType: "slot",
|
|
61
|
+
width: "150",
|
|
62
|
+
sortable: "custom",
|
|
63
|
+
isColumn: !0
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: "itsmFlowTemporary.createTime",
|
|
67
|
+
prop: "createTime",
|
|
68
|
+
slotName: "createTime",
|
|
69
|
+
columnType: "slot",
|
|
70
|
+
width: "170",
|
|
71
|
+
sortable: "custom",
|
|
72
|
+
isColumn: !0
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: "common.operate",
|
|
76
|
+
width: "140",
|
|
77
|
+
slotName: "operation",
|
|
78
|
+
columnType: "slot",
|
|
79
|
+
fixed: "right",
|
|
80
|
+
isColumn: !0
|
|
81
|
+
}
|
|
82
|
+
]);
|
|
83
|
+
const d = k({
|
|
84
|
+
title: c("common.edit"),
|
|
85
|
+
visible: !1
|
|
86
|
+
}), f = k({
|
|
87
|
+
title: c("common.view"),
|
|
88
|
+
visible: !1
|
|
89
|
+
});
|
|
90
|
+
let v = z({});
|
|
91
|
+
function q() {
|
|
92
|
+
v = z({}), d.value.title = c("common.add"), d.value.visible = !0;
|
|
93
|
+
}
|
|
94
|
+
function A(o) {
|
|
95
|
+
v.temporaryId = o.temporaryId, d.value.title = c("common.edit"), d.value.visible = !0;
|
|
96
|
+
}
|
|
97
|
+
function H(o) {
|
|
98
|
+
v.temporaryId = o.temporaryId, f.value.title = c("common.view"), f.value.visible = !0;
|
|
99
|
+
}
|
|
100
|
+
function O(o) {
|
|
101
|
+
s.selectionRows.value = o;
|
|
102
|
+
}
|
|
103
|
+
function Y(o) {
|
|
104
|
+
s.handleSort(o.prop, o.order);
|
|
105
|
+
}
|
|
106
|
+
function B(o) {
|
|
107
|
+
o && s.getList();
|
|
108
|
+
}
|
|
109
|
+
return ee(() => {
|
|
110
|
+
s.getList();
|
|
111
|
+
}), (o, t) => {
|
|
112
|
+
const K = n("jmash-select"), I = n("el-form-item"), b = n("el-col"), Q = n("el-input"), D = n("el-button"), F = n("el-row"), x = n("el-form"), M = n("jmash-column-select"), W = n("jmash-table"), G = n("jmash-pagination"), J = n("el-card"), T = te("hasPerm");
|
|
113
|
+
return m(), _("div", ue, [
|
|
114
|
+
$("div", de, [
|
|
115
|
+
a(x, {
|
|
116
|
+
ref_key: "queryFormRef",
|
|
117
|
+
ref: j,
|
|
118
|
+
model: i.value,
|
|
119
|
+
inline: !0
|
|
120
|
+
}, {
|
|
121
|
+
default: l(() => [
|
|
122
|
+
a(F, null, {
|
|
123
|
+
default: l(() => [
|
|
124
|
+
a(b, { span: 6 }, {
|
|
125
|
+
default: l(() => [
|
|
126
|
+
a(I, {
|
|
127
|
+
label: o.$t("itsmFlowSpareParts.itemId"),
|
|
128
|
+
prop: "itemId"
|
|
129
|
+
}, {
|
|
130
|
+
default: l(() => [
|
|
131
|
+
a(K, {
|
|
132
|
+
modelValue: i.value.itemId,
|
|
133
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.value.itemId = e),
|
|
134
|
+
placeholder: o.$t("itsmFlowSpareParts.itemIdRequired"),
|
|
135
|
+
data: r(w).itemBizLayDict.values,
|
|
136
|
+
clearable: "",
|
|
137
|
+
filterable: ""
|
|
138
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
}, 8, ["label"])
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
}),
|
|
145
|
+
a(b, { span: 6 }, {
|
|
146
|
+
default: l(() => [
|
|
147
|
+
a(I, {
|
|
148
|
+
label: o.$t("itsmFlowTemporary.likeTitle"),
|
|
149
|
+
prop: "likeTitle"
|
|
150
|
+
}, {
|
|
151
|
+
default: l(() => [
|
|
152
|
+
a(Q, {
|
|
153
|
+
modelValue: i.value.likeTitle,
|
|
154
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => i.value.likeTitle = e),
|
|
155
|
+
placeholder: o.$t("itsmFlowTemporary.likeTitleRequired"),
|
|
156
|
+
onKeyup: t[2] || (t[2] = oe((e) => r(s).handleQuery(), ["enter"])),
|
|
157
|
+
class: "!w-[203px]"
|
|
158
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["label"])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}),
|
|
165
|
+
a(b, { span: 12 }, {
|
|
166
|
+
default: l(() => [
|
|
167
|
+
a(I, { class: "search-btn" }, {
|
|
168
|
+
default: l(() => [
|
|
169
|
+
a(D, {
|
|
170
|
+
type: "primary",
|
|
171
|
+
onClick: t[3] || (t[3] = (e) => r(s).handleQuery())
|
|
172
|
+
}, {
|
|
173
|
+
default: l(() => [
|
|
174
|
+
p(u(o.$t("common.search")), 1)
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}),
|
|
178
|
+
a(D, {
|
|
179
|
+
onClick: t[4] || (t[4] = (e) => r(s).resetQuery())
|
|
180
|
+
}, {
|
|
181
|
+
default: l(() => [
|
|
182
|
+
p(u(o.$t("common.reset")), 1)
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
})
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
})
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["model"]),
|
|
198
|
+
t[12] || (t[12] = $("div", { class: "clear" }, null, -1))
|
|
199
|
+
]),
|
|
200
|
+
a(J, {
|
|
201
|
+
shadow: "never",
|
|
202
|
+
class: "table-container"
|
|
203
|
+
}, {
|
|
204
|
+
header: l(() => [
|
|
205
|
+
a(F, null, {
|
|
206
|
+
default: l(() => [
|
|
207
|
+
a(b, { span: 17 }, {
|
|
208
|
+
default: l(() => [
|
|
209
|
+
V((m(), h(D, {
|
|
210
|
+
type: "primary",
|
|
211
|
+
onClick: q
|
|
212
|
+
}, {
|
|
213
|
+
default: l(() => [
|
|
214
|
+
p(u(o.$t("common.add")), 1)
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
})), [
|
|
218
|
+
[T, ["reports:itsm_flow_temporary:add"]]
|
|
219
|
+
])
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}),
|
|
223
|
+
a(b, {
|
|
224
|
+
span: 7,
|
|
225
|
+
class: "container-float"
|
|
226
|
+
}, {
|
|
227
|
+
default: l(() => [
|
|
228
|
+
a(M, {
|
|
229
|
+
modelValue: r(y),
|
|
230
|
+
"onUpdate:modelValue": t[5] || (t[5] = (e) => R(y) ? y.value = e : y = e),
|
|
231
|
+
"label-name": "reports/itsm-flow-temporary"
|
|
232
|
+
}, null, 8, ["modelValue"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
})
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
})
|
|
239
|
+
]),
|
|
240
|
+
footer: l(() => [
|
|
241
|
+
r(g) > 0 ? (m(), h(G, {
|
|
242
|
+
key: 0,
|
|
243
|
+
total: r(g),
|
|
244
|
+
"onUpdate:total": t[6] || (t[6] = (e) => R(g) ? g.value = e : null),
|
|
245
|
+
"current-page": i.value.curPage,
|
|
246
|
+
"onUpdate:currentPage": t[7] || (t[7] = (e) => i.value.curPage = e),
|
|
247
|
+
"page-size": i.value.pageSize,
|
|
248
|
+
"onUpdate:pageSize": t[8] || (t[8] = (e) => i.value.pageSize = e),
|
|
249
|
+
onPagination: t[9] || (t[9] = (e) => r(s).getList())
|
|
250
|
+
}, null, 8, ["total", "current-page", "page-size"])) : C("", !0)
|
|
251
|
+
]),
|
|
252
|
+
default: l(() => [
|
|
253
|
+
a(W, {
|
|
254
|
+
ref_key: "multipleTableRef",
|
|
255
|
+
ref: N,
|
|
256
|
+
"row-key": "temporaryId",
|
|
257
|
+
"v-loading": r(E),
|
|
258
|
+
data: r(L),
|
|
259
|
+
"table-label": r(y),
|
|
260
|
+
onSelectionChange: O,
|
|
261
|
+
onSortChange: Y
|
|
262
|
+
}, {
|
|
263
|
+
userId: l((e) => [
|
|
264
|
+
$("span", null, u(r(w).userExtBizDict.getValue(e.data.row.userId)), 1)
|
|
265
|
+
]),
|
|
266
|
+
createBy: l((e) => [
|
|
267
|
+
e.data.row.createBy ? (m(), _("span", pe, u(r(me).userInfo(e.data.row.createBy).realName), 1)) : C("", !0)
|
|
268
|
+
]),
|
|
269
|
+
createTime: l((e) => [
|
|
270
|
+
p(u(r(U).$moment.formatDate(
|
|
271
|
+
e.data.row.createTime,
|
|
272
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
273
|
+
)), 1)
|
|
274
|
+
]),
|
|
275
|
+
operation: l((e) => [
|
|
276
|
+
V((m(), _("span", {
|
|
277
|
+
class: "el-button-color",
|
|
278
|
+
onClick: (S) => A(e.data.row)
|
|
279
|
+
}, [
|
|
280
|
+
p(u(o.$t("common.edit")), 1)
|
|
281
|
+
], 8, ce)), [
|
|
282
|
+
[T, ["reports:itsm_flow_temporary:update"]]
|
|
283
|
+
]),
|
|
284
|
+
V((m(), _("span", {
|
|
285
|
+
class: "el-button-color dropdown-left",
|
|
286
|
+
onClick: (S) => r(s).deleteRecord(e.data.row)
|
|
287
|
+
}, [
|
|
288
|
+
p(u(o.$t("common.delete")), 1)
|
|
289
|
+
], 8, fe)), [
|
|
290
|
+
[T, ["reports:itsm_flow_temporary:delete"]]
|
|
291
|
+
]),
|
|
292
|
+
V((m(), _("span", {
|
|
293
|
+
class: "el-button-color dropdown-left",
|
|
294
|
+
onClick: (S) => H(e.data.row)
|
|
295
|
+
}, [
|
|
296
|
+
p(u(o.$t("common.view")), 1)
|
|
297
|
+
], 8, ye)), [
|
|
298
|
+
[T, ["reports:itsm_flow_temporary:view"]]
|
|
299
|
+
])
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}, 8, ["v-loading", "data", "table-label"])
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}),
|
|
306
|
+
d.value.visible ? (m(), h(ne, {
|
|
307
|
+
key: 0,
|
|
308
|
+
modelValue: d.value.visible,
|
|
309
|
+
"onUpdate:modelValue": t[10] || (t[10] = (e) => d.value.visible = e),
|
|
310
|
+
title: d.value.title,
|
|
311
|
+
"entity-key": r(v),
|
|
312
|
+
onRefresh: B,
|
|
313
|
+
width: "800px"
|
|
314
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0),
|
|
315
|
+
f.value.visible ? (m(), h(ie, {
|
|
316
|
+
key: 1,
|
|
317
|
+
modelValue: f.value.visible,
|
|
318
|
+
"onUpdate:modelValue": t[11] || (t[11] = (e) => f.value.visible = e),
|
|
319
|
+
title: f.value.title,
|
|
320
|
+
"entity-key": r(v),
|
|
321
|
+
onRefresh: B,
|
|
322
|
+
width: "800px"
|
|
323
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0)
|
|
324
|
+
]);
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
export {
|
|
329
|
+
Ie as default
|
|
330
|
+
};
|
|
@@ -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-D7TvdZ0W.mjs";
|
|
6
|
+
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-D5eF48hb.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) {
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { defineComponent as M, mergeModels as N, ref as _, useModel as P, getCurrentInstance as A, resolveComponent as f, createElementBlock as b, openBlock as v, Fragment as g, createVNode as t, withCtx as l, createElementVNode as F, createTextVNode as n, toDisplayString as i, unref as c, renderList as h, createBlock as E } from "vue";
|
|
2
|
+
import { rbacApi as U } from "jmash-rbac";
|
|
3
|
+
import { D as d, i as R, C as S } from "./index-D7TvdZ0W.mjs";
|
|
4
|
+
import { fileApi as Y } from "jmash-core";
|
|
5
|
+
import { i as j } from "./index-o0oTSdUL.mjs";
|
|
6
|
+
const Q = /* @__PURE__ */ M({
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: /* @__PURE__ */ N({
|
|
9
|
+
task: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: {},
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(w, { expose: T }) {
|
|
20
|
+
d.itemBizLayDict.useValues(), d.orgIdBizDict.useValues(), console.log(d.itemBizLayDict.values, "=> itemBizLayDict"), console.log(d.orgIdBizDict.values, "=> itemBizLayDict");
|
|
21
|
+
const I = _(), L = _({}), m = P(w, "modelValue"), { proxy: V } = A(), k = w, s = _();
|
|
22
|
+
j.findById({ temporaryId: k.task.businessKey }).then((a) => {
|
|
23
|
+
s.value = a.data;
|
|
24
|
+
});
|
|
25
|
+
const D = _([]);
|
|
26
|
+
R.findFilesList({ actionId: k.task.businessKey }).then((a) => {
|
|
27
|
+
D.value = a.data.results, console.log(a.data.results, "=> files");
|
|
28
|
+
});
|
|
29
|
+
async function z(a) {
|
|
30
|
+
try {
|
|
31
|
+
const u = Y.fileUrl(a.filePath), r = await (await fetch(u)).blob(), y = window.URL.createObjectURL(r), p = document.createElement("a");
|
|
32
|
+
p.href = y, p.download = a.fileName || "download", document.body.appendChild(p), p.click();
|
|
33
|
+
} catch {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
T({
|
|
37
|
+
changeModel: () => $()
|
|
38
|
+
});
|
|
39
|
+
function $() {
|
|
40
|
+
return m.value && (m.value.selectActions = [
|
|
41
|
+
{ key: "true", value: "同意" },
|
|
42
|
+
{ key: "false", value: "不同意" }
|
|
43
|
+
], m.value.varName = "approved", m.value.module = "", m.value.module = S.MODULE_ITSMFLOW), new Promise((a, u) => {
|
|
44
|
+
var o;
|
|
45
|
+
(o = I.value) == null || o.validate((r) => {
|
|
46
|
+
r ? (m.value && (m.value.comment = ""), a(!0)) : u(!1);
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return (a, u) => {
|
|
51
|
+
const o = f("el-col"), r = f("el-form-item"), y = f("el-button"), p = f("el-row"), C = f("el-form");
|
|
52
|
+
return v(), b(g, null, [
|
|
53
|
+
t(o, { span: 24 }, {
|
|
54
|
+
default: l(() => u[0] || (u[0] = [
|
|
55
|
+
F("div", { class: "title" }, "外部临时工单临时工单", -1)
|
|
56
|
+
])),
|
|
57
|
+
_: 1,
|
|
58
|
+
__: [0]
|
|
59
|
+
}),
|
|
60
|
+
t(C, {
|
|
61
|
+
ref_key: "taskFormRef",
|
|
62
|
+
ref: I,
|
|
63
|
+
model: L.value,
|
|
64
|
+
"label-width": "150px",
|
|
65
|
+
class: "custom-table-form custom-form"
|
|
66
|
+
}, {
|
|
67
|
+
default: l(() => [
|
|
68
|
+
t(p, null, {
|
|
69
|
+
default: l(() => [
|
|
70
|
+
t(o, { span: 24 }, {
|
|
71
|
+
default: l(() => [
|
|
72
|
+
t(r, {
|
|
73
|
+
label: a.$t("itsmFlowSpareParts.govOrgId"),
|
|
74
|
+
prop: "govOrgId"
|
|
75
|
+
}, {
|
|
76
|
+
default: l(() => {
|
|
77
|
+
var e;
|
|
78
|
+
return [
|
|
79
|
+
n(i(c(d).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.govOrgId)), 1)
|
|
80
|
+
];
|
|
81
|
+
}),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["label"])
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}),
|
|
87
|
+
t(o, { span: 24 }, {
|
|
88
|
+
default: l(() => [
|
|
89
|
+
t(r, {
|
|
90
|
+
label: a.$t("itsmFlowSpareParts.itemId"),
|
|
91
|
+
prop: "itemId"
|
|
92
|
+
}, {
|
|
93
|
+
default: l(() => {
|
|
94
|
+
var e;
|
|
95
|
+
return [
|
|
96
|
+
n(i(c(d).itemBizLayDict.getValue((e = s.value) == null ? void 0 : e.itemId)), 1)
|
|
97
|
+
];
|
|
98
|
+
}),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 8, ["label"])
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}),
|
|
104
|
+
t(o, { span: 12 }, {
|
|
105
|
+
default: l(() => [
|
|
106
|
+
t(r, {
|
|
107
|
+
label: a.$t("itsmFlowTemporary.createBy"),
|
|
108
|
+
prop: "createBy"
|
|
109
|
+
}, {
|
|
110
|
+
default: l(() => {
|
|
111
|
+
var e;
|
|
112
|
+
return [
|
|
113
|
+
n(i(c(U).userInfo((e = s.value) == null ? void 0 : e.createBy).realName), 1)
|
|
114
|
+
];
|
|
115
|
+
}),
|
|
116
|
+
_: 1
|
|
117
|
+
}, 8, ["label"])
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}),
|
|
121
|
+
t(o, { span: 12 }, {
|
|
122
|
+
default: l(() => [
|
|
123
|
+
t(r, {
|
|
124
|
+
label: a.$t("itsmFlowTemporary.createTime"),
|
|
125
|
+
prop: "createTime"
|
|
126
|
+
}, {
|
|
127
|
+
default: l(() => {
|
|
128
|
+
var e;
|
|
129
|
+
return [
|
|
130
|
+
n(i(c(V).$moment.formatDate(
|
|
131
|
+
(e = s.value) == null ? void 0 : e.createTime,
|
|
132
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
133
|
+
)), 1)
|
|
134
|
+
];
|
|
135
|
+
}),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 8, ["label"])
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
t(o, { span: 24 }, {
|
|
142
|
+
default: l(() => [
|
|
143
|
+
t(r, {
|
|
144
|
+
label: a.$t("itsmFlowTemporary.title"),
|
|
145
|
+
prop: "title"
|
|
146
|
+
}, {
|
|
147
|
+
default: l(() => {
|
|
148
|
+
var e;
|
|
149
|
+
return [
|
|
150
|
+
n(i((e = s.value) == null ? void 0 : e.title), 1)
|
|
151
|
+
];
|
|
152
|
+
}),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 8, ["label"])
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}),
|
|
158
|
+
t(o, { span: 24 }, {
|
|
159
|
+
default: l(() => [
|
|
160
|
+
t(r, {
|
|
161
|
+
label: a.$t("itsmFlowTemporary.content"),
|
|
162
|
+
prop: "content"
|
|
163
|
+
}, {
|
|
164
|
+
default: l(() => {
|
|
165
|
+
var e;
|
|
166
|
+
return [
|
|
167
|
+
n(i((e = s.value) == null ? void 0 : e.content), 1)
|
|
168
|
+
];
|
|
169
|
+
}),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 8, ["label"])
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}),
|
|
175
|
+
t(o, {
|
|
176
|
+
span: 24,
|
|
177
|
+
class: "bordered-row"
|
|
178
|
+
}, {
|
|
179
|
+
default: l(() => [
|
|
180
|
+
(v(!0), b(g, null, h(c(d).fileTypeDict.values.slice(2, 3), (e, H) => (v(), E(r, {
|
|
181
|
+
key: e.dictCode,
|
|
182
|
+
label: e.dictName
|
|
183
|
+
}, {
|
|
184
|
+
default: l(() => [
|
|
185
|
+
(v(!0), b(g, null, h(D.value, (B, O) => (v(), b("div", {
|
|
186
|
+
key: O,
|
|
187
|
+
class: "files-list"
|
|
188
|
+
}, [
|
|
189
|
+
F("span", null, i(B.fileName), 1),
|
|
190
|
+
t(y, {
|
|
191
|
+
type: "primary",
|
|
192
|
+
link: "",
|
|
193
|
+
size: "small",
|
|
194
|
+
class: "icon-right",
|
|
195
|
+
onClick: (K) => z(B)
|
|
196
|
+
}, {
|
|
197
|
+
default: l(() => u[1] || (u[1] = [
|
|
198
|
+
n(" 查看 ")
|
|
199
|
+
])),
|
|
200
|
+
_: 2,
|
|
201
|
+
__: [1]
|
|
202
|
+
}, 1032, ["onClick"])
|
|
203
|
+
]))), 128))
|
|
204
|
+
]),
|
|
205
|
+
_: 2
|
|
206
|
+
}, 1032, ["label"]))), 128))
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}),
|
|
210
|
+
t(o, { span: 24 }, {
|
|
211
|
+
default: l(() => [
|
|
212
|
+
t(r, {
|
|
213
|
+
label: a.$t("itsmFlowTemporary.outOrgId"),
|
|
214
|
+
prop: "outOrgId"
|
|
215
|
+
}, {
|
|
216
|
+
default: l(() => {
|
|
217
|
+
var e;
|
|
218
|
+
return [
|
|
219
|
+
n(i(c(d).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.outOrgId)), 1)
|
|
220
|
+
];
|
|
221
|
+
}),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["label"])
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
}),
|
|
227
|
+
t(o, { span: 24 }, {
|
|
228
|
+
default: l(() => [
|
|
229
|
+
t(r, {
|
|
230
|
+
label: a.$t("itsmFlowTemporary.userId"),
|
|
231
|
+
prop: "userId"
|
|
232
|
+
}, {
|
|
233
|
+
default: l(() => {
|
|
234
|
+
var e;
|
|
235
|
+
return [
|
|
236
|
+
n(i(c(d).userExtBizDict.getValue((e = s.value) == null ? void 0 : e.userId)), 1)
|
|
237
|
+
];
|
|
238
|
+
}),
|
|
239
|
+
_: 1
|
|
240
|
+
}, 8, ["label"])
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}),
|
|
244
|
+
t(o, { span: 24 }, {
|
|
245
|
+
default: l(() => [
|
|
246
|
+
t(r, {
|
|
247
|
+
label: a.$t("itsmFlowTemporary.handlingPeriod"),
|
|
248
|
+
prop: "handlingPeriod"
|
|
249
|
+
}, {
|
|
250
|
+
default: l(() => {
|
|
251
|
+
var e;
|
|
252
|
+
return [
|
|
253
|
+
n(i((e = s.value) == null ? void 0 : e.handlingPeriod), 1)
|
|
254
|
+
];
|
|
255
|
+
}),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["label"])
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
})
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
})
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
}, 8, ["model"])
|
|
267
|
+
], 64);
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
export {
|
|
272
|
+
Q as default
|
|
273
|
+
};
|