sooyie-task 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 (64) hide show
  1. package/README.md +51 -0
  2. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  3. package/dist/add-7_dK5ok_.mjs +261 -0
  4. package/dist/add-C2devcsq.mjs +439 -0
  5. package/dist/edit-CE42VR9Z.mjs +237 -0
  6. package/dist/edit-CRQkMd15.mjs +452 -0
  7. package/dist/el-message-Bod6C9wB.mjs +1252 -0
  8. package/dist/index-BYV5ylFn.mjs +29 -0
  9. package/dist/index-B_hFZVhb-C3Oi__-I.mjs +1851 -0
  10. package/dist/index-CEvxhWYT.mjs +104 -0
  11. package/dist/index-CK1KRDsU.mjs +335 -0
  12. package/dist/index-C_NGsTkK.mjs +412 -0
  13. package/dist/index-CewoF68r.mjs +105 -0
  14. package/dist/index-DIHsBjkh.mjs +4 -0
  15. package/dist/index-DaJ5KrbS.mjs +125 -0
  16. package/dist/index-DvawPwK3.mjs +10483 -0
  17. package/dist/index-rm9IgDWo.mjs +377 -0
  18. package/dist/index.mjs +2807 -0
  19. package/dist/index.vue_vue_type_script_setup_true_lang-DRYjMxBU.mjs +141 -0
  20. package/dist/info-Dls9Zhvf.mjs +1990 -0
  21. package/dist/report-CJWipPH_.mjs +564 -0
  22. package/dist/report-info-B0NXFFzR.mjs +313 -0
  23. package/dist/style.css +1 -0
  24. package/dts/src/App.vue.d.ts +2 -0
  25. package/dts/src/api/dict.d.ts +13 -0
  26. package/dts/src/api/index.d.ts +16 -0
  27. package/dts/src/api/task/report-files/index.d.ts +9 -0
  28. package/dts/src/api/task/report-files/types.d.ts +26 -0
  29. package/dts/src/api/task/task-define/index.d.ts +17 -0
  30. package/dts/src/api/task/task-define/types.d.ts +141 -0
  31. package/dts/src/api/task/task-define-rel/index.d.ts +10 -0
  32. package/dts/src/api/task/task-define-rel/types.d.ts +25 -0
  33. package/dts/src/api/task/task-inspect-matterst-record/index.d.ts +9 -0
  34. package/dts/src/api/task/task-inspect-matterst-record/types.d.ts +65 -0
  35. package/dts/src/api/task/task-inst/index.d.ts +12 -0
  36. package/dts/src/api/task/task-inst/types.d.ts +137 -0
  37. package/dts/src/api/task/task-record/index.d.ts +20 -0
  38. package/dts/src/api/task/task-record/types.d.ts +62 -0
  39. package/dts/src/api/task/task-task/index.d.ts +9 -0
  40. package/dts/src/api/task/task-task/types.d.ts +57 -0
  41. package/dts/src/api/task/task_my_assigned/index.d.ts +9 -0
  42. package/dts/src/api/task/task_my_assigned/types.d.ts +56 -0
  43. package/dts/src/components/singleImageUpload/index.vue.d.ts +45 -0
  44. package/dts/src/constant.d.ts +56 -0
  45. package/dts/src/index.d.ts +5 -0
  46. package/dts/src/lang/index.d.ts +1 -0
  47. package/dts/src/lang/task/en.d.ts +81 -0
  48. package/dts/src/lang/task/zh-cn.d.ts +122 -0
  49. package/dts/src/main.d.ts +5 -0
  50. package/dts/src/permission.d.ts +1 -0
  51. package/dts/src/router/index.d.ts +10 -0
  52. package/dts/src/utils/momentPlugin.d.ts +5 -0
  53. package/dts/src/views/task/task-define/add.vue.d.ts +11 -0
  54. package/dts/src/views/task/task-define/edit.vue.d.ts +2 -0
  55. package/dts/src/views/task/task-define/index.vue.d.ts +2 -0
  56. package/dts/src/views/task/task-define-rel/add.vue.d.ts +11 -0
  57. package/dts/src/views/task/task-define-rel/index.vue.d.ts +2 -0
  58. package/dts/src/views/task/task-inst/edit.vue.d.ts +26 -0
  59. package/dts/src/views/task/task-inst/index.vue.d.ts +2 -0
  60. package/dts/src/views/task/task-inst/info.vue.d.ts +2 -0
  61. package/dts/src/views/task/task-inst/report-info.vue.d.ts +33 -0
  62. package/dts/src/views/task/task-inst/report.vue.d.ts +26 -0
  63. package/dts/src/views/task/task-task/index.vue.d.ts +2 -0
  64. package/package.json +62 -0
@@ -0,0 +1,104 @@
1
+ import { useUserStore as e, clearEmpty as a, request as n } from "jmash-core";
2
+ class i {
3
+ getKey(t) {
4
+ return {
5
+ taskDefineId: t.taskDefineId
6
+ };
7
+ }
8
+ // 查询翻页信息任务定义
9
+ findPage(t) {
10
+ const s = e().user.tenant;
11
+ return a(t), n({
12
+ url: "/v1/front/task/sooyie/task_define/page/" + s,
13
+ method: "get",
14
+ params: t
15
+ });
16
+ }
17
+ // 查询列表信息任务定义
18
+ findList(t) {
19
+ const s = e().user.tenant;
20
+ return a(t), n({
21
+ url: "/v1/front/task/sooyie/task_define/list/" + s,
22
+ method: "get",
23
+ params: t
24
+ });
25
+ }
26
+ // 查询任务定义
27
+ findById(t) {
28
+ const s = e().user.tenant;
29
+ return a(t), n({
30
+ url: "/v1/front/task/sooyie/task_define/id/" + s + "/" + t.taskDefineId,
31
+ method: "get",
32
+ params: t
33
+ });
34
+ }
35
+ // 创建实体任务定义
36
+ create(t) {
37
+ return t.tenant = e().user.tenant, a(t), n({
38
+ url: "/v1/front/task/sooyie/task_define",
39
+ method: "post",
40
+ data: t
41
+ });
42
+ }
43
+ // 修改实体任务定义
44
+ update(t) {
45
+ return t.tenant = e().user.tenant, a(t), n({
46
+ url: "/v1/front/task/sooyie/task_define",
47
+ method: "patch",
48
+ data: t
49
+ });
50
+ }
51
+ // 删除任务定义
52
+ delete(t) {
53
+ return t.tenant = e().user.tenant, a(t), n({
54
+ url: "/v1/front/task/sooyie/task_define/id",
55
+ method: "delete",
56
+ params: t
57
+ });
58
+ }
59
+ // 批量删除任务定义
60
+ batchDelete(t) {
61
+ const s = t.map((o) => o.taskDefineId), r = {
62
+ tenant: e().user.tenant,
63
+ taskDefineId: s
64
+ };
65
+ return a(r), n({
66
+ url: "/v1/front/task/sooyie/task_define/batch",
67
+ method: "put",
68
+ data: r
69
+ });
70
+ }
71
+ // 下载导入模板任务定义
72
+ downloadTemplate() {
73
+ const t = e().user.tenant;
74
+ return n({
75
+ url: "/v1/front/task/sooyie/task_define/" + t + "/template.xlsx",
76
+ method: "get",
77
+ responseType: "blob",
78
+ params: {
79
+ tenant: e().user.tenant
80
+ }
81
+ });
82
+ }
83
+ // 任务附件查询列表
84
+ findTaskList(t) {
85
+ const s = e().user.tenant;
86
+ return a(t), n({
87
+ url: "/v1/front/task/sooyie/file/list/" + s,
88
+ method: "get",
89
+ params: t
90
+ });
91
+ }
92
+ // 枚举值
93
+ getEnum(t) {
94
+ return a(t), n({
95
+ url: "/v1/task/sooyie/enum/entry",
96
+ method: "get",
97
+ params: t
98
+ });
99
+ }
100
+ }
101
+ const u = new i();
102
+ export {
103
+ u as t
104
+ };
@@ -0,0 +1,335 @@
1
+ import { defineComponent as J, getCurrentInstance as X, ref as C, reactive as N, onActivated as Z, resolveComponent as s, resolveDirective as ee, createElementBlock as g, openBlock as u, createElementVNode as D, createVNode as n, createBlock as b, createCommentVNode as P, withCtx as o, withKeys as te, unref as l, Fragment as oe, renderList as ae, createTextVNode as d, toDisplayString as r, withDirectives as h, isRef as R } from "vue";
2
+ import { useTableHooks as le } from "jmash-core";
3
+ import { useI18n as ne } from "vue-i18n";
4
+ import { b as se } from "./index-B_hFZVhb-C3Oi__-I.mjs";
5
+ import { t as B } from "./index-CEvxhWYT.mjs";
6
+ import { D as re, C as ie } from "./index-DvawPwK3.mjs";
7
+ import ue from "./add-C2devcsq.mjs";
8
+ import { r as me } from "./index-CewoF68r.mjs";
9
+ const de = { class: "app-container" }, pe = { class: "search-container" }, ce = ["onClick"], fe = ["onClick"], we = /* @__PURE__ */ J({
10
+ __name: "index",
11
+ setup(ke) {
12
+ const { t: w } = ne(), { proxy: L } = X(), m = C({}), c = C([]);
13
+ function E(a) {
14
+ c.value.length === 0 && B.getEnum({ className: ie.TASKSORT_TYPE, type: 1 }).then((k) => {
15
+ c.value = k.data.values;
16
+ });
17
+ const t = c.value.find((k) => k.key === a);
18
+ return t ? t.value : "";
19
+ }
20
+ const {
21
+ tableHooks: i,
22
+ multipleTableRef: j,
23
+ queryFormRef: I,
24
+ listLoading: U,
25
+ tableData: z,
26
+ total: v
27
+ } = le(w, B, m);
28
+ let f = C([
29
+ // 任务主题
30
+ {
31
+ label: "taskDefine.taskTitle",
32
+ prop: "taskTitle",
33
+ width: "300",
34
+ sortable: "custom",
35
+ isColumn: !0
36
+ },
37
+ // 任务类型
38
+ {
39
+ label: "taskDefine.taskSort",
40
+ prop: "taskSort",
41
+ slotName: "taskSort",
42
+ columnType: "slot",
43
+ width: "150",
44
+ sortable: "custom",
45
+ isColumn: !0
46
+ },
47
+ // 执行频次
48
+ {
49
+ label: "taskDefine.taskCount",
50
+ prop: "taskCount",
51
+ slotName: "taskCount",
52
+ columnType: "slot",
53
+ width: "150",
54
+ sortable: "custom",
55
+ isColumn: !0
56
+ },
57
+ // 开始日期
58
+ {
59
+ label: "taskDefine.startDate",
60
+ prop: "startDate",
61
+ width: "150",
62
+ sortable: "custom",
63
+ isColumn: !0
64
+ },
65
+ // 截止日期
66
+ {
67
+ label: "taskDefine.endDate",
68
+ prop: "endDate",
69
+ width: "150",
70
+ sortable: "custom",
71
+ isColumn: !0
72
+ },
73
+ // 任务描述
74
+ {
75
+ label: "taskDefine.note",
76
+ prop: "note",
77
+ minWidth: "150",
78
+ sortable: "custom",
79
+ isColumn: !0
80
+ },
81
+ // 创建人
82
+ {
83
+ label: "taskDefine.createBy",
84
+ prop: "createBy",
85
+ slotName: "createBy",
86
+ columnType: "slot",
87
+ width: "150",
88
+ sortable: "custom",
89
+ isColumn: !0
90
+ },
91
+ // 创建时间
92
+ {
93
+ label: "taskDefine.createTime",
94
+ prop: "createTime",
95
+ slotName: "createTime",
96
+ columnType: "slot",
97
+ width: "180",
98
+ sortable: "custom",
99
+ isColumn: !0
100
+ },
101
+ {
102
+ label: "common.operate",
103
+ width: "100",
104
+ slotName: "operation",
105
+ columnType: "slot",
106
+ fixed: "right",
107
+ isColumn: !0
108
+ }
109
+ ]);
110
+ const p = C({
111
+ title: w("common.edit"),
112
+ visible: !1
113
+ });
114
+ function A(a) {
115
+ me.push({
116
+ path: "/task/task-define/edit",
117
+ query: { taskDefineId: a.taskDefineId, taskSort: a.taskSort }
118
+ });
119
+ }
120
+ let T = N({});
121
+ function Y() {
122
+ T = N({}), p.value.title = w("common.add"), p.value.visible = !0;
123
+ }
124
+ function q(a) {
125
+ i.selectionRows.value = a;
126
+ }
127
+ function H(a) {
128
+ i.handleSort(a.prop, a.order);
129
+ }
130
+ function K(a) {
131
+ a && i.getList();
132
+ }
133
+ return Z(() => {
134
+ i.getList();
135
+ }), (a, t) => {
136
+ const k = s("el-option"), F = s("el-select"), $ = s("el-form-item"), S = s("el-col"), V = s("el-row"), y = s("el-button"), Q = s("el-form"), M = s("jmash-column-select"), x = s("jmash-table"), O = s("jmash-pagination"), W = s("el-card"), _ = ee("hasPerm");
137
+ return u(), g("div", de, [
138
+ D("div", pe, [
139
+ n(Q, {
140
+ ref_key: "queryFormRef",
141
+ ref: I,
142
+ model: m.value,
143
+ inline: !0
144
+ }, {
145
+ default: o(() => [
146
+ n(V, null, {
147
+ default: o(() => [
148
+ n(S, { span: 6 }, {
149
+ default: o(() => [
150
+ n($, {
151
+ label: a.$t("taskDefine.taskSort"),
152
+ prop: "taskSort"
153
+ }, {
154
+ default: o(() => [
155
+ n(F, {
156
+ modelValue: m.value.taskSort,
157
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => m.value.taskSort = e),
158
+ data: c.value,
159
+ placeholder: a.$t("taskDefine.taskSort"),
160
+ onKeyup: t[1] || (t[1] = te((e) => l(i).handleQuery(), ["enter"])),
161
+ class: "!w-[203px]"
162
+ }, {
163
+ default: o(() => [
164
+ (u(!0), g(oe, null, ae(c.value, (e) => (u(), b(k, {
165
+ key: e.key,
166
+ label: e.value,
167
+ value: e.key
168
+ }, null, 8, ["label", "value"]))), 128))
169
+ ]),
170
+ _: 1
171
+ }, 8, ["modelValue", "data", "placeholder"])
172
+ ]),
173
+ _: 1
174
+ }, 8, ["label"])
175
+ ]),
176
+ _: 1
177
+ })
178
+ ]),
179
+ _: 1
180
+ }),
181
+ n($, { class: "search-btn" }, {
182
+ default: o(() => [
183
+ n(y, {
184
+ type: "primary",
185
+ onClick: t[2] || (t[2] = (e) => l(i).handleQuery())
186
+ }, {
187
+ default: o(() => [
188
+ d(r(a.$t("common.search")), 1)
189
+ ]),
190
+ _: 1
191
+ }),
192
+ n(y, {
193
+ onClick: t[3] || (t[3] = (e) => l(i).resetQuery())
194
+ }, {
195
+ default: o(() => [
196
+ d(r(a.$t("common.reset")), 1)
197
+ ]),
198
+ _: 1
199
+ })
200
+ ]),
201
+ _: 1
202
+ })
203
+ ]),
204
+ _: 1
205
+ }, 8, ["model"]),
206
+ t[11] || (t[11] = D("div", { class: "clear" }, null, -1))
207
+ ]),
208
+ n(W, {
209
+ shadow: "never",
210
+ class: "table-container"
211
+ }, {
212
+ header: o(() => [
213
+ n(V, null, {
214
+ default: o(() => [
215
+ n(S, { span: 17 }, {
216
+ default: o(() => [
217
+ h((u(), b(y, {
218
+ type: "primary",
219
+ onClick: Y
220
+ }, {
221
+ default: o(() => [
222
+ d(r(a.$t("common.add")), 1)
223
+ ]),
224
+ _: 1
225
+ })), [
226
+ [_, ["task:task_define:add"]]
227
+ ]),
228
+ h((u(), b(y, {
229
+ type: "primary",
230
+ onClick: t[4] || (t[4] = (e) => l(i).deleteRecords())
231
+ }, {
232
+ default: o(() => [
233
+ d(r(a.$t("common.batchDelete")), 1)
234
+ ]),
235
+ _: 1
236
+ })), [
237
+ [_, ["task:task_define:delete"]]
238
+ ])
239
+ ]),
240
+ _: 1
241
+ }),
242
+ n(S, {
243
+ span: 7,
244
+ class: "container-float"
245
+ }, {
246
+ default: o(() => [
247
+ n(M, {
248
+ modelValue: l(f),
249
+ "onUpdate:modelValue": t[5] || (t[5] = (e) => R(f) ? f.value = e : f = e),
250
+ "label-name": "task/task-define"
251
+ }, null, 8, ["modelValue"])
252
+ ]),
253
+ _: 1
254
+ })
255
+ ]),
256
+ _: 1
257
+ })
258
+ ]),
259
+ footer: o(() => [
260
+ l(v) > 0 ? (u(), b(O, {
261
+ key: 0,
262
+ total: l(v),
263
+ "onUpdate:total": t[6] || (t[6] = (e) => R(v) ? v.value = e : null),
264
+ "current-page": m.value.curPage,
265
+ "onUpdate:currentPage": t[7] || (t[7] = (e) => m.value.curPage = e),
266
+ "page-size": m.value.pageSize,
267
+ "onUpdate:pageSize": t[8] || (t[8] = (e) => m.value.pageSize = e),
268
+ onPagination: t[9] || (t[9] = (e) => l(i).getList())
269
+ }, null, 8, ["total", "current-page", "page-size"])) : P("", !0)
270
+ ]),
271
+ default: o(() => [
272
+ n(x, {
273
+ ref_key: "multipleTableRef",
274
+ ref: j,
275
+ "row-key": "taskDefineId",
276
+ "list-loading": l(U),
277
+ data: l(z),
278
+ "table-label": l(f),
279
+ onSelectionChange: q,
280
+ onSortChange: H
281
+ }, {
282
+ taskSort: o((e) => [
283
+ D("span", null, r(E(e.data.row.taskSort)), 1)
284
+ ]),
285
+ taskCount: o((e) => [
286
+ D("span", null, r(e.data.row.taskCount) + "次/" + r(l(re).taskPeriodEnum.getEnumValue(e.data.row.taskPeriod)), 1)
287
+ ]),
288
+ createBy: o((e) => [
289
+ d(r(l(se).userInfo(e.data.row.createBy).realName), 1)
290
+ ]),
291
+ createTime: o((e) => [
292
+ d(r(l(L).$moment.formatDate(
293
+ e.data.row.createTime,
294
+ "YYYY-MM-DD HH:mm:ss"
295
+ )), 1)
296
+ ]),
297
+ operation: o((e) => [
298
+ h((u(), g("span", {
299
+ class: "el-button-color",
300
+ onClick: (G) => A(e.data.row)
301
+ }, [
302
+ d(r(a.$t("common.edit")), 1)
303
+ ], 8, ce)), [
304
+ [_, ["task:task_define:update"]]
305
+ ]),
306
+ h((u(), g("span", {
307
+ class: "el-button-color dropdown-left",
308
+ onClick: (G) => l(i).deleteRecord(e.data.row)
309
+ }, [
310
+ d(r(a.$t("common.delete")), 1)
311
+ ], 8, fe)), [
312
+ [_, ["task:task_define:delete"]]
313
+ ])
314
+ ]),
315
+ _: 1
316
+ }, 8, ["list-loading", "data", "table-label"])
317
+ ]),
318
+ _: 1
319
+ }),
320
+ p.value.visible ? (u(), b(ue, {
321
+ key: 0,
322
+ modelValue: p.value.visible,
323
+ "onUpdate:modelValue": t[10] || (t[10] = (e) => p.value.visible = e),
324
+ title: p.value.title,
325
+ "entity-key": l(T),
326
+ onRefresh: K,
327
+ width: "900px"
328
+ }, null, 8, ["modelValue", "title", "entity-key"])) : P("", !0)
329
+ ]);
330
+ };
331
+ }
332
+ });
333
+ export {
334
+ we as default
335
+ };