@kmkf-fe-packages/basic-components 1.22.1-beta.19 → 1.22.1-beta.25

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.esm.js CHANGED
@@ -10,377 +10,363 @@ import zhCN from 'antd/lib/locale/zh_CN';
10
10
  import pubsub from 'pubsub-js';
11
11
  import BigNumber from 'bignumber.js';
12
12
 
13
- function _iterableToArrayLimit(r, l) {
14
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15
- if (null != t) {
16
- var e,
17
- n,
18
- i,
19
- u,
20
- a = [],
21
- f = !0,
22
- o = !1;
13
+ function _iterableToArrayLimit(arr, i) {
14
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
15
+ if (null != _i) {
16
+ var _s,
17
+ _e,
18
+ _x,
19
+ _r,
20
+ _arr = [],
21
+ _n = !0,
22
+ _d = !1;
23
23
  try {
24
- if (i = (t = t.call(r)).next, 0 === l) {
25
- if (Object(t) !== t) return;
26
- f = !1;
27
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
28
- } catch (r) {
29
- o = !0, n = r;
24
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
25
+ if (Object(_i) !== _i) return;
26
+ _n = !1;
27
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
28
+ } catch (err) {
29
+ _d = !0, _e = err;
30
30
  } finally {
31
31
  try {
32
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
32
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
33
33
  } finally {
34
- if (o) throw n;
34
+ if (_d) throw _e;
35
35
  }
36
36
  }
37
- return a;
37
+ return _arr;
38
38
  }
39
39
  }
40
- function ownKeys(e, r) {
41
- var t = Object.keys(e);
40
+ function ownKeys(object, enumerableOnly) {
41
+ var keys = Object.keys(object);
42
42
  if (Object.getOwnPropertySymbols) {
43
- var o = Object.getOwnPropertySymbols(e);
44
- r && (o = o.filter(function (r) {
45
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
46
- })), t.push.apply(t, o);
43
+ var symbols = Object.getOwnPropertySymbols(object);
44
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
45
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
46
+ })), keys.push.apply(keys, symbols);
47
47
  }
48
- return t;
49
- }
50
- function _objectSpread2(e) {
51
- for (var r = 1; r < arguments.length; r++) {
52
- var t = null != arguments[r] ? arguments[r] : {};
53
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
54
- _defineProperty(e, r, t[r]);
55
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
56
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
48
+ return keys;
49
+ }
50
+ function _objectSpread2(target) {
51
+ for (var i = 1; i < arguments.length; i++) {
52
+ var source = null != arguments[i] ? arguments[i] : {};
53
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
54
+ _defineProperty(target, key, source[key]);
55
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
56
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
57
57
  });
58
58
  }
59
- return e;
59
+ return target;
60
60
  }
61
61
  function _regeneratorRuntime() {
62
62
  _regeneratorRuntime = function () {
63
- return e;
63
+ return exports;
64
64
  };
65
- var t,
66
- e = {},
67
- r = Object.prototype,
68
- n = r.hasOwnProperty,
69
- o = Object.defineProperty || function (t, e, r) {
70
- t[e] = r.value;
65
+ var exports = {},
66
+ Op = Object.prototype,
67
+ hasOwn = Op.hasOwnProperty,
68
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
69
+ obj[key] = desc.value;
71
70
  },
72
- i = "function" == typeof Symbol ? Symbol : {},
73
- a = i.iterator || "@@iterator",
74
- c = i.asyncIterator || "@@asyncIterator",
75
- u = i.toStringTag || "@@toStringTag";
76
- function define(t, e, r) {
77
- return Object.defineProperty(t, e, {
78
- value: r,
71
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
72
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
73
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
74
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
75
+ function define(obj, key, value) {
76
+ return Object.defineProperty(obj, key, {
77
+ value: value,
79
78
  enumerable: !0,
80
79
  configurable: !0,
81
80
  writable: !0
82
- }), t[e];
81
+ }), obj[key];
83
82
  }
84
83
  try {
85
84
  define({}, "");
86
- } catch (t) {
87
- define = function (t, e, r) {
88
- return t[e] = r;
85
+ } catch (err) {
86
+ define = function (obj, key, value) {
87
+ return obj[key] = value;
89
88
  };
90
89
  }
91
- function wrap(t, e, r, n) {
92
- var i = e && e.prototype instanceof Generator ? e : Generator,
93
- a = Object.create(i.prototype),
94
- c = new Context(n || []);
95
- return o(a, "_invoke", {
96
- value: makeInvokeMethod(t, r, c)
97
- }), a;
90
+ function wrap(innerFn, outerFn, self, tryLocsList) {
91
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
92
+ generator = Object.create(protoGenerator.prototype),
93
+ context = new Context(tryLocsList || []);
94
+ return defineProperty(generator, "_invoke", {
95
+ value: makeInvokeMethod(innerFn, self, context)
96
+ }), generator;
98
97
  }
99
- function tryCatch(t, e, r) {
98
+ function tryCatch(fn, obj, arg) {
100
99
  try {
101
100
  return {
102
101
  type: "normal",
103
- arg: t.call(e, r)
102
+ arg: fn.call(obj, arg)
104
103
  };
105
- } catch (t) {
104
+ } catch (err) {
106
105
  return {
107
106
  type: "throw",
108
- arg: t
107
+ arg: err
109
108
  };
110
109
  }
111
110
  }
112
- e.wrap = wrap;
113
- var h = "suspendedStart",
114
- l = "suspendedYield",
115
- f = "executing",
116
- s = "completed",
117
- y = {};
111
+ exports.wrap = wrap;
112
+ var ContinueSentinel = {};
118
113
  function Generator() {}
119
114
  function GeneratorFunction() {}
120
115
  function GeneratorFunctionPrototype() {}
121
- var p = {};
122
- define(p, a, function () {
116
+ var IteratorPrototype = {};
117
+ define(IteratorPrototype, iteratorSymbol, function () {
123
118
  return this;
124
119
  });
125
- var d = Object.getPrototypeOf,
126
- v = d && d(d(values([])));
127
- v && v !== r && n.call(v, a) && (p = v);
128
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
129
- function defineIteratorMethods(t) {
130
- ["next", "throw", "return"].forEach(function (e) {
131
- define(t, e, function (t) {
132
- return this._invoke(e, t);
120
+ var getProto = Object.getPrototypeOf,
121
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
122
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
123
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
124
+ function defineIteratorMethods(prototype) {
125
+ ["next", "throw", "return"].forEach(function (method) {
126
+ define(prototype, method, function (arg) {
127
+ return this._invoke(method, arg);
133
128
  });
134
129
  });
135
130
  }
136
- function AsyncIterator(t, e) {
137
- function invoke(r, o, i, a) {
138
- var c = tryCatch(t[r], t, o);
139
- if ("throw" !== c.type) {
140
- var u = c.arg,
141
- h = u.value;
142
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
143
- invoke("next", t, i, a);
144
- }, function (t) {
145
- invoke("throw", t, i, a);
146
- }) : e.resolve(h).then(function (t) {
147
- u.value = t, i(u);
148
- }, function (t) {
149
- return invoke("throw", t, i, a);
131
+ function AsyncIterator(generator, PromiseImpl) {
132
+ function invoke(method, arg, resolve, reject) {
133
+ var record = tryCatch(generator[method], generator, arg);
134
+ if ("throw" !== record.type) {
135
+ var result = record.arg,
136
+ value = result.value;
137
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
138
+ invoke("next", value, resolve, reject);
139
+ }, function (err) {
140
+ invoke("throw", err, resolve, reject);
141
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
142
+ result.value = unwrapped, resolve(result);
143
+ }, function (error) {
144
+ return invoke("throw", error, resolve, reject);
150
145
  });
151
146
  }
152
- a(c.arg);
147
+ reject(record.arg);
153
148
  }
154
- var r;
155
- o(this, "_invoke", {
156
- value: function (t, n) {
149
+ var previousPromise;
150
+ defineProperty(this, "_invoke", {
151
+ value: function (method, arg) {
157
152
  function callInvokeWithMethodAndArg() {
158
- return new e(function (e, r) {
159
- invoke(t, n, e, r);
153
+ return new PromiseImpl(function (resolve, reject) {
154
+ invoke(method, arg, resolve, reject);
160
155
  });
161
156
  }
162
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
157
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
163
158
  }
164
159
  });
165
160
  }
166
- function makeInvokeMethod(e, r, n) {
167
- var o = h;
168
- return function (i, a) {
169
- if (o === f) throw new Error("Generator is already running");
170
- if (o === s) {
171
- if ("throw" === i) throw a;
172
- return {
173
- value: t,
174
- done: !0
175
- };
161
+ function makeInvokeMethod(innerFn, self, context) {
162
+ var state = "suspendedStart";
163
+ return function (method, arg) {
164
+ if ("executing" === state) throw new Error("Generator is already running");
165
+ if ("completed" === state) {
166
+ if ("throw" === method) throw arg;
167
+ return doneResult();
176
168
  }
177
- for (n.method = i, n.arg = a;;) {
178
- var c = n.delegate;
179
- if (c) {
180
- var u = maybeInvokeDelegate(c, n);
181
- if (u) {
182
- if (u === y) continue;
183
- return u;
169
+ for (context.method = method, context.arg = arg;;) {
170
+ var delegate = context.delegate;
171
+ if (delegate) {
172
+ var delegateResult = maybeInvokeDelegate(delegate, context);
173
+ if (delegateResult) {
174
+ if (delegateResult === ContinueSentinel) continue;
175
+ return delegateResult;
184
176
  }
185
177
  }
186
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
187
- if (o === h) throw o = s, n.arg;
188
- n.dispatchException(n.arg);
189
- } else "return" === n.method && n.abrupt("return", n.arg);
190
- o = f;
191
- var p = tryCatch(e, r, n);
192
- if ("normal" === p.type) {
193
- if (o = n.done ? s : l, p.arg === y) continue;
178
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
179
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
180
+ context.dispatchException(context.arg);
181
+ } else "return" === context.method && context.abrupt("return", context.arg);
182
+ state = "executing";
183
+ var record = tryCatch(innerFn, self, context);
184
+ if ("normal" === record.type) {
185
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
194
186
  return {
195
- value: p.arg,
196
- done: n.done
187
+ value: record.arg,
188
+ done: context.done
197
189
  };
198
190
  }
199
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
191
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
200
192
  }
201
193
  };
202
194
  }
203
- function maybeInvokeDelegate(e, r) {
204
- var n = r.method,
205
- o = e.iterator[n];
206
- 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;
207
- var i = tryCatch(o, e.iterator, r.arg);
208
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
209
- var a = i.arg;
210
- 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);
195
+ function maybeInvokeDelegate(delegate, context) {
196
+ var methodName = context.method,
197
+ method = delegate.iterator[methodName];
198
+ 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;
199
+ var record = tryCatch(method, delegate.iterator, context.arg);
200
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
201
+ var info = record.arg;
202
+ 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);
211
203
  }
212
- function pushTryEntry(t) {
213
- var e = {
214
- tryLoc: t[0]
204
+ function pushTryEntry(locs) {
205
+ var entry = {
206
+ tryLoc: locs[0]
215
207
  };
216
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
208
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
217
209
  }
218
- function resetTryEntry(t) {
219
- var e = t.completion || {};
220
- e.type = "normal", delete e.arg, t.completion = e;
210
+ function resetTryEntry(entry) {
211
+ var record = entry.completion || {};
212
+ record.type = "normal", delete record.arg, entry.completion = record;
221
213
  }
222
- function Context(t) {
214
+ function Context(tryLocsList) {
223
215
  this.tryEntries = [{
224
216
  tryLoc: "root"
225
- }], t.forEach(pushTryEntry, this), this.reset(!0);
217
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
226
218
  }
227
- function values(e) {
228
- if (e || "" === e) {
229
- var r = e[a];
230
- if (r) return r.call(e);
231
- if ("function" == typeof e.next) return e;
232
- if (!isNaN(e.length)) {
233
- var o = -1,
234
- i = function next() {
235
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
236
- return next.value = t, next.done = !0, next;
219
+ function values(iterable) {
220
+ if (iterable) {
221
+ var iteratorMethod = iterable[iteratorSymbol];
222
+ if (iteratorMethod) return iteratorMethod.call(iterable);
223
+ if ("function" == typeof iterable.next) return iterable;
224
+ if (!isNaN(iterable.length)) {
225
+ var i = -1,
226
+ next = function next() {
227
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
228
+ return next.value = undefined, next.done = !0, next;
237
229
  };
238
- return i.next = i;
230
+ return next.next = next;
239
231
  }
240
232
  }
241
- throw new TypeError(typeof e + " is not iterable");
233
+ return {
234
+ next: doneResult
235
+ };
236
+ }
237
+ function doneResult() {
238
+ return {
239
+ value: undefined,
240
+ done: !0
241
+ };
242
242
  }
243
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
243
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
244
244
  value: GeneratorFunctionPrototype,
245
245
  configurable: !0
246
- }), o(GeneratorFunctionPrototype, "constructor", {
246
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
247
247
  value: GeneratorFunction,
248
248
  configurable: !0
249
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
250
- var e = "function" == typeof t && t.constructor;
251
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
252
- }, e.mark = function (t) {
253
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
254
- }, e.awrap = function (t) {
249
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
250
+ var ctor = "function" == typeof genFun && genFun.constructor;
251
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
252
+ }, exports.mark = function (genFun) {
253
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
254
+ }, exports.awrap = function (arg) {
255
255
  return {
256
- __await: t
256
+ __await: arg
257
257
  };
258
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
258
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
259
259
  return this;
260
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
261
- void 0 === i && (i = Promise);
262
- var a = new AsyncIterator(wrap(t, r, n, o), i);
263
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
264
- return t.done ? t.value : a.next();
260
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
261
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
262
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
263
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
264
+ return result.done ? result.value : iter.next();
265
265
  });
266
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
266
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
267
267
  return this;
268
- }), define(g, "toString", function () {
268
+ }), define(Gp, "toString", function () {
269
269
  return "[object Generator]";
270
- }), e.keys = function (t) {
271
- var e = Object(t),
272
- r = [];
273
- for (var n in e) r.push(n);
274
- return r.reverse(), function next() {
275
- for (; r.length;) {
276
- var t = r.pop();
277
- if (t in e) return next.value = t, next.done = !1, next;
270
+ }), exports.keys = function (val) {
271
+ var object = Object(val),
272
+ keys = [];
273
+ for (var key in object) keys.push(key);
274
+ return keys.reverse(), function next() {
275
+ for (; keys.length;) {
276
+ var key = keys.pop();
277
+ if (key in object) return next.value = key, next.done = !1, next;
278
278
  }
279
279
  return next.done = !0, next;
280
280
  };
281
- }, e.values = values, Context.prototype = {
281
+ }, exports.values = values, Context.prototype = {
282
282
  constructor: Context,
283
- reset: function (e) {
284
- 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);
283
+ reset: function (skipTempReset) {
284
+ 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);
285
285
  },
286
286
  stop: function () {
287
287
  this.done = !0;
288
- var t = this.tryEntries[0].completion;
289
- if ("throw" === t.type) throw t.arg;
288
+ var rootRecord = this.tryEntries[0].completion;
289
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
290
290
  return this.rval;
291
291
  },
292
- dispatchException: function (e) {
293
- if (this.done) throw e;
294
- var r = this;
295
- function handle(n, o) {
296
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
292
+ dispatchException: function (exception) {
293
+ if (this.done) throw exception;
294
+ var context = this;
295
+ function handle(loc, caught) {
296
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
297
297
  }
298
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
299
- var i = this.tryEntries[o],
300
- a = i.completion;
301
- if ("root" === i.tryLoc) return handle("end");
302
- if (i.tryLoc <= this.prev) {
303
- var c = n.call(i, "catchLoc"),
304
- u = n.call(i, "finallyLoc");
305
- if (c && u) {
306
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
307
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
308
- } else if (c) {
309
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
298
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
299
+ var entry = this.tryEntries[i],
300
+ record = entry.completion;
301
+ if ("root" === entry.tryLoc) return handle("end");
302
+ if (entry.tryLoc <= this.prev) {
303
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
304
+ hasFinally = hasOwn.call(entry, "finallyLoc");
305
+ if (hasCatch && hasFinally) {
306
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
307
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
308
+ } else if (hasCatch) {
309
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
310
310
  } else {
311
- if (!u) throw new Error("try statement without catch or finally");
312
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
311
+ if (!hasFinally) throw new Error("try statement without catch or finally");
312
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
313
313
  }
314
314
  }
315
315
  }
316
316
  },
317
- abrupt: function (t, e) {
318
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
319
- var o = this.tryEntries[r];
320
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
321
- var i = o;
317
+ abrupt: function (type, arg) {
318
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
319
+ var entry = this.tryEntries[i];
320
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
321
+ var finallyEntry = entry;
322
322
  break;
323
323
  }
324
324
  }
325
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
326
- var a = i ? i.completion : {};
327
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
325
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
326
+ var record = finallyEntry ? finallyEntry.completion : {};
327
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
328
328
  },
329
- complete: function (t, e) {
330
- if ("throw" === t.type) throw t.arg;
331
- 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;
329
+ complete: function (record, afterLoc) {
330
+ if ("throw" === record.type) throw record.arg;
331
+ 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;
332
332
  },
333
- finish: function (t) {
334
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
335
- var r = this.tryEntries[e];
336
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
333
+ finish: function (finallyLoc) {
334
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
335
+ var entry = this.tryEntries[i];
336
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
337
337
  }
338
338
  },
339
- catch: function (t) {
340
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
341
- var r = this.tryEntries[e];
342
- if (r.tryLoc === t) {
343
- var n = r.completion;
344
- if ("throw" === n.type) {
345
- var o = n.arg;
346
- resetTryEntry(r);
339
+ catch: function (tryLoc) {
340
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
341
+ var entry = this.tryEntries[i];
342
+ if (entry.tryLoc === tryLoc) {
343
+ var record = entry.completion;
344
+ if ("throw" === record.type) {
345
+ var thrown = record.arg;
346
+ resetTryEntry(entry);
347
347
  }
348
- return o;
348
+ return thrown;
349
349
  }
350
350
  }
351
351
  throw new Error("illegal catch attempt");
352
352
  },
353
- delegateYield: function (e, r, n) {
353
+ delegateYield: function (iterable, resultName, nextLoc) {
354
354
  return this.delegate = {
355
- iterator: values(e),
356
- resultName: r,
357
- nextLoc: n
358
- }, "next" === this.method && (this.arg = t), y;
359
- }
360
- }, e;
361
- }
362
- function _toPrimitive(t, r) {
363
- if ("object" != typeof t || !t) return t;
364
- var e = t[Symbol.toPrimitive];
365
- if (void 0 !== e) {
366
- var i = e.call(t, r || "default");
367
- if ("object" != typeof i) return i;
368
- throw new TypeError("@@toPrimitive must return a primitive value.");
369
- }
370
- return ("string" === r ? String : Number)(t);
371
- }
372
- function _toPropertyKey(t) {
373
- var i = _toPrimitive(t, "string");
374
- return "symbol" == typeof i ? i : String(i);
355
+ iterator: values(iterable),
356
+ resultName: resultName,
357
+ nextLoc: nextLoc
358
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
359
+ }
360
+ }, exports;
375
361
  }
376
- function _typeof(o) {
362
+ function _typeof(obj) {
377
363
  "@babel/helpers - typeof";
378
364
 
379
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
380
- return typeof o;
381
- } : function (o) {
382
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
383
- }, _typeof(o);
365
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
366
+ return typeof obj;
367
+ } : function (obj) {
368
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
369
+ }, _typeof(obj);
384
370
  }
385
371
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
386
372
  try {
@@ -487,6 +473,20 @@ function _nonIterableSpread() {
487
473
  function _nonIterableRest() {
488
474
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
489
475
  }
476
+ function _toPrimitive(input, hint) {
477
+ if (typeof input !== "object" || input === null) return input;
478
+ var prim = input[Symbol.toPrimitive];
479
+ if (prim !== undefined) {
480
+ var res = prim.call(input, hint || "default");
481
+ if (typeof res !== "object") return res;
482
+ throw new TypeError("@@toPrimitive must return a primitive value.");
483
+ }
484
+ return (hint === "string" ? String : Number)(input);
485
+ }
486
+ function _toPropertyKey(arg) {
487
+ var key = _toPrimitive(arg, "string");
488
+ return typeof key === "symbol" ? key : String(key);
489
+ }
490
490
 
491
491
  function ApaasCascader(props) {
492
492
  return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
@@ -9358,7 +9358,8 @@ var GoodItem = function GoodItem(props) {
9358
9358
  type = _props$type === void 0 ? 2 : _props$type,
9359
9359
  _props$shopList = props.shopList,
9360
9360
  shopList = _props$shopList === void 0 ? [] : _props$shopList,
9361
- showHeader = props.showHeader,
9361
+ _props$showHeader = props.showHeader,
9362
+ showHeader = _props$showHeader === void 0 ? [] : _props$showHeader,
9362
9363
  _props$showChangeBtn = props.showChangeBtn,
9363
9364
  otherOperations = props.otherOperations,
9364
9365
  canUpdateNumber = props.canUpdateNumber,
@@ -9563,10 +9564,26 @@ var GoodItem = function GoodItem(props) {
9563
9564
  return _ref5.apply(this, arguments);
9564
9565
  };
9565
9566
  }();
9566
- var headerList = showHeader || {
9567
- 1: ['title', 'outerId', 'picUrl', 'numIid', 'skuId', 'outerSkuId', 'propertiesName' // sku 信息
9568
- ]
9569
- }[type] || [];
9567
+ var headerList = useMemo(function () {
9568
+ var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
9569
+ var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
9570
+ var dataIndexList = [];
9571
+ if (isStringArray) {
9572
+ dataIndexList = showHeader;
9573
+ } else if (isObjectArray) {
9574
+ dataIndexList = showHeader.map(function (item) {
9575
+ return item.dataIndex;
9576
+ });
9577
+ }
9578
+ return isStringArray ? showHeader : isObjectArray ? showHeader.filter(function (item) {
9579
+ return item.show !== false;
9580
+ }).map(function (item) {
9581
+ return item.dataIndex;
9582
+ }) : [] || {
9583
+ 1: ['title', 'outerId', 'picUrl', 'numIid', 'skuId', 'outerSkuId', 'propertiesName' // sku 信息
9584
+ ]
9585
+ }[type] || [];
9586
+ }, [showHeader]);
9570
9587
  //修改参数
9571
9588
  var handleChangeValue = function handleChangeValue(key, index) {
9572
9589
  return function (e) {
@@ -9581,35 +9598,56 @@ var GoodItem = function GoodItem(props) {
9581
9598
  };
9582
9599
  };
9583
9600
  // TODO: 目前只做了type 1的处理,其他的还是走老的文件 ./index.tsx
9584
- var goodItemAttrs = [{
9585
- isShow: headerList.includes('title'),
9586
- key: 'title',
9587
- label: '商品名称'
9588
- }, {
9589
- isShow: headerList.includes('outerId'),
9590
- key: 'outerId',
9591
- label: '商品编码'
9592
- },
9593
- // { isShow: headerList.includes('picUrl'), key: 'picUrl', label: '图片' },
9594
- {
9595
- isShow: headerList.includes('numIid'),
9596
- key: 'numIid',
9597
- label: '商品id'
9598
- }, {
9599
- isShow: changeSku && headerList.includes('skuId'),
9600
- key: 'skuId',
9601
- label: 'SKU ID'
9602
- }, {
9603
- isShow: changeSku && headerList.includes('outerSkuId'),
9604
- key: 'outerSkuId',
9605
- label: 'SKU 编码'
9606
- }, {
9607
- isShow: changeSku && headerList.includes('propertiesName'),
9608
- key: 'propertiesName',
9609
- label: 'SKU 信息'
9610
- }];
9611
- var hasPic = headerList.includes('picUrl');
9612
- var hasAttr = hasPic ? headerList.length > 1 : headerList.length > 0;
9601
+ var goodItemAttrs = useMemo(function () {
9602
+ var initList = [{
9603
+ isShow: headerList.includes('title'),
9604
+ key: 'title',
9605
+ label: '商品名称'
9606
+ }, {
9607
+ isShow: headerList.includes('outerId'),
9608
+ key: 'outerId',
9609
+ label: '商品编码'
9610
+ },
9611
+ // { isShow: headerList.includes('picUrl'), key: 'picUrl', label: '图片' },
9612
+ {
9613
+ isShow: headerList.includes('numIid'),
9614
+ key: 'numIid',
9615
+ label: '商品id'
9616
+ }, {
9617
+ isShow: changeSku && headerList.includes('skuId'),
9618
+ key: 'skuId',
9619
+ label: 'SKU ID'
9620
+ }, {
9621
+ isShow: changeSku && headerList.includes('outerSkuId'),
9622
+ key: 'outerSkuId',
9623
+ label: 'SKU 编码'
9624
+ }, {
9625
+ isShow: changeSku && headerList.includes('propertiesName'),
9626
+ key: 'propertiesName',
9627
+ label: 'SKU 信息'
9628
+ }];
9629
+ var newList = [];
9630
+ var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
9631
+ var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
9632
+ (isStringArray ? showHeader : isObjectArray ? showHeader.map(function (item) {
9633
+ return item.dataIndex;
9634
+ }) : []).forEach(function (dataIndex) {
9635
+ if (initList.find(function (item) {
9636
+ return item.key === dataIndex;
9637
+ })) {
9638
+ newList.push(initList.find(function (item) {
9639
+ return item.key === dataIndex;
9640
+ }));
9641
+ }
9642
+ });
9643
+ return newList;
9644
+ }, [headerList, showHeader]);
9645
+ var hasPic = useMemo(function () {
9646
+ return headerList.includes('picUrl');
9647
+ }, [headerList]);
9648
+ var hasAttr = useMemo(function () {
9649
+ return hasPic ? headerList.length > 1 : headerList.length > 0;
9650
+ }, [hasPic, headerList]);
9613
9651
  return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
9614
9652
  className: "goods-title"
9615
9653
  }, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
@@ -12431,237 +12469,1059 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
12431
12469
  };
12432
12470
  var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
12433
12471
 
12434
- var columns$3 = [{
12435
- dataIndex: 'sku',
12436
- title: "SKU",
12437
- width: 150
12438
- }, {
12439
- dataIndex: 'skuId',
12440
- title: "SKU ID",
12441
- width: 150
12442
- }, {
12443
- dataIndex: 'goodsName',
12444
- title: "\u5546\u54C1\u540D\u79F0",
12445
- width: 150
12446
- }, {
12447
- dataIndex: 'goodsShortName',
12448
- title: "\u5546\u54C1\u7B80\u79F0",
12449
- width: 150
12450
- }, {
12451
- dataIndex: 'picPath',
12452
- title: "\u5546\u54C1\u56FE\u7247",
12453
- width: 150
12454
- }, {
12455
- dataIndex: 'goodsSn',
12456
- title: "\u8D27\u53F7",
12457
- width: 150
12458
- }, {
12459
- dataIndex: 'goodsId',
12460
- title: "\u8D27\u53F7ID",
12461
- width: 150
12462
- }, {
12463
- dataIndex: 'colorName',
12464
- title: "\u989C\u8272\u540D\u79F0",
12465
- width: 150
12466
- }, {
12467
- dataIndex: 'colorCode',
12468
- title: "\u989C\u8272\u4EE3\u7801",
12469
- width: 150
12470
- }, {
12471
- dataIndex: 'sizeName',
12472
- title: "\u5C3A\u7801\u540D\u79F0",
12473
- width: 150
12474
- }, {
12475
- dataIndex: 'sizeCode',
12476
- title: "\u5C3A\u7801\u4EE3\u7801",
12477
- width: 150
12478
- }, {
12479
- dataIndex: 'brandName',
12480
- title: "\u54C1\u724C\u540D\u79F0",
12481
- width: 150
12482
- }, {
12483
- dataIndex: 'goodsNumber',
12484
- title: "\u5546\u54C1\u6570\u91CF",
12485
- width: 150
12486
- }, {
12487
- dataIndex: 'goodsPrice',
12488
- title: "\u5546\u54C1\u5355\u4EF7",
12489
- width: 150
12490
- }, {
12491
- dataIndex: 'shopPrice',
12492
- title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
12493
- width: 150
12494
- }, {
12495
- dataIndex: 'isGift',
12496
- title: "\u662F\u5426\u8D60\u54C1",
12497
- width: 150,
12498
- render: function render(val) {
12499
- return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
12500
- }
12501
- }];
12502
- var renderFieldMap = {
12503
- goodsNumber: function goodsNumber(_ref) {
12504
- var disabled = _ref.disabled,
12505
- updateHandle = _ref.updateHandle;
12506
- return function (val, record, index) {
12507
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12508
- style: {
12509
- width: 70
12510
- },
12511
- value: val,
12512
- min: 1,
12513
- precision: 0,
12514
- onChange: function onChange(num) {
12515
- return updateHandle(num, index, 'goodsNumber');
12516
- }
12517
- }) : /*#__PURE__*/React.createElement("span", null, val);
12518
- };
12519
- },
12520
- goodsPrice: function goodsPrice(_ref2) {
12521
- var disabled = _ref2.disabled,
12522
- updateHandle = _ref2.updateHandle;
12523
- return function (val, record, index) {
12524
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12525
- style: {
12526
- width: 70
12527
- },
12528
- value: val,
12529
- min: 0,
12530
- onChange: function onChange(value) {
12531
- return updateHandle(value, index, 'goodsPrice');
12532
- }
12533
- }) : /*#__PURE__*/React.createElement("span", null, val);
12534
- };
12535
- },
12536
- isGift: function isGift(_ref3) {
12537
- var disabled = _ref3.disabled,
12538
- updateHandle = _ref3.updateHandle;
12539
- return function (val, record, index) {
12540
- var options = [{
12541
- label: '是',
12542
- value: 1
12543
- }, {
12544
- label: '否',
12545
- value: 0
12546
- }];
12547
- return !disabled ? /*#__PURE__*/React.createElement(Select, {
12548
- style: {
12549
- width: 70
12550
- },
12551
- options: options,
12552
- value: val,
12553
- onChange: function onChange(value) {
12554
- return updateHandle(value, index, 'isGift');
12555
- },
12556
- getPopupContainer: function getPopupContainer() {
12557
- return document.getElementById('bsE3ReissueGoods');
12558
- }
12559
- }) : /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
12560
- };
12561
- }
12562
- };
12563
- var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
12564
- var disabled = _ref4.disabled,
12565
- updateHandle = _ref4.updateHandle,
12566
- operate = _ref4.operate;
12567
- return columns$3.map(function (item) {
12568
- var newItem = _objectSpread2({
12472
+ var getColumns = function getColumns(_ref) {
12473
+ var _ref$text = _ref.text,
12474
+ text = _ref$text === void 0 ? '' : _ref$text,
12475
+ disabled = _ref.disabled,
12476
+ updateHandle = _ref.updateHandle;
12477
+ return {
12478
+ //百胜E3补发商品
12479
+ BS_E3_REISSUE_GOODS: [{
12480
+ dataIndex: 'sku',
12481
+ title: "SKU",
12482
+ width: 150
12483
+ }, {
12484
+ dataIndex: 'skuId',
12485
+ title: "SKU ID",
12486
+ width: 150
12487
+ }, {
12488
+ dataIndex: 'goodsName',
12489
+ title: "\u5546\u54C1\u540D\u79F0",
12490
+ width: 150
12491
+ }, {
12492
+ dataIndex: 'goodsShortName',
12493
+ title: "\u5546\u54C1\u7B80\u79F0",
12494
+ width: 150
12495
+ }, {
12496
+ dataIndex: 'picPath',
12497
+ title: "\u5546\u54C1\u56FE\u7247",
12498
+ width: 150
12499
+ }, {
12500
+ dataIndex: 'goodsSn',
12501
+ title: "\u8D27\u53F7",
12502
+ width: 150
12503
+ }, {
12504
+ dataIndex: 'goodsId',
12505
+ title: "\u8D27\u53F7ID",
12506
+ width: 150
12507
+ }, {
12508
+ dataIndex: 'colorName',
12509
+ title: "\u989C\u8272\u540D\u79F0",
12510
+ width: 150
12511
+ }, {
12512
+ dataIndex: 'colorCode',
12513
+ title: "\u989C\u8272\u4EE3\u7801",
12514
+ width: 150
12515
+ }, {
12516
+ dataIndex: 'sizeName',
12517
+ title: "\u5C3A\u7801\u540D\u79F0",
12518
+ width: 150
12519
+ }, {
12520
+ dataIndex: 'sizeCode',
12521
+ title: "\u5C3A\u7801\u4EE3\u7801",
12522
+ width: 150
12523
+ }, {
12524
+ dataIndex: 'brandName',
12525
+ title: "\u54C1\u724C\u540D\u79F0",
12526
+ width: 150
12527
+ }, {
12528
+ dataIndex: 'goodsNumber',
12529
+ title: "\u5546\u54C1\u6570\u91CF",
12530
+ width: 150
12531
+ }, {
12532
+ dataIndex: 'goodsPrice',
12533
+ title: "\u5546\u54C1\u5355\u4EF7",
12534
+ width: 150
12535
+ }, {
12536
+ dataIndex: 'shopPrice',
12537
+ title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
12538
+ width: 150
12539
+ }, {
12540
+ dataIndex: 'isGift',
12541
+ title: "\u662F\u5426\u8D60\u54C1",
12542
+ width: 150,
12543
+ render: function render(val) {
12544
+ return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
12545
+ }
12546
+ }],
12547
+ //百胜E3商品信息
12548
+ BS_E3_GOODS: [{
12549
+ dataIndex: 'sku',
12550
+ title: "SKU",
12569
12551
  align: 'center',
12570
- ellipsis: true
12571
- }, item);
12572
- if (operate && (renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex])) {
12573
- return _objectSpread2(_objectSpread2({}, newItem), {}, {
12574
- render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
12575
- disabled: disabled,
12576
- updateHandle: updateHandle
12577
- })
12578
- });
12579
- }
12580
- return newItem;
12581
- });
12582
- };
12583
-
12584
- var renderGiftType = function renderGiftType(val) {
12585
- var giftTypeMap = {
12586
- 0: '非赠品',
12587
- 1: '自动赠送',
12588
- 2: '手工赠送',
12589
- 3: '回购自动送赠品',
12590
- 4: '前N有礼送赠品',
12591
- 6: '天猫优仓赠品',
12592
- 7: '淘宝CRM会员送赠'
12593
- };
12594
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
12595
- };
12596
- var columns$4 = [{
12597
- dataIndex: 'goodId',
12598
- title: "\u5546\u54C1ID",
12599
- width: 120
12600
- }, {
12601
- dataIndex: 'goodNo',
12602
- title: "\u5546\u54C1\u7F16\u7801",
12603
- width: 200
12604
- }, {
12605
- dataIndex: 'goodName',
12606
- title: "\u5546\u54C1\u540D\u79F0",
12607
- width: 200
12608
- }, {
12609
- dataIndex: 'specId',
12610
- title: "SKUID",
12611
- width: 150
12612
- }, {
12613
- dataIndex: 'specNo',
12614
- title: "\u5546\u54C1SKU\u7F16\u7801",
12615
- width: 200
12616
- }, {
12617
- dataIndex: 'specName',
12618
- title: "\u5546\u54C1SKU\u540D\u79F0",
12619
- width: 250
12620
- }, {
12621
- dataIndex: 'orderPrice',
12622
- title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
12623
- width: 200
12624
- }, {
12625
- dataIndex: 'num',
12626
- title: "\u6570\u91CF",
12627
- width: 100
12628
- }, {
12629
- dataIndex: 'sharePrice',
12630
- title: "\u5206\u644A\u4EF7",
12631
- width: 150
12632
- }, {
12633
- dataIndex: 'giftType',
12634
- title: "\u8D60\u54C1\u65B9\u5F0F",
12635
- width: 100,
12636
- render: renderGiftType
12637
- }];
12638
- var renderFieldMap$1 = {
12639
- num: function num(_ref) {
12640
- var disabled = _ref.disabled,
12641
- updateHandle = _ref.updateHandle;
12642
- return function (val, record, index) {
12643
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12644
- style: {
12645
- width: 70
12646
- },
12647
- value: val,
12648
- min: 1,
12649
- precision: 0,
12650
- onChange: function onChange(num) {
12651
- return updateHandle(num, index, 'num');
12652
- }
12552
+ ellipsis: true,
12553
+ width: 150
12554
+ }, {
12555
+ dataIndex: 'skuId',
12556
+ title: "SKU ID",
12557
+ align: 'center',
12558
+ ellipsis: true,
12559
+ width: 150
12560
+ }, {
12561
+ dataIndex: 'goodsName',
12562
+ title: "\u5546\u54C1\u540D\u79F0",
12563
+ align: 'center',
12564
+ ellipsis: true,
12565
+ width: 150
12566
+ }, {
12567
+ dataIndex: 'goodsShortName',
12568
+ title: "\u5546\u54C1\u7B80\u79F0",
12569
+ align: 'center',
12570
+ ellipsis: true,
12571
+ width: 100
12572
+ }, {
12573
+ dataIndex: 'picPath',
12574
+ title: "\u5546\u54C1\u56FE\u7247",
12575
+ align: 'center',
12576
+ ellipsis: true,
12577
+ width: 100,
12578
+ render: function render(val) {
12579
+ return /*#__PURE__*/React.createElement(Image, {
12580
+ width: 60,
12581
+ src: val
12582
+ });
12583
+ }
12584
+ }, {
12585
+ dataIndex: 'goodsSn',
12586
+ title: "\u8D27\u53F7",
12587
+ align: 'center',
12588
+ ellipsis: true,
12589
+ width: 150
12590
+ }, {
12591
+ dataIndex: 'goodsId',
12592
+ title: "\u8D27\u53F7ID",
12593
+ align: 'center',
12594
+ ellipsis: true,
12595
+ width: 150
12596
+ }, {
12597
+ dataIndex: 'colorName',
12598
+ title: "\u989C\u8272\u540D\u79F0",
12599
+ align: 'center',
12600
+ ellipsis: true,
12601
+ width: 100
12602
+ }, {
12603
+ dataIndex: 'colorCode',
12604
+ title: "\u989C\u8272\u4EE3\u7801",
12605
+ align: 'center',
12606
+ ellipsis: true,
12607
+ width: 150
12608
+ }, {
12609
+ dataIndex: 'sizeName',
12610
+ title: "\u5C3A\u7801\u540D\u79F0",
12611
+ align: 'center',
12612
+ ellipsis: true,
12613
+ width: 100
12614
+ }, {
12615
+ dataIndex: 'sizeCode',
12616
+ title: "\u5C3A\u7801\u4EE3\u7801",
12617
+ align: 'center',
12618
+ ellipsis: true,
12619
+ width: 100
12620
+ }, {
12621
+ dataIndex: 'brandName',
12622
+ title: "\u54C1\u724C\u540D\u79F0",
12623
+ align: 'center',
12624
+ ellipsis: true,
12625
+ width: 150
12626
+ }, {
12627
+ dataIndex: 'goodsNumber',
12628
+ title: "\u5546\u54C1\u6570\u91CF",
12629
+ align: 'center',
12630
+ ellipsis: true,
12631
+ width: 100
12632
+ }, {
12633
+ dataIndex: 'goodsPrice',
12634
+ title: "\u5546\u54C1\u5355\u4EF7",
12635
+ align: 'center',
12636
+ ellipsis: true,
12637
+ width: 120
12638
+ }, {
12639
+ dataIndex: 'shopPrice',
12640
+ title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
12641
+ align: 'center',
12642
+ ellipsis: true,
12643
+ width: 120
12644
+ }, {
12645
+ dataIndex: 'sharePrice',
12646
+ title: "\u5206\u644A\u4EF7",
12647
+ align: 'center',
12648
+ ellipsis: true,
12649
+ width: 120
12650
+ }, {
12651
+ dataIndex: 'sharePayment',
12652
+ title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
12653
+ align: 'center',
12654
+ ellipsis: true,
12655
+ width: 120
12656
+ }, {
12657
+ dataIndex: 'payment',
12658
+ title: "\u5B9E\u4ED8\u91D1\u989D",
12659
+ align: 'center',
12660
+ ellipsis: true,
12661
+ width: 120
12662
+ }, {
12663
+ dataIndex: 'tcSku',
12664
+ title: "\u5957\u9910SKU",
12665
+ align: 'center',
12666
+ ellipsis: true,
12667
+ width: 150
12668
+ }, {
12669
+ dataIndex: 'tcGoodsNumber',
12670
+ title: "\u5957\u9910\u5957\u6570",
12671
+ align: 'center',
12672
+ ellipsis: true,
12673
+ width: 100
12674
+ }, {
12675
+ dataIndex: 'taoCanSingleSl',
12676
+ title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
12677
+ align: 'center',
12678
+ ellipsis: true,
12679
+ width: 100
12680
+ }, {
12681
+ dataIndex: 'isGift',
12682
+ title: "\u662F\u5426\u8D60\u54C1",
12683
+ align: 'center',
12684
+ ellipsis: true,
12685
+ width: 100,
12686
+ render: function render(val) {
12687
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
12688
+ }
12689
+ }],
12690
+ BS_GOODS: [{
12691
+ dataIndex: 'mark',
12692
+ title: "\u5546\u54C1\u6807\u8BB0",
12693
+ align: 'center',
12694
+ ellipsis: true,
12695
+ width: 70,
12696
+ render: function render(val, record, index) {
12697
+ return /*#__PURE__*/React.createElement(Select, {
12698
+ options: [{
12699
+ label: '是',
12700
+ value: '是'
12701
+ }, {
12702
+ label: '否',
12703
+ value: '否'
12704
+ }],
12705
+ disabled: disabled,
12706
+ value: val,
12707
+ onChange: function onChange(val) {
12708
+ return updateHandle(val, index, 'mark');
12709
+ }
12710
+ });
12711
+ }
12712
+ }, {
12713
+ dataIndex: 'skuName',
12714
+ title: "".concat(text, "sku\u540D\u79F0"),
12715
+ align: 'center',
12716
+ ellipsis: true,
12717
+ width: 250
12718
+ }, {
12719
+ dataIndex: 'sku',
12720
+ title: "".concat(text, "sku\u7F16\u7801"),
12721
+ align: 'center',
12722
+ ellipsis: true,
12723
+ width: 100
12724
+ }, {
12725
+ dataIndex: 'name',
12726
+ title: "".concat(text, "\u540D\u79F0"),
12727
+ align: 'center',
12728
+ ellipsis: true,
12729
+ width: 250
12730
+ }, {
12731
+ dataIndex: 'pic',
12732
+ title: "\u56FE\u7247",
12733
+ align: 'center',
12734
+ ellipsis: true,
12735
+ width: 100,
12736
+ render: function render(val) {
12737
+ return /*#__PURE__*/React.createElement(Image, {
12738
+ width: 60,
12739
+ src: val
12740
+ });
12741
+ }
12742
+ }, {
12743
+ dataIndex: 'code',
12744
+ title: "".concat(text, "\u7F16\u7801"),
12745
+ align: 'center',
12746
+ ellipsis: true,
12747
+ width: 100
12748
+ }, {
12749
+ dataIndex: 'money',
12750
+ title: "\u5B9E\u4ED8\u91D1\u989D",
12751
+ align: 'center',
12752
+ ellipsis: true,
12753
+ width: 100
12754
+ }, {
12755
+ dataIndex: 'number',
12756
+ title: "".concat(text, "\u6570\u91CF"),
12757
+ align: 'center',
12758
+ ellipsis: true,
12759
+ width: 100,
12760
+ render: function render(val, record, index) {
12761
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12762
+ style: {
12763
+ width: 70
12764
+ },
12765
+ value: val,
12766
+ min: 1,
12767
+ precision: 0,
12768
+ onChange: function onChange(num) {
12769
+ return updateHandle(num, index, 'number');
12770
+ }
12771
+ }) : /*#__PURE__*/React.createElement("span", null, val);
12772
+ }
12773
+ }, {
12774
+ dataIndex: 'share',
12775
+ title: "\u5206\u644A\u4EF7",
12776
+ align: 'center',
12777
+ ellipsis: true,
12778
+ width: 70
12779
+ }, {
12780
+ dataIndex: 'type',
12781
+ title: "\u8D60\u54C1\u7C7B\u578B",
12782
+ align: 'center',
12783
+ ellipsis: true,
12784
+ width: 100
12785
+ }, {
12786
+ dataIndex: 'batch',
12787
+ title: "\u6279\u6B21\u53F7",
12788
+ align: 'center',
12789
+ ellipsis: true,
12790
+ width: 100
12791
+ }, {
12792
+ dataIndex: 'expireDate',
12793
+ title: "\u6709\u6548\u671F",
12794
+ align: 'center',
12795
+ ellipsis: true,
12796
+ width: 100
12797
+ }]
12798
+ };
12799
+ };
12800
+
12801
+ var renderGiftType = function renderGiftType(val) {
12802
+ var giftTypeMap = {
12803
+ 0: '非赠品',
12804
+ 1: '自动赠送',
12805
+ 2: '手工赠送',
12806
+ 3: '回购自动送赠品',
12807
+ 4: '前N有礼送赠品',
12808
+ 6: '天猫优仓赠品',
12809
+ 7: '淘宝CRM会员送赠'
12810
+ };
12811
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
12812
+ };
12813
+ var renderFieldMap = {
12814
+ num: function num(_ref) {
12815
+ var disabled = _ref.disabled,
12816
+ updateHandle = _ref.updateHandle;
12817
+ return function (val, record, index) {
12818
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12819
+ style: {
12820
+ width: 70
12821
+ },
12822
+ value: val,
12823
+ min: 1,
12824
+ precision: 0,
12825
+ onChange: function onChange(num) {
12826
+ return updateHandle(num, index, 'num');
12827
+ }
12828
+ }) : /*#__PURE__*/React.createElement("span", null, val);
12829
+ };
12830
+ },
12831
+ giftType: function giftType() {
12832
+ return renderGiftType;
12833
+ }
12834
+ };
12835
+ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
12836
+ var disabled = _ref2.disabled,
12837
+ updateHandle = _ref2.updateHandle,
12838
+ operate = _ref2.operate;
12839
+ return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
12840
+ var newItem = _objectSpread2({
12841
+ align: 'center',
12842
+ ellipsis: true
12843
+ }, item);
12844
+ if (operate && (renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex])) {
12845
+ return _objectSpread2(_objectSpread2({}, newItem), {}, {
12846
+ render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
12847
+ disabled: disabled,
12848
+ updateHandle: updateHandle
12849
+ })
12850
+ });
12851
+ }
12852
+ return newItem;
12853
+ });
12854
+ };
12855
+
12856
+ var getColumns$1 = function getColumns(_ref) {
12857
+ var _ref$text = _ref.text,
12858
+ text = _ref$text === void 0 ? '' : _ref$text,
12859
+ disabled = _ref.disabled,
12860
+ updateHandle = _ref.updateHandle;
12861
+ return {
12862
+ //旺店通补发商品信息
12863
+ WDT_REISSUE_GOODS: [{
12864
+ dataIndex: 'goodId',
12865
+ title: "\u5546\u54C1ID",
12866
+ width: 120
12867
+ }, {
12868
+ dataIndex: 'goodNo',
12869
+ title: "\u5546\u54C1\u7F16\u7801",
12870
+ width: 200
12871
+ }, {
12872
+ dataIndex: 'goodName',
12873
+ title: "\u5546\u54C1\u540D\u79F0",
12874
+ width: 200
12875
+ }, {
12876
+ dataIndex: 'specId',
12877
+ title: "SKUID",
12878
+ width: 150
12879
+ }, {
12880
+ dataIndex: 'specNo',
12881
+ title: "\u5546\u54C1SKU\u7F16\u7801",
12882
+ width: 200
12883
+ }, {
12884
+ dataIndex: 'specName',
12885
+ title: "\u5546\u54C1SKU\u540D\u79F0",
12886
+ width: 250
12887
+ }, {
12888
+ dataIndex: 'orderPrice',
12889
+ title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
12890
+ width: 200
12891
+ }, {
12892
+ dataIndex: 'num',
12893
+ title: "\u6570\u91CF",
12894
+ width: 100
12895
+ }, {
12896
+ dataIndex: 'sharePrice',
12897
+ title: "\u5206\u644A\u4EF7",
12898
+ width: 150
12899
+ }, {
12900
+ dataIndex: 'giftType',
12901
+ title: "\u8D60\u54C1\u65B9\u5F0F",
12902
+ width: 100,
12903
+ render: renderGiftType
12904
+ }],
12905
+ //旺店通商品信息
12906
+ WDT_GOODS: [{
12907
+ dataIndex: 'goodId',
12908
+ title: "\u5546\u54C1ID",
12909
+ align: 'center',
12910
+ ellipsis: true,
12911
+ width: 70
12912
+ }, {
12913
+ dataIndex: 'goodNo',
12914
+ title: "\u5546\u54C1\u7F16\u7801",
12915
+ align: 'center',
12916
+ ellipsis: true,
12917
+ width: 180
12918
+ }, {
12919
+ dataIndex: 'goodName',
12920
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
12921
+ align: 'center',
12922
+ ellipsis: true,
12923
+ width: 250
12924
+ }, {
12925
+ dataIndex: 'specId',
12926
+ title: "".concat(text, "SKUID"),
12927
+ align: 'center',
12928
+ ellipsis: true,
12929
+ width: 100
12930
+ }, {
12931
+ dataIndex: 'specNo',
12932
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
12933
+ align: 'center',
12934
+ ellipsis: true,
12935
+ width: 180
12936
+ }, {
12937
+ dataIndex: 'specName',
12938
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
12939
+ align: 'center',
12940
+ ellipsis: true,
12941
+ width: 250
12942
+ }, {
12943
+ dataIndex: 'orderPrice',
12944
+ title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
12945
+ align: 'center',
12946
+ ellipsis: true,
12947
+ width: 100
12948
+ }, {
12949
+ dataIndex: 'num',
12950
+ title: "".concat(text, "\u6570\u91CF"),
12951
+ align: 'center',
12952
+ ellipsis: true,
12953
+ width: 100,
12954
+ render: function render(val, record, index) {
12955
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12956
+ style: {
12957
+ width: 70
12958
+ },
12959
+ value: val,
12960
+ min: 1,
12961
+ precision: 0,
12962
+ onChange: function onChange(num) {
12963
+ return updateHandle(num, index, 'num');
12964
+ }
12965
+ }) : /*#__PURE__*/React.createElement("span", null, val);
12966
+ }
12967
+ }, {
12968
+ dataIndex: 'sharePrice',
12969
+ title: "\u5206\u644A\u4EF7",
12970
+ align: 'center',
12971
+ ellipsis: true,
12972
+ width: 70
12973
+ }, {
12974
+ dataIndex: 'giftType',
12975
+ title: "\u8D60\u54C1\u65B9\u5F0F",
12976
+ align: 'center',
12977
+ ellipsis: true,
12978
+ width: 100,
12979
+ render: function render(val) {
12980
+ var giftTypeMap = {
12981
+ 0: '非赠品',
12982
+ 1: '自动赠送',
12983
+ 2: '手工赠送',
12984
+ 3: '回购自动送赠品',
12985
+ 4: '前N有礼送赠品',
12986
+ 6: '天猫优仓赠品',
12987
+ 7: '淘宝CRM会员送赠'
12988
+ };
12989
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
12990
+ }
12991
+ }],
12992
+ //旺店通退货商品信息
12993
+ WDT_RETURN_GOODS: [{
12994
+ dataIndex: 'goodId',
12995
+ title: "\u5546\u54C1ID",
12996
+ align: 'center',
12997
+ ellipsis: true,
12998
+ width: 70
12999
+ }, {
13000
+ dataIndex: 'goodNo',
13001
+ title: "\u5546\u54C1\u7F16\u7801",
13002
+ align: 'center',
13003
+ ellipsis: true,
13004
+ width: 180
13005
+ }, {
13006
+ dataIndex: 'goodName',
13007
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
13008
+ align: 'center',
13009
+ ellipsis: true,
13010
+ width: 250
13011
+ }, {
13012
+ dataIndex: 'specId',
13013
+ title: "".concat(text, "SKUID"),
13014
+ align: 'center',
13015
+ ellipsis: true,
13016
+ width: 100
13017
+ }, {
13018
+ dataIndex: 'specNo',
13019
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
13020
+ align: 'center',
13021
+ ellipsis: true,
13022
+ width: 180
13023
+ }, {
13024
+ dataIndex: 'specName',
13025
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
13026
+ align: 'center',
13027
+ ellipsis: true,
13028
+ width: 250
13029
+ }, {
13030
+ dataIndex: 'num',
13031
+ title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
13032
+ align: 'center',
13033
+ ellipsis: true,
13034
+ width: 100,
13035
+ render: function render(val, record, index) {
13036
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13037
+ style: {
13038
+ width: 70
13039
+ },
13040
+ value: val,
13041
+ min: 1,
13042
+ precision: 0,
13043
+ onChange: function onChange(num) {
13044
+ return updateHandle(num, index, 'num');
13045
+ }
13046
+ }) : /*#__PURE__*/React.createElement("span", null, val);
13047
+ }
13048
+ }, {
13049
+ dataIndex: 'sharePrice',
13050
+ title: "\u5206\u644A\u4EF7",
13051
+ align: 'center',
13052
+ ellipsis: true,
13053
+ width: 80,
13054
+ render: function render(val, record, index) {
13055
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13056
+ style: {
13057
+ width: 70
13058
+ },
13059
+ value: val,
13060
+ min: 0,
13061
+ onChange: function onChange(value) {
13062
+ return updateHandle(value, index, 'sharePrice');
13063
+ }
13064
+ }) : /*#__PURE__*/React.createElement("span", null, val);
13065
+ }
13066
+ }, {
13067
+ dataIndex: 'returnPrice',
13068
+ title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
13069
+ align: 'center',
13070
+ ellipsis: true,
13071
+ width: 100
13072
+ }, {
13073
+ dataIndex: 'giftType',
13074
+ title: "\u8D60\u54C1\u65B9\u5F0F",
13075
+ align: 'center',
13076
+ ellipsis: true,
13077
+ width: 100,
13078
+ render: function render(val) {
13079
+ var giftTypeMap = {
13080
+ 0: '非赠品',
13081
+ 1: '自动赠送',
13082
+ 2: '手工赠送',
13083
+ 3: '回购自动送赠品',
13084
+ 4: '前N有礼送赠品',
13085
+ 6: '天猫优仓赠品',
13086
+ 7: '淘宝CRM会员送赠'
13087
+ };
13088
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
13089
+ }
13090
+ }, {
13091
+ dataIndex: 'type',
13092
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
13093
+ align: 'center',
13094
+ ellipsis: true,
13095
+ width: 100,
13096
+ render: function render(val, record, index) {
13097
+ var options = [{
13098
+ label: '单品',
13099
+ value: '1'
13100
+ }, {
13101
+ label: '组合装',
13102
+ value: '2'
13103
+ }];
13104
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
13105
+ style: {
13106
+ width: 70
13107
+ },
13108
+ options: options,
13109
+ value: val,
13110
+ onChange: function onChange(value) {
13111
+ return updateHandle(value, index, 'type');
13112
+ }
13113
+ }) : /*#__PURE__*/React.createElement("span", null, val);
13114
+ }
13115
+ }],
13116
+ //旺店通换出商品信息
13117
+ WDT_EXCHANGE_GOODS: [{
13118
+ dataIndex: 'goodId',
13119
+ title: "\u5546\u54C1ID",
13120
+ align: 'center',
13121
+ ellipsis: true,
13122
+ width: 70
13123
+ }, {
13124
+ dataIndex: 'goodNo',
13125
+ title: "\u5546\u54C1\u7F16\u7801",
13126
+ align: 'center',
13127
+ ellipsis: true,
13128
+ width: 180
13129
+ }, {
13130
+ dataIndex: 'goodName',
13131
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
13132
+ align: 'center',
13133
+ ellipsis: true,
13134
+ width: 250
13135
+ }, {
13136
+ dataIndex: 'specId',
13137
+ title: "".concat(text, "SKUID"),
13138
+ align: 'center',
13139
+ ellipsis: true,
13140
+ width: 100
13141
+ }, {
13142
+ dataIndex: 'specNo',
13143
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
13144
+ align: 'center',
13145
+ ellipsis: true,
13146
+ width: 180
13147
+ }, {
13148
+ dataIndex: 'specName',
13149
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
13150
+ align: 'center',
13151
+ ellipsis: true,
13152
+ width: 250
13153
+ }, {
13154
+ dataIndex: 'num',
13155
+ title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
13156
+ align: 'center',
13157
+ ellipsis: true,
13158
+ width: 100,
13159
+ render: function render(val, record, index) {
13160
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13161
+ style: {
13162
+ width: 70
13163
+ },
13164
+ value: val,
13165
+ min: 1,
13166
+ precision: 0,
13167
+ onChange: function onChange(num) {
13168
+ return updateHandle(num, index, 'num');
13169
+ }
13170
+ }) : /*#__PURE__*/React.createElement("span", null, val);
13171
+ }
13172
+ }, {
13173
+ dataIndex: 'price',
13174
+ title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
13175
+ align: 'center',
13176
+ ellipsis: true,
13177
+ width: 100,
13178
+ render: function render(val, record, index) {
13179
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13180
+ style: {
13181
+ width: 70
13182
+ },
13183
+ value: val,
13184
+ min: 0,
13185
+ onChange: function onChange(value) {
13186
+ return updateHandle(value, index, 'price');
13187
+ }
13188
+ }) : /*#__PURE__*/React.createElement("span", null, val);
13189
+ }
13190
+ }, {
13191
+ dataIndex: 'exchangePrice',
13192
+ title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
13193
+ align: 'center',
13194
+ ellipsis: true,
13195
+ width: 100
13196
+ }, {
13197
+ dataIndex: 'giftType',
13198
+ title: "\u8D60\u54C1\u65B9\u5F0F",
13199
+ align: 'center',
13200
+ ellipsis: true,
13201
+ width: 100,
13202
+ render: function render(val) {
13203
+ var giftTypeMap = {
13204
+ 0: '非赠品',
13205
+ 1: '自动赠送',
13206
+ 2: '手工赠送',
13207
+ 3: '回购自动送赠品',
13208
+ 4: '前N有礼送赠品',
13209
+ 6: '天猫优仓赠品',
13210
+ 7: '淘宝CRM会员送赠'
13211
+ };
13212
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
13213
+ }
13214
+ }, {
13215
+ dataIndex: 'type',
13216
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
13217
+ align: 'center',
13218
+ ellipsis: true,
13219
+ width: 100,
13220
+ render: function render(val, record, index) {
13221
+ var options = [{
13222
+ label: '单品',
13223
+ value: '1'
13224
+ }, {
13225
+ label: '组合装',
13226
+ value: '2'
13227
+ }];
13228
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
13229
+ style: {
13230
+ width: 70
13231
+ },
13232
+ options: options,
13233
+ value: val,
13234
+ onChange: function onChange(value) {
13235
+ return updateHandle(value, index, 'type');
13236
+ }
13237
+ }) : /*#__PURE__*/React.createElement("span", null, val);
13238
+ }
13239
+ }]
13240
+ };
13241
+ };
13242
+
13243
+ var getColumns$2 = function getColumns(_ref) {
13244
+ var _ref$text = _ref.text,
13245
+ text = _ref$text === void 0 ? '' : _ref$text,
13246
+ disabled = _ref.disabled,
13247
+ updateHandle = _ref.updateHandle;
13248
+ return {
13249
+ //万里牛商品信息
13250
+ WLN_GOODS: [{
13251
+ dataIndex: 'skuName',
13252
+ title: "".concat(text, "sku\u540D\u79F0"),
13253
+ align: 'center',
13254
+ ellipsis: true,
13255
+ width: 250
13256
+ }, {
13257
+ dataIndex: 'sku',
13258
+ title: "".concat(text, "sku\u7F16\u7801"),
13259
+ align: 'center',
13260
+ ellipsis: true,
13261
+ width: 100
13262
+ }, {
13263
+ dataIndex: 'name',
13264
+ title: "".concat(text, "\u540D\u79F0"),
13265
+ align: 'center',
13266
+ ellipsis: true,
13267
+ width: 250
13268
+ }, {
13269
+ dataIndex: 'pic',
13270
+ title: "\u56FE\u7247",
13271
+ align: 'center',
13272
+ ellipsis: true,
13273
+ width: 100,
13274
+ render: function render(val) {
13275
+ return /*#__PURE__*/React.createElement(Image, {
13276
+ width: 60,
13277
+ src: val
13278
+ });
13279
+ }
13280
+ }, {
13281
+ dataIndex: 'code',
13282
+ title: "".concat(text, "\u7F16\u7801"),
13283
+ align: 'center',
13284
+ ellipsis: true,
13285
+ width: 100
13286
+ }, {
13287
+ dataIndex: 'money',
13288
+ title: "\u5B9E\u4ED8\u91D1\u989D",
13289
+ align: 'center',
13290
+ ellipsis: true,
13291
+ width: 100
13292
+ }, {
13293
+ dataIndex: 'number',
13294
+ title: "".concat(text, "\u6570\u91CF"),
13295
+ align: 'center',
13296
+ ellipsis: true,
13297
+ width: 100,
13298
+ render: function render(val, record, index) {
13299
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13300
+ style: {
13301
+ width: 70
13302
+ },
13303
+ value: val,
13304
+ min: 1,
13305
+ precision: 0,
13306
+ onChange: function onChange(num) {
13307
+ return updateHandle(num, index, 'number');
13308
+ }
13309
+ }) : /*#__PURE__*/React.createElement("span", null, val);
13310
+ }
13311
+ }, {
13312
+ dataIndex: 'share',
13313
+ title: "\u5206\u644A\u4EF7",
13314
+ align: 'center',
13315
+ ellipsis: true,
13316
+ width: 70
13317
+ }, {
13318
+ dataIndex: 'type',
13319
+ title: "\u8D60\u54C1\u7C7B\u578B",
13320
+ align: 'center',
13321
+ ellipsis: true,
13322
+ width: 100
13323
+ }]
13324
+ };
13325
+ };
13326
+
13327
+ var getColumnsMap = function getColumnsMap(args) {
13328
+ var _ref = args || {},
13329
+ _ref$text = _ref.text,
13330
+ text = _ref$text === void 0 ? '' : _ref$text,
13331
+ disabled = _ref.disabled,
13332
+ updateHandle = _ref.updateHandle;
13333
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns({
13334
+ text: text,
13335
+ disabled: disabled,
13336
+ updateHandle: updateHandle
13337
+ })), getColumns$1({
13338
+ text: text,
13339
+ disabled: disabled,
13340
+ updateHandle: updateHandle
13341
+ })), getColumns$2({
13342
+ text: text,
13343
+ disabled: disabled,
13344
+ updateHandle: updateHandle
13345
+ })), {}, {
13346
+ default: [{
13347
+ dataIndex: 'mark',
13348
+ title: "\u5546\u54C1\u6807\u8BB0",
13349
+ align: 'center',
13350
+ ellipsis: true,
13351
+ width: 70,
13352
+ render: function render(val, record, index) {
13353
+ return /*#__PURE__*/React.createElement(Select, {
13354
+ options: [{
13355
+ label: '是',
13356
+ value: '是'
13357
+ }, {
13358
+ label: '否',
13359
+ value: '否'
13360
+ }],
13361
+ disabled: disabled,
13362
+ value: val,
13363
+ onChange: function onChange(val) {
13364
+ return updateHandle(val, index, 'mark');
13365
+ }
13366
+ });
13367
+ }
13368
+ }, {
13369
+ dataIndex: 'skuName',
13370
+ title: "".concat(text, "sku\u540D\u79F0"),
13371
+ align: 'center',
13372
+ ellipsis: true,
13373
+ width: 250
13374
+ }, {
13375
+ dataIndex: 'sku',
13376
+ title: "".concat(text, "sku\u7F16\u7801"),
13377
+ align: 'center',
13378
+ ellipsis: true,
13379
+ width: 100
13380
+ }, {
13381
+ dataIndex: 'name',
13382
+ title: "".concat(text, "\u540D\u79F0"),
13383
+ align: 'center',
13384
+ ellipsis: true,
13385
+ width: 250
13386
+ }, {
13387
+ dataIndex: 'pic',
13388
+ title: "\u56FE\u7247",
13389
+ align: 'center',
13390
+ ellipsis: true,
13391
+ width: 100,
13392
+ render: function render(val) {
13393
+ return /*#__PURE__*/React.createElement(Image, {
13394
+ width: 60,
13395
+ src: val
13396
+ });
13397
+ }
13398
+ }, {
13399
+ dataIndex: 'code',
13400
+ title: "".concat(text, "\u7F16\u7801"),
13401
+ align: 'center',
13402
+ ellipsis: true,
13403
+ width: 100
13404
+ }, {
13405
+ dataIndex: 'money',
13406
+ title: "\u5B9E\u4ED8\u91D1\u989D",
13407
+ align: 'center',
13408
+ ellipsis: true,
13409
+ width: 100
13410
+ }, {
13411
+ dataIndex: 'number',
13412
+ title: "".concat(text, "\u6570\u91CF"),
13413
+ align: 'center',
13414
+ ellipsis: true,
13415
+ width: 100,
13416
+ render: function render(val, record, index) {
13417
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13418
+ style: {
13419
+ width: 70
13420
+ },
13421
+ value: val,
13422
+ min: 1,
13423
+ precision: 0,
13424
+ onChange: function onChange(num) {
13425
+ return updateHandle(num, index, 'number');
13426
+ }
13427
+ }) : /*#__PURE__*/React.createElement("span", null, val);
13428
+ }
13429
+ }, {
13430
+ dataIndex: 'share',
13431
+ title: "\u5206\u644A\u4EF7",
13432
+ align: 'center',
13433
+ ellipsis: true,
13434
+ width: 70
13435
+ }, {
13436
+ dataIndex: 'type',
13437
+ title: "\u8D60\u54C1\u7C7B\u578B",
13438
+ align: 'center',
13439
+ ellipsis: true,
13440
+ width: 100
13441
+ }]
13442
+ });
13443
+ };
13444
+ var getColumnsBaseInfo = function getColumnsBaseInfo() {
13445
+ var clone_columnsMap = cloneDeep(getColumnsMap());
13446
+ var newColumns = {};
13447
+ Object.keys(clone_columnsMap).forEach(function (key) {
13448
+ newColumns[key] = clone_columnsMap[key].map(function (col) {
13449
+ return {
13450
+ title: col.title,
13451
+ dataIndex: col.dataIndex
13452
+ };
13453
+ });
13454
+ });
13455
+ return newColumns;
13456
+ };
13457
+ var columnsBaseInfoMap = getColumnsBaseInfo();
13458
+
13459
+ var renderFieldMap$1 = {
13460
+ goodsNumber: function goodsNumber(_ref) {
13461
+ var disabled = _ref.disabled,
13462
+ updateHandle = _ref.updateHandle;
13463
+ return function (val, record, index) {
13464
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13465
+ style: {
13466
+ width: 70
13467
+ },
13468
+ value: val,
13469
+ min: 1,
13470
+ precision: 0,
13471
+ onChange: function onChange(num) {
13472
+ return updateHandle(num, index, 'goodsNumber');
13473
+ }
12653
13474
  }) : /*#__PURE__*/React.createElement("span", null, val);
12654
13475
  };
12655
13476
  },
12656
- giftType: function giftType() {
12657
- return renderGiftType;
13477
+ goodsPrice: function goodsPrice(_ref2) {
13478
+ var disabled = _ref2.disabled,
13479
+ updateHandle = _ref2.updateHandle;
13480
+ return function (val, record, index) {
13481
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13482
+ style: {
13483
+ width: 70
13484
+ },
13485
+ value: val,
13486
+ min: 0,
13487
+ onChange: function onChange(value) {
13488
+ return updateHandle(value, index, 'goodsPrice');
13489
+ }
13490
+ }) : /*#__PURE__*/React.createElement("span", null, val);
13491
+ };
13492
+ },
13493
+ isGift: function isGift(_ref3) {
13494
+ var disabled = _ref3.disabled,
13495
+ updateHandle = _ref3.updateHandle;
13496
+ return function (val, record, index) {
13497
+ var options = [{
13498
+ label: '是',
13499
+ value: 1
13500
+ }, {
13501
+ label: '否',
13502
+ value: 0
13503
+ }];
13504
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
13505
+ style: {
13506
+ width: 70
13507
+ },
13508
+ options: options,
13509
+ value: val,
13510
+ onChange: function onChange(value) {
13511
+ return updateHandle(value, index, 'isGift');
13512
+ },
13513
+ getPopupContainer: function getPopupContainer() {
13514
+ return document.getElementById('bsE3ReissueGoods');
13515
+ }
13516
+ }) : /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
13517
+ };
12658
13518
  }
12659
13519
  };
12660
- var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
12661
- var disabled = _ref2.disabled,
12662
- updateHandle = _ref2.updateHandle,
12663
- operate = _ref2.operate;
12664
- return columns$4.map(function (item) {
13520
+ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
13521
+ var disabled = _ref4.disabled,
13522
+ updateHandle = _ref4.updateHandle,
13523
+ operate = _ref4.operate;
13524
+ return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
12665
13525
  var newItem = _objectSpread2({
12666
13526
  align: 'center',
12667
13527
  ellipsis: true
@@ -12833,548 +13693,27 @@ var GoodItem$1 = function GoodItem(props) {
12833
13693
  return function (type) {
12834
13694
  var columns = [];
12835
13695
  switch (type) {
12836
- case 'WDT_REISSUE_GOODS':
12837
- {
12838
- columns = getWdtReissueGoodColumns({
12839
- disabled: disabled,
12840
- updateHandle: updateHandle,
12841
- operate: operate
12842
- });
12843
- }
12844
- break;
12845
13696
  case 'WDT_GOODS':
12846
- columns = [{
12847
- dataIndex: 'goodId',
12848
- title: "\u5546\u54C1ID",
12849
- align: 'center',
12850
- ellipsis: true,
12851
- width: 70
12852
- }, {
12853
- dataIndex: 'goodNo',
12854
- title: "\u5546\u54C1\u7F16\u7801",
12855
- align: 'center',
12856
- ellipsis: true,
12857
- width: 180
12858
- }, {
12859
- dataIndex: 'goodName',
12860
- title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
12861
- align: 'center',
12862
- ellipsis: true,
12863
- width: 250
12864
- }, {
12865
- dataIndex: 'specId',
12866
- title: "".concat(text, "SKUID"),
12867
- align: 'center',
12868
- ellipsis: true,
12869
- width: 100
12870
- }, {
12871
- dataIndex: 'specNo',
12872
- title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
12873
- align: 'center',
12874
- ellipsis: true,
12875
- width: 180
12876
- }, {
12877
- dataIndex: 'specName',
12878
- title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
12879
- align: 'center',
12880
- ellipsis: true,
12881
- width: 250
12882
- }, {
12883
- dataIndex: 'orderPrice',
12884
- title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
12885
- align: 'center',
12886
- ellipsis: true,
12887
- width: 100
12888
- }, {
12889
- dataIndex: 'num',
12890
- title: "".concat(text, "\u6570\u91CF"),
12891
- align: 'center',
12892
- ellipsis: true,
12893
- width: 100,
12894
- render: function render(val, record, index) {
12895
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12896
- style: {
12897
- width: 70
12898
- },
12899
- value: val,
12900
- min: 1,
12901
- precision: 0,
12902
- onChange: function onChange(num) {
12903
- return updateHandle(num, index, 'num');
12904
- }
12905
- }) : /*#__PURE__*/React.createElement("span", null, val);
12906
- }
12907
- },
12908
- // {
12909
- // dataIndex: 'actualNum',
12910
- // title: `${text}实发数量`,
12911
- // align: 'center',
12912
- // ellipsis: true,
12913
- // width: 100,
12914
- // },
12915
- {
12916
- dataIndex: 'sharePrice',
12917
- title: "\u5206\u644A\u4EF7",
12918
- align: 'center',
12919
- ellipsis: true,
12920
- width: 70
12921
- }, {
12922
- dataIndex: 'giftType',
12923
- title: "\u8D60\u54C1\u65B9\u5F0F",
12924
- align: 'center',
12925
- ellipsis: true,
12926
- width: 100,
12927
- render: function render(val) {
12928
- var giftTypeMap = {
12929
- 0: '非赠品',
12930
- 1: '自动赠送',
12931
- 2: '手工赠送',
12932
- 3: '回购自动送赠品',
12933
- 4: '前N有礼送赠品',
12934
- 6: '天猫优仓赠品',
12935
- 7: '淘宝CRM会员送赠'
12936
- };
12937
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
12938
- }
12939
- }];
12940
- break;
12941
13697
  case 'WDT_RETURN_GOODS':
12942
- {
12943
- columns = [{
12944
- dataIndex: 'goodId',
12945
- title: "\u5546\u54C1ID",
12946
- align: 'center',
12947
- ellipsis: true,
12948
- width: 70
12949
- }, {
12950
- dataIndex: 'goodNo',
12951
- title: "\u5546\u54C1\u7F16\u7801",
12952
- align: 'center',
12953
- ellipsis: true,
12954
- width: 180
12955
- }, {
12956
- dataIndex: 'goodName',
12957
- title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
12958
- align: 'center',
12959
- ellipsis: true,
12960
- width: 250
12961
- }, {
12962
- dataIndex: 'specId',
12963
- title: "".concat(text, "SKUID"),
12964
- align: 'center',
12965
- ellipsis: true,
12966
- width: 100
12967
- }, {
12968
- dataIndex: 'specNo',
12969
- title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
12970
- align: 'center',
12971
- ellipsis: true,
12972
- width: 180
12973
- }, {
12974
- dataIndex: 'specName',
12975
- title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
12976
- align: 'center',
12977
- ellipsis: true,
12978
- width: 250
12979
- }, {
12980
- dataIndex: 'num',
12981
- title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
12982
- align: 'center',
12983
- ellipsis: true,
12984
- width: 100,
12985
- render: function render(val, record, index) {
12986
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
12987
- style: {
12988
- width: 70
12989
- },
12990
- value: val,
12991
- min: 1,
12992
- precision: 0,
12993
- onChange: function onChange(num) {
12994
- return updateHandle(num, index, 'num');
12995
- }
12996
- }) : /*#__PURE__*/React.createElement("span", null, val);
12997
- }
12998
- }, {
12999
- dataIndex: 'sharePrice',
13000
- title: "\u5206\u644A\u4EF7",
13001
- align: 'center',
13002
- ellipsis: true,
13003
- width: 80,
13004
- render: function render(val, record, index) {
13005
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13006
- style: {
13007
- width: 70
13008
- },
13009
- value: val,
13010
- min: 0,
13011
- onChange: function onChange(value) {
13012
- return updateHandle(value, index, 'sharePrice');
13013
- }
13014
- }) : /*#__PURE__*/React.createElement("span", null, val);
13015
- }
13016
- }, {
13017
- dataIndex: 'returnPrice',
13018
- title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
13019
- align: 'center',
13020
- ellipsis: true,
13021
- width: 100
13022
- }, {
13023
- dataIndex: 'giftType',
13024
- title: "\u8D60\u54C1\u65B9\u5F0F",
13025
- align: 'center',
13026
- ellipsis: true,
13027
- width: 100,
13028
- render: function render(val) {
13029
- var giftTypeMap = {
13030
- 0: '非赠品',
13031
- 1: '自动赠送',
13032
- 2: '手工赠送',
13033
- 3: '回购自动送赠品',
13034
- 4: '前N有礼送赠品',
13035
- 6: '天猫优仓赠品',
13036
- 7: '淘宝CRM会员送赠'
13037
- };
13038
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
13039
- }
13040
- }, {
13041
- dataIndex: 'type',
13042
- title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
13043
- align: 'center',
13044
- ellipsis: true,
13045
- width: 100,
13046
- render: function render(val, record, index) {
13047
- var options = [{
13048
- label: '单品',
13049
- value: '1'
13050
- }, {
13051
- label: '组合装',
13052
- value: '2'
13053
- }];
13054
- return !disabled ? /*#__PURE__*/React.createElement(Select, {
13055
- style: {
13056
- width: 70
13057
- },
13058
- options: options,
13059
- value: val,
13060
- onChange: function onChange(value) {
13061
- return updateHandle(value, index, 'type');
13062
- }
13063
- }) : /*#__PURE__*/React.createElement("span", null, val);
13064
- }
13065
- }];
13066
- }
13067
- break;
13068
13698
  case 'WDT_EXCHANGE_GOODS':
13699
+ case 'BS_E3_GOODS':
13700
+ case 'BS_GOODS':
13701
+ case 'WLN_GOODS':
13069
13702
  {
13070
- columns = [{
13071
- dataIndex: 'goodId',
13072
- title: "\u5546\u54C1ID",
13073
- align: 'center',
13074
- ellipsis: true,
13075
- width: 70
13076
- }, {
13077
- dataIndex: 'goodNo',
13078
- title: "\u5546\u54C1\u7F16\u7801",
13079
- align: 'center',
13080
- ellipsis: true,
13081
- width: 180
13082
- }, {
13083
- dataIndex: 'goodName',
13084
- title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
13085
- align: 'center',
13086
- ellipsis: true,
13087
- width: 250
13088
- }, {
13089
- dataIndex: 'specId',
13090
- title: "".concat(text, "SKUID"),
13091
- align: 'center',
13092
- ellipsis: true,
13093
- width: 100
13094
- }, {
13095
- dataIndex: 'specNo',
13096
- title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
13097
- align: 'center',
13098
- ellipsis: true,
13099
- width: 180
13100
- }, {
13101
- dataIndex: 'specName',
13102
- title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
13103
- align: 'center',
13104
- ellipsis: true,
13105
- width: 250
13106
- }, {
13107
- dataIndex: 'num',
13108
- title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
13109
- align: 'center',
13110
- ellipsis: true,
13111
- width: 100,
13112
- render: function render(val, record, index) {
13113
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13114
- style: {
13115
- width: 70
13116
- },
13117
- value: val,
13118
- min: 1,
13119
- precision: 0,
13120
- onChange: function onChange(num) {
13121
- return updateHandle(num, index, 'num');
13122
- }
13123
- }) : /*#__PURE__*/React.createElement("span", null, val);
13124
- }
13125
- }, {
13126
- dataIndex: 'price',
13127
- title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
13128
- align: 'center',
13129
- ellipsis: true,
13130
- width: 100,
13131
- render: function render(val, record, index) {
13132
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13133
- style: {
13134
- width: 70
13135
- },
13136
- value: val,
13137
- min: 0,
13138
- onChange: function onChange(value) {
13139
- return updateHandle(value, index, 'price');
13140
- }
13141
- }) : /*#__PURE__*/React.createElement("span", null, val);
13142
- }
13143
- }, {
13144
- dataIndex: 'exchangePrice',
13145
- title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
13146
- align: 'center',
13147
- ellipsis: true,
13148
- width: 100
13149
- }, {
13150
- dataIndex: 'giftType',
13151
- title: "\u8D60\u54C1\u65B9\u5F0F",
13152
- align: 'center',
13153
- ellipsis: true,
13154
- width: 100,
13155
- render: function render(val) {
13156
- var giftTypeMap = {
13157
- 0: '非赠品',
13158
- 1: '自动赠送',
13159
- 2: '手工赠送',
13160
- 3: '回购自动送赠品',
13161
- 4: '前N有礼送赠品',
13162
- 6: '天猫优仓赠品',
13163
- 7: '淘宝CRM会员送赠'
13164
- };
13165
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
13166
- }
13167
- }, {
13168
- dataIndex: 'type',
13169
- title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
13170
- align: 'center',
13171
- ellipsis: true,
13172
- width: 100,
13173
- render: function render(val, record, index) {
13174
- var options = [{
13175
- label: '单品',
13176
- value: '1'
13177
- }, {
13178
- label: '组合装',
13179
- value: '2'
13180
- }];
13181
- return !disabled ? /*#__PURE__*/React.createElement(Select, {
13182
- style: {
13183
- width: 70
13184
- },
13185
- options: options,
13186
- value: val,
13187
- onChange: function onChange(value) {
13188
- return updateHandle(value, index, 'type');
13189
- }
13190
- }) : /*#__PURE__*/React.createElement("span", null, val);
13191
- }
13192
- }];
13703
+ columns = getColumnsMap({
13704
+ text: text,
13705
+ disabled: disabled,
13706
+ updateHandle: updateHandle
13707
+ })[type];
13193
13708
  }
13194
13709
  break;
13195
- case 'BS_E3_GOODS':
13710
+ case 'WDT_REISSUE_GOODS':
13196
13711
  {
13197
- columns = [{
13198
- dataIndex: 'sku',
13199
- title: "SKU",
13200
- align: 'center',
13201
- ellipsis: true,
13202
- width: 150
13203
- }, {
13204
- dataIndex: 'skuId',
13205
- title: "SKU ID",
13206
- align: 'center',
13207
- ellipsis: true,
13208
- width: 150
13209
- }, {
13210
- dataIndex: 'goodsName',
13211
- title: "\u5546\u54C1\u540D\u79F0",
13212
- align: 'center',
13213
- ellipsis: true,
13214
- width: 150
13215
- }, {
13216
- dataIndex: 'goodsShortName',
13217
- title: "\u5546\u54C1\u7B80\u79F0",
13218
- align: 'center',
13219
- ellipsis: true,
13220
- width: 100
13221
- }, {
13222
- dataIndex: 'picPath',
13223
- title: "\u5546\u54C1\u56FE\u7247",
13224
- align: 'center',
13225
- ellipsis: true,
13226
- width: 100,
13227
- render: function render(val) {
13228
- return /*#__PURE__*/React.createElement(Image, {
13229
- width: 60,
13230
- src: val
13231
- });
13232
- }
13233
- }, {
13234
- dataIndex: 'goodsSn',
13235
- title: "\u8D27\u53F7",
13236
- align: 'center',
13237
- ellipsis: true,
13238
- width: 150
13239
- }, {
13240
- dataIndex: 'goodsId',
13241
- title: "\u8D27\u53F7ID",
13242
- align: 'center',
13243
- ellipsis: true,
13244
- width: 150
13245
- }, {
13246
- dataIndex: 'colorName',
13247
- title: "\u989C\u8272\u540D\u79F0",
13248
- align: 'center',
13249
- ellipsis: true,
13250
- width: 100
13251
- }, {
13252
- dataIndex: 'colorCode',
13253
- title: "\u989C\u8272\u4EE3\u7801",
13254
- align: 'center',
13255
- ellipsis: true,
13256
- width: 150
13257
- }, {
13258
- dataIndex: 'sizeName',
13259
- title: "\u5C3A\u7801\u540D\u79F0",
13260
- align: 'center',
13261
- ellipsis: true,
13262
- width: 100
13263
- }, {
13264
- dataIndex: 'sizeCode',
13265
- title: "\u5C3A\u7801\u4EE3\u7801",
13266
- align: 'center',
13267
- ellipsis: true,
13268
- width: 100
13269
- }, {
13270
- dataIndex: 'brandName',
13271
- title: "\u54C1\u724C\u540D\u79F0",
13272
- align: 'center',
13273
- ellipsis: true,
13274
- width: 150
13275
- }, {
13276
- dataIndex: 'goodsNumber',
13277
- title: "\u5546\u54C1\u6570\u91CF",
13278
- align: 'center',
13279
- ellipsis: true,
13280
- width: 100,
13281
- render: function render(val, record, index) {
13282
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13283
- style: {
13284
- width: 70
13285
- },
13286
- value: val,
13287
- min: 1,
13288
- precision: 0,
13289
- onChange: function onChange(num) {
13290
- return updateHandle(num, index, 'goodsNumber');
13291
- }
13292
- }) : /*#__PURE__*/React.createElement("span", null, val);
13293
- }
13294
- }, {
13295
- dataIndex: 'goodsPrice',
13296
- title: "\u5546\u54C1\u5355\u4EF7",
13297
- align: 'center',
13298
- ellipsis: true,
13299
- width: 120,
13300
- render: function render(val, record, index) {
13301
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13302
- style: {
13303
- width: 70
13304
- },
13305
- value: val,
13306
- min: 0,
13307
- precision: 2,
13308
- onChange: function onChange(num) {
13309
- return updateHandle(num, index, 'goodsPrice');
13310
- }
13311
- }) : /*#__PURE__*/React.createElement("span", null, val);
13312
- }
13313
- }, {
13314
- dataIndex: 'shopPrice',
13315
- title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
13316
- align: 'center',
13317
- ellipsis: true,
13318
- width: 120
13319
- }, {
13320
- dataIndex: 'sharePrice',
13321
- title: "\u5206\u644A\u4EF7",
13322
- align: 'center',
13323
- ellipsis: true,
13324
- width: 120
13325
- }, {
13326
- dataIndex: 'sharePayment',
13327
- title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
13328
- align: 'center',
13329
- ellipsis: true,
13330
- width: 120
13331
- }, {
13332
- dataIndex: 'payment',
13333
- title: "\u5B9E\u4ED8\u91D1\u989D",
13334
- align: 'center',
13335
- ellipsis: true,
13336
- width: 120,
13337
- render: function render(val, record, index) {
13338
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13339
- style: {
13340
- width: 70
13341
- },
13342
- value: val,
13343
- min: 0,
13344
- precision: 2,
13345
- onChange: function onChange(num) {
13346
- return updateHandle(num, index, 'payment');
13347
- }
13348
- }) : /*#__PURE__*/React.createElement("span", null, val);
13349
- }
13350
- }, {
13351
- dataIndex: 'tcSku',
13352
- title: "\u5957\u9910SKU",
13353
- align: 'center',
13354
- ellipsis: true,
13355
- width: 150
13356
- }, {
13357
- dataIndex: 'tcGoodsNumber',
13358
- title: "\u5957\u9910\u5957\u6570",
13359
- align: 'center',
13360
- ellipsis: true,
13361
- width: 100
13362
- }, {
13363
- dataIndex: 'taoCanSingleSl',
13364
- title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
13365
- align: 'center',
13366
- ellipsis: true,
13367
- width: 100
13368
- }, {
13369
- dataIndex: 'isGift',
13370
- title: "\u662F\u5426\u8D60\u54C1",
13371
- align: 'center',
13372
- ellipsis: true,
13373
- width: 100,
13374
- render: function render(val) {
13375
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
13376
- }
13377
- }];
13712
+ columns = getWdtReissueGoodColumns({
13713
+ disabled: disabled,
13714
+ updateHandle: updateHandle,
13715
+ operate: operate
13716
+ });
13378
13717
  }
13379
13718
  break;
13380
13719
  case 'BS_E3_REISSUE_GOODS':
@@ -13386,213 +13725,12 @@ var GoodItem$1 = function GoodItem(props) {
13386
13725
  });
13387
13726
  }
13388
13727
  break;
13389
- case 'BS_GOODS':
13390
- columns = [{
13391
- dataIndex: 'mark',
13392
- title: "\u5546\u54C1\u6807\u8BB0",
13393
- align: 'center',
13394
- ellipsis: true,
13395
- width: 70,
13396
- render: function render(val, record, index) {
13397
- return /*#__PURE__*/React.createElement(Select, {
13398
- options: [{
13399
- label: '是',
13400
- value: '是'
13401
- }, {
13402
- label: '否',
13403
- value: '否'
13404
- }],
13405
- disabled: disabled,
13406
- value: val,
13407
- onChange: function onChange(val) {
13408
- return updateHandle(val, index, 'mark');
13409
- }
13410
- });
13411
- }
13412
- }, {
13413
- dataIndex: 'skuName',
13414
- title: "".concat(text, "sku\u540D\u79F0"),
13415
- align: 'center',
13416
- ellipsis: true,
13417
- width: 250
13418
- }, {
13419
- dataIndex: 'sku',
13420
- title: "".concat(text, "sku\u7F16\u7801"),
13421
- align: 'center',
13422
- ellipsis: true,
13423
- width: 100
13424
- }, {
13425
- dataIndex: 'name',
13426
- title: "".concat(text, "\u540D\u79F0"),
13427
- align: 'center',
13428
- ellipsis: true,
13429
- width: 250
13430
- }, {
13431
- dataIndex: 'pic',
13432
- title: "\u56FE\u7247",
13433
- align: 'center',
13434
- ellipsis: true,
13435
- width: 100,
13436
- render: function render(val) {
13437
- return /*#__PURE__*/React.createElement(Image, {
13438
- width: 60,
13439
- src: val
13440
- });
13441
- }
13442
- }, {
13443
- dataIndex: 'code',
13444
- title: "".concat(text, "\u7F16\u7801"),
13445
- align: 'center',
13446
- ellipsis: true,
13447
- width: 100
13448
- }, {
13449
- dataIndex: 'money',
13450
- title: "\u5B9E\u4ED8\u91D1\u989D",
13451
- align: 'center',
13452
- ellipsis: true,
13453
- width: 100
13454
- }, {
13455
- dataIndex: 'number',
13456
- title: "".concat(text, "\u6570\u91CF"),
13457
- align: 'center',
13458
- ellipsis: true,
13459
- width: 100,
13460
- render: function render(val, record, index) {
13461
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13462
- style: {
13463
- width: 70
13464
- },
13465
- value: val,
13466
- min: 1,
13467
- precision: 0,
13468
- onChange: function onChange(num) {
13469
- return updateHandle(num, index, 'number');
13470
- }
13471
- }) : /*#__PURE__*/React.createElement("span", null, val);
13472
- }
13473
- }, {
13474
- dataIndex: 'share',
13475
- title: "\u5206\u644A\u4EF7",
13476
- align: 'center',
13477
- ellipsis: true,
13478
- width: 70
13479
- }, {
13480
- dataIndex: 'type',
13481
- title: "\u8D60\u54C1\u7C7B\u578B",
13482
- align: 'center',
13483
- ellipsis: true,
13484
- width: 100
13485
- }, {
13486
- dataIndex: 'batch',
13487
- title: "\u6279\u6B21\u53F7",
13488
- align: 'center',
13489
- ellipsis: true,
13490
- width: 100
13491
- }, {
13492
- dataIndex: 'expireDate',
13493
- title: "\u6709\u6548\u671F",
13494
- align: 'center',
13495
- ellipsis: true,
13496
- width: 100
13497
- }];
13498
- break;
13499
13728
  default:
13500
- columns = [{
13501
- dataIndex: 'mark',
13502
- title: "\u5546\u54C1\u6807\u8BB0",
13503
- align: 'center',
13504
- ellipsis: true,
13505
- width: 70,
13506
- render: function render(val, record, index) {
13507
- return /*#__PURE__*/React.createElement(Select, {
13508
- options: [{
13509
- label: '是',
13510
- value: '是'
13511
- }, {
13512
- label: '否',
13513
- value: '否'
13514
- }],
13515
- disabled: disabled,
13516
- value: val,
13517
- onChange: function onChange(val) {
13518
- return updateHandle(val, index, 'mark');
13519
- }
13520
- });
13521
- }
13522
- }, {
13523
- dataIndex: 'skuName',
13524
- title: "".concat(text, "sku\u540D\u79F0"),
13525
- align: 'center',
13526
- ellipsis: true,
13527
- width: 250
13528
- }, {
13529
- dataIndex: 'sku',
13530
- title: "".concat(text, "sku\u7F16\u7801"),
13531
- align: 'center',
13532
- ellipsis: true,
13533
- width: 100
13534
- }, {
13535
- dataIndex: 'name',
13536
- title: "".concat(text, "\u540D\u79F0"),
13537
- align: 'center',
13538
- ellipsis: true,
13539
- width: 250
13540
- }, {
13541
- dataIndex: 'pic',
13542
- title: "\u56FE\u7247",
13543
- align: 'center',
13544
- ellipsis: true,
13545
- width: 100,
13546
- render: function render(val) {
13547
- return /*#__PURE__*/React.createElement(Image, {
13548
- width: 60,
13549
- src: val
13550
- });
13551
- }
13552
- }, {
13553
- dataIndex: 'code',
13554
- title: "".concat(text, "\u7F16\u7801"),
13555
- align: 'center',
13556
- ellipsis: true,
13557
- width: 100
13558
- }, {
13559
- dataIndex: 'money',
13560
- title: "\u5B9E\u4ED8\u91D1\u989D",
13561
- align: 'center',
13562
- ellipsis: true,
13563
- width: 100
13564
- }, {
13565
- dataIndex: 'number',
13566
- title: "".concat(text, "\u6570\u91CF"),
13567
- align: 'center',
13568
- ellipsis: true,
13569
- width: 100,
13570
- render: function render(val, record, index) {
13571
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
13572
- style: {
13573
- width: 70
13574
- },
13575
- value: val,
13576
- min: 1,
13577
- precision: 0,
13578
- onChange: function onChange(num) {
13579
- return updateHandle(num, index, 'number');
13580
- }
13581
- }) : /*#__PURE__*/React.createElement("span", null, val);
13582
- }
13583
- }, {
13584
- dataIndex: 'share',
13585
- title: "\u5206\u644A\u4EF7",
13586
- align: 'center',
13587
- ellipsis: true,
13588
- width: 70
13589
- }, {
13590
- dataIndex: 'type',
13591
- title: "\u8D60\u54C1\u7C7B\u578B",
13592
- align: 'center',
13593
- ellipsis: true,
13594
- width: 100
13595
- }];
13729
+ columns = getColumnsMap({
13730
+ text: text,
13731
+ disabled: disabled,
13732
+ updateHandle: updateHandle
13733
+ })['default'];
13596
13734
  }
13597
13735
  return columns;
13598
13736
  };
@@ -13604,6 +13742,22 @@ var GoodItem$1 = function GoodItem(props) {
13604
13742
  return COLUMNS_INFO(type);
13605
13743
  };
13606
13744
  var newColumns = useMemo(function () {
13745
+ var initBaseInfoColumns = GOODS_INFO_COLUMNS();
13746
+ var baseInfoColumns = [];
13747
+ if (Object.prototype.toString.call(showHeader[0]) === '[object String]') {
13748
+ baseInfoColumns = initBaseInfoColumns.filter(function (col) {
13749
+ return showHeader.includes(col.dataIndex);
13750
+ });
13751
+ } else if (Object.prototype.toString.call(showHeader[0]) === '[object Object]') {
13752
+ baseInfoColumns = showHeader.filter(function (col) {
13753
+ return col.show !== false;
13754
+ }).map(function (col) {
13755
+ var currentCol = initBaseInfoColumns.find(function (item) {
13756
+ return item.dataIndex === col.dataIndex;
13757
+ });
13758
+ return currentCol !== null && currentCol !== void 0 ? currentCol : col;
13759
+ });
13760
+ }
13607
13761
  var columnList = [{
13608
13762
  dataIndex: '',
13609
13763
  title: '序号',
@@ -13613,9 +13767,7 @@ var GoodItem$1 = function GoodItem(props) {
13613
13767
  render: function render(val, record, index) {
13614
13768
  return /*#__PURE__*/React.createElement("span", null, index + 1);
13615
13769
  }
13616
- }].concat(_toConsumableArray(GOODS_INFO_COLUMNS().filter(function (t) {
13617
- return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
13618
- })));
13770
+ }].concat(_toConsumableArray(baseInfoColumns));
13619
13771
  if (!disabled) {
13620
13772
  columnList.push({
13621
13773
  dataIndex: '',
@@ -13649,7 +13801,6 @@ var GoodItem$1 = function GoodItem(props) {
13649
13801
  }].concat(_toConsumableArray(columns));
13650
13802
  }, []);
13651
13803
  var onSubmit = function onSubmit(list) {
13652
- console.log('🚀 ~ onSubmit ~ list:', list);
13653
13804
  var newList = [];
13654
13805
  if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
13655
13806
  newList = list.map(function (item) {
@@ -16701,4 +16852,4 @@ var bsE3Reissue = function bsE3Reissue(props) {
16701
16852
  })));
16702
16853
  };
16703
16854
 
16704
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };
16855
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap };