@kmkf-fe-packages/basic-components 2.0.52 → 2.0.54-beta.0
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/README.md +1 -1
- package/dist/index.esm.js +1018 -980
- package/dist/index.js +1018 -979
- package/dist/src/bs/component/model/Columns/Erp/bse3.d.ts +7 -0
- package/dist/src/bs/component/model/Columns/Erp/gy.d.ts +15 -0
- package/dist/src/bs/component/model/Columns/Erp/jst.d.ts +21 -0
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +21 -0
- package/dist/src/bs/component/model/Columns/index.d.ts +5 -0
- package/dist/src/bs/component/model/Columns/useGetColumns.d.ts +11 -0
- package/dist/src/bs/component/model/JstGoodsModal/GoodsList.d.ts +1 -1
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +18 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -22,363 +22,377 @@ var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
|
|
|
22
22
|
var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
|
|
23
23
|
var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
|
|
24
24
|
|
|
25
|
-
function _iterableToArrayLimit(
|
|
26
|
-
var
|
|
27
|
-
if (null !=
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
function _iterableToArrayLimit(r, l) {
|
|
26
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
27
|
+
if (null != t) {
|
|
28
|
+
var e,
|
|
29
|
+
n,
|
|
30
|
+
i,
|
|
31
|
+
u,
|
|
32
|
+
a = [],
|
|
33
|
+
f = !0,
|
|
34
|
+
o = !1;
|
|
35
35
|
try {
|
|
36
|
-
if (
|
|
37
|
-
if (Object(
|
|
38
|
-
|
|
39
|
-
} else for (; !(
|
|
40
|
-
} catch (
|
|
41
|
-
|
|
36
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
37
|
+
if (Object(t) !== t) return;
|
|
38
|
+
f = !1;
|
|
39
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
40
|
+
} catch (r) {
|
|
41
|
+
o = !0, n = r;
|
|
42
42
|
} finally {
|
|
43
43
|
try {
|
|
44
|
-
if (!
|
|
44
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
45
45
|
} finally {
|
|
46
|
-
if (
|
|
46
|
+
if (o) throw n;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return a;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function ownKeys(
|
|
53
|
-
var
|
|
52
|
+
function ownKeys(e, r) {
|
|
53
|
+
var t = Object.keys(e);
|
|
54
54
|
if (Object.getOwnPropertySymbols) {
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
return Object.getOwnPropertyDescriptor(
|
|
58
|
-
})),
|
|
55
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
56
|
+
r && (o = o.filter(function (r) {
|
|
57
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
58
|
+
})), t.push.apply(t, o);
|
|
59
59
|
}
|
|
60
|
-
return
|
|
61
|
-
}
|
|
62
|
-
function _objectSpread2(
|
|
63
|
-
for (var
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
_defineProperty(
|
|
67
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
68
|
-
Object.defineProperty(
|
|
60
|
+
return t;
|
|
61
|
+
}
|
|
62
|
+
function _objectSpread2(e) {
|
|
63
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
64
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
65
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
66
|
+
_defineProperty(e, r, t[r]);
|
|
67
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
68
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
return
|
|
71
|
+
return e;
|
|
72
72
|
}
|
|
73
73
|
function _regeneratorRuntime() {
|
|
74
74
|
_regeneratorRuntime = function () {
|
|
75
|
-
return
|
|
75
|
+
return e;
|
|
76
76
|
};
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
var t,
|
|
78
|
+
e = {},
|
|
79
|
+
r = Object.prototype,
|
|
80
|
+
n = r.hasOwnProperty,
|
|
81
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
82
|
+
t[e] = r.value;
|
|
82
83
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
function define(
|
|
88
|
-
return Object.defineProperty(
|
|
89
|
-
value:
|
|
84
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
85
|
+
a = i.iterator || "@@iterator",
|
|
86
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
87
|
+
u = i.toStringTag || "@@toStringTag";
|
|
88
|
+
function define(t, e, r) {
|
|
89
|
+
return Object.defineProperty(t, e, {
|
|
90
|
+
value: r,
|
|
90
91
|
enumerable: !0,
|
|
91
92
|
configurable: !0,
|
|
92
93
|
writable: !0
|
|
93
|
-
}),
|
|
94
|
+
}), t[e];
|
|
94
95
|
}
|
|
95
96
|
try {
|
|
96
97
|
define({}, "");
|
|
97
|
-
} catch (
|
|
98
|
-
define = function (
|
|
99
|
-
return
|
|
98
|
+
} catch (t) {
|
|
99
|
+
define = function (t, e, r) {
|
|
100
|
+
return t[e] = r;
|
|
100
101
|
};
|
|
101
102
|
}
|
|
102
|
-
function wrap(
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return
|
|
107
|
-
value: makeInvokeMethod(
|
|
108
|
-
}),
|
|
103
|
+
function wrap(t, e, r, n) {
|
|
104
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
105
|
+
a = Object.create(i.prototype),
|
|
106
|
+
c = new Context(n || []);
|
|
107
|
+
return o(a, "_invoke", {
|
|
108
|
+
value: makeInvokeMethod(t, r, c)
|
|
109
|
+
}), a;
|
|
109
110
|
}
|
|
110
|
-
function tryCatch(
|
|
111
|
+
function tryCatch(t, e, r) {
|
|
111
112
|
try {
|
|
112
113
|
return {
|
|
113
114
|
type: "normal",
|
|
114
|
-
arg:
|
|
115
|
+
arg: t.call(e, r)
|
|
115
116
|
};
|
|
116
|
-
} catch (
|
|
117
|
+
} catch (t) {
|
|
117
118
|
return {
|
|
118
119
|
type: "throw",
|
|
119
|
-
arg:
|
|
120
|
+
arg: t
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
|
-
|
|
124
|
-
var
|
|
124
|
+
e.wrap = wrap;
|
|
125
|
+
var h = "suspendedStart",
|
|
126
|
+
l = "suspendedYield",
|
|
127
|
+
f = "executing",
|
|
128
|
+
s = "completed",
|
|
129
|
+
y = {};
|
|
125
130
|
function Generator() {}
|
|
126
131
|
function GeneratorFunction() {}
|
|
127
132
|
function GeneratorFunctionPrototype() {}
|
|
128
|
-
var
|
|
129
|
-
define(
|
|
133
|
+
var p = {};
|
|
134
|
+
define(p, a, function () {
|
|
130
135
|
return this;
|
|
131
136
|
});
|
|
132
|
-
var
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
var
|
|
136
|
-
function defineIteratorMethods(
|
|
137
|
-
["next", "throw", "return"].forEach(function (
|
|
138
|
-
define(
|
|
139
|
-
return this._invoke(
|
|
137
|
+
var d = Object.getPrototypeOf,
|
|
138
|
+
v = d && d(d(values([])));
|
|
139
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
140
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
141
|
+
function defineIteratorMethods(t) {
|
|
142
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
143
|
+
define(t, e, function (t) {
|
|
144
|
+
return this._invoke(e, t);
|
|
140
145
|
});
|
|
141
146
|
});
|
|
142
147
|
}
|
|
143
|
-
function AsyncIterator(
|
|
144
|
-
function invoke(
|
|
145
|
-
var
|
|
146
|
-
if ("throw" !==
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
return
|
|
150
|
-
invoke("next",
|
|
151
|
-
}, function (
|
|
152
|
-
invoke("throw",
|
|
153
|
-
}) :
|
|
154
|
-
|
|
155
|
-
}, function (
|
|
156
|
-
return invoke("throw",
|
|
148
|
+
function AsyncIterator(t, e) {
|
|
149
|
+
function invoke(r, o, i, a) {
|
|
150
|
+
var c = tryCatch(t[r], t, o);
|
|
151
|
+
if ("throw" !== c.type) {
|
|
152
|
+
var u = c.arg,
|
|
153
|
+
h = u.value;
|
|
154
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
155
|
+
invoke("next", t, i, a);
|
|
156
|
+
}, function (t) {
|
|
157
|
+
invoke("throw", t, i, a);
|
|
158
|
+
}) : e.resolve(h).then(function (t) {
|
|
159
|
+
u.value = t, i(u);
|
|
160
|
+
}, function (t) {
|
|
161
|
+
return invoke("throw", t, i, a);
|
|
157
162
|
});
|
|
158
163
|
}
|
|
159
|
-
|
|
164
|
+
a(c.arg);
|
|
160
165
|
}
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
value: function (
|
|
166
|
+
var r;
|
|
167
|
+
o(this, "_invoke", {
|
|
168
|
+
value: function (t, n) {
|
|
164
169
|
function callInvokeWithMethodAndArg() {
|
|
165
|
-
return new
|
|
166
|
-
invoke(
|
|
170
|
+
return new e(function (e, r) {
|
|
171
|
+
invoke(t, n, e, r);
|
|
167
172
|
});
|
|
168
173
|
}
|
|
169
|
-
return
|
|
174
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
170
175
|
}
|
|
171
176
|
});
|
|
172
177
|
}
|
|
173
|
-
function makeInvokeMethod(
|
|
174
|
-
var
|
|
175
|
-
return function (
|
|
176
|
-
if (
|
|
177
|
-
if (
|
|
178
|
-
if ("throw" ===
|
|
179
|
-
return
|
|
178
|
+
function makeInvokeMethod(e, r, n) {
|
|
179
|
+
var o = h;
|
|
180
|
+
return function (i, a) {
|
|
181
|
+
if (o === f) throw new Error("Generator is already running");
|
|
182
|
+
if (o === s) {
|
|
183
|
+
if ("throw" === i) throw a;
|
|
184
|
+
return {
|
|
185
|
+
value: t,
|
|
186
|
+
done: !0
|
|
187
|
+
};
|
|
180
188
|
}
|
|
181
|
-
for (
|
|
182
|
-
var
|
|
183
|
-
if (
|
|
184
|
-
var
|
|
185
|
-
if (
|
|
186
|
-
if (
|
|
187
|
-
return
|
|
189
|
+
for (n.method = i, n.arg = a;;) {
|
|
190
|
+
var c = n.delegate;
|
|
191
|
+
if (c) {
|
|
192
|
+
var u = maybeInvokeDelegate(c, n);
|
|
193
|
+
if (u) {
|
|
194
|
+
if (u === y) continue;
|
|
195
|
+
return u;
|
|
188
196
|
}
|
|
189
197
|
}
|
|
190
|
-
if ("next" ===
|
|
191
|
-
if (
|
|
192
|
-
|
|
193
|
-
} else "return" ===
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
if ("normal" ===
|
|
197
|
-
if (
|
|
198
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
199
|
+
if (o === h) throw o = s, n.arg;
|
|
200
|
+
n.dispatchException(n.arg);
|
|
201
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
202
|
+
o = f;
|
|
203
|
+
var p = tryCatch(e, r, n);
|
|
204
|
+
if ("normal" === p.type) {
|
|
205
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
198
206
|
return {
|
|
199
|
-
value:
|
|
200
|
-
done:
|
|
207
|
+
value: p.arg,
|
|
208
|
+
done: n.done
|
|
201
209
|
};
|
|
202
210
|
}
|
|
203
|
-
"throw" ===
|
|
211
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
204
212
|
}
|
|
205
213
|
};
|
|
206
214
|
}
|
|
207
|
-
function maybeInvokeDelegate(
|
|
208
|
-
var
|
|
209
|
-
|
|
210
|
-
if (
|
|
211
|
-
var
|
|
212
|
-
if ("throw" ===
|
|
213
|
-
var
|
|
214
|
-
return
|
|
215
|
+
function maybeInvokeDelegate(e, r) {
|
|
216
|
+
var n = r.method,
|
|
217
|
+
o = e.iterator[n];
|
|
218
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
219
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
220
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
221
|
+
var a = i.arg;
|
|
222
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
215
223
|
}
|
|
216
|
-
function pushTryEntry(
|
|
217
|
-
var
|
|
218
|
-
tryLoc:
|
|
224
|
+
function pushTryEntry(t) {
|
|
225
|
+
var e = {
|
|
226
|
+
tryLoc: t[0]
|
|
219
227
|
};
|
|
220
|
-
1 in
|
|
228
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
221
229
|
}
|
|
222
|
-
function resetTryEntry(
|
|
223
|
-
var
|
|
224
|
-
|
|
230
|
+
function resetTryEntry(t) {
|
|
231
|
+
var e = t.completion || {};
|
|
232
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
225
233
|
}
|
|
226
|
-
function Context(
|
|
234
|
+
function Context(t) {
|
|
227
235
|
this.tryEntries = [{
|
|
228
236
|
tryLoc: "root"
|
|
229
|
-
}],
|
|
237
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
230
238
|
}
|
|
231
|
-
function values(
|
|
232
|
-
if (
|
|
233
|
-
var
|
|
234
|
-
if (
|
|
235
|
-
if ("function" == typeof
|
|
236
|
-
if (!isNaN(
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
for (; ++
|
|
240
|
-
return next.value =
|
|
239
|
+
function values(e) {
|
|
240
|
+
if (e || "" === e) {
|
|
241
|
+
var r = e[a];
|
|
242
|
+
if (r) return r.call(e);
|
|
243
|
+
if ("function" == typeof e.next) return e;
|
|
244
|
+
if (!isNaN(e.length)) {
|
|
245
|
+
var o = -1,
|
|
246
|
+
i = function next() {
|
|
247
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
248
|
+
return next.value = t, next.done = !0, next;
|
|
241
249
|
};
|
|
242
|
-
return
|
|
250
|
+
return i.next = i;
|
|
243
251
|
}
|
|
244
252
|
}
|
|
245
|
-
|
|
246
|
-
next: doneResult
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
function doneResult() {
|
|
250
|
-
return {
|
|
251
|
-
value: undefined,
|
|
252
|
-
done: !0
|
|
253
|
-
};
|
|
253
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
254
254
|
}
|
|
255
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
255
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
256
256
|
value: GeneratorFunctionPrototype,
|
|
257
257
|
configurable: !0
|
|
258
|
-
}),
|
|
258
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
259
259
|
value: GeneratorFunction,
|
|
260
260
|
configurable: !0
|
|
261
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
262
|
-
var
|
|
263
|
-
return !!
|
|
264
|
-
},
|
|
265
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
266
|
-
},
|
|
261
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
262
|
+
var e = "function" == typeof t && t.constructor;
|
|
263
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
264
|
+
}, e.mark = function (t) {
|
|
265
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
266
|
+
}, e.awrap = function (t) {
|
|
267
267
|
return {
|
|
268
|
-
__await:
|
|
268
|
+
__await: t
|
|
269
269
|
};
|
|
270
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
270
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
271
271
|
return this;
|
|
272
|
-
}),
|
|
273
|
-
void 0 ===
|
|
274
|
-
var
|
|
275
|
-
return
|
|
276
|
-
return
|
|
272
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
273
|
+
void 0 === i && (i = Promise);
|
|
274
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
275
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
276
|
+
return t.done ? t.value : a.next();
|
|
277
277
|
});
|
|
278
|
-
}, defineIteratorMethods(
|
|
278
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
279
279
|
return this;
|
|
280
|
-
}), define(
|
|
280
|
+
}), define(g, "toString", function () {
|
|
281
281
|
return "[object Generator]";
|
|
282
|
-
}),
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
for (var
|
|
286
|
-
return
|
|
287
|
-
for (;
|
|
288
|
-
var
|
|
289
|
-
if (
|
|
282
|
+
}), e.keys = function (t) {
|
|
283
|
+
var e = Object(t),
|
|
284
|
+
r = [];
|
|
285
|
+
for (var n in e) r.push(n);
|
|
286
|
+
return r.reverse(), function next() {
|
|
287
|
+
for (; r.length;) {
|
|
288
|
+
var t = r.pop();
|
|
289
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
290
290
|
}
|
|
291
291
|
return next.done = !0, next;
|
|
292
292
|
};
|
|
293
|
-
},
|
|
293
|
+
}, e.values = values, Context.prototype = {
|
|
294
294
|
constructor: Context,
|
|
295
|
-
reset: function (
|
|
296
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
295
|
+
reset: function (e) {
|
|
296
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
297
297
|
},
|
|
298
298
|
stop: function () {
|
|
299
299
|
this.done = !0;
|
|
300
|
-
var
|
|
301
|
-
if ("throw" ===
|
|
300
|
+
var t = this.tryEntries[0].completion;
|
|
301
|
+
if ("throw" === t.type) throw t.arg;
|
|
302
302
|
return this.rval;
|
|
303
303
|
},
|
|
304
|
-
dispatchException: function (
|
|
305
|
-
if (this.done) throw
|
|
306
|
-
var
|
|
307
|
-
function handle(
|
|
308
|
-
return
|
|
304
|
+
dispatchException: function (e) {
|
|
305
|
+
if (this.done) throw e;
|
|
306
|
+
var r = this;
|
|
307
|
+
function handle(n, o) {
|
|
308
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
309
309
|
}
|
|
310
|
-
for (var
|
|
311
|
-
var
|
|
312
|
-
|
|
313
|
-
if ("root" ===
|
|
314
|
-
if (
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
if (
|
|
318
|
-
if (this.prev <
|
|
319
|
-
if (this.prev <
|
|
320
|
-
} else if (
|
|
321
|
-
if (this.prev <
|
|
310
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
311
|
+
var i = this.tryEntries[o],
|
|
312
|
+
a = i.completion;
|
|
313
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
314
|
+
if (i.tryLoc <= this.prev) {
|
|
315
|
+
var c = n.call(i, "catchLoc"),
|
|
316
|
+
u = n.call(i, "finallyLoc");
|
|
317
|
+
if (c && u) {
|
|
318
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
319
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
320
|
+
} else if (c) {
|
|
321
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
322
322
|
} else {
|
|
323
|
-
if (!
|
|
324
|
-
if (this.prev <
|
|
323
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
324
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
-
abrupt: function (
|
|
330
|
-
for (var
|
|
331
|
-
var
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
329
|
+
abrupt: function (t, e) {
|
|
330
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
331
|
+
var o = this.tryEntries[r];
|
|
332
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
333
|
+
var i = o;
|
|
334
334
|
break;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
|
|
338
|
-
var
|
|
339
|
-
return
|
|
337
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
338
|
+
var a = i ? i.completion : {};
|
|
339
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
340
340
|
},
|
|
341
|
-
complete: function (
|
|
342
|
-
if ("throw" ===
|
|
343
|
-
return "break" ===
|
|
341
|
+
complete: function (t, e) {
|
|
342
|
+
if ("throw" === t.type) throw t.arg;
|
|
343
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
344
344
|
},
|
|
345
|
-
finish: function (
|
|
346
|
-
for (var
|
|
347
|
-
var
|
|
348
|
-
if (
|
|
345
|
+
finish: function (t) {
|
|
346
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
347
|
+
var r = this.tryEntries[e];
|
|
348
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
|
-
catch: function (
|
|
352
|
-
for (var
|
|
353
|
-
var
|
|
354
|
-
if (
|
|
355
|
-
var
|
|
356
|
-
if ("throw" ===
|
|
357
|
-
var
|
|
358
|
-
resetTryEntry(
|
|
351
|
+
catch: function (t) {
|
|
352
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
353
|
+
var r = this.tryEntries[e];
|
|
354
|
+
if (r.tryLoc === t) {
|
|
355
|
+
var n = r.completion;
|
|
356
|
+
if ("throw" === n.type) {
|
|
357
|
+
var o = n.arg;
|
|
358
|
+
resetTryEntry(r);
|
|
359
359
|
}
|
|
360
|
-
return
|
|
360
|
+
return o;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
throw new Error("illegal catch attempt");
|
|
364
364
|
},
|
|
365
|
-
delegateYield: function (
|
|
365
|
+
delegateYield: function (e, r, n) {
|
|
366
366
|
return this.delegate = {
|
|
367
|
-
iterator: values(
|
|
368
|
-
resultName:
|
|
369
|
-
nextLoc:
|
|
370
|
-
}, "next" === this.method && (this.arg =
|
|
371
|
-
}
|
|
372
|
-
},
|
|
367
|
+
iterator: values(e),
|
|
368
|
+
resultName: r,
|
|
369
|
+
nextLoc: n
|
|
370
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
371
|
+
}
|
|
372
|
+
}, e;
|
|
373
|
+
}
|
|
374
|
+
function _toPrimitive(t, r) {
|
|
375
|
+
if ("object" != typeof t || !t) return t;
|
|
376
|
+
var e = t[Symbol.toPrimitive];
|
|
377
|
+
if (void 0 !== e) {
|
|
378
|
+
var i = e.call(t, r || "default");
|
|
379
|
+
if ("object" != typeof i) return i;
|
|
380
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
381
|
+
}
|
|
382
|
+
return ("string" === r ? String : Number)(t);
|
|
383
|
+
}
|
|
384
|
+
function _toPropertyKey(t) {
|
|
385
|
+
var i = _toPrimitive(t, "string");
|
|
386
|
+
return "symbol" == typeof i ? i : String(i);
|
|
373
387
|
}
|
|
374
|
-
function _typeof(
|
|
388
|
+
function _typeof(o) {
|
|
375
389
|
"@babel/helpers - typeof";
|
|
376
390
|
|
|
377
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
378
|
-
return typeof
|
|
379
|
-
} : function (
|
|
380
|
-
return
|
|
381
|
-
}, _typeof(
|
|
391
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
392
|
+
return typeof o;
|
|
393
|
+
} : function (o) {
|
|
394
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
395
|
+
}, _typeof(o);
|
|
382
396
|
}
|
|
383
397
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
384
398
|
try {
|
|
@@ -485,20 +499,6 @@ function _nonIterableSpread() {
|
|
|
485
499
|
function _nonIterableRest() {
|
|
486
500
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
487
501
|
}
|
|
488
|
-
function _toPrimitive(input, hint) {
|
|
489
|
-
if (typeof input !== "object" || input === null) return input;
|
|
490
|
-
var prim = input[Symbol.toPrimitive];
|
|
491
|
-
if (prim !== undefined) {
|
|
492
|
-
var res = prim.call(input, hint || "default");
|
|
493
|
-
if (typeof res !== "object") return res;
|
|
494
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
495
|
-
}
|
|
496
|
-
return (hint === "string" ? String : Number)(input);
|
|
497
|
-
}
|
|
498
|
-
function _toPropertyKey(arg) {
|
|
499
|
-
var key = _toPrimitive(arg, "string");
|
|
500
|
-
return typeof key === "symbol" ? key : String(key);
|
|
501
|
-
}
|
|
502
502
|
|
|
503
503
|
function ApaasCascader(props) {
|
|
504
504
|
return /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
|
|
@@ -1188,8 +1188,8 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1188
1188
|
};
|
|
1189
1189
|
var index = /*#__PURE__*/React.forwardRef(ApaasUploadAsync);
|
|
1190
1190
|
|
|
1191
|
-
var css_248z$2 = ".index-module_imageProBox__1u84Y {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageProBox__1u84Y .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageProBox__1u84Y .index-module_inputImage__nm5jb {\n width: 105px;\n height: 105px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageShow__1cG2j {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo {\n display: flex;\n width: 280px;\n height: 105px;\n
|
|
1192
|
-
var styles$2 = {"imageProBox":"index-module_imageProBox__1u84Y","inputImage":"index-module_inputImage__nm5jb","imageShow":"index-module_imageShow__1cG2j","imageProWrap":"index-module_imageProWrap__sx8lo","-webkit-mask":"index-module_mask__L3q8p","mask":"index-module_mask__L3q8p","imageProInfo":"index-module_imageProInfo__iHM0C","imageProRight":"index-module_imageProRight__3rPiY","imageProOperate":"index-module_imageProOperate__1hFcg","
|
|
1191
|
+
var css_248z$2 = ".index-module_imageProBox__1u84Y {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageProBox__1u84Y .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageProBox__1u84Y .index-module_inputImage__nm5jb {\n width: 105px;\n height: 105px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageShow__1cG2j {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo {\n display: flex;\n width: 280px;\n height: 105px;\n border-radius: 5px;\n background-color: rgba(240, 241, 242, 0.72);\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo textarea {\n max-width: 174px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo:hover .index-module_mask__L3q8p:before {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProInfo__iHM0C {\n width: 80px;\n height: 80px;\n border-radius: 5px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProRight__3rPiY {\n position: relative;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProOperate__1hFcg {\n position: absolute;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p:hover .index-module_actions__3Wwry {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry .index-module_icon__3oJ-1 {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e {\n display: inline-block;\n margin-right: 8px !important;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e .index-module_fakeBox__3EXNG {\n width: 105px;\n height: 105px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e .index-module_fakeBox__3EXNG .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_uploadPro__3rAkl .ant-upload {\n height: 105px !important;\n width: 105px !important;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_uploadPro__3rAkl .ant-upload .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_tips__z9Yjd {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
1192
|
+
var styles$2 = {"imageProBox":"index-module_imageProBox__1u84Y","inputImage":"index-module_inputImage__nm5jb","imageShow":"index-module_imageShow__1cG2j","imageProWrap":"index-module_imageProWrap__sx8lo","-webkit-mask":"index-module_mask__L3q8p","mask":"index-module_mask__L3q8p","imageProInfo":"index-module_imageProInfo__iHM0C","imageProRight":"index-module_imageProRight__3rPiY","imageProOperate":"index-module_imageProOperate__1hFcg","actions":"index-module_actions__3Wwry","icon":"index-module_icon__3oJ-1","imageProPaste":"index-module_imageProPaste__22O8e","fakeBox":"index-module_fakeBox__3EXNG","addBtn":"index-module_addBtn__1Dv95","uploadPro":"index-module_uploadPro__3rAkl","tips":"index-module_tips__z9Yjd"};
|
|
1193
1193
|
styleInject(css_248z$2);
|
|
1194
1194
|
|
|
1195
1195
|
var _excluded$7 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "actionUrl", "platform"];
|
|
@@ -1385,9 +1385,17 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
|
1385
1385
|
var showImage = /^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url;
|
|
1386
1386
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1387
1387
|
className: styles$2.imageProWrap,
|
|
1388
|
+
style: {
|
|
1389
|
+
padding: '8px',
|
|
1390
|
+
marginBottom: '8px',
|
|
1391
|
+
marginRight: '8px'
|
|
1392
|
+
},
|
|
1388
1393
|
key: index
|
|
1389
1394
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1390
|
-
className: styles$2.imageProInfo
|
|
1395
|
+
className: styles$2.imageProInfo,
|
|
1396
|
+
style: {
|
|
1397
|
+
marginRight: '8px'
|
|
1398
|
+
}
|
|
1391
1399
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
1392
1400
|
src: finalImage,
|
|
1393
1401
|
preview: {
|
|
@@ -1418,7 +1426,9 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
|
1418
1426
|
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1419
1427
|
className: styles$2.imageProOperate
|
|
1420
1428
|
}, /*#__PURE__*/React__default['default'].createElement(icons.CloseOutlined, {
|
|
1421
|
-
|
|
1429
|
+
style: {
|
|
1430
|
+
color: '#1890ff'
|
|
1431
|
+
},
|
|
1422
1432
|
onClick: handleDelete(index)
|
|
1423
1433
|
}))));
|
|
1424
1434
|
}));
|
|
@@ -1451,9 +1461,12 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
|
1451
1461
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u5F20\u56FE\u7247"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1452
1462
|
className: styles$2.imageProBox
|
|
1453
1463
|
}, !disabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1454
|
-
className: styles$2.
|
|
1464
|
+
className: styles$2.imageProPaste
|
|
1455
1465
|
}, pasteDefaultStates ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1456
1466
|
className: styles$2.fakeBox,
|
|
1467
|
+
style: {
|
|
1468
|
+
paddingTop: '16px'
|
|
1469
|
+
},
|
|
1457
1470
|
onClick: function onClick() {
|
|
1458
1471
|
setPasteDefaultStates(false);
|
|
1459
1472
|
}
|
|
@@ -1476,7 +1489,7 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
|
1476
1489
|
name: "file",
|
|
1477
1490
|
listType: "picture-card",
|
|
1478
1491
|
maxCount: maxCount,
|
|
1479
|
-
className: styles$2.
|
|
1492
|
+
className: styles$2.uploadPro,
|
|
1480
1493
|
beforeUpload: beforeUpload
|
|
1481
1494
|
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
1482
1495
|
className: "addBtn"
|
|
@@ -12190,53 +12203,145 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
12190
12203
|
};
|
|
12191
12204
|
var GoodsModal$2 = /*#__PURE__*/React.forwardRef(GoodsModal$1);
|
|
12192
12205
|
|
|
12193
|
-
var
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
list: newProducts
|
|
12225
|
-
};
|
|
12226
|
-
});
|
|
12227
|
-
};
|
|
12228
|
-
var columns$1 = [{
|
|
12229
|
-
dataIndex: 'index',
|
|
12230
|
-
title: 'NO',
|
|
12231
|
-
render: function render(val, record, index) {
|
|
12232
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12206
|
+
var gyColumns = [{
|
|
12207
|
+
dataIndex: 'specName',
|
|
12208
|
+
title: 'SKU名称',
|
|
12209
|
+
width: 250,
|
|
12210
|
+
ellipsis: true
|
|
12211
|
+
}, {
|
|
12212
|
+
dataIndex: 'specNo',
|
|
12213
|
+
title: 'SKU编码',
|
|
12214
|
+
width: 200,
|
|
12215
|
+
ellipsis: true
|
|
12216
|
+
}, {
|
|
12217
|
+
dataIndex: 'goodName',
|
|
12218
|
+
title: '商品名称',
|
|
12219
|
+
width: 250,
|
|
12220
|
+
ellipsis: true
|
|
12221
|
+
}, {
|
|
12222
|
+
dataIndex: 'goodShortName',
|
|
12223
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12224
|
+
ellipsis: true,
|
|
12225
|
+
width: 250
|
|
12226
|
+
}, {
|
|
12227
|
+
dataIndex: 'goodNo',
|
|
12228
|
+
title: '商品编码',
|
|
12229
|
+
width: 200,
|
|
12230
|
+
ellipsis: true
|
|
12231
|
+
}, {
|
|
12232
|
+
dataIndex: 'goodPicUrl',
|
|
12233
|
+
title: '商品图片',
|
|
12234
|
+
width: 100,
|
|
12235
|
+
render: function render(picUrl) {
|
|
12236
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12233
12237
|
style: {
|
|
12234
|
-
width:
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
+
width: '40px',
|
|
12239
|
+
height: '40px',
|
|
12240
|
+
objectFit: 'contain'
|
|
12241
|
+
},
|
|
12242
|
+
src: picUrl
|
|
12243
|
+
});
|
|
12244
|
+
}
|
|
12245
|
+
}, {
|
|
12246
|
+
dataIndex: 'brandName',
|
|
12247
|
+
title: '品牌名称',
|
|
12248
|
+
width: 200,
|
|
12249
|
+
ellipsis: true
|
|
12250
|
+
}, {
|
|
12251
|
+
dataIndex: 'retailPrice',
|
|
12252
|
+
title: "\u6807\u51C6\u552E\u4EF7",
|
|
12253
|
+
ellipsis: true,
|
|
12254
|
+
width: 100
|
|
12255
|
+
}, {
|
|
12256
|
+
dataIndex: 'costPrice',
|
|
12257
|
+
title: "\u6210\u672C\u4EF7",
|
|
12258
|
+
ellipsis: true,
|
|
12238
12259
|
width: 100
|
|
12260
|
+
}];
|
|
12261
|
+
|
|
12262
|
+
var jstColumns = [{
|
|
12263
|
+
dataIndex: 'goodName',
|
|
12264
|
+
title: '商品名称',
|
|
12265
|
+
width: 250,
|
|
12266
|
+
ellipsis: true
|
|
12267
|
+
}, {
|
|
12268
|
+
dataIndex: 'goodNo',
|
|
12269
|
+
title: '商品编码',
|
|
12270
|
+
width: 200,
|
|
12271
|
+
ellipsis: true
|
|
12272
|
+
}, {
|
|
12273
|
+
dataIndex: 'styleCode',
|
|
12274
|
+
title: '款式编码',
|
|
12275
|
+
width: 200,
|
|
12276
|
+
ellipsis: true
|
|
12277
|
+
}, {
|
|
12278
|
+
dataIndex: 'propertiesValue',
|
|
12279
|
+
title: '规格值',
|
|
12280
|
+
width: 200,
|
|
12281
|
+
ellipsis: true
|
|
12282
|
+
}, {
|
|
12283
|
+
dataIndex: 'goodPicUrl',
|
|
12284
|
+
title: '商品图片',
|
|
12285
|
+
width: 100,
|
|
12286
|
+
render: function render(picUrl) {
|
|
12287
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12288
|
+
style: {
|
|
12289
|
+
width: '40px',
|
|
12290
|
+
height: '40px',
|
|
12291
|
+
objectFit: 'contain'
|
|
12292
|
+
},
|
|
12293
|
+
src: picUrl
|
|
12294
|
+
});
|
|
12295
|
+
}
|
|
12296
|
+
}, {
|
|
12297
|
+
dataIndex: 'goodShortName',
|
|
12298
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12299
|
+
ellipsis: true,
|
|
12300
|
+
width: 250
|
|
12301
|
+
}, {
|
|
12302
|
+
dataIndex: 'brandName',
|
|
12303
|
+
title: '品牌名称',
|
|
12304
|
+
width: 200,
|
|
12305
|
+
ellipsis: true
|
|
12306
|
+
}, {
|
|
12307
|
+
dataIndex: 'retailPrice',
|
|
12308
|
+
title: "\u9500\u552E\u4EF7\u683C",
|
|
12309
|
+
ellipsis: true,
|
|
12310
|
+
width: 100,
|
|
12311
|
+
render: function render(price) {
|
|
12312
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12313
|
+
}
|
|
12314
|
+
}, {
|
|
12315
|
+
dataIndex: 'marketPrice',
|
|
12316
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12317
|
+
ellipsis: true,
|
|
12318
|
+
width: 100,
|
|
12319
|
+
render: function render(price) {
|
|
12320
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12321
|
+
}
|
|
12322
|
+
}, {
|
|
12323
|
+
dataIndex: 'costPrice',
|
|
12324
|
+
title: "\u6210\u672C\u4EF7",
|
|
12325
|
+
ellipsis: true,
|
|
12326
|
+
width: 100,
|
|
12327
|
+
render: function render(price) {
|
|
12328
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12329
|
+
}
|
|
12239
12330
|
}, {
|
|
12331
|
+
dataIndex: 'skuType',
|
|
12332
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
12333
|
+
ellipsis: true,
|
|
12334
|
+
width: 100,
|
|
12335
|
+
render: function render() {
|
|
12336
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
|
|
12337
|
+
return {
|
|
12338
|
+
combine: '组合装商品',
|
|
12339
|
+
normal: '普通商品'
|
|
12340
|
+
}[type] || type;
|
|
12341
|
+
}
|
|
12342
|
+
}];
|
|
12343
|
+
|
|
12344
|
+
var wdtColumns = [{
|
|
12240
12345
|
dataIndex: 'specName',
|
|
12241
12346
|
title: 'SKU名称',
|
|
12242
12347
|
width: 250,
|
|
@@ -12307,144 +12412,272 @@ var columns$1 = [{
|
|
|
12307
12412
|
return Number(price).toFixed(2);
|
|
12308
12413
|
}
|
|
12309
12414
|
}];
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12335
|
-
|
|
12336
|
-
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12415
|
+
|
|
12416
|
+
var bse3Columns = [{
|
|
12417
|
+
dataIndex: 'specNo',
|
|
12418
|
+
title: "SKU",
|
|
12419
|
+
ellipsis: true,
|
|
12420
|
+
width: 200
|
|
12421
|
+
}, {
|
|
12422
|
+
dataIndex: 'specId',
|
|
12423
|
+
title: "SKU ID",
|
|
12424
|
+
ellipsis: true,
|
|
12425
|
+
width: 80
|
|
12426
|
+
}, {
|
|
12427
|
+
dataIndex: 'goodName',
|
|
12428
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12429
|
+
ellipsis: true,
|
|
12430
|
+
width: 250
|
|
12431
|
+
}, {
|
|
12432
|
+
dataIndex: 'goodShortName',
|
|
12433
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12434
|
+
ellipsis: true,
|
|
12435
|
+
width: 250
|
|
12436
|
+
},
|
|
12437
|
+
// {
|
|
12438
|
+
// dataIndex: 'goodPicUrl',
|
|
12439
|
+
// title: `商品图片`,
|
|
12440
|
+
// ellipsis: true,
|
|
12441
|
+
// width: 100,
|
|
12442
|
+
// render: (picUrl: string) => {
|
|
12443
|
+
// return (
|
|
12444
|
+
// <img
|
|
12445
|
+
// style={{
|
|
12446
|
+
// width: '40px',
|
|
12447
|
+
// height: '40px',
|
|
12448
|
+
// objectFit: 'contain',
|
|
12449
|
+
// }}
|
|
12450
|
+
// src={picUrl}
|
|
12451
|
+
// ></img>
|
|
12452
|
+
// );
|
|
12453
|
+
// },
|
|
12454
|
+
// },
|
|
12455
|
+
{
|
|
12456
|
+
dataIndex: 'goodNo',
|
|
12457
|
+
title: "\u8D27\u53F7",
|
|
12458
|
+
ellipsis: true,
|
|
12459
|
+
width: 150
|
|
12460
|
+
}, {
|
|
12461
|
+
dataIndex: 'goodId',
|
|
12462
|
+
title: "\u8D27\u53F7ID",
|
|
12463
|
+
ellipsis: true,
|
|
12464
|
+
width: 100
|
|
12465
|
+
}, {
|
|
12466
|
+
dataIndex: 'colorName',
|
|
12467
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12468
|
+
ellipsis: true,
|
|
12469
|
+
width: 100
|
|
12470
|
+
}, {
|
|
12471
|
+
dataIndex: 'colorCode',
|
|
12472
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12473
|
+
ellipsis: true,
|
|
12474
|
+
width: 100
|
|
12475
|
+
}, {
|
|
12476
|
+
dataIndex: 'sizeName',
|
|
12477
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12478
|
+
ellipsis: true,
|
|
12479
|
+
width: 100
|
|
12480
|
+
}, {
|
|
12481
|
+
dataIndex: 'sizeCode',
|
|
12482
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12483
|
+
ellipsis: true,
|
|
12484
|
+
width: 100
|
|
12485
|
+
}, {
|
|
12486
|
+
dataIndex: 'brandName',
|
|
12487
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12488
|
+
ellipsis: true,
|
|
12489
|
+
width: 100
|
|
12490
|
+
}, {
|
|
12491
|
+
dataIndex: 'marketPrice',
|
|
12492
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12493
|
+
ellipsis: true,
|
|
12494
|
+
width: 100
|
|
12495
|
+
}, {
|
|
12496
|
+
dataIndex: 'retailPrice',
|
|
12497
|
+
title: "\u552E\u4EF7",
|
|
12498
|
+
ellipsis: true,
|
|
12499
|
+
width: 100
|
|
12500
|
+
}];
|
|
12501
|
+
|
|
12502
|
+
var getColumnsMap = function getColumnsMap() {
|
|
12503
|
+
return lodash.cloneDeep({
|
|
12504
|
+
gy: gyColumns,
|
|
12505
|
+
jst: jstColumns,
|
|
12506
|
+
wdt: wdtColumns,
|
|
12507
|
+
bse3: bse3Columns
|
|
12508
|
+
});
|
|
12509
|
+
};
|
|
12510
|
+
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
12511
|
+
var clone_columnsMap = lodash.cloneDeep(getColumnsMap());
|
|
12512
|
+
var newColumns = {};
|
|
12513
|
+
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
12514
|
+
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
12515
|
+
return {
|
|
12516
|
+
title: col.title,
|
|
12517
|
+
dataIndex: col.dataIndex
|
|
12518
|
+
};
|
|
12519
|
+
});
|
|
12520
|
+
});
|
|
12521
|
+
return newColumns;
|
|
12522
|
+
};
|
|
12523
|
+
var index$2 = getColumnsBaseInfo();
|
|
12524
|
+
|
|
12525
|
+
var initNo = {
|
|
12526
|
+
dataIndex: 'index',
|
|
12527
|
+
title: 'NO',
|
|
12528
|
+
render: function render(val, record, index) {
|
|
12529
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12530
|
+
style: {
|
|
12531
|
+
width: 25
|
|
12532
|
+
}
|
|
12533
|
+
}, index + 1);
|
|
12534
|
+
},
|
|
12535
|
+
width: 80
|
|
12536
|
+
};
|
|
12537
|
+
var asyncGetData = function asyncGetData(type) {
|
|
12538
|
+
return extendRequest('/qy/condition/list', {
|
|
12539
|
+
method: 'get',
|
|
12540
|
+
params: {
|
|
12541
|
+
typeKey: "erp_select_modal_".concat(type),
|
|
12542
|
+
configScope: 'company' //按企业查询
|
|
12543
|
+
}
|
|
12544
|
+
}).then(function (res) {
|
|
12545
|
+
if (res && res.data && res.data[0] && res.data[0].queryInfo && res.data[0].queryInfo.length > 0) {
|
|
12546
|
+
return JSON.parse(res.data[0].queryInfo);
|
|
12547
|
+
} else {
|
|
12548
|
+
return getColumnsMap()[type];
|
|
12549
|
+
}
|
|
12550
|
+
});
|
|
12551
|
+
};
|
|
12552
|
+
var useGetColumns = (function (type) {
|
|
12553
|
+
var _useState = React.useState([]),
|
|
12554
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12555
|
+
columns = _useState2[0],
|
|
12556
|
+
setColumns = _useState2[1];
|
|
12557
|
+
var _useState3 = React.useState(false),
|
|
12558
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12559
|
+
loading = _useState4[0],
|
|
12560
|
+
setLoading = _useState4[1];
|
|
12561
|
+
var showColumnsDataIndexList = React.useMemo(function () {
|
|
12562
|
+
return columns.filter(function (item) {
|
|
12563
|
+
return Object.hasOwn(item, 'dataIndex');
|
|
12564
|
+
}).map(function (item) {
|
|
12565
|
+
return item.dataIndex;
|
|
12566
|
+
});
|
|
12567
|
+
}, [columns]);
|
|
12568
|
+
React.useEffect(function () {
|
|
12569
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12570
|
+
var initColumns, requestSortColumns, list, initDataIndexList;
|
|
12571
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12572
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12573
|
+
case 0:
|
|
12574
|
+
initColumns = getColumnsMap()[type];
|
|
12575
|
+
setLoading(true);
|
|
12576
|
+
_context.next = 4;
|
|
12577
|
+
return asyncGetData(type);
|
|
12578
|
+
case 4:
|
|
12579
|
+
requestSortColumns = _context.sent;
|
|
12580
|
+
setLoading(false);
|
|
12581
|
+
list = [initNo];
|
|
12582
|
+
if (requestSortColumns && requestSortColumns.length > 0) {
|
|
12583
|
+
initDataIndexList = initColumns.map(function (item) {
|
|
12584
|
+
return item.dataIndex;
|
|
12585
|
+
});
|
|
12586
|
+
requestSortColumns.forEach(function (item) {
|
|
12587
|
+
var dataIndex = item.dataIndex,
|
|
12588
|
+
show = item.show;
|
|
12589
|
+
if (show !== false && initDataIndexList.includes(dataIndex)) {
|
|
12590
|
+
list.push(initColumns.find(function (item) {
|
|
12591
|
+
return item.dataIndex === dataIndex;
|
|
12592
|
+
}));
|
|
12593
|
+
}
|
|
12594
|
+
});
|
|
12595
|
+
}
|
|
12596
|
+
setColumns(list);
|
|
12597
|
+
case 9:
|
|
12598
|
+
case "end":
|
|
12599
|
+
return _context.stop();
|
|
12366
12600
|
}
|
|
12367
|
-
})
|
|
12368
|
-
};
|
|
12369
|
-
getMore();
|
|
12370
|
-
};
|
|
12371
|
-
React__default['default'].useEffect(function () {
|
|
12372
|
-
setGoodBrandList();
|
|
12601
|
+
}, _callee);
|
|
12602
|
+
}))();
|
|
12373
12603
|
}, []);
|
|
12374
|
-
|
|
12604
|
+
return [columns, showColumnsDataIndexList, loading];
|
|
12605
|
+
});
|
|
12606
|
+
|
|
12607
|
+
function SearchForm(_ref) {
|
|
12608
|
+
var searchFormData = _ref.searchFormData,
|
|
12609
|
+
form = _ref.form,
|
|
12610
|
+
showColumnsDataIndexList = _ref.showColumnsDataIndexList,
|
|
12611
|
+
submit = _ref.submit,
|
|
12612
|
+
reset = _ref.reset;
|
|
12613
|
+
var _useState = React.useState({}),
|
|
12614
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12615
|
+
searchData = _useState2[0],
|
|
12616
|
+
setSearchData = _useState2[1];
|
|
12617
|
+
var submitForm = /*#__PURE__*/function () {
|
|
12618
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
|
|
12619
|
+
var values;
|
|
12620
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12621
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12622
|
+
case 0:
|
|
12623
|
+
_context.next = 2;
|
|
12624
|
+
return form.getFieldsValue();
|
|
12625
|
+
case 2:
|
|
12626
|
+
values = _context.sent;
|
|
12627
|
+
if (submitBtnClickFlag || !lodash.isEqual(values, searchData)) {
|
|
12628
|
+
setSearchData(values);
|
|
12629
|
+
submit();
|
|
12630
|
+
}
|
|
12631
|
+
case 4:
|
|
12632
|
+
case "end":
|
|
12633
|
+
return _context.stop();
|
|
12634
|
+
}
|
|
12635
|
+
}, _callee);
|
|
12636
|
+
}));
|
|
12637
|
+
return function submitForm(_x) {
|
|
12638
|
+
return _ref2.apply(this, arguments);
|
|
12639
|
+
};
|
|
12640
|
+
}();
|
|
12641
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
12375
12642
|
layout: "inline",
|
|
12376
12643
|
form: form
|
|
12377
|
-
},
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
}
|
|
12415
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12416
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
12417
|
-
allowClear: true,
|
|
12418
|
-
style: {
|
|
12419
|
-
width: 150
|
|
12420
|
-
}
|
|
12421
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12422
|
-
name: "brandIds",
|
|
12423
|
-
style: {
|
|
12424
|
-
marginBottom: '12px'
|
|
12425
|
-
}
|
|
12426
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
12427
|
-
mode: "multiple",
|
|
12428
|
-
showSearch: true,
|
|
12429
|
-
allowClear: true,
|
|
12430
|
-
filterOption: function filterOption(input, option) {
|
|
12431
|
-
return option.label.includes(input);
|
|
12432
|
-
},
|
|
12433
|
-
style: {
|
|
12434
|
-
width: 150
|
|
12435
|
-
},
|
|
12436
|
-
placeholder: "\u54C1\u724C",
|
|
12437
|
-
options: brandList.filter(function (item) {
|
|
12438
|
-
return !item.isDisabled;
|
|
12439
|
-
}).map(function (_ref2) {
|
|
12440
|
-
var value = _ref2.brandId,
|
|
12441
|
-
label = _ref2.brandName;
|
|
12442
|
-
return {
|
|
12443
|
-
value: value,
|
|
12444
|
-
label: label
|
|
12445
|
-
};
|
|
12446
|
-
})
|
|
12447
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12644
|
+
}, searchFormData.map(function (item) {
|
|
12645
|
+
var label = item.label,
|
|
12646
|
+
name = item.name,
|
|
12647
|
+
dataIndex = item.dataIndex,
|
|
12648
|
+
type = item.type,
|
|
12649
|
+
_item$formItemProps = item.formItemProps,
|
|
12650
|
+
formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
|
|
12651
|
+
if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
|
|
12652
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12653
|
+
name: name,
|
|
12654
|
+
style: {
|
|
12655
|
+
marginBottom: '12px'
|
|
12656
|
+
}
|
|
12657
|
+
}, type === 'select' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
12658
|
+
placeholder: label,
|
|
12659
|
+
showSearch: true,
|
|
12660
|
+
allowClear: true,
|
|
12661
|
+
style: {
|
|
12662
|
+
width: 150
|
|
12663
|
+
},
|
|
12664
|
+
onBlur: function onBlur() {
|
|
12665
|
+
return submitForm();
|
|
12666
|
+
}
|
|
12667
|
+
}, formItemProps)) : /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
12668
|
+
placeholder: label,
|
|
12669
|
+
allowClear: true,
|
|
12670
|
+
style: {
|
|
12671
|
+
width: 150
|
|
12672
|
+
},
|
|
12673
|
+
onPressEnter: function onPressEnter() {
|
|
12674
|
+
return submitForm();
|
|
12675
|
+
},
|
|
12676
|
+
onBlur: function onBlur() {
|
|
12677
|
+
return submitForm();
|
|
12678
|
+
}
|
|
12679
|
+
}, formItemProps)));
|
|
12680
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12448
12681
|
style: {
|
|
12449
12682
|
marginBottom: '12px'
|
|
12450
12683
|
}
|
|
@@ -12453,10 +12686,154 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12453
12686
|
style: {
|
|
12454
12687
|
marginRight: '8px'
|
|
12455
12688
|
},
|
|
12456
|
-
onClick:
|
|
12689
|
+
onClick: function onClick() {
|
|
12690
|
+
return submitForm(true);
|
|
12691
|
+
}
|
|
12457
12692
|
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12458
12693
|
onClick: reset
|
|
12459
12694
|
}, "\u91CD\u7F6E")));
|
|
12695
|
+
}
|
|
12696
|
+
|
|
12697
|
+
var getTableData = function getTableData(_ref, formData) {
|
|
12698
|
+
var _formData$brandIds;
|
|
12699
|
+
var current = _ref.current,
|
|
12700
|
+
pageSize = _ref.pageSize;
|
|
12701
|
+
var data = {
|
|
12702
|
+
brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
|
|
12703
|
+
skuCode: formData.skuCode || null,
|
|
12704
|
+
skuName: formData.skuName || null,
|
|
12705
|
+
goodName: formData.goodName || null,
|
|
12706
|
+
goodNo: formData.goodNo || null
|
|
12707
|
+
};
|
|
12708
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12709
|
+
method: 'post',
|
|
12710
|
+
data: _objectSpread2({
|
|
12711
|
+
pageSize: pageSize,
|
|
12712
|
+
pageNo: current,
|
|
12713
|
+
platform: 'WDT_ERP'
|
|
12714
|
+
}, data)
|
|
12715
|
+
}).then(function (res) {
|
|
12716
|
+
var _res$data = res.data,
|
|
12717
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
12718
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12719
|
+
_res$data$total = _res$data.total,
|
|
12720
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12721
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
12722
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
12723
|
+
index: index + 1
|
|
12724
|
+
});
|
|
12725
|
+
});
|
|
12726
|
+
return {
|
|
12727
|
+
total: total,
|
|
12728
|
+
list: newProducts
|
|
12729
|
+
};
|
|
12730
|
+
});
|
|
12731
|
+
};
|
|
12732
|
+
var GoodList = function GoodList(props, ref) {
|
|
12733
|
+
var _useState = React.useState([]),
|
|
12734
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12735
|
+
selectList = _useState2[0],
|
|
12736
|
+
setSelect = _useState2[1];
|
|
12737
|
+
var _useState3 = React.useState([]),
|
|
12738
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12739
|
+
selectIds = _useState4[0],
|
|
12740
|
+
setSelectIds = _useState4[1];
|
|
12741
|
+
var _useState5 = React.useState([]),
|
|
12742
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
12743
|
+
brandList = _useState6[0],
|
|
12744
|
+
setBrandList = _useState6[1];
|
|
12745
|
+
var _useGetColumns = useGetColumns('wdt'),
|
|
12746
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
12747
|
+
columns = _useGetColumns2[0],
|
|
12748
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
12749
|
+
loading = _useGetColumns2[2];
|
|
12750
|
+
React.useImperativeHandle(ref, function () {
|
|
12751
|
+
return {
|
|
12752
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
12753
|
+
return selectList;
|
|
12754
|
+
}
|
|
12755
|
+
};
|
|
12756
|
+
});
|
|
12757
|
+
var _Form$useForm = antd.Form.useForm(),
|
|
12758
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
12759
|
+
form = _Form$useForm2[0];
|
|
12760
|
+
var _useAntdTable = ahooks.useAntdTable(getTableData, {
|
|
12761
|
+
defaultPageSize: 10,
|
|
12762
|
+
form: form
|
|
12763
|
+
}),
|
|
12764
|
+
tableProps = _useAntdTable.tableProps,
|
|
12765
|
+
search = _useAntdTable.search,
|
|
12766
|
+
params = _useAntdTable.params;
|
|
12767
|
+
var submit = search.submit,
|
|
12768
|
+
reset = search.reset;
|
|
12769
|
+
var setGoodBrandList = function setGoodBrandList() {
|
|
12770
|
+
var list = [];
|
|
12771
|
+
var pageNo = 0;
|
|
12772
|
+
var pageSize = 100;
|
|
12773
|
+
var getMore = function getMore() {
|
|
12774
|
+
extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
|
|
12775
|
+
method: 'post',
|
|
12776
|
+
data: {
|
|
12777
|
+
pageSize: pageSize,
|
|
12778
|
+
pageNo: pageNo
|
|
12779
|
+
}
|
|
12780
|
+
}).then(function (res) {
|
|
12781
|
+
var _res$data2;
|
|
12782
|
+
if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
|
|
12783
|
+
var _res$data3, _res$data4;
|
|
12784
|
+
list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
|
|
12785
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
|
|
12786
|
+
pageNo += 1;
|
|
12787
|
+
getMore();
|
|
12788
|
+
} else {
|
|
12789
|
+
setBrandList(list);
|
|
12790
|
+
}
|
|
12791
|
+
} else {
|
|
12792
|
+
lodash.reject(res);
|
|
12793
|
+
}
|
|
12794
|
+
}).catch(console.error);
|
|
12795
|
+
};
|
|
12796
|
+
getMore();
|
|
12797
|
+
};
|
|
12798
|
+
React__default['default'].useEffect(function () {
|
|
12799
|
+
setGoodBrandList();
|
|
12800
|
+
}, []);
|
|
12801
|
+
var searchFormData = [{
|
|
12802
|
+
label: 'SKU名称',
|
|
12803
|
+
name: 'skuName',
|
|
12804
|
+
dataIndex: 'specName'
|
|
12805
|
+
}, {
|
|
12806
|
+
label: 'SKU编码',
|
|
12807
|
+
name: 'skuCode',
|
|
12808
|
+
dataIndex: 'specNo'
|
|
12809
|
+
}, {
|
|
12810
|
+
label: '商品名称',
|
|
12811
|
+
name: 'goodName'
|
|
12812
|
+
}, {
|
|
12813
|
+
label: '商品编码',
|
|
12814
|
+
name: 'goodNo'
|
|
12815
|
+
}, {
|
|
12816
|
+
label: '品牌',
|
|
12817
|
+
name: 'brandIds',
|
|
12818
|
+
dataIndex: 'brandName',
|
|
12819
|
+
type: 'select',
|
|
12820
|
+
formItemProps: {
|
|
12821
|
+
mode: 'multiple',
|
|
12822
|
+
filterOption: function filterOption(input, option) {
|
|
12823
|
+
return option.label.includes(input);
|
|
12824
|
+
},
|
|
12825
|
+
options: brandList.filter(function (item) {
|
|
12826
|
+
return !item.isDisabled;
|
|
12827
|
+
}).map(function (_ref2) {
|
|
12828
|
+
var value = _ref2.brandId,
|
|
12829
|
+
label = _ref2.brandName;
|
|
12830
|
+
return {
|
|
12831
|
+
value: value,
|
|
12832
|
+
label: label
|
|
12833
|
+
};
|
|
12834
|
+
})
|
|
12835
|
+
}
|
|
12836
|
+
}];
|
|
12460
12837
|
var rowSelection = {
|
|
12461
12838
|
selectedRowKeys: selectIds,
|
|
12462
12839
|
fixed: true,
|
|
@@ -12512,7 +12889,7 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12512
12889
|
}
|
|
12513
12890
|
}, "\u5220\u9664");
|
|
12514
12891
|
}
|
|
12515
|
-
}].concat(lodash.takeRight(columns
|
|
12892
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
12516
12893
|
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12517
12894
|
style: {
|
|
12518
12895
|
width: '100%',
|
|
@@ -12534,14 +12911,23 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12534
12911
|
}
|
|
12535
12912
|
})) : null;
|
|
12536
12913
|
};
|
|
12537
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
12914
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
12915
|
+
active: true,
|
|
12916
|
+
loading: loading
|
|
12917
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
12918
|
+
searchFormData: searchFormData,
|
|
12919
|
+
form: form,
|
|
12920
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
12921
|
+
submit: submit,
|
|
12922
|
+
reset: reset
|
|
12923
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12538
12924
|
style: {
|
|
12539
12925
|
marginTop: '4px'
|
|
12540
12926
|
}
|
|
12541
12927
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
12542
12928
|
rowSelection: rowSelection,
|
|
12543
12929
|
rowKey: "specNo",
|
|
12544
|
-
columns: columns
|
|
12930
|
+
columns: columns,
|
|
12545
12931
|
scroll: {
|
|
12546
12932
|
x: '100%',
|
|
12547
12933
|
y: 250
|
|
@@ -12598,124 +12984,42 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
|
|
|
12598
12984
|
ref: wdtGoodListRef
|
|
12599
12985
|
})));
|
|
12600
12986
|
};
|
|
12601
|
-
var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
|
|
12602
|
-
|
|
12603
|
-
var getTableData$1 = function getTableData(_ref, formData) {
|
|
12604
|
-
var current = _ref.current,
|
|
12605
|
-
pageSize = _ref.pageSize;
|
|
12606
|
-
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12607
|
-
method: 'post',
|
|
12608
|
-
data: _objectSpread2({
|
|
12609
|
-
pageSize: pageSize,
|
|
12610
|
-
pageNo: current,
|
|
12611
|
-
platform: 'JST_ERP'
|
|
12612
|
-
}, formData)
|
|
12613
|
-
}).then(function (res) {
|
|
12614
|
-
var _res$data = res.data,
|
|
12615
|
-
_res$data$productSkuL = _res$data.productSkuList,
|
|
12616
|
-
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12617
|
-
_res$data$total = _res$data.total,
|
|
12618
|
-
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12619
|
-
var newProducts = productSkuList.map(function (item, index) {
|
|
12620
|
-
return _objectSpread2({}, item);
|
|
12621
|
-
});
|
|
12622
|
-
return {
|
|
12623
|
-
total: total,
|
|
12624
|
-
list: newProducts
|
|
12625
|
-
};
|
|
12626
|
-
});
|
|
12627
|
-
};
|
|
12628
|
-
var columns$2 = [{
|
|
12629
|
-
dataIndex: 'index',
|
|
12630
|
-
title: 'NO',
|
|
12631
|
-
render: function render(val, record, index) {
|
|
12632
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12633
|
-
style: {
|
|
12634
|
-
width: 25
|
|
12635
|
-
}
|
|
12636
|
-
}, index + 1);
|
|
12637
|
-
},
|
|
12638
|
-
width: 80
|
|
12639
|
-
}, {
|
|
12640
|
-
dataIndex: 'goodName',
|
|
12641
|
-
title: '商品名称',
|
|
12642
|
-
width: 250,
|
|
12643
|
-
ellipsis: true
|
|
12644
|
-
}, {
|
|
12645
|
-
dataIndex: 'goodNo',
|
|
12646
|
-
title: '商品编码',
|
|
12647
|
-
width: 200,
|
|
12648
|
-
ellipsis: true
|
|
12649
|
-
}, {
|
|
12650
|
-
dataIndex: 'styleCode',
|
|
12651
|
-
title: '款式编码',
|
|
12652
|
-
width: 200,
|
|
12653
|
-
ellipsis: true
|
|
12654
|
-
}, {
|
|
12655
|
-
dataIndex: 'propertiesValue',
|
|
12656
|
-
title: '规格值',
|
|
12657
|
-
width: 200,
|
|
12658
|
-
ellipsis: true
|
|
12659
|
-
}, {
|
|
12660
|
-
dataIndex: 'goodPicUrl',
|
|
12661
|
-
title: '商品图片',
|
|
12662
|
-
width: 100,
|
|
12663
|
-
render: function render(picUrl) {
|
|
12664
|
-
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12665
|
-
style: {
|
|
12666
|
-
width: '40px',
|
|
12667
|
-
height: '40px',
|
|
12668
|
-
objectFit: 'contain'
|
|
12669
|
-
},
|
|
12670
|
-
src: picUrl
|
|
12987
|
+
var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
|
|
12988
|
+
|
|
12989
|
+
var getTableData$1 = function getTableData(_ref, formData) {
|
|
12990
|
+
var current = _ref.current,
|
|
12991
|
+
pageSize = _ref.pageSize;
|
|
12992
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12993
|
+
method: 'post',
|
|
12994
|
+
data: _objectSpread2({
|
|
12995
|
+
pageSize: pageSize,
|
|
12996
|
+
pageNo: current,
|
|
12997
|
+
platform: 'JST_ERP'
|
|
12998
|
+
}, formData)
|
|
12999
|
+
}).then(function (res) {
|
|
13000
|
+
var _res$data = res.data,
|
|
13001
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
13002
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
13003
|
+
_res$data$total = _res$data.total,
|
|
13004
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
13005
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
13006
|
+
return _objectSpread2({}, item);
|
|
12671
13007
|
});
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
width: 200,
|
|
12682
|
-
ellipsis: true
|
|
12683
|
-
}, {
|
|
12684
|
-
dataIndex: 'retailPrice',
|
|
12685
|
-
title: "\u9500\u552E\u4EF7\u683C",
|
|
12686
|
-
ellipsis: true,
|
|
12687
|
-
width: 100,
|
|
12688
|
-
render: function render(price) {
|
|
12689
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12690
|
-
}
|
|
12691
|
-
}, {
|
|
12692
|
-
dataIndex: 'marketPrice',
|
|
12693
|
-
title: "\u5E02\u573A\u4EF7",
|
|
12694
|
-
ellipsis: true,
|
|
12695
|
-
width: 100,
|
|
12696
|
-
render: function render(price) {
|
|
12697
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12698
|
-
}
|
|
13008
|
+
return {
|
|
13009
|
+
total: total,
|
|
13010
|
+
list: newProducts
|
|
13011
|
+
};
|
|
13012
|
+
});
|
|
13013
|
+
};
|
|
13014
|
+
var searchFormData = [{
|
|
13015
|
+
label: '商品名称',
|
|
13016
|
+
name: 'goodName'
|
|
12699
13017
|
}, {
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
ellipsis: true,
|
|
12703
|
-
width: 100,
|
|
12704
|
-
render: function render(price) {
|
|
12705
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12706
|
-
}
|
|
13018
|
+
label: '商品编码',
|
|
13019
|
+
name: 'goodNo'
|
|
12707
13020
|
}, {
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
ellipsis: true,
|
|
12711
|
-
width: 100,
|
|
12712
|
-
render: function render() {
|
|
12713
|
-
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
|
|
12714
|
-
return {
|
|
12715
|
-
'combine': '组合装商品',
|
|
12716
|
-
'normal': '普通商品'
|
|
12717
|
-
}[type] || type;
|
|
12718
|
-
}
|
|
13021
|
+
label: '款式编码',
|
|
13022
|
+
name: 'styleCode'
|
|
12719
13023
|
}];
|
|
12720
13024
|
var GoodList$1 = function GoodList(props, ref) {
|
|
12721
13025
|
var _useState = React.useState([]),
|
|
@@ -12726,6 +13030,11 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12726
13030
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
12727
13031
|
selectIds = _useState4[0],
|
|
12728
13032
|
setSelectIds = _useState4[1];
|
|
13033
|
+
var _useGetColumns = useGetColumns('jst'),
|
|
13034
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13035
|
+
columns = _useGetColumns2[0],
|
|
13036
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13037
|
+
loading = _useGetColumns2[2];
|
|
12729
13038
|
React.useImperativeHandle(ref, function () {
|
|
12730
13039
|
return {
|
|
12731
13040
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -12745,55 +13054,6 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12745
13054
|
params = _useAntdTable.params;
|
|
12746
13055
|
var submit = search.submit,
|
|
12747
13056
|
reset = search.reset;
|
|
12748
|
-
var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
12749
|
-
layout: "inline",
|
|
12750
|
-
form: form
|
|
12751
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12752
|
-
name: "goodName",
|
|
12753
|
-
style: {
|
|
12754
|
-
marginBottom: '12px'
|
|
12755
|
-
}
|
|
12756
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12757
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
12758
|
-
allowClear: true,
|
|
12759
|
-
style: {
|
|
12760
|
-
width: 150
|
|
12761
|
-
}
|
|
12762
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12763
|
-
name: "goodNo",
|
|
12764
|
-
style: {
|
|
12765
|
-
marginBottom: '12px'
|
|
12766
|
-
}
|
|
12767
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12768
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
12769
|
-
allowClear: true,
|
|
12770
|
-
style: {
|
|
12771
|
-
width: 150
|
|
12772
|
-
}
|
|
12773
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12774
|
-
name: "styleCode",
|
|
12775
|
-
style: {
|
|
12776
|
-
marginBottom: '12px'
|
|
12777
|
-
}
|
|
12778
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12779
|
-
placeholder: "\u6B3E\u5F0F\u7F16\u7801",
|
|
12780
|
-
allowClear: true,
|
|
12781
|
-
style: {
|
|
12782
|
-
width: 150
|
|
12783
|
-
}
|
|
12784
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12785
|
-
style: {
|
|
12786
|
-
marginBottom: '12px'
|
|
12787
|
-
}
|
|
12788
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12789
|
-
type: "primary",
|
|
12790
|
-
style: {
|
|
12791
|
-
marginRight: '8px'
|
|
12792
|
-
},
|
|
12793
|
-
onClick: submit
|
|
12794
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12795
|
-
onClick: reset
|
|
12796
|
-
}, "\u91CD\u7F6E")));
|
|
12797
13057
|
var rowSelection = {
|
|
12798
13058
|
selectedRowKeys: selectIds,
|
|
12799
13059
|
fixed: true,
|
|
@@ -12858,7 +13118,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12858
13118
|
}
|
|
12859
13119
|
}, "\u5220\u9664");
|
|
12860
13120
|
}
|
|
12861
|
-
}].concat(lodash.takeRight(columns
|
|
13121
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
12862
13122
|
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12863
13123
|
style: {
|
|
12864
13124
|
width: '100%',
|
|
@@ -12880,14 +13140,23 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12880
13140
|
}
|
|
12881
13141
|
})) : null;
|
|
12882
13142
|
};
|
|
12883
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
13143
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
13144
|
+
active: true,
|
|
13145
|
+
loading: loading
|
|
13146
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
13147
|
+
searchFormData: searchFormData,
|
|
13148
|
+
form: form,
|
|
13149
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13150
|
+
submit: submit,
|
|
13151
|
+
reset: reset
|
|
13152
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12884
13153
|
style: {
|
|
12885
13154
|
marginTop: '4px'
|
|
12886
13155
|
}
|
|
12887
13156
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
12888
13157
|
rowSelection: rowSelection,
|
|
12889
13158
|
rowKey: "goodNo",
|
|
12890
|
-
columns: columns
|
|
13159
|
+
columns: columns,
|
|
12891
13160
|
scroll: {
|
|
12892
13161
|
x: '100%',
|
|
12893
13162
|
y: 250
|
|
@@ -12923,164 +13192,84 @@ var GyGoodsModal = function GyGoodsModal(props, ref) {
|
|
|
12923
13192
|
setVisible = _useState2[1];
|
|
12924
13193
|
var _useState3 = React.useState([]),
|
|
12925
13194
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
12926
|
-
selectedRows = _useState4[0],
|
|
12927
|
-
setSelectedRows = _useState4[1];
|
|
12928
|
-
var gyGoodsListRef = React.useRef(null);
|
|
12929
|
-
var _onCancel = function onCancel() {
|
|
12930
|
-
setVisible(false);
|
|
12931
|
-
};
|
|
12932
|
-
var onOk = function onOk() {
|
|
12933
|
-
var _gyGoodsListRef$curre;
|
|
12934
|
-
var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
12935
|
-
onSubmit(selectedList);
|
|
12936
|
-
_onCancel();
|
|
12937
|
-
};
|
|
12938
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
12939
|
-
title: '选择商品',
|
|
12940
|
-
okText: '确认',
|
|
12941
|
-
cancelText: '取消',
|
|
12942
|
-
visible: visible,
|
|
12943
|
-
width: width || 850,
|
|
12944
|
-
onCancel: function onCancel() {
|
|
12945
|
-
_onCancel();
|
|
12946
|
-
},
|
|
12947
|
-
onOk: onOk,
|
|
12948
|
-
wrapClassName: "goodModal"
|
|
12949
|
-
}, /*#__PURE__*/React__default['default'].createElement(GyGoodsList, {
|
|
12950
|
-
ref: gyGoodsListRef,
|
|
12951
|
-
selectedRows: selectedRows
|
|
12952
|
-
})));
|
|
12953
|
-
};
|
|
12954
|
-
var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
|
|
12955
|
-
|
|
12956
|
-
var getTableData$2 = function getTableData(_ref, formData) {
|
|
12957
|
-
var current = _ref.current,
|
|
12958
|
-
pageSize = _ref.pageSize;
|
|
12959
|
-
var data = {
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
_res$data$
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
};
|
|
12989
|
-
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12994
|
-
style: {
|
|
12995
|
-
width: 25
|
|
12996
|
-
}
|
|
12997
|
-
}, index + 1);
|
|
12998
|
-
},
|
|
12999
|
-
width: 80
|
|
13000
|
-
}, {
|
|
13001
|
-
dataIndex: 'specNo',
|
|
13002
|
-
title: "SKU",
|
|
13003
|
-
ellipsis: true,
|
|
13004
|
-
width: 200
|
|
13005
|
-
}, {
|
|
13006
|
-
dataIndex: 'specId',
|
|
13007
|
-
title: "SKU ID",
|
|
13008
|
-
ellipsis: true,
|
|
13009
|
-
width: 80
|
|
13010
|
-
}, {
|
|
13011
|
-
dataIndex: 'goodName',
|
|
13012
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
13013
|
-
ellipsis: true,
|
|
13014
|
-
width: 250
|
|
13015
|
-
}, {
|
|
13016
|
-
dataIndex: 'goodShortName',
|
|
13017
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13018
|
-
ellipsis: true,
|
|
13019
|
-
width: 250
|
|
13020
|
-
},
|
|
13021
|
-
// {
|
|
13022
|
-
// dataIndex: 'goodPicUrl',
|
|
13023
|
-
// title: `商品图片`,
|
|
13024
|
-
// ellipsis: true,
|
|
13025
|
-
// width: 100,
|
|
13026
|
-
// render: (picUrl: string) => {
|
|
13027
|
-
// return (
|
|
13028
|
-
// <img
|
|
13029
|
-
// style={{
|
|
13030
|
-
// width: '40px',
|
|
13031
|
-
// height: '40px',
|
|
13032
|
-
// objectFit: 'contain',
|
|
13033
|
-
// }}
|
|
13034
|
-
// src={picUrl}
|
|
13035
|
-
// ></img>
|
|
13036
|
-
// );
|
|
13037
|
-
// },
|
|
13038
|
-
// },
|
|
13039
|
-
{
|
|
13040
|
-
dataIndex: 'goodNo',
|
|
13041
|
-
title: "\u8D27\u53F7",
|
|
13042
|
-
ellipsis: true,
|
|
13043
|
-
width: 150
|
|
13044
|
-
}, {
|
|
13045
|
-
dataIndex: 'goodId',
|
|
13046
|
-
title: "\u8D27\u53F7ID",
|
|
13047
|
-
ellipsis: true,
|
|
13048
|
-
width: 100
|
|
13049
|
-
}, {
|
|
13050
|
-
dataIndex: 'colorName',
|
|
13051
|
-
title: "\u989C\u8272\u540D\u79F0",
|
|
13052
|
-
ellipsis: true,
|
|
13053
|
-
width: 100
|
|
13054
|
-
}, {
|
|
13055
|
-
dataIndex: 'colorCode',
|
|
13056
|
-
title: "\u989C\u8272\u4EE3\u7801",
|
|
13057
|
-
ellipsis: true,
|
|
13058
|
-
width: 100
|
|
13059
|
-
}, {
|
|
13060
|
-
dataIndex: 'sizeName',
|
|
13061
|
-
title: "\u5C3A\u7801\u540D\u79F0",
|
|
13062
|
-
ellipsis: true,
|
|
13063
|
-
width: 100
|
|
13064
|
-
}, {
|
|
13065
|
-
dataIndex: 'sizeCode',
|
|
13066
|
-
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
13067
|
-
ellipsis: true,
|
|
13068
|
-
width: 100
|
|
13195
|
+
selectedRows = _useState4[0],
|
|
13196
|
+
setSelectedRows = _useState4[1];
|
|
13197
|
+
var gyGoodsListRef = React.useRef(null);
|
|
13198
|
+
var _onCancel = function onCancel() {
|
|
13199
|
+
setVisible(false);
|
|
13200
|
+
};
|
|
13201
|
+
var onOk = function onOk() {
|
|
13202
|
+
var _gyGoodsListRef$curre;
|
|
13203
|
+
var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
13204
|
+
onSubmit(selectedList);
|
|
13205
|
+
_onCancel();
|
|
13206
|
+
};
|
|
13207
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
13208
|
+
title: '选择商品',
|
|
13209
|
+
okText: '确认',
|
|
13210
|
+
cancelText: '取消',
|
|
13211
|
+
visible: visible,
|
|
13212
|
+
width: width || 850,
|
|
13213
|
+
onCancel: function onCancel() {
|
|
13214
|
+
_onCancel();
|
|
13215
|
+
},
|
|
13216
|
+
onOk: onOk,
|
|
13217
|
+
wrapClassName: "goodModal"
|
|
13218
|
+
}, /*#__PURE__*/React__default['default'].createElement(GyGoodsList, {
|
|
13219
|
+
ref: gyGoodsListRef,
|
|
13220
|
+
selectedRows: selectedRows
|
|
13221
|
+
})));
|
|
13222
|
+
};
|
|
13223
|
+
var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
|
|
13224
|
+
|
|
13225
|
+
var getTableData$2 = function getTableData(_ref, formData) {
|
|
13226
|
+
var current = _ref.current,
|
|
13227
|
+
pageSize = _ref.pageSize;
|
|
13228
|
+
var data = {
|
|
13229
|
+
goodShortName: formData.goodShortName || null,
|
|
13230
|
+
goodNo: formData.goodNo || null,
|
|
13231
|
+
goodName: formData.goodName || null,
|
|
13232
|
+
skuCode: formData.skuCode || null,
|
|
13233
|
+
skuId: formData.skuId || null
|
|
13234
|
+
};
|
|
13235
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
13236
|
+
method: 'post',
|
|
13237
|
+
data: _objectSpread2({
|
|
13238
|
+
pageSize: pageSize,
|
|
13239
|
+
pageNo: current,
|
|
13240
|
+
platform: 'BS_E3_ERP'
|
|
13241
|
+
}, data)
|
|
13242
|
+
}).then(function (res) {
|
|
13243
|
+
var _res$data = res.data,
|
|
13244
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
13245
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
13246
|
+
_res$data$total = _res$data.total,
|
|
13247
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
13248
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
13249
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13250
|
+
index: index + 1
|
|
13251
|
+
});
|
|
13252
|
+
});
|
|
13253
|
+
return {
|
|
13254
|
+
total: total,
|
|
13255
|
+
list: newProducts
|
|
13256
|
+
};
|
|
13257
|
+
});
|
|
13258
|
+
};
|
|
13259
|
+
var searchFormData$1 = [{
|
|
13260
|
+
label: '商品货号',
|
|
13261
|
+
name: 'goodNo'
|
|
13069
13262
|
}, {
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
ellipsis: true,
|
|
13073
|
-
width: 100
|
|
13263
|
+
label: '商品名称',
|
|
13264
|
+
name: 'goodName'
|
|
13074
13265
|
}, {
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
width: 100
|
|
13266
|
+
label: 'SKU',
|
|
13267
|
+
name: 'skuCode',
|
|
13268
|
+
dataIndex: 'specNo'
|
|
13079
13269
|
}, {
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
width: 100
|
|
13270
|
+
label: 'SKU ID',
|
|
13271
|
+
name: 'skuId',
|
|
13272
|
+
dataIndex: 'specId'
|
|
13084
13273
|
}];
|
|
13085
13274
|
var GoodList$2 = function GoodList(props, ref) {
|
|
13086
13275
|
var _useState = React.useState([]),
|
|
@@ -13091,6 +13280,11 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13091
13280
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13092
13281
|
selectIds = _useState4[0],
|
|
13093
13282
|
setSelectIds = _useState4[1];
|
|
13283
|
+
var _useGetColumns = useGetColumns('bse3'),
|
|
13284
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13285
|
+
columns = _useGetColumns2[0],
|
|
13286
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13287
|
+
loading = _useGetColumns2[2];
|
|
13094
13288
|
React.useImperativeHandle(ref, function () {
|
|
13095
13289
|
return {
|
|
13096
13290
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -13110,66 +13304,6 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13110
13304
|
params = _useAntdTable.params;
|
|
13111
13305
|
var submit = search.submit,
|
|
13112
13306
|
reset = search.reset;
|
|
13113
|
-
var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
13114
|
-
layout: "inline",
|
|
13115
|
-
form: form
|
|
13116
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13117
|
-
name: "goodNo",
|
|
13118
|
-
style: {
|
|
13119
|
-
marginBottom: '12px'
|
|
13120
|
-
}
|
|
13121
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13122
|
-
placeholder: "\u5546\u54C1\u8D27\u53F7",
|
|
13123
|
-
allowClear: true,
|
|
13124
|
-
style: {
|
|
13125
|
-
width: 150
|
|
13126
|
-
}
|
|
13127
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13128
|
-
name: "goodName",
|
|
13129
|
-
style: {
|
|
13130
|
-
marginBottom: '12px'
|
|
13131
|
-
}
|
|
13132
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13133
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
13134
|
-
allowClear: true,
|
|
13135
|
-
style: {
|
|
13136
|
-
width: 150
|
|
13137
|
-
}
|
|
13138
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13139
|
-
name: "skuCode",
|
|
13140
|
-
style: {
|
|
13141
|
-
marginBottom: '12px'
|
|
13142
|
-
}
|
|
13143
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13144
|
-
placeholder: "SKU",
|
|
13145
|
-
allowClear: true,
|
|
13146
|
-
style: {
|
|
13147
|
-
width: 150
|
|
13148
|
-
}
|
|
13149
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13150
|
-
name: "skuId",
|
|
13151
|
-
style: {
|
|
13152
|
-
marginBottom: '12px'
|
|
13153
|
-
}
|
|
13154
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13155
|
-
placeholder: "SKU ID",
|
|
13156
|
-
allowClear: true,
|
|
13157
|
-
style: {
|
|
13158
|
-
width: 150
|
|
13159
|
-
}
|
|
13160
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13161
|
-
style: {
|
|
13162
|
-
marginBottom: '12px'
|
|
13163
|
-
}
|
|
13164
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13165
|
-
type: "primary",
|
|
13166
|
-
style: {
|
|
13167
|
-
marginRight: '8px'
|
|
13168
|
-
},
|
|
13169
|
-
onClick: submit
|
|
13170
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13171
|
-
onClick: reset
|
|
13172
|
-
}, "\u91CD\u7F6E")));
|
|
13173
13307
|
var rowSelection = {
|
|
13174
13308
|
selectedRowKeys: selectIds,
|
|
13175
13309
|
fixed: true,
|
|
@@ -13225,7 +13359,7 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13225
13359
|
}
|
|
13226
13360
|
}, "\u5220\u9664");
|
|
13227
13361
|
}
|
|
13228
|
-
}].concat(lodash.takeRight(columns
|
|
13362
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
13229
13363
|
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13230
13364
|
style: {
|
|
13231
13365
|
width: '100%',
|
|
@@ -13247,14 +13381,23 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13247
13381
|
}
|
|
13248
13382
|
})) : null;
|
|
13249
13383
|
};
|
|
13250
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
13384
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
13385
|
+
active: true,
|
|
13386
|
+
loading: loading
|
|
13387
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
13388
|
+
searchFormData: searchFormData$1,
|
|
13389
|
+
form: form,
|
|
13390
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13391
|
+
submit: submit,
|
|
13392
|
+
reset: reset
|
|
13393
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13251
13394
|
style: {
|
|
13252
13395
|
marginTop: '4px'
|
|
13253
13396
|
}
|
|
13254
13397
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
13255
13398
|
rowSelection: rowSelection,
|
|
13256
13399
|
rowKey: "specNo",
|
|
13257
|
-
columns: columns
|
|
13400
|
+
columns: columns,
|
|
13258
13401
|
scroll: {
|
|
13259
13402
|
x: '100%',
|
|
13260
13403
|
y: 250
|
|
@@ -13345,71 +13488,23 @@ var getTableData$3 = function getTableData(_ref, formData) {
|
|
|
13345
13488
|
};
|
|
13346
13489
|
});
|
|
13347
13490
|
};
|
|
13348
|
-
var
|
|
13349
|
-
|
|
13350
|
-
|
|
13351
|
-
render: function render(val, record, index) {
|
|
13352
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13353
|
-
style: {
|
|
13354
|
-
width: 25
|
|
13355
|
-
}
|
|
13356
|
-
}, index + 1);
|
|
13357
|
-
},
|
|
13358
|
-
width: 80
|
|
13359
|
-
}, {
|
|
13360
|
-
dataIndex: 'specName',
|
|
13361
|
-
title: 'SKU名称',
|
|
13362
|
-
width: 250,
|
|
13363
|
-
ellipsis: true
|
|
13364
|
-
}, {
|
|
13365
|
-
dataIndex: 'specNo',
|
|
13366
|
-
title: 'SKU编码',
|
|
13367
|
-
width: 200,
|
|
13368
|
-
ellipsis: true
|
|
13369
|
-
}, {
|
|
13370
|
-
dataIndex: 'goodName',
|
|
13371
|
-
title: '商品名称',
|
|
13372
|
-
width: 250,
|
|
13373
|
-
ellipsis: true
|
|
13374
|
-
}, {
|
|
13375
|
-
dataIndex: 'goodShortName',
|
|
13376
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13377
|
-
ellipsis: true,
|
|
13378
|
-
width: 250
|
|
13379
|
-
}, {
|
|
13380
|
-
dataIndex: 'goodNo',
|
|
13381
|
-
title: '商品编码',
|
|
13382
|
-
width: 200,
|
|
13383
|
-
ellipsis: true
|
|
13491
|
+
var searchFormData$2 = [{
|
|
13492
|
+
label: '商品简称',
|
|
13493
|
+
name: 'goodShortName'
|
|
13384
13494
|
}, {
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
render: function render(picUrl) {
|
|
13389
|
-
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
13390
|
-
style: {
|
|
13391
|
-
width: '40px',
|
|
13392
|
-
height: '40px',
|
|
13393
|
-
objectFit: 'contain'
|
|
13394
|
-
},
|
|
13395
|
-
src: picUrl
|
|
13396
|
-
});
|
|
13397
|
-
}
|
|
13495
|
+
label: '商品sku名称',
|
|
13496
|
+
name: 'skuName',
|
|
13497
|
+
dataIndex: 'specName'
|
|
13398
13498
|
}, {
|
|
13399
|
-
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
ellipsis: true
|
|
13499
|
+
label: '商品sku编码',
|
|
13500
|
+
name: 'skuCode',
|
|
13501
|
+
dataIndex: 'specNo'
|
|
13403
13502
|
}, {
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
ellipsis: true,
|
|
13407
|
-
width: 100
|
|
13503
|
+
label: '商品名称',
|
|
13504
|
+
name: 'goodName'
|
|
13408
13505
|
}, {
|
|
13409
|
-
|
|
13410
|
-
|
|
13411
|
-
ellipsis: true,
|
|
13412
|
-
width: 100
|
|
13506
|
+
label: '商品编码',
|
|
13507
|
+
name: 'goodNo'
|
|
13413
13508
|
}];
|
|
13414
13509
|
var GoodList$3 = function GoodList(props, ref) {
|
|
13415
13510
|
var _useState = React.useState([]),
|
|
@@ -13420,6 +13515,11 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13420
13515
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13421
13516
|
selectIds = _useState4[0],
|
|
13422
13517
|
setSelectIds = _useState4[1];
|
|
13518
|
+
var _useGetColumns = useGetColumns('gy'),
|
|
13519
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13520
|
+
columns = _useGetColumns2[0],
|
|
13521
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13522
|
+
loading = _useGetColumns2[2];
|
|
13423
13523
|
React.useImperativeHandle(ref, function () {
|
|
13424
13524
|
return {
|
|
13425
13525
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -13439,77 +13539,6 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13439
13539
|
params = _useAntdTable.params;
|
|
13440
13540
|
var submit = search.submit,
|
|
13441
13541
|
reset = search.reset;
|
|
13442
|
-
var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
13443
|
-
layout: "inline",
|
|
13444
|
-
form: form
|
|
13445
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13446
|
-
name: "goodShortName",
|
|
13447
|
-
style: {
|
|
13448
|
-
marginBottom: '12px'
|
|
13449
|
-
}
|
|
13450
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13451
|
-
placeholder: "\u5546\u54C1\u7B80\u79F0",
|
|
13452
|
-
allowClear: true,
|
|
13453
|
-
style: {
|
|
13454
|
-
width: 150
|
|
13455
|
-
}
|
|
13456
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13457
|
-
name: "skuName",
|
|
13458
|
-
style: {
|
|
13459
|
-
marginBottom: '12px'
|
|
13460
|
-
}
|
|
13461
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13462
|
-
placeholder: "\u5546\u54C1sku\u540D\u79F0",
|
|
13463
|
-
allowClear: true,
|
|
13464
|
-
style: {
|
|
13465
|
-
width: 150
|
|
13466
|
-
}
|
|
13467
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13468
|
-
name: "skuCode",
|
|
13469
|
-
style: {
|
|
13470
|
-
marginBottom: '12px'
|
|
13471
|
-
}
|
|
13472
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13473
|
-
placeholder: "\u5546\u54C1sku\u7F16\u7801",
|
|
13474
|
-
allowClear: true,
|
|
13475
|
-
style: {
|
|
13476
|
-
width: 150
|
|
13477
|
-
}
|
|
13478
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13479
|
-
name: "goodName",
|
|
13480
|
-
style: {
|
|
13481
|
-
marginBottom: '12px'
|
|
13482
|
-
}
|
|
13483
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13484
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
13485
|
-
allowClear: true,
|
|
13486
|
-
style: {
|
|
13487
|
-
width: 150
|
|
13488
|
-
}
|
|
13489
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13490
|
-
name: "goodNo",
|
|
13491
|
-
style: {
|
|
13492
|
-
marginBottom: '12px'
|
|
13493
|
-
}
|
|
13494
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13495
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
13496
|
-
allowClear: true,
|
|
13497
|
-
style: {
|
|
13498
|
-
width: 150
|
|
13499
|
-
}
|
|
13500
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13501
|
-
style: {
|
|
13502
|
-
marginBottom: '12px'
|
|
13503
|
-
}
|
|
13504
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13505
|
-
type: "primary",
|
|
13506
|
-
style: {
|
|
13507
|
-
marginRight: '8px'
|
|
13508
|
-
},
|
|
13509
|
-
onClick: submit
|
|
13510
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13511
|
-
onClick: reset
|
|
13512
|
-
}, "\u91CD\u7F6E")));
|
|
13513
13542
|
var rowSelection = {
|
|
13514
13543
|
selectedRowKeys: selectIds,
|
|
13515
13544
|
fixed: true,
|
|
@@ -13565,7 +13594,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13565
13594
|
}
|
|
13566
13595
|
}, "\u5220\u9664");
|
|
13567
13596
|
}
|
|
13568
|
-
}].concat(lodash.takeRight(columns
|
|
13597
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
13569
13598
|
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13570
13599
|
style: {
|
|
13571
13600
|
width: '100%',
|
|
@@ -13587,14 +13616,23 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13587
13616
|
}
|
|
13588
13617
|
})) : null;
|
|
13589
13618
|
};
|
|
13590
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
13619
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
13620
|
+
active: true,
|
|
13621
|
+
loading: loading
|
|
13622
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
13623
|
+
searchFormData: searchFormData$2,
|
|
13624
|
+
form: form,
|
|
13625
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13626
|
+
submit: submit,
|
|
13627
|
+
reset: reset
|
|
13628
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13591
13629
|
style: {
|
|
13592
13630
|
marginTop: '4px'
|
|
13593
13631
|
}
|
|
13594
13632
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
13595
13633
|
rowSelection: rowSelection,
|
|
13596
13634
|
rowKey: "id",
|
|
13597
|
-
columns: columns
|
|
13635
|
+
columns: columns,
|
|
13598
13636
|
scroll: {
|
|
13599
13637
|
x: '100%',
|
|
13600
13638
|
y: 250
|
|
@@ -14074,7 +14112,7 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
|
14074
14112
|
var disabled = _ref2.disabled,
|
|
14075
14113
|
updateHandle = _ref2.updateHandle,
|
|
14076
14114
|
operate = _ref2.operate;
|
|
14077
|
-
return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
14115
|
+
return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
14078
14116
|
var newItem = _objectSpread2({
|
|
14079
14117
|
align: 'center',
|
|
14080
14118
|
ellipsis: true
|
|
@@ -15597,7 +15635,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
15597
15635
|
};
|
|
15598
15636
|
};
|
|
15599
15637
|
|
|
15600
|
-
var getColumnsMap = function getColumnsMap(args) {
|
|
15638
|
+
var getColumnsMap$1 = function getColumnsMap(args) {
|
|
15601
15639
|
var _ref = args || {},
|
|
15602
15640
|
_ref$text = _ref.text,
|
|
15603
15641
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -15637,8 +15675,8 @@ var getColumnsMap = function getColumnsMap(args) {
|
|
|
15637
15675
|
})['default']
|
|
15638
15676
|
});
|
|
15639
15677
|
};
|
|
15640
|
-
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
15641
|
-
var clone_columnsMap = lodash.cloneDeep(getColumnsMap());
|
|
15678
|
+
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15679
|
+
var clone_columnsMap = lodash.cloneDeep(getColumnsMap$1());
|
|
15642
15680
|
var newColumns = {};
|
|
15643
15681
|
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
15644
15682
|
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
@@ -15650,7 +15688,7 @@ var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
|
15650
15688
|
});
|
|
15651
15689
|
return newColumns;
|
|
15652
15690
|
};
|
|
15653
|
-
var columnsBaseInfoMap = getColumnsBaseInfo();
|
|
15691
|
+
var columnsBaseInfoMap = getColumnsBaseInfo$1();
|
|
15654
15692
|
|
|
15655
15693
|
var renderFieldMap$1 = {
|
|
15656
15694
|
goodsNumber: function goodsNumber(_ref) {
|
|
@@ -15717,7 +15755,7 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
|
15717
15755
|
var disabled = _ref4.disabled,
|
|
15718
15756
|
updateHandle = _ref4.updateHandle,
|
|
15719
15757
|
operate = _ref4.operate;
|
|
15720
|
-
return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
15758
|
+
return getColumnsMap$1()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
15721
15759
|
var newItem = _objectSpread2({
|
|
15722
15760
|
align: 'center',
|
|
15723
15761
|
ellipsis: true
|
|
@@ -15976,7 +16014,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15976
16014
|
case 'GY_REISSUE_GOODS':
|
|
15977
16015
|
case 'GY_RETURN_GOODS':
|
|
15978
16016
|
{
|
|
15979
|
-
columns = getColumnsMap({
|
|
16017
|
+
columns = getColumnsMap$1({
|
|
15980
16018
|
text: text,
|
|
15981
16019
|
disabled: disabled || columnsOptions.disabled,
|
|
15982
16020
|
updateHandle: updateHandle,
|
|
@@ -16003,7 +16041,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16003
16041
|
}
|
|
16004
16042
|
break;
|
|
16005
16043
|
default:
|
|
16006
|
-
columns = getColumnsMap({
|
|
16044
|
+
columns = getColumnsMap$1({
|
|
16007
16045
|
text: text,
|
|
16008
16046
|
disabled: disabled || columnsOptions.disabled,
|
|
16009
16047
|
updateHandle: updateHandle,
|
|
@@ -17140,7 +17178,7 @@ var rowKeyMap = {
|
|
|
17140
17178
|
GY_SYSTEM_ORDER: 'billNo',
|
|
17141
17179
|
JST_SYSTEM_ORDER: 'oId'
|
|
17142
17180
|
};
|
|
17143
|
-
var index$
|
|
17181
|
+
var index$3 = (function (props) {
|
|
17144
17182
|
var value = props.value,
|
|
17145
17183
|
_onChange = props.onChange,
|
|
17146
17184
|
disabled = props.disabled,
|
|
@@ -19145,7 +19183,7 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
19145
19183
|
userNick: userNick
|
|
19146
19184
|
}));
|
|
19147
19185
|
};
|
|
19148
|
-
var index$
|
|
19186
|
+
var index$4 = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
19149
19187
|
|
|
19150
19188
|
var _excluded$k = ["onChange", "value", "failValue"];
|
|
19151
19189
|
function CommonStatus(props) {
|
|
@@ -19406,7 +19444,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19406
19444
|
onClick: function onClick() {
|
|
19407
19445
|
return setChangeIndex(index);
|
|
19408
19446
|
}
|
|
19409
|
-
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
19447
|
+
}, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
|
|
19410
19448
|
}))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
19411
19449
|
showSearch: true,
|
|
19412
19450
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -20269,7 +20307,7 @@ exports.BsExchange = BsExchange;
|
|
|
20269
20307
|
exports.BsGoods = BsGoods;
|
|
20270
20308
|
exports.BsReissue = BsReissue;
|
|
20271
20309
|
exports.BsReturn = BsReturnGoods;
|
|
20272
|
-
exports.BsSystemOrder = index$
|
|
20310
|
+
exports.BsSystemOrder = index$3;
|
|
20273
20311
|
exports.BuyerNick = BuyerNick;
|
|
20274
20312
|
exports.CalculationInput = CalculationInput;
|
|
20275
20313
|
exports.ChooseBaby = ChooseBaby;
|
|
@@ -20282,7 +20320,7 @@ exports.CommonSystemOrder = CommonSystemOrder;
|
|
|
20282
20320
|
exports.CopyTextIcon = CopyTextIcon;
|
|
20283
20321
|
exports.ExpressLogistics = ExpressLogistics;
|
|
20284
20322
|
exports.Goods = Goods;
|
|
20285
|
-
exports.GoodsTable = index$
|
|
20323
|
+
exports.GoodsTable = index$4;
|
|
20286
20324
|
exports.GyReissue = GyReissue;
|
|
20287
20325
|
exports.GyReturn = GyReturnGoods;
|
|
20288
20326
|
exports.IdentifyAddress = IdentifyAddress;
|
|
@@ -20310,5 +20348,6 @@ exports.WdtGoodList = WdtGoodList;
|
|
|
20310
20348
|
exports.WdtReissue = wdtReissue;
|
|
20311
20349
|
exports.WlnGoods = WlnGoods;
|
|
20312
20350
|
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|
|
20351
|
+
exports.erpModalColumnsMap = index$2;
|
|
20313
20352
|
exports.getJstColumns = getColumns$5;
|
|
20314
20353
|
exports.getWlnColumns = getColumns$3;
|