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.
- package/README.md +51 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/add-7_dK5ok_.mjs +261 -0
- package/dist/add-C2devcsq.mjs +439 -0
- package/dist/edit-CE42VR9Z.mjs +237 -0
- package/dist/edit-CRQkMd15.mjs +452 -0
- package/dist/el-message-Bod6C9wB.mjs +1252 -0
- package/dist/index-BYV5ylFn.mjs +29 -0
- package/dist/index-B_hFZVhb-C3Oi__-I.mjs +1851 -0
- package/dist/index-CEvxhWYT.mjs +104 -0
- package/dist/index-CK1KRDsU.mjs +335 -0
- package/dist/index-C_NGsTkK.mjs +412 -0
- package/dist/index-CewoF68r.mjs +105 -0
- package/dist/index-DIHsBjkh.mjs +4 -0
- package/dist/index-DaJ5KrbS.mjs +125 -0
- package/dist/index-DvawPwK3.mjs +10483 -0
- package/dist/index-rm9IgDWo.mjs +377 -0
- package/dist/index.mjs +2807 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DRYjMxBU.mjs +141 -0
- package/dist/info-Dls9Zhvf.mjs +1990 -0
- package/dist/report-CJWipPH_.mjs +564 -0
- package/dist/report-info-B0NXFFzR.mjs +313 -0
- package/dist/style.css +1 -0
- package/dts/src/App.vue.d.ts +2 -0
- package/dts/src/api/dict.d.ts +13 -0
- package/dts/src/api/index.d.ts +16 -0
- package/dts/src/api/task/report-files/index.d.ts +9 -0
- package/dts/src/api/task/report-files/types.d.ts +26 -0
- package/dts/src/api/task/task-define/index.d.ts +17 -0
- package/dts/src/api/task/task-define/types.d.ts +141 -0
- package/dts/src/api/task/task-define-rel/index.d.ts +10 -0
- package/dts/src/api/task/task-define-rel/types.d.ts +25 -0
- package/dts/src/api/task/task-inspect-matterst-record/index.d.ts +9 -0
- package/dts/src/api/task/task-inspect-matterst-record/types.d.ts +65 -0
- package/dts/src/api/task/task-inst/index.d.ts +12 -0
- package/dts/src/api/task/task-inst/types.d.ts +137 -0
- package/dts/src/api/task/task-record/index.d.ts +20 -0
- package/dts/src/api/task/task-record/types.d.ts +62 -0
- package/dts/src/api/task/task-task/index.d.ts +9 -0
- package/dts/src/api/task/task-task/types.d.ts +57 -0
- package/dts/src/api/task/task_my_assigned/index.d.ts +9 -0
- package/dts/src/api/task/task_my_assigned/types.d.ts +56 -0
- package/dts/src/components/singleImageUpload/index.vue.d.ts +45 -0
- package/dts/src/constant.d.ts +56 -0
- package/dts/src/index.d.ts +5 -0
- package/dts/src/lang/index.d.ts +1 -0
- package/dts/src/lang/task/en.d.ts +81 -0
- package/dts/src/lang/task/zh-cn.d.ts +122 -0
- package/dts/src/main.d.ts +5 -0
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/index.d.ts +10 -0
- package/dts/src/utils/momentPlugin.d.ts +5 -0
- package/dts/src/views/task/task-define/add.vue.d.ts +11 -0
- package/dts/src/views/task/task-define/edit.vue.d.ts +2 -0
- package/dts/src/views/task/task-define/index.vue.d.ts +2 -0
- package/dts/src/views/task/task-define-rel/add.vue.d.ts +11 -0
- package/dts/src/views/task/task-define-rel/index.vue.d.ts +2 -0
- package/dts/src/views/task/task-inst/edit.vue.d.ts +26 -0
- package/dts/src/views/task/task-inst/index.vue.d.ts +2 -0
- package/dts/src/views/task/task-inst/info.vue.d.ts +2 -0
- package/dts/src/views/task/task-inst/report-info.vue.d.ts +33 -0
- package/dts/src/views/task/task-inst/report.vue.d.ts +26 -0
- package/dts/src/views/task/task-task/index.vue.d.ts +2 -0
- package/package.json +62 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import { defineComponent as Z, getCurrentInstance as ee, ref as g, reactive as te, onActivated as ae, resolveComponent as r, resolveDirective as le, createElementBlock as f, openBlock as d, createElementVNode as y, createVNode as s, createBlock as C, createCommentVNode as V, withCtx as l, withKeys as $, unref as o, createTextVNode as I, toDisplayString as u, withDirectives as Y, isRef as U } from "vue";
|
|
2
|
+
import { useTableHooks as oe } from "jmash-core";
|
|
3
|
+
import { useI18n as se } from "vue-i18n";
|
|
4
|
+
import { D as m, C as j } from "./index-DvawPwK3.mjs";
|
|
5
|
+
import { r as ne } from "./index-CewoF68r.mjs";
|
|
6
|
+
import { t as re, a as ue } from "./report-CJWipPH_.mjs";
|
|
7
|
+
import ie from "./edit-CE42VR9Z.mjs";
|
|
8
|
+
const de = { class: "app-container" }, me = { class: "search-container" }, pe = { key: 0 }, ke = { key: 1 }, ce = ["onClick"], fe = ["onClick"], ve = ["onClick"], he = /* @__PURE__ */ Z({
|
|
9
|
+
__name: "index",
|
|
10
|
+
setup(be) {
|
|
11
|
+
const { proxy: z } = ee(), { t: p } = se();
|
|
12
|
+
m.OrgBizDict.useValues(), m.itemBizLayDict.useValues();
|
|
13
|
+
const n = g({}), {
|
|
14
|
+
tableHooks: i,
|
|
15
|
+
multipleTableRef: E,
|
|
16
|
+
queryFormRef: M,
|
|
17
|
+
listLoading: q,
|
|
18
|
+
tableData: B,
|
|
19
|
+
total: w
|
|
20
|
+
} = oe(p, re, n);
|
|
21
|
+
let v = g([
|
|
22
|
+
// 任务主题
|
|
23
|
+
{
|
|
24
|
+
label: "taskInst.taskName",
|
|
25
|
+
prop: "taskName",
|
|
26
|
+
minWidth: "150",
|
|
27
|
+
sortable: "custom",
|
|
28
|
+
isColumn: !0
|
|
29
|
+
},
|
|
30
|
+
// 服务对象
|
|
31
|
+
{
|
|
32
|
+
label: "taskInst.customerTagId",
|
|
33
|
+
prop: "annivCustomerId",
|
|
34
|
+
slotName: "annivCustomerId",
|
|
35
|
+
columnType: "slot",
|
|
36
|
+
minWidth: "150",
|
|
37
|
+
sortable: "custom",
|
|
38
|
+
isColumn: !0
|
|
39
|
+
},
|
|
40
|
+
// 开始日期
|
|
41
|
+
{
|
|
42
|
+
label: "taskInst.startDate",
|
|
43
|
+
prop: "startDate",
|
|
44
|
+
width: "105",
|
|
45
|
+
sortable: "custom",
|
|
46
|
+
isColumn: !0
|
|
47
|
+
},
|
|
48
|
+
// 截止日期
|
|
49
|
+
{
|
|
50
|
+
label: "taskInst.endDate",
|
|
51
|
+
prop: "endDate",
|
|
52
|
+
width: "105",
|
|
53
|
+
sortable: "custom",
|
|
54
|
+
isColumn: !0
|
|
55
|
+
},
|
|
56
|
+
// 已读状态
|
|
57
|
+
{
|
|
58
|
+
label: "taskInst.readStatus",
|
|
59
|
+
prop: "readStatus",
|
|
60
|
+
slotName: "readStatus",
|
|
61
|
+
columnType: "slot",
|
|
62
|
+
width: "105",
|
|
63
|
+
sortable: "custom",
|
|
64
|
+
isColumn: !0
|
|
65
|
+
},
|
|
66
|
+
// 完成状态
|
|
67
|
+
{
|
|
68
|
+
label: "taskInst.status",
|
|
69
|
+
prop: "status",
|
|
70
|
+
slotName: "status",
|
|
71
|
+
columnType: "slot",
|
|
72
|
+
width: "105",
|
|
73
|
+
sortable: "custom",
|
|
74
|
+
isColumn: !0
|
|
75
|
+
},
|
|
76
|
+
// 完成进度
|
|
77
|
+
{
|
|
78
|
+
label: "taskInst.percent",
|
|
79
|
+
prop: "percent",
|
|
80
|
+
slotName: "percent",
|
|
81
|
+
columnType: "slot",
|
|
82
|
+
width: "105",
|
|
83
|
+
sortable: "custom",
|
|
84
|
+
isColumn: !0
|
|
85
|
+
},
|
|
86
|
+
// 完成时间
|
|
87
|
+
{
|
|
88
|
+
label: "taskInst.finishDate",
|
|
89
|
+
prop: "finishDate",
|
|
90
|
+
slotName: "finishDate",
|
|
91
|
+
columnType: "slot",
|
|
92
|
+
width: "160",
|
|
93
|
+
sortable: "custom",
|
|
94
|
+
isColumn: !0
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: "common.operate",
|
|
98
|
+
width: "100",
|
|
99
|
+
slotName: "operation",
|
|
100
|
+
columnType: "slot",
|
|
101
|
+
fixed: "right",
|
|
102
|
+
isColumn: !0
|
|
103
|
+
}
|
|
104
|
+
]);
|
|
105
|
+
const k = g({
|
|
106
|
+
title: p("taskInst.report"),
|
|
107
|
+
visible: !1
|
|
108
|
+
}), c = g({
|
|
109
|
+
title: p("taskInst.reportNormal"),
|
|
110
|
+
visible: !1
|
|
111
|
+
});
|
|
112
|
+
let _ = te({});
|
|
113
|
+
function L(a) {
|
|
114
|
+
Object.assign(_, a), k.value.title = p("taskInst.report"), k.value.visible = !0;
|
|
115
|
+
}
|
|
116
|
+
function P(a) {
|
|
117
|
+
Object.assign(_, a), c.value.title = p("taskInst.reportNormal"), c.value.visible = !0;
|
|
118
|
+
}
|
|
119
|
+
function O(a) {
|
|
120
|
+
ne.push({
|
|
121
|
+
path: "/task/task-inst/info",
|
|
122
|
+
query: {
|
|
123
|
+
taskInstId: a.taskInstId,
|
|
124
|
+
taskSort: a.sort,
|
|
125
|
+
taskDefineId: a.taskDefineId
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function K(a) {
|
|
130
|
+
i.selectionRows.value = a;
|
|
131
|
+
}
|
|
132
|
+
function Q(a) {
|
|
133
|
+
i.handleSort(a.prop, a.order);
|
|
134
|
+
}
|
|
135
|
+
function S(a) {
|
|
136
|
+
a && i.getList();
|
|
137
|
+
}
|
|
138
|
+
return ae(() => {
|
|
139
|
+
i.getList();
|
|
140
|
+
}), (a, t) => {
|
|
141
|
+
const H = r("el-input"), D = r("el-form-item"), b = r("el-col"), x = r("jmash-select"), A = r("el-date-picker"), h = r("el-button"), R = r("el-row"), F = r("el-form"), W = r("jmash-column-select"), G = r("jmash-table"), J = r("jmash-pagination"), X = r("el-card"), N = le("hasPerm");
|
|
142
|
+
return d(), f("div", de, [
|
|
143
|
+
y("div", me, [
|
|
144
|
+
s(F, {
|
|
145
|
+
ref_key: "queryFormRef",
|
|
146
|
+
ref: M,
|
|
147
|
+
model: n.value,
|
|
148
|
+
inline: !0
|
|
149
|
+
}, {
|
|
150
|
+
default: l(() => [
|
|
151
|
+
s(R, null, {
|
|
152
|
+
default: l(() => [
|
|
153
|
+
s(b, { span: 6 }, {
|
|
154
|
+
default: l(() => [
|
|
155
|
+
s(D, {
|
|
156
|
+
label: a.$t("taskInst.keyword"),
|
|
157
|
+
prop: "keyword"
|
|
158
|
+
}, {
|
|
159
|
+
default: l(() => [
|
|
160
|
+
s(H, {
|
|
161
|
+
modelValue: n.value.keyword,
|
|
162
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.keyword = e),
|
|
163
|
+
placeholder: a.$t("taskInst.keywordRequired"),
|
|
164
|
+
onKeyup: t[1] || (t[1] = $((e) => o(i).handleQuery(), ["enter"])),
|
|
165
|
+
class: "!w-[203px]"
|
|
166
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}, 8, ["label"])
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
}),
|
|
173
|
+
s(b, { span: 6 }, {
|
|
174
|
+
default: l(() => [
|
|
175
|
+
s(D, {
|
|
176
|
+
label: a.$t("taskInst.status"),
|
|
177
|
+
prop: "status"
|
|
178
|
+
}, {
|
|
179
|
+
default: l(() => [
|
|
180
|
+
s(x, {
|
|
181
|
+
modelValue: n.value.status,
|
|
182
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.status = e),
|
|
183
|
+
data: o(m).taskStatusEnum.values,
|
|
184
|
+
placeholder: a.$t("taskInst.statusRequired"),
|
|
185
|
+
onKeyup: t[3] || (t[3] = $((e) => o(i).handleQuery(), ["enter"])),
|
|
186
|
+
class: "!w-[203px]"
|
|
187
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["label"])
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
}),
|
|
194
|
+
s(b, { span: 6 }, {
|
|
195
|
+
default: l(() => [
|
|
196
|
+
s(D, {
|
|
197
|
+
label: a.$t("taskInst.taskDate"),
|
|
198
|
+
prop: "taskDate"
|
|
199
|
+
}, {
|
|
200
|
+
default: l(() => [
|
|
201
|
+
s(A, {
|
|
202
|
+
modelValue: n.value.taskDate,
|
|
203
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.taskDate = e),
|
|
204
|
+
type: "date",
|
|
205
|
+
placeholder: a.$t("taskInst.taskDateRequired"),
|
|
206
|
+
format: "YYYY-MM-DD",
|
|
207
|
+
"value-format": "YYYY-MM-DD",
|
|
208
|
+
onKeyup: t[5] || (t[5] = $((e) => o(i).handleQuery(), ["enter"])),
|
|
209
|
+
class: "w-full"
|
|
210
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
}, 8, ["label"])
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}),
|
|
217
|
+
s(b, { span: 6 }, {
|
|
218
|
+
default: l(() => [
|
|
219
|
+
s(D, { class: "search-btn" }, {
|
|
220
|
+
default: l(() => [
|
|
221
|
+
s(h, {
|
|
222
|
+
type: "primary",
|
|
223
|
+
onClick: t[6] || (t[6] = (e) => o(i).handleQuery())
|
|
224
|
+
}, {
|
|
225
|
+
default: l(() => [
|
|
226
|
+
I(u(a.$t("common.search")), 1)
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
}),
|
|
230
|
+
s(h, {
|
|
231
|
+
onClick: t[7] || (t[7] = (e) => o(i).resetQuery())
|
|
232
|
+
}, {
|
|
233
|
+
default: l(() => [
|
|
234
|
+
I(u(a.$t("common.reset")), 1)
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
})
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
})
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
})
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
})
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["model"]),
|
|
250
|
+
t[16] || (t[16] = y("div", { class: "clear" }, null, -1))
|
|
251
|
+
]),
|
|
252
|
+
s(X, {
|
|
253
|
+
shadow: "never",
|
|
254
|
+
class: "table-container"
|
|
255
|
+
}, {
|
|
256
|
+
header: l(() => [
|
|
257
|
+
s(R, null, {
|
|
258
|
+
default: l(() => [
|
|
259
|
+
s(b, {
|
|
260
|
+
span: 24,
|
|
261
|
+
class: "container-float"
|
|
262
|
+
}, {
|
|
263
|
+
default: l(() => [
|
|
264
|
+
Y((d(), C(h, {
|
|
265
|
+
plain: "",
|
|
266
|
+
type: "primary",
|
|
267
|
+
onClick: t[8] || (t[8] = (e) => o(i).handleExport(o(p)("task.taskInst.name")))
|
|
268
|
+
}, {
|
|
269
|
+
default: l(() => [
|
|
270
|
+
I(u(a.$t("common.export")), 1)
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
})), [
|
|
274
|
+
[N, ["task:task_inst:export"]]
|
|
275
|
+
]),
|
|
276
|
+
s(W, {
|
|
277
|
+
modelValue: o(v),
|
|
278
|
+
"onUpdate:modelValue": t[9] || (t[9] = (e) => U(v) ? v.value = e : v = e),
|
|
279
|
+
"label-name": "task/task-inst"
|
|
280
|
+
}, null, 8, ["modelValue"])
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
})
|
|
284
|
+
]),
|
|
285
|
+
_: 1
|
|
286
|
+
})
|
|
287
|
+
]),
|
|
288
|
+
footer: l(() => [
|
|
289
|
+
o(w) > 0 ? (d(), C(J, {
|
|
290
|
+
key: 0,
|
|
291
|
+
total: o(w),
|
|
292
|
+
"onUpdate:total": t[10] || (t[10] = (e) => U(w) ? w.value = e : null),
|
|
293
|
+
"current-page": n.value.curPage,
|
|
294
|
+
"onUpdate:currentPage": t[11] || (t[11] = (e) => n.value.curPage = e),
|
|
295
|
+
"page-size": n.value.pageSize,
|
|
296
|
+
"onUpdate:pageSize": t[12] || (t[12] = (e) => n.value.pageSize = e),
|
|
297
|
+
onPagination: t[13] || (t[13] = (e) => o(i).getList())
|
|
298
|
+
}, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
|
|
299
|
+
]),
|
|
300
|
+
default: l(() => [
|
|
301
|
+
s(G, {
|
|
302
|
+
ref_key: "multipleTableRef",
|
|
303
|
+
ref: E,
|
|
304
|
+
"row-key": "taskInstId",
|
|
305
|
+
"list-loading": o(q),
|
|
306
|
+
data: o(B),
|
|
307
|
+
"table-label": o(v),
|
|
308
|
+
onSelectionChange: K,
|
|
309
|
+
onSortChange: Q
|
|
310
|
+
}, {
|
|
311
|
+
annivCustomerId: l((e) => [
|
|
312
|
+
e.data.row.sort === o(j).CUSTOMER ? (d(), f("span", pe, u(o(m).OrgBizDict.getValue(e.data.row.annivCustomerId)), 1)) : (d(), f("span", ke, u(o(m).itemBizLayDict.getValue(e.data.row.annivCustomerId)), 1))
|
|
313
|
+
]),
|
|
314
|
+
readStatus: l((e) => [
|
|
315
|
+
y("span", null, u(o(m).readStatusDict.getValue(e.data.row.readStatus)), 1)
|
|
316
|
+
]),
|
|
317
|
+
status: l((e) => [
|
|
318
|
+
y("span", null, u(o(m).taskStatusEnum.getEnumValue(e.data.row.status)), 1)
|
|
319
|
+
]),
|
|
320
|
+
percent: l((e) => [
|
|
321
|
+
y("span", null, u(e.data.row.percent) + "% ", 1)
|
|
322
|
+
]),
|
|
323
|
+
finishDate: l((e) => [
|
|
324
|
+
I(u(o(z).$moment.formatDate(
|
|
325
|
+
e.data.row.finishDate,
|
|
326
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
327
|
+
)), 1)
|
|
328
|
+
]),
|
|
329
|
+
operation: l((e) => [
|
|
330
|
+
Y((d(), f("span", {
|
|
331
|
+
class: "el-button-color",
|
|
332
|
+
onClick: (T) => O(e.data.row)
|
|
333
|
+
}, [
|
|
334
|
+
I(u(a.$t("common.view")), 1)
|
|
335
|
+
], 8, ce)), [
|
|
336
|
+
[N, ["task:task_inst:delete"]]
|
|
337
|
+
]),
|
|
338
|
+
e.data.row.sort === o(j).CUSTOMER ? (d(), f("span", {
|
|
339
|
+
key: 0,
|
|
340
|
+
class: "el-button-color dropdown-left",
|
|
341
|
+
onClick: (T) => L(e.data.row)
|
|
342
|
+
}, u(a.$t("taskInst.report")), 9, fe)) : (d(), f("span", {
|
|
343
|
+
key: 1,
|
|
344
|
+
class: "el-button-color dropdown-left",
|
|
345
|
+
onClick: (T) => P(e.data.row)
|
|
346
|
+
}, u(a.$t("taskInst.report")), 9, ve))
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
}),
|
|
353
|
+
k.value.visible ? (d(), C(ie, {
|
|
354
|
+
key: 0,
|
|
355
|
+
modelValue: k.value.visible,
|
|
356
|
+
"onUpdate:modelValue": t[14] || (t[14] = (e) => k.value.visible = e),
|
|
357
|
+
title: k.value.title,
|
|
358
|
+
"entity-key": o(_),
|
|
359
|
+
onRefresh: S,
|
|
360
|
+
width: "600px"
|
|
361
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : V("", !0),
|
|
362
|
+
c.value.visible ? (d(), C(ue, {
|
|
363
|
+
key: 1,
|
|
364
|
+
modelValue: c.value.visible,
|
|
365
|
+
"onUpdate:modelValue": t[15] || (t[15] = (e) => c.value.visible = e),
|
|
366
|
+
title: c.value.title,
|
|
367
|
+
"entity-key": o(_),
|
|
368
|
+
onRefresh: S,
|
|
369
|
+
width: "1000px"
|
|
370
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : V("", !0)
|
|
371
|
+
]);
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
export {
|
|
376
|
+
he as default
|
|
377
|
+
};
|