@kmkf-fe-packages/basic-components 2.0.53 → 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({
@@ -12203,53 +12203,145 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
12203
12203
  };
12204
12204
  var GoodsModal$2 = /*#__PURE__*/React.forwardRef(GoodsModal$1);
12205
12205
 
12206
- var getTableData = function getTableData(_ref, formData) {
12207
- var _formData$brandIds;
12208
- var current = _ref.current,
12209
- pageSize = _ref.pageSize;
12210
- var data = {
12211
- brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
12212
- skuCode: formData.skuCode || null,
12213
- skuName: formData.skuName || null,
12214
- goodName: formData.goodName || null,
12215
- goodNo: formData.goodNo || null
12216
- };
12217
- return extendRequest('/qy/gdfw/product/product/page', {
12218
- method: 'post',
12219
- data: _objectSpread2({
12220
- pageSize: pageSize,
12221
- pageNo: current,
12222
- platform: 'WDT_ERP'
12223
- }, data)
12224
- }).then(function (res) {
12225
- var _res$data = res.data,
12226
- _res$data$productSkuL = _res$data.productSkuList,
12227
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12228
- _res$data$total = _res$data.total,
12229
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12230
- var newProducts = productSkuList.map(function (item, index) {
12231
- return _objectSpread2(_objectSpread2({}, item), {}, {
12232
- index: index + 1
12233
- });
12234
- });
12235
- return {
12236
- total: total,
12237
- list: newProducts
12238
- };
12239
- });
12240
- };
12241
- var columns$1 = [{
12242
- dataIndex: 'index',
12243
- title: 'NO',
12244
- render: function render(val, record, index) {
12245
- 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", {
12246
12237
  style: {
12247
- width: 25
12248
- }
12249
- }, index + 1);
12250
- },
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,
12251
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
+ }
12252
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 = [{
12253
12345
  dataIndex: 'specName',
12254
12346
  title: 'SKU名称',
12255
12347
  width: 250,
@@ -12320,144 +12412,272 @@ var columns$1 = [{
12320
12412
  return Number(price).toFixed(2);
12321
12413
  }
12322
12414
  }];
12323
- var GoodList = function GoodList(props, ref) {
12324
- var _useState = React.useState([]),
12325
- _useState2 = _slicedToArray(_useState, 2),
12326
- selectList = _useState2[0],
12327
- setSelect = _useState2[1];
12328
- var _useState3 = React.useState([]),
12329
- _useState4 = _slicedToArray(_useState3, 2),
12330
- selectIds = _useState4[0],
12331
- setSelectIds = _useState4[1];
12332
- var _useState5 = React.useState([]),
12333
- _useState6 = _slicedToArray(_useState5, 2),
12334
- brandList = _useState6[0],
12335
- setBrandList = _useState6[1];
12336
- React.useImperativeHandle(ref, function () {
12337
- return {
12338
- getSelectGoodList: function getSelectGoodList() {
12339
- return selectList;
12340
- }
12341
- };
12342
- });
12343
- var _Form$useForm = antd.Form.useForm(),
12344
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
12345
- form = _Form$useForm2[0];
12346
- var _useAntdTable = ahooks.useAntdTable(getTableData, {
12347
- defaultPageSize: 10,
12348
- form: form
12349
- }),
12350
- tableProps = _useAntdTable.tableProps,
12351
- search = _useAntdTable.search,
12352
- params = _useAntdTable.params;
12353
- var submit = search.submit,
12354
- reset = search.reset;
12355
- var setGoodBrandList = function setGoodBrandList() {
12356
- var list = [];
12357
- var pageNo = 0;
12358
- var pageSize = 100;
12359
- var getMore = function getMore() {
12360
- extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
12361
- method: 'post',
12362
- data: {
12363
- pageSize: pageSize,
12364
- pageNo: pageNo
12365
- }
12366
- }).then(function (res) {
12367
- var _res$data2;
12368
- if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
12369
- var _res$data3, _res$data4;
12370
- 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) || []));
12371
- if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
12372
- pageNo += 1;
12373
- getMore();
12374
- } else {
12375
- setBrandList(list);
12376
- }
12377
- } else {
12378
- lodash.reject(res);
12379
- }
12380
- }).catch(console.error);
12381
- };
12382
- getMore();
12383
- };
12384
- React__default['default'].useEffect(function () {
12385
- setGoodBrandList();
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();
12600
+ }
12601
+ }, _callee);
12602
+ }))();
12386
12603
  }, []);
12387
- 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, {
12388
12642
  layout: "inline",
12389
12643
  form: form
12390
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12391
- name: "skuName",
12392
- style: {
12393
- marginBottom: '12px'
12394
- }
12395
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12396
- placeholder: "SKU\u540D\u79F0",
12397
- allowClear: true,
12398
- style: {
12399
- width: 150
12400
- }
12401
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12402
- name: "skuCode",
12403
- style: {
12404
- marginBottom: '12px'
12405
- }
12406
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12407
- placeholder: "SKU\u7F16\u7801",
12408
- allowClear: true,
12409
- style: {
12410
- width: 150
12411
- }
12412
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12413
- name: "goodName",
12414
- style: {
12415
- marginBottom: '12px'
12416
- }
12417
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12418
- placeholder: "\u5546\u54C1\u540D\u79F0",
12419
- allowClear: true,
12420
- style: {
12421
- width: 150
12422
- }
12423
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12424
- name: "goodNo",
12425
- style: {
12426
- marginBottom: '12px'
12427
- }
12428
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12429
- placeholder: "\u5546\u54C1\u7F16\u7801",
12430
- allowClear: true,
12431
- style: {
12432
- width: 150
12433
- }
12434
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12435
- name: "brandIds",
12436
- style: {
12437
- marginBottom: '12px'
12438
- }
12439
- }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
12440
- mode: "multiple",
12441
- showSearch: true,
12442
- allowClear: true,
12443
- filterOption: function filterOption(input, option) {
12444
- return option.label.includes(input);
12445
- },
12446
- style: {
12447
- width: 150
12448
- },
12449
- placeholder: "\u54C1\u724C",
12450
- options: brandList.filter(function (item) {
12451
- return !item.isDisabled;
12452
- }).map(function (_ref2) {
12453
- var value = _ref2.brandId,
12454
- label = _ref2.brandName;
12455
- return {
12456
- value: value,
12457
- label: label
12458
- };
12459
- })
12460
- })), /*#__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, {
12461
12681
  style: {
12462
12682
  marginBottom: '12px'
12463
12683
  }
@@ -12466,10 +12686,154 @@ var GoodList = function GoodList(props, ref) {
12466
12686
  style: {
12467
12687
  marginRight: '8px'
12468
12688
  },
12469
- onClick: submit
12689
+ onClick: function onClick() {
12690
+ return submitForm(true);
12691
+ }
12470
12692
  }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12471
12693
  onClick: reset
12472
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
+ }];
12473
12837
  var rowSelection = {
12474
12838
  selectedRowKeys: selectIds,
12475
12839
  fixed: true,
@@ -12525,7 +12889,7 @@ var GoodList = function GoodList(props, ref) {
12525
12889
  }
12526
12890
  }, "\u5220\u9664");
12527
12891
  }
12528
- }].concat(lodash.takeRight(columns$1, columns$1.length - 1));
12892
+ }].concat(lodash.takeRight(columns, columns.length - 1));
12529
12893
  return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
12530
12894
  style: {
12531
12895
  width: '100%',
@@ -12547,14 +12911,23 @@ var GoodList = function GoodList(props, ref) {
12547
12911
  }
12548
12912
  })) : null;
12549
12913
  };
12550
- 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", {
12551
12924
  style: {
12552
12925
  marginTop: '4px'
12553
12926
  }
12554
12927
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
12555
12928
  rowSelection: rowSelection,
12556
12929
  rowKey: "specNo",
12557
- columns: columns$1,
12930
+ columns: columns,
12558
12931
  scroll: {
12559
12932
  x: '100%',
12560
12933
  y: 250
@@ -12611,124 +12984,42 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
12611
12984
  ref: wdtGoodListRef
12612
12985
  })));
12613
12986
  };
12614
- var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
12615
-
12616
- var getTableData$1 = function getTableData(_ref, formData) {
12617
- var current = _ref.current,
12618
- pageSize = _ref.pageSize;
12619
- return extendRequest('/qy/gdfw/product/product/page', {
12620
- method: 'post',
12621
- data: _objectSpread2({
12622
- pageSize: pageSize,
12623
- pageNo: current,
12624
- platform: 'JST_ERP'
12625
- }, formData)
12626
- }).then(function (res) {
12627
- var _res$data = res.data,
12628
- _res$data$productSkuL = _res$data.productSkuList,
12629
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12630
- _res$data$total = _res$data.total,
12631
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12632
- var newProducts = productSkuList.map(function (item, index) {
12633
- return _objectSpread2({}, item);
12634
- });
12635
- return {
12636
- total: total,
12637
- list: newProducts
12638
- };
12639
- });
12640
- };
12641
- var columns$2 = [{
12642
- dataIndex: 'index',
12643
- title: 'NO',
12644
- render: function render(val, record, index) {
12645
- return /*#__PURE__*/React__default['default'].createElement("div", {
12646
- style: {
12647
- width: 25
12648
- }
12649
- }, index + 1);
12650
- },
12651
- width: 80
12652
- }, {
12653
- dataIndex: 'goodName',
12654
- title: '商品名称',
12655
- width: 250,
12656
- ellipsis: true
12657
- }, {
12658
- dataIndex: 'goodNo',
12659
- title: '商品编码',
12660
- width: 200,
12661
- ellipsis: true
12662
- }, {
12663
- dataIndex: 'styleCode',
12664
- title: '款式编码',
12665
- width: 200,
12666
- ellipsis: true
12667
- }, {
12668
- dataIndex: 'propertiesValue',
12669
- title: '规格值',
12670
- width: 200,
12671
- ellipsis: true
12672
- }, {
12673
- dataIndex: 'goodPicUrl',
12674
- title: '商品图片',
12675
- width: 100,
12676
- render: function render(picUrl) {
12677
- return /*#__PURE__*/React__default['default'].createElement("img", {
12678
- style: {
12679
- width: '40px',
12680
- height: '40px',
12681
- objectFit: 'contain'
12682
- },
12683
- 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);
12684
13007
  });
12685
- }
12686
- }, {
12687
- dataIndex: 'goodShortName',
12688
- title: "\u5546\u54C1\u7B80\u79F0",
12689
- ellipsis: true,
12690
- width: 250
12691
- }, {
12692
- dataIndex: 'brandName',
12693
- title: '品牌名称',
12694
- width: 200,
12695
- ellipsis: true
12696
- }, {
12697
- dataIndex: 'retailPrice',
12698
- title: "\u9500\u552E\u4EF7\u683C",
12699
- ellipsis: true,
12700
- width: 100,
12701
- render: function render(price) {
12702
- return price || price === 0 ? Number(price).toFixed(2) : '';
12703
- }
12704
- }, {
12705
- dataIndex: 'marketPrice',
12706
- title: "\u5E02\u573A\u4EF7",
12707
- ellipsis: true,
12708
- width: 100,
12709
- render: function render(price) {
12710
- return price || price === 0 ? Number(price).toFixed(2) : '';
12711
- }
13008
+ return {
13009
+ total: total,
13010
+ list: newProducts
13011
+ };
13012
+ });
13013
+ };
13014
+ var searchFormData = [{
13015
+ label: '商品名称',
13016
+ name: 'goodName'
12712
13017
  }, {
12713
- dataIndex: 'costPrice',
12714
- title: "\u6210\u672C\u4EF7",
12715
- ellipsis: true,
12716
- width: 100,
12717
- render: function render(price) {
12718
- return price || price === 0 ? Number(price).toFixed(2) : '';
12719
- }
13018
+ label: '商品编码',
13019
+ name: 'goodNo'
12720
13020
  }, {
12721
- dataIndex: 'skuType',
12722
- title: "\u5546\u54C1\u7C7B\u578B",
12723
- ellipsis: true,
12724
- width: 100,
12725
- render: function render() {
12726
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
12727
- return {
12728
- 'combine': '组合装商品',
12729
- 'normal': '普通商品'
12730
- }[type] || type;
12731
- }
13021
+ label: '款式编码',
13022
+ name: 'styleCode'
12732
13023
  }];
12733
13024
  var GoodList$1 = function GoodList(props, ref) {
12734
13025
  var _useState = React.useState([]),
@@ -12739,6 +13030,11 @@ var GoodList$1 = function GoodList(props, ref) {
12739
13030
  _useState4 = _slicedToArray(_useState3, 2),
12740
13031
  selectIds = _useState4[0],
12741
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];
12742
13038
  React.useImperativeHandle(ref, function () {
12743
13039
  return {
12744
13040
  getSelectGoodList: function getSelectGoodList() {
@@ -12758,55 +13054,6 @@ var GoodList$1 = function GoodList(props, ref) {
12758
13054
  params = _useAntdTable.params;
12759
13055
  var submit = search.submit,
12760
13056
  reset = search.reset;
12761
- var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
12762
- layout: "inline",
12763
- form: form
12764
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12765
- name: "goodName",
12766
- style: {
12767
- marginBottom: '12px'
12768
- }
12769
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12770
- placeholder: "\u5546\u54C1\u540D\u79F0",
12771
- allowClear: true,
12772
- style: {
12773
- width: 150
12774
- }
12775
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12776
- name: "goodNo",
12777
- style: {
12778
- marginBottom: '12px'
12779
- }
12780
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12781
- placeholder: "\u5546\u54C1\u7F16\u7801",
12782
- allowClear: true,
12783
- style: {
12784
- width: 150
12785
- }
12786
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12787
- name: "styleCode",
12788
- style: {
12789
- marginBottom: '12px'
12790
- }
12791
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12792
- placeholder: "\u6B3E\u5F0F\u7F16\u7801",
12793
- allowClear: true,
12794
- style: {
12795
- width: 150
12796
- }
12797
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12798
- style: {
12799
- marginBottom: '12px'
12800
- }
12801
- }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12802
- type: "primary",
12803
- style: {
12804
- marginRight: '8px'
12805
- },
12806
- onClick: submit
12807
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12808
- onClick: reset
12809
- }, "\u91CD\u7F6E")));
12810
13057
  var rowSelection = {
12811
13058
  selectedRowKeys: selectIds,
12812
13059
  fixed: true,
@@ -12871,7 +13118,7 @@ var GoodList$1 = function GoodList(props, ref) {
12871
13118
  }
12872
13119
  }, "\u5220\u9664");
12873
13120
  }
12874
- }].concat(lodash.takeRight(columns$2, columns$2.length - 1));
13121
+ }].concat(lodash.takeRight(columns, columns.length - 1));
12875
13122
  return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
12876
13123
  style: {
12877
13124
  width: '100%',
@@ -12893,14 +13140,23 @@ var GoodList$1 = function GoodList(props, ref) {
12893
13140
  }
12894
13141
  })) : null;
12895
13142
  };
12896
- 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", {
12897
13153
  style: {
12898
13154
  marginTop: '4px'
12899
13155
  }
12900
13156
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
12901
13157
  rowSelection: rowSelection,
12902
13158
  rowKey: "goodNo",
12903
- columns: columns$2,
13159
+ columns: columns,
12904
13160
  scroll: {
12905
13161
  x: '100%',
12906
13162
  y: 250
@@ -12936,164 +13192,84 @@ var GyGoodsModal = function GyGoodsModal(props, ref) {
12936
13192
  setVisible = _useState2[1];
12937
13193
  var _useState3 = React.useState([]),
12938
13194
  _useState4 = _slicedToArray(_useState3, 2),
12939
- selectedRows = _useState4[0],
12940
- setSelectedRows = _useState4[1];
12941
- var gyGoodsListRef = React.useRef(null);
12942
- var _onCancel = function onCancel() {
12943
- setVisible(false);
12944
- };
12945
- var onOk = function onOk() {
12946
- var _gyGoodsListRef$curre;
12947
- var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
12948
- onSubmit(selectedList);
12949
- _onCancel();
12950
- };
12951
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
12952
- title: '选择商品',
12953
- okText: '确认',
12954
- cancelText: '取消',
12955
- visible: visible,
12956
- width: width || 850,
12957
- onCancel: function onCancel() {
12958
- _onCancel();
12959
- },
12960
- onOk: onOk,
12961
- wrapClassName: "goodModal"
12962
- }, /*#__PURE__*/React__default['default'].createElement(GyGoodsList, {
12963
- ref: gyGoodsListRef,
12964
- selectedRows: selectedRows
12965
- })));
12966
- };
12967
- var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
12968
-
12969
- var getTableData$2 = function getTableData(_ref, formData) {
12970
- var current = _ref.current,
12971
- pageSize = _ref.pageSize;
12972
- var data = {
12973
- goodNo: formData.goodNo || null,
12974
- goodName: formData.goodName || null,
12975
- skuCode: formData.skuCode || null,
12976
- skuId: formData.skuId || null
12977
- };
12978
- return extendRequest('/qy/gdfw/product/product/page', {
12979
- method: 'post',
12980
- data: _objectSpread2({
12981
- pageSize: pageSize,
12982
- pageNo: current,
12983
- platform: 'BS_E3_ERP'
12984
- }, data)
12985
- }).then(function (res) {
12986
- var _res$data = res.data,
12987
- _res$data$productSkuL = _res$data.productSkuList,
12988
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12989
- _res$data$total = _res$data.total,
12990
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12991
- var newProducts = productSkuList.map(function (item, index) {
12992
- return _objectSpread2(_objectSpread2({}, item), {}, {
12993
- index: index + 1
12994
- });
12995
- });
12996
- return {
12997
- total: total,
12998
- list: newProducts
12999
- };
13000
- });
13001
- };
13002
- var columns$3 = [{
13003
- dataIndex: 'index',
13004
- title: 'NO',
13005
- render: function render(val, record, index) {
13006
- return /*#__PURE__*/React__default['default'].createElement("div", {
13007
- style: {
13008
- width: 25
13009
- }
13010
- }, index + 1);
13011
- },
13012
- width: 80
13013
- }, {
13014
- dataIndex: 'specNo',
13015
- title: "SKU",
13016
- ellipsis: true,
13017
- width: 200
13018
- }, {
13019
- dataIndex: 'specId',
13020
- title: "SKU ID",
13021
- ellipsis: true,
13022
- width: 80
13023
- }, {
13024
- dataIndex: 'goodName',
13025
- title: "\u5546\u54C1\u540D\u79F0",
13026
- ellipsis: true,
13027
- width: 250
13028
- }, {
13029
- dataIndex: 'goodShortName',
13030
- title: "\u5546\u54C1\u7B80\u79F0",
13031
- ellipsis: true,
13032
- width: 250
13033
- },
13034
- // {
13035
- // dataIndex: 'goodPicUrl',
13036
- // title: `商品图片`,
13037
- // ellipsis: true,
13038
- // width: 100,
13039
- // render: (picUrl: string) => {
13040
- // return (
13041
- // <img
13042
- // style={{
13043
- // width: '40px',
13044
- // height: '40px',
13045
- // objectFit: 'contain',
13046
- // }}
13047
- // src={picUrl}
13048
- // ></img>
13049
- // );
13050
- // },
13051
- // },
13052
- {
13053
- dataIndex: 'goodNo',
13054
- title: "\u8D27\u53F7",
13055
- ellipsis: true,
13056
- width: 150
13057
- }, {
13058
- dataIndex: 'goodId',
13059
- title: "\u8D27\u53F7ID",
13060
- ellipsis: true,
13061
- width: 100
13062
- }, {
13063
- dataIndex: 'colorName',
13064
- title: "\u989C\u8272\u540D\u79F0",
13065
- ellipsis: true,
13066
- width: 100
13067
- }, {
13068
- dataIndex: 'colorCode',
13069
- title: "\u989C\u8272\u4EE3\u7801",
13070
- ellipsis: true,
13071
- width: 100
13072
- }, {
13073
- dataIndex: 'sizeName',
13074
- title: "\u5C3A\u7801\u540D\u79F0",
13075
- ellipsis: true,
13076
- width: 100
13077
- }, {
13078
- dataIndex: 'sizeCode',
13079
- title: "\u5C3A\u7801\u4EE3\u7801",
13080
- ellipsis: true,
13081
- 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'
13082
13262
  }, {
13083
- dataIndex: 'brandName',
13084
- title: "\u54C1\u724C\u540D\u79F0",
13085
- ellipsis: true,
13086
- width: 100
13263
+ label: '商品名称',
13264
+ name: 'goodName'
13087
13265
  }, {
13088
- dataIndex: 'marketPrice',
13089
- title: "\u5E02\u573A\u4EF7",
13090
- ellipsis: true,
13091
- width: 100
13266
+ label: 'SKU',
13267
+ name: 'skuCode',
13268
+ dataIndex: 'specNo'
13092
13269
  }, {
13093
- dataIndex: 'retailPrice',
13094
- title: "\u552E\u4EF7",
13095
- ellipsis: true,
13096
- width: 100
13270
+ label: 'SKU ID',
13271
+ name: 'skuId',
13272
+ dataIndex: 'specId'
13097
13273
  }];
13098
13274
  var GoodList$2 = function GoodList(props, ref) {
13099
13275
  var _useState = React.useState([]),
@@ -13104,6 +13280,11 @@ var GoodList$2 = function GoodList(props, ref) {
13104
13280
  _useState4 = _slicedToArray(_useState3, 2),
13105
13281
  selectIds = _useState4[0],
13106
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];
13107
13288
  React.useImperativeHandle(ref, function () {
13108
13289
  return {
13109
13290
  getSelectGoodList: function getSelectGoodList() {
@@ -13123,66 +13304,6 @@ var GoodList$2 = function GoodList(props, ref) {
13123
13304
  params = _useAntdTable.params;
13124
13305
  var submit = search.submit,
13125
13306
  reset = search.reset;
13126
- var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
13127
- layout: "inline",
13128
- form: form
13129
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13130
- name: "goodNo",
13131
- style: {
13132
- marginBottom: '12px'
13133
- }
13134
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13135
- placeholder: "\u5546\u54C1\u8D27\u53F7",
13136
- allowClear: true,
13137
- style: {
13138
- width: 150
13139
- }
13140
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13141
- name: "goodName",
13142
- style: {
13143
- marginBottom: '12px'
13144
- }
13145
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13146
- placeholder: "\u5546\u54C1\u540D\u79F0",
13147
- allowClear: true,
13148
- style: {
13149
- width: 150
13150
- }
13151
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13152
- name: "skuCode",
13153
- style: {
13154
- marginBottom: '12px'
13155
- }
13156
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13157
- placeholder: "SKU",
13158
- allowClear: true,
13159
- style: {
13160
- width: 150
13161
- }
13162
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13163
- name: "skuId",
13164
- style: {
13165
- marginBottom: '12px'
13166
- }
13167
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13168
- placeholder: "SKU ID",
13169
- allowClear: true,
13170
- style: {
13171
- width: 150
13172
- }
13173
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13174
- style: {
13175
- marginBottom: '12px'
13176
- }
13177
- }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13178
- type: "primary",
13179
- style: {
13180
- marginRight: '8px'
13181
- },
13182
- onClick: submit
13183
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13184
- onClick: reset
13185
- }, "\u91CD\u7F6E")));
13186
13307
  var rowSelection = {
13187
13308
  selectedRowKeys: selectIds,
13188
13309
  fixed: true,
@@ -13238,7 +13359,7 @@ var GoodList$2 = function GoodList(props, ref) {
13238
13359
  }
13239
13360
  }, "\u5220\u9664");
13240
13361
  }
13241
- }].concat(lodash.takeRight(columns$3, columns$3.length - 1));
13362
+ }].concat(lodash.takeRight(columns, columns.length - 1));
13242
13363
  return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
13243
13364
  style: {
13244
13365
  width: '100%',
@@ -13260,14 +13381,23 @@ var GoodList$2 = function GoodList(props, ref) {
13260
13381
  }
13261
13382
  })) : null;
13262
13383
  };
13263
- 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", {
13264
13394
  style: {
13265
13395
  marginTop: '4px'
13266
13396
  }
13267
13397
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
13268
13398
  rowSelection: rowSelection,
13269
13399
  rowKey: "specNo",
13270
- columns: columns$3,
13400
+ columns: columns,
13271
13401
  scroll: {
13272
13402
  x: '100%',
13273
13403
  y: 250
@@ -13358,71 +13488,23 @@ var getTableData$3 = function getTableData(_ref, formData) {
13358
13488
  };
13359
13489
  });
13360
13490
  };
13361
- var columns$4 = [{
13362
- dataIndex: 'index',
13363
- title: 'NO',
13364
- render: function render(val, record, index) {
13365
- return /*#__PURE__*/React__default['default'].createElement("div", {
13366
- style: {
13367
- width: 25
13368
- }
13369
- }, index + 1);
13370
- },
13371
- width: 80
13372
- }, {
13373
- dataIndex: 'specName',
13374
- title: 'SKU名称',
13375
- width: 250,
13376
- ellipsis: true
13377
- }, {
13378
- dataIndex: 'specNo',
13379
- title: 'SKU编码',
13380
- width: 200,
13381
- ellipsis: true
13382
- }, {
13383
- dataIndex: 'goodName',
13384
- title: '商品名称',
13385
- width: 250,
13386
- ellipsis: true
13387
- }, {
13388
- dataIndex: 'goodShortName',
13389
- title: "\u5546\u54C1\u7B80\u79F0",
13390
- ellipsis: true,
13391
- width: 250
13392
- }, {
13393
- dataIndex: 'goodNo',
13394
- title: '商品编码',
13395
- width: 200,
13396
- ellipsis: true
13491
+ var searchFormData$2 = [{
13492
+ label: '商品简称',
13493
+ name: 'goodShortName'
13397
13494
  }, {
13398
- dataIndex: 'goodPicUrl',
13399
- title: '商品图片',
13400
- width: 100,
13401
- render: function render(picUrl) {
13402
- return /*#__PURE__*/React__default['default'].createElement("img", {
13403
- style: {
13404
- width: '40px',
13405
- height: '40px',
13406
- objectFit: 'contain'
13407
- },
13408
- src: picUrl
13409
- });
13410
- }
13495
+ label: '商品sku名称',
13496
+ name: 'skuName',
13497
+ dataIndex: 'specName'
13411
13498
  }, {
13412
- dataIndex: 'brandName',
13413
- title: '品牌名称',
13414
- width: 200,
13415
- ellipsis: true
13499
+ label: '商品sku编码',
13500
+ name: 'skuCode',
13501
+ dataIndex: 'specNo'
13416
13502
  }, {
13417
- dataIndex: 'retailPrice',
13418
- title: "\u6807\u51C6\u552E\u4EF7",
13419
- ellipsis: true,
13420
- width: 100
13503
+ label: '商品名称',
13504
+ name: 'goodName'
13421
13505
  }, {
13422
- dataIndex: 'costPrice',
13423
- title: "\u6210\u672C\u4EF7",
13424
- ellipsis: true,
13425
- width: 100
13506
+ label: '商品编码',
13507
+ name: 'goodNo'
13426
13508
  }];
13427
13509
  var GoodList$3 = function GoodList(props, ref) {
13428
13510
  var _useState = React.useState([]),
@@ -13433,6 +13515,11 @@ var GoodList$3 = function GoodList(props, ref) {
13433
13515
  _useState4 = _slicedToArray(_useState3, 2),
13434
13516
  selectIds = _useState4[0],
13435
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];
13436
13523
  React.useImperativeHandle(ref, function () {
13437
13524
  return {
13438
13525
  getSelectGoodList: function getSelectGoodList() {
@@ -13452,77 +13539,6 @@ var GoodList$3 = function GoodList(props, ref) {
13452
13539
  params = _useAntdTable.params;
13453
13540
  var submit = search.submit,
13454
13541
  reset = search.reset;
13455
- var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
13456
- layout: "inline",
13457
- form: form
13458
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13459
- name: "goodShortName",
13460
- style: {
13461
- marginBottom: '12px'
13462
- }
13463
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13464
- placeholder: "\u5546\u54C1\u7B80\u79F0",
13465
- allowClear: true,
13466
- style: {
13467
- width: 150
13468
- }
13469
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13470
- name: "skuName",
13471
- style: {
13472
- marginBottom: '12px'
13473
- }
13474
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13475
- placeholder: "\u5546\u54C1sku\u540D\u79F0",
13476
- allowClear: true,
13477
- style: {
13478
- width: 150
13479
- }
13480
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13481
- name: "skuCode",
13482
- style: {
13483
- marginBottom: '12px'
13484
- }
13485
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13486
- placeholder: "\u5546\u54C1sku\u7F16\u7801",
13487
- allowClear: true,
13488
- style: {
13489
- width: 150
13490
- }
13491
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13492
- name: "goodName",
13493
- style: {
13494
- marginBottom: '12px'
13495
- }
13496
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13497
- placeholder: "\u5546\u54C1\u540D\u79F0",
13498
- allowClear: true,
13499
- style: {
13500
- width: 150
13501
- }
13502
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13503
- name: "goodNo",
13504
- style: {
13505
- marginBottom: '12px'
13506
- }
13507
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13508
- placeholder: "\u5546\u54C1\u7F16\u7801",
13509
- allowClear: true,
13510
- style: {
13511
- width: 150
13512
- }
13513
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13514
- style: {
13515
- marginBottom: '12px'
13516
- }
13517
- }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13518
- type: "primary",
13519
- style: {
13520
- marginRight: '8px'
13521
- },
13522
- onClick: submit
13523
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13524
- onClick: reset
13525
- }, "\u91CD\u7F6E")));
13526
13542
  var rowSelection = {
13527
13543
  selectedRowKeys: selectIds,
13528
13544
  fixed: true,
@@ -13578,7 +13594,7 @@ var GoodList$3 = function GoodList(props, ref) {
13578
13594
  }
13579
13595
  }, "\u5220\u9664");
13580
13596
  }
13581
- }].concat(lodash.takeRight(columns$4, columns$4.length - 1));
13597
+ }].concat(lodash.takeRight(columns, columns.length - 1));
13582
13598
  return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
13583
13599
  style: {
13584
13600
  width: '100%',
@@ -13600,14 +13616,23 @@ var GoodList$3 = function GoodList(props, ref) {
13600
13616
  }
13601
13617
  })) : null;
13602
13618
  };
13603
- 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", {
13604
13629
  style: {
13605
13630
  marginTop: '4px'
13606
13631
  }
13607
13632
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
13608
13633
  rowSelection: rowSelection,
13609
13634
  rowKey: "id",
13610
- columns: columns$4,
13635
+ columns: columns,
13611
13636
  scroll: {
13612
13637
  x: '100%',
13613
13638
  y: 250
@@ -14087,7 +14112,7 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
14087
14112
  var disabled = _ref2.disabled,
14088
14113
  updateHandle = _ref2.updateHandle,
14089
14114
  operate = _ref2.operate;
14090
- return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
14115
+ return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
14091
14116
  var newItem = _objectSpread2({
14092
14117
  align: 'center',
14093
14118
  ellipsis: true
@@ -15610,7 +15635,7 @@ var getColumns$6 = function getColumns(_ref) {
15610
15635
  };
15611
15636
  };
15612
15637
 
15613
- var getColumnsMap = function getColumnsMap(args) {
15638
+ var getColumnsMap$1 = function getColumnsMap(args) {
15614
15639
  var _ref = args || {},
15615
15640
  _ref$text = _ref.text,
15616
15641
  text = _ref$text === void 0 ? '' : _ref$text,
@@ -15650,8 +15675,8 @@ var getColumnsMap = function getColumnsMap(args) {
15650
15675
  })['default']
15651
15676
  });
15652
15677
  };
15653
- var getColumnsBaseInfo = function getColumnsBaseInfo() {
15654
- var clone_columnsMap = lodash.cloneDeep(getColumnsMap());
15678
+ var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
15679
+ var clone_columnsMap = lodash.cloneDeep(getColumnsMap$1());
15655
15680
  var newColumns = {};
15656
15681
  Object.keys(clone_columnsMap).forEach(function (key) {
15657
15682
  newColumns[key] = clone_columnsMap[key].map(function (col) {
@@ -15663,7 +15688,7 @@ var getColumnsBaseInfo = function getColumnsBaseInfo() {
15663
15688
  });
15664
15689
  return newColumns;
15665
15690
  };
15666
- var columnsBaseInfoMap = getColumnsBaseInfo();
15691
+ var columnsBaseInfoMap = getColumnsBaseInfo$1();
15667
15692
 
15668
15693
  var renderFieldMap$1 = {
15669
15694
  goodsNumber: function goodsNumber(_ref) {
@@ -15730,7 +15755,7 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
15730
15755
  var disabled = _ref4.disabled,
15731
15756
  updateHandle = _ref4.updateHandle,
15732
15757
  operate = _ref4.operate;
15733
- return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
15758
+ return getColumnsMap$1()['BS_E3_REISSUE_GOODS'].map(function (item) {
15734
15759
  var newItem = _objectSpread2({
15735
15760
  align: 'center',
15736
15761
  ellipsis: true
@@ -15989,7 +16014,7 @@ var GoodItem$1 = function GoodItem(props) {
15989
16014
  case 'GY_REISSUE_GOODS':
15990
16015
  case 'GY_RETURN_GOODS':
15991
16016
  {
15992
- columns = getColumnsMap({
16017
+ columns = getColumnsMap$1({
15993
16018
  text: text,
15994
16019
  disabled: disabled || columnsOptions.disabled,
15995
16020
  updateHandle: updateHandle,
@@ -16016,7 +16041,7 @@ var GoodItem$1 = function GoodItem(props) {
16016
16041
  }
16017
16042
  break;
16018
16043
  default:
16019
- columns = getColumnsMap({
16044
+ columns = getColumnsMap$1({
16020
16045
  text: text,
16021
16046
  disabled: disabled || columnsOptions.disabled,
16022
16047
  updateHandle: updateHandle,
@@ -17153,7 +17178,7 @@ var rowKeyMap = {
17153
17178
  GY_SYSTEM_ORDER: 'billNo',
17154
17179
  JST_SYSTEM_ORDER: 'oId'
17155
17180
  };
17156
- var index$2 = (function (props) {
17181
+ var index$3 = (function (props) {
17157
17182
  var value = props.value,
17158
17183
  _onChange = props.onChange,
17159
17184
  disabled = props.disabled,
@@ -19158,7 +19183,7 @@ var Goods$1 = function Goods(props, ref) {
19158
19183
  userNick: userNick
19159
19184
  }));
19160
19185
  };
19161
- var index$3 = /*#__PURE__*/React.forwardRef(Goods$1);
19186
+ var index$4 = /*#__PURE__*/React.forwardRef(Goods$1);
19162
19187
 
19163
19188
  var _excluded$k = ["onChange", "value", "failValue"];
19164
19189
  function CommonStatus(props) {
@@ -19419,7 +19444,7 @@ var MsgStatus = function MsgStatus(props) {
19419
19444
  onClick: function onClick() {
19420
19445
  return setChangeIndex(index);
19421
19446
  }
19422
- }, kmkfUtils.msgTypeCh[key], item.ruleName);
19447
+ }, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
19423
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), {}, {
19424
19449
  showSearch: true,
19425
19450
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
@@ -20282,7 +20307,7 @@ exports.BsExchange = BsExchange;
20282
20307
  exports.BsGoods = BsGoods;
20283
20308
  exports.BsReissue = BsReissue;
20284
20309
  exports.BsReturn = BsReturnGoods;
20285
- exports.BsSystemOrder = index$2;
20310
+ exports.BsSystemOrder = index$3;
20286
20311
  exports.BuyerNick = BuyerNick;
20287
20312
  exports.CalculationInput = CalculationInput;
20288
20313
  exports.ChooseBaby = ChooseBaby;
@@ -20295,7 +20320,7 @@ exports.CommonSystemOrder = CommonSystemOrder;
20295
20320
  exports.CopyTextIcon = CopyTextIcon;
20296
20321
  exports.ExpressLogistics = ExpressLogistics;
20297
20322
  exports.Goods = Goods;
20298
- exports.GoodsTable = index$3;
20323
+ exports.GoodsTable = index$4;
20299
20324
  exports.GyReissue = GyReissue;
20300
20325
  exports.GyReturn = GyReturnGoods;
20301
20326
  exports.IdentifyAddress = IdentifyAddress;
@@ -20323,5 +20348,6 @@ exports.WdtGoodList = WdtGoodList;
20323
20348
  exports.WdtReissue = wdtReissue;
20324
20349
  exports.WlnGoods = WlnGoods;
20325
20350
  exports.columnsBaseInfoMap = columnsBaseInfoMap;
20351
+ exports.erpModalColumnsMap = index$2;
20326
20352
  exports.getJstColumns = getColumns$5;
20327
20353
  exports.getWlnColumns = getColumns$3;