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.
@@ -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 I, openBlock as v, Fragment as $, createVNode as e, withCtx as o, unref as r, createTextVNode as p, toDisplayString as _, renderList as P, createElementVNode as Q } from "vue";
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 { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
- const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
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(), d = k;
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: d.entityKey.taskInstId,
26
+ taskInstId: m.entityKey.taskInstId,
27
27
  file: [],
28
- govOrgId: d.entityKey.customerTagId,
29
- type: d.entityKey.sort
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
- }), i = J(k, "modelValue"), K = R, g = f(!1), C = f();
40
- function U() {
41
- g.value = !0, C.value.clearFileList();
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 j(t) {
44
- const l = {
45
- fileName: t.name,
46
- fileId: t.response.fileId,
47
- fileSort: d.entityKey.sort
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(l);
49
+ n.file || (n.file = []), n.file.push(t);
50
50
  }
51
- function q(t) {
52
- var l;
53
- (l = n.file) == null || l.splice(t, 1);
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 t;
57
- await ((t = b.value) == null ? void 0 : t.validate((l) => {
58
- l && ee.create(n).then((u) => {
59
- console.log(u), u.status === 200 && (W({
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
- }), i.value && (i.value = !1), K("refresh", u.status === 200));
62
+ }), r.value && (r.value = !1), U("refresh", d.status === 200));
63
63
  });
64
64
  }));
65
65
  };
66
66
  function w() {
67
- i.value && (i.value = !1);
67
+ r.value && (r.value = !1);
68
68
  }
69
- return (t, l) => {
70
- const u = a("jmash-select"), m = a("el-form-item"), c = a("el-col"), S = a("el-date-picker"), B = a("el-input"), y = a("el-button"), L = a("CircleClose"), T = a("el-icon"), E = a("el-row"), z = a("el-form"), A = a("el-dialog"), G = a("jmash-multi-upload");
71
- return v(), I($, null, [
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: i.value,
74
- "onUpdate:modelValue": l[3] || (l[3] = (s) => i.value = s),
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", le, [
79
- e(y, { onClick: w }, {
78
+ Q("div", te, [
79
+ e(g, { onClick: w }, {
80
80
  default: o(() => [
81
- p(_(t.$t("common.cancel")), 1)
81
+ p(_(l.$t("common.cancel")), 1)
82
82
  ]),
83
83
  _: 1
84
84
  }),
85
- e(y, {
85
+ e(g, {
86
86
  type: "primary",
87
87
  onClick: N
88
88
  }, {
89
89
  default: o(() => [
90
- p(_(t.$t("common.confirm")), 1)
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: r(n),
100
+ model: i(n),
101
101
  "label-width": "120px",
102
102
  rules: Y
103
103
  }, {
104
104
  default: o(() => [
105
- e(E, null, {
105
+ e(T, null, {
106
106
  default: o(() => [
107
107
  e(c, { span: 24 }, {
108
108
  default: o(() => [
109
- e(m, {
110
- label: t.$t("taskInst.customerId"),
109
+ e(u, {
110
+ label: l.$t("taskInst.customerId"),
111
111
  prop: "govOrgId"
112
112
  }, {
113
113
  default: o(() => [
114
- e(u, {
115
- modelValue: r(n).govOrgId,
116
- "onUpdate:modelValue": l[0] || (l[0] = (s) => r(n).govOrgId = s),
117
- data: r(x).OrgBizDict.values,
118
- placeholder: t.$t("taskInst.customerIdRequired"),
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(m, {
133
- label: t.$t("taskInst.createTime")
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": l[1] || (l[1] = (s) => V.value = s),
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(m, {
153
- label: t.$t("taskInst.note"),
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: r(n).content,
159
- "onUpdate:modelValue": l[2] || (l[2] = (s) => r(n).content = s),
160
- placeholder: t.$t("taskInst.noteRequired"),
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(m, {
174
- label: t.$t("taskDefine.files"),
173
+ e(u, {
174
+ label: l.$t("taskDefine.files"),
175
175
  prop: "fileInfo"
176
176
  }, {
177
177
  default: o(() => [
178
- e(y, {
178
+ e(g, {
179
179
  type: "primary",
180
- icon: r(Z),
181
- onClick: U
180
+ icon: i(Z),
181
+ onClick: j
182
182
  }, {
183
183
  default: o(() => [
184
- p(_(t.$t("common.uploadFiles")), 1)
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(m, null, {
191
+ e(u, null, {
192
192
  default: o(() => [
193
- (v(!0), I($, null, P(r(n).file, (s, D) => (v(), I("div", {
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(T, {
198
+ e(E, {
199
199
  size: "16",
200
200
  class: "icon-right",
201
- onClick: (ae) => q(D)
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: g.value,
228
- "onUpdate:modelValue": l[4] || (l[4] = (s) => g.value = s),
229
- onUploadFileList: j
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
- }), ce = /* @__PURE__ */ te(oe, [["__scopeId", "data-v-0f70f792"]]);
234
+ }), fe = /* @__PURE__ */ le(oe, [["__scopeId", "data-v-ea26f6d1"]]);
235
235
  export {
236
- ce as default
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-CE42VR9Z.mjs";
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",