sooyie-material 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,8 +1,8 @@
1
1
  import { defineComponent as x, ref as V, reactive as U, onActivated as ee, resolveComponent as m, resolveDirective as le, createElementBlock as N, openBlock as d, createElementVNode as _, createVNode as o, createBlock as f, createCommentVNode as R, withCtx as a, unref as n, withKeys as P, createTextVNode as p, toDisplayString as u, withDirectives as I, isRef as T } from "vue";
2
2
  import { useTableHooks as te } from "jmash-core";
3
3
  import { useI18n as ae } from "vue-i18n";
4
- import { m as oe, _ as ne } from "./edit.vue_vue_type_script_setup_true_lang-Dx7mFloi.mjs";
5
- import { D as w } from "./index-YdYarUAc.mjs";
4
+ import { D as w, a as oe } from "./index-CTDcKLu0.mjs";
5
+ import { _ as ne } from "./edit.vue_vue_type_script_setup_true_lang-8_PSljc8.mjs";
6
6
  const re = { class: "app-container" }, ie = { class: "search-container" }, me = ["onClick"], ue = ["onClick"], ye = /* @__PURE__ */ x({
7
7
  __name: "index",
8
8
  setup(de) {
@@ -81,19 +81,19 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
81
81
  visible: !1
82
82
  }), C = V(!1);
83
83
  let h = U({});
84
- function B() {
84
+ function M() {
85
85
  h = U({}), s.value.title = c("common.add"), s.value.visible = !0;
86
86
  }
87
- function K(t) {
87
+ function B(t) {
88
88
  h.materialId = t.materialId, s.value.title = c("common.edit"), s.value.visible = !0;
89
89
  }
90
- function L(t) {
90
+ function K(t) {
91
91
  r.selectionRows.value = t;
92
92
  }
93
- function Q(t) {
93
+ function L(t) {
94
94
  r.handleSort(t.prop, t.order);
95
95
  }
96
- function M(t) {
96
+ function Q(t) {
97
97
  t && r.getList();
98
98
  }
99
99
  function A() {
@@ -167,12 +167,12 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
167
167
  default: a(() => [
168
168
  o(k, {
169
169
  label: t.$t("materialInfo.materialName"),
170
- prop: "likeCategoryName"
170
+ prop: "likeMaterialName"
171
171
  }, {
172
172
  default: a(() => [
173
173
  o(D, {
174
- modelValue: i.value.likeCategoryName,
175
- "onUpdate:modelValue": e[3] || (e[3] = (l) => i.value.likeCategoryName = l),
174
+ modelValue: i.value.likeMaterialName,
175
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => i.value.likeMaterialName = l),
176
176
  placeholder: t.$t("materialInfo.materialNameRequired"),
177
177
  onKeyup: e[4] || (e[4] = P((l) => n(r).handleQuery(), ["enter"])),
178
178
  class: "!w-[203px]"
@@ -244,7 +244,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
244
244
  default: a(() => [
245
245
  I((d(), f(y, {
246
246
  type: "primary",
247
- onClick: B
247
+ onClick: M
248
248
  }, {
249
249
  default: a(() => [
250
250
  p(u(t.$t("common.add")), 1)
@@ -328,8 +328,8 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
328
328
  "list-loading": n(q),
329
329
  data: n(E),
330
330
  "table-label": n(g),
331
- onSelectionChange: L,
332
- onSortChange: Q
331
+ onSelectionChange: K,
332
+ onSortChange: L
333
333
  }, {
334
334
  categoryId: a((l) => [
335
335
  _("span", null, u(n(w).materialCategoryBizDict.getValue(l.data.row.categoryId)), 1)
@@ -343,7 +343,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
343
343
  operation: a((l) => [
344
344
  I((d(), N("span", {
345
345
  class: "el-button-color",
346
- onClick: (Z) => K(l.data.row)
346
+ onClick: (Z) => B(l.data.row)
347
347
  }, [
348
348
  p(u(t.$t("common.edit")), 1)
349
349
  ], 8, me)), [
@@ -369,7 +369,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
369
369
  "onUpdate:modelValue": e[17] || (e[17] = (l) => s.value.visible = l),
370
370
  title: s.value.title,
371
371
  "entity-key": n(h),
372
- onRefresh: M,
372
+ onRefresh: Q,
373
373
  width: "900px"
374
374
  }, null, 8, ["modelValue", "title", "entity-key"])) : R("", !0),
375
375
  C.value ? (d(), f(Y, {
package/dist/index.mjs CHANGED
@@ -1,68 +1,7 @@
1
- import { deepMerge as n, addViteMenus as i, i18n as r } from "jmash-core";
2
- const o = {}, l = {
3
- // 出入库明细
4
- inventoryDetail: {
5
- name: "出入库明细",
6
- tenantId: "租户ID",
7
- detailId: "明细ID",
8
- taskId: "任务ID",
9
- inventoryId: "库存ID",
10
- applyId: "物料申请ID",
11
- deptId: "出入部门ID",
12
- inventoryType: "库存类型(入库、出库、归还)",
13
- quantity: "出入数量",
14
- amount: "出入金额"
15
- },
16
- // 材料分类
17
- materialCategory: {
18
- categoryName: "分类名称",
19
- parentId: "上级分类",
20
- orderBy: "排序",
21
- note: "备注",
22
- categoryNameRequired: "请输入分类名称",
23
- parentIdRequired: "请选择上级分类",
24
- noteRequired: "请输入备注"
25
- },
26
- // 材料信息
27
- materialInfo: {
28
- name: "材料信息",
29
- categoryId: "材料分类",
30
- materialCode: "材料编码",
31
- materialName: "材料名称",
32
- specInfo: "规格型号",
33
- unit: "计量单位",
34
- unitPrice: "单价",
35
- plannerId: "计划员",
36
- categoryIdRequired: "请选择材料分类",
37
- materialCodeRequired: "请输入材料编码",
38
- materialNameRequired: "请输入材料名称",
39
- specInfoRequired: "请输入规格型号",
40
- unitRequired: "请输入计量单位",
41
- unitPriceRequired: "请输入单价",
42
- plannerIdRequired: "请选择计划员"
43
- },
44
- // 材料库存信息
45
- materialInventory: {
46
- name: "材料库存信息",
47
- tenantId: "租户ID",
48
- inventoryId: "库存ID",
49
- materialId: "材料ID",
50
- deptId: "部门ID",
51
- parentId: "上级部门",
52
- stock: "当前库存"
53
- }
54
- };
55
- function d(e) {
56
- let a = e.global.getLocaleMessage("zh-cn");
57
- a = n(a, l);
58
- let t = e.global.getLocaleMessage("en");
59
- t = n(t, o), e.global.setLocaleMessage("zh-cn", a), e.global.setLocaleMessage("en", t);
60
- }
61
- const m = /* @__PURE__ */ Object.assign({ "./views/mat-material-category/edit.vue": () => import("./edit-BwUVt41m.mjs"), "./views/mat-material-category/index.vue": () => import("./index-Mo5kukd_.mjs"), "./views/mat-material-info/edit.vue": () => import("./edit-DJxSeb24.mjs"), "./views/mat-material-info/index.vue": () => import("./index-CW8xN0Yq.mjs") }), s = {
62
- install(e) {
63
- i(m, 7), d(r);
64
- }
65
- };
1
+ import "jmash-core";
2
+ import { M as r, b as e, a as o } from "./index-CTDcKLu0.mjs";
66
3
  export {
67
- s as default
4
+ r as MaterialCategoryBizLayDict,
5
+ e as default,
6
+ o as materialInfoApi
68
7
  };
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .material-modal{width:100%;display:flex}.material-modal-left{width:20%;border-right:1px solid #d1d5db}.material-modal-right{padding-left:3%;width:80%}.material-modal-search{margin-bottom:20px;width:100%}.margin-right{margin-right:20px}.pagination-container{margin-top:20px;display:flex}
@@ -3,7 +3,7 @@ export interface MaterialInfoApi extends EntityApi {
3
3
  }
4
4
  export interface MaterialInfoReq extends EntityReq {
5
5
  categoryId?: string;
6
- likeCategoryName?: string;
6
+ likeMaterialName?: string;
7
7
  likeMaterialCode?: string;
8
8
  likeSpecInfo?: string;
9
9
  }
@@ -0,0 +1,11 @@
1
+ type __VLS_PublicProps = {
2
+ modelValue?: boolean;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ selectMaterial: (...args: any[]) => void;
6
+ "update:modelValue": (value: boolean | undefined) => void;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
8
+ onSelectMaterial?: ((...args: any[]) => any) | undefined;
9
+ "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -1,4 +1,8 @@
1
1
  import type { App } from "vue";
2
+ export { materialInfoApi } from "./api/mat-material-info/index";
3
+ export type { MaterialInfoReq, MaterialInfoModel, } from "./api/mat-material-info/types";
4
+ export { MaterialCategoryBizLayDict } from "./api/dict";
5
+ import "./styles/index.scss";
2
6
  declare const material: {
3
7
  install(app: App): void;
4
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sooyie-material",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -11,13 +11,13 @@
11
11
  "peerDependencies": {
12
12
  "axios": "^1.9.0",
13
13
  "element-plus": "^2.9.10",
14
+ "jmash-core": "^0.1.13",
15
+ "jmash-dict": "^0.1.4",
16
+ "jmash-rbac": "^0.1.21",
14
17
  "pinia": "^2.3.1",
15
18
  "vue": "^3.5.13",
16
19
  "vue-i18n": "^9.14.4",
17
- "vue-router": "^4.5.1",
18
- "jmash-core": "^0.1.13",
19
- "jmash-dict": "^0.1.4",
20
- "jmash-rbac": "^0.1.21"
20
+ "vue-router": "^4.5.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@eslint/js": "^9.14.0",
@@ -39,9 +39,10 @@
39
39
  "vue-tsc": "^2.1.10"
40
40
  },
41
41
  "dependencies": {
42
+ "@element-plus/icons-vue": "^2.3.2",
43
+ "@vueuse/core": "^10.9.0",
42
44
  "file-saver": "^2.0.5",
43
45
  "nprogress": "^0.2.0",
44
- "@vueuse/core": "^10.9.0",
45
46
  "qs": "^6.14.0"
46
47
  },
47
48
  "scripts": {