xyvcard-itsm-flow 0.0.37 → 0.0.38
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-CcRexVWs.mjs → FileSaver.min-C-3rxI72.mjs} +1 -1
- package/dist/{edit-B8FY8M6x.mjs → edit-3YacNQ0m.mjs} +2 -2
- package/dist/{edit-CYO8KzcD.mjs → edit-BuyO4D5o.mjs} +2 -2
- package/dist/{edit-mhTHPQB-.mjs → edit-CxJiWVp8.mjs} +1 -1
- package/dist/{edit-tabydyPH.mjs → edit-DGswtck8.mjs} +29 -29
- package/dist/{edit-ndrtIw5g.mjs → edit-Ds_Iif35.mjs} +1 -1
- package/dist/{edit-BrYSwWm8.mjs → edit-FrMPD4Q8.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-bjVhQ_PJ.mjs → edit.vue_vue_type_script_setup_true_lang-B0H9i6ss.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BztTRMJP.mjs → edit.vue_vue_type_script_setup_true_lang-D8jDSSFA.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-9PY1bpNe.mjs → edit.vue_vue_type_script_setup_true_lang-DYt_vHYp.mjs} +1 -1
- package/dist/{index-CoORscq-.mjs → index-B6VcbMkg.mjs} +1 -1
- package/dist/{index-DYF5Sb7s.mjs → index-BK-_l_X-.mjs} +3 -3
- package/dist/{index-CKbI3tpx.mjs → index-BPnMz825.mjs} +4 -4
- package/dist/{index-BAKUoBpo.mjs → index-BZgbmfjz.mjs} +72 -71
- package/dist/{index-hXWnm8E3.mjs → index-B_HeEcEI.mjs} +3 -3
- package/dist/{index-XHwUs18-.mjs → index-BvewKE7L.mjs} +4 -4
- package/dist/{index-Bmh2A5D0.mjs → index-Bzz32n0z.mjs} +2 -2
- package/dist/{index-BGtM6tx9.mjs → index-C2mvyDNS.mjs} +16 -16
- package/dist/{index-BbwdlA0W.mjs → index-C8OzBTVT.mjs} +4 -4
- package/dist/{index-Cm4MxGFZ.mjs → index-CZltgONr.mjs} +4 -4
- package/dist/{index-CDYf1Lun.mjs → index-CcLbblVp.mjs} +3 -3
- package/dist/{index-DrQ7FvTu.mjs → index-CgU6trlJ.mjs} +3 -3
- package/dist/{index-Dn1b7GfK.mjs → index-Cmn2lxO_.mjs} +1 -1
- package/dist/{index-Ba5u8NXB.mjs → index-Cogrwku9.mjs} +3 -3
- package/dist/{index-BcVc6IOP.mjs → index-D1SasUNc.mjs} +2 -1
- package/dist/index-DA3MfjHf.mjs +317 -0
- package/dist/{index-60w9n0dT.mjs → index-DD-VdvMt.mjs} +2 -2
- package/dist/{index-BAnj1Koq.mjs → index-DFBJG6cI.mjs} +55 -55
- package/dist/{index-Qnybzvhx.mjs → index-DSPo1jK_.mjs} +2 -2
- package/dist/{index-BHufDvTp.mjs → index-DWjlJOfX.mjs} +2 -2
- package/dist/{index-ByTfXvfu.mjs → index-D_avlTrt.mjs} +2 -2
- package/dist/{index-DO1JH6jO.mjs → index-DbGGQp4Z.mjs} +2 -2
- package/dist/{index-y58uESmU.mjs → index-DgMMgRkD.mjs} +2 -2
- package/dist/{index-BvoGbtCI.mjs → index-Dh1Vp2x-.mjs} +2 -2
- package/dist/{index-FqOQHZLY.mjs → index-DjEr5bDE.mjs} +2 -2
- package/dist/{index-DcgRM3T_.mjs → index-Dp0ddiVO.mjs} +1 -1
- package/dist/{index-BZCrZ2NM.mjs → index-DyLEMHeP.mjs} +3 -3
- package/dist/{index-CIn70URA.mjs → index-QfJMh7gj.mjs} +17 -17
- package/dist/{index-DDDjPU_6.mjs → index-qEBDruQw.mjs} +1 -1
- package/dist/{index-BBbYRQLd.mjs → index-rULCHGu0.mjs} +3 -3
- package/dist/{index-CzBjNiWz.mjs → index-tYL79USI.mjs} +12 -12
- package/dist/{index-seo1ROVp.mjs → index-tyZIu7Pu.mjs} +3 -3
- package/dist/{index-C3a-IeXB.mjs → index-xS9vmw1f.mjs} +3 -3
- package/dist/index.mjs +1 -1
- package/dist/{info-CHxS6e-5.mjs → info-2yqOgs3g.mjs} +1 -1
- package/dist/{info-CQu4kti_.mjs → info-5b0MsAVP.mjs} +1 -1
- package/dist/{info-CRbFsX7X.mjs → info-B0a03DPy.mjs} +1 -1
- package/dist/{info-B1nuQXGG.mjs → info-D4SI5dEl.mjs} +1 -1
- package/dist/info-D8pJ4cqt.mjs +4 -0
- package/dist/info-DL-3XM_F.mjs +4 -0
- package/dist/info-Dauh_znj.mjs +4 -0
- package/dist/info-DqJrwwrx.mjs +4 -0
- package/dist/info-vZkqfj4d.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-B6I27uus.mjs → info.vue_vue_type_script_setup_true_lang-BNqS_vNl.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CJKMJgJT.mjs → info.vue_vue_type_script_setup_true_lang-BP1NoBBM.mjs} +51 -50
- package/dist/{info.vue_vue_type_script_setup_true_lang-DnfgKcgP.mjs → info.vue_vue_type_script_setup_true_lang-CLHSx_HM.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-JgJStqvz.mjs → info.vue_vue_type_script_setup_true_lang-CkiWEbLP.mjs} +28 -27
- package/dist/{info.vue_vue_type_script_setup_true_lang-CIRdXvCE.mjs → info.vue_vue_type_script_setup_true_lang-D0llCWuF.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-DA3rqMgU.mjs → info.vue_vue_type_script_setup_true_lang-DDZO6qCX.mjs} +11 -11
- package/dist/{info.vue_vue_type_script_setup_true_lang-BSPpLDkD.mjs → info.vue_vue_type_script_setup_true_lang-DjqfjKao.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-Ca_011gq.mjs → info.vue_vue_type_script_setup_true_lang-IQSZ0nn1.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CEuLYRI4.mjs → info.vue_vue_type_script_setup_true_lang-ipuXshVV.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/lang/itsm-flow/zh-cn.d.ts +1 -0
- package/package.json +2 -2
- package/dist/index-DqA8Hu3s.mjs +0 -316
- package/dist/info-D2SRN11N.mjs +0 -4
- package/dist/info-Dp-hn9ce.mjs +0 -4
- package/dist/info-M92gprUH.mjs +0 -4
- package/dist/info-XOKKyoyw.mjs +0 -4
- package/dist/info-mSFJ4xKX.mjs +0 -4
|
@@ -3,8 +3,8 @@ import { ElMessage as q } from "element-plus";
|
|
|
3
3
|
import { d as Ve, p as Se, u as _e, c as Pe } from "./index-CvX2It1o.mjs";
|
|
4
4
|
import "jmash-rbac";
|
|
5
5
|
import { useI18n as Ie } from "vue-i18n";
|
|
6
|
-
import { i as G, a as $e } from "./index-
|
|
7
|
-
import { D as h, i as qe, C as ke } from "./index-
|
|
6
|
+
import { i as G, a as $e } from "./index-Cmn2lxO_.mjs";
|
|
7
|
+
import { D as h, i as qe, C as ke } from "./index-B6VcbMkg.mjs";
|
|
8
8
|
import { itemBudgetApi as J } from "xyvcard-itsm";
|
|
9
9
|
import { useUserStoreHook as Me } from "jmash-core";
|
|
10
10
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as X, getCurrentInstance as Z, ref as h, onMounted as ee, resolveComponent as s, resolveDirective as te, createElementBlock as C, openBlock as _, createElementVNode as k, createVNode as r, withCtx as l, withKeys as $, unref as n, createTextVNode as c, toDisplayString as p, createCommentVNode as V, createBlock as M, isRef as N, withDirectives as ae } from "vue";
|
|
2
2
|
import { useUserStore as T, clearEmpty as I, request as B, useTableHooks as le } from "jmash-core";
|
|
3
3
|
import { useI18n as oe } from "vue-i18n";
|
|
4
|
-
import { q as re } from "./index-
|
|
4
|
+
import { q as re } from "./index-D1SasUNc.mjs";
|
|
5
5
|
import { rbacApi as ne } from "jmash-rbac";
|
|
6
|
-
import { D as R } from "./index-
|
|
6
|
+
import { D as R } from "./index-B6VcbMkg.mjs";
|
|
7
7
|
class se {
|
|
8
8
|
getKey(m) {
|
|
9
9
|
return {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as K, mergeModels as j, ref as _, useModel as q, watch as W, resolveComponent as b, createElementBlock as F, openBlock as m, Fragment as $, createVNode as t, withCtx as l, createElementVNode as f, createBlock as S, createCommentVNode as D, createTextVNode as n, toDisplayString as s, unref as v, renderList as C } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as G } from "vue-i18n";
|
|
4
|
-
import { D as d, C as H, i as J } from "./index-
|
|
5
|
-
import { i as Q, a as X } from "./index-
|
|
4
|
+
import { D as d, C as H, i as J } from "./index-B6VcbMkg.mjs";
|
|
5
|
+
import { i as Q, a as X } from "./index-Cmn2lxO_.mjs";
|
|
6
6
|
import { fileApi as Y } from "jmash-core";
|
|
7
7
|
import { rbacApi as Z } from "jmash-rbac";
|
|
8
8
|
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -2,8 +2,8 @@ import { defineComponent as M, ref as R, reactive as S, resolveComponent as s, r
|
|
|
2
2
|
import { useTableHooks as X } from "jmash-core";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
4
|
import { i as Z } from "./common-Cwl5jzlM.mjs";
|
|
5
|
-
import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { C as ee, D as h } from "./index-
|
|
5
|
+
import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-D8jDSSFA.mjs";
|
|
6
|
+
import { C as ee, D as h } from "./index-B6VcbMkg.mjs";
|
|
7
7
|
const oe = { class: "app-container" }, le = { class: "search-container" }, te = ["onClick"], ne = ["onClick"], pe = /* @__PURE__ */ M({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ae) {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, rea
|
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as me } from "vue-i18n";
|
|
4
4
|
import { u as ce } from "./index-CvX2It1o.mjs";
|
|
5
|
-
import { I as pe, C as w, U as fe, d as ve, D as F, i as N } from "./index-
|
|
5
|
+
import { I as pe, C as w, U as fe, d as ve, D as F, i as N } from "./index-B6VcbMkg.mjs";
|
|
6
6
|
import { useUserStore as be } from "jmash-core";
|
|
7
7
|
import { E as S } from "./el-message-BJAl6Gwu.mjs";
|
|
8
8
|
const Ae = /* @__PURE__ */ ne({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as V, reactive as H, onActivated as M, resolveComponent as s, resolveDirective as W, createElementBlock as h, openBlock as w, createElementVNode as v, createVNode as t, createBlock as C, createCommentVNode as $, withCtx as a, unref as r, withKeys as k, createTextVNode as P, toDisplayString as d, withDirectives as G, isRef as T } from "vue";
|
|
2
2
|
import { useTableHooks as J } from "jmash-core";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
|
-
import { i as Z } from "./index-
|
|
5
|
-
import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { D as c, O as ee, C as le } from "./index-
|
|
4
|
+
import { i as Z } from "./index-Cmn2lxO_.mjs";
|
|
5
|
+
import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-D0llCWuF.mjs";
|
|
6
|
+
import { D as c, O as ee, C as le } from "./index-B6VcbMkg.mjs";
|
|
7
7
|
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
8
|
const ae = { class: "app-container" }, oe = { class: "search-container" }, re = ["onClick"], ne = /* @__PURE__ */ Q({
|
|
9
9
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as le, mergeModels as oe, ref as w, useModel as te, reactive as ae, computed as Y, nextTick as ie, resolveComponent as p, createElementBlock as y, openBlock as f, Fragment as _, createVNode as l, withCtx as t, createElementVNode as q, unref as d, renderList as k, createBlock as A, toDisplayString as I, createTextVNode as S, createCommentVNode as re } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as se } from "vue-i18n";
|
|
4
|
-
import { i as L } from "./index-
|
|
5
|
-
import { U as ne, C as O, D as h, i as de } from "./index-
|
|
4
|
+
import { i as L } from "./index-D1SasUNc.mjs";
|
|
5
|
+
import { U as ne, C as O, D as h, i as de } from "./index-B6VcbMkg.mjs";
|
|
6
6
|
import { u as ue } from "./index-CvX2It1o.mjs";
|
|
7
7
|
import { useUserStoreHook as me, fileApi as pe } from "jmash-core";
|
|
8
8
|
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -20,9 +20,9 @@ const ce = /* @__PURE__ */ le({
|
|
|
20
20
|
}),
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
22
|
setup(U, { expose: P }) {
|
|
23
|
-
const j = me(), { t: ye } = se(),
|
|
24
|
-
|
|
25
|
-
const
|
|
23
|
+
const j = me(), { t: ye } = se(), g = new ne({ userType: O.COMPANY_MANAGER });
|
|
24
|
+
g.useValues();
|
|
25
|
+
const $ = w(), b = te(U, "modelValue"), N = w([]), m = w({}), D = U, M = w((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
|
|
26
26
|
let r = ae({
|
|
27
27
|
files: [],
|
|
28
28
|
requestId: Math.random() * 10 + "",
|
|
@@ -65,13 +65,13 @@ const ce = /* @__PURE__ */ le({
|
|
|
65
65
|
if (e.results && Array.isArray(e.results)) {
|
|
66
66
|
const u = [], s = [], c = ((o = h.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : o.dictCode) || "", T = ((i = h.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : i.dictCode) || "";
|
|
67
67
|
e.results.forEach((n) => {
|
|
68
|
-
const
|
|
68
|
+
const v = {
|
|
69
69
|
fileName: n.fileName || "",
|
|
70
70
|
fileId: n.fileId || "",
|
|
71
71
|
fileSort: n.fileSort || n.type || "",
|
|
72
72
|
fileSrc: n.fileSrc || n.filePath || ""
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
v.fileSort === c ? u.push(v) : v.fileSort === T && s.push(v);
|
|
75
75
|
}), N.value = u, r.files = s.map((n) => ({
|
|
76
76
|
fileName: n.fileName ?? "",
|
|
77
77
|
fileId: n.fileId ?? "",
|
|
@@ -93,20 +93,20 @@ const ce = /* @__PURE__ */ le({
|
|
|
93
93
|
changeModel: () => W()
|
|
94
94
|
});
|
|
95
95
|
function W() {
|
|
96
|
-
return
|
|
96
|
+
return b.value && (b.value.selectActions = [
|
|
97
97
|
{ key: "true", value: "同意" },
|
|
98
98
|
{ key: "false", value: "不同意" }
|
|
99
|
-
],
|
|
99
|
+
], b.value.varName = "approved", b.value.module = "", b.value.module = O.MODULE_ITSMFLOW), new Promise((e, o) => {
|
|
100
100
|
var i;
|
|
101
|
-
(i =
|
|
102
|
-
u ? (
|
|
101
|
+
(i = $.value) == null || i.validate((u) => {
|
|
102
|
+
u ? (b.value && (b.value.comment = ""), L.finish(
|
|
103
103
|
r
|
|
104
104
|
), e(!0)) : o(!1);
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
return (e, o) => {
|
|
109
|
-
const i = p("el-col"), u = p("el-input"), s = p("el-form-item"), c = p("el-button"), T = p("el-date-picker"), n = p("jmash-select"),
|
|
109
|
+
const i = p("el-col"), u = p("el-input"), s = p("el-form-item"), c = p("el-button"), T = p("el-date-picker"), n = p("jmash-select"), v = p("CircleClose"), J = p("el-icon"), Q = p("el-row"), X = p("el-form"), Z = p("jmash-multi-upload");
|
|
110
110
|
return f(), y(_, null, [
|
|
111
111
|
l(i, { span: 24 }, {
|
|
112
112
|
default: t(() => o[8] || (o[8] = [
|
|
@@ -117,7 +117,7 @@ const ce = /* @__PURE__ */ le({
|
|
|
117
117
|
}),
|
|
118
118
|
l(X, {
|
|
119
119
|
ref_key: "taskFormRef",
|
|
120
|
-
ref:
|
|
120
|
+
ref: $,
|
|
121
121
|
model: d(r),
|
|
122
122
|
"label-width": "150px",
|
|
123
123
|
class: "custom-table-form custom-form"
|
|
@@ -245,14 +245,14 @@ const ce = /* @__PURE__ */ le({
|
|
|
245
245
|
l(i, { span: 24 }, {
|
|
246
246
|
default: t(() => [
|
|
247
247
|
l(s, {
|
|
248
|
-
label: e.$t("itsmFlowTemporary.
|
|
248
|
+
label: e.$t("itsmFlowTemporary.assignUser"),
|
|
249
249
|
prop: "userId"
|
|
250
250
|
}, {
|
|
251
251
|
default: t(() => [
|
|
252
252
|
l(n, {
|
|
253
253
|
modelValue: m.value.userId,
|
|
254
254
|
"onUpdate:modelValue": o[3] || (o[3] = (a) => m.value.userId = a),
|
|
255
|
-
data: d(
|
|
255
|
+
data: d(g).values,
|
|
256
256
|
placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
|
|
257
257
|
"show-word-limit": "",
|
|
258
258
|
clearable: "",
|
|
@@ -362,7 +362,7 @@ const ce = /* @__PURE__ */ le({
|
|
|
362
362
|
onClick: (ee) => K(V)
|
|
363
363
|
}, {
|
|
364
364
|
default: t(() => [
|
|
365
|
-
l(
|
|
365
|
+
l(v)
|
|
366
366
|
]),
|
|
367
367
|
_: 2
|
|
368
368
|
}, 1032, ["onClick"])
|
|
@@ -390,7 +390,7 @@ const ce = /* @__PURE__ */ le({
|
|
|
390
390
|
], 64);
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
}), ke = /* @__PURE__ */ fe(ce, [["__scopeId", "data-v-
|
|
393
|
+
}), ke = /* @__PURE__ */ fe(ce, [["__scopeId", "data-v-26e50b35"]]);
|
|
394
394
|
export {
|
|
395
395
|
ke as default
|
|
396
396
|
};
|
|
@@ -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-B6VcbMkg.mjs";
|
|
7
7
|
const Ie = /* @__PURE__ */ ne({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: /* @__PURE__ */ se({
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { a as Z } from "./index-
|
|
5
|
-
import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { D as p, O as ee, C as le } from "./index-
|
|
4
|
+
import { a as Z } from "./index-D1SasUNc.mjs";
|
|
5
|
+
import { _ as x } from "./info.vue_vue_type_script_setup_true_lang-BNqS_vNl.mjs";
|
|
6
|
+
import { D as p, O as ee, C as le } from "./index-B6VcbMkg.mjs";
|
|
7
7
|
const te = { class: "app-container" }, oe = { class: "search-container" }, ae = ["onClick"], pe = /* @__PURE__ */ W({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ne) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as Q, mergeModels as X, ref as y, useModel as Z, reactive as k, computed as x, nextTick as ee, resolveComponent as n, createElementBlock as f, openBlock as c, Fragment as g, createVNode as t, withCtx as r, createElementVNode as le, unref as a, renderList as q, createBlock as te, createCommentVNode as oe, createTextVNode as C, toDisplayString as R } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as re } from "vue-i18n";
|
|
4
|
-
import { i as D } from "./index-
|
|
5
|
-
import { U as ae, C as w, D as M, i as ie } from "./index-
|
|
4
|
+
import { i as D } from "./index-D1SasUNc.mjs";
|
|
5
|
+
import { U as ae, C as w, D as M, i as ie } from "./index-B6VcbMkg.mjs";
|
|
6
6
|
import { u as se } from "./index-CvX2It1o.mjs";
|
|
7
7
|
import { useUserStoreHook as ne } from "jmash-core";
|
|
8
8
|
import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -19,16 +19,16 @@ const de = /* @__PURE__ */ Q({
|
|
|
19
19
|
modelModifiers: {}
|
|
20
20
|
}),
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
22
|
+
setup(b, { expose: N }) {
|
|
23
|
+
const U = ne(), { t: m } = re(), v = new ae({ userType: w.COMPANY_MANAGER });
|
|
24
24
|
v.useValues();
|
|
25
|
-
const F = y(), d = Z(
|
|
25
|
+
const F = y(), d = Z(b, "modelValue"), T = b, h = y((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
|
|
26
26
|
let o = k({
|
|
27
27
|
requestId: Math.random() * 10 + "",
|
|
28
28
|
files: [],
|
|
29
29
|
temporaryType: w.Internal
|
|
30
30
|
});
|
|
31
|
-
const _ = y(!1), I = y(),
|
|
31
|
+
const _ = y(!1), I = y(), $ = k({
|
|
32
32
|
govOrgId: [
|
|
33
33
|
{
|
|
34
34
|
required: !0,
|
|
@@ -91,13 +91,13 @@ const de = /* @__PURE__ */ Q({
|
|
|
91
91
|
var l;
|
|
92
92
|
(l = o.files) == null || l.splice(e, 1);
|
|
93
93
|
}
|
|
94
|
-
D.findById({ temporaryId:
|
|
94
|
+
D.findById({ temporaryId: T.task.businessKey }).then(({ data: e }) => {
|
|
95
95
|
o.outOrgId = e.outOrgId, ee(() => {
|
|
96
96
|
Object.assign(o, e), L();
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
99
|
function L() {
|
|
100
|
-
ie.findFilesList({ actionId:
|
|
100
|
+
ie.findFilesList({ actionId: T.task.businessKey }).then(({ data: e }) => {
|
|
101
101
|
e.results && Array.isArray(e.results) && (o.files = e.results.map((l) => {
|
|
102
102
|
let i = "";
|
|
103
103
|
return l.fileName && (i = l.fileSort || l.type || ""), {
|
|
@@ -138,7 +138,7 @@ const de = /* @__PURE__ */ Q({
|
|
|
138
138
|
ref: F,
|
|
139
139
|
model: a(o),
|
|
140
140
|
"label-width": "150px",
|
|
141
|
-
rules:
|
|
141
|
+
rules: $,
|
|
142
142
|
class: "custom-table-form custom-form"
|
|
143
143
|
}, {
|
|
144
144
|
default: r(() => [
|
|
@@ -238,7 +238,7 @@ const de = /* @__PURE__ */ Q({
|
|
|
238
238
|
}, {
|
|
239
239
|
default: r(() => [
|
|
240
240
|
t(p, {
|
|
241
|
-
value: a(
|
|
241
|
+
value: a(U).user.realName,
|
|
242
242
|
placeholder: e.$t("itsmFlowTemporary.createUserRequired"),
|
|
243
243
|
"show-word-limit": "",
|
|
244
244
|
clearable: "",
|
|
@@ -277,7 +277,7 @@ const de = /* @__PURE__ */ Q({
|
|
|
277
277
|
t(i, { span: 24 }, {
|
|
278
278
|
default: r(() => [
|
|
279
279
|
t(u, {
|
|
280
|
-
label: e.$t("itsmFlowTemporary.
|
|
280
|
+
label: e.$t("itsmFlowTemporary.assignUser"),
|
|
281
281
|
prop: "userId"
|
|
282
282
|
}, {
|
|
283
283
|
default: r(() => [
|
|
@@ -332,7 +332,7 @@ const de = /* @__PURE__ */ Q({
|
|
|
332
332
|
], 64);
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
}), Fe = /* @__PURE__ */ ue(de, [["__scopeId", "data-v-
|
|
335
|
+
}), Fe = /* @__PURE__ */ ue(de, [["__scopeId", "data-v-310bdb2c"]]);
|
|
336
336
|
export {
|
|
337
337
|
Fe as default
|
|
338
338
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as z, mergeModels as N, ref as b, useModel as P, getCurrentInstance as A, resolveComponent as f, createElementBlock as v, openBlock as _, Fragment as g, createVNode as t, withCtx as l, createElementVNode as T, createTextVNode as n, toDisplayString as i, unref as p, renderList as B, createBlock as E } from "vue";
|
|
2
2
|
import { rbacApi as S } from "jmash-rbac";
|
|
3
|
-
import { D as d, i as U, C as R } from "./index-
|
|
3
|
+
import { D as d, i as U, C as R } from "./index-B6VcbMkg.mjs";
|
|
4
4
|
import { fileApi as Y } from "jmash-core";
|
|
5
|
-
import { i as j } from "./index-
|
|
5
|
+
import { i as j } from "./index-D1SasUNc.mjs";
|
|
6
6
|
const Q = /* @__PURE__ */ z({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: /* @__PURE__ */ N({
|
|
@@ -52,7 +52,7 @@ const Q = /* @__PURE__ */ z({
|
|
|
52
52
|
return _(), v(g, null, [
|
|
53
53
|
t(o, { span: 24 }, {
|
|
54
54
|
default: l(() => u[0] || (u[0] = [
|
|
55
|
-
T("div", { class: "title" }, "
|
|
55
|
+
T("div", { class: "title" }, "外部临时工单", -1)
|
|
56
56
|
])),
|
|
57
57
|
_: 1,
|
|
58
58
|
__: [0]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as oe, mergeModels as ne, computed as ae, ref as f, useModel as se, resolveComponent as p, createElementBlock as k, openBlock as _, Fragment as P, createVNode as e, withCtx as l, createElementVNode as a, createTextVNode as r, toDisplayString as u, unref as b, createCommentVNode as I, withDirectives as A, vShow as B, createBlock as O, renderList as re } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { u as ue } from "./index-CvX2It1o.mjs";
|
|
4
|
-
import { a as ie } from "./index-
|
|
5
|
-
import { D as C, C as $, a as de } from "./index-
|
|
4
|
+
import { a as ie } from "./index-D1SasUNc.mjs";
|
|
5
|
+
import { D as C, C as $, a as de } from "./index-B6VcbMkg.mjs";
|
|
6
6
|
import { i as S, t as ce, a as pe } from "./common-Cwl5jzlM.mjs";
|
|
7
7
|
import "jmash-core";
|
|
8
8
|
import { useI18n as me } from "vue-i18n";
|
|
9
|
-
import { F as fe } from "./FileSaver.min-
|
|
9
|
+
import { F as fe } from "./FileSaver.min-C-3rxI72.mjs";
|
|
10
10
|
import { E as j } from "./el-message-BJAl6Gwu.mjs";
|
|
11
11
|
const _e = { key: 0 }, ve = { key: 1 }, be = {
|
|
12
12
|
key: 2,
|
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-D1SasUNc.mjs";
|
|
3
3
|
import "jmash-flow";
|
|
4
4
|
export {
|
|
5
5
|
m as TaskItsmFlowAcceptance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as h, mergeModels as K, ref as F, useModel as j, resolveComponent as p, createBlock as z, openBlock as v, withCtx as e, createVNode as t, createElementVNode as n, createTextVNode as r, toDisplayString as a, unref as w, createElementBlock as y, createCommentVNode as M, withDirectives as C, vShow as V } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { a as S } from "./index-
|
|
4
|
-
import { D as c, a as A } from "./index-
|
|
3
|
+
import { a as S } from "./index-D1SasUNc.mjs";
|
|
4
|
+
import { D as c, a as A } from "./index-B6VcbMkg.mjs";
|
|
5
5
|
const R = { key: 0 }, q = { key: 1 }, L = {
|
|
6
6
|
key: 2,
|
|
7
7
|
class: "distance-left"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { rbacApi as
|
|
3
|
-
import { i as
|
|
4
|
-
import { fileApi as
|
|
5
|
-
import { i as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as E, mergeModels as L, useModel as M, getCurrentInstance as K, ref as T, computed as P, resolveComponent as u, createBlock as h, openBlock as c, withCtx as l, createVNode as o, createTextVNode as s, toDisplayString as m, createElementBlock as b, Fragment as k, renderList as I, unref as f, createElementVNode as Y } from "vue";
|
|
2
|
+
import { rbacApi as R } from "jmash-rbac";
|
|
3
|
+
import { i as S, D as V } from "./index-B6VcbMkg.mjs";
|
|
4
|
+
import { fileApi as j } from "jmash-core";
|
|
5
|
+
import { i as x } from "./index-D1SasUNc.mjs";
|
|
6
|
+
const W = /* @__PURE__ */ E({
|
|
7
7
|
__name: "info",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ L({
|
|
9
9
|
entityKey: {
|
|
10
10
|
type: Object,
|
|
11
11
|
default: () => {
|
|
@@ -18,44 +18,45 @@ const J = /* @__PURE__ */ A({
|
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
19
|
setup(w) {
|
|
20
20
|
var g;
|
|
21
|
-
const p =
|
|
22
|
-
(g = y.entityKey) != null && g.temporaryId &&
|
|
23
|
-
n.value =
|
|
21
|
+
const p = M(w, "modelValue"), { proxy: C } = K(), y = w, n = T();
|
|
22
|
+
(g = y.entityKey) != null && g.temporaryId && x.findById({ temporaryId: y.entityKey.temporaryId }).then((t) => {
|
|
23
|
+
n.value = t.data;
|
|
24
24
|
});
|
|
25
|
-
const v =
|
|
26
|
-
|
|
27
|
-
v.value =
|
|
25
|
+
const v = T([]);
|
|
26
|
+
S.findFilesList({ actionId: y.entityKey.temporaryId }).then((t) => {
|
|
27
|
+
v.value = t.data.results, console.log(t.data.results, "=> files");
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
const D = P(() => v.value.filter((t) => t.fileSort === "temporary_file"));
|
|
30
|
+
async function B(t) {
|
|
30
31
|
try {
|
|
31
|
-
const i =
|
|
32
|
-
d.href = _, d.download =
|
|
32
|
+
const i = j.fileUrl(t.fileSrc), a = await (await fetch(i)).blob(), _ = window.URL.createObjectURL(a), d = document.createElement("a");
|
|
33
|
+
d.href = _, d.download = t.fileName || "download", document.body.appendChild(d), d.click();
|
|
33
34
|
} catch {
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function $() {
|
|
37
38
|
p.value && (p.value = !1);
|
|
38
39
|
}
|
|
39
|
-
return (
|
|
40
|
-
const r = u("el-form-item"), a = u("el-col"), _ = u("el-button"), d = u("el-row"),
|
|
41
|
-
return c(),
|
|
40
|
+
return (t, i) => {
|
|
41
|
+
const r = u("el-form-item"), a = u("el-col"), _ = u("el-button"), d = u("el-row"), N = u("el-form"), U = u("el-dialog");
|
|
42
|
+
return c(), h(U, {
|
|
42
43
|
modelValue: p.value,
|
|
43
44
|
"onUpdate:modelValue": i[0] || (i[0] = (e) => p.value = e),
|
|
44
|
-
onClose:
|
|
45
|
+
onClose: $
|
|
45
46
|
}, {
|
|
46
47
|
default: l(() => [
|
|
47
|
-
|
|
48
|
+
o(N, {
|
|
48
49
|
ref: "itsmFlowEntrustFormRef",
|
|
49
50
|
"label-width": "150px",
|
|
50
51
|
class: "custom-table-form custom-form"
|
|
51
52
|
}, {
|
|
52
53
|
default: l(() => [
|
|
53
|
-
|
|
54
|
+
o(d, null, {
|
|
54
55
|
default: l(() => [
|
|
55
|
-
|
|
56
|
+
o(a, { span: 24 }, {
|
|
56
57
|
default: l(() => [
|
|
57
|
-
|
|
58
|
-
label:
|
|
58
|
+
o(r, {
|
|
59
|
+
label: t.$t("itsmFlowTemporary.title"),
|
|
59
60
|
prop: "title"
|
|
60
61
|
}, {
|
|
61
62
|
default: l(() => {
|
|
@@ -69,10 +70,10 @@ const J = /* @__PURE__ */ A({
|
|
|
69
70
|
]),
|
|
70
71
|
_: 1
|
|
71
72
|
}),
|
|
72
|
-
|
|
73
|
+
o(a, { span: 24 }, {
|
|
73
74
|
default: l(() => [
|
|
74
|
-
|
|
75
|
-
label:
|
|
75
|
+
o(r, {
|
|
76
|
+
label: t.$t("itsmFlowTemporary.content"),
|
|
76
77
|
prop: "content"
|
|
77
78
|
}, {
|
|
78
79
|
default: l(() => {
|
|
@@ -86,27 +87,27 @@ const J = /* @__PURE__ */ A({
|
|
|
86
87
|
]),
|
|
87
88
|
_: 1
|
|
88
89
|
}),
|
|
89
|
-
|
|
90
|
+
o(a, {
|
|
90
91
|
span: 24,
|
|
91
92
|
class: "bordered-row"
|
|
92
93
|
}, {
|
|
93
94
|
default: l(() => [
|
|
94
|
-
(c(!0), b(
|
|
95
|
+
(c(!0), b(k, null, I(f(V).fileTypeDict.values.slice(2, 3), (e, z) => (c(), h(r, {
|
|
95
96
|
key: e.dictCode,
|
|
96
97
|
label: e.dictName
|
|
97
98
|
}, {
|
|
98
99
|
default: l(() => [
|
|
99
|
-
(c(!0), b(
|
|
100
|
-
key:
|
|
100
|
+
(c(!0), b(k, null, I(D.value, (F, A) => (c(), b("div", {
|
|
101
|
+
key: A,
|
|
101
102
|
class: "files-list"
|
|
102
103
|
}, [
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
Y("span", null, m(F.fileName), 1),
|
|
105
|
+
o(_, {
|
|
105
106
|
type: "primary",
|
|
106
107
|
link: "",
|
|
107
108
|
size: "small",
|
|
108
109
|
class: "icon-right",
|
|
109
|
-
onClick: (
|
|
110
|
+
onClick: (H) => B(F)
|
|
110
111
|
}, {
|
|
111
112
|
default: l(() => i[1] || (i[1] = [
|
|
112
113
|
s(" 查看 ")
|
|
@@ -121,16 +122,16 @@ const J = /* @__PURE__ */ A({
|
|
|
121
122
|
]),
|
|
122
123
|
_: 1
|
|
123
124
|
}),
|
|
124
|
-
|
|
125
|
+
o(a, { span: 12 }, {
|
|
125
126
|
default: l(() => [
|
|
126
|
-
|
|
127
|
-
label:
|
|
127
|
+
o(r, {
|
|
128
|
+
label: t.$t("itsmFlowTemporary.createUserTemporary"),
|
|
128
129
|
prop: "createBy"
|
|
129
130
|
}, {
|
|
130
131
|
default: l(() => {
|
|
131
132
|
var e;
|
|
132
133
|
return [
|
|
133
|
-
s(m(f(
|
|
134
|
+
s(m(f(R).userInfo((e = n.value) == null ? void 0 : e.createBy).realName), 1)
|
|
134
135
|
];
|
|
135
136
|
}),
|
|
136
137
|
_: 1
|
|
@@ -138,10 +139,10 @@ const J = /* @__PURE__ */ A({
|
|
|
138
139
|
]),
|
|
139
140
|
_: 1
|
|
140
141
|
}),
|
|
141
|
-
|
|
142
|
+
o(a, { span: 12 }, {
|
|
142
143
|
default: l(() => [
|
|
143
|
-
|
|
144
|
-
label:
|
|
144
|
+
o(r, {
|
|
145
|
+
label: t.$t("itsmFlowTemporary.createTime"),
|
|
145
146
|
prop: "createTime"
|
|
146
147
|
}, {
|
|
147
148
|
default: l(() => {
|
|
@@ -158,10 +159,10 @@ const J = /* @__PURE__ */ A({
|
|
|
158
159
|
]),
|
|
159
160
|
_: 1
|
|
160
161
|
}),
|
|
161
|
-
|
|
162
|
+
o(a, { span: 24 }, {
|
|
162
163
|
default: l(() => [
|
|
163
|
-
|
|
164
|
-
label:
|
|
164
|
+
o(r, {
|
|
165
|
+
label: t.$t("itsmFlowTemporary.assignUser"),
|
|
165
166
|
prop: "userId"
|
|
166
167
|
}, {
|
|
167
168
|
default: l(() => {
|
|
@@ -175,10 +176,10 @@ const J = /* @__PURE__ */ A({
|
|
|
175
176
|
]),
|
|
176
177
|
_: 1
|
|
177
178
|
}),
|
|
178
|
-
|
|
179
|
+
o(a, { span: 24 }, {
|
|
179
180
|
default: l(() => [
|
|
180
|
-
|
|
181
|
-
label:
|
|
181
|
+
o(r, {
|
|
182
|
+
label: t.$t("itsmFlowTemporary.handlingPeriod"),
|
|
182
183
|
prop: "handlingPeriod"
|
|
183
184
|
}, {
|
|
184
185
|
default: l(() => {
|
|
@@ -205,5 +206,5 @@ const J = /* @__PURE__ */ A({
|
|
|
205
206
|
}
|
|
206
207
|
});
|
|
207
208
|
export {
|
|
208
|
-
|
|
209
|
+
W as _
|
|
209
210
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as U, mergeModels as z, useModel as K, ref as P, resolveComponent as m, createBlock as _, openBlock as f, withCtx as e, createVNode as l, createElementVNode as B, createCommentVNode as I, createTextVNode as r, toDisplayString as n, unref as b, createElementBlock as $, Fragment as C, renderList as N } from "vue";
|
|
2
|
-
import { D as c, i as R } from "./index-
|
|
3
|
-
import { i as j, a as q } from "./index-
|
|
2
|
+
import { D as c, i as R } from "./index-B6VcbMkg.mjs";
|
|
3
|
+
import { i as j, a as q } from "./index-Cmn2lxO_.mjs";
|
|
4
4
|
import { fileApi as G } from "jmash-core";
|
|
5
5
|
import { rbacApi as H } from "jmash-rbac";
|
|
6
6
|
const Z = /* @__PURE__ */ U({
|