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