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
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# pnpm publish --no-git-checks
|
|
2
|
+
npm config set registry https://registry.npmjs.org/
|
|
3
|
+
|
|
4
|
+
# pnpm install
|
|
5
|
+
npm config set registry https://registry.npmmirror.com/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
9
|
+
|
|
10
|
+
## Recommended IDE Setup
|
|
11
|
+
|
|
12
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
13
|
+
|
|
14
|
+
## Type Support for `.vue` Imports in TS
|
|
15
|
+
|
|
16
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
17
|
+
|
|
18
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
19
|
+
|
|
20
|
+
1. Disable the built-in TypeScript Extension
|
|
21
|
+
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
22
|
+
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
23
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
24
|
+
|
|
25
|
+
## Customize configuration
|
|
26
|
+
|
|
27
|
+
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
28
|
+
|
|
29
|
+
## Project Setup
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Compile and Hot-Reload for Development
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pnpm dev
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Type-Check, Compile and Minify for Production
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
pnpm build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pnpm lint
|
|
51
|
+
```
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { defineComponent as K, mergeModels as Y, ref as T, reactive as B, useModel as q, resolveComponent as u, createBlock as O, openBlock as E, withCtx as o, createVNode as a, unref as s, createSlots as S, createCommentVNode as J, createTextVNode as V, toDisplayString as v, createElementVNode as Q } from "vue";
|
|
2
|
+
import { ElMessage as W } from "element-plus";
|
|
3
|
+
import { useI18n as X } from "vue-i18n";
|
|
4
|
+
import { D as I, O as Z, U as $, C as z } from "./index-DvawPwK3.mjs";
|
|
5
|
+
import { useUserStore as D, clearEmpty as h, request as y } from "jmash-core";
|
|
6
|
+
import { d as ee, p as te } from "./index-DaJ5KrbS.mjs";
|
|
7
|
+
import { useRoute as le } from "vue-router";
|
|
8
|
+
import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
class oe {
|
|
10
|
+
getKey() {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
// 任务定义查询接口
|
|
14
|
+
findTaskRelById(t) {
|
|
15
|
+
const m = D().user.tenant;
|
|
16
|
+
return h(t), y({
|
|
17
|
+
url: "/v1/front/task/sooyie/task_define_rel/id/" + m + "/" + (t == null ? void 0 : t.taskDefineId),
|
|
18
|
+
method: "get",
|
|
19
|
+
params: t
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
// 删除任务关系
|
|
23
|
+
deleteTaskRelById(t) {
|
|
24
|
+
return t.tenant = D().user.tenant, h(t), y({
|
|
25
|
+
url: "/v1/front/task/sooyie/task_define_rel/id",
|
|
26
|
+
method: "delete",
|
|
27
|
+
params: t
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//创建任务关系
|
|
31
|
+
addTaskRel(t) {
|
|
32
|
+
return t.tenant = D().user.tenant, h(t), y({
|
|
33
|
+
url: "/v1/front/task/sooyie/task_define_rel",
|
|
34
|
+
method: "post",
|
|
35
|
+
data: t
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const se = new oe(), ne = { class: "dialog-footer" }, de = /* @__PURE__ */ K({
|
|
40
|
+
__name: "add",
|
|
41
|
+
props: {
|
|
42
|
+
modelValue: { type: Boolean },
|
|
43
|
+
modelModifiers: {}
|
|
44
|
+
},
|
|
45
|
+
emits: /* @__PURE__ */ Y(["refresh"], ["update:modelValue"]),
|
|
46
|
+
setup(b, { emit: t }) {
|
|
47
|
+
I.itemBizLayDict.useValues();
|
|
48
|
+
const m = new Z({
|
|
49
|
+
orgType: "HALL"
|
|
50
|
+
});
|
|
51
|
+
m.useValues();
|
|
52
|
+
const R = new $({
|
|
53
|
+
userType: "COMPANY_MANAGER"
|
|
54
|
+
});
|
|
55
|
+
R.useValues();
|
|
56
|
+
const g = new $({
|
|
57
|
+
userType: "OUTSOURCE_OPS"
|
|
58
|
+
});
|
|
59
|
+
g.useValues();
|
|
60
|
+
const { t: U } = X(), p = le();
|
|
61
|
+
I.taskInspectTypeDict.useValues();
|
|
62
|
+
const C = T();
|
|
63
|
+
let _ = B({
|
|
64
|
+
taskDefineId: p.query.taskDefineId
|
|
65
|
+
});
|
|
66
|
+
const M = B({}), i = q(b, "modelValue"), A = t, c = T([
|
|
67
|
+
{
|
|
68
|
+
customerId: "",
|
|
69
|
+
userId: ""
|
|
70
|
+
}
|
|
71
|
+
]);
|
|
72
|
+
function N() {
|
|
73
|
+
c.value.push({
|
|
74
|
+
customerId: "",
|
|
75
|
+
userId: ""
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function j(l) {
|
|
79
|
+
const r = c.value.indexOf(l.row);
|
|
80
|
+
r !== 0 && c.value.splice(r, 1);
|
|
81
|
+
}
|
|
82
|
+
const x = async () => {
|
|
83
|
+
var l;
|
|
84
|
+
await ((l = C.value) == null ? void 0 : l.validate((r) => {
|
|
85
|
+
r && (_.taskDefineRel = c.value, se.addTaskRel(_).then((n) => {
|
|
86
|
+
console.log(n), n.status === 200 && (W({
|
|
87
|
+
message: U("common.submitSuccess"),
|
|
88
|
+
type: "success"
|
|
89
|
+
}), i.value && (i.value = !1), A("refresh", n.status === 200));
|
|
90
|
+
}));
|
|
91
|
+
}));
|
|
92
|
+
};
|
|
93
|
+
function w() {
|
|
94
|
+
i.value && (i.value = !1);
|
|
95
|
+
}
|
|
96
|
+
return (l, r) => {
|
|
97
|
+
const n = u("el-table-column"), f = u("jmash-select"), L = u("el-icon"), F = u("el-table"), k = u("el-button"), P = u("el-row"), G = u("el-form"), H = u("el-dialog");
|
|
98
|
+
return E(), O(H, {
|
|
99
|
+
modelValue: i.value,
|
|
100
|
+
"onUpdate:modelValue": r[0] || (r[0] = (e) => i.value = e),
|
|
101
|
+
onClose: w
|
|
102
|
+
}, {
|
|
103
|
+
footer: o(() => [
|
|
104
|
+
Q("div", ne, [
|
|
105
|
+
a(k, { onClick: w }, {
|
|
106
|
+
default: o(() => [
|
|
107
|
+
V(v(l.$t("common.cancel")), 1)
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
}),
|
|
111
|
+
a(k, {
|
|
112
|
+
type: "primary",
|
|
113
|
+
onClick: x
|
|
114
|
+
}, {
|
|
115
|
+
default: o(() => [
|
|
116
|
+
V(v(l.$t("common.confirm")), 1)
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
})
|
|
120
|
+
])
|
|
121
|
+
]),
|
|
122
|
+
default: o(() => [
|
|
123
|
+
a(G, {
|
|
124
|
+
ref_key: "taskDefineRelFormRef",
|
|
125
|
+
ref: C,
|
|
126
|
+
model: s(_),
|
|
127
|
+
"label-width": "150px",
|
|
128
|
+
rules: M,
|
|
129
|
+
class: "custom-table-form custom-form"
|
|
130
|
+
}, {
|
|
131
|
+
default: o(() => [
|
|
132
|
+
a(P, null, {
|
|
133
|
+
default: o(() => [
|
|
134
|
+
a(F, {
|
|
135
|
+
data: c.value,
|
|
136
|
+
border: "",
|
|
137
|
+
style: { width: "100%" }
|
|
138
|
+
}, {
|
|
139
|
+
default: o(() => [
|
|
140
|
+
a(n, {
|
|
141
|
+
type: "index",
|
|
142
|
+
label: l.$t("taskDefine.index"),
|
|
143
|
+
width: "60",
|
|
144
|
+
align: "center"
|
|
145
|
+
}, null, 8, ["label"]),
|
|
146
|
+
a(n, {
|
|
147
|
+
prop: "customerId",
|
|
148
|
+
label: l.$t("taskDefine.customerId"),
|
|
149
|
+
"header-align": "center"
|
|
150
|
+
}, S({ _: 2 }, [
|
|
151
|
+
s(p).query.taskSort === s(z).CUSTOMER ? {
|
|
152
|
+
name: "default",
|
|
153
|
+
fn: o(({ row: e }) => [
|
|
154
|
+
a(f, {
|
|
155
|
+
modelValue: e.customerId,
|
|
156
|
+
"onUpdate:modelValue": (d) => e.customerId = d,
|
|
157
|
+
data: s(m).values,
|
|
158
|
+
placeholder: l.$t("taskDefine.customerIdRequired"),
|
|
159
|
+
class: "w-full"
|
|
160
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
|
|
161
|
+
]),
|
|
162
|
+
key: "0"
|
|
163
|
+
} : {
|
|
164
|
+
name: "default",
|
|
165
|
+
fn: o(({ row: e }) => [
|
|
166
|
+
a(f, {
|
|
167
|
+
modelValue: e.customerId,
|
|
168
|
+
"onUpdate:modelValue": (d) => e.customerId = d,
|
|
169
|
+
data: s(I).itemBizLayDict.values,
|
|
170
|
+
placeholder: l.$t("taskDefine.customerIdRequired"),
|
|
171
|
+
class: "w-full"
|
|
172
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
|
|
173
|
+
]),
|
|
174
|
+
key: "1"
|
|
175
|
+
}
|
|
176
|
+
]), 1032, ["label"]),
|
|
177
|
+
a(n, {
|
|
178
|
+
prop: "userId",
|
|
179
|
+
label: l.$t("taskDefine.userId"),
|
|
180
|
+
"header-align": "center"
|
|
181
|
+
}, S({ _: 2 }, [
|
|
182
|
+
s(p).query.taskSort === s(z).CUSTOMER ? {
|
|
183
|
+
name: "default",
|
|
184
|
+
fn: o(({ row: e }) => [
|
|
185
|
+
a(f, {
|
|
186
|
+
modelValue: e.userId,
|
|
187
|
+
"onUpdate:modelValue": (d) => e.userId = d,
|
|
188
|
+
data: s(R).values,
|
|
189
|
+
placeholder: l.$t("taskDefine.userIdRequired"),
|
|
190
|
+
class: "w-full"
|
|
191
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
|
|
192
|
+
]),
|
|
193
|
+
key: "0"
|
|
194
|
+
} : {
|
|
195
|
+
name: "default",
|
|
196
|
+
fn: o(({ row: e }) => [
|
|
197
|
+
a(f, {
|
|
198
|
+
modelValue: e.userId,
|
|
199
|
+
"onUpdate:modelValue": (d) => e.userId = d,
|
|
200
|
+
data: s(g).values,
|
|
201
|
+
placeholder: l.$t("taskDefine.userIdRequired"),
|
|
202
|
+
class: "w-full"
|
|
203
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
|
|
204
|
+
]),
|
|
205
|
+
key: "1"
|
|
206
|
+
}
|
|
207
|
+
]), 1032, ["label"]),
|
|
208
|
+
a(n, {
|
|
209
|
+
label: l.$t("common.operate"),
|
|
210
|
+
width: "60",
|
|
211
|
+
align: "center"
|
|
212
|
+
}, {
|
|
213
|
+
default: o((e) => [
|
|
214
|
+
e.$index !== 0 ? (E(), O(L, {
|
|
215
|
+
key: 0,
|
|
216
|
+
onClick: (d) => j(e),
|
|
217
|
+
size: "18",
|
|
218
|
+
style: { cursor: "pointer", color: "inherit" },
|
|
219
|
+
class: "hover-blue"
|
|
220
|
+
}, {
|
|
221
|
+
default: o(() => [
|
|
222
|
+
a(s(ee))
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["onClick"])) : J("", !0)
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 8, ["label"])
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["data"]),
|
|
232
|
+
a(k, {
|
|
233
|
+
icon: s(te),
|
|
234
|
+
class: "addButton",
|
|
235
|
+
onClick: N
|
|
236
|
+
}, {
|
|
237
|
+
default: o(() => [
|
|
238
|
+
V(v(s(U)("common.add")), 1)
|
|
239
|
+
]),
|
|
240
|
+
_: 1
|
|
241
|
+
}, 8, ["icon"])
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
})
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
}, 8, ["model", "rules"])
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 8, ["modelValue"]);
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
}), ue = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-df300259"]]), Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
254
|
+
__proto__: null,
|
|
255
|
+
default: ue
|
|
256
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
257
|
+
export {
|
|
258
|
+
se as a,
|
|
259
|
+
Ve as b,
|
|
260
|
+
ue as t
|
|
261
|
+
};
|