sooyie-task 0.0.3 → 0.0.5

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,9 +1,10 @@
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 "jmash-core";
7
8
  import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
9
  const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
9
10
  __name: "edit",
@@ -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,53 +36,53 @@ 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) {
43
+ function q(t) {
44
44
  const l = {
45
45
  fileName: t.name,
46
46
  fileId: t.response.fileId,
47
- fileSort: d.entityKey.sort
47
+ fileSort: m.entityKey.sort
48
48
  };
49
49
  n.file || (n.file = []), n.file.push(l);
50
50
  }
51
- function q(t) {
51
+ function K(t) {
52
52
  var l;
53
53
  (l = n.file) == null || l.splice(t, 1);
54
54
  }
55
55
  const N = async () => {
56
56
  var t;
57
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({
58
+ l && 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
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, [
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": l[3] || (l[3] = (s) => r.value = s),
75
75
  onClose: w
76
76
  }, {
77
77
  footer: o(() => [
78
78
  Q("div", le, [
79
- e(y, { onClick: w }, {
79
+ e(g, { onClick: w }, {
80
80
  default: o(() => [
81
81
  p(_(t.$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
  }, {
@@ -97,24 +97,24 @@ 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, {
109
+ e(u, {
110
110
  label: t.$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,
114
+ e(d, {
115
+ modelValue: i(n).govOrgId,
116
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => i(n).govOrgId = s),
117
+ data: i(x).OrgBizDict.values,
118
118
  placeholder: t.$t("taskInst.customerIdRequired"),
119
119
  maxlength: "8",
120
120
  "show-word-limit": "",
@@ -129,7 +129,7 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
129
129
  }),
130
130
  e(c, { span: 24 }, {
131
131
  default: o(() => [
132
- e(m, {
132
+ e(u, {
133
133
  label: t.$t("taskInst.createTime")
134
134
  }, {
135
135
  default: o(() => [
@@ -149,17 +149,17 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
149
149
  }),
150
150
  e(c, { span: 24 }, {
151
151
  default: o(() => [
152
- e(m, {
152
+ e(u, {
153
153
  label: t.$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),
158
+ modelValue: i(n).content,
159
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => i(n).content = s),
160
160
  placeholder: t.$t("taskInst.noteRequired"),
161
- maxlength: "8",
162
161
  "show-word-limit": "",
162
+ type: "textarea",
163
163
  clearable: ""
164
164
  }, null, 8, ["modelValue", "placeholder"])
165
165
  ]),
@@ -170,15 +170,15 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
170
170
  }),
171
171
  e(c, { span: 24 }, {
172
172
  default: o(() => [
173
- e(m, {
173
+ e(u, {
174
174
  label: t.$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
184
  p(_(t.$t("common.uploadFiles")), 1)
@@ -188,17 +188,17 @@ const le = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
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": l[4] || (l[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__ */ te(oe, [["__scopeId", "data-v-cd2f9105"]]);
235
235
  export {
236
- ce as default
236
+ fe as default
237
237
  };
@@ -2,8 +2,8 @@ import { defineComponent as ee, getCurrentInstance as te, ref as g, reactive as
2
2
  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
- import { t as re, a as ue } from "./report-CJWipPH_.mjs";
6
- import ie from "./edit-CE42VR9Z.mjs";
5
+ import { t as re, a as ue } from "./report-Uf6UKzUn.mjs";
6
+ import ie from "./edit-Ci8Uch5Z.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",
package/dist/index.mjs CHANGED
@@ -213,7 +213,7 @@ function bs(e) {
213
213
  let s = e.global.getLocaleMessage("en");
214
214
  s = pt(s, Os), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
215
215
  }
216
- const Is = () => import("./edit-CRQkMd15.mjs"), xs = () => import("./info-CV-udiTK.mjs"), Ns = [
216
+ const Is = () => import("./edit-CRQkMd15.mjs"), xs = () => import("./info-BTSBObrr.mjs"), Ns = [
217
217
  {
218
218
  path: "/task",
219
219
  component: Ms,
@@ -2827,7 +2827,7 @@ const Pi = {
2827
2827
  }
2828
2828
  };
2829
2829
  }
2830
- }, Wi = /* @__PURE__ */ Object.assign({ "./views/task/task-define-rel/add.vue": () => import("./add-7_dK5ok_.mjs").then((e) => e.b), "./views/task/task-define-rel/index.vue": () => import("./index-DIHsBjkh.mjs"), "./views/task/task-define/add.vue": () => import("./add-C2devcsq.mjs"), "./views/task/task-define/edit.vue": () => import("./edit-CRQkMd15.mjs"), "./views/task/task-define/index.vue": () => import("./index-_jDuSfL7.mjs"), "./views/task/task-inst/edit.vue": () => import("./edit-CE42VR9Z.mjs"), "./views/task/task-inst/index.vue": () => import("./index-D2MCvi1T.mjs"), "./views/task/task-inst/info.vue": () => import("./info-CV-udiTK.mjs"), "./views/task/task-inst/report-info.vue": () => import("./report-info-B0NXFFzR.mjs").then((e) => e.r), "./views/task/task-inst/report.vue": () => import("./report-CJWipPH_.mjs").then((e) => e.r), "./views/task/task-task/index.vue": () => import("./index-aDDSbb4h.mjs") }), Ci = {
2830
+ }, Wi = /* @__PURE__ */ Object.assign({ "./views/task/task-define-rel/add.vue": () => import("./add-7_dK5ok_.mjs").then((e) => e.b), "./views/task/task-define-rel/index.vue": () => import("./index-DIHsBjkh.mjs"), "./views/task/task-define/add.vue": () => import("./add-C2devcsq.mjs"), "./views/task/task-define/edit.vue": () => import("./edit-CRQkMd15.mjs"), "./views/task/task-define/index.vue": () => import("./index-_jDuSfL7.mjs"), "./views/task/task-inst/edit.vue": () => import("./edit-Ci8Uch5Z.mjs"), "./views/task/task-inst/index.vue": () => import("./index-DtM5EnwJ.mjs"), "./views/task/task-inst/info.vue": () => import("./info-BTSBObrr.mjs"), "./views/task/task-inst/report-info.vue": () => import("./report-info-B0NXFFzR.mjs").then((e) => e.r), "./views/task/task-inst/report.vue": () => import("./report-Uf6UKzUn.mjs").then((e) => e.r), "./views/task/task-task/index.vue": () => import("./index-aDDSbb4h.mjs") }), Ci = {
2831
2831
  install(e) {
2832
2832
  vs(Wi, 7), bs(Ys), ps(Ns), e.use(Pi);
2833
2833
  }
@@ -5,9 +5,9 @@ import { useRoute as Rr } from "vue-router";
5
5
  import { D as L, J as Dr, $ as Nr, C as Re } from "./index-DvawPwK3.mjs";
6
6
  import { t as Tr } from "./index-CEvxhWYT.mjs";
7
7
  import { t as Et, a as Fr } from "./report-info-B0NXFFzR.mjs";
8
- import { t as At, a as Cr } from "./report-CJWipPH_.mjs";
8
+ import { t as At, a as Cr } from "./report-Uf6UKzUn.mjs";
9
9
  import { useI18n as Mr } from "vue-i18n";
10
- import xr from "./edit-CE42VR9Z.mjs";
10
+ import xr from "./edit-Ci8Uch5Z.mjs";
11
11
  var $t = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
12
12
  function Br(t) {
13
13
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;