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,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-CbG_QqOf.mjs";
|
|
5
|
+
import ne from "./edit-z2fcZzRN.mjs";
|
|
6
|
+
import { _ as ie } from "./info.vue_vue_type_script_setup_true_lang-CAAnevRr.mjs";
|
|
7
|
+
import { D as w, O as se, C as P } from "./index-5rQmXXAD.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
|
+
};
|
|
@@ -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-CbG_QqOf.mjs";
|
|
4
|
+
import { D as m, i as K, C as W } from "./index-5rQmXXAD.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
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent as W, ref as h, reactive as R, resolveComponent as i, resolveDirective as X, createElementBlock as $, openBlock as c, createElementVNode as w, createVNode as o, createBlock as F, createCommentVNode as S, withCtx as l, withKeys as _, unref as a, createTextVNode as b, toDisplayString as u, withDirectives as I, isRef as j } from "vue";
|
|
2
2
|
import { useTableHooks as Y } from "jmash-core";
|
|
3
3
|
import { useI18n as Z } from "vue-i18n";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
4
|
+
import { itsmFlowEntrustApi as x } from "./index.mjs";
|
|
5
|
+
import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-DZj5V6Mk.mjs";
|
|
6
|
+
import { C as te, D as p } from "./index-5rQmXXAD.mjs";
|
|
7
|
+
const le = { class: "app-container" }, oe = { class: "search-container" }, ne = ["onClick"], ae = ["onClick"], ce = /* @__PURE__ */ W({
|
|
7
8
|
__name: "index",
|
|
8
9
|
setup(re) {
|
|
9
10
|
const { t: g } = Z(), r = h({
|
|
10
|
-
applyStatus:
|
|
11
|
+
applyStatus: te.applyStatus.draft
|
|
11
12
|
}), {
|
|
12
13
|
tableHooks: s,
|
|
13
14
|
multipleTableRef: O,
|
|
@@ -15,7 +16,7 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, ne =
|
|
|
15
16
|
listLoading: T,
|
|
16
17
|
tableData: U,
|
|
17
18
|
total: C
|
|
18
|
-
} = Y(g,
|
|
19
|
+
} = Y(g, x, r);
|
|
19
20
|
p.orgIdBizDict.useValues(), p.parentIdBizDict.useValues();
|
|
20
21
|
let f = h([
|
|
21
22
|
{
|
|
@@ -338,7 +339,7 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, ne =
|
|
|
338
339
|
]),
|
|
339
340
|
_: 1
|
|
340
341
|
}),
|
|
341
|
-
m.value.visible ? (c(), F(
|
|
342
|
+
m.value.visible ? (c(), F(ee, {
|
|
342
343
|
key: 0,
|
|
343
344
|
modelValue: m.value.visible,
|
|
344
345
|
"onUpdate:modelValue": t[15] || (t[15] = (e) => m.value.visible = e),
|
|
@@ -352,5 +353,5 @@ const le = { class: "app-container" }, oe = { class: "search-container" }, ne =
|
|
|
352
353
|
}
|
|
353
354
|
});
|
|
354
355
|
export {
|
|
355
|
-
|
|
356
|
+
ce as default
|
|
356
357
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { defineComponent as W, ref as C, reactive as G, resolveComponent as i, resolveDirective as J, createElementBlock as S, openBlock as y, createElementVNode as b, createVNode as t, createBlock as U, createCommentVNode as D, withCtx as o, withKeys as d, unref as n, createTextVNode as k, toDisplayString as v, withDirectives as M, isRef as R } from "vue";
|
|
2
2
|
import { useTableHooks as X } from "jmash-core";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
4
|
+
import { itsmFlowEntrustApi as Z } from "./index.mjs";
|
|
5
|
+
import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-BvcEV_aO.mjs";
|
|
6
|
+
import { D as p, O as ee, C as le } from "./index-5rQmXXAD.mjs";
|
|
7
|
+
const te = { class: "app-container" }, oe = { class: "search-container" }, ae = ["onClick"], pe = /* @__PURE__ */ W({
|
|
7
8
|
__name: "index",
|
|
8
9
|
setup(ne) {
|
|
9
10
|
const { t: N } = Y(), r = C({}), {
|
|
@@ -15,8 +16,8 @@ const te = { class: "app-container" }, oe = { class: "search-container" }, ae =
|
|
|
15
16
|
total: g
|
|
16
17
|
} = X(N, Z, r);
|
|
17
18
|
p.orgIdBizDict.useValues();
|
|
18
|
-
const $ = new
|
|
19
|
-
orgType:
|
|
19
|
+
const $ = new ee({
|
|
20
|
+
orgType: le.orgType.outsource
|
|
20
21
|
});
|
|
21
22
|
$.useValues(), p.parentIdBizDict.useValues();
|
|
22
23
|
let f = C([
|
|
@@ -409,7 +410,7 @@ const te = { class: "app-container" }, oe = { class: "search-container" }, ae =
|
|
|
409
410
|
]),
|
|
410
411
|
_: 1
|
|
411
412
|
}),
|
|
412
|
-
c.value.visible ? (y(), U(
|
|
413
|
+
c.value.visible ? (y(), U(x, {
|
|
413
414
|
key: 0,
|
|
414
415
|
modelValue: c.value.visible,
|
|
415
416
|
"onUpdate:modelValue": e[25] || (e[25] = (l) => c.value.visible = l),
|
|
@@ -422,5 +423,5 @@ const te = { class: "app-container" }, oe = { class: "search-container" }, ae =
|
|
|
422
423
|
}
|
|
423
424
|
});
|
|
424
425
|
export {
|
|
425
|
-
|
|
426
|
+
pe as default
|
|
426
427
|
};
|