xyvcard-itsm-flow 0.0.35 → 0.0.36
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-4vO09IGA.mjs → FileSaver.min-ClNkVClN.mjs} +1 -1
- package/dist/{edit-Bg89-KlE.mjs → edit-BEdr_8PJ.mjs} +1 -1
- package/dist/{edit-QP4NsvOD.mjs → edit-CKextQDx.mjs} +2 -2
- package/dist/{edit-DEaQAIDY.mjs → edit-CM7ZEDiX.mjs} +2 -2
- package/dist/{edit-VVc_Bhvr.mjs → edit-DBbtD7fG.mjs} +2 -2
- package/dist/{edit-CNXgjYym.mjs → edit-DdAC6cfV.mjs} +1 -1
- package/dist/{edit-CW8XUPeb.mjs → edit-x5wciLgT.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BzJWf6e0.mjs → edit.vue_vue_type_script_setup_true_lang-BAf8q7CN.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CCbLxUHa.mjs → edit.vue_vue_type_script_setup_true_lang-BleGu-Ls.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BaOmH_gU.mjs → edit.vue_vue_type_script_setup_true_lang-h8mpKFR4.mjs} +1 -1
- package/dist/{index-CRuin4P0.mjs → index-0uHuIS0s.mjs} +2 -2
- package/dist/{index-m8TK-swk.mjs → index-8zrIyQWX.mjs} +2 -2
- package/dist/{index-C-UNTZhw.mjs → index-BECzf4l_.mjs} +4 -4
- package/dist/{index-BBmJH5f9.mjs → index-BIu8ak2p.mjs} +3 -3
- package/dist/{index-BkzSt2Jz.mjs → index-BKffbxRi.mjs} +2 -2
- package/dist/{index-BaT5UWw4.mjs → index-BM5T4IKm.mjs} +2 -2
- package/dist/{index-Cm5aPyXv.mjs → index-BOgdU813.mjs} +2 -2
- package/dist/{index-IGQyX8F5.mjs → index-BSGtDp12.mjs} +1 -1
- package/dist/{index-D-qpeudM.mjs → index-BplQVJ9-.mjs} +1 -1
- package/dist/{index-ZhAyoJF1.mjs → index-BvcE9kx0.mjs} +2 -2
- package/dist/{index-C_qb669N.mjs → index-Bzv1T2rE.mjs} +2 -2
- package/dist/{index-CC2HfDRg.mjs → index-C1TIJpBX.mjs} +2 -2
- package/dist/{index-H7TSweB3.mjs → index-C50GEcoN.mjs} +2 -2
- package/dist/{index-CGu_vOzv.mjs → index-C8VALc-x.mjs} +1 -1
- package/dist/{index-CCX-7rXJ.mjs → index-CIIwH5CM.mjs} +3 -3
- package/dist/{index-COpXIBy3.mjs → index-CMO-1BoO.mjs} +2 -2
- package/dist/index-CTC_D8-A.mjs +353 -0
- package/dist/{index-kUJi2-aB.mjs → index-CVQgcLRH.mjs} +1396 -1414
- package/dist/{index-CbxewuPf.mjs → index-CakK31Rp.mjs} +2 -2
- package/dist/{index-BG__Z-WG.mjs → index-CyInqmhb.mjs} +3 -3
- package/dist/{index-CoINUex3.mjs → index-D993kfeg.mjs} +2 -2
- package/dist/{index-Bd40uPc5.mjs → index-D9Wi_j9h.mjs} +2 -2
- package/dist/{index-qURttReu.mjs → index-DGZ_lllw.mjs} +1 -1
- package/dist/{index-CXUFQimF.mjs → index-DSftvy63.mjs} +3 -3
- package/dist/{index-DizC4YYk.mjs → index-DZz2iF4d.mjs} +6 -6
- package/dist/{index-BgIkENXF.mjs → index-DaFFNgmK.mjs} +2 -2
- package/dist/index-F9dxfOkY.mjs +356 -0
- package/dist/{index-DcllZHeM.mjs → index-LxX80FPC.mjs} +2 -2
- package/dist/{index-C576vmsw.mjs → index-S9BLyA2n.mjs} +101 -99
- package/dist/{index-BvWFE24Y.mjs → index-nW76ObDz.mjs} +3 -3
- package/dist/{index-DjFt_ll5.mjs → index-qRMBTq3z.mjs} +2 -2
- package/dist/{index-kCrU79W0.mjs → index-tdS-iw08.mjs} +2 -2
- package/dist/index-yEXkk-Jd.mjs +298 -0
- package/dist/index.mjs +1 -1
- package/dist/{info-B0EHDvWh.mjs → info-B5VZK_Jj.mjs} +1 -1
- package/dist/{info-B1LFxl1W.mjs → info-BZbUpYKc.mjs} +1 -1
- package/dist/{info-BUQ_sHuH.mjs → info-BeyeJ52O.mjs} +1 -1
- package/dist/{info-CONR76qG.mjs → info-DBab8bvh.mjs} +1 -1
- package/dist/info-DD_FUSc5.mjs +4 -0
- package/dist/info-DIuxgoOh.mjs +4 -0
- package/dist/info-DixdvVdw.mjs +4 -0
- package/dist/info-DkYsYIN0.mjs +4 -0
- package/dist/info-iChisiU3.mjs +4 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-4OIr_eeU.mjs +264 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-CT_sBVl0.mjs → info.vue_vue_type_script_setup_true_lang-C6DieIN8.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-huSWNlrU.mjs → info.vue_vue_type_script_setup_true_lang-C9jHBNnr.mjs} +14 -13
- package/dist/{info.vue_vue_type_script_setup_true_lang-Cl1l4KtN.mjs → info.vue_vue_type_script_setup_true_lang-CCFoSbcQ.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-DdNE20gn.mjs → info.vue_vue_type_script_setup_true_lang-CcoLQKWP.mjs} +2 -2
- package/dist/info.vue_vue_type_script_setup_true_lang-CdC1rr1N.mjs +209 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-B1aUqChJ.mjs → info.vue_vue_type_script_setup_true_lang-Cg4p0Ii9.mjs} +2 -2
- package/dist/info.vue_vue_type_script_setup_true_lang-DgCsBUKD.mjs +374 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-D9dHHPmV.mjs → info.vue_vue_type_script_setup_true_lang-e7laeTRw.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dts/views/item-flow-orders-interior-info/index.vue.d.ts +2 -0
- package/dts/views/item-flow-orders-interior-info/info.vue.d.ts +26 -0
- package/dts/views/itsm-flow-spare-parts-info/index.vue.d.ts +2 -0
- package/dts/views/itsm-flow-spare-parts-info/info.vue.d.ts +26 -0
- package/dts/views/itsm-flow-temporary-info/index.vue.d.ts +2 -0
- package/dts/views/itsm-flow-temporary-info/info.vue.d.ts +26 -0
- package/package.json +1 -1
- package/dist/info-DvYnaTD4.mjs +0 -4
- package/dist/info-qjfRxxQ5.mjs +0 -4
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { defineComponent as Y, getCurrentInstance as x, ref as _, reactive as M, onActivated as W, resolveComponent as i, resolveDirective as G, createElementBlock as g, openBlock as y, createElementVNode as T, createVNode as o, createBlock as D, createCommentVNode as V, withCtx as l, unref as r, withKeys as S, createTextVNode as b, toDisplayString as u, withDirectives as J, isRef as B } from "vue";
|
|
2
|
+
import { useTableHooks as X } from "jmash-core";
|
|
3
|
+
import { useI18n as Z } from "vue-i18n";
|
|
4
|
+
import { i as ee } from "./index-CVQgcLRH.mjs";
|
|
5
|
+
import { _ as te } from "./info.vue_vue_type_script_setup_true_lang-CcoLQKWP.mjs";
|
|
6
|
+
import { D as p, O as le, C as oe } from "./index-BplQVJ9-.mjs";
|
|
7
|
+
import { rbacApi as ae } from "jmash-rbac";
|
|
8
|
+
const re = { class: "app-container" }, ne = { class: "search-container" }, ie = { key: 0 }, se = ["onClick"], _e = /* @__PURE__ */ Y({
|
|
9
|
+
__name: "index",
|
|
10
|
+
setup(me) {
|
|
11
|
+
const { proxy: F } = x();
|
|
12
|
+
p.itemBizLayDict.useValues(), p.orgIdBizDict.useValues(), p.userExtBizDict.useValues(), new le({ orgType: "OUTSOURCE" }).useValues();
|
|
13
|
+
const { t: w } = Z(), n = _({
|
|
14
|
+
temporaryType: oe.Internal
|
|
15
|
+
}), {
|
|
16
|
+
tableHooks: s,
|
|
17
|
+
multipleTableRef: $,
|
|
18
|
+
queryFormRef: z,
|
|
19
|
+
listLoading: P,
|
|
20
|
+
tableData: R,
|
|
21
|
+
total: f
|
|
22
|
+
} = X(w, ee, n);
|
|
23
|
+
let d = _([
|
|
24
|
+
{
|
|
25
|
+
label: "itsmFlowTemporary.title",
|
|
26
|
+
prop: "title",
|
|
27
|
+
minWidth: "150",
|
|
28
|
+
sortable: "custom",
|
|
29
|
+
isColumn: !0
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: "itsmFlowTemporary.content",
|
|
33
|
+
prop: "content",
|
|
34
|
+
minWidth: "150",
|
|
35
|
+
sortable: "custom",
|
|
36
|
+
isColumn: !0
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "itsmFlowTemporary.userIdTemporary",
|
|
40
|
+
prop: "userId",
|
|
41
|
+
slotName: "userId",
|
|
42
|
+
columnType: "slot",
|
|
43
|
+
width: "150",
|
|
44
|
+
sortable: "custom",
|
|
45
|
+
isColumn: !0
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "itsmFlowTemporary.handlingPeriod",
|
|
49
|
+
prop: "handlingPeriod",
|
|
50
|
+
width: "105",
|
|
51
|
+
sortable: "custom",
|
|
52
|
+
isColumn: !0
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: "itsmFlowTemporary.createBy",
|
|
56
|
+
prop: "createBy",
|
|
57
|
+
slotName: "createBy",
|
|
58
|
+
columnType: "slot",
|
|
59
|
+
width: "150",
|
|
60
|
+
sortable: "custom",
|
|
61
|
+
isColumn: !0
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "itsmFlowTemporary.createTime",
|
|
65
|
+
prop: "createTime",
|
|
66
|
+
slotName: "createTime",
|
|
67
|
+
columnType: "slot",
|
|
68
|
+
width: "170",
|
|
69
|
+
sortable: "custom",
|
|
70
|
+
isColumn: !0
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: "common.operate",
|
|
74
|
+
width: "80",
|
|
75
|
+
slotName: "operation",
|
|
76
|
+
columnType: "slot",
|
|
77
|
+
fixed: "right",
|
|
78
|
+
isColumn: !0
|
|
79
|
+
}
|
|
80
|
+
]);
|
|
81
|
+
const m = _({
|
|
82
|
+
title: w("common.view"),
|
|
83
|
+
visible: !1
|
|
84
|
+
});
|
|
85
|
+
let h = M({});
|
|
86
|
+
function U(a) {
|
|
87
|
+
h.temporaryId = a.temporaryId, m.value.title = w("common.view"), m.value.visible = !0;
|
|
88
|
+
}
|
|
89
|
+
function N(a) {
|
|
90
|
+
s.selectionRows.value = a;
|
|
91
|
+
}
|
|
92
|
+
function j(a) {
|
|
93
|
+
s.handleSort(a.prop, a.order);
|
|
94
|
+
}
|
|
95
|
+
function L(a) {
|
|
96
|
+
a && s.getList();
|
|
97
|
+
}
|
|
98
|
+
return W(() => {
|
|
99
|
+
s.getList();
|
|
100
|
+
}), (a, t) => {
|
|
101
|
+
const k = i("jmash-select"), v = i("el-form-item"), c = i("el-col"), q = i("el-input"), C = i("el-button"), I = i("el-row"), E = i("el-form"), A = i("jmash-column-select"), H = i("jmash-table"), K = i("jmash-pagination"), O = i("el-card"), Q = G("hasPerm");
|
|
102
|
+
return y(), g("div", re, [
|
|
103
|
+
T("div", ne, [
|
|
104
|
+
o(E, {
|
|
105
|
+
ref_key: "queryFormRef",
|
|
106
|
+
ref: z,
|
|
107
|
+
model: n.value,
|
|
108
|
+
inline: !0
|
|
109
|
+
}, {
|
|
110
|
+
default: l(() => [
|
|
111
|
+
o(I, null, {
|
|
112
|
+
default: l(() => [
|
|
113
|
+
o(c, { span: 6 }, {
|
|
114
|
+
default: l(() => [
|
|
115
|
+
o(v, {
|
|
116
|
+
label: a.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
117
|
+
prop: "itemId"
|
|
118
|
+
}, {
|
|
119
|
+
default: l(() => [
|
|
120
|
+
o(k, {
|
|
121
|
+
modelValue: n.value.itemId,
|
|
122
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.itemId = e),
|
|
123
|
+
placeholder: a.$t("itsmFlowSpareParts.itemIdRequired"),
|
|
124
|
+
data: r(p).itemBizLayDict.values,
|
|
125
|
+
clearable: "",
|
|
126
|
+
filterable: ""
|
|
127
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["label"])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}),
|
|
134
|
+
o(c, { span: 6 }, {
|
|
135
|
+
default: l(() => [
|
|
136
|
+
o(v, {
|
|
137
|
+
label: a.$t("itsmFlowTemporary.likeTitle"),
|
|
138
|
+
prop: "likeTitle"
|
|
139
|
+
}, {
|
|
140
|
+
default: l(() => [
|
|
141
|
+
o(q, {
|
|
142
|
+
modelValue: n.value.likeTitle,
|
|
143
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => n.value.likeTitle = e),
|
|
144
|
+
placeholder: a.$t("itsmFlowTemporary.likeTitleRequired"),
|
|
145
|
+
onKeyup: t[2] || (t[2] = S((e) => r(s).handleQuery(), ["enter"])),
|
|
146
|
+
class: "!w-[203px]"
|
|
147
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["label"])
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}),
|
|
154
|
+
o(c, { span: 6 }, {
|
|
155
|
+
default: l(() => [
|
|
156
|
+
o(v, {
|
|
157
|
+
label: a.$t("itsmFlowAcceptance.applyStatus"),
|
|
158
|
+
prop: "applyStatus"
|
|
159
|
+
}, {
|
|
160
|
+
default: l(() => [
|
|
161
|
+
o(k, {
|
|
162
|
+
modelValue: n.value.applyStatus,
|
|
163
|
+
"onUpdate:modelValue": t[3] || (t[3] = (e) => n.value.applyStatus = e),
|
|
164
|
+
placeholder: a.$t("itsmFlowAcceptance.applyStatusRequired"),
|
|
165
|
+
data: r(p).applyStatusEnum.values,
|
|
166
|
+
onKeyup: t[4] || (t[4] = S((e) => r(s).handleQuery(), ["enter"]))
|
|
167
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["label"])
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}),
|
|
174
|
+
o(c, { span: 6 }, {
|
|
175
|
+
default: l(() => [
|
|
176
|
+
o(v, { class: "search-btn" }, {
|
|
177
|
+
default: l(() => [
|
|
178
|
+
o(C, {
|
|
179
|
+
type: "primary",
|
|
180
|
+
onClick: t[5] || (t[5] = (e) => r(s).handleQuery())
|
|
181
|
+
}, {
|
|
182
|
+
default: l(() => [
|
|
183
|
+
b(u(a.$t("common.search")), 1)
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}),
|
|
187
|
+
o(C, {
|
|
188
|
+
onClick: t[6] || (t[6] = (e) => r(s).resetQuery())
|
|
189
|
+
}, {
|
|
190
|
+
default: l(() => [
|
|
191
|
+
b(u(a.$t("common.reset")), 1)
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
})
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
})
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
})
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["model"]),
|
|
207
|
+
t[13] || (t[13] = T("div", { class: "clear" }, null, -1))
|
|
208
|
+
]),
|
|
209
|
+
o(O, {
|
|
210
|
+
shadow: "never",
|
|
211
|
+
class: "table-container"
|
|
212
|
+
}, {
|
|
213
|
+
header: l(() => [
|
|
214
|
+
o(I, null, {
|
|
215
|
+
default: l(() => [
|
|
216
|
+
o(c, {
|
|
217
|
+
span: 24,
|
|
218
|
+
class: "container-float"
|
|
219
|
+
}, {
|
|
220
|
+
default: l(() => [
|
|
221
|
+
o(A, {
|
|
222
|
+
modelValue: r(d),
|
|
223
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => B(d) ? d.value = e : d = e),
|
|
224
|
+
"label-name": "itsm-flow-temporary"
|
|
225
|
+
}, null, 8, ["modelValue"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
})
|
|
232
|
+
]),
|
|
233
|
+
footer: l(() => [
|
|
234
|
+
r(f) > 0 ? (y(), D(K, {
|
|
235
|
+
key: 0,
|
|
236
|
+
total: r(f),
|
|
237
|
+
"onUpdate:total": t[8] || (t[8] = (e) => B(f) ? f.value = e : null),
|
|
238
|
+
"current-page": n.value.curPage,
|
|
239
|
+
"onUpdate:currentPage": t[9] || (t[9] = (e) => n.value.curPage = e),
|
|
240
|
+
"page-size": n.value.pageSize,
|
|
241
|
+
"onUpdate:pageSize": t[10] || (t[10] = (e) => n.value.pageSize = e),
|
|
242
|
+
onPagination: t[11] || (t[11] = (e) => r(s).getList())
|
|
243
|
+
}, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
|
|
244
|
+
]),
|
|
245
|
+
default: l(() => [
|
|
246
|
+
o(H, {
|
|
247
|
+
ref_key: "multipleTableRef",
|
|
248
|
+
ref: $,
|
|
249
|
+
"row-key": "temporaryId",
|
|
250
|
+
"v-loading": r(P),
|
|
251
|
+
data: r(R),
|
|
252
|
+
"table-label": r(d),
|
|
253
|
+
onSelectionChange: N,
|
|
254
|
+
onSortChange: j
|
|
255
|
+
}, {
|
|
256
|
+
userId: l((e) => [
|
|
257
|
+
T("span", null, u(r(p).userExtBizDict.getValue(e.data.row.userId)), 1)
|
|
258
|
+
]),
|
|
259
|
+
createBy: l((e) => [
|
|
260
|
+
e.data.row.createBy ? (y(), g("span", ie, u(r(ae).userInfo(e.data.row.createBy).realName), 1)) : V("", !0)
|
|
261
|
+
]),
|
|
262
|
+
createTime: l((e) => [
|
|
263
|
+
b(u(r(F).$moment.formatDate(
|
|
264
|
+
e.data.row.createTime,
|
|
265
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
266
|
+
)), 1)
|
|
267
|
+
]),
|
|
268
|
+
operation: l((e) => [
|
|
269
|
+
J((y(), g("span", {
|
|
270
|
+
class: "el-button-color dropdown-left",
|
|
271
|
+
onClick: (pe) => U(e.data.row)
|
|
272
|
+
}, [
|
|
273
|
+
b(u(a.$t("common.view")), 1)
|
|
274
|
+
], 8, se)), [
|
|
275
|
+
[Q, ["itsmflow:itsm_flow_temporary:view"]]
|
|
276
|
+
])
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}, 8, ["v-loading", "data", "table-label"])
|
|
280
|
+
]),
|
|
281
|
+
_: 1
|
|
282
|
+
}),
|
|
283
|
+
m.value.visible ? (y(), D(te, {
|
|
284
|
+
key: 0,
|
|
285
|
+
modelValue: m.value.visible,
|
|
286
|
+
"onUpdate:modelValue": t[12] || (t[12] = (e) => m.value.visible = e),
|
|
287
|
+
title: m.value.title,
|
|
288
|
+
"entity-key": r(h),
|
|
289
|
+
onRefresh: L,
|
|
290
|
+
width: "800px"
|
|
291
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : V("", !0)
|
|
292
|
+
]);
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
export {
|
|
297
|
+
_e as default
|
|
298
|
+
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "jmash-core";
|
|
2
|
-
import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-
|
|
2
|
+
import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-CVQgcLRH.mjs";
|
|
3
3
|
import "jmash-flow";
|
|
4
4
|
export {
|
|
5
5
|
m as TaskItsmFlowAcceptance,
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { defineComponent as E, mergeModels as M, useModel as U, getCurrentInstance as K, ref as B, resolveComponent as p, createBlock as D, openBlock as c, withCtx as l, createVNode as t, createTextVNode as s, toDisplayString as i, unref as u, createElementBlock as b, Fragment as h, renderList as C, createElementVNode as S } from "vue";
|
|
2
|
+
import { rbacApi as Y } from "jmash-rbac";
|
|
3
|
+
import { O, C as $, i as R, D as g } from "./index-BplQVJ9-.mjs";
|
|
4
|
+
import { fileApi as j } from "jmash-core";
|
|
5
|
+
import { i as H } from "./index-CVQgcLRH.mjs";
|
|
6
|
+
const x = /* @__PURE__ */ E({
|
|
7
|
+
__name: "info",
|
|
8
|
+
props: /* @__PURE__ */ M({
|
|
9
|
+
entityKey: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: { type: Boolean },
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(w) {
|
|
20
|
+
var F;
|
|
21
|
+
const f = U(w, "modelValue"), { proxy: k } = K(), v = new O({ orgType: $.orgType.hall });
|
|
22
|
+
v.useValues();
|
|
23
|
+
const I = new O({ orgType: $.orgType.outsource });
|
|
24
|
+
I.useValues();
|
|
25
|
+
const y = w, n = B();
|
|
26
|
+
(F = y.entityKey) != null && F.temporaryId && H.findById({ temporaryId: y.entityKey.temporaryId }).then((o) => {
|
|
27
|
+
n.value = o.data;
|
|
28
|
+
});
|
|
29
|
+
const T = B([]);
|
|
30
|
+
R.findFilesList({ actionId: y.entityKey.temporaryId }).then((o) => {
|
|
31
|
+
T.value = o.data.results, console.log(o.data.results, "=> files");
|
|
32
|
+
});
|
|
33
|
+
async function N(o) {
|
|
34
|
+
try {
|
|
35
|
+
const d = j.fileUrl(o.fileSrc), a = await (await fetch(d)).blob(), _ = window.URL.createObjectURL(a), m = document.createElement("a");
|
|
36
|
+
m.href = _, m.download = o.fileName || "download", document.body.appendChild(m), m.click();
|
|
37
|
+
} catch {
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function z() {
|
|
41
|
+
f.value && (f.value = !1);
|
|
42
|
+
}
|
|
43
|
+
return (o, d) => {
|
|
44
|
+
const r = p("el-form-item"), a = p("el-col"), _ = p("el-button"), m = p("el-row"), L = p("el-form"), P = p("el-dialog");
|
|
45
|
+
return c(), D(P, {
|
|
46
|
+
modelValue: f.value,
|
|
47
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => f.value = e),
|
|
48
|
+
onClose: z
|
|
49
|
+
}, {
|
|
50
|
+
default: l(() => [
|
|
51
|
+
t(L, {
|
|
52
|
+
ref: "itsmFlowEntrustFormRef",
|
|
53
|
+
"label-width": "150px",
|
|
54
|
+
class: "custom-table-form custom-form"
|
|
55
|
+
}, {
|
|
56
|
+
default: l(() => [
|
|
57
|
+
t(m, null, {
|
|
58
|
+
default: l(() => [
|
|
59
|
+
t(a, { span: 24 }, {
|
|
60
|
+
default: l(() => [
|
|
61
|
+
t(r, {
|
|
62
|
+
label: o.$t("itsmFlowSpareParts.govOrgId"),
|
|
63
|
+
prop: "govOrgId"
|
|
64
|
+
}, {
|
|
65
|
+
default: l(() => {
|
|
66
|
+
var e;
|
|
67
|
+
return [
|
|
68
|
+
s(i(u(v).getValue((e = n.value) == null ? void 0 : e.govOrgId)), 1)
|
|
69
|
+
];
|
|
70
|
+
}),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["label"])
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}),
|
|
76
|
+
t(a, { span: 24 }, {
|
|
77
|
+
default: l(() => [
|
|
78
|
+
t(r, {
|
|
79
|
+
label: o.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
80
|
+
prop: "itemId"
|
|
81
|
+
}, {
|
|
82
|
+
default: l(() => {
|
|
83
|
+
var e;
|
|
84
|
+
return [
|
|
85
|
+
s(i(u(g).itemBizLayDict.getValue((e = n.value) == null ? void 0 : e.itemId)), 1)
|
|
86
|
+
];
|
|
87
|
+
}),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["label"])
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}),
|
|
93
|
+
t(a, { span: 12 }, {
|
|
94
|
+
default: l(() => [
|
|
95
|
+
t(r, {
|
|
96
|
+
label: o.$t("itsmFlowTemporary.createBy"),
|
|
97
|
+
prop: "createBy"
|
|
98
|
+
}, {
|
|
99
|
+
default: l(() => {
|
|
100
|
+
var e;
|
|
101
|
+
return [
|
|
102
|
+
s(i(u(Y).userInfo((e = n.value) == null ? void 0 : e.createBy).realName), 1)
|
|
103
|
+
];
|
|
104
|
+
}),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["label"])
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}),
|
|
110
|
+
t(a, { span: 12 }, {
|
|
111
|
+
default: l(() => [
|
|
112
|
+
t(r, {
|
|
113
|
+
label: o.$t("itsmFlowTemporary.createTime"),
|
|
114
|
+
prop: "createTime"
|
|
115
|
+
}, {
|
|
116
|
+
default: l(() => {
|
|
117
|
+
var e;
|
|
118
|
+
return [
|
|
119
|
+
s(i(u(k).$moment.formatDate(
|
|
120
|
+
(e = n.value) == null ? void 0 : e.createTime,
|
|
121
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
122
|
+
)), 1)
|
|
123
|
+
];
|
|
124
|
+
}),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["label"])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
t(a, { span: 24 }, {
|
|
131
|
+
default: l(() => [
|
|
132
|
+
t(r, {
|
|
133
|
+
label: o.$t("itsmFlowTemporary.title"),
|
|
134
|
+
prop: "title"
|
|
135
|
+
}, {
|
|
136
|
+
default: l(() => {
|
|
137
|
+
var e;
|
|
138
|
+
return [
|
|
139
|
+
s(i((e = n.value) == null ? void 0 : e.title), 1)
|
|
140
|
+
];
|
|
141
|
+
}),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["label"])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}),
|
|
147
|
+
t(a, { span: 24 }, {
|
|
148
|
+
default: l(() => [
|
|
149
|
+
t(r, {
|
|
150
|
+
label: o.$t("itsmFlowTemporary.content"),
|
|
151
|
+
prop: "content"
|
|
152
|
+
}, {
|
|
153
|
+
default: l(() => {
|
|
154
|
+
var e;
|
|
155
|
+
return [
|
|
156
|
+
s(i((e = n.value) == null ? void 0 : e.content), 1)
|
|
157
|
+
];
|
|
158
|
+
}),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["label"])
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}),
|
|
164
|
+
t(a, {
|
|
165
|
+
span: 24,
|
|
166
|
+
class: "bordered-row"
|
|
167
|
+
}, {
|
|
168
|
+
default: l(() => [
|
|
169
|
+
(c(!0), b(h, null, C(u(g).fileTypeDict.values.slice(2, 3), (e, q) => (c(), D(r, {
|
|
170
|
+
key: e.dictCode,
|
|
171
|
+
label: e.dictName
|
|
172
|
+
}, {
|
|
173
|
+
default: l(() => [
|
|
174
|
+
(c(!0), b(h, null, C(T.value, (V, A) => (c(), b("div", {
|
|
175
|
+
key: A,
|
|
176
|
+
class: "files-list"
|
|
177
|
+
}, [
|
|
178
|
+
S("span", null, i(V.fileName), 1),
|
|
179
|
+
t(_, {
|
|
180
|
+
type: "primary",
|
|
181
|
+
link: "",
|
|
182
|
+
size: "small",
|
|
183
|
+
class: "icon-right",
|
|
184
|
+
onClick: (G) => N(V)
|
|
185
|
+
}, {
|
|
186
|
+
default: l(() => d[1] || (d[1] = [
|
|
187
|
+
s(" 查看 ")
|
|
188
|
+
])),
|
|
189
|
+
_: 2,
|
|
190
|
+
__: [1]
|
|
191
|
+
}, 1032, ["onClick"])
|
|
192
|
+
]))), 128))
|
|
193
|
+
]),
|
|
194
|
+
_: 2
|
|
195
|
+
}, 1032, ["label"]))), 128))
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}),
|
|
199
|
+
t(a, { span: 24 }, {
|
|
200
|
+
default: l(() => [
|
|
201
|
+
t(r, {
|
|
202
|
+
label: o.$t("itsmFlowTemporary.outOrgIdTemporary"),
|
|
203
|
+
prop: "outOrgId"
|
|
204
|
+
}, {
|
|
205
|
+
default: l(() => {
|
|
206
|
+
var e;
|
|
207
|
+
return [
|
|
208
|
+
s(i(u(I).getValue((e = n.value) == null ? void 0 : e.outOrgId)), 1)
|
|
209
|
+
];
|
|
210
|
+
}),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["label"])
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}),
|
|
216
|
+
t(a, { span: 24 }, {
|
|
217
|
+
default: l(() => [
|
|
218
|
+
t(r, {
|
|
219
|
+
label: o.$t("itsmFlowTemporary.userIdTemporary"),
|
|
220
|
+
prop: "userId"
|
|
221
|
+
}, {
|
|
222
|
+
default: l(() => {
|
|
223
|
+
var e;
|
|
224
|
+
return [
|
|
225
|
+
s(i(u(g).userExtBizDict.getValue((e = n.value) == null ? void 0 : e.userId)), 1)
|
|
226
|
+
];
|
|
227
|
+
}),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 8, ["label"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}),
|
|
233
|
+
t(a, { span: 24 }, {
|
|
234
|
+
default: l(() => [
|
|
235
|
+
t(r, {
|
|
236
|
+
label: o.$t("itsmFlowTemporary.handlingPeriod"),
|
|
237
|
+
prop: "handlingPeriod"
|
|
238
|
+
}, {
|
|
239
|
+
default: l(() => {
|
|
240
|
+
var e;
|
|
241
|
+
return [
|
|
242
|
+
s(i((e = n.value) == null ? void 0 : e.handlingPeriod), 1)
|
|
243
|
+
];
|
|
244
|
+
}),
|
|
245
|
+
_: 1
|
|
246
|
+
}, 8, ["label"])
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
})
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
})
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}, 512)
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
}, 8, ["modelValue"]);
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
export {
|
|
263
|
+
x as _
|
|
264
|
+
};
|
|
@@ -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, a as q } from "./index-
|
|
4
|
+
import { D as w, a as q } from "./index-BplQVJ9-.mjs";
|
|
5
5
|
const T = { key: 0 }, G = { key: 1 }, H = {
|
|
6
6
|
key: 2,
|
|
7
7
|
class: "distance-left"
|