xyvcard-reports 0.0.1

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.
Files changed (89) hide show
  1. package/README.md +51 -0
  2. package/dist/FileSaver.min-CsYbMEwD.mjs +74 -0
  3. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  4. package/dist/add-Cy3sJJ7g.mjs +318 -0
  5. package/dist/edit-BAGsETAq.mjs +411 -0
  6. package/dist/edit-Bjwtnj4P.mjs +168 -0
  7. package/dist/edit-Bxcb4i2M.mjs +403 -0
  8. package/dist/edit-C8qWCW9s.mjs +556 -0
  9. package/dist/edit-CiU1D1Jz.mjs +349 -0
  10. package/dist/edit-Cmne_lfW.mjs +382 -0
  11. package/dist/edit-K7u73FcA.mjs +411 -0
  12. package/dist/follow-9aVr4ibB.mjs +318 -0
  13. package/dist/import-upload-0sdXY1HZ.mjs +198 -0
  14. package/dist/import-upload-DUeH28xE.mjs +198 -0
  15. package/dist/index-B5w3z8Uz.mjs +20 -0
  16. package/dist/index-B_hFZVhb-C3Oi__-I.mjs +1851 -0
  17. package/dist/index-Bu_3ElUk.mjs +7989 -0
  18. package/dist/index-CK9MaZXF.mjs +467 -0
  19. package/dist/index-D1lQtxJR.mjs +21 -0
  20. package/dist/index-D1oq_3kJ.mjs +471 -0
  21. package/dist/index-D3AJ_PUR.mjs +315 -0
  22. package/dist/index-DOju9U4r.mjs +97 -0
  23. package/dist/index-DVvlf-iS.mjs +62 -0
  24. package/dist/index-DelDUsnl.mjs +504 -0
  25. package/dist/index-DwYDVqTx.mjs +497 -0
  26. package/dist/index-U4WVV44p.mjs +1412 -0
  27. package/dist/index-dCp3LVPJ.mjs +415 -0
  28. package/dist/index-s8Isx9r4.mjs +4 -0
  29. package/dist/index.mjs +2818 -0
  30. package/dist/index.vue_vue_type_script_setup_true_lang-CEG9dHlK.mjs +309 -0
  31. package/dist/info-Br2M6Km-.mjs +4 -0
  32. package/dist/info-CFB6sv2K.mjs +4 -0
  33. package/dist/info-CXnZKXhF.mjs +4 -0
  34. package/dist/info-DrJSbVMC.mjs +4 -0
  35. package/dist/info-Fz09GDFn.mjs +4 -0
  36. package/dist/info.vue_vue_type_script_setup_true_lang-Bqk5gi3s.mjs +275 -0
  37. package/dist/info.vue_vue_type_script_setup_true_lang-CZzSMDzL.mjs +211 -0
  38. package/dist/info.vue_vue_type_script_setup_true_lang-D-RdMz1r.mjs +169 -0
  39. package/dist/info.vue_vue_type_script_setup_true_lang-DmEdMXdW.mjs +211 -0
  40. package/dist/info.vue_vue_type_script_setup_true_lang-kb5E2gev.mjs +211 -0
  41. package/dist/style.css +1 -0
  42. package/dts/src/App.vue.d.ts +2 -0
  43. package/dts/src/api/reports/dict.d.ts +7 -0
  44. package/dts/src/api/reports/index.d.ts +15 -0
  45. package/dts/src/api/reports/report-demand-ledger/index.d.ts +13 -0
  46. package/dts/src/api/reports/report-demand-ledger/types.d.ts +91 -0
  47. package/dts/src/api/reports/report-demand-record/index.d.ts +13 -0
  48. package/dts/src/api/reports/report-demand-record/types.d.ts +63 -0
  49. package/dts/src/api/reports/report-files/index.d.ts +8 -0
  50. package/dts/src/api/reports/report-files/types.d.ts +85 -0
  51. package/dts/src/api/reports/report-third-party/index.d.ts +16 -0
  52. package/dts/src/api/reports/report-third-party/types.d.ts +100 -0
  53. package/dts/src/api/reports/task-inspect-matters/index.d.ts +20 -0
  54. package/dts/src/api/reports/task-inspect-matters/types.d.ts +78 -0
  55. package/dts/src/api/reports/task-inspect-type/index.d.ts +20 -0
  56. package/dts/src/api/reports/task-inspect-type/types.d.ts +68 -0
  57. package/dts/src/constant.d.ts +38 -0
  58. package/dts/src/index.d.ts +6 -0
  59. package/dts/src/lang/index.d.ts +1 -0
  60. package/dts/src/lang/reports/en.d.ts +0 -0
  61. package/dts/src/lang/reports/zh-cn.d.ts +207 -0
  62. package/dts/src/main.d.ts +5 -0
  63. package/dts/src/permission.d.ts +1 -0
  64. package/dts/src/router/index.d.ts +9 -0
  65. package/dts/src/utils/timePlugin.d.ts +5 -0
  66. package/dts/src/views/reports/report-demand-ledger/edit.vue.d.ts +37 -0
  67. package/dts/src/views/reports/report-demand-ledger/follow.vue.d.ts +55 -0
  68. package/dts/src/views/reports/report-demand-ledger/index.vue.d.ts +2 -0
  69. package/dts/src/views/reports/report-demand-ledger/info.vue.d.ts +28 -0
  70. package/dts/src/views/reports/report-third-matter/edit.vue.d.ts +37 -0
  71. package/dts/src/views/reports/report-third-matter/import-upload.vue.d.ts +31 -0
  72. package/dts/src/views/reports/report-third-matter/index.vue.d.ts +2 -0
  73. package/dts/src/views/reports/report-third-matter/info.vue.d.ts +28 -0
  74. package/dts/src/views/reports/report-third-month-summary/edit.vue.d.ts +37 -0
  75. package/dts/src/views/reports/report-third-month-summary/index.vue.d.ts +2 -0
  76. package/dts/src/views/reports/report-third-month-summary/info.vue.d.ts +28 -0
  77. package/dts/src/views/reports/report-third-party/edit.vue.d.ts +37 -0
  78. package/dts/src/views/reports/report-third-party/index.vue.d.ts +2 -0
  79. package/dts/src/views/reports/report-third-party/info.vue.d.ts +28 -0
  80. package/dts/src/views/reports/report-third-use-support/edit.vue.d.ts +37 -0
  81. package/dts/src/views/reports/report-third-use-support/import-upload.vue.d.ts +31 -0
  82. package/dts/src/views/reports/report-third-use-support/index.vue.d.ts +2 -0
  83. package/dts/src/views/reports/report-third-use-support/info.vue.d.ts +28 -0
  84. package/dts/src/views/reports/task-inspect-matters/edit.vue.d.ts +28 -0
  85. package/dts/src/views/reports/task-inspect-matters/index.vue.d.ts +2 -0
  86. package/dts/src/views/reports/task-inspect-type/add.vue.d.ts +11 -0
  87. package/dts/src/views/reports/task-inspect-type/edit.vue.d.ts +2 -0
  88. package/dts/src/views/reports/task-inspect-type/index.vue.d.ts +2 -0
  89. package/package.json +61 -0
@@ -0,0 +1,198 @@
1
+ import { defineComponent as K, ref as i, reactive as w, toRefs as Q, computed as W, resolveComponent as a, createBlock as C, openBlock as _, unref as D, isRef as X, withCtx as t, createVNode as o, createElementVNode as s, toDisplayString as u, createElementBlock as Y, Fragment as Z, renderList as ee, createTextVNode as v } from "vue";
2
+ import { useI18n as te } from "vue-i18n";
3
+ import { ElMessage as g } from "element-plus";
4
+ import { fileApi as $, useUserStore as O } from "jmash-core";
5
+ import { D as U } from "./index-Bu_3ElUk.mjs";
6
+ import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ const le = { class: "el-upload__text" }, ae = { style: { color: "var(--el-color-primary)" } }, ne = { class: "dialog-footer" }, se = /* @__PURE__ */ K({
8
+ __name: "import-upload",
9
+ props: {
10
+ uploadVisible: {
11
+ type: Boolean,
12
+ default: () => !1
13
+ },
14
+ templateTitle: {
15
+ type: String,
16
+ default: ""
17
+ }
18
+ },
19
+ emits: ["templateDown", "importEvents", "uploadClosed"],
20
+ setup(y, { emit: q }) {
21
+ const { t: I } = te(), E = i($.uploadUrl()), R = i($.authHeader()), T = w({
22
+ tenant: O().user.tenant
23
+ }), B = i(), d = w({
24
+ tenant: O().user.tenant,
25
+ requestId: Math.random() * 10 + "",
26
+ fileNames: "",
27
+ updateMask: "",
28
+ addFlag: !0,
29
+ // 必填项,true新增,false修改
30
+ govOrgId: "",
31
+ itsmId: ""
32
+ }), N = y, c = q, { uploadVisible: m } = Q(N), r = i(), f = i();
33
+ function S() {
34
+ c("templateDown");
35
+ }
36
+ const h = W(() => r.value ? U.itemBizLayDict.values.filter(
37
+ (l) => l.orgId === r.value
38
+ ) : []);
39
+ function F(e) {
40
+ r.value = e, d.govOrgId = e, d.itsmId = "";
41
+ }
42
+ function P(e) {
43
+ d.fileNames = e.fileSrc, d.govOrgId = r.value, d.itsmId = f.value, d.fileNames && g({
44
+ message: I("common.uploadSuccess"),
45
+ type: "success"
46
+ });
47
+ }
48
+ const M = () => {
49
+ g.warning("当前限制选择 1 个文件");
50
+ };
51
+ function j() {
52
+ if (!r.value) {
53
+ g({
54
+ message: I("sysUserOps.orgIdRequired"),
55
+ type: "warning"
56
+ });
57
+ return;
58
+ }
59
+ c("importEvents", d);
60
+ }
61
+ function V() {
62
+ c("uploadClosed");
63
+ }
64
+ return (e, l) => {
65
+ const p = a("el-col"), x = a("jmash-select"), b = a("el-row"), z = a("el-option"), L = a("el-select"), A = a("upload-filled"), H = a("el-icon"), G = a("el-upload"), k = a("el-button"), J = a("el-dialog");
66
+ return _(), C(J, {
67
+ modelValue: D(m),
68
+ "onUpdate:modelValue": l[2] || (l[2] = (n) => X(m) ? m.value = n : null),
69
+ title: e.$t("common.uploadFiles"),
70
+ width: "500px",
71
+ onClose: V
72
+ }, {
73
+ footer: t(() => [
74
+ s("div", ne, [
75
+ o(k, { onClick: V }, {
76
+ default: t(() => [
77
+ v(u(e.$t("common.cancel")), 1)
78
+ ]),
79
+ _: 1
80
+ }),
81
+ o(k, {
82
+ type: "primary",
83
+ onClick: j
84
+ }, {
85
+ default: t(() => [
86
+ v(u(e.$t("common.confirm")), 1)
87
+ ]),
88
+ _: 1
89
+ })
90
+ ])
91
+ ]),
92
+ default: t(() => [
93
+ o(b, { class: "row" }, {
94
+ default: t(() => [
95
+ o(p, { span: 4 }, {
96
+ default: t(() => [
97
+ l[3] || (l[3] = s("span", { class: "required_red" }, "*", -1)),
98
+ s("span", null, u(e.$t("reportThirdParty.govOrgId")), 1)
99
+ ]),
100
+ _: 1
101
+ }),
102
+ o(p, { span: 20 }, {
103
+ default: t(() => [
104
+ o(x, {
105
+ modelValue: r.value,
106
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => r.value = n),
107
+ data: D(U).orgIdBizDict.values,
108
+ filterable: "",
109
+ "check-strictly": "",
110
+ "render-after-expand": !1,
111
+ placeholder: e.$t("reportThirdParty.govOrgIdRequired"),
112
+ class: "w-full",
113
+ onChange: F
114
+ }, null, 8, ["modelValue", "data", "placeholder"])
115
+ ]),
116
+ _: 1
117
+ })
118
+ ]),
119
+ _: 1
120
+ }),
121
+ o(b, { class: "row" }, {
122
+ default: t(() => [
123
+ o(p, { span: 4 }, {
124
+ default: t(() => [
125
+ l[4] || (l[4] = s("span", { class: "required_red" }, "*", -1)),
126
+ s("span", null, u(e.$t("reportThirdParty.itsmId")), 1)
127
+ ]),
128
+ _: 1
129
+ }),
130
+ o(p, { span: 20 }, {
131
+ default: t(() => [
132
+ o(L, {
133
+ modelValue: f.value,
134
+ "onUpdate:modelValue": l[1] || (l[1] = (n) => f.value = n),
135
+ placeholder: e.$t("reportThirdParty.itemIdRequired"),
136
+ data: h.value,
137
+ clearable: "",
138
+ filterable: "",
139
+ disabled: !r.value
140
+ }, {
141
+ default: t(() => [
142
+ (_(!0), Y(Z, null, ee(h.value, (n) => (_(), C(z, {
143
+ key: n.key,
144
+ value: n.key,
145
+ label: n.value
146
+ }, null, 8, ["value", "label"]))), 128))
147
+ ]),
148
+ _: 1
149
+ }, 8, ["modelValue", "placeholder", "data", "disabled"])
150
+ ]),
151
+ _: 1
152
+ })
153
+ ]),
154
+ _: 1
155
+ }),
156
+ o(G, {
157
+ ref_key: "uploadRef",
158
+ ref: B,
159
+ drag: "",
160
+ action: E.value,
161
+ headers: R.value,
162
+ data: T,
163
+ limit: 1,
164
+ "on-success": P,
165
+ "on-exceed": M,
166
+ style: { "margin-top": "20px" }
167
+ }, {
168
+ tip: t(() => [
169
+ s("div", {
170
+ class: "el-upload__tip",
171
+ onClick: S
172
+ }, [
173
+ s("a", ae, u(y.templateTitle), 1)
174
+ ])
175
+ ]),
176
+ default: t(() => [
177
+ o(H, { class: "el-icon--upload" }, {
178
+ default: t(() => [
179
+ o(A)
180
+ ]),
181
+ _: 1
182
+ }),
183
+ s("div", le, [
184
+ v(u(e.$t("common.dragFiles")) + " ", 1),
185
+ s("em", null, u(e.$t("common.uploadEvent")), 1)
186
+ ])
187
+ ]),
188
+ _: 1
189
+ }, 8, ["action", "headers", "data"])
190
+ ]),
191
+ _: 1
192
+ }, 8, ["modelValue", "title"]);
193
+ };
194
+ }
195
+ }), me = /* @__PURE__ */ oe(se, [["__scopeId", "data-v-756680b6"]]);
196
+ export {
197
+ me as default
198
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as e, createElementBlock as o, openBlock as a, createElementVNode as t } from "vue";
2
+ /*! Element Plus Icons Vue v2.3.2 */
3
+ var l = /* @__PURE__ */ e({
4
+ name: "Upload",
5
+ __name: "upload",
6
+ setup(r) {
7
+ return (n, p) => (a(), o("svg", {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ viewBox: "0 0 1024 1024"
10
+ }, [
11
+ t("path", {
12
+ fill: "currentColor",
13
+ d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"
14
+ })
15
+ ]));
16
+ }
17
+ }), c = l;
18
+ export {
19
+ c as u
20
+ };