sooyie-task 0.0.2 → 0.0.4
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/{edit-CE42VR9Z.mjs → edit-BLm8ohXr.mjs} +68 -68
- package/dist/{index-D2MCvi1T.mjs → index-B9aPHUP4.mjs} +1 -1
- package/dist/{index-DWR8jzTQ.mjs → index-aDDSbb4h.mjs} +92 -123
- package/dist/index.mjs +437 -407
- package/dist/{info-Dls9Zhvf.mjs → info-Z_lia45C.mjs} +8 -6
- package/dist/style.css +1 -1
- package/dts/src/router/index.d.ts +0 -3
- package/dts/src/router/page.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as H, mergeModels as F, ref as f, reactive as M, useModel as J, resolveComponent as a, createElementBlock as
|
|
1
|
+
import { defineComponent as H, mergeModels as F, ref as f, reactive as M, useModel as J, resolveComponent as a, createElementBlock as v, openBlock as y, Fragment as $, createVNode as e, withCtx as o, unref as i, createTextVNode as p, toDisplayString as _, renderList as P, createElementVNode as Q } from "vue";
|
|
2
2
|
import { ElMessage as W } from "element-plus";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
4
|
import { u as Z } from "./index-DaJ5KrbS.mjs";
|
|
5
5
|
import { D as x } from "./index-DvawPwK3.mjs";
|
|
6
6
|
import { t as ee } from "./index-BYV5ylFn.mjs";
|
|
7
|
-
import
|
|
8
|
-
|
|
7
|
+
import "jmash-core";
|
|
8
|
+
import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
const te = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
9
10
|
__name: "edit",
|
|
10
11
|
props: /* @__PURE__ */ F({
|
|
11
12
|
entityKey: {
|
|
@@ -19,14 +20,13 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
19
20
|
}),
|
|
20
21
|
emits: /* @__PURE__ */ F(["refresh"], ["update:modelValue"]),
|
|
21
22
|
setup(k, { emit: R }) {
|
|
22
|
-
const O = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], V = f(O), b = f(), { t: h } = X(),
|
|
23
|
-
console.log(d.entityKey.sort, "=> props.entityKey?.sort");
|
|
23
|
+
const O = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], V = f(O), b = f(), { t: h } = X(), m = k;
|
|
24
24
|
let n = M({
|
|
25
25
|
requestId: Math.random() * 10 + "",
|
|
26
|
-
taskInstId:
|
|
26
|
+
taskInstId: m.entityKey.taskInstId,
|
|
27
27
|
file: [],
|
|
28
|
-
govOrgId:
|
|
29
|
-
type:
|
|
28
|
+
govOrgId: m.entityKey.annivCustomerId,
|
|
29
|
+
type: m.entityKey.sort
|
|
30
30
|
});
|
|
31
31
|
const Y = M({
|
|
32
32
|
govOrgId: [
|
|
@@ -36,58 +36,58 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
36
36
|
trigger: "change"
|
|
37
37
|
}
|
|
38
38
|
]
|
|
39
|
-
}),
|
|
40
|
-
function
|
|
41
|
-
|
|
39
|
+
}), r = J(k, "modelValue"), U = R, I = f(!1), C = f();
|
|
40
|
+
function j() {
|
|
41
|
+
I.value = !0, C.value.clearFileList();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
const
|
|
45
|
-
fileName:
|
|
46
|
-
fileId:
|
|
47
|
-
fileSort:
|
|
43
|
+
function q(l) {
|
|
44
|
+
const t = {
|
|
45
|
+
fileName: l.name,
|
|
46
|
+
fileId: l.response.fileId,
|
|
47
|
+
fileSort: m.entityKey.sort
|
|
48
48
|
};
|
|
49
|
-
n.file || (n.file = []), n.file.push(
|
|
49
|
+
n.file || (n.file = []), n.file.push(t);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
var
|
|
53
|
-
(
|
|
51
|
+
function K(l) {
|
|
52
|
+
var t;
|
|
53
|
+
(t = n.file) == null || t.splice(l, 1);
|
|
54
54
|
}
|
|
55
55
|
const N = async () => {
|
|
56
|
-
var
|
|
57
|
-
await ((
|
|
58
|
-
|
|
59
|
-
console.log(
|
|
56
|
+
var l;
|
|
57
|
+
await ((l = b.value) == null ? void 0 : l.validate((t) => {
|
|
58
|
+
t && ee.create(n).then((d) => {
|
|
59
|
+
console.log(d), d.status === 200 && (W({
|
|
60
60
|
message: h("common.submitSuccess"),
|
|
61
61
|
type: "success"
|
|
62
|
-
}),
|
|
62
|
+
}), r.value && (r.value = !1), U("refresh", d.status === 200));
|
|
63
63
|
});
|
|
64
64
|
}));
|
|
65
65
|
};
|
|
66
66
|
function w() {
|
|
67
|
-
|
|
67
|
+
r.value && (r.value = !1);
|
|
68
68
|
}
|
|
69
|
-
return (
|
|
70
|
-
const
|
|
71
|
-
return
|
|
69
|
+
return (l, t) => {
|
|
70
|
+
const d = a("jmash-select"), u = a("el-form-item"), c = a("el-col"), S = a("el-date-picker"), B = a("el-input"), g = a("el-button"), L = a("CircleClose"), E = a("el-icon"), T = a("el-row"), z = a("el-form"), A = a("el-dialog"), G = a("jmash-multi-upload");
|
|
71
|
+
return y(), v($, null, [
|
|
72
72
|
e(A, {
|
|
73
|
-
modelValue:
|
|
74
|
-
"onUpdate:modelValue":
|
|
73
|
+
modelValue: r.value,
|
|
74
|
+
"onUpdate:modelValue": t[3] || (t[3] = (s) => r.value = s),
|
|
75
75
|
onClose: w
|
|
76
76
|
}, {
|
|
77
77
|
footer: o(() => [
|
|
78
|
-
Q("div",
|
|
79
|
-
e(
|
|
78
|
+
Q("div", te, [
|
|
79
|
+
e(g, { onClick: w }, {
|
|
80
80
|
default: o(() => [
|
|
81
|
-
p(_(
|
|
81
|
+
p(_(l.$t("common.cancel")), 1)
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
84
|
}),
|
|
85
|
-
e(
|
|
85
|
+
e(g, {
|
|
86
86
|
type: "primary",
|
|
87
87
|
onClick: N
|
|
88
88
|
}, {
|
|
89
89
|
default: o(() => [
|
|
90
|
-
p(_(
|
|
90
|
+
p(_(l.$t("common.confirm")), 1)
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
93
|
})
|
|
@@ -97,25 +97,25 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
97
97
|
e(z, {
|
|
98
98
|
ref_key: "taskInstFormRef",
|
|
99
99
|
ref: b,
|
|
100
|
-
model:
|
|
100
|
+
model: i(n),
|
|
101
101
|
"label-width": "120px",
|
|
102
102
|
rules: Y
|
|
103
103
|
}, {
|
|
104
104
|
default: o(() => [
|
|
105
|
-
e(
|
|
105
|
+
e(T, null, {
|
|
106
106
|
default: o(() => [
|
|
107
107
|
e(c, { span: 24 }, {
|
|
108
108
|
default: o(() => [
|
|
109
|
-
e(
|
|
110
|
-
label:
|
|
109
|
+
e(u, {
|
|
110
|
+
label: l.$t("taskInst.customerId"),
|
|
111
111
|
prop: "govOrgId"
|
|
112
112
|
}, {
|
|
113
113
|
default: o(() => [
|
|
114
|
-
e(
|
|
115
|
-
modelValue:
|
|
116
|
-
"onUpdate:modelValue":
|
|
117
|
-
data:
|
|
118
|
-
placeholder:
|
|
114
|
+
e(d, {
|
|
115
|
+
modelValue: i(n).govOrgId,
|
|
116
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => i(n).govOrgId = s),
|
|
117
|
+
data: i(x).OrgBizDict.values,
|
|
118
|
+
placeholder: l.$t("taskInst.customerIdRequired"),
|
|
119
119
|
maxlength: "8",
|
|
120
120
|
"show-word-limit": "",
|
|
121
121
|
clearable: "",
|
|
@@ -129,13 +129,13 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
129
129
|
}),
|
|
130
130
|
e(c, { span: 24 }, {
|
|
131
131
|
default: o(() => [
|
|
132
|
-
e(
|
|
133
|
-
label:
|
|
132
|
+
e(u, {
|
|
133
|
+
label: l.$t("taskInst.createTime")
|
|
134
134
|
}, {
|
|
135
135
|
default: o(() => [
|
|
136
136
|
e(S, {
|
|
137
137
|
modelValue: V.value,
|
|
138
|
-
"onUpdate:modelValue":
|
|
138
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => V.value = s),
|
|
139
139
|
type: "date",
|
|
140
140
|
format: "YYYY-MM-DD",
|
|
141
141
|
"value-format": "YYYY-MM-DD",
|
|
@@ -149,15 +149,15 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
149
149
|
}),
|
|
150
150
|
e(c, { span: 24 }, {
|
|
151
151
|
default: o(() => [
|
|
152
|
-
e(
|
|
153
|
-
label:
|
|
152
|
+
e(u, {
|
|
153
|
+
label: l.$t("taskInst.note"),
|
|
154
154
|
prop: "content"
|
|
155
155
|
}, {
|
|
156
156
|
default: o(() => [
|
|
157
157
|
e(B, {
|
|
158
|
-
modelValue:
|
|
159
|
-
"onUpdate:modelValue":
|
|
160
|
-
placeholder:
|
|
158
|
+
modelValue: i(n).content,
|
|
159
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => i(n).content = s),
|
|
160
|
+
placeholder: l.$t("taskInst.noteRequired"),
|
|
161
161
|
maxlength: "8",
|
|
162
162
|
"show-word-limit": "",
|
|
163
163
|
clearable: ""
|
|
@@ -170,35 +170,35 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
170
170
|
}),
|
|
171
171
|
e(c, { span: 24 }, {
|
|
172
172
|
default: o(() => [
|
|
173
|
-
e(
|
|
174
|
-
label:
|
|
173
|
+
e(u, {
|
|
174
|
+
label: l.$t("taskDefine.files"),
|
|
175
175
|
prop: "fileInfo"
|
|
176
176
|
}, {
|
|
177
177
|
default: o(() => [
|
|
178
|
-
e(
|
|
178
|
+
e(g, {
|
|
179
179
|
type: "primary",
|
|
180
|
-
icon:
|
|
181
|
-
onClick:
|
|
180
|
+
icon: i(Z),
|
|
181
|
+
onClick: j
|
|
182
182
|
}, {
|
|
183
183
|
default: o(() => [
|
|
184
|
-
p(_(
|
|
184
|
+
p(_(l.$t("common.uploadFiles")), 1)
|
|
185
185
|
]),
|
|
186
186
|
_: 1
|
|
187
187
|
}, 8, ["icon"])
|
|
188
188
|
]),
|
|
189
189
|
_: 1
|
|
190
190
|
}, 8, ["label"]),
|
|
191
|
-
e(
|
|
191
|
+
e(u, null, {
|
|
192
192
|
default: o(() => [
|
|
193
|
-
(
|
|
193
|
+
(y(!0), v($, null, P(i(n).file, (s, D) => (y(), v("div", {
|
|
194
194
|
key: D,
|
|
195
195
|
class: "files-list"
|
|
196
196
|
}, [
|
|
197
197
|
p(_(s.fileName) + " ", 1),
|
|
198
|
-
e(
|
|
198
|
+
e(E, {
|
|
199
199
|
size: "16",
|
|
200
200
|
class: "icon-right",
|
|
201
|
-
onClick: (ae) =>
|
|
201
|
+
onClick: (ae) => K(D)
|
|
202
202
|
}, {
|
|
203
203
|
default: o(() => [
|
|
204
204
|
e(L)
|
|
@@ -224,14 +224,14 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
224
224
|
e(G, {
|
|
225
225
|
ref_key: "uploadRef",
|
|
226
226
|
ref: C,
|
|
227
|
-
modelValue:
|
|
228
|
-
"onUpdate:modelValue":
|
|
229
|
-
onUploadFileList:
|
|
227
|
+
modelValue: I.value,
|
|
228
|
+
"onUpdate:modelValue": t[4] || (t[4] = (s) => I.value = s),
|
|
229
|
+
onUploadFileList: q
|
|
230
230
|
}, null, 8, ["modelValue"])
|
|
231
231
|
], 64);
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
|
-
}),
|
|
234
|
+
}), fe = /* @__PURE__ */ le(oe, [["__scopeId", "data-v-ea26f6d1"]]);
|
|
235
235
|
export {
|
|
236
|
-
|
|
236
|
+
fe as default
|
|
237
237
|
};
|
|
@@ -3,7 +3,7 @@ import { useTableHooks as se } from "jmash-core";
|
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
4
|
import { D as m, C as j } from "./index-DvawPwK3.mjs";
|
|
5
5
|
import { t as re, a as ue } from "./report-CJWipPH_.mjs";
|
|
6
|
-
import ie from "./edit-
|
|
6
|
+
import ie from "./edit-BLm8ohXr.mjs";
|
|
7
7
|
import { useRouter as de } from "vue-router";
|
|
8
8
|
const me = { class: "app-container" }, pe = { class: "search-container" }, ke = { key: 0 }, ce = { key: 1 }, fe = ["onClick"], ve = ["onClick"], be = ["onClick"], Ve = /* @__PURE__ */ ee({
|
|
9
9
|
__name: "index",
|