xyvcard-itsm-flow 0.0.27 → 0.0.29
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-DDqwfEMu.mjs → FileSaver.min-BJJnPj5_.mjs} +1 -1
- package/dist/{edit-BpAjiLxu.mjs → edit-7a3pU3gM.mjs} +32 -33
- package/dist/{edit-CkGTDSiH.mjs → edit-B766NO49.mjs} +1 -1
- package/dist/{edit-DIyC972n.mjs → edit-BlU9fwRY.mjs} +2 -2
- package/dist/{edit-BWaFYsWY.mjs → edit-Cr-eJzsu.mjs} +2 -2
- package/dist/{edit-BH_qEChy.mjs → edit-DoewXVPj.mjs} +1 -1
- package/dist/{edit-D0-xQV59.mjs → edit-OIcnLUiZ.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CEHUWh-t.mjs → edit.vue_vue_type_script_setup_true_lang-B1O92nnS.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DcDT5675.mjs → edit.vue_vue_type_script_setup_true_lang-BTZqpf-h.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CxUe7kvR.mjs → edit.vue_vue_type_script_setup_true_lang-CTEuDDac.mjs} +1 -1
- package/dist/{index-Chh_9yED.mjs → index-B0EdAsac.mjs} +64 -64
- package/dist/{index-BkqkF7bW.mjs → index-BYjL5oUb.mjs} +1 -1
- package/dist/{index-Cd9CTAUb.mjs → index-BeiFftoz.mjs} +43 -43
- package/dist/{index-rHARbj0G.mjs → index-BokqyNKm.mjs} +3 -3
- package/dist/{index-Bjjyjlwd.mjs → index-BxTUhmxb.mjs} +1 -1
- package/dist/{index-n6pwVFlo.mjs → index-C-5DyRAf.mjs} +1 -1
- package/dist/{index-CillImY_.mjs → index-C0SUKE_b.mjs} +130 -131
- package/dist/{index-qvWMlGg9.mjs → index-CS4lbGVv.mjs} +2 -2
- package/dist/{index-CGDEQO2p.mjs → index-CTHETI78.mjs} +2 -2
- package/dist/{index-DfptoNZ3.mjs → index-ClSfPsAZ.mjs} +225 -234
- package/dist/{index-YBHgdjIk.mjs → index-CloP-imd.mjs} +77 -77
- package/dist/{index-WpTFFCXY.mjs → index-CvRKy1Zt.mjs} +3 -3
- package/dist/{index-DBRVK73O.mjs → index-DD73FsFR.mjs} +2 -2
- package/dist/{index-QPdQNctc.mjs → index-D_YsAUB5.mjs} +4 -4
- package/dist/{index-DjZysfQB.mjs → index-DdN_VfEA.mjs} +19 -20
- package/dist/{index-DY5EGkfi.mjs → index-DhIucH1l.mjs} +3 -3
- package/dist/{index-DxoX_XqQ.mjs → index-Dhi872WO.mjs} +54 -56
- package/dist/{index-D6Poyzq3.mjs → index-Dt4hyivI.mjs} +2 -2
- package/dist/index-FYXSfSRw.mjs +336 -0
- package/dist/{index-CXOeg2so.mjs → index-H9iJHz8H.mjs} +408 -378
- package/dist/{index-BKveaoi_.mjs → index-SHY9mfQ4.mjs} +15 -15
- package/dist/{index-CI9FMMKr.mjs → index-TwUCIPb2.mjs} +34 -35
- package/dist/{index-CjYlJigX.mjs → index-WI518CIo.mjs} +4 -4
- package/dist/{index-B20ya3NZ.mjs → index-ZWDwP27X.mjs} +93 -93
- package/dist/{index-CQ9elIv7.mjs → index-a9yfLGkF.mjs} +2 -2
- package/dist/{index-BKQGui3N.mjs → index-gz_fPNLU.mjs} +3 -3
- package/dist/{index-C3zQQDPa.mjs → index-nKA8vf-F.mjs} +3 -3
- package/dist/{index-DcDzU5zK.mjs → index-oOdJR6IJ.mjs} +61 -58
- package/dist/{index-CV6uWLV9.mjs → index-uxxOPESF.mjs} +33 -33
- package/dist/{index-DTY8LR57.mjs → index-yF5goVnK.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-BmfgBiif.mjs → info-B3IFH6JM.mjs} +1 -1
- package/dist/{info-C1J_4HDK.mjs → info-BPzoFpre.mjs} +1 -1
- package/dist/{info-DTZck-Y6.mjs → info-DDUOzO6P.mjs} +1 -1
- package/dist/{info-0Dcd8VrX.mjs → info-DeCyo-9t.mjs} +1 -1
- package/dist/info-DgdSwOpG.mjs +4 -0
- package/dist/info-mG4uiy17.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-CzLGZ50z.mjs → info.vue_vue_type_script_setup_true_lang-Bp7DYLNW.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CEoQybvz.mjs → info.vue_vue_type_script_setup_true_lang-BsVcXTOa.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-0cRfUL0q.mjs → info.vue_vue_type_script_setup_true_lang-DRu-ikYO.mjs} +14 -14
- package/dist/{info.vue_vue_type_script_setup_true_lang-CdfnKI3-.mjs → info.vue_vue_type_script_setup_true_lang-DVV5aOiA.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-CETcd2E0.mjs → info.vue_vue_type_script_setup_true_lang-DqrV1bD4.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-BeDGwXfi.mjs → info.vue_vue_type_script_setup_true_lang-QbYDyzuO.mjs} +12 -12
- package/dist/style.css +1 -1
- package/dts/api/itsm-flow-spare-parts-demand-data/index.d.ts +8 -0
- package/dts/api/itsm-flow-spare-parts-demand-data/types.d.ts +44 -0
- package/dts/api/itsm-flow-temporary/types.d.ts +1 -1
- package/dts/lang/itsm-flow/zh-cn.d.ts +29 -0
- package/dts/views/itsm-flow-spare-parts-demand-data/index.vue.d.ts +2 -0
- package/package.json +1 -1
- package/dist/info-DjtHpeoT.mjs +0 -4
- package/dist/info-qIG0jebP.mjs +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as fe, mergeModels as j, ref as c, reactive as Y, computed as z, watch as K, useModel as ye, nextTick as ge, resolveComponent as i, createBlock as h, openBlock as m, withCtx as r, createVNode as o, unref as s, createElementBlock as
|
|
1
|
+
import { defineComponent as fe, mergeModels as j, ref as c, reactive as Y, computed as z, watch as K, useModel as ye, nextTick as ge, resolveComponent as i, createBlock as h, openBlock as m, withCtx as r, createVNode as o, unref as s, createElementBlock as y, Fragment as I, renderList as V, createCommentVNode as Ie, createTextVNode as v, toDisplayString as w, createElementVNode as ve } from "vue";
|
|
2
2
|
import { ElMessage as H } from "element-plus";
|
|
3
3
|
import { useI18n as we } from "vue-i18n";
|
|
4
|
-
import { i as C } from "./index-
|
|
5
|
-
import { D as
|
|
4
|
+
import { i as C } from "./index-H9iJHz8H.mjs";
|
|
5
|
+
import { D as b, O as G, C as $, i as be } from "./index-yF5goVnK.mjs";
|
|
6
6
|
import { u as _e } from "./index-CvX2It1o.mjs";
|
|
7
7
|
import { sysUserExtApi as Fe } from "xyvcard-itsmsys";
|
|
8
8
|
import { useUserStoreHook as Te } from "jmash-core";
|
|
@@ -22,30 +22,30 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
22
22
|
emits: /* @__PURE__ */ j(["refresh"], ["update:modelValue"]),
|
|
23
23
|
setup(U, { emit: J }) {
|
|
24
24
|
const Q = Te(), { t: p } = we(), O = c();
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
25
|
+
b.itemBizLayDict.useValues();
|
|
26
|
+
const R = new G({ orgType: $.HALL });
|
|
27
|
+
R.useValues();
|
|
28
|
+
const D = new G({ orgType: $.OUTSOURCE });
|
|
29
|
+
D.useValues(), b.userExtBizDict.useValues();
|
|
30
30
|
const S = c((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
|
|
31
31
|
let t = Y({
|
|
32
32
|
requestId: Math.random() * 10 + "",
|
|
33
33
|
files: [],
|
|
34
34
|
temporaryType: $.External
|
|
35
35
|
});
|
|
36
|
-
const L = z(() => t.govOrgId ?
|
|
36
|
+
const L = z(() => t.govOrgId ? b.itemBizLayDict.values.filter(
|
|
37
37
|
(l) => l.orgId === t.govOrgId
|
|
38
38
|
) : []);
|
|
39
39
|
function W(e) {
|
|
40
40
|
t.itemId = void 0;
|
|
41
41
|
}
|
|
42
|
-
const _ = c([]),
|
|
42
|
+
const _ = c([]), g = c([]);
|
|
43
43
|
Fe.findList().then((e) => {
|
|
44
44
|
_.value = e.data.results;
|
|
45
45
|
}), K(
|
|
46
46
|
[_, () => t.userId],
|
|
47
47
|
([e, l]) => {
|
|
48
|
-
e && l && t.outOrgId && (
|
|
48
|
+
e && l && t.outOrgId && (g.value = e.filter(
|
|
49
49
|
(u) => u.orgId === t.outOrgId
|
|
50
50
|
));
|
|
51
51
|
},
|
|
@@ -53,9 +53,9 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
53
53
|
), K(
|
|
54
54
|
() => t.outOrgId,
|
|
55
55
|
(e) => {
|
|
56
|
-
e && Array.isArray(_.value) ? (
|
|
56
|
+
e && Array.isArray(_.value) ? (g.value = _.value.filter(
|
|
57
57
|
(l) => l.orgId === e
|
|
58
|
-
),
|
|
58
|
+
), t.userId && !g.value.some((l) => l.userId === t.userId) && (t.userId = "")) : (g.value = [], t.userId = "");
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
@@ -102,8 +102,8 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
102
102
|
trigger: "change"
|
|
103
103
|
}
|
|
104
104
|
]
|
|
105
|
-
}),
|
|
106
|
-
const e =
|
|
105
|
+
}), f = ye(U, "modelValue"), q = U, Z = z(() => {
|
|
106
|
+
const e = b.fileTypeDict.values.slice(2, 3)[0];
|
|
107
107
|
return e ? e.dictCode : "temporary_file";
|
|
108
108
|
});
|
|
109
109
|
function x() {
|
|
@@ -118,7 +118,6 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
118
118
|
};
|
|
119
119
|
t.files || (t.files = []), t.files.push(l), t.files = [...new Set(t.files)];
|
|
120
120
|
}
|
|
121
|
-
console.log(I.fileTypeDict.values.slice(2, 3)[0], "=>fileTypeDict ");
|
|
122
121
|
function le(e) {
|
|
123
122
|
var l;
|
|
124
123
|
(l = t.files) == null || l.splice(e, 1);
|
|
@@ -148,7 +147,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
148
147
|
u.status === 200 && (H({
|
|
149
148
|
message: p("common.submitSuccess"),
|
|
150
149
|
type: "success"
|
|
151
|
-
}),
|
|
150
|
+
}), f.value = !1, B("refresh", !0));
|
|
152
151
|
});
|
|
153
152
|
}));
|
|
154
153
|
}, ae = async () => {
|
|
@@ -158,25 +157,25 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
158
157
|
u.status === 200 && (H({
|
|
159
158
|
message: p("common.submitSuccess"),
|
|
160
159
|
type: "success"
|
|
161
|
-
}),
|
|
160
|
+
}), f.value = !1, B("refresh", !0));
|
|
162
161
|
});
|
|
163
162
|
}));
|
|
164
163
|
};
|
|
165
164
|
function E() {
|
|
166
|
-
|
|
165
|
+
f.value && (f.value = !1);
|
|
167
166
|
}
|
|
168
167
|
return (e, l) => {
|
|
169
168
|
const u = i("jmash-select"), d = i("el-form-item"), n = i("el-col"), A = i("el-option"), M = i("el-select"), F = i("el-input"), se = i("el-date-picker"), T = i("el-button"), ie = i("CircleClose"), ue = i("el-icon"), de = i("el-row"), ne = i("el-form"), me = i("jmash-multi-upload"), pe = i("el-dialog");
|
|
170
169
|
return m(), h(pe, {
|
|
171
|
-
modelValue:
|
|
172
|
-
"onUpdate:modelValue": l[9] || (l[9] = (a) =>
|
|
170
|
+
modelValue: f.value,
|
|
171
|
+
"onUpdate:modelValue": l[9] || (l[9] = (a) => f.value = a),
|
|
173
172
|
onClose: E
|
|
174
173
|
}, {
|
|
175
174
|
footer: r(() => [
|
|
176
175
|
ve("div", Ve, [
|
|
177
176
|
o(T, { onClick: E }, {
|
|
178
177
|
default: r(() => [
|
|
179
|
-
w(
|
|
178
|
+
v(w(e.$t("common.cancel")), 1)
|
|
180
179
|
]),
|
|
181
180
|
_: 1
|
|
182
181
|
}),
|
|
@@ -185,7 +184,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
185
184
|
onClick: re
|
|
186
185
|
}, {
|
|
187
186
|
default: r(() => [
|
|
188
|
-
w(
|
|
187
|
+
v(w(e.$t("itsmFlowEntrustUser.save")), 1)
|
|
189
188
|
]),
|
|
190
189
|
_: 1
|
|
191
190
|
}),
|
|
@@ -194,7 +193,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
194
193
|
onClick: ae
|
|
195
194
|
}, {
|
|
196
195
|
default: r(() => [
|
|
197
|
-
w(
|
|
196
|
+
v(w(e.$t("itsmFlowEntrustUser.submit")), 1)
|
|
198
197
|
]),
|
|
199
198
|
_: 1
|
|
200
199
|
})
|
|
@@ -223,7 +222,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
223
222
|
modelValue: s(t).govOrgId,
|
|
224
223
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => s(t).govOrgId = a),
|
|
225
224
|
placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
226
|
-
data: s(
|
|
225
|
+
data: s(R).values,
|
|
227
226
|
clearable: "",
|
|
228
227
|
filterable: "",
|
|
229
228
|
class: "w-full",
|
|
@@ -252,7 +251,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
252
251
|
disabled: !s(t).govOrgId
|
|
253
252
|
}, {
|
|
254
253
|
default: r(() => [
|
|
255
|
-
(m(!0),
|
|
254
|
+
(m(!0), y(I, null, V(L.value, (a) => (m(), h(A, {
|
|
256
255
|
key: a.key,
|
|
257
256
|
value: a.key,
|
|
258
257
|
label: a.value
|
|
@@ -351,7 +350,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
351
350
|
}),
|
|
352
351
|
o(n, { span: 24 }, {
|
|
353
352
|
default: r(() => [
|
|
354
|
-
(m(!0),
|
|
353
|
+
(m(!0), y(I, null, V(s(b).fileTypeDict.values.slice(2, 3), (a, qe) => (m(), y(I, {
|
|
355
354
|
key: a.dictCode
|
|
356
355
|
}, [
|
|
357
356
|
o(d, {
|
|
@@ -364,7 +363,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
364
363
|
onClick: x
|
|
365
364
|
}, {
|
|
366
365
|
default: r(() => [
|
|
367
|
-
w(
|
|
366
|
+
v(w(e.$t("common.uploadFiles")), 1)
|
|
368
367
|
]),
|
|
369
368
|
_: 1
|
|
370
369
|
}, 8, ["icon"])
|
|
@@ -373,11 +372,11 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
373
372
|
}, 1032, ["label"]),
|
|
374
373
|
s(t).files && s(t).files.length > 0 ? (m(), h(d, { key: 0 }, {
|
|
375
374
|
default: r(() => [
|
|
376
|
-
(m(!0),
|
|
375
|
+
(m(!0), y(I, null, V(s(t).files, (ce, P) => (m(), y("div", {
|
|
377
376
|
key: P,
|
|
378
377
|
class: "files-list"
|
|
379
378
|
}, [
|
|
380
|
-
w(
|
|
379
|
+
v(w(ce.fileName) + " ", 1),
|
|
381
380
|
o(ue, {
|
|
382
381
|
size: "16",
|
|
383
382
|
class: "icon-right",
|
|
@@ -407,7 +406,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
407
406
|
modelValue: s(t).outOrgId,
|
|
408
407
|
"onUpdate:modelValue": l[5] || (l[5] = (a) => s(t).outOrgId = a),
|
|
409
408
|
placeholder: e.$t("itsmFlowTemporary.outOrgIdRequired"),
|
|
410
|
-
data: s(
|
|
409
|
+
data: s(D).values,
|
|
411
410
|
clearable: "",
|
|
412
411
|
filterable: "",
|
|
413
412
|
class: "w-full"
|
|
@@ -434,7 +433,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
434
433
|
class: "w-full"
|
|
435
434
|
}, {
|
|
436
435
|
default: r(() => [
|
|
437
|
-
(m(!0),
|
|
436
|
+
(m(!0), y(I, null, V(g.value, (a) => (m(), h(A, {
|
|
438
437
|
key: a.userId,
|
|
439
438
|
value: a.userId,
|
|
440
439
|
label: a.realName
|
|
@@ -486,7 +485,7 @@ const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
|
486
485
|
}, 8, ["modelValue"]);
|
|
487
486
|
};
|
|
488
487
|
}
|
|
489
|
-
}), Ae = /* @__PURE__ */ he(Oe, [["__scopeId", "data-v-
|
|
488
|
+
}), Ae = /* @__PURE__ */ he(Oe, [["__scopeId", "data-v-3fac083a"]]);
|
|
490
489
|
export {
|
|
491
490
|
Ae as default
|
|
492
491
|
};
|
|
@@ -3,8 +3,8 @@ import { ElMessage as _ } from "element-plus";
|
|
|
3
3
|
import { d as ke, p as Be, u as Ce, c as Ue } from "./index-CvX2It1o.mjs";
|
|
4
4
|
import "jmash-rbac";
|
|
5
5
|
import { useI18n as De } from "vue-i18n";
|
|
6
|
-
import { i as A, a as Re } from "./index-
|
|
7
|
-
import { D as P, O as Me, C as Te, i as Oe } from "./index-
|
|
6
|
+
import { i as A, a as Re } from "./index-BxTUhmxb.mjs";
|
|
7
|
+
import { D as P, O as Me, C as Te, i as Oe } from "./index-yF5goVnK.mjs";
|
|
8
8
|
import { itemBudgetApi as ee } from "xyvcard-itsm";
|
|
9
9
|
import { useUserStoreHook as Ae } from "jmash-core";
|
|
10
10
|
import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as re, mergeModels as U, ref as f, reactive as S, useModel as ae, computed as se, nextTick as ie, resolveComponent as i, createBlock as N, openBlock as c, withCtx as o, createVNode as t, unref as s, createElementBlock as w, Fragment as b, renderList as M, createCommentVNode as ne, createTextVNode as y, toDisplayString as g, createElementVNode as ue } from "vue";
|
|
2
2
|
import { ElMessage as O } from "element-plus";
|
|
3
3
|
import { useI18n as me } from "vue-i18n";
|
|
4
|
-
import { i as V } from "./index-
|
|
5
|
-
import { U as de, C as Y, D as I, i as pe } from "./index-
|
|
4
|
+
import { i as V } from "./index-H9iJHz8H.mjs";
|
|
5
|
+
import { U as de, C as Y, D as I, i as pe } from "./index-yF5goVnK.mjs";
|
|
6
6
|
import { u as ce } from "./index-CvX2It1o.mjs";
|
|
7
7
|
import { useUserStoreHook as fe } from "jmash-core";
|
|
8
8
|
import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -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 { a as A } from "./index-
|
|
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-H9iJHz8H.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-yF5goVnK.mjs";
|
|
7
7
|
import "xyvcard-itsm";
|
|
8
8
|
const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
|
|
9
9
|
__name: "edit",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ve, mergeModels as L, ref as f, useModel as be, reactive as T, resolveComponent as u, createBlock as H, openBlock as y, withCtx as o, createVNode as t, createElementVNode as r, unref as d, createElementBlock as R, Fragment as G, renderList as J, createTextVNode as b, toDisplayString as F } from "vue";
|
|
2
2
|
import { ElMessage as N } from "element-plus";
|
|
3
3
|
import { useI18n as we } from "vue-i18n";
|
|
4
|
-
import { I as ge, C as j, U as he, D as A, i as V } from "./index-
|
|
4
|
+
import { I as ge, C as j, U as he, D as A, i as V } from "./index-yF5goVnK.mjs";
|
|
5
5
|
import { u as ye } from "./index-CvX2It1o.mjs";
|
|
6
6
|
import { useUserStore as Fe } from "jmash-core";
|
|
7
7
|
const Ne = { class: "title" }, qe = /* @__PURE__ */ ve({
|
|
@@ -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-yF5goVnK.mjs";
|
|
7
7
|
const he = { class: "title" }, $e = /* @__PURE__ */ se({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ z({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as le, mergeModels as oe, ref as
|
|
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
|
-
import { useI18n as
|
|
4
|
-
import { i as
|
|
5
|
-
import { U as ne, C as O, D as
|
|
3
|
+
import { useI18n as se } from "vue-i18n";
|
|
4
|
+
import { i as L } from "./index-H9iJHz8H.mjs";
|
|
5
|
+
import { U as ne, C as O, D as h, i as de } from "./index-yF5goVnK.mjs";
|
|
6
6
|
import { u as ue } from "./index-CvX2It1o.mjs";
|
|
7
7
|
import { useUserStoreHook as me, fileApi as pe } from "jmash-core";
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
8
|
+
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
const ce = /* @__PURE__ */ le({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: /* @__PURE__ */ oe({
|
|
12
12
|
task: {
|
|
@@ -20,25 +20,26 @@ const fe = /* @__PURE__ */ le({
|
|
|
20
20
|
}),
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
22
|
setup(U, { expose: P }) {
|
|
23
|
-
const j = me(), { t: ye } =
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
let
|
|
23
|
+
const j = me(), { t: ye } = se(), $ = new ne({ userType: O.COMPANY_MANAGER });
|
|
24
|
+
$.useValues();
|
|
25
|
+
const g = w(), v = te(U, "modelValue"), N = w([]), m = w({}), D = U, M = w((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
|
|
26
|
+
let r = ae({
|
|
27
27
|
files: [],
|
|
28
|
-
|
|
28
|
+
requestId: Math.random() * 10 + "",
|
|
29
|
+
temporaryId: D.task.businessKey,
|
|
29
30
|
finishDate: (/* @__PURE__ */ new Date()).toISOString().split("T")[0]
|
|
30
31
|
});
|
|
31
|
-
const
|
|
32
|
+
const C = w(!1), R = w();
|
|
32
33
|
Y(() => {
|
|
33
|
-
const e =
|
|
34
|
+
const e = h.fileTypeDict.values.slice(2, 3)[0];
|
|
34
35
|
return e ? e.dictCode : "temporary_file";
|
|
35
36
|
});
|
|
36
37
|
const E = Y(() => {
|
|
37
|
-
const e =
|
|
38
|
+
const e = h.fileTypeDict.values.slice(3, 4)[0];
|
|
38
39
|
return e ? e.dictCode : "other_file";
|
|
39
40
|
});
|
|
40
41
|
function B() {
|
|
41
|
-
|
|
42
|
+
C.value = !0, R.value.clearFileList();
|
|
42
43
|
}
|
|
43
44
|
function z(e) {
|
|
44
45
|
const o = {
|
|
@@ -47,32 +48,31 @@ const fe = /* @__PURE__ */ le({
|
|
|
47
48
|
fileSort: E.value,
|
|
48
49
|
fileSrc: ""
|
|
49
50
|
};
|
|
50
|
-
|
|
51
|
+
r.files || (r.files = []), r.files.push(o), r.files = [...new Set(r.files)];
|
|
51
52
|
}
|
|
52
|
-
console.log(b.fileTypeDict.values.slice(2, 3)[0], "=>fileTypeDict ");
|
|
53
53
|
function K(e) {
|
|
54
54
|
var o;
|
|
55
|
-
(o =
|
|
55
|
+
(o = r.files) == null || o.splice(e, 1);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
L.findById({ temporaryId: D.task.businessKey }).then(({ data: e }) => {
|
|
58
58
|
m.value = e, m.value.outOrgId = e.outOrgId, ie(() => {
|
|
59
59
|
Object.assign(m.value, e), G();
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
function G() {
|
|
63
|
-
de.findFilesList({ actionId:
|
|
63
|
+
de.findFilesList({ actionId: D.task.businessKey }).then(({ data: e }) => {
|
|
64
64
|
var o, i;
|
|
65
65
|
if (e.results && Array.isArray(e.results)) {
|
|
66
|
-
const u = [],
|
|
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 b = {
|
|
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
|
-
|
|
75
|
-
}), N.value = u,
|
|
74
|
+
b.fileSort === c ? u.push(b) : b.fileSort === T && s.push(b);
|
|
75
|
+
}), N.value = u, r.files = s.map((n) => ({
|
|
76
76
|
fileName: n.fileName ?? "",
|
|
77
77
|
fileId: n.fileId ?? "",
|
|
78
78
|
fileSort: n.fileSort ?? "",
|
|
@@ -84,8 +84,8 @@ const fe = /* @__PURE__ */ le({
|
|
|
84
84
|
}
|
|
85
85
|
async function H(e) {
|
|
86
86
|
try {
|
|
87
|
-
const o = pe.fileUrl(e.
|
|
88
|
-
|
|
87
|
+
const o = pe.fileUrl(e.fileSrc), u = await (await fetch(o)).blob(), s = window.URL.createObjectURL(u), c = document.createElement("a");
|
|
88
|
+
c.href = s, c.download = e.fileName || "download", document.body.appendChild(c), c.click();
|
|
89
89
|
} catch {
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -98,27 +98,27 @@ const fe = /* @__PURE__ */ le({
|
|
|
98
98
|
{ key: "false", value: "不同意" }
|
|
99
99
|
], v.value.varName = "approved", v.value.module = "", v.value.module = O.MODULE_ITSMFLOW), new Promise((e, o) => {
|
|
100
100
|
var i;
|
|
101
|
-
(i =
|
|
102
|
-
u ? (v.value && (v.value.comment = ""),
|
|
103
|
-
|
|
101
|
+
(i = g.value) == null || i.validate((u) => {
|
|
102
|
+
u ? (v.value && (v.value.comment = ""), L.finish(
|
|
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"),
|
|
110
|
-
return
|
|
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"), b = p("CircleClose"), J = p("el-icon"), Q = p("el-row"), X = p("el-form"), Z = p("jmash-multi-upload");
|
|
110
|
+
return f(), y(_, null, [
|
|
111
111
|
l(i, { span: 24 }, {
|
|
112
112
|
default: t(() => o[8] || (o[8] = [
|
|
113
|
-
|
|
113
|
+
q("div", { class: "title" }, "内部临时工单", -1)
|
|
114
114
|
])),
|
|
115
115
|
_: 1,
|
|
116
116
|
__: [8]
|
|
117
117
|
}),
|
|
118
118
|
l(X, {
|
|
119
119
|
ref_key: "taskFormRef",
|
|
120
|
-
ref:
|
|
121
|
-
model: d(
|
|
120
|
+
ref: g,
|
|
121
|
+
model: d(r),
|
|
122
122
|
"label-width": "150px",
|
|
123
123
|
class: "custom-table-form custom-form"
|
|
124
124
|
}, {
|
|
@@ -127,7 +127,7 @@ const fe = /* @__PURE__ */ le({
|
|
|
127
127
|
default: t(() => [
|
|
128
128
|
l(i, { span: 24 }, {
|
|
129
129
|
default: t(() => [
|
|
130
|
-
l(
|
|
130
|
+
l(s, {
|
|
131
131
|
label: e.$t("itsmFlowTemporary.title"),
|
|
132
132
|
prop: "title"
|
|
133
133
|
}, {
|
|
@@ -148,7 +148,7 @@ const fe = /* @__PURE__ */ le({
|
|
|
148
148
|
}),
|
|
149
149
|
l(i, { span: 24 }, {
|
|
150
150
|
default: t(() => [
|
|
151
|
-
l(
|
|
151
|
+
l(s, {
|
|
152
152
|
label: e.$t("itsmFlowTemporary.content"),
|
|
153
153
|
prop: "content"
|
|
154
154
|
}, {
|
|
@@ -169,17 +169,17 @@ const fe = /* @__PURE__ */ le({
|
|
|
169
169
|
}),
|
|
170
170
|
l(i, { span: 24 }, {
|
|
171
171
|
default: t(() => [
|
|
172
|
-
(
|
|
172
|
+
(f(!0), y(_, null, k(d(h).fileTypeDict.values.slice(2, 3), (a, x) => (f(), A(s, {
|
|
173
173
|
key: a.dictCode,
|
|
174
174
|
label: a.dictName
|
|
175
175
|
}, {
|
|
176
176
|
default: t(() => [
|
|
177
|
-
(
|
|
177
|
+
(f(!0), y(_, null, k(N.value, (F, V) => (f(), y("div", {
|
|
178
178
|
key: V,
|
|
179
179
|
class: "files-list"
|
|
180
180
|
}, [
|
|
181
|
-
|
|
182
|
-
l(
|
|
181
|
+
q("span", null, I(F.fileName), 1),
|
|
182
|
+
l(c, {
|
|
183
183
|
type: "primary",
|
|
184
184
|
link: "",
|
|
185
185
|
size: "small",
|
|
@@ -187,7 +187,7 @@ const fe = /* @__PURE__ */ le({
|
|
|
187
187
|
onClick: (ee) => H(F)
|
|
188
188
|
}, {
|
|
189
189
|
default: t(() => o[9] || (o[9] = [
|
|
190
|
-
|
|
190
|
+
S(" 查看 ")
|
|
191
191
|
])),
|
|
192
192
|
_: 2,
|
|
193
193
|
__: [9]
|
|
@@ -201,7 +201,7 @@ const fe = /* @__PURE__ */ le({
|
|
|
201
201
|
}),
|
|
202
202
|
l(i, { span: 12 }, {
|
|
203
203
|
default: t(() => [
|
|
204
|
-
l(
|
|
204
|
+
l(s, {
|
|
205
205
|
label: e.$t("itsmFlowTemporary.createBy")
|
|
206
206
|
}, {
|
|
207
207
|
default: t(() => [
|
|
@@ -220,7 +220,7 @@ const fe = /* @__PURE__ */ le({
|
|
|
220
220
|
}),
|
|
221
221
|
l(i, { span: 12 }, {
|
|
222
222
|
default: t(() => [
|
|
223
|
-
l(
|
|
223
|
+
l(s, {
|
|
224
224
|
label: e.$t("itsmFlowTemporary.createTime"),
|
|
225
225
|
prop: "createTime"
|
|
226
226
|
}, {
|
|
@@ -244,7 +244,7 @@ const fe = /* @__PURE__ */ le({
|
|
|
244
244
|
}),
|
|
245
245
|
l(i, { span: 24 }, {
|
|
246
246
|
default: t(() => [
|
|
247
|
-
l(
|
|
247
|
+
l(s, {
|
|
248
248
|
label: e.$t("itsmFlowTemporary.userIdTemporary"),
|
|
249
249
|
prop: "userId"
|
|
250
250
|
}, {
|
|
@@ -252,7 +252,7 @@ const fe = /* @__PURE__ */ le({
|
|
|
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($).values,
|
|
256
256
|
placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
|
|
257
257
|
"show-word-limit": "",
|
|
258
258
|
clearable: "",
|
|
@@ -267,7 +267,7 @@ const fe = /* @__PURE__ */ le({
|
|
|
267
267
|
}),
|
|
268
268
|
l(i, { span: 12 }, {
|
|
269
269
|
default: t(() => [
|
|
270
|
-
l(
|
|
270
|
+
l(s, {
|
|
271
271
|
label: e.$t("itsmFlowTemporary.handlingPeriod"),
|
|
272
272
|
prop: "handlingPeriod"
|
|
273
273
|
}, {
|
|
@@ -288,14 +288,14 @@ const fe = /* @__PURE__ */ le({
|
|
|
288
288
|
}),
|
|
289
289
|
l(i, { span: 12 }, {
|
|
290
290
|
default: t(() => [
|
|
291
|
-
l(
|
|
291
|
+
l(s, {
|
|
292
292
|
label: e.$t("itsmFlowTemporary.finishDate"),
|
|
293
293
|
prop: "finishDate"
|
|
294
294
|
}, {
|
|
295
295
|
default: t(() => [
|
|
296
296
|
l(T, {
|
|
297
|
-
modelValue: d(
|
|
298
|
-
"onUpdate:modelValue": o[5] || (o[5] = (a) => d(
|
|
297
|
+
modelValue: d(r).finishDate,
|
|
298
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => d(r).finishDate = a),
|
|
299
299
|
type: "date",
|
|
300
300
|
placeholder: e.$t("itsmFlowTemporary.finishDateRequired"),
|
|
301
301
|
format: "YYYY-MM-DD",
|
|
@@ -309,14 +309,14 @@ const fe = /* @__PURE__ */ le({
|
|
|
309
309
|
}),
|
|
310
310
|
l(i, { span: 24 }, {
|
|
311
311
|
default: t(() => [
|
|
312
|
-
l(
|
|
312
|
+
l(s, {
|
|
313
313
|
label: e.$t("itsmFlowTemporary.completion"),
|
|
314
314
|
prop: "completion"
|
|
315
315
|
}, {
|
|
316
316
|
default: t(() => [
|
|
317
317
|
l(u, {
|
|
318
|
-
modelValue: d(
|
|
319
|
-
"onUpdate:modelValue": o[6] || (o[6] = (a) => d(
|
|
318
|
+
modelValue: d(r).completion,
|
|
319
|
+
"onUpdate:modelValue": o[6] || (o[6] = (a) => d(r).completion = a),
|
|
320
320
|
placeholder: e.$t("itsmFlowTemporary.completionRequired"),
|
|
321
321
|
"show-word-limit": "",
|
|
322
322
|
clearable: ""
|
|
@@ -329,47 +329,47 @@ const fe = /* @__PURE__ */ le({
|
|
|
329
329
|
}),
|
|
330
330
|
l(i, { span: 24 }, {
|
|
331
331
|
default: t(() => [
|
|
332
|
-
(
|
|
332
|
+
(f(!0), y(_, null, k(d(h).fileTypeDict.values.slice(3, 4), (a, x) => (f(), y(_, {
|
|
333
333
|
key: a.dictCode
|
|
334
334
|
}, [
|
|
335
|
-
l(
|
|
335
|
+
l(s, {
|
|
336
336
|
label: a.dictName
|
|
337
337
|
}, {
|
|
338
338
|
default: t(() => [
|
|
339
|
-
l(
|
|
339
|
+
l(c, {
|
|
340
340
|
type: "primary",
|
|
341
341
|
icon: d(ue),
|
|
342
342
|
onClick: B
|
|
343
343
|
}, {
|
|
344
344
|
default: t(() => [
|
|
345
|
-
|
|
345
|
+
S(I(e.$t("common.uploadFiles")), 1)
|
|
346
346
|
]),
|
|
347
347
|
_: 1
|
|
348
348
|
}, 8, ["icon"])
|
|
349
349
|
]),
|
|
350
350
|
_: 2
|
|
351
351
|
}, 1032, ["label"]),
|
|
352
|
-
d(
|
|
352
|
+
d(r).files && d(r).files.length > 0 ? (f(), A(s, { key: 0 }, {
|
|
353
353
|
default: t(() => [
|
|
354
|
-
(
|
|
354
|
+
(f(!0), y(_, null, k(d(r).files, (F, V) => (f(), y("div", {
|
|
355
355
|
key: V,
|
|
356
356
|
class: "files-list"
|
|
357
357
|
}, [
|
|
358
|
-
|
|
358
|
+
S(I(F.fileName) + " ", 1),
|
|
359
359
|
l(J, {
|
|
360
360
|
size: "16",
|
|
361
361
|
class: "icon-right",
|
|
362
362
|
onClick: (ee) => K(V)
|
|
363
363
|
}, {
|
|
364
364
|
default: t(() => [
|
|
365
|
-
l(
|
|
365
|
+
l(b)
|
|
366
366
|
]),
|
|
367
367
|
_: 2
|
|
368
368
|
}, 1032, ["onClick"])
|
|
369
369
|
]))), 128))
|
|
370
370
|
]),
|
|
371
371
|
_: 2
|
|
372
|
-
}, 1024)) :
|
|
372
|
+
}, 1024)) : re("", !0)
|
|
373
373
|
], 64))), 128))
|
|
374
374
|
]),
|
|
375
375
|
_: 1
|
|
@@ -383,14 +383,14 @@ const fe = /* @__PURE__ */ le({
|
|
|
383
383
|
l(Z, {
|
|
384
384
|
ref_key: "uploadRef",
|
|
385
385
|
ref: R,
|
|
386
|
-
modelValue:
|
|
387
|
-
"onUpdate:modelValue": o[7] || (o[7] = (a) =>
|
|
386
|
+
modelValue: C.value,
|
|
387
|
+
"onUpdate:modelValue": o[7] || (o[7] = (a) => C.value = a),
|
|
388
388
|
onUploadFileList: z
|
|
389
389
|
}, null, 8, ["modelValue"])
|
|
390
390
|
], 64);
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
}), ke = /* @__PURE__ */ ce
|
|
393
|
+
}), ke = /* @__PURE__ */ fe(ce, [["__scopeId", "data-v-de7c3f08"]]);
|
|
394
394
|
export {
|
|
395
395
|
ke as default
|
|
396
396
|
};
|