xyvcard-itsm-flow 0.0.6 → 0.0.8
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-BeKvLuyk.mjs +73 -0
- package/dist/common--K4gGsNT.mjs +85 -0
- package/dist/{edit-CWxy8_xc.mjs → edit-B621RtNS.mjs} +1 -1
- package/dist/edit-CoRzQ2SK.mjs +4 -0
- package/dist/edit-Czk64Yon.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs +670 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs +523 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-D-UzvXtU.mjs +567 -0
- package/dist/el-message-FfNjxLv_.mjs +1238 -0
- package/dist/index-B5vmtcUk.mjs +528 -0
- package/dist/index-BCP5cBN6.mjs +486 -0
- package/dist/index-BJl7xHYx.mjs +339 -0
- package/dist/{index-C_jhIPZS.mjs → index-BlBkHqXR.mjs} +77 -90
- package/dist/index-CRHpl0qA.mjs +501 -0
- package/dist/index-CVbpEq7V.mjs +442 -0
- package/dist/index-CdzhLCkX.mjs +356 -0
- package/dist/index-DX1PURJy.mjs +624 -0
- package/dist/index-DY7ZV5kq.mjs +567 -0
- package/dist/index-Dld6YbIV.mjs +484 -0
- package/dist/index.mjs +936 -917
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +15 -0
- package/dts/api/index.d.ts +6 -1
- package/dts/api/itsm-flow-acceptance/index.d.ts +14 -0
- package/dts/api/itsm-flow-acceptance/types.d.ts +83 -0
- package/dts/api/itsm-flow-entrust/index.d.ts +6 -2
- package/dts/api/itsm-flow-entrust/types.d.ts +26 -5
- package/dts/api/itsm-flow-entrust-user/types.d.ts +1 -3
- package/dts/api/itsm-flow-reckoning/index.d.ts +14 -0
- package/dts/api/itsm-flow-reckoning/types.d.ts +81 -0
- package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowEntrustEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +28 -0
- package/dts/constant.d.ts +8 -0
- package/dts/index.d.ts +5 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +38 -30
- package/dts/utils/common.d.ts +2 -2
- package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-acceptance/index.vue.d.ts +2 -0
- package/dts/views/itsm-flow-entrust/edit.vue.d.ts +4 -4
- package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-reckoning/index.vue.d.ts +2 -0
- package/package.json +4 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs +0 -619
- package/dist/index-DKtAcP6b.mjs +0 -1582
- package/dist/index-DdDM4ocv.mjs +0 -327
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var c = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, h = { exports: {} };
|
|
2
|
+
(function(b, j) {
|
|
3
|
+
(function(p, r) {
|
|
4
|
+
r();
|
|
5
|
+
})(c, function() {
|
|
6
|
+
function p(e, t) {
|
|
7
|
+
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
8
|
+
}
|
|
9
|
+
function r(e, t, i) {
|
|
10
|
+
var n = new XMLHttpRequest();
|
|
11
|
+
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
12
|
+
d(n.response, t, i);
|
|
13
|
+
}, n.onerror = function() {
|
|
14
|
+
console.error("could not download file");
|
|
15
|
+
}, n.send();
|
|
16
|
+
}
|
|
17
|
+
function v(e) {
|
|
18
|
+
var t = new XMLHttpRequest();
|
|
19
|
+
t.open("HEAD", e, !1);
|
|
20
|
+
try {
|
|
21
|
+
t.send();
|
|
22
|
+
} catch {
|
|
23
|
+
}
|
|
24
|
+
return 200 <= t.status && 299 >= t.status;
|
|
25
|
+
}
|
|
26
|
+
function l(e) {
|
|
27
|
+
try {
|
|
28
|
+
e.dispatchEvent(new MouseEvent("click"));
|
|
29
|
+
} catch {
|
|
30
|
+
var t = document.createEvent("MouseEvents");
|
|
31
|
+
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof c == "object" && c.global === c ? c : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), d = a.saveAs || (typeof window != "object" || window !== a ? function() {
|
|
35
|
+
} : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, i) {
|
|
36
|
+
var n = a.URL || a.webkitURL, o = document.createElement("a");
|
|
37
|
+
t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? r(e, t, i) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
|
|
38
|
+
n.revokeObjectURL(o.href);
|
|
39
|
+
}, 4e4), setTimeout(function() {
|
|
40
|
+
l(o);
|
|
41
|
+
}, 0));
|
|
42
|
+
} : "msSaveOrOpenBlob" in navigator ? function(e, t, i) {
|
|
43
|
+
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, i), t);
|
|
44
|
+
else if (v(e)) r(e, t, i);
|
|
45
|
+
else {
|
|
46
|
+
var n = document.createElement("a");
|
|
47
|
+
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
48
|
+
l(n);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
} : function(e, t, i, n) {
|
|
52
|
+
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return r(e, t, i);
|
|
53
|
+
var o = e.type === "application/octet-stream", E = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
54
|
+
if ((m || o && E || w) && typeof FileReader < "u") {
|
|
55
|
+
var u = new FileReader();
|
|
56
|
+
u.onloadend = function() {
|
|
57
|
+
var s = u.result;
|
|
58
|
+
s = m ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
|
|
59
|
+
}, u.readAsDataURL(e);
|
|
60
|
+
} else {
|
|
61
|
+
var y = a.URL || a.webkitURL, f = y.createObjectURL(e);
|
|
62
|
+
n ? n.location = f : location.href = f, n = null, setTimeout(function() {
|
|
63
|
+
y.revokeObjectURL(f);
|
|
64
|
+
}, 4e4);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
a.saveAs = d.saveAs = d, b.exports = d;
|
|
68
|
+
});
|
|
69
|
+
})(h);
|
|
70
|
+
var L = h.exports;
|
|
71
|
+
export {
|
|
72
|
+
L as F
|
|
73
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { useUserStore as e, clearEmpty as o, request as r } from "jmash-core";
|
|
2
|
+
class l {
|
|
3
|
+
getKey(t) {
|
|
4
|
+
return {
|
|
5
|
+
reckoningId: t.reckoningId
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
// 查询翻页信息结算单流程表
|
|
9
|
+
findPage(t) {
|
|
10
|
+
const n = e().user.tenant;
|
|
11
|
+
return t && (t.hasApplyStatus = t.applyStatus != null), o(t), r({
|
|
12
|
+
url: "/v1/itsmflow/itsm_flow_reckoning/mypage/" + n,
|
|
13
|
+
method: "get",
|
|
14
|
+
params: t
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
// 查询列表信息结算单流程表
|
|
18
|
+
findList(t) {
|
|
19
|
+
const n = e().user.tenant;
|
|
20
|
+
return o(t), r({
|
|
21
|
+
url: "/v1/itsmflow/itsm_flow_reckoning/list/" + n,
|
|
22
|
+
method: "get",
|
|
23
|
+
params: t
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
// 查询结算单流程表
|
|
27
|
+
findById(t) {
|
|
28
|
+
const n = e().user.tenant;
|
|
29
|
+
return o(t), r({
|
|
30
|
+
url: "/v1/itsmflow/itsm_flow_reckoning/id/" + n + "/" + t.reckoningId,
|
|
31
|
+
method: "get"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
// 保存草稿结算单流程表
|
|
35
|
+
save(t) {
|
|
36
|
+
return t.tenant = e().user.tenant, o(t), r({
|
|
37
|
+
url: "/v1/itsmflow/itsm_flow_reckoning",
|
|
38
|
+
method: "post",
|
|
39
|
+
data: t
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
// 提交结算单流程表
|
|
43
|
+
submit(t) {
|
|
44
|
+
return t.tenant = e().user.tenant, o(t), r({
|
|
45
|
+
url: "/v1/itsmflow/itsm_flow_reckoning/submit",
|
|
46
|
+
method: "post",
|
|
47
|
+
data: t
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
// 删除结算单流程表
|
|
51
|
+
delete(t) {
|
|
52
|
+
return t.tenant = e().user.tenant, o(t), r({
|
|
53
|
+
url: "/v1/itsmflow/itsm_flow_reckoning/id",
|
|
54
|
+
method: "delete",
|
|
55
|
+
params: t
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
// 打印结算单流程表PDF文件
|
|
59
|
+
exportFilePdf(t) {
|
|
60
|
+
const n = e().user.tenant;
|
|
61
|
+
return o(t), r({
|
|
62
|
+
url: `/v1/itsmflow/itsm_flow_reckoning/${n}/itsm_flow_reckonings.pdf?reckoningId=` + t.reckoningId,
|
|
63
|
+
method: "get",
|
|
64
|
+
responseType: "blob"
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const u = new l();
|
|
69
|
+
function a(s, t) {
|
|
70
|
+
if (typeof s != "number" || typeof t != "number" || isNaN(s) || isNaN(t))
|
|
71
|
+
return;
|
|
72
|
+
const n = s * t;
|
|
73
|
+
return parseFloat(n.toFixed(2));
|
|
74
|
+
}
|
|
75
|
+
function f(s) {
|
|
76
|
+
return s.reduce((t, n) => {
|
|
77
|
+
const i = a(n.cost, n.duration);
|
|
78
|
+
return parseFloat((t + (i || 0)).toFixed(2));
|
|
79
|
+
}, 0);
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
f as a,
|
|
83
|
+
u as i,
|
|
84
|
+
a as t
|
|
85
|
+
};
|