xyvcard-itsm-flow 0.0.24 → 0.0.26
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-X2_RihtX.mjs → FileSaver.min-FLjvLk81.mjs} +1 -1
- package/dist/{edit-fNZ8seSE.mjs → edit-Bj6O1CiV.mjs} +36 -36
- package/dist/{edit-Crp2NJw2.mjs → edit-BoyxGI-j.mjs} +1 -1
- package/dist/{edit-C4uQUyxR.mjs → edit-ChPw3-tf.mjs} +52 -50
- package/dist/{edit-Da4XYqIW.mjs → edit-D--QEJjt.mjs} +1 -1
- package/dist/{edit-B4N5cmbv.mjs → edit-DE30a8nF.mjs} +1 -1
- package/dist/{edit-DSzeVnep.mjs → edit-DVqIGzRC.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-ClkzOaAV.mjs → edit.vue_vue_type_script_setup_true_lang-D4j6dzcV.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DZj5V6Mk.mjs → edit.vue_vue_type_script_setup_true_lang-DHCoPaGf.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-VfP4qMQI.mjs → edit.vue_vue_type_script_setup_true_lang-DiY4aiPm.mjs} +1 -1
- package/dist/{index-CPwNJkJK.mjs → index-8wrBAgqn.mjs} +5 -5
- package/dist/{index-B5OVt83d.mjs → index-BCm8GyNp.mjs} +1 -1
- package/dist/{index-C9LdNu0a.mjs → index-BGUJBf1b.mjs} +27 -27
- package/dist/{index-BePwvZ9m.mjs → index-BKReblQ-.mjs} +56 -56
- package/dist/{index-D5jF4kAT.mjs → index-BPbEgv_g.mjs} +114 -114
- package/dist/{index-DNFVieqg.mjs → index-BVKYrCIy.mjs} +1 -1
- package/dist/{index-B0J0xma8.mjs → index-BnpWxtwn.mjs} +3 -3
- package/dist/{index-COvZrTZl.mjs → index-C2_qB4RV.mjs} +1 -1
- package/dist/{index-Dxfj5xxz.mjs → index-C6lbS4Lo.mjs} +2 -2
- package/dist/{index-DnIYE76A.mjs → index-CBlDGIOm.mjs} +37 -37
- package/dist/{index-jzk2C9cj.mjs → index-Cbd9gMMJ.mjs} +21 -21
- package/dist/{index-Dx0mdENP.mjs → index-CcmelnG0.mjs} +32 -32
- package/dist/{index-tcsDF6U0.mjs → index-Cv9EtBjj.mjs} +153 -145
- package/dist/{index-Bmev8P7I.mjs → index-DCrOzptR.mjs} +3 -3
- package/dist/{index-CCnjfMtC.mjs → index-DLKaq1KT.mjs} +3 -3
- package/dist/{index-COT8mjWU.mjs → index-DUeJgFzy.mjs} +2 -2
- package/dist/{index-5rQmXXAD.mjs → index-DWJG5OHB.mjs} +1 -1
- package/dist/{index-sjkYgg27.mjs → index-DeWL7kiw.mjs} +2 -2
- package/dist/{index-CBowEKcR.mjs → index-DgMfinzm.mjs} +2 -2
- package/dist/{index-p1DDr7xl.mjs → index-DrUmzzLs.mjs} +13 -13
- package/dist/{index-k6cvISUf.mjs → index-DvfEpZEP.mjs} +44 -44
- package/dist/{index-CIG303fh.mjs → index-DwPAoK5U.mjs} +121 -118
- package/dist/{index-CWrb0ryZ.mjs → index-DyZhLpPq.mjs} +18 -18
- package/dist/{index-KUs-CZ9C.mjs → index-DyhFuDLH.mjs} +9 -9
- package/dist/{index-BYazmSpv.mjs → index-DymW6iPU.mjs} +3 -3
- package/dist/index-SilwoNEK.mjs +4487 -0
- package/dist/{index-D47Eql1L.mjs → index-jG64vmFA.mjs} +130 -130
- package/dist/{index-DPqaoK4-.mjs → index-r4Tg0GX2.mjs} +3 -3
- package/dist/{index-DVyAUAgy.mjs → index-xWvPJZ-m.mjs} +2 -2
- package/dist/index.mjs +23 -2921
- package/dist/{info-B6nfKr37.mjs → info-9EvTq-5p.mjs} +1 -1
- package/dist/{info-Cd4n1Hxk.mjs → info-BWhsB1Ap.mjs} +1 -1
- package/dist/{info-D90oJO1z.mjs → info-CGUYIYny.mjs} +1 -1
- package/dist/{info-6YpNb7VF.mjs → info-CbJJduEU.mjs} +1 -1
- package/dist/info-CtxVi70h.mjs +4 -0
- package/dist/info-ZeMWMgd3.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-BzNQmLMY.mjs → info.vue_vue_type_script_setup_true_lang-C0J9fiF3.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-BWMDxwv-.mjs → info.vue_vue_type_script_setup_true_lang-CAfl8pgB.mjs} +13 -13
- package/dist/{info.vue_vue_type_script_setup_true_lang-BvcEV_aO.mjs → info.vue_vue_type_script_setup_true_lang-CY7c7Xmz.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-BM-bddTj.mjs → info.vue_vue_type_script_setup_true_lang-CdiFub3m.mjs} +8 -8
- package/dist/{info.vue_vue_type_script_setup_true_lang-CZa5y_q9.mjs → info.vue_vue_type_script_setup_true_lang-DIXXp0TI.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-DhuclI_H.mjs → info.vue_vue_type_script_setup_true_lang-Dm4Ld-wL.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/itsm-flow-temporary/index.d.ts +2 -1
- package/dts/api/itsm-flow-temporary/types.d.ts +13 -0
- package/dts/index.d.ts +2 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +6 -6
- package/package.json +1 -1
- package/dist/_commonjsHelpers-BVfed4GL.mjs +0 -28
- package/dist/index-CYJvDaI_.mjs +0 -1371
- package/dist/index-o0oTSdUL.mjs +0 -149
- package/dist/info-XskyQapE.mjs +0 -4
- package/dist/info-a4HMapKP.mjs +0 -4
|
@@ -2,8 +2,8 @@ import { defineComponent as Ee, mergeModels as Q, ref as f, useModel as _e, reac
|
|
|
2
2
|
import { ElMessage as O } from "element-plus";
|
|
3
3
|
import { useI18n as Fe } from "vue-i18n";
|
|
4
4
|
import { p as Ue } from "./index-CvX2It1o.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { b as Ne, C as g, c as Ce, d as $e, D as V, a as ke, e as x } from "./index-
|
|
5
|
+
import { a as A } from "./index-SilwoNEK.mjs";
|
|
6
|
+
import { b as Ne, C as g, c as Ce, d as $e, D as V, a as ke, e as x } from "./index-DWJG5OHB.mjs";
|
|
7
7
|
import "xyvcard-itsm";
|
|
8
8
|
const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
|
|
9
9
|
__name: "edit",
|
|
@@ -3,7 +3,7 @@ import { ElMessage as S } from "element-plus";
|
|
|
3
3
|
import { useI18n as pe } from "vue-i18n";
|
|
4
4
|
import { i as I, t as fe, a as be } from "./common-Cwl5jzlM.mjs";
|
|
5
5
|
import { p as ve } from "./index-CvX2It1o.mjs";
|
|
6
|
-
import { f as ge, C as Ne, D as $, g as ke, a as _e } from "./index-
|
|
6
|
+
import { f as ge, C as Ne, D as $, g as ke, a as _e } from "./index-DWJG5OHB.mjs";
|
|
7
7
|
const he = { class: "title" }, $e = /* @__PURE__ */ se({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ z({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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
2
|
import { useTableHooks as le } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
|
-
import { i as re } from "./index-
|
|
5
|
-
import ne from "./edit-
|
|
6
|
-
import { _ as ie } from "./info.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { D as w, O as se, C as P } from "./index-
|
|
4
|
+
import { i as re } from "./index-SilwoNEK.mjs";
|
|
5
|
+
import ne from "./edit-DVqIGzRC.mjs";
|
|
6
|
+
import { _ as ie } from "./info.vue_vue_type_script_setup_true_lang-DIXXp0TI.mjs";
|
|
7
|
+
import { D as w, O as se, C as P } from "./index-DWJG5OHB.mjs";
|
|
8
8
|
import { rbacApi as me } from "jmash-rbac";
|
|
9
9
|
const ue = { class: "app-container" }, de = { class: "search-container" }, pe = { key: 0 }, ce = ["onClick"], ye = ["onClick"], fe = ["onClick"], Ie = /* @__PURE__ */ X({
|
|
10
10
|
__name: "index",
|
|
@@ -124,7 +124,7 @@ const ue = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
124
124
|
a(b, { span: 6 }, {
|
|
125
125
|
default: l(() => [
|
|
126
126
|
a(I, {
|
|
127
|
-
label: o.$t("itsmFlowSpareParts.
|
|
127
|
+
label: o.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
128
128
|
prop: "itemId"
|
|
129
129
|
}, {
|
|
130
130
|
default: l(() => [
|
|
@@ -3,7 +3,7 @@ import "element-plus";
|
|
|
3
3
|
import { useI18n as ce } from "vue-i18n";
|
|
4
4
|
import { p as me } from "./index-CvX2It1o.mjs";
|
|
5
5
|
import { i as O, t as pe, a as fe } from "./common-Cwl5jzlM.mjs";
|
|
6
|
-
import { f as be, C as M, D as I, g as z, a as ve } from "./index-
|
|
6
|
+
import { f as be, C as M, D as I, g as z, a as ve } from "./index-DWJG5OHB.mjs";
|
|
7
7
|
const Ie = /* @__PURE__ */ ne({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: /* @__PURE__ */ se({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as re, mergeModels as ie, ref as b, useModel as se, reactive as A, computed as ue, watch as E, nextTick as de, resolveComponent as
|
|
1
|
+
import { defineComponent as re, mergeModels as ie, ref as b, useModel as se, reactive as A, computed as ue, watch as E, nextTick as de, resolveComponent as n, createElementBlock as f, openBlock as u, Fragment as y, createVNode as a, withCtx as o, createElementVNode as D, unref as m, renderList as g, createBlock as k, toDisplayString as ne, createTextVNode as me } from "vue";
|
|
2
2
|
import { useI18n as pe } from "vue-i18n";
|
|
3
3
|
import { useUserStoreHook as fe, fileApi as ce } from "jmash-core";
|
|
4
4
|
import "element-plus";
|
|
5
|
-
import { i as z } from "./index-
|
|
6
|
-
import { D as w, O as j, C as O, i as K } from "./index-
|
|
5
|
+
import { i as z } from "./index-SilwoNEK.mjs";
|
|
6
|
+
import { D as w, O as j, C as O, i as K } from "./index-DWJG5OHB.mjs";
|
|
7
7
|
import { sysUserExtApi as ve } from "xyvcard-itsmsys";
|
|
8
8
|
import { E as be } from "./el-message-BJAl6Gwu.mjs";
|
|
9
9
|
const ke = /* @__PURE__ */ re({
|
|
@@ -26,14 +26,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
26
26
|
const M = new j({ orgType: O.OUTSOURCE });
|
|
27
27
|
M.useValues(), w.userExtBizDict.useValues();
|
|
28
28
|
const V = b([]), i = b({}), R = b([]), F = b([]), q = b((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), T = S;
|
|
29
|
-
let
|
|
29
|
+
let p = A({
|
|
30
30
|
requestId: Math.random() * 10 + "",
|
|
31
31
|
files: [],
|
|
32
32
|
finishDate: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
33
33
|
temporaryId: T.task.businessKey
|
|
34
34
|
});
|
|
35
|
-
const L = ue(() =>
|
|
36
|
-
(l) => l.orgId ===
|
|
35
|
+
const L = ue(() => i.value.govOrgId ? w.itemBizLayDict.values.filter(
|
|
36
|
+
(l) => l.orgId === i.value.govOrgId
|
|
37
37
|
) : []), N = b([]);
|
|
38
38
|
ve.findList().then((e) => {
|
|
39
39
|
R.value = e.data.results;
|
|
@@ -86,7 +86,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
86
86
|
fileSort: ((d = V.value[0]) == null ? void 0 : d.fileSort) || w.fileTypeDict.values.slice(3, 4)[0].dictCode
|
|
87
87
|
};
|
|
88
88
|
});
|
|
89
|
-
V.value = [...l],
|
|
89
|
+
V.value = [...l], p.files = [...l];
|
|
90
90
|
}
|
|
91
91
|
async function Z(e) {
|
|
92
92
|
try {
|
|
@@ -102,7 +102,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
102
102
|
});
|
|
103
103
|
function x() {
|
|
104
104
|
K.findFilesList({ actionId: T.task.businessKey }).then(({ data: e }) => {
|
|
105
|
-
e.results && Array.isArray(e.results) && (
|
|
105
|
+
e.results && Array.isArray(e.results) && (p.files = e.results.map((l) => {
|
|
106
106
|
let r = "";
|
|
107
107
|
return l.fileName && (r = l.fileSort || l.type || ""), {
|
|
108
108
|
fileName: l.fileName || "",
|
|
@@ -123,14 +123,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
123
123
|
], c.value.varName = "approved", c.value.module = "", c.value.module = O.MODULE_ITSMFLOW), new Promise((e, l) => {
|
|
124
124
|
var r;
|
|
125
125
|
(r = U.value) == null || r.validate((d) => {
|
|
126
|
-
d ? (c.value && (c.value.comment = ""),
|
|
126
|
+
d ? (c.value && (c.value.comment = ""), p.requestId = Math.random() * 10 + "", z.finish(p).then((s) => {
|
|
127
127
|
s.status === 200 ? e(!0) : l(!1);
|
|
128
128
|
})) : l(!1);
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
return (e, l) => {
|
|
133
|
-
const r =
|
|
133
|
+
const r = n("el-col"), d = n("jmash-select"), s = n("el-form-item"), v = n("el-option"), C = n("el-select"), I = n("el-input"), P = n("el-date-picker"), le = n("el-button"), ae = n("jmash-multi-image-upload"), te = n("el-row"), oe = n("el-form");
|
|
134
134
|
return u(), f(y, null, [
|
|
135
135
|
a(r, { span: 24 }, {
|
|
136
136
|
default: o(() => l[10] || (l[10] = [
|
|
@@ -142,7 +142,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
142
142
|
a(oe, {
|
|
143
143
|
ref_key: "taskFormRef",
|
|
144
144
|
ref: U,
|
|
145
|
-
model: p
|
|
145
|
+
model: m(p),
|
|
146
146
|
"label-width": "150px",
|
|
147
147
|
rules: J,
|
|
148
148
|
class: "custom-table-form"
|
|
@@ -161,7 +161,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
161
161
|
modelValue: i.value.govOrgId,
|
|
162
162
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => i.value.govOrgId = t),
|
|
163
163
|
placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
164
|
-
data:
|
|
164
|
+
data: m($).values,
|
|
165
165
|
clearable: "",
|
|
166
166
|
filterable: "",
|
|
167
167
|
class: "w-full",
|
|
@@ -176,7 +176,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
176
176
|
a(r, { span: 24 }, {
|
|
177
177
|
default: o(() => [
|
|
178
178
|
a(s, {
|
|
179
|
-
label: e.$t("itsmFlowSpareParts.
|
|
179
|
+
label: e.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
180
180
|
prop: "itemId"
|
|
181
181
|
}, {
|
|
182
182
|
default: o(() => [
|
|
@@ -207,11 +207,11 @@ const ke = /* @__PURE__ */ re({
|
|
|
207
207
|
a(r, { span: 12 }, {
|
|
208
208
|
default: o(() => [
|
|
209
209
|
a(s, {
|
|
210
|
-
label: e.$t("itsmFlowTemporary.
|
|
210
|
+
label: e.$t("itsmFlowTemporary.createBy")
|
|
211
211
|
}, {
|
|
212
212
|
default: o(() => [
|
|
213
213
|
a(I, {
|
|
214
|
-
value:
|
|
214
|
+
value: m(G).user.realName,
|
|
215
215
|
placeholder: e.$t("itsmFlowTemporary.createUserRequired"),
|
|
216
216
|
"show-word-limit": "",
|
|
217
217
|
clearable: "",
|
|
@@ -291,7 +291,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
291
291
|
}),
|
|
292
292
|
a(r, { span: 24 }, {
|
|
293
293
|
default: o(() => [
|
|
294
|
-
(u(!0), f(y, null, g(
|
|
294
|
+
(u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(2, 3), (t, B) => (u(), k(s, {
|
|
295
295
|
key: t.dictCode,
|
|
296
296
|
label: t.dictName
|
|
297
297
|
}, {
|
|
@@ -306,7 +306,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
306
306
|
link: "",
|
|
307
307
|
size: "small",
|
|
308
308
|
class: "icon-right",
|
|
309
|
-
onClick: (
|
|
309
|
+
onClick: (Y) => Z(h)
|
|
310
310
|
}, {
|
|
311
311
|
default: o(() => l[11] || (l[11] = [
|
|
312
312
|
me(" 查看 ")
|
|
@@ -324,7 +324,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
324
324
|
a(r, { span: 24 }, {
|
|
325
325
|
default: o(() => [
|
|
326
326
|
a(s, {
|
|
327
|
-
label: e.$t("itsmFlowTemporary.
|
|
327
|
+
label: e.$t("itsmFlowTemporary.outOrgIdTemporary"),
|
|
328
328
|
prop: "outOrgId"
|
|
329
329
|
}, {
|
|
330
330
|
default: o(() => [
|
|
@@ -332,7 +332,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
332
332
|
modelValue: i.value.outOrgId,
|
|
333
333
|
"onUpdate:modelValue": l[5] || (l[5] = (t) => i.value.outOrgId = t),
|
|
334
334
|
placeholder: e.$t("itsmFlowTemporary.outOrgIdRequired"),
|
|
335
|
-
data:
|
|
335
|
+
data: m(M).values,
|
|
336
336
|
clearable: "",
|
|
337
337
|
filterable: "",
|
|
338
338
|
class: "w-full",
|
|
@@ -347,7 +347,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
347
347
|
a(r, { span: 24 }, {
|
|
348
348
|
default: o(() => [
|
|
349
349
|
a(s, {
|
|
350
|
-
label: e.$t("itsmFlowTemporary.
|
|
350
|
+
label: e.$t("itsmFlowTemporary.userIdTemporary"),
|
|
351
351
|
prop: "userId"
|
|
352
352
|
}, {
|
|
353
353
|
default: o(() => [
|
|
@@ -404,8 +404,8 @@ const ke = /* @__PURE__ */ re({
|
|
|
404
404
|
}, {
|
|
405
405
|
default: o(() => [
|
|
406
406
|
a(P, {
|
|
407
|
-
modelValue: p
|
|
408
|
-
"onUpdate:modelValue": l[8] || (l[8] = (t) => p
|
|
407
|
+
modelValue: m(p).finishDate,
|
|
408
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => m(p).finishDate = t),
|
|
409
409
|
type: "date",
|
|
410
410
|
placeholder: e.$t("itsmFlowTemporary.finishDateRequired"),
|
|
411
411
|
format: "YYYY-MM-DD",
|
|
@@ -425,8 +425,8 @@ const ke = /* @__PURE__ */ re({
|
|
|
425
425
|
}, {
|
|
426
426
|
default: o(() => [
|
|
427
427
|
a(I, {
|
|
428
|
-
modelValue: p
|
|
429
|
-
"onUpdate:modelValue": l[9] || (l[9] = (t) => p
|
|
428
|
+
modelValue: m(p).completion,
|
|
429
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => m(p).completion = t),
|
|
430
430
|
placeholder: e.$t("itsmFlowTemporary.completionRequired"),
|
|
431
431
|
"show-word-limit": "",
|
|
432
432
|
clearable: ""
|
|
@@ -439,10 +439,10 @@ const ke = /* @__PURE__ */ re({
|
|
|
439
439
|
}),
|
|
440
440
|
a(r, { span: 24 }, {
|
|
441
441
|
default: o(() => [
|
|
442
|
-
(u(!0), f(y, null, g(
|
|
442
|
+
(u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(3, 4), (t, B) => (u(), k(s, {
|
|
443
443
|
key: t.dictCode,
|
|
444
444
|
label: t.dictName,
|
|
445
|
-
prop: "files." +
|
|
445
|
+
prop: "files." + B + ".fileSrc"
|
|
446
446
|
}, {
|
|
447
447
|
default: o(() => [
|
|
448
448
|
(u(!0), f(y, null, g(V.value, (h, _) => (u(), f("div", {
|
|
@@ -451,7 +451,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
451
451
|
}, [
|
|
452
452
|
a(ae, {
|
|
453
453
|
modelValue: h.fileSrc,
|
|
454
|
-
"onUpdate:modelValue": (
|
|
454
|
+
"onUpdate:modelValue": (Y) => h.fileSrc = Y,
|
|
455
455
|
limit: 6,
|
|
456
456
|
"list-type": "picture-card",
|
|
457
457
|
onUploadFileList: X
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as K, mergeModels as q, ref as v, useModel as H, reactive as W, computed as
|
|
2
|
-
import { useUserStoreHook as Q, fileApi as
|
|
1
|
+
import { defineComponent as K, mergeModels as q, ref as v, useModel as H, reactive as W, computed as B, nextTick as G, resolveComponent as m, createElementBlock as y, openBlock as _, Fragment as I, createVNode as l, withCtx as t, createElementVNode as O, unref as d, createTextVNode as s, toDisplayString as n, renderList as $, createBlock as J } from "vue";
|
|
2
|
+
import { useUserStoreHook as Q, fileApi as k } from "jmash-core";
|
|
3
3
|
import "element-plus";
|
|
4
|
-
import { i as X } from "./index-
|
|
5
|
-
import { D as u, i as N, C as Y } from "./index-
|
|
4
|
+
import { i as X } from "./index-SilwoNEK.mjs";
|
|
5
|
+
import { D as u, i as N, C as Y } from "./index-DWJG5OHB.mjs";
|
|
6
6
|
const ae = /* @__PURE__ */ K({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: /* @__PURE__ */ q({
|
|
@@ -18,32 +18,32 @@ const ae = /* @__PURE__ */ K({
|
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
19
|
setup(h, { expose: L }) {
|
|
20
20
|
u.orgIdBizDict.useValues();
|
|
21
|
-
const D = v(),
|
|
21
|
+
const D = v(), p = H(h, "modelValue"), P = Q();
|
|
22
22
|
u.itemBizLayDict.useValues(), u.userExtBizDict.useValues(), v([]);
|
|
23
|
-
const
|
|
23
|
+
const i = v({}), b = v([]), z = v((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), g = h;
|
|
24
24
|
let S = W({});
|
|
25
25
|
N.findFilesList({ actionId: g.task.businessKey }).then((e) => {
|
|
26
|
-
|
|
26
|
+
b.value = e.data.results, console.log(e.data.results, "=> files");
|
|
27
27
|
});
|
|
28
|
-
const C =
|
|
28
|
+
const C = B(() => {
|
|
29
29
|
var a;
|
|
30
30
|
const o = ((a = u.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : a.dictCode) || "";
|
|
31
|
-
return
|
|
32
|
-
}),
|
|
31
|
+
return b.value.filter((r) => r.fileSort === o);
|
|
32
|
+
}), U = B(() => {
|
|
33
33
|
var o;
|
|
34
34
|
const e = (o = u.fileTypeDict.values[2]) == null ? void 0 : o.dictCode;
|
|
35
|
-
return
|
|
35
|
+
return b.value.filter((a) => a.fileSort === e);
|
|
36
36
|
});
|
|
37
37
|
async function A(e) {
|
|
38
38
|
try {
|
|
39
|
-
const o =
|
|
40
|
-
|
|
39
|
+
const o = k.fileUrl(e.filePath), r = await (await fetch(o)).blob(), w = window.URL.createObjectURL(r), c = document.createElement("a");
|
|
40
|
+
c.href = w, c.download = e.fileName || "download", document.body.appendChild(c), c.click();
|
|
41
41
|
} catch {
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
X.findById({ temporaryId: g.task.businessKey }).then(({ data: e }) => {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
i.value = { ...e }, G(() => {
|
|
46
|
+
i.value ? Object.assign(i.value, e) : i.value = { ...e }, M();
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
function M() {
|
|
@@ -63,22 +63,22 @@ const ae = /* @__PURE__ */ K({
|
|
|
63
63
|
changeModel: () => E()
|
|
64
64
|
});
|
|
65
65
|
function E() {
|
|
66
|
-
return
|
|
66
|
+
return p.value && (p.value.selectActions = [
|
|
67
67
|
{ key: "true", value: "同意" },
|
|
68
68
|
{ key: "false", value: "不同意" }
|
|
69
|
-
],
|
|
69
|
+
], p.value.varName = "approved", p.value.module = "", p.value.module = Y.MODULE_ITSMFLOW), new Promise((e, o) => {
|
|
70
70
|
var a;
|
|
71
|
-
(a = D.value) == null || a.validate((
|
|
72
|
-
|
|
71
|
+
(a = D.value) == null || a.validate((r) => {
|
|
72
|
+
r ? (p.value && (p.value.comment = ""), e(!0)) : o(!1);
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
return (e, o) => {
|
|
77
|
-
const a = m("el-col"),
|
|
78
|
-
return _(),
|
|
77
|
+
const a = m("el-col"), r = m("el-form-item"), w = m("el-button"), c = m("el-image"), R = m("el-row"), j = m("el-form");
|
|
78
|
+
return _(), y(I, null, [
|
|
79
79
|
l(a, { span: 24 }, {
|
|
80
80
|
default: t(() => o[0] || (o[0] = [
|
|
81
|
-
|
|
81
|
+
O("div", { class: "title" }, "外部临时工单", -1)
|
|
82
82
|
])),
|
|
83
83
|
_: 1,
|
|
84
84
|
__: [0]
|
|
@@ -95,12 +95,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
95
95
|
default: t(() => [
|
|
96
96
|
l(a, { span: 24 }, {
|
|
97
97
|
default: t(() => [
|
|
98
|
-
l(
|
|
98
|
+
l(r, {
|
|
99
99
|
label: e.$t("itsmFlowSpareParts.govOrgId"),
|
|
100
100
|
prop: "govOrgId"
|
|
101
101
|
}, {
|
|
102
102
|
default: t(() => [
|
|
103
|
-
s(n(d(u).orgIdBizDict.getValue(
|
|
103
|
+
s(n(d(u).orgIdBizDict.getValue(i.value.govOrgId)), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
}, 8, ["label"])
|
|
@@ -109,12 +109,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
109
109
|
}),
|
|
110
110
|
l(a, { span: 24 }, {
|
|
111
111
|
default: t(() => [
|
|
112
|
-
l(
|
|
113
|
-
label: e.$t("itsmFlowSpareParts.
|
|
112
|
+
l(r, {
|
|
113
|
+
label: e.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
114
114
|
prop: "itemId"
|
|
115
115
|
}, {
|
|
116
116
|
default: t(() => [
|
|
117
|
-
s(n(d(u).itemBizLayDict.getValue(
|
|
117
|
+
s(n(d(u).itemBizLayDict.getValue(i.value.itemId)), 1)
|
|
118
118
|
]),
|
|
119
119
|
_: 1
|
|
120
120
|
}, 8, ["label"])
|
|
@@ -123,8 +123,8 @@ const ae = /* @__PURE__ */ K({
|
|
|
123
123
|
}),
|
|
124
124
|
l(a, { span: 12 }, {
|
|
125
125
|
default: t(() => [
|
|
126
|
-
l(
|
|
127
|
-
label: e.$t("itsmFlowTemporary.
|
|
126
|
+
l(r, {
|
|
127
|
+
label: e.$t("itsmFlowTemporary.createBy")
|
|
128
128
|
}, {
|
|
129
129
|
default: t(() => [
|
|
130
130
|
s(n(d(P).user.realName), 1)
|
|
@@ -136,12 +136,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
136
136
|
}),
|
|
137
137
|
l(a, { span: 12 }, {
|
|
138
138
|
default: t(() => [
|
|
139
|
-
l(
|
|
139
|
+
l(r, {
|
|
140
140
|
label: e.$t("itsmFlowTemporary.createTime"),
|
|
141
141
|
prop: "createTime"
|
|
142
142
|
}, {
|
|
143
143
|
default: t(() => [
|
|
144
|
-
s(n(
|
|
144
|
+
s(n(z.value), 1)
|
|
145
145
|
]),
|
|
146
146
|
_: 1
|
|
147
147
|
}, 8, ["label"])
|
|
@@ -150,12 +150,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
150
150
|
}),
|
|
151
151
|
l(a, { span: 24 }, {
|
|
152
152
|
default: t(() => [
|
|
153
|
-
l(
|
|
153
|
+
l(r, {
|
|
154
154
|
label: e.$t("itsmFlowTemporary.title"),
|
|
155
155
|
prop: "title"
|
|
156
156
|
}, {
|
|
157
157
|
default: t(() => [
|
|
158
|
-
s(n(
|
|
158
|
+
s(n(i.value.title), 1)
|
|
159
159
|
]),
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["label"])
|
|
@@ -164,12 +164,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
164
164
|
}),
|
|
165
165
|
l(a, { span: 24 }, {
|
|
166
166
|
default: t(() => [
|
|
167
|
-
l(
|
|
167
|
+
l(r, {
|
|
168
168
|
label: e.$t("itsmFlowTemporary.content"),
|
|
169
169
|
prop: "content"
|
|
170
170
|
}, {
|
|
171
171
|
default: t(() => [
|
|
172
|
-
s(n(
|
|
172
|
+
s(n(i.value.content), 1)
|
|
173
173
|
]),
|
|
174
174
|
_: 1
|
|
175
175
|
}, 8, ["label"])
|
|
@@ -178,19 +178,19 @@ const ae = /* @__PURE__ */ K({
|
|
|
178
178
|
}),
|
|
179
179
|
l(a, { span: 24 }, {
|
|
180
180
|
default: t(() => [
|
|
181
|
-
l(
|
|
181
|
+
l(r, { label: "附件" }, {
|
|
182
182
|
default: t(() => [
|
|
183
|
-
(_(!0),
|
|
183
|
+
(_(!0), y(I, null, $(U.value, (f, F) => (_(), y("div", {
|
|
184
184
|
key: F,
|
|
185
185
|
class: "files-list"
|
|
186
186
|
}, [
|
|
187
|
-
|
|
187
|
+
O("span", null, n(f.fileName), 1),
|
|
188
188
|
l(w, {
|
|
189
189
|
type: "primary",
|
|
190
190
|
link: "",
|
|
191
191
|
size: "small",
|
|
192
192
|
class: "icon-right",
|
|
193
|
-
onClick: (
|
|
193
|
+
onClick: (T) => A(f)
|
|
194
194
|
}, {
|
|
195
195
|
default: t(() => o[1] || (o[1] = [
|
|
196
196
|
s(" 查看 ")
|
|
@@ -207,12 +207,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
207
207
|
}),
|
|
208
208
|
l(a, { span: 24 }, {
|
|
209
209
|
default: t(() => [
|
|
210
|
-
l(
|
|
211
|
-
label: e.$t("itsmFlowTemporary.
|
|
210
|
+
l(r, {
|
|
211
|
+
label: e.$t("itsmFlowTemporary.outOrgIdTemporary"),
|
|
212
212
|
prop: "outOrgId"
|
|
213
213
|
}, {
|
|
214
214
|
default: t(() => [
|
|
215
|
-
s(n(d(u).orgIdBizDict.getValue(
|
|
215
|
+
s(n(d(u).orgIdBizDict.getValue(i.value.outOrgId)), 1)
|
|
216
216
|
]),
|
|
217
217
|
_: 1
|
|
218
218
|
}, 8, ["label"])
|
|
@@ -221,12 +221,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
221
221
|
}),
|
|
222
222
|
l(a, { span: 24 }, {
|
|
223
223
|
default: t(() => [
|
|
224
|
-
l(
|
|
225
|
-
label: e.$t("itsmFlowTemporary.
|
|
224
|
+
l(r, {
|
|
225
|
+
label: e.$t("itsmFlowTemporary.userIdTemporary"),
|
|
226
226
|
prop: "userId"
|
|
227
227
|
}, {
|
|
228
228
|
default: t(() => [
|
|
229
|
-
s(n(d(u).userExtBizDict.getValue(
|
|
229
|
+
s(n(d(u).userExtBizDict.getValue(i.value.userId)), 1)
|
|
230
230
|
]),
|
|
231
231
|
_: 1
|
|
232
232
|
}, 8, ["label"])
|
|
@@ -235,12 +235,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
235
235
|
}),
|
|
236
236
|
l(a, { span: 12 }, {
|
|
237
237
|
default: t(() => [
|
|
238
|
-
l(
|
|
238
|
+
l(r, {
|
|
239
239
|
label: e.$t("itsmFlowTemporary.handlingPeriod"),
|
|
240
240
|
prop: "handlingPeriod"
|
|
241
241
|
}, {
|
|
242
242
|
default: t(() => [
|
|
243
|
-
s(n(
|
|
243
|
+
s(n(i.value.handlingPeriod), 1)
|
|
244
244
|
]),
|
|
245
245
|
_: 1
|
|
246
246
|
}, 8, ["label"])
|
|
@@ -249,12 +249,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
249
249
|
}),
|
|
250
250
|
l(a, { span: 12 }, {
|
|
251
251
|
default: t(() => [
|
|
252
|
-
l(
|
|
252
|
+
l(r, {
|
|
253
253
|
label: e.$t("itsmFlowTemporary.finishDate"),
|
|
254
254
|
prop: "finishDate"
|
|
255
255
|
}, {
|
|
256
256
|
default: t(() => [
|
|
257
|
-
s(n(
|
|
257
|
+
s(n(i.value.finishDate), 1)
|
|
258
258
|
]),
|
|
259
259
|
_: 1
|
|
260
260
|
}, 8, ["label"])
|
|
@@ -263,12 +263,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
263
263
|
}),
|
|
264
264
|
l(a, { span: 24 }, {
|
|
265
265
|
default: t(() => [
|
|
266
|
-
l(
|
|
266
|
+
l(r, {
|
|
267
267
|
label: e.$t("itsmFlowTemporary.completion"),
|
|
268
268
|
prop: "completion"
|
|
269
269
|
}, {
|
|
270
270
|
default: t(() => [
|
|
271
|
-
s(n(
|
|
271
|
+
s(n(i.value.completion), 1)
|
|
272
272
|
]),
|
|
273
273
|
_: 1
|
|
274
274
|
}, 8, ["label"])
|
|
@@ -277,18 +277,18 @@ const ae = /* @__PURE__ */ K({
|
|
|
277
277
|
}),
|
|
278
278
|
l(a, { span: 24 }, {
|
|
279
279
|
default: t(() => [
|
|
280
|
-
(_(!0),
|
|
280
|
+
(_(!0), y(I, null, $(d(u).fileTypeDict.values.slice(3, 4), (f, F) => (_(), J(r, {
|
|
281
281
|
key: f.dictCode,
|
|
282
282
|
label: f.dictName,
|
|
283
283
|
prop: "files." + F + ".fileSrc"
|
|
284
284
|
}, {
|
|
285
285
|
default: t(() => {
|
|
286
|
-
var
|
|
286
|
+
var T, V;
|
|
287
287
|
return [
|
|
288
|
-
l(
|
|
289
|
-
src: d(
|
|
288
|
+
l(c, {
|
|
289
|
+
src: d(k).imageUrl((T = C.value[0]) == null ? void 0 : T.fileSrc, 100, 100),
|
|
290
290
|
"preview-src-list": [
|
|
291
|
-
d(
|
|
291
|
+
d(k).imageUrl((V = C.value[0]) == null ? void 0 : V.fileSrc)
|
|
292
292
|
],
|
|
293
293
|
"preview-teleported": "",
|
|
294
294
|
"hide-on-click-modal": "",
|