sooyie-material 0.0.7 → 0.0.8

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,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BTsxrugA.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BGu29E2H.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-B-EZ_8-e.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DicqttOn.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as j, mergeModels as C, ref as v, reactive as h, useModel as F, resolveComponent as i, createBlock as K, openBlock as O, withCtx as m, createVNode as o, unref as n, createElementVNode as S, createTextVNode as N, toDisplayString as k } from "vue";
2
2
  import { ElMessage as I } from "element-plus";
3
3
  import { useI18n as z } from "vue-i18n";
4
- import { D as w, m as c } from "./index-B6o7GKec.mjs";
4
+ import { D as w, m as c } from "./index-ZJYZNfv5.mjs";
5
5
  const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
6
6
  __name: "edit",
7
7
  props: /* @__PURE__ */ C({
@@ -3,7 +3,7 @@ import { ElMessage as S } from "element-plus";
3
3
  import { useI18n as le } from "vue-i18n";
4
4
  import "jmash-core";
5
5
  import { userApi as T } from "jmash-rbac";
6
- import { D as z, a as g } from "./index-B6o7GKec.mjs";
6
+ import { D as z, a as g } from "./index-ZJYZNfv5.mjs";
7
7
  const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
8
8
  __name: "edit",
9
9
  props: /* @__PURE__ */ F({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as W, ref as w, reactive as R, onActivated as X, resolveComponent as r, resolveDirective as D, createElementBlock as $, openBlock as d, createElementVNode as Y, createVNode as l, createBlock as _, createCommentVNode as S, withCtx as o, withKeys as Z, unref as n, createTextVNode as u, toDisplayString as c, withDirectives as f, isRef as z } from "vue";
2
2
  import { useTableHooks as ee } from "jmash-core";
3
3
  import { useI18n as te } from "vue-i18n";
4
- import { D as oe, m as le } from "./index-B6o7GKec.mjs";
5
- import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-BTsxrugA.mjs";
4
+ import { D as oe, m as le } from "./index-ZJYZNfv5.mjs";
5
+ import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-BGu29E2H.mjs";
6
6
  const ne = { class: "app-container" }, re = { class: "search-container" }, ie = ["onClick"], me = ["onClick"], fe = /* @__PURE__ */ W({
7
7
  __name: "index",
8
8
  setup(se) {
@@ -1,13 +1,13 @@
1
- import { defineComponent as le, ref as V, reactive as T, onActivated as te, resolveComponent as m, resolveDirective as U, createElementBlock as N, openBlock as d, createElementVNode as g, createVNode as n, createBlock as p, createCommentVNode as R, withCtx as a, unref as o, withKeys as P, createTextVNode as f, toDisplayString as u, withDirectives as c, isRef as j } from "vue";
1
+ import { defineComponent as le, ref as V, reactive as T, onActivated as te, resolveComponent as m, resolveDirective as P, createElementBlock as N, openBlock as d, createElementVNode as w, createVNode as n, createBlock as p, createCommentVNode as R, withCtx as a, unref as o, withKeys as S, createTextVNode as f, toDisplayString as u, withDirectives as c, isRef as j } from "vue";
2
2
  import { useTableHooks as ae } from "jmash-core";
3
3
  import { useI18n as oe } from "vue-i18n";
4
- import { D as C, a as ne } from "./index-B6o7GKec.mjs";
5
- import { _ as re } from "./edit.vue_vue_type_script_setup_true_lang-B-EZ_8-e.mjs";
6
- const ie = { class: "app-container" }, me = { class: "search-container" }, ue = ["onClick"], de = ["onClick"], be = /* @__PURE__ */ le({
4
+ import { D as g, a as ne } from "./index-ZJYZNfv5.mjs";
5
+ import { _ as re } from "./edit.vue_vue_type_script_setup_true_lang-DicqttOn.mjs";
6
+ const ie = { class: "app-container" }, me = { class: "search-container" }, de = ["onClick"], ue = ["onClick"], be = /* @__PURE__ */ le({
7
7
  __name: "index",
8
8
  setup(se) {
9
9
  const { t: v } = oe();
10
- C.materialCategoryBizDict.useValues(), C.userDict.useValues();
10
+ g.materialCategoryBizDict.useValues(), g.userDict.useValues();
11
11
  const i = V({}), {
12
12
  tableHooks: r,
13
13
  multipleTableRef: z,
@@ -16,7 +16,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
16
16
  tableData: M,
17
17
  total: $
18
18
  } = ae(v, ne, i);
19
- let _ = V([
19
+ let C = V([
20
20
  {
21
21
  label: "materialInfo.categoryId",
22
22
  prop: "categoryId",
@@ -53,10 +53,8 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
53
53
  {
54
54
  label: "materialInfo.unitPrice",
55
55
  prop: "unitPrice",
56
- width: "80",
56
+ width: "120",
57
57
  sortable: "custom",
58
- slotName: "unitPrice",
59
- columnType: "slot",
60
58
  isColumn: !0
61
59
  },
62
60
  {
@@ -87,7 +85,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
87
85
  const s = V({
88
86
  title: v("common.edit"),
89
87
  visible: !1
90
- }), k = V(!1);
88
+ }), _ = V(!1);
91
89
  let h = T({});
92
90
  function B() {
93
91
  h = T({}), s.value.title = v("common.add"), s.value.visible = !0;
@@ -105,19 +103,19 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
105
103
  t && r.getList();
106
104
  }
107
105
  function F() {
108
- k.value = !1;
106
+ _.value = !1;
109
107
  }
110
108
  function H(t) {
111
109
  t.updateMask = "", r.importExcel(t).then((e) => {
112
- k.value = !1;
110
+ _.value = !1;
113
111
  });
114
112
  }
115
113
  return te(() => {
116
114
  r.getList();
117
115
  }), (t, e) => {
118
- const G = m("el-tree-select"), w = m("el-form-item"), y = m("el-col"), D = m("el-input"), S = m("el-row"), b = m("el-button"), J = m("el-form"), O = m("jmash-column-select"), W = m("jmash-table"), X = m("jmash-pagination"), Y = m("el-card"), Z = m("jmash-import-upload"), I = U("hasPerm"), x = U("loading");
116
+ const G = m("el-tree-select"), k = m("el-form-item"), y = m("el-col"), D = m("el-input"), U = m("el-row"), b = m("el-button"), J = m("el-form"), O = m("jmash-column-select"), W = m("jmash-table"), X = m("jmash-pagination"), Y = m("el-card"), Z = m("jmash-import-upload"), I = P("hasPerm"), x = P("loading");
119
117
  return d(), N("div", ie, [
120
- g("div", me, [
118
+ w("div", me, [
121
119
  n(J, {
122
120
  ref_key: "queryFormRef",
123
121
  ref: q,
@@ -125,11 +123,11 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
125
123
  inline: !0
126
124
  }, {
127
125
  default: a(() => [
128
- n(S, null, {
126
+ n(U, null, {
129
127
  default: a(() => [
130
128
  n(y, { span: 6 }, {
131
129
  default: a(() => [
132
- n(w, {
130
+ n(k, {
133
131
  label: t.$t("materialInfo.categoryId"),
134
132
  prop: "categoryId"
135
133
  }, {
@@ -137,7 +135,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
137
135
  n(G, {
138
136
  modelValue: i.value.categoryId,
139
137
  "onUpdate:modelValue": e[0] || (e[0] = (l) => i.value.categoryId = l),
140
- data: o(C).materialCategoryBizDict.values,
138
+ data: o(g).materialCategoryBizDict.values,
141
139
  filterable: "",
142
140
  clearable: "",
143
141
  "check-strictly": "",
@@ -153,7 +151,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
153
151
  }),
154
152
  n(y, { span: 6 }, {
155
153
  default: a(() => [
156
- n(w, {
154
+ n(k, {
157
155
  label: t.$t("materialInfo.materialCode"),
158
156
  prop: "likeMaterialCode"
159
157
  }, {
@@ -162,7 +160,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
162
160
  modelValue: i.value.likeMaterialCode,
163
161
  "onUpdate:modelValue": e[1] || (e[1] = (l) => i.value.likeMaterialCode = l),
164
162
  placeholder: t.$t("materialInfo.materialCodeRequired"),
165
- onKeyup: e[2] || (e[2] = P((l) => o(r).handleQuery(), ["enter"])),
163
+ onKeyup: e[2] || (e[2] = S((l) => o(r).handleQuery(), ["enter"])),
166
164
  class: "!w-[203px]"
167
165
  }, null, 8, ["modelValue", "placeholder"])
168
166
  ]),
@@ -173,7 +171,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
173
171
  }),
174
172
  n(y, { span: 6 }, {
175
173
  default: a(() => [
176
- n(w, {
174
+ n(k, {
177
175
  label: t.$t("materialInfo.materialName"),
178
176
  prop: "likeMaterialName"
179
177
  }, {
@@ -182,7 +180,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
182
180
  modelValue: i.value.likeMaterialName,
183
181
  "onUpdate:modelValue": e[3] || (e[3] = (l) => i.value.likeMaterialName = l),
184
182
  placeholder: t.$t("materialInfo.materialNameRequired"),
185
- onKeyup: e[4] || (e[4] = P((l) => o(r).handleQuery(), ["enter"])),
183
+ onKeyup: e[4] || (e[4] = S((l) => o(r).handleQuery(), ["enter"])),
186
184
  class: "!w-[203px]"
187
185
  }, null, 8, ["modelValue", "placeholder"])
188
186
  ]),
@@ -193,7 +191,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
193
191
  }),
194
192
  n(y, { span: 6 }, {
195
193
  default: a(() => [
196
- n(w, {
194
+ n(k, {
197
195
  label: t.$t("materialInfo.specInfo"),
198
196
  prop: "likeSpecInfo"
199
197
  }, {
@@ -202,7 +200,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
202
200
  modelValue: i.value.likeSpecInfo,
203
201
  "onUpdate:modelValue": e[5] || (e[5] = (l) => i.value.likeSpecInfo = l),
204
202
  placeholder: t.$t("materialInfo.specInfoRequired"),
205
- onKeyup: e[6] || (e[6] = P((l) => o(r).handleQuery(), ["enter"])),
203
+ onKeyup: e[6] || (e[6] = S((l) => o(r).handleQuery(), ["enter"])),
206
204
  class: "!w-[203px]"
207
205
  }, null, 8, ["modelValue", "placeholder"])
208
206
  ]),
@@ -214,7 +212,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
214
212
  ]),
215
213
  _: 1
216
214
  }),
217
- n(w, { class: "search-btn" }, {
215
+ n(k, { class: "search-btn" }, {
218
216
  default: a(() => [
219
217
  n(b, {
220
218
  type: "primary",
@@ -239,14 +237,14 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
239
237
  ]),
240
238
  _: 1
241
239
  }, 8, ["model"]),
242
- e[19] || (e[19] = g("div", { class: "clear" }, null, -1))
240
+ e[19] || (e[19] = w("div", { class: "clear" }, null, -1))
243
241
  ]),
244
242
  n(Y, {
245
243
  shadow: "never",
246
244
  class: "table-container"
247
245
  }, {
248
246
  header: a(() => [
249
- n(S, null, {
247
+ n(U, null, {
250
248
  default: a(() => [
251
249
  n(y, { span: 17 }, {
252
250
  default: a(() => [
@@ -283,7 +281,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
283
281
  c((d(), p(b, {
284
282
  plain: "",
285
283
  type: "primary",
286
- onClick: e[10] || (e[10] = (l) => k.value = !0)
284
+ onClick: e[10] || (e[10] = (l) => _.value = !0)
287
285
  }, {
288
286
  default: a(() => [
289
287
  f(u(t.$t("common.import")), 1)
@@ -305,8 +303,8 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
305
303
  [I, ["material:material_info:export"]]
306
304
  ]),
307
305
  n(O, {
308
- modelValue: o(_),
309
- "onUpdate:modelValue": e[12] || (e[12] = (l) => j(_) ? _.value = l : _ = l),
306
+ modelValue: o(C),
307
+ "onUpdate:modelValue": e[12] || (e[12] = (l) => j(C) ? C.value = l : C = l),
310
308
  "label-name": "mat-material-info"
311
309
  }, null, 8, ["modelValue"])
312
310
  ]),
@@ -334,21 +332,18 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
334
332
  ref: z,
335
333
  "row-key": "materialId",
336
334
  data: o(M),
337
- "table-label": o(_),
335
+ "table-label": o(C),
338
336
  onSelectionChange: L,
339
337
  onSortChange: Q
340
338
  }, {
341
339
  categoryId: a((l) => [
342
- g("span", null, u(o(C).materialCategoryBizDict.getValue(l.data.row.categoryId)), 1)
343
- ]),
344
- unitPrice: a((l) => [
345
- g("span", null, u(l.data.row.unitPrice | 0) + "元 ", 1)
340
+ w("span", null, u(o(g).materialCategoryBizDict.getValue(l.data.row.categoryId)), 1)
346
341
  ]),
347
342
  plannerId: a((l) => [
348
- g("span", null, u(o(C).userDict.getValue(l.data.row.plannerId)), 1)
343
+ w("span", null, u(o(g).userDict.getValue(l.data.row.plannerId)), 1)
349
344
  ]),
350
345
  operatorId: a((l) => [
351
- g("span", null, u(o(C).userDict.getValue(l.data.row.operatorId)), 1)
346
+ w("span", null, u(o(g).userDict.getValue(l.data.row.operatorId)), 1)
352
347
  ]),
353
348
  operation: a((l) => [
354
349
  c((d(), N("span", {
@@ -356,7 +351,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
356
351
  onClick: (ee) => K(l.data.row)
357
352
  }, [
358
353
  f(u(t.$t("common.edit")), 1)
359
- ], 8, ue)), [
354
+ ], 8, de)), [
360
355
  [I, ["material:material_info:update"]]
361
356
  ]),
362
357
  c((d(), N("span", {
@@ -364,7 +359,7 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
364
359
  onClick: (ee) => o(r).deleteRecord(l.data.row)
365
360
  }, [
366
361
  f(u(t.$t("common.delete")), 1)
367
- ], 8, de)), [
362
+ ], 8, ue)), [
368
363
  [I, ["material:material_info:delete"]]
369
364
  ])
370
365
  ]),
@@ -384,9 +379,9 @@ const ie = { class: "app-container" }, me = { class: "search-container" }, ue =
384
379
  onRefresh: A,
385
380
  width: "900px"
386
381
  }, null, 8, ["modelValue", "title", "entity-key"])) : R("", !0),
387
- k.value ? (d(), p(Z, {
382
+ _.value ? (d(), p(Z, {
388
383
  key: 1,
389
- "upload-visible": k.value,
384
+ "upload-visible": _.value,
390
385
  "template-title": t.$t("sysUser.templateDownload"),
391
386
  onTemplateDown: e[18] || (e[18] = (l) => o(r).downloadTemplate(o(v)("materialInfo.name"))),
392
387
  onImportEvents: H,