sooyie-material 0.0.9 → 0.0.11
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-Bw0KffqZ.mjs → edit-CDPUpoeR.mjs} +1 -1
- package/dist/{edit-CHw2AMaE.mjs → edit-DnKd3ld3.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CP8YDK0i.mjs → edit.vue_vue_type_script_setup_true_lang-9LPGKtx2.mjs} +11 -11
- package/dist/{edit.vue_vue_type_script_setup_true_lang-3Fr5DcBF.mjs → edit.vue_vue_type_script_setup_true_lang-vP2kWpiZ.mjs} +10 -10
- package/dist/{index-B2kdf457.mjs → index-8YPwR-kl.mjs} +18 -18
- package/dist/{index-v9MsYTcw.mjs → index-CvI2dk4T.mjs} +206 -179
- package/dist/index-DUCAqPR5.mjs +2052 -0
- package/dist/index.mjs +1 -1
- package/dist/replaceDialog-CTjmDwl7.mjs +4 -0
- package/dist/replaceDialog.vue_vue_type_script_setup_true_lang-BScjTi3o.mjs +163 -0
- package/package.json +5 -5
- package/dist/index-a4l0CC2S.mjs +0 -1906
- package/dts/src/App.vue.d.ts +0 -2
- package/dts/src/api/dict.d.ts +0 -9
- package/dts/src/api/index.d.ts +0 -5
- package/dts/src/api/mat-material-category/index.d.ts +0 -50
- package/dts/src/api/mat-material-category/types.d.ts +0 -41
- package/dts/src/api/mat-material-info/index.d.ts +0 -71
- package/dts/src/api/mat-material-info/types.d.ts +0 -68
- package/dts/src/components/MaterialModalSelector/index.vue.d.ts +0 -11
- package/dts/src/constant.d.ts +0 -5
- package/dts/src/index.d.ts +0 -9
- package/dts/src/lang/index.d.ts +0 -1
- package/dts/src/lang/material/en.d.ts +0 -2
- package/dts/src/lang/material/zh-cn.d.ts +0 -52
- package/dts/src/main.d.ts +0 -4
- package/dts/src/permission.d.ts +0 -1
- package/dts/src/views/mat-material-category/edit.vue.d.ts +0 -28
- package/dts/src/views/mat-material-category/index.vue.d.ts +0 -2
- package/dts/src/views/mat-material-info/edit.vue.d.ts +0 -28
- package/dts/src/views/mat-material-info/index.vue.d.ts +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as j,
|
|
1
|
+
import { defineComponent as j, ref as C, reactive as v, useModel as F, resolveComponent as i, openBlock as K, createBlock as O, withCtx as m, createVNode as o, unref as n, createElementVNode as S, createTextVNode as h, toDisplayString as N, mergeModels 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-
|
|
4
|
+
import { D as w, m as c } from "./index-DUCAqPR5.mjs";
|
|
5
5
|
const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
|
|
6
6
|
__name: "edit",
|
|
7
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ k({
|
|
8
8
|
entityKey: {
|
|
9
9
|
type: Object,
|
|
10
10
|
default: () => {
|
|
@@ -14,15 +14,15 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
|
|
|
14
14
|
modelValue: { type: Boolean },
|
|
15
15
|
modelModifiers: {}
|
|
16
16
|
}),
|
|
17
|
-
emits: /* @__PURE__ */
|
|
17
|
+
emits: /* @__PURE__ */ k(["refresh"], ["update:modelValue"]),
|
|
18
18
|
setup(p, { emit: $ }) {
|
|
19
|
-
const { t: d } = z(), f =
|
|
19
|
+
const { t: d } = z(), f = C();
|
|
20
20
|
w.materialCategoryBizDict.useValues();
|
|
21
|
-
let t =
|
|
21
|
+
let t = v({
|
|
22
22
|
requestId: Math.random() * 10 + "",
|
|
23
23
|
updateMask: "categoryName,parentId,note"
|
|
24
24
|
});
|
|
25
|
-
const q =
|
|
25
|
+
const q = v({
|
|
26
26
|
categoryName: [
|
|
27
27
|
{
|
|
28
28
|
required: !0,
|
|
@@ -30,7 +30,7 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
|
|
|
30
30
|
trigger: "blur"
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
|
-
}), r = F(p, "modelValue"), y = p, g = $, B = Object.keys(y.entityKey), b =
|
|
33
|
+
}), r = F(p, "modelValue"), y = p, g = $, B = Object.keys(y.entityKey), b = C(B.length >= 1);
|
|
34
34
|
b.value && c.findById(y.entityKey).then(({ data: e }) => {
|
|
35
35
|
Object.assign(t, e);
|
|
36
36
|
});
|
|
@@ -55,7 +55,7 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
|
|
|
55
55
|
}
|
|
56
56
|
return (e, a) => {
|
|
57
57
|
const l = i("el-input"), u = i("el-form-item"), M = i("el-tree-select"), R = i("el-form"), _ = i("el-button"), U = i("el-dialog");
|
|
58
|
-
return
|
|
58
|
+
return K(), O(U, {
|
|
59
59
|
modelValue: r.value,
|
|
60
60
|
"onUpdate:modelValue": a[3] || (a[3] = (s) => r.value = s),
|
|
61
61
|
onClose: V
|
|
@@ -64,7 +64,7 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
|
|
|
64
64
|
S("div", E, [
|
|
65
65
|
o(_, { onClick: V }, {
|
|
66
66
|
default: m(() => [
|
|
67
|
-
N(
|
|
67
|
+
h(N(e.$t("common.cancel")), 1)
|
|
68
68
|
]),
|
|
69
69
|
_: 1
|
|
70
70
|
}),
|
|
@@ -73,7 +73,7 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
|
|
|
73
73
|
onClick: D
|
|
74
74
|
}, {
|
|
75
75
|
default: m(() => [
|
|
76
|
-
N(
|
|
76
|
+
h(N(e.$t("common.confirm")), 1)
|
|
77
77
|
]),
|
|
78
78
|
_: 1
|
|
79
79
|
})
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as Z,
|
|
1
|
+
import { defineComponent as Z, ref as c, reactive as F, useModel as x, onMounted as ee, resolveComponent as d, openBlock as p, createBlock as I, withCtx as o, createVNode as t, unref as n, createElementBlock as h, Fragment as q, renderList as $, createElementVNode as j, createTextVNode as E, toDisplayString as K, mergeModels as O } from "vue";
|
|
2
2
|
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-
|
|
6
|
+
import { D as z, a as g } from "./index-DUCAqPR5.mjs";
|
|
7
7
|
const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
|
|
8
8
|
__name: "edit",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ O({
|
|
10
10
|
entityKey: {
|
|
11
11
|
type: Object,
|
|
12
12
|
default: () => {
|
|
@@ -16,16 +16,16 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
|
|
|
16
16
|
modelValue: { type: Boolean },
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
|
-
emits: /* @__PURE__ */
|
|
19
|
+
emits: /* @__PURE__ */ O(["refresh"], ["update:modelValue"]),
|
|
20
20
|
setup(w, { emit: A }) {
|
|
21
21
|
const { t: m } = le();
|
|
22
22
|
z.materialCategoryBizDict.useValues();
|
|
23
23
|
const k = c(), b = c([]);
|
|
24
|
-
let r =
|
|
24
|
+
let r = F({
|
|
25
25
|
requestId: Math.random() * 10 + "",
|
|
26
26
|
updateMask: "categoryId,materialCode,materialName,specInfo,unit,unitPrice,plannerId,operatorId"
|
|
27
27
|
});
|
|
28
|
-
const J =
|
|
28
|
+
const J = F({
|
|
29
29
|
materialCode: [
|
|
30
30
|
{
|
|
31
31
|
required: !0,
|
|
@@ -120,10 +120,10 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
|
|
|
120
120
|
onClose: D
|
|
121
121
|
}, {
|
|
122
122
|
footer: o(() => [
|
|
123
|
-
|
|
123
|
+
j("div", ae, [
|
|
124
124
|
t(L, { onClick: D }, {
|
|
125
125
|
default: o(() => [
|
|
126
|
-
K(
|
|
126
|
+
E(K(e.$t("common.cancel")), 1)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
129
129
|
}),
|
|
@@ -132,7 +132,7 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
|
|
|
132
132
|
onClick: H
|
|
133
133
|
}, {
|
|
134
134
|
default: o(() => [
|
|
135
|
-
K(
|
|
135
|
+
E(K(e.$t("common.confirm")), 1)
|
|
136
136
|
]),
|
|
137
137
|
_: 1
|
|
138
138
|
})
|
|
@@ -284,7 +284,7 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
|
|
|
284
284
|
class: "w-full"
|
|
285
285
|
}, {
|
|
286
286
|
suffix: o(() => [...l[9] || (l[9] = [
|
|
287
|
-
|
|
287
|
+
j("span", null, "元", -1)
|
|
288
288
|
])]),
|
|
289
289
|
_: 1
|
|
290
290
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as W, ref as w, reactive as R, onActivated as X, resolveComponent as r, resolveDirective as D,
|
|
1
|
+
import { defineComponent as W, ref as w, reactive as R, onActivated as X, resolveComponent as r, resolveDirective as D, openBlock as d, createElementBlock as $, createElementVNode as Y, createVNode as l, withCtx as o, withKeys as Z, unref as n, createTextVNode as u, toDisplayString as c, withDirectives as _, createBlock as f, isRef as S, createCommentVNode 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-
|
|
5
|
-
import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as oe, m as le } from "./index-DUCAqPR5.mjs";
|
|
5
|
+
import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-9LPGKtx2.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) {
|
|
@@ -143,7 +143,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
|
|
|
143
143
|
default: o(() => [
|
|
144
144
|
l(v, { span: 17 }, {
|
|
145
145
|
default: o(() => [
|
|
146
|
-
|
|
146
|
+
_((d(), f(b, {
|
|
147
147
|
type: "primary",
|
|
148
148
|
onClick: L
|
|
149
149
|
}, {
|
|
@@ -154,7 +154,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
|
|
|
154
154
|
})), [
|
|
155
155
|
[C, ["material:material_category:add"]]
|
|
156
156
|
]),
|
|
157
|
-
|
|
157
|
+
_((d(), f(b, {
|
|
158
158
|
type: "primary",
|
|
159
159
|
onClick: t[4] || (t[4] = (e) => n(i).deleteRecords())
|
|
160
160
|
}, {
|
|
@@ -175,7 +175,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
|
|
|
175
175
|
default: o(() => [
|
|
176
176
|
l(F, {
|
|
177
177
|
modelValue: n(p),
|
|
178
|
-
"onUpdate:modelValue": t[5] || (t[5] = (e) =>
|
|
178
|
+
"onUpdate:modelValue": t[5] || (t[5] = (e) => S(p) ? p.value = e : p = e),
|
|
179
179
|
"label-name": "mat-material-category"
|
|
180
180
|
}, null, 8, ["modelValue"])
|
|
181
181
|
]),
|
|
@@ -186,19 +186,19 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
|
|
|
186
186
|
})
|
|
187
187
|
]),
|
|
188
188
|
footer: o(() => [
|
|
189
|
-
n(g) > 0 ? (d(),
|
|
189
|
+
n(g) > 0 ? (d(), f(G, {
|
|
190
190
|
key: 0,
|
|
191
191
|
total: n(g),
|
|
192
|
-
"onUpdate:total": t[6] || (t[6] = (e) =>
|
|
192
|
+
"onUpdate:total": t[6] || (t[6] = (e) => S(g) ? g.value = e : null),
|
|
193
193
|
"current-page": m.value.curPage,
|
|
194
194
|
"onUpdate:currentPage": t[7] || (t[7] = (e) => m.value.curPage = e),
|
|
195
195
|
"page-size": m.value.pageSize,
|
|
196
196
|
"onUpdate:pageSize": t[8] || (t[8] = (e) => m.value.pageSize = e),
|
|
197
197
|
onPagination: t[9] || (t[9] = (e) => n(i).getList())
|
|
198
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
198
|
+
}, null, 8, ["total", "current-page", "page-size"])) : z("", !0)
|
|
199
199
|
]),
|
|
200
200
|
default: o(() => [
|
|
201
|
-
|
|
201
|
+
_((d(), f(x, {
|
|
202
202
|
ref_key: "multipleTableRef",
|
|
203
203
|
ref: T,
|
|
204
204
|
"row-key": "categoryId",
|
|
@@ -215,8 +215,8 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
|
|
|
215
215
|
default: o(() => [
|
|
216
216
|
l(H)
|
|
217
217
|
]),
|
|
218
|
-
_:
|
|
219
|
-
},
|
|
218
|
+
_: 1
|
|
219
|
+
}, 8, ["onClick"]),
|
|
220
220
|
l(B, {
|
|
221
221
|
size: "16",
|
|
222
222
|
onClick: (h) => n(i).handleMove(e.data.row, !0)
|
|
@@ -224,11 +224,11 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
|
|
|
224
224
|
default: o(() => [
|
|
225
225
|
l(M)
|
|
226
226
|
]),
|
|
227
|
-
_:
|
|
228
|
-
},
|
|
227
|
+
_: 1
|
|
228
|
+
}, 8, ["onClick"])
|
|
229
229
|
]),
|
|
230
230
|
operation: o((e) => [
|
|
231
|
-
|
|
231
|
+
_((d(), $("span", {
|
|
232
232
|
class: "el-button-color",
|
|
233
233
|
onClick: (h) => q(e.data.row)
|
|
234
234
|
}, [
|
|
@@ -236,7 +236,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
|
|
|
236
236
|
], 8, ie)), [
|
|
237
237
|
[C, ["material:material_category:update"]]
|
|
238
238
|
]),
|
|
239
|
-
|
|
239
|
+
_((d(), $("span", {
|
|
240
240
|
class: "el-button-color dropdown-left",
|
|
241
241
|
onClick: (h) => n(i).deleteRecord(e.data.row)
|
|
242
242
|
}, [
|
|
@@ -252,7 +252,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
|
|
|
252
252
|
]),
|
|
253
253
|
_: 1
|
|
254
254
|
}),
|
|
255
|
-
s.value.visible ? (d(),
|
|
255
|
+
s.value.visible ? (d(), f(ae, {
|
|
256
256
|
key: 0,
|
|
257
257
|
modelValue: s.value.visible,
|
|
258
258
|
"onUpdate:modelValue": t[10] || (t[10] = (e) => s.value.visible = e),
|
|
@@ -260,7 +260,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
|
|
|
260
260
|
"entity-key": n(k),
|
|
261
261
|
onRefresh: E,
|
|
262
262
|
width: "600px"
|
|
263
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) :
|
|
263
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : z("", !0)
|
|
264
264
|
]);
|
|
265
265
|
};
|
|
266
266
|
}
|