sooyie-material 0.0.8 → 0.0.10
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-B3SY6MdL.mjs → edit-BqKgjm5-.mjs} +1 -1
- package/dist/{edit-BTKEMxKO.mjs → edit-Cjoo0y3D.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DicqttOn.mjs → edit.vue_vue_type_script_setup_true_lang-48wgg0O-.mjs} +1 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BGu29E2H.mjs → edit.vue_vue_type_script_setup_true_lang-BQXsxv96.mjs} +1 -1
- package/dist/{index-BUoZw8aX.mjs → index-BwJT0Wij.mjs} +2 -2
- package/dist/index-DKIgvAzj.mjs +504 -0
- package/dist/{index-ZJYZNfv5.mjs → index-wGQ8wE-2.mjs} +501 -488
- package/dist/index.mjs +1 -1
- package/dist/replaceDialog-Cix0NImM.mjs +4 -0
- package/dist/replaceDialog.vue_vue_type_script_setup_true_lang-Becrpd5H.mjs +179 -0
- package/package.json +2 -2
- package/dist/index-BjERJA1l.mjs +0 -396
- 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
|
@@ -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-
|
|
6
|
+
import { D as z, a as g } from "./index-wGQ8wE-2.mjs";
|
|
7
7
|
const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ F({
|
|
@@ -305,7 +305,6 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
|
|
|
305
305
|
modelValue: n(r).plannerId,
|
|
306
306
|
"onUpdate:modelValue": l[6] || (l[6] = (a) => n(r).plannerId = a),
|
|
307
307
|
placeholder: e.$t("materialInfo.plannerIdRequired"),
|
|
308
|
-
remote: "",
|
|
309
308
|
clearable: "",
|
|
310
309
|
filterable: "",
|
|
311
310
|
"filter-method": U,
|
|
@@ -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-
|
|
4
|
+
import { D as w, m as c } from "./index-wGQ8wE-2.mjs";
|
|
5
5
|
const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
|
|
6
6
|
__name: "edit",
|
|
7
7
|
props: /* @__PURE__ */ C({
|
|
@@ -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-
|
|
5
|
-
import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as oe, m as le } from "./index-wGQ8wE-2.mjs";
|
|
5
|
+
import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-BQXsxv96.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) {
|
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
import { defineComponent as fe, ref as y, reactive as A, onActivated as ce, resolveComponent as d, resolveDirective as F, createElementBlock as w, openBlock as u, createElementVNode as R, createVNode as o, createBlock as s, createCommentVNode as D, withCtx as t, unref as n, withKeys as q, Fragment as H, renderList as J, createTextVNode as f, toDisplayString as m, withDirectives as g, isRef as G } from "vue";
|
|
2
|
+
import { useTableHooks as ve } from "jmash-core";
|
|
3
|
+
import { userApi as Ie } from "jmash-rbac";
|
|
4
|
+
import { useI18n as be } from "vue-i18n";
|
|
5
|
+
import { D as k, a as ye } from "./index-wGQ8wE-2.mjs";
|
|
6
|
+
import { _ as ge } from "./edit.vue_vue_type_script_setup_true_lang-48wgg0O-.mjs";
|
|
7
|
+
import { _ as _e } from "./replaceDialog.vue_vue_type_script_setup_true_lang-Becrpd5H.mjs";
|
|
8
|
+
const ke = { class: "app-container" }, Ce = { class: "search-container" }, Ve = ["onClick"], $e = ["onClick"], Pe = /* @__PURE__ */ fe({
|
|
9
|
+
__name: "index",
|
|
10
|
+
setup(we) {
|
|
11
|
+
const { t: v } = be();
|
|
12
|
+
k.materialCategoryBizDict.useValues(), k.userDict.useValues();
|
|
13
|
+
const r = y({}), {
|
|
14
|
+
tableHooks: i,
|
|
15
|
+
multipleTableRef: M,
|
|
16
|
+
queryFormRef: O,
|
|
17
|
+
listLoading: W,
|
|
18
|
+
tableData: X,
|
|
19
|
+
total: h
|
|
20
|
+
} = ve(v, ye, r);
|
|
21
|
+
let C = y([
|
|
22
|
+
{
|
|
23
|
+
label: "materialInfo.categoryId",
|
|
24
|
+
prop: "categoryId",
|
|
25
|
+
width: "110",
|
|
26
|
+
slotName: "categoryId",
|
|
27
|
+
columnType: "slot",
|
|
28
|
+
isColumn: !0
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: "materialInfo.materialCode",
|
|
32
|
+
prop: "materialCode",
|
|
33
|
+
width: "110",
|
|
34
|
+
sortable: "custom",
|
|
35
|
+
isColumn: !0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "materialInfo.materialName",
|
|
39
|
+
prop: "materialName",
|
|
40
|
+
width: "200",
|
|
41
|
+
isColumn: !0
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: "materialInfo.specInfo",
|
|
45
|
+
prop: "specInfo",
|
|
46
|
+
isColumn: !0
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: "materialInfo.unit",
|
|
50
|
+
prop: "unit",
|
|
51
|
+
width: "110",
|
|
52
|
+
sortable: "custom",
|
|
53
|
+
isColumn: !0
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "materialInfo.unitPrice",
|
|
57
|
+
prop: "unitPrice",
|
|
58
|
+
width: "120",
|
|
59
|
+
sortable: "custom",
|
|
60
|
+
isColumn: !0
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "materialInfo.plannerId",
|
|
64
|
+
prop: "plannerId",
|
|
65
|
+
width: "90",
|
|
66
|
+
slotName: "plannerId",
|
|
67
|
+
columnType: "slot",
|
|
68
|
+
isColumn: !0
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: "materialInfo.operatorId",
|
|
72
|
+
prop: "operatorId",
|
|
73
|
+
width: "90",
|
|
74
|
+
slotName: "operatorId",
|
|
75
|
+
columnType: "slot",
|
|
76
|
+
isColumn: !0
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: "common.operate",
|
|
80
|
+
width: "130",
|
|
81
|
+
slotName: "operation",
|
|
82
|
+
columnType: "slot",
|
|
83
|
+
fixed: "right",
|
|
84
|
+
isColumn: !0
|
|
85
|
+
}
|
|
86
|
+
]);
|
|
87
|
+
const N = y([]), c = y({
|
|
88
|
+
title: v("common.edit"),
|
|
89
|
+
visible: !1
|
|
90
|
+
}), V = y({
|
|
91
|
+
title: v("materialInfo.replace"),
|
|
92
|
+
visible: !1
|
|
93
|
+
}), $ = y(!1);
|
|
94
|
+
let U = A({});
|
|
95
|
+
function Y() {
|
|
96
|
+
U = A({}), c.value.title = v("common.add"), c.value.visible = !0;
|
|
97
|
+
}
|
|
98
|
+
function Z() {
|
|
99
|
+
V.value.visible = !0;
|
|
100
|
+
}
|
|
101
|
+
function x(a) {
|
|
102
|
+
U.materialId = a.materialId, c.value.title = v("common.edit"), c.value.visible = !0;
|
|
103
|
+
}
|
|
104
|
+
const S = y([]);
|
|
105
|
+
function ee(a) {
|
|
106
|
+
i.selectionRows.value = a, S.value = a.map((l) => l.materialId);
|
|
107
|
+
}
|
|
108
|
+
function le(a) {
|
|
109
|
+
i.handleSort(a.prop, a.order);
|
|
110
|
+
}
|
|
111
|
+
function j(a) {
|
|
112
|
+
a && (M.value.clearSelection(), S.value = [], i.getList());
|
|
113
|
+
}
|
|
114
|
+
function ae() {
|
|
115
|
+
$.value = !1;
|
|
116
|
+
}
|
|
117
|
+
function te(a) {
|
|
118
|
+
a.updateMask = "", i.importExcel(a).then((l) => {
|
|
119
|
+
$.value = !1;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
const z = (a = "") => {
|
|
123
|
+
console.log(a), Ie.findPage({ loginName: a }).then(({ data: l }) => {
|
|
124
|
+
N.value = l.results;
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
let L;
|
|
128
|
+
const E = (a) => {
|
|
129
|
+
clearTimeout(L), L = setTimeout(() => {
|
|
130
|
+
z(a);
|
|
131
|
+
}, 300);
|
|
132
|
+
}, B = (a) => a.realName || a.nickName;
|
|
133
|
+
return ce(() => {
|
|
134
|
+
i.getList(), z();
|
|
135
|
+
}), (a, l) => {
|
|
136
|
+
const oe = d("el-tree-select"), I = d("el-form-item"), p = d("el-col"), T = d("el-input"), K = d("el-option"), Q = d("el-select"), P = d("el-row"), b = d("el-button"), ne = d("el-form"), re = d("jmash-column-select"), ie = d("jmash-table"), ue = d("jmash-pagination"), de = d("el-card"), me = d("jmash-import-upload"), _ = F("hasPerm"), se = F("loading");
|
|
137
|
+
return u(), w("div", ke, [
|
|
138
|
+
R("div", Ce, [
|
|
139
|
+
o(ne, {
|
|
140
|
+
ref_key: "queryFormRef",
|
|
141
|
+
ref: O,
|
|
142
|
+
model: r.value,
|
|
143
|
+
inline: !0
|
|
144
|
+
}, {
|
|
145
|
+
default: t(() => [
|
|
146
|
+
o(P, null, {
|
|
147
|
+
default: t(() => [
|
|
148
|
+
o(p, { span: 6 }, {
|
|
149
|
+
default: t(() => [
|
|
150
|
+
o(I, {
|
|
151
|
+
label: a.$t("materialInfo.categoryId"),
|
|
152
|
+
prop: "categoryId"
|
|
153
|
+
}, {
|
|
154
|
+
default: t(() => [
|
|
155
|
+
o(oe, {
|
|
156
|
+
modelValue: r.value.categoryId,
|
|
157
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => r.value.categoryId = e),
|
|
158
|
+
data: n(k).materialCategoryBizDict.values,
|
|
159
|
+
filterable: "",
|
|
160
|
+
clearable: "",
|
|
161
|
+
"check-strictly": "",
|
|
162
|
+
"render-after-expand": !1,
|
|
163
|
+
class: "w-full",
|
|
164
|
+
placeholder: a.$t("materialInfo.categoryIdRequired")
|
|
165
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["label"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}),
|
|
172
|
+
o(p, { span: 6 }, {
|
|
173
|
+
default: t(() => [
|
|
174
|
+
o(I, {
|
|
175
|
+
label: a.$t("materialInfo.materialCode"),
|
|
176
|
+
prop: "likeMaterialCode"
|
|
177
|
+
}, {
|
|
178
|
+
default: t(() => [
|
|
179
|
+
o(T, {
|
|
180
|
+
modelValue: r.value.likeMaterialCode,
|
|
181
|
+
"onUpdate:modelValue": l[1] || (l[1] = (e) => r.value.likeMaterialCode = e),
|
|
182
|
+
placeholder: a.$t("materialInfo.materialCodeRequired"),
|
|
183
|
+
onKeyup: l[2] || (l[2] = q((e) => n(i).handleQuery(), ["enter"])),
|
|
184
|
+
class: "!w-[203px]"
|
|
185
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["label"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
o(p, { span: 6 }, {
|
|
193
|
+
default: t(() => [
|
|
194
|
+
o(I, {
|
|
195
|
+
label: a.$t("materialInfo.plannerId"),
|
|
196
|
+
prop: "plannerId"
|
|
197
|
+
}, {
|
|
198
|
+
default: t(() => [
|
|
199
|
+
o(Q, {
|
|
200
|
+
modelValue: r.value.plannerId,
|
|
201
|
+
"onUpdate:modelValue": l[3] || (l[3] = (e) => r.value.plannerId = e),
|
|
202
|
+
placeholder: a.$t("materialInfo.plannerIdRequired"),
|
|
203
|
+
filterable: "",
|
|
204
|
+
"filter-method": E,
|
|
205
|
+
class: "!w-[203px]"
|
|
206
|
+
}, {
|
|
207
|
+
default: t(() => [
|
|
208
|
+
(u(!0), w(H, null, J(N.value, (e) => (u(), s(K, {
|
|
209
|
+
key: e.userId,
|
|
210
|
+
label: B(e),
|
|
211
|
+
value: e.userId
|
|
212
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}, 8, ["modelValue", "placeholder"])
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, ["label"])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}),
|
|
222
|
+
o(p, { span: 6 }, {
|
|
223
|
+
default: t(() => [
|
|
224
|
+
o(I, {
|
|
225
|
+
label: a.$t("materialInfo.operatorId"),
|
|
226
|
+
prop: "operatorId"
|
|
227
|
+
}, {
|
|
228
|
+
default: t(() => [
|
|
229
|
+
o(Q, {
|
|
230
|
+
modelValue: r.value.operatorId,
|
|
231
|
+
"onUpdate:modelValue": l[4] || (l[4] = (e) => r.value.operatorId = e),
|
|
232
|
+
placeholder: a.$t("materialInfo.operatorIdRequired"),
|
|
233
|
+
filterable: "",
|
|
234
|
+
"filter-method": E,
|
|
235
|
+
class: "!w-[203px]"
|
|
236
|
+
}, {
|
|
237
|
+
default: t(() => [
|
|
238
|
+
(u(!0), w(H, null, J(N.value, (e) => (u(), s(K, {
|
|
239
|
+
key: e.userId,
|
|
240
|
+
label: B(e),
|
|
241
|
+
value: e.userId
|
|
242
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
243
|
+
]),
|
|
244
|
+
_: 1
|
|
245
|
+
}, 8, ["modelValue", "placeholder"])
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
}, 8, ["label"])
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
})
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}),
|
|
255
|
+
o(P, null, {
|
|
256
|
+
default: t(() => [
|
|
257
|
+
o(p, { span: 6 }, {
|
|
258
|
+
default: t(() => [
|
|
259
|
+
o(I, {
|
|
260
|
+
label: a.$t("materialInfo.materialName"),
|
|
261
|
+
prop: "likeMaterialName"
|
|
262
|
+
}, {
|
|
263
|
+
default: t(() => [
|
|
264
|
+
o(T, {
|
|
265
|
+
modelValue: r.value.likeMaterialName,
|
|
266
|
+
"onUpdate:modelValue": l[5] || (l[5] = (e) => r.value.likeMaterialName = e),
|
|
267
|
+
placeholder: a.$t("materialInfo.materialNameRequired"),
|
|
268
|
+
onKeyup: l[6] || (l[6] = q((e) => n(i).handleQuery(), ["enter"])),
|
|
269
|
+
class: "!w-[203px]"
|
|
270
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, ["label"])
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
}),
|
|
277
|
+
o(p, { span: 6 }, {
|
|
278
|
+
default: t(() => [
|
|
279
|
+
o(I, {
|
|
280
|
+
label: a.$t("materialInfo.specInfo"),
|
|
281
|
+
prop: "likeSpecInfo"
|
|
282
|
+
}, {
|
|
283
|
+
default: t(() => [
|
|
284
|
+
o(T, {
|
|
285
|
+
modelValue: r.value.likeSpecInfo,
|
|
286
|
+
"onUpdate:modelValue": l[7] || (l[7] = (e) => r.value.likeSpecInfo = e),
|
|
287
|
+
placeholder: a.$t("materialInfo.specInfoRequired"),
|
|
288
|
+
onKeyup: l[8] || (l[8] = q((e) => n(i).handleQuery(), ["enter"])),
|
|
289
|
+
class: "!w-[203px]"
|
|
290
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
}, 8, ["label"])
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
}),
|
|
297
|
+
o(p, { span: 12 }, {
|
|
298
|
+
default: t(() => [
|
|
299
|
+
o(I, { class: "search-btn" }, {
|
|
300
|
+
default: t(() => [
|
|
301
|
+
o(b, {
|
|
302
|
+
type: "primary",
|
|
303
|
+
onClick: l[9] || (l[9] = (e) => n(i).handleQuery())
|
|
304
|
+
}, {
|
|
305
|
+
default: t(() => [
|
|
306
|
+
f(m(a.$t("common.search")), 1)
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}),
|
|
310
|
+
o(b, {
|
|
311
|
+
onClick: l[10] || (l[10] = (e) => n(i).resetQuery())
|
|
312
|
+
}, {
|
|
313
|
+
default: t(() => [
|
|
314
|
+
f(m(a.$t("common.reset")), 1)
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
})
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
})
|
|
321
|
+
]),
|
|
322
|
+
_: 1
|
|
323
|
+
})
|
|
324
|
+
]),
|
|
325
|
+
_: 1
|
|
326
|
+
})
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
}, 8, ["model"])
|
|
330
|
+
]),
|
|
331
|
+
o(de, {
|
|
332
|
+
shadow: "never",
|
|
333
|
+
class: "table-container"
|
|
334
|
+
}, {
|
|
335
|
+
header: t(() => [
|
|
336
|
+
o(P, null, {
|
|
337
|
+
default: t(() => [
|
|
338
|
+
o(p, { span: 17 }, {
|
|
339
|
+
default: t(() => [
|
|
340
|
+
g((u(), s(b, {
|
|
341
|
+
type: "primary",
|
|
342
|
+
onClick: Y
|
|
343
|
+
}, {
|
|
344
|
+
default: t(() => [
|
|
345
|
+
f(m(a.$t("common.add")), 1)
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
})), [
|
|
349
|
+
[_, ["material:material_info:add"]]
|
|
350
|
+
]),
|
|
351
|
+
g((u(), s(b, {
|
|
352
|
+
type: "primary",
|
|
353
|
+
onClick: l[11] || (l[11] = (e) => n(i).deleteRecords())
|
|
354
|
+
}, {
|
|
355
|
+
default: t(() => [
|
|
356
|
+
f(m(a.$t("common.batchDelete")), 1)
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
})), [
|
|
360
|
+
[_, ["material:material_info:delete"]]
|
|
361
|
+
]),
|
|
362
|
+
o(b, {
|
|
363
|
+
type: "primary",
|
|
364
|
+
onClick: Z,
|
|
365
|
+
disabled: !n(i).selectionRows.value.length
|
|
366
|
+
}, {
|
|
367
|
+
default: t(() => [
|
|
368
|
+
f(m(a.$t("materialInfo.replace")), 1)
|
|
369
|
+
]),
|
|
370
|
+
_: 1
|
|
371
|
+
}, 8, ["disabled"])
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
}),
|
|
375
|
+
o(p, {
|
|
376
|
+
span: 7,
|
|
377
|
+
class: "container-float"
|
|
378
|
+
}, {
|
|
379
|
+
default: t(() => [
|
|
380
|
+
g((u(), s(b, {
|
|
381
|
+
plain: "",
|
|
382
|
+
type: "primary",
|
|
383
|
+
onClick: l[12] || (l[12] = (e) => $.value = !0)
|
|
384
|
+
}, {
|
|
385
|
+
default: t(() => [
|
|
386
|
+
f(m(a.$t("common.import")), 1)
|
|
387
|
+
]),
|
|
388
|
+
_: 1
|
|
389
|
+
})), [
|
|
390
|
+
[_, ["material:material_info:import"]]
|
|
391
|
+
]),
|
|
392
|
+
g((u(), s(b, {
|
|
393
|
+
plain: "",
|
|
394
|
+
type: "primary",
|
|
395
|
+
onClick: l[13] || (l[13] = (e) => n(i).handleExport(n(v)("materialInfo.name")))
|
|
396
|
+
}, {
|
|
397
|
+
default: t(() => [
|
|
398
|
+
f(m(a.$t("common.export")), 1)
|
|
399
|
+
]),
|
|
400
|
+
_: 1
|
|
401
|
+
})), [
|
|
402
|
+
[_, ["material:material_info:export"]]
|
|
403
|
+
]),
|
|
404
|
+
o(re, {
|
|
405
|
+
modelValue: n(C),
|
|
406
|
+
"onUpdate:modelValue": l[14] || (l[14] = (e) => G(C) ? C.value = e : C = e),
|
|
407
|
+
"label-name": "mat-material-info"
|
|
408
|
+
}, null, 8, ["modelValue"])
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
})
|
|
412
|
+
]),
|
|
413
|
+
_: 1
|
|
414
|
+
})
|
|
415
|
+
]),
|
|
416
|
+
footer: t(() => [
|
|
417
|
+
n(h) > 0 ? (u(), s(ue, {
|
|
418
|
+
key: 0,
|
|
419
|
+
total: n(h),
|
|
420
|
+
"onUpdate:total": l[15] || (l[15] = (e) => G(h) ? h.value = e : null),
|
|
421
|
+
"current-page": r.value.curPage,
|
|
422
|
+
"onUpdate:currentPage": l[16] || (l[16] = (e) => r.value.curPage = e),
|
|
423
|
+
"page-size": r.value.pageSize,
|
|
424
|
+
"onUpdate:pageSize": l[17] || (l[17] = (e) => r.value.pageSize = e),
|
|
425
|
+
onPagination: l[18] || (l[18] = (e) => n(i).getList())
|
|
426
|
+
}, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
|
|
427
|
+
]),
|
|
428
|
+
default: t(() => [
|
|
429
|
+
g((u(), s(ie, {
|
|
430
|
+
ref_key: "multipleTableRef",
|
|
431
|
+
ref: M,
|
|
432
|
+
"row-key": "materialId",
|
|
433
|
+
data: n(X),
|
|
434
|
+
"table-label": n(C),
|
|
435
|
+
onSelectionChange: ee,
|
|
436
|
+
onSortChange: le
|
|
437
|
+
}, {
|
|
438
|
+
categoryId: t((e) => [
|
|
439
|
+
R("span", null, m(n(k).materialCategoryBizDict.getValue(e.data.row.categoryId)), 1)
|
|
440
|
+
]),
|
|
441
|
+
plannerId: t((e) => [
|
|
442
|
+
R("span", null, m(n(k).userDict.getValue(e.data.row.plannerId)), 1)
|
|
443
|
+
]),
|
|
444
|
+
operatorId: t((e) => [
|
|
445
|
+
R("span", null, m(n(k).userDict.getValue(e.data.row.operatorId)), 1)
|
|
446
|
+
]),
|
|
447
|
+
operation: t((e) => [
|
|
448
|
+
g((u(), w("span", {
|
|
449
|
+
class: "el-button-color",
|
|
450
|
+
onClick: (pe) => x(e.data.row)
|
|
451
|
+
}, [
|
|
452
|
+
f(m(a.$t("common.edit")), 1)
|
|
453
|
+
], 8, Ve)), [
|
|
454
|
+
[_, ["material:material_info:update"]]
|
|
455
|
+
]),
|
|
456
|
+
g((u(), w("span", {
|
|
457
|
+
class: "el-button-color dropdown-left",
|
|
458
|
+
onClick: (pe) => n(i).deleteRecord(e.data.row)
|
|
459
|
+
}, [
|
|
460
|
+
f(m(a.$t("common.delete")), 1)
|
|
461
|
+
], 8, $e)), [
|
|
462
|
+
[_, ["material:material_info:delete"]]
|
|
463
|
+
])
|
|
464
|
+
]),
|
|
465
|
+
_: 1
|
|
466
|
+
}, 8, ["data", "table-label"])), [
|
|
467
|
+
[se, n(W)]
|
|
468
|
+
])
|
|
469
|
+
]),
|
|
470
|
+
_: 1
|
|
471
|
+
}),
|
|
472
|
+
c.value.visible ? (u(), s(ge, {
|
|
473
|
+
key: 0,
|
|
474
|
+
modelValue: c.value.visible,
|
|
475
|
+
"onUpdate:modelValue": l[19] || (l[19] = (e) => c.value.visible = e),
|
|
476
|
+
title: c.value.title,
|
|
477
|
+
"entity-key": n(U),
|
|
478
|
+
onRefresh: j,
|
|
479
|
+
width: "900px"
|
|
480
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0),
|
|
481
|
+
$.value ? (u(), s(me, {
|
|
482
|
+
key: 1,
|
|
483
|
+
"upload-visible": $.value,
|
|
484
|
+
"template-title": a.$t("sysUser.templateDownload"),
|
|
485
|
+
onTemplateDown: l[20] || (l[20] = (e) => n(i).downloadTemplate(n(v)("materialInfo.name"))),
|
|
486
|
+
onImportEvents: te,
|
|
487
|
+
onUploadClosed: ae
|
|
488
|
+
}, null, 8, ["upload-visible", "template-title"])) : D("", !0),
|
|
489
|
+
V.value.visible ? (u(), s(_e, {
|
|
490
|
+
key: 2,
|
|
491
|
+
modelValue: V.value.visible,
|
|
492
|
+
"onUpdate:modelValue": l[21] || (l[21] = (e) => V.value.visible = e),
|
|
493
|
+
title: V.value.title,
|
|
494
|
+
"select-materialId": S.value,
|
|
495
|
+
onRefresh: j,
|
|
496
|
+
width: "400px"
|
|
497
|
+
}, null, 8, ["modelValue", "title", "select-materialId"])) : D("", !0)
|
|
498
|
+
]);
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
export {
|
|
503
|
+
Pe as default
|
|
504
|
+
};
|