@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/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(arr, i) {
26
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
27
- if (null != _i) {
28
- var _s,
29
- _e,
30
- _x,
31
- _r,
32
- _arr = [],
33
- _n = !0,
34
- _d = !1;
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 (_x = (_i = _i.call(arr)).next, 0 === i) {
37
- if (Object(_i) !== _i) return;
38
- _n = !1;
39
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
40
- } catch (err) {
41
- _d = !0, _e = err;
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 (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
44
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
45
45
  } finally {
46
- if (_d) throw _e;
46
+ if (o) throw n;
47
47
  }
48
48
  }
49
- return _arr;
49
+ return a;
50
50
  }
51
51
  }
52
- function ownKeys(object, enumerableOnly) {
53
- var keys = Object.keys(object);
52
+ function ownKeys(e, r) {
53
+ var t = Object.keys(e);
54
54
  if (Object.getOwnPropertySymbols) {
55
- var symbols = Object.getOwnPropertySymbols(object);
56
- enumerableOnly && (symbols = symbols.filter(function (sym) {
57
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
58
- })), keys.push.apply(keys, symbols);
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 keys;
61
- }
62
- function _objectSpread2(target) {
63
- for (var i = 1; i < arguments.length; i++) {
64
- var source = null != arguments[i] ? arguments[i] : {};
65
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
66
- _defineProperty(target, key, source[key]);
67
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
68
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
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 target;
71
+ return e;
72
72
  }
73
73
  function _regeneratorRuntime() {
74
74
  _regeneratorRuntime = function () {
75
- return exports;
75
+ return e;
76
76
  };
77
- var exports = {},
78
- Op = Object.prototype,
79
- hasOwn = Op.hasOwnProperty,
80
- defineProperty = Object.defineProperty || function (obj, key, desc) {
81
- obj[key] = desc.value;
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
- $Symbol = "function" == typeof Symbol ? Symbol : {},
84
- iteratorSymbol = $Symbol.iterator || "@@iterator",
85
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
86
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
87
- function define(obj, key, value) {
88
- return Object.defineProperty(obj, key, {
89
- value: 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
- }), obj[key];
94
+ }), t[e];
94
95
  }
95
96
  try {
96
97
  define({}, "");
97
- } catch (err) {
98
- define = function (obj, key, value) {
99
- return obj[key] = value;
98
+ } catch (t) {
99
+ define = function (t, e, r) {
100
+ return t[e] = r;
100
101
  };
101
102
  }
102
- function wrap(innerFn, outerFn, self, tryLocsList) {
103
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
104
- generator = Object.create(protoGenerator.prototype),
105
- context = new Context(tryLocsList || []);
106
- return defineProperty(generator, "_invoke", {
107
- value: makeInvokeMethod(innerFn, self, context)
108
- }), generator;
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(fn, obj, arg) {
111
+ function tryCatch(t, e, r) {
111
112
  try {
112
113
  return {
113
114
  type: "normal",
114
- arg: fn.call(obj, arg)
115
+ arg: t.call(e, r)
115
116
  };
116
- } catch (err) {
117
+ } catch (t) {
117
118
  return {
118
119
  type: "throw",
119
- arg: err
120
+ arg: t
120
121
  };
121
122
  }
122
123
  }
123
- exports.wrap = wrap;
124
- var ContinueSentinel = {};
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 IteratorPrototype = {};
129
- define(IteratorPrototype, iteratorSymbol, function () {
133
+ var p = {};
134
+ define(p, a, function () {
130
135
  return this;
131
136
  });
132
- var getProto = Object.getPrototypeOf,
133
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
134
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
135
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
136
- function defineIteratorMethods(prototype) {
137
- ["next", "throw", "return"].forEach(function (method) {
138
- define(prototype, method, function (arg) {
139
- return this._invoke(method, arg);
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(generator, PromiseImpl) {
144
- function invoke(method, arg, resolve, reject) {
145
- var record = tryCatch(generator[method], generator, arg);
146
- if ("throw" !== record.type) {
147
- var result = record.arg,
148
- value = result.value;
149
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
150
- invoke("next", value, resolve, reject);
151
- }, function (err) {
152
- invoke("throw", err, resolve, reject);
153
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
154
- result.value = unwrapped, resolve(result);
155
- }, function (error) {
156
- return invoke("throw", error, resolve, reject);
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
- reject(record.arg);
164
+ a(c.arg);
160
165
  }
161
- var previousPromise;
162
- defineProperty(this, "_invoke", {
163
- value: function (method, arg) {
166
+ var r;
167
+ o(this, "_invoke", {
168
+ value: function (t, n) {
164
169
  function callInvokeWithMethodAndArg() {
165
- return new PromiseImpl(function (resolve, reject) {
166
- invoke(method, arg, resolve, reject);
170
+ return new e(function (e, r) {
171
+ invoke(t, n, e, r);
167
172
  });
168
173
  }
169
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
174
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
170
175
  }
171
176
  });
172
177
  }
173
- function makeInvokeMethod(innerFn, self, context) {
174
- var state = "suspendedStart";
175
- return function (method, arg) {
176
- if ("executing" === state) throw new Error("Generator is already running");
177
- if ("completed" === state) {
178
- if ("throw" === method) throw arg;
179
- return doneResult();
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 (context.method = method, context.arg = arg;;) {
182
- var delegate = context.delegate;
183
- if (delegate) {
184
- var delegateResult = maybeInvokeDelegate(delegate, context);
185
- if (delegateResult) {
186
- if (delegateResult === ContinueSentinel) continue;
187
- return delegateResult;
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" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
191
- if ("suspendedStart" === state) throw state = "completed", context.arg;
192
- context.dispatchException(context.arg);
193
- } else "return" === context.method && context.abrupt("return", context.arg);
194
- state = "executing";
195
- var record = tryCatch(innerFn, self, context);
196
- if ("normal" === record.type) {
197
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
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: record.arg,
200
- done: context.done
207
+ value: p.arg,
208
+ done: n.done
201
209
  };
202
210
  }
203
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
211
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
204
212
  }
205
213
  };
206
214
  }
207
- function maybeInvokeDelegate(delegate, context) {
208
- var methodName = context.method,
209
- method = delegate.iterator[methodName];
210
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
211
- var record = tryCatch(method, delegate.iterator, context.arg);
212
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
213
- var info = record.arg;
214
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
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(locs) {
217
- var entry = {
218
- tryLoc: locs[0]
224
+ function pushTryEntry(t) {
225
+ var e = {
226
+ tryLoc: t[0]
219
227
  };
220
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
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(entry) {
223
- var record = entry.completion || {};
224
- record.type = "normal", delete record.arg, entry.completion = record;
230
+ function resetTryEntry(t) {
231
+ var e = t.completion || {};
232
+ e.type = "normal", delete e.arg, t.completion = e;
225
233
  }
226
- function Context(tryLocsList) {
234
+ function Context(t) {
227
235
  this.tryEntries = [{
228
236
  tryLoc: "root"
229
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
237
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
230
238
  }
231
- function values(iterable) {
232
- if (iterable) {
233
- var iteratorMethod = iterable[iteratorSymbol];
234
- if (iteratorMethod) return iteratorMethod.call(iterable);
235
- if ("function" == typeof iterable.next) return iterable;
236
- if (!isNaN(iterable.length)) {
237
- var i = -1,
238
- next = function next() {
239
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
240
- return next.value = undefined, next.done = !0, next;
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 next.next = next;
250
+ return i.next = i;
243
251
  }
244
252
  }
245
- return {
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, defineProperty(Gp, "constructor", {
255
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
256
256
  value: GeneratorFunctionPrototype,
257
257
  configurable: !0
258
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
258
+ }), o(GeneratorFunctionPrototype, "constructor", {
259
259
  value: GeneratorFunction,
260
260
  configurable: !0
261
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
262
- var ctor = "function" == typeof genFun && genFun.constructor;
263
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
264
- }, exports.mark = function (genFun) {
265
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
266
- }, exports.awrap = function (arg) {
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: arg
268
+ __await: t
269
269
  };
270
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
270
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
271
271
  return this;
272
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
273
- void 0 === PromiseImpl && (PromiseImpl = Promise);
274
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
275
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
276
- return result.done ? result.value : iter.next();
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(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
278
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
279
279
  return this;
280
- }), define(Gp, "toString", function () {
280
+ }), define(g, "toString", function () {
281
281
  return "[object Generator]";
282
- }), exports.keys = function (val) {
283
- var object = Object(val),
284
- keys = [];
285
- for (var key in object) keys.push(key);
286
- return keys.reverse(), function next() {
287
- for (; keys.length;) {
288
- var key = keys.pop();
289
- if (key in object) return next.value = key, next.done = !1, next;
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
- }, exports.values = values, Context.prototype = {
293
+ }, e.values = values, Context.prototype = {
294
294
  constructor: Context,
295
- reset: function (skipTempReset) {
296
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
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 rootRecord = this.tryEntries[0].completion;
301
- if ("throw" === rootRecord.type) throw rootRecord.arg;
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 (exception) {
305
- if (this.done) throw exception;
306
- var context = this;
307
- function handle(loc, caught) {
308
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
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 i = this.tryEntries.length - 1; i >= 0; --i) {
311
- var entry = this.tryEntries[i],
312
- record = entry.completion;
313
- if ("root" === entry.tryLoc) return handle("end");
314
- if (entry.tryLoc <= this.prev) {
315
- var hasCatch = hasOwn.call(entry, "catchLoc"),
316
- hasFinally = hasOwn.call(entry, "finallyLoc");
317
- if (hasCatch && hasFinally) {
318
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
319
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
320
- } else if (hasCatch) {
321
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
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 (!hasFinally) throw new Error("try statement without catch or finally");
324
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
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 (type, arg) {
330
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
331
- var entry = this.tryEntries[i];
332
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
333
- var finallyEntry = entry;
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
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
338
- var record = finallyEntry ? finallyEntry.completion : {};
339
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
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 (record, afterLoc) {
342
- if ("throw" === record.type) throw record.arg;
343
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
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 (finallyLoc) {
346
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
347
- var entry = this.tryEntries[i];
348
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
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 (tryLoc) {
352
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
353
- var entry = this.tryEntries[i];
354
- if (entry.tryLoc === tryLoc) {
355
- var record = entry.completion;
356
- if ("throw" === record.type) {
357
- var thrown = record.arg;
358
- resetTryEntry(entry);
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 thrown;
360
+ return o;
361
361
  }
362
362
  }
363
363
  throw new Error("illegal catch attempt");
364
364
  },
365
- delegateYield: function (iterable, resultName, nextLoc) {
365
+ delegateYield: function (e, r, n) {
366
366
  return this.delegate = {
367
- iterator: values(iterable),
368
- resultName: resultName,
369
- nextLoc: nextLoc
370
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
371
- }
372
- }, exports;
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(obj) {
388
+ function _typeof(o) {
375
389
  "@babel/helpers - typeof";
376
390
 
377
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
378
- return typeof obj;
379
- } : function (obj) {
380
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
381
- }, _typeof(obj);
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 padding: 8px;\n margin-bottom: 8px;\n margin-right: 8px;\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 margin-right: 8px;\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_imageProWrap__sx8lo .index-module_deleteIcon__2LWG9 {\n color: #1890ff;\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_imagePaste__1A8C5 {\n display: inline-block;\n margin-right: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .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 padding-top: 16px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .index-module_fakeBox__3EXNG .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .ant-upload {\n height: 105px;\n width: 105px;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .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","deleteIcon":"index-module_deleteIcon__2LWG9","actions":"index-module_actions__3Wwry","icon":"index-module_icon__3oJ-1","imagePaste":"index-module_imagePaste__1A8C5","fakeBox":"index-module_fakeBox__3EXNG","addBtn":"index-module_addBtn__1Dv95","upload":"index-module_upload__2nwd8","tips":"index-module_tips__z9Yjd"};
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
- className: styles$2.deleteIcon,
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.imagePaste
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.upload,
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 getTableData = function getTableData(_ref, formData) {
12194
- var _formData$brandIds;
12195
- var current = _ref.current,
12196
- pageSize = _ref.pageSize;
12197
- var data = {
12198
- brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
12199
- skuCode: formData.skuCode || null,
12200
- skuName: formData.skuName || null,
12201
- goodName: formData.goodName || null,
12202
- goodNo: formData.goodNo || null
12203
- };
12204
- return extendRequest('/qy/gdfw/product/product/page', {
12205
- method: 'post',
12206
- data: _objectSpread2({
12207
- pageSize: pageSize,
12208
- pageNo: current,
12209
- platform: 'WDT_ERP'
12210
- }, data)
12211
- }).then(function (res) {
12212
- var _res$data = res.data,
12213
- _res$data$productSkuL = _res$data.productSkuList,
12214
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12215
- _res$data$total = _res$data.total,
12216
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12217
- var newProducts = productSkuList.map(function (item, index) {
12218
- return _objectSpread2(_objectSpread2({}, item), {}, {
12219
- index: index + 1
12220
- });
12221
- });
12222
- return {
12223
- total: total,
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: 25
12235
- }
12236
- }, index + 1);
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
- var GoodList = function GoodList(props, ref) {
12311
- var _useState = React.useState([]),
12312
- _useState2 = _slicedToArray(_useState, 2),
12313
- selectList = _useState2[0],
12314
- setSelect = _useState2[1];
12315
- var _useState3 = React.useState([]),
12316
- _useState4 = _slicedToArray(_useState3, 2),
12317
- selectIds = _useState4[0],
12318
- setSelectIds = _useState4[1];
12319
- var _useState5 = React.useState([]),
12320
- _useState6 = _slicedToArray(_useState5, 2),
12321
- brandList = _useState6[0],
12322
- setBrandList = _useState6[1];
12323
- React.useImperativeHandle(ref, function () {
12324
- return {
12325
- getSelectGoodList: function getSelectGoodList() {
12326
- return selectList;
12327
- }
12328
- };
12329
- });
12330
- var _Form$useForm = antd.Form.useForm(),
12331
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
12332
- form = _Form$useForm2[0];
12333
- var _useAntdTable = ahooks.useAntdTable(getTableData, {
12334
- defaultPageSize: 10,
12335
- form: form
12336
- }),
12337
- tableProps = _useAntdTable.tableProps,
12338
- search = _useAntdTable.search,
12339
- params = _useAntdTable.params;
12340
- var submit = search.submit,
12341
- reset = search.reset;
12342
- var setGoodBrandList = function setGoodBrandList() {
12343
- var list = [];
12344
- var pageNo = 0;
12345
- var pageSize = 100;
12346
- var getMore = function getMore() {
12347
- extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
12348
- method: 'post',
12349
- data: {
12350
- pageSize: pageSize,
12351
- pageNo: pageNo
12352
- }
12353
- }).then(function (res) {
12354
- var _res$data2;
12355
- if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
12356
- var _res$data3, _res$data4;
12357
- 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) || []));
12358
- if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
12359
- pageNo += 1;
12360
- getMore();
12361
- } else {
12362
- setBrandList(list);
12363
- }
12364
- } else {
12365
- lodash.reject(res);
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
- }).catch(console.error);
12368
- };
12369
- getMore();
12370
- };
12371
- React__default['default'].useEffect(function () {
12372
- setGoodBrandList();
12601
+ }, _callee);
12602
+ }))();
12373
12603
  }, []);
12374
- var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
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
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12378
- name: "skuName",
12379
- style: {
12380
- marginBottom: '12px'
12381
- }
12382
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12383
- placeholder: "SKU\u540D\u79F0",
12384
- allowClear: true,
12385
- style: {
12386
- width: 150
12387
- }
12388
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12389
- name: "skuCode",
12390
- style: {
12391
- marginBottom: '12px'
12392
- }
12393
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12394
- placeholder: "SKU\u7F16\u7801",
12395
- allowClear: true,
12396
- style: {
12397
- width: 150
12398
- }
12399
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12400
- name: "goodName",
12401
- style: {
12402
- marginBottom: '12px'
12403
- }
12404
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12405
- placeholder: "\u5546\u54C1\u540D\u79F0",
12406
- allowClear: true,
12407
- style: {
12408
- width: 150
12409
- }
12410
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12411
- name: "goodNo",
12412
- style: {
12413
- marginBottom: '12px'
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: submit
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$1, columns$1.length - 1));
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(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
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$1,
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
- dataIndex: 'goodShortName',
12675
- title: "\u5546\u54C1\u7B80\u79F0",
12676
- ellipsis: true,
12677
- width: 250
12678
- }, {
12679
- dataIndex: 'brandName',
12680
- title: '品牌名称',
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
- dataIndex: 'costPrice',
12701
- title: "\u6210\u672C\u4EF7",
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
- dataIndex: 'skuType',
12709
- title: "\u5546\u54C1\u7C7B\u578B",
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$2, columns$2.length - 1));
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(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
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$2,
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
- goodNo: formData.goodNo || null,
12961
- goodName: formData.goodName || null,
12962
- skuCode: formData.skuCode || null,
12963
- skuId: formData.skuId || null
12964
- };
12965
- return extendRequest('/qy/gdfw/product/product/page', {
12966
- method: 'post',
12967
- data: _objectSpread2({
12968
- pageSize: pageSize,
12969
- pageNo: current,
12970
- platform: 'BS_E3_ERP'
12971
- }, data)
12972
- }).then(function (res) {
12973
- var _res$data = res.data,
12974
- _res$data$productSkuL = _res$data.productSkuList,
12975
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12976
- _res$data$total = _res$data.total,
12977
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12978
- var newProducts = productSkuList.map(function (item, index) {
12979
- return _objectSpread2(_objectSpread2({}, item), {}, {
12980
- index: index + 1
12981
- });
12982
- });
12983
- return {
12984
- total: total,
12985
- list: newProducts
12986
- };
12987
- });
12988
- };
12989
- var columns$3 = [{
12990
- dataIndex: 'index',
12991
- title: 'NO',
12992
- render: function render(val, record, index) {
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
- dataIndex: 'brandName',
13071
- title: "\u54C1\u724C\u540D\u79F0",
13072
- ellipsis: true,
13073
- width: 100
13263
+ label: '商品名称',
13264
+ name: 'goodName'
13074
13265
  }, {
13075
- dataIndex: 'marketPrice',
13076
- title: "\u5E02\u573A\u4EF7",
13077
- ellipsis: true,
13078
- width: 100
13266
+ label: 'SKU',
13267
+ name: 'skuCode',
13268
+ dataIndex: 'specNo'
13079
13269
  }, {
13080
- dataIndex: 'retailPrice',
13081
- title: "\u552E\u4EF7",
13082
- ellipsis: true,
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$3, columns$3.length - 1));
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(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
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$3,
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 columns$4 = [{
13349
- dataIndex: 'index',
13350
- title: 'NO',
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
- dataIndex: 'goodPicUrl',
13386
- title: '商品图片',
13387
- width: 100,
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
- dataIndex: 'brandName',
13400
- title: '品牌名称',
13401
- width: 200,
13402
- ellipsis: true
13499
+ label: '商品sku编码',
13500
+ name: 'skuCode',
13501
+ dataIndex: 'specNo'
13403
13502
  }, {
13404
- dataIndex: 'retailPrice',
13405
- title: "\u6807\u51C6\u552E\u4EF7",
13406
- ellipsis: true,
13407
- width: 100
13503
+ label: '商品名称',
13504
+ name: 'goodName'
13408
13505
  }, {
13409
- dataIndex: 'costPrice',
13410
- title: "\u6210\u672C\u4EF7",
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$4, columns$4.length - 1));
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(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
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$4,
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$2 = (function (props) {
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$3 = /*#__PURE__*/React.forwardRef(Goods$1);
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$2;
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$3;
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;