sooyie-material 0.0.4 → 0.0.5
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-8hXBRwzK.mjs → edit-CLZT5pcT.mjs} +1 -1
- package/dist/{edit-BqzN1Wxw.mjs → edit-ChiRu1yh.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CCftB761.mjs → edit.vue_vue_type_script_setup_true_lang-7q1-KhGp.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-8_PSljc8.mjs → edit.vue_vue_type_script_setup_true_lang-DjKM67re.mjs} +111 -80
- package/dist/{index-CBn5aH0z.mjs → index-B0yZc4hJ.mjs} +2 -2
- package/dist/{index-DWcw5PRE.mjs → index-CWpIpj4L.mjs} +47 -36
- package/dist/{index-CTDcKLu0.mjs → index-CuXtDR2y.mjs} +1436 -1416
- package/dist/index.mjs +1 -1
- package/dts/src/api/mat-material-info/types.d.ts +2 -0
- package/dts/src/components/MaterialModalSelector/index.vue.d.ts +1 -1
- package/dts/src/lang/material/zh-cn.d.ts +2 -0
- package/dts/src/views/mat-material-category/edit.vue.d.ts +1 -1
- package/dts/src/views/mat-material-info/edit.vue.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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-CuXtDR2y.mjs";
|
|
5
5
|
const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
|
|
6
6
|
__name: "edit",
|
|
7
7
|
props: /* @__PURE__ */ C({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as Y, mergeModels as
|
|
2
|
-
import { ElMessage as
|
|
1
|
+
import { defineComponent as Y, mergeModels as F, ref as c, reactive as O, useModel as Z, onMounted as x, resolveComponent as u, createBlock as I, openBlock as p, withCtx as t, createVNode as a, unref as n, createElementBlock as v, Fragment as h, renderList as q, createElementVNode as T, createTextVNode as j, toDisplayString as E } from "vue";
|
|
2
|
+
import { ElMessage as K } from "element-plus";
|
|
3
3
|
import { useI18n as ee } from "vue-i18n";
|
|
4
4
|
import "jmash-core";
|
|
5
|
-
import { D as
|
|
5
|
+
import { D as S, a as g, g as le } from "./index-CuXtDR2y.mjs";
|
|
6
6
|
const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
7
7
|
__name: "edit",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ F({
|
|
9
9
|
entityKey: {
|
|
10
10
|
type: Object,
|
|
11
11
|
default: () => {
|
|
@@ -15,16 +15,16 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
|
15
15
|
modelValue: { type: Boolean },
|
|
16
16
|
modelModifiers: {}
|
|
17
17
|
}),
|
|
18
|
-
emits: /* @__PURE__ */
|
|
19
|
-
setup(
|
|
18
|
+
emits: /* @__PURE__ */ F(["refresh"], ["update:modelValue"]),
|
|
19
|
+
setup($, { emit: z }) {
|
|
20
20
|
const { t: d } = ee();
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
let r =
|
|
21
|
+
S.materialCategoryBizDict.useValues();
|
|
22
|
+
const w = c(), b = c([]);
|
|
23
|
+
let r = O({
|
|
24
24
|
requestId: Math.random() * 10 + "",
|
|
25
25
|
updateMask: "categoryId,materialCode,materialName,specInfo,unit,unitPrice,plannerId"
|
|
26
26
|
});
|
|
27
|
-
const
|
|
27
|
+
const A = O({
|
|
28
28
|
materialCode: [
|
|
29
29
|
{
|
|
30
30
|
required: !0,
|
|
@@ -67,92 +67,92 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
|
67
67
|
trigger: "change"
|
|
68
68
|
}
|
|
69
69
|
]
|
|
70
|
-
}),
|
|
70
|
+
}), k = c([]), m = Z($, "modelValue"), C = $, R = z, N = (e = "") => {
|
|
71
71
|
le.findPageOrganTenant({ loginName: e }).then(({ data: o }) => {
|
|
72
|
-
|
|
72
|
+
b.value = o.results;
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
|
-
|
|
76
|
-
let
|
|
77
|
-
const
|
|
78
|
-
clearTimeout(
|
|
79
|
-
console.log(e, "=> value"),
|
|
75
|
+
N();
|
|
76
|
+
let P;
|
|
77
|
+
const U = (e) => {
|
|
78
|
+
clearTimeout(P), P = setTimeout(() => {
|
|
79
|
+
console.log(e, "=> value"), N(e);
|
|
80
80
|
}, 300);
|
|
81
|
-
},
|
|
82
|
-
|
|
81
|
+
}, M = (e) => e.realName || e.mobilePhoneIns ? e.realName : e.nickName, J = Object.keys(C.entityKey), B = c(J.length >= 1);
|
|
82
|
+
B.value && g.findById(C.entityKey).then(({ data: e }) => {
|
|
83
83
|
Object.assign(r, e);
|
|
84
84
|
});
|
|
85
85
|
const G = async () => {
|
|
86
86
|
var e;
|
|
87
|
-
await ((e =
|
|
88
|
-
o && (
|
|
89
|
-
console.log(i), i.status === 200 && (
|
|
87
|
+
await ((e = w.value) == null ? void 0 : e.validate((o) => {
|
|
88
|
+
o && (B.value ? g.update(r).then((i) => {
|
|
89
|
+
console.log(i), i.status === 200 && (K({
|
|
90
90
|
message: d("common.submitSuccess"),
|
|
91
91
|
type: "success"
|
|
92
|
-
}), m.value && (m.value = !1),
|
|
92
|
+
}), m.value && (m.value = !1), R("refresh", i.status === 200));
|
|
93
93
|
}) : g.create(r).then((i) => {
|
|
94
|
-
console.log(i), i.status === 200 && (
|
|
94
|
+
console.log(i), i.status === 200 && (K({
|
|
95
95
|
message: d("common.submitSuccess"),
|
|
96
96
|
type: "success"
|
|
97
|
-
}), m.value && (m.value = !1),
|
|
97
|
+
}), m.value && (m.value = !1), R("refresh", i.status === 200));
|
|
98
98
|
}));
|
|
99
99
|
}));
|
|
100
100
|
};
|
|
101
|
-
function
|
|
101
|
+
function D() {
|
|
102
102
|
m.value && (m.value = !1);
|
|
103
103
|
}
|
|
104
104
|
return x(() => {
|
|
105
105
|
g.findUnitList().then(({ data: e }) => {
|
|
106
|
-
|
|
106
|
+
k.value = e.values;
|
|
107
107
|
});
|
|
108
108
|
}), (e, o) => {
|
|
109
|
-
const i = u("el-tree-select"), s = u("el-form-item"), f = u("el-col"),
|
|
110
|
-
return p(),
|
|
109
|
+
const i = u("el-tree-select"), s = u("el-form-item"), f = u("el-col"), y = u("el-input"), V = u("el-option"), _ = u("el-select"), H = u("el-input-number"), Q = u("el-row"), W = u("el-form"), L = u("el-button"), X = u("el-dialog");
|
|
110
|
+
return p(), I(X, {
|
|
111
111
|
modelValue: m.value,
|
|
112
|
-
"onUpdate:modelValue": o[
|
|
113
|
-
onClose:
|
|
112
|
+
"onUpdate:modelValue": o[8] || (o[8] = (l) => m.value = l),
|
|
113
|
+
onClose: D
|
|
114
114
|
}, {
|
|
115
115
|
footer: t(() => [
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
T("div", ae, [
|
|
117
|
+
a(L, { onClick: D }, {
|
|
118
118
|
default: t(() => [
|
|
119
|
-
|
|
119
|
+
j(E(e.$t("common.cancel")), 1)
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
122
122
|
}),
|
|
123
|
-
|
|
123
|
+
a(L, {
|
|
124
124
|
type: "primary",
|
|
125
125
|
onClick: G
|
|
126
126
|
}, {
|
|
127
127
|
default: t(() => [
|
|
128
|
-
|
|
128
|
+
j(E(e.$t("common.confirm")), 1)
|
|
129
129
|
]),
|
|
130
130
|
_: 1
|
|
131
131
|
})
|
|
132
132
|
])
|
|
133
133
|
]),
|
|
134
134
|
default: t(() => [
|
|
135
|
-
|
|
135
|
+
a(W, {
|
|
136
136
|
ref_key: "materialInfoFormRef",
|
|
137
|
-
ref:
|
|
137
|
+
ref: w,
|
|
138
138
|
model: n(r),
|
|
139
139
|
"label-width": "120px",
|
|
140
|
-
rules:
|
|
140
|
+
rules: A
|
|
141
141
|
}, {
|
|
142
142
|
default: t(() => [
|
|
143
|
-
|
|
143
|
+
a(Q, null, {
|
|
144
144
|
default: t(() => [
|
|
145
|
-
|
|
145
|
+
a(f, { span: 12 }, {
|
|
146
146
|
default: t(() => [
|
|
147
|
-
|
|
147
|
+
a(s, {
|
|
148
148
|
label: e.$t("materialInfo.categoryId"),
|
|
149
149
|
prop: "categoryId"
|
|
150
150
|
}, {
|
|
151
151
|
default: t(() => [
|
|
152
|
-
|
|
152
|
+
a(i, {
|
|
153
153
|
modelValue: n(r).categoryId,
|
|
154
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
155
|
-
data: n(
|
|
154
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => n(r).categoryId = l),
|
|
155
|
+
data: n(S).materialCategoryBizDict.values,
|
|
156
156
|
filterable: "",
|
|
157
157
|
clearable: "",
|
|
158
158
|
"check-strictly": "",
|
|
@@ -166,16 +166,16 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
|
166
166
|
]),
|
|
167
167
|
_: 1
|
|
168
168
|
}),
|
|
169
|
-
|
|
169
|
+
a(f, { span: 12 }, {
|
|
170
170
|
default: t(() => [
|
|
171
|
-
|
|
171
|
+
a(s, {
|
|
172
172
|
label: e.$t("materialInfo.materialCode"),
|
|
173
173
|
prop: "materialCode"
|
|
174
174
|
}, {
|
|
175
175
|
default: t(() => [
|
|
176
|
-
|
|
176
|
+
a(y, {
|
|
177
177
|
modelValue: n(r).materialCode,
|
|
178
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
178
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => n(r).materialCode = l),
|
|
179
179
|
placeholder: e.$t("materialInfo.materialCodeRequired"),
|
|
180
180
|
maxlength: "60",
|
|
181
181
|
"show-word-limit": "",
|
|
@@ -187,16 +187,16 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
|
187
187
|
]),
|
|
188
188
|
_: 1
|
|
189
189
|
}),
|
|
190
|
-
|
|
190
|
+
a(f, { span: 12 }, {
|
|
191
191
|
default: t(() => [
|
|
192
|
-
|
|
192
|
+
a(s, {
|
|
193
193
|
label: e.$t("materialInfo.materialName"),
|
|
194
194
|
prop: "materialName"
|
|
195
195
|
}, {
|
|
196
196
|
default: t(() => [
|
|
197
|
-
|
|
197
|
+
a(y, {
|
|
198
198
|
modelValue: n(r).materialName,
|
|
199
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
199
|
+
"onUpdate:modelValue": o[2] || (o[2] = (l) => n(r).materialName = l),
|
|
200
200
|
placeholder: e.$t("materialInfo.materialNameRequired"),
|
|
201
201
|
maxlength: "120",
|
|
202
202
|
"show-word-limit": "",
|
|
@@ -208,16 +208,16 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
210
210
|
}),
|
|
211
|
-
|
|
211
|
+
a(f, { span: 12 }, {
|
|
212
212
|
default: t(() => [
|
|
213
|
-
|
|
213
|
+
a(s, {
|
|
214
214
|
label: e.$t("materialInfo.specInfo"),
|
|
215
215
|
prop: "specInfo"
|
|
216
216
|
}, {
|
|
217
217
|
default: t(() => [
|
|
218
|
-
|
|
218
|
+
a(y, {
|
|
219
219
|
modelValue: n(r).specInfo,
|
|
220
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
220
|
+
"onUpdate:modelValue": o[3] || (o[3] = (l) => n(r).specInfo = l),
|
|
221
221
|
placeholder: e.$t("materialInfo.specInfoRequired"),
|
|
222
222
|
maxlength: "30",
|
|
223
223
|
"show-word-limit": "",
|
|
@@ -229,26 +229,26 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
|
229
229
|
]),
|
|
230
230
|
_: 1
|
|
231
231
|
}),
|
|
232
|
-
|
|
232
|
+
a(f, { span: 12 }, {
|
|
233
233
|
default: t(() => [
|
|
234
|
-
|
|
234
|
+
a(s, {
|
|
235
235
|
label: e.$t("materialInfo.unit"),
|
|
236
236
|
prop: "unit"
|
|
237
237
|
}, {
|
|
238
238
|
default: t(() => [
|
|
239
|
-
|
|
239
|
+
a(_, {
|
|
240
240
|
modelValue: n(r).unit,
|
|
241
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
|
241
|
+
"onUpdate:modelValue": o[4] || (o[4] = (l) => n(r).unit = l),
|
|
242
242
|
placeholder: e.$t("materialInfo.unitRequired"),
|
|
243
243
|
filterable: "",
|
|
244
244
|
"allow-create": "",
|
|
245
245
|
class: "w-full"
|
|
246
246
|
}, {
|
|
247
247
|
default: t(() => [
|
|
248
|
-
(p(!0),
|
|
249
|
-
key:
|
|
250
|
-
label:
|
|
251
|
-
value:
|
|
248
|
+
(p(!0), v(h, null, q(k.value, (l) => (p(), I(V, {
|
|
249
|
+
key: l.key,
|
|
250
|
+
label: l.value,
|
|
251
|
+
value: l.key
|
|
252
252
|
}, null, 8, ["label", "value"]))), 128))
|
|
253
253
|
]),
|
|
254
254
|
_: 1
|
|
@@ -259,16 +259,16 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
|
259
259
|
]),
|
|
260
260
|
_: 1
|
|
261
261
|
}),
|
|
262
|
-
|
|
262
|
+
a(f, { span: 12 }, {
|
|
263
263
|
default: t(() => [
|
|
264
|
-
|
|
264
|
+
a(s, {
|
|
265
265
|
label: e.$t("materialInfo.unitPrice"),
|
|
266
266
|
prop: "unitPrice"
|
|
267
267
|
}, {
|
|
268
268
|
default: t(() => [
|
|
269
|
-
|
|
269
|
+
a(H, {
|
|
270
270
|
modelValue: n(r).unitPrice,
|
|
271
|
-
"onUpdate:modelValue": o[5] || (o[5] = (
|
|
271
|
+
"onUpdate:modelValue": o[5] || (o[5] = (l) => n(r).unitPrice = l),
|
|
272
272
|
precision: 2,
|
|
273
273
|
min: 0,
|
|
274
274
|
controls: !1,
|
|
@@ -276,8 +276,8 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
|
276
276
|
placeholder: e.$t("materialInfo.unitPriceRequired"),
|
|
277
277
|
class: "w-full"
|
|
278
278
|
}, {
|
|
279
|
-
suffix: t(() => [...o[
|
|
280
|
-
|
|
279
|
+
suffix: t(() => [...o[9] || (o[9] = [
|
|
280
|
+
T("span", null, "元", -1)
|
|
281
281
|
])]),
|
|
282
282
|
_: 1
|
|
283
283
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -287,27 +287,58 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Y({
|
|
|
287
287
|
]),
|
|
288
288
|
_: 1
|
|
289
289
|
}),
|
|
290
|
-
|
|
290
|
+
a(f, { span: 12 }, {
|
|
291
291
|
default: t(() => [
|
|
292
|
-
|
|
292
|
+
a(s, {
|
|
293
293
|
label: e.$t("materialInfo.plannerId"),
|
|
294
294
|
prop: "plannerId"
|
|
295
295
|
}, {
|
|
296
296
|
default: t(() => [
|
|
297
|
-
|
|
297
|
+
a(_, {
|
|
298
298
|
modelValue: n(r).plannerId,
|
|
299
|
-
"onUpdate:modelValue": o[6] || (o[6] = (
|
|
299
|
+
"onUpdate:modelValue": o[6] || (o[6] = (l) => n(r).plannerId = l),
|
|
300
300
|
placeholder: e.$t("materialInfo.plannerIdRequired"),
|
|
301
301
|
clearable: "",
|
|
302
302
|
filterable: "",
|
|
303
|
-
"filter-method":
|
|
303
|
+
"filter-method": U,
|
|
304
304
|
class: "w-full"
|
|
305
305
|
}, {
|
|
306
306
|
default: t(() => [
|
|
307
|
-
(p(!0),
|
|
308
|
-
key:
|
|
309
|
-
label:
|
|
310
|
-
value:
|
|
307
|
+
(p(!0), v(h, null, q(b.value, (l) => (p(), I(V, {
|
|
308
|
+
key: l.userId,
|
|
309
|
+
label: M(l),
|
|
310
|
+
value: l.userId
|
|
311
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
312
|
+
]),
|
|
313
|
+
_: 1
|
|
314
|
+
}, 8, ["modelValue", "placeholder"])
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
}, 8, ["label"])
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
}),
|
|
321
|
+
a(f, { span: 12 }, {
|
|
322
|
+
default: t(() => [
|
|
323
|
+
a(s, {
|
|
324
|
+
label: e.$t("materialInfo.operatorId"),
|
|
325
|
+
prop: "operatorId"
|
|
326
|
+
}, {
|
|
327
|
+
default: t(() => [
|
|
328
|
+
a(_, {
|
|
329
|
+
modelValue: n(r).operatorId,
|
|
330
|
+
"onUpdate:modelValue": o[7] || (o[7] = (l) => n(r).operatorId = l),
|
|
331
|
+
placeholder: e.$t("materialInfo.operatorIdRequired"),
|
|
332
|
+
clearable: "",
|
|
333
|
+
filterable: "",
|
|
334
|
+
"filter-method": U,
|
|
335
|
+
class: "w-full"
|
|
336
|
+
}, {
|
|
337
|
+
default: t(() => [
|
|
338
|
+
(p(!0), v(h, null, q(b.value, (l) => (p(), I(V, {
|
|
339
|
+
key: l.userId,
|
|
340
|
+
label: M(l),
|
|
341
|
+
value: l.userId
|
|
311
342
|
}, null, 8, ["label", "value"]))), 128))
|
|
312
343
|
]),
|
|
313
344
|
_: 1
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as J, ref as w, reactive as R, onActivated as O, resolveComponent as r, resolveDirective as W, createElementBlock as $, openBlock as d, createElementVNode as X, createVNode as l, createBlock as b, createCommentVNode as D, withCtx as o, withKeys as Y, unref as n, createTextVNode as u, toDisplayString as c, withDirectives as C, isRef as S } from "vue";
|
|
2
2
|
import { useTableHooks as Z } from "jmash-core";
|
|
3
3
|
import { useI18n as ee } from "vue-i18n";
|
|
4
|
-
import { D as te, m as oe } from "./index-
|
|
5
|
-
import { _ as le } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as te, m as oe } from "./index-CuXtDR2y.mjs";
|
|
5
|
+
import { _ as le } from "./edit.vue_vue_type_script_setup_true_lang-7q1-KhGp.mjs";
|
|
6
6
|
const ae = { class: "app-container" }, ne = { class: "search-container" }, re = ["onClick"], ie = ["onClick"], fe = /* @__PURE__ */ J({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(me) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as x, ref as V, reactive as
|
|
1
|
+
import { defineComponent as x, ref as V, reactive as T, onActivated as ee, resolveComponent as m, resolveDirective as le, createElementBlock as N, openBlock as d, createElementVNode as I, 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 g, isRef as U } from "vue";
|
|
2
2
|
import { useTableHooks as te } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
|
-
import { D as
|
|
5
|
-
import { _ as ne } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as C, a as oe } from "./index-CuXtDR2y.mjs";
|
|
5
|
+
import { _ as ne } from "./edit.vue_vue_type_script_setup_true_lang-DjKM67re.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) {
|
|
9
9
|
const { t: c } = ae();
|
|
10
|
-
|
|
10
|
+
C.materialCategoryBizDict.useValues(), C.userDict.useValues();
|
|
11
11
|
const i = V({}), {
|
|
12
12
|
tableHooks: r,
|
|
13
13
|
multipleTableRef: j,
|
|
@@ -16,7 +16,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
16
16
|
tableData: E,
|
|
17
17
|
total: $
|
|
18
18
|
} = te(c, oe, i);
|
|
19
|
-
let
|
|
19
|
+
let k = V([
|
|
20
20
|
{
|
|
21
21
|
label: "materialInfo.categoryId",
|
|
22
22
|
prop: "categoryId",
|
|
@@ -62,11 +62,19 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
62
62
|
{
|
|
63
63
|
label: "materialInfo.plannerId",
|
|
64
64
|
prop: "plannerId",
|
|
65
|
-
width: "
|
|
65
|
+
width: "90",
|
|
66
66
|
slotName: "plannerId",
|
|
67
67
|
columnType: "slot",
|
|
68
68
|
isColumn: !0
|
|
69
69
|
},
|
|
70
|
+
{
|
|
71
|
+
label: "materialInfo.operatorId",
|
|
72
|
+
prop: "operatorId",
|
|
73
|
+
width: "90",
|
|
74
|
+
slotName: "operatorId",
|
|
75
|
+
columnType: "slot",
|
|
76
|
+
isColumn: !0
|
|
77
|
+
},
|
|
70
78
|
{
|
|
71
79
|
label: "common.operate",
|
|
72
80
|
width: "130",
|
|
@@ -79,10 +87,10 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
79
87
|
const s = V({
|
|
80
88
|
title: c("common.edit"),
|
|
81
89
|
visible: !1
|
|
82
|
-
}),
|
|
83
|
-
let h =
|
|
90
|
+
}), _ = V(!1);
|
|
91
|
+
let h = T({});
|
|
84
92
|
function M() {
|
|
85
|
-
h =
|
|
93
|
+
h = T({}), s.value.title = c("common.add"), s.value.visible = !0;
|
|
86
94
|
}
|
|
87
95
|
function B(t) {
|
|
88
96
|
h.materialId = t.materialId, s.value.title = c("common.edit"), s.value.visible = !0;
|
|
@@ -97,19 +105,19 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
97
105
|
t && r.getList();
|
|
98
106
|
}
|
|
99
107
|
function A() {
|
|
100
|
-
|
|
108
|
+
_.value = !1;
|
|
101
109
|
}
|
|
102
110
|
function F(t) {
|
|
103
111
|
t.updateMask = "", r.importExcel(t).then((e) => {
|
|
104
|
-
|
|
112
|
+
_.value = !1;
|
|
105
113
|
});
|
|
106
114
|
}
|
|
107
115
|
return ee(() => {
|
|
108
116
|
r.getList();
|
|
109
117
|
}), (t, e) => {
|
|
110
|
-
const H = m("el-tree-select"),
|
|
118
|
+
const H = m("el-tree-select"), w = m("el-form-item"), v = m("el-col"), D = m("el-input"), S = m("el-row"), y = m("el-button"), G = m("el-form"), J = m("jmash-column-select"), O = m("jmash-table"), W = m("jmash-pagination"), X = m("el-card"), Y = m("jmash-import-upload"), b = le("hasPerm");
|
|
111
119
|
return d(), N("div", re, [
|
|
112
|
-
|
|
120
|
+
I("div", ie, [
|
|
113
121
|
o(G, {
|
|
114
122
|
ref_key: "queryFormRef",
|
|
115
123
|
ref: z,
|
|
@@ -121,7 +129,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
121
129
|
default: a(() => [
|
|
122
130
|
o(v, { span: 6 }, {
|
|
123
131
|
default: a(() => [
|
|
124
|
-
o(
|
|
132
|
+
o(w, {
|
|
125
133
|
label: t.$t("materialInfo.categoryId"),
|
|
126
134
|
prop: "categoryId"
|
|
127
135
|
}, {
|
|
@@ -129,7 +137,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
129
137
|
o(H, {
|
|
130
138
|
modelValue: i.value.categoryId,
|
|
131
139
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => i.value.categoryId = l),
|
|
132
|
-
data: n(
|
|
140
|
+
data: n(C).materialCategoryBizDict.values,
|
|
133
141
|
filterable: "",
|
|
134
142
|
clearable: "",
|
|
135
143
|
"check-strictly": "",
|
|
@@ -145,7 +153,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
145
153
|
}),
|
|
146
154
|
o(v, { span: 6 }, {
|
|
147
155
|
default: a(() => [
|
|
148
|
-
o(
|
|
156
|
+
o(w, {
|
|
149
157
|
label: t.$t("materialInfo.materialCode"),
|
|
150
158
|
prop: "likeMaterialCode"
|
|
151
159
|
}, {
|
|
@@ -165,7 +173,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
165
173
|
}),
|
|
166
174
|
o(v, { span: 6 }, {
|
|
167
175
|
default: a(() => [
|
|
168
|
-
o(
|
|
176
|
+
o(w, {
|
|
169
177
|
label: t.$t("materialInfo.materialName"),
|
|
170
178
|
prop: "likeMaterialName"
|
|
171
179
|
}, {
|
|
@@ -185,7 +193,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
185
193
|
}),
|
|
186
194
|
o(v, { span: 6 }, {
|
|
187
195
|
default: a(() => [
|
|
188
|
-
o(
|
|
196
|
+
o(w, {
|
|
189
197
|
label: t.$t("materialInfo.specInfo"),
|
|
190
198
|
prop: "likeSpecInfo"
|
|
191
199
|
}, {
|
|
@@ -206,7 +214,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
206
214
|
]),
|
|
207
215
|
_: 1
|
|
208
216
|
}),
|
|
209
|
-
o(
|
|
217
|
+
o(w, { class: "search-btn" }, {
|
|
210
218
|
default: a(() => [
|
|
211
219
|
o(y, {
|
|
212
220
|
type: "primary",
|
|
@@ -231,7 +239,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
231
239
|
]),
|
|
232
240
|
_: 1
|
|
233
241
|
}, 8, ["model"]),
|
|
234
|
-
e[19] || (e[19] =
|
|
242
|
+
e[19] || (e[19] = I("div", { class: "clear" }, null, -1))
|
|
235
243
|
]),
|
|
236
244
|
o(X, {
|
|
237
245
|
shadow: "never",
|
|
@@ -242,7 +250,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
242
250
|
default: a(() => [
|
|
243
251
|
o(v, { span: 17 }, {
|
|
244
252
|
default: a(() => [
|
|
245
|
-
|
|
253
|
+
g((d(), f(y, {
|
|
246
254
|
type: "primary",
|
|
247
255
|
onClick: M
|
|
248
256
|
}, {
|
|
@@ -253,7 +261,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
253
261
|
})), [
|
|
254
262
|
[b, ["material:material_info:add"]]
|
|
255
263
|
]),
|
|
256
|
-
|
|
264
|
+
g((d(), f(y, {
|
|
257
265
|
type: "primary",
|
|
258
266
|
onClick: e[9] || (e[9] = (l) => n(r).deleteRecords())
|
|
259
267
|
}, {
|
|
@@ -272,10 +280,10 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
272
280
|
class: "container-float"
|
|
273
281
|
}, {
|
|
274
282
|
default: a(() => [
|
|
275
|
-
|
|
283
|
+
g((d(), f(y, {
|
|
276
284
|
plain: "",
|
|
277
285
|
type: "primary",
|
|
278
|
-
onClick: e[10] || (e[10] = (l) =>
|
|
286
|
+
onClick: e[10] || (e[10] = (l) => _.value = !0)
|
|
279
287
|
}, {
|
|
280
288
|
default: a(() => [
|
|
281
289
|
p(u(t.$t("common.import")), 1)
|
|
@@ -284,7 +292,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
284
292
|
})), [
|
|
285
293
|
[b, ["material:material_info:import"]]
|
|
286
294
|
]),
|
|
287
|
-
|
|
295
|
+
g((d(), f(y, {
|
|
288
296
|
plain: "",
|
|
289
297
|
type: "primary",
|
|
290
298
|
onClick: e[11] || (e[11] = (l) => n(r).handleExport(n(c)("materialInfo.name")))
|
|
@@ -297,8 +305,8 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
297
305
|
[b, ["material:material_info:export"]]
|
|
298
306
|
]),
|
|
299
307
|
o(J, {
|
|
300
|
-
modelValue: n(
|
|
301
|
-
"onUpdate:modelValue": e[12] || (e[12] = (l) =>
|
|
308
|
+
modelValue: n(k),
|
|
309
|
+
"onUpdate:modelValue": e[12] || (e[12] = (l) => U(k) ? k.value = l : k = l),
|
|
302
310
|
"label-name": "mat-material-info"
|
|
303
311
|
}, null, 8, ["modelValue"])
|
|
304
312
|
]),
|
|
@@ -312,7 +320,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
312
320
|
n($) > 0 ? (d(), f(W, {
|
|
313
321
|
key: 0,
|
|
314
322
|
total: n($),
|
|
315
|
-
"onUpdate:total": e[13] || (e[13] = (l) =>
|
|
323
|
+
"onUpdate:total": e[13] || (e[13] = (l) => U($) ? $.value = l : null),
|
|
316
324
|
"current-page": i.value.curPage,
|
|
317
325
|
"onUpdate:currentPage": e[14] || (e[14] = (l) => i.value.curPage = l),
|
|
318
326
|
"page-size": i.value.pageSize,
|
|
@@ -327,21 +335,24 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
327
335
|
"row-key": "materialId",
|
|
328
336
|
"list-loading": n(q),
|
|
329
337
|
data: n(E),
|
|
330
|
-
"table-label": n(
|
|
338
|
+
"table-label": n(k),
|
|
331
339
|
onSelectionChange: K,
|
|
332
340
|
onSortChange: L
|
|
333
341
|
}, {
|
|
334
342
|
categoryId: a((l) => [
|
|
335
|
-
|
|
343
|
+
I("span", null, u(n(C).materialCategoryBizDict.getValue(l.data.row.categoryId)), 1)
|
|
336
344
|
]),
|
|
337
345
|
unitPrice: a((l) => [
|
|
338
|
-
|
|
346
|
+
I("span", null, u(l.data.row.unitPrice | 0) + "元 ", 1)
|
|
339
347
|
]),
|
|
340
348
|
plannerId: a((l) => [
|
|
341
|
-
|
|
349
|
+
I("span", null, u(n(C).userDict.getValue(l.data.row.plannerId)), 1)
|
|
350
|
+
]),
|
|
351
|
+
operatorId: a((l) => [
|
|
352
|
+
I("span", null, u(n(C).userDict.getValue(l.data.row.operatorId)), 1)
|
|
342
353
|
]),
|
|
343
354
|
operation: a((l) => [
|
|
344
|
-
|
|
355
|
+
g((d(), N("span", {
|
|
345
356
|
class: "el-button-color",
|
|
346
357
|
onClick: (Z) => B(l.data.row)
|
|
347
358
|
}, [
|
|
@@ -349,7 +360,7 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
349
360
|
], 8, me)), [
|
|
350
361
|
[b, ["material:material_info:update"]]
|
|
351
362
|
]),
|
|
352
|
-
|
|
363
|
+
g((d(), N("span", {
|
|
353
364
|
class: "el-button-color dropdown-left",
|
|
354
365
|
onClick: (Z) => n(r).deleteRecord(l.data.row)
|
|
355
366
|
}, [
|
|
@@ -372,9 +383,9 @@ const re = { class: "app-container" }, ie = { class: "search-container" }, me =
|
|
|
372
383
|
onRefresh: Q,
|
|
373
384
|
width: "900px"
|
|
374
385
|
}, null, 8, ["modelValue", "title", "entity-key"])) : R("", !0),
|
|
375
|
-
|
|
386
|
+
_.value ? (d(), f(Y, {
|
|
376
387
|
key: 1,
|
|
377
|
-
"upload-visible":
|
|
388
|
+
"upload-visible": _.value,
|
|
378
389
|
"template-title": t.$t("sysUser.templateDownload"),
|
|
379
390
|
onTemplateDown: e[18] || (e[18] = (l) => n(r).downloadTemplate(n(c)("materialInfo.name"))),
|
|
380
391
|
onImportEvents: F,
|