@kmkf-fe-packages/basic-components 2.2.3-rc.0 → 2.2.3-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -22,377 +22,363 @@ var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
22
22
  var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
23
23
  var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
24
24
 
25
- function _iterableToArrayLimit(r, l) {
26
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
27
- if (null != t) {
28
- var e,
29
- n,
30
- i,
31
- u,
32
- a = [],
33
- f = !0,
34
- o = !1;
25
+ function _iterableToArrayLimit(arr, i) {
26
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
27
+ if (null != _i) {
28
+ var _s,
29
+ _e,
30
+ _x,
31
+ _r,
32
+ _arr = [],
33
+ _n = !0,
34
+ _d = !1;
35
35
  try {
36
- if (i = (t = t.call(r)).next, 0 === l) {
37
- if (Object(t) !== t) return;
38
- f = !1;
39
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
40
- } catch (r) {
41
- o = !0, n = r;
36
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
37
+ if (Object(_i) !== _i) return;
38
+ _n = !1;
39
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
40
+ } catch (err) {
41
+ _d = !0, _e = err;
42
42
  } finally {
43
43
  try {
44
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
44
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
45
45
  } finally {
46
- if (o) throw n;
46
+ if (_d) throw _e;
47
47
  }
48
48
  }
49
- return a;
49
+ return _arr;
50
50
  }
51
51
  }
52
- function ownKeys(e, r) {
53
- var t = Object.keys(e);
52
+ function ownKeys(object, enumerableOnly) {
53
+ var keys = Object.keys(object);
54
54
  if (Object.getOwnPropertySymbols) {
55
- var o = Object.getOwnPropertySymbols(e);
56
- r && (o = o.filter(function (r) {
57
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
58
- })), t.push.apply(t, o);
55
+ var symbols = Object.getOwnPropertySymbols(object);
56
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
57
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
58
+ })), keys.push.apply(keys, symbols);
59
59
  }
60
- return t;
61
- }
62
- function _objectSpread2(e) {
63
- for (var r = 1; r < arguments.length; r++) {
64
- var t = null != arguments[r] ? arguments[r] : {};
65
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
66
- _defineProperty(e, r, t[r]);
67
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
68
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
60
+ return keys;
61
+ }
62
+ function _objectSpread2(target) {
63
+ for (var i = 1; i < arguments.length; i++) {
64
+ var source = null != arguments[i] ? arguments[i] : {};
65
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
66
+ _defineProperty(target, key, source[key]);
67
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
68
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
69
69
  });
70
70
  }
71
- return e;
71
+ return target;
72
72
  }
73
73
  function _regeneratorRuntime() {
74
74
  _regeneratorRuntime = function () {
75
- return e;
76
- };
77
- var t,
78
- e = {},
79
- r = Object.prototype,
80
- n = r.hasOwnProperty,
81
- o = Object.defineProperty || function (t, e, r) {
82
- t[e] = r.value;
75
+ return exports;
76
+ };
77
+ var exports = {},
78
+ Op = Object.prototype,
79
+ hasOwn = Op.hasOwnProperty,
80
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
81
+ obj[key] = desc.value;
83
82
  },
84
- i = "function" == typeof Symbol ? Symbol : {},
85
- a = i.iterator || "@@iterator",
86
- c = i.asyncIterator || "@@asyncIterator",
87
- u = i.toStringTag || "@@toStringTag";
88
- function define(t, e, r) {
89
- return Object.defineProperty(t, e, {
90
- value: r,
83
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
84
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
85
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
86
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
87
+ function define(obj, key, value) {
88
+ return Object.defineProperty(obj, key, {
89
+ value: value,
91
90
  enumerable: !0,
92
91
  configurable: !0,
93
92
  writable: !0
94
- }), t[e];
93
+ }), obj[key];
95
94
  }
96
95
  try {
97
96
  define({}, "");
98
- } catch (t) {
99
- define = function (t, e, r) {
100
- return t[e] = r;
97
+ } catch (err) {
98
+ define = function (obj, key, value) {
99
+ return obj[key] = value;
101
100
  };
102
101
  }
103
- function wrap(t, e, r, n) {
104
- var i = e && e.prototype instanceof Generator ? e : Generator,
105
- a = Object.create(i.prototype),
106
- c = new Context(n || []);
107
- return o(a, "_invoke", {
108
- value: makeInvokeMethod(t, r, c)
109
- }), a;
102
+ function wrap(innerFn, outerFn, self, tryLocsList) {
103
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
104
+ generator = Object.create(protoGenerator.prototype),
105
+ context = new Context(tryLocsList || []);
106
+ return defineProperty(generator, "_invoke", {
107
+ value: makeInvokeMethod(innerFn, self, context)
108
+ }), generator;
110
109
  }
111
- function tryCatch(t, e, r) {
110
+ function tryCatch(fn, obj, arg) {
112
111
  try {
113
112
  return {
114
113
  type: "normal",
115
- arg: t.call(e, r)
114
+ arg: fn.call(obj, arg)
116
115
  };
117
- } catch (t) {
116
+ } catch (err) {
118
117
  return {
119
118
  type: "throw",
120
- arg: t
119
+ arg: err
121
120
  };
122
121
  }
123
122
  }
124
- e.wrap = wrap;
125
- var h = "suspendedStart",
126
- l = "suspendedYield",
127
- f = "executing",
128
- s = "completed",
129
- y = {};
123
+ exports.wrap = wrap;
124
+ var ContinueSentinel = {};
130
125
  function Generator() {}
131
126
  function GeneratorFunction() {}
132
127
  function GeneratorFunctionPrototype() {}
133
- var p = {};
134
- define(p, a, function () {
128
+ var IteratorPrototype = {};
129
+ define(IteratorPrototype, iteratorSymbol, function () {
135
130
  return this;
136
131
  });
137
- var d = Object.getPrototypeOf,
138
- v = d && d(d(values([])));
139
- v && v !== r && n.call(v, a) && (p = v);
140
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
141
- function defineIteratorMethods(t) {
142
- ["next", "throw", "return"].forEach(function (e) {
143
- define(t, e, function (t) {
144
- return this._invoke(e, t);
132
+ var getProto = Object.getPrototypeOf,
133
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
134
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
135
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
136
+ function defineIteratorMethods(prototype) {
137
+ ["next", "throw", "return"].forEach(function (method) {
138
+ define(prototype, method, function (arg) {
139
+ return this._invoke(method, arg);
145
140
  });
146
141
  });
147
142
  }
148
- function AsyncIterator(t, e) {
149
- function invoke(r, o, i, a) {
150
- var c = tryCatch(t[r], t, o);
151
- if ("throw" !== c.type) {
152
- var u = c.arg,
153
- h = u.value;
154
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
155
- invoke("next", t, i, a);
156
- }, function (t) {
157
- invoke("throw", t, i, a);
158
- }) : e.resolve(h).then(function (t) {
159
- u.value = t, i(u);
160
- }, function (t) {
161
- return invoke("throw", t, i, a);
143
+ function AsyncIterator(generator, PromiseImpl) {
144
+ function invoke(method, arg, resolve, reject) {
145
+ var record = tryCatch(generator[method], generator, arg);
146
+ if ("throw" !== record.type) {
147
+ var result = record.arg,
148
+ value = result.value;
149
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
150
+ invoke("next", value, resolve, reject);
151
+ }, function (err) {
152
+ invoke("throw", err, resolve, reject);
153
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
154
+ result.value = unwrapped, resolve(result);
155
+ }, function (error) {
156
+ return invoke("throw", error, resolve, reject);
162
157
  });
163
158
  }
164
- a(c.arg);
159
+ reject(record.arg);
165
160
  }
166
- var r;
167
- o(this, "_invoke", {
168
- value: function (t, n) {
161
+ var previousPromise;
162
+ defineProperty(this, "_invoke", {
163
+ value: function (method, arg) {
169
164
  function callInvokeWithMethodAndArg() {
170
- return new e(function (e, r) {
171
- invoke(t, n, e, r);
165
+ return new PromiseImpl(function (resolve, reject) {
166
+ invoke(method, arg, resolve, reject);
172
167
  });
173
168
  }
174
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
169
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
175
170
  }
176
171
  });
177
172
  }
178
- function makeInvokeMethod(e, r, n) {
179
- var o = h;
180
- return function (i, a) {
181
- if (o === f) throw new Error("Generator is already running");
182
- if (o === s) {
183
- if ("throw" === i) throw a;
184
- return {
185
- value: t,
186
- done: !0
187
- };
173
+ function makeInvokeMethod(innerFn, self, context) {
174
+ var state = "suspendedStart";
175
+ return function (method, arg) {
176
+ if ("executing" === state) throw new Error("Generator is already running");
177
+ if ("completed" === state) {
178
+ if ("throw" === method) throw arg;
179
+ return doneResult();
188
180
  }
189
- for (n.method = i, n.arg = a;;) {
190
- var c = n.delegate;
191
- if (c) {
192
- var u = maybeInvokeDelegate(c, n);
193
- if (u) {
194
- if (u === y) continue;
195
- return u;
181
+ for (context.method = method, context.arg = arg;;) {
182
+ var delegate = context.delegate;
183
+ if (delegate) {
184
+ var delegateResult = maybeInvokeDelegate(delegate, context);
185
+ if (delegateResult) {
186
+ if (delegateResult === ContinueSentinel) continue;
187
+ return delegateResult;
196
188
  }
197
189
  }
198
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
199
- if (o === h) throw o = s, n.arg;
200
- n.dispatchException(n.arg);
201
- } else "return" === n.method && n.abrupt("return", n.arg);
202
- o = f;
203
- var p = tryCatch(e, r, n);
204
- if ("normal" === p.type) {
205
- if (o = n.done ? s : l, p.arg === y) continue;
190
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
191
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
192
+ context.dispatchException(context.arg);
193
+ } else "return" === context.method && context.abrupt("return", context.arg);
194
+ state = "executing";
195
+ var record = tryCatch(innerFn, self, context);
196
+ if ("normal" === record.type) {
197
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
206
198
  return {
207
- value: p.arg,
208
- done: n.done
199
+ value: record.arg,
200
+ done: context.done
209
201
  };
210
202
  }
211
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
203
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
212
204
  }
213
205
  };
214
206
  }
215
- function maybeInvokeDelegate(e, r) {
216
- var n = r.method,
217
- o = e.iterator[n];
218
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
219
- var i = tryCatch(o, e.iterator, r.arg);
220
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
221
- var a = i.arg;
222
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
207
+ function maybeInvokeDelegate(delegate, context) {
208
+ var methodName = context.method,
209
+ method = delegate.iterator[methodName];
210
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
211
+ var record = tryCatch(method, delegate.iterator, context.arg);
212
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
213
+ var info = record.arg;
214
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
223
215
  }
224
- function pushTryEntry(t) {
225
- var e = {
226
- tryLoc: t[0]
216
+ function pushTryEntry(locs) {
217
+ var entry = {
218
+ tryLoc: locs[0]
227
219
  };
228
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
220
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
229
221
  }
230
- function resetTryEntry(t) {
231
- var e = t.completion || {};
232
- e.type = "normal", delete e.arg, t.completion = e;
222
+ function resetTryEntry(entry) {
223
+ var record = entry.completion || {};
224
+ record.type = "normal", delete record.arg, entry.completion = record;
233
225
  }
234
- function Context(t) {
226
+ function Context(tryLocsList) {
235
227
  this.tryEntries = [{
236
228
  tryLoc: "root"
237
- }], t.forEach(pushTryEntry, this), this.reset(!0);
229
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
238
230
  }
239
- function values(e) {
240
- if (e || "" === e) {
241
- var r = e[a];
242
- if (r) return r.call(e);
243
- if ("function" == typeof e.next) return e;
244
- if (!isNaN(e.length)) {
245
- var o = -1,
246
- i = function next() {
247
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
248
- return next.value = t, next.done = !0, next;
231
+ function values(iterable) {
232
+ if (iterable) {
233
+ var iteratorMethod = iterable[iteratorSymbol];
234
+ if (iteratorMethod) return iteratorMethod.call(iterable);
235
+ if ("function" == typeof iterable.next) return iterable;
236
+ if (!isNaN(iterable.length)) {
237
+ var i = -1,
238
+ next = function next() {
239
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
240
+ return next.value = undefined, next.done = !0, next;
249
241
  };
250
- return i.next = i;
242
+ return next.next = next;
251
243
  }
252
244
  }
253
- throw new TypeError(typeof e + " is not iterable");
245
+ return {
246
+ next: doneResult
247
+ };
254
248
  }
255
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
249
+ function doneResult() {
250
+ return {
251
+ value: undefined,
252
+ done: !0
253
+ };
254
+ }
255
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
256
256
  value: GeneratorFunctionPrototype,
257
257
  configurable: !0
258
- }), o(GeneratorFunctionPrototype, "constructor", {
258
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
259
259
  value: GeneratorFunction,
260
260
  configurable: !0
261
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
262
- var e = "function" == typeof t && t.constructor;
263
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
264
- }, e.mark = function (t) {
265
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
266
- }, e.awrap = function (t) {
261
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
262
+ var ctor = "function" == typeof genFun && genFun.constructor;
263
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
264
+ }, exports.mark = function (genFun) {
265
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
266
+ }, exports.awrap = function (arg) {
267
267
  return {
268
- __await: t
268
+ __await: arg
269
269
  };
270
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
270
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
271
271
  return this;
272
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
273
- void 0 === i && (i = Promise);
274
- var a = new AsyncIterator(wrap(t, r, n, o), i);
275
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
276
- return t.done ? t.value : a.next();
272
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
273
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
274
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
275
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
276
+ return result.done ? result.value : iter.next();
277
277
  });
278
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
278
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
279
279
  return this;
280
- }), define(g, "toString", function () {
280
+ }), define(Gp, "toString", function () {
281
281
  return "[object Generator]";
282
- }), e.keys = function (t) {
283
- var e = Object(t),
284
- r = [];
285
- for (var n in e) r.push(n);
286
- return r.reverse(), function next() {
287
- for (; r.length;) {
288
- var t = r.pop();
289
- if (t in e) return next.value = t, next.done = !1, next;
282
+ }), exports.keys = function (val) {
283
+ var object = Object(val),
284
+ keys = [];
285
+ for (var key in object) keys.push(key);
286
+ return keys.reverse(), function next() {
287
+ for (; keys.length;) {
288
+ var key = keys.pop();
289
+ if (key in object) return next.value = key, next.done = !1, next;
290
290
  }
291
291
  return next.done = !0, next;
292
292
  };
293
- }, e.values = values, Context.prototype = {
293
+ }, exports.values = values, Context.prototype = {
294
294
  constructor: Context,
295
- reset: function (e) {
296
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
295
+ reset: function (skipTempReset) {
296
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
297
297
  },
298
298
  stop: function () {
299
299
  this.done = !0;
300
- var t = this.tryEntries[0].completion;
301
- if ("throw" === t.type) throw t.arg;
300
+ var rootRecord = this.tryEntries[0].completion;
301
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
302
302
  return this.rval;
303
303
  },
304
- dispatchException: function (e) {
305
- if (this.done) throw e;
306
- var r = this;
307
- function handle(n, o) {
308
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
304
+ dispatchException: function (exception) {
305
+ if (this.done) throw exception;
306
+ var context = this;
307
+ function handle(loc, caught) {
308
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
309
309
  }
310
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
311
- var i = this.tryEntries[o],
312
- a = i.completion;
313
- if ("root" === i.tryLoc) return handle("end");
314
- if (i.tryLoc <= this.prev) {
315
- var c = n.call(i, "catchLoc"),
316
- u = n.call(i, "finallyLoc");
317
- if (c && u) {
318
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
319
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
320
- } else if (c) {
321
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
310
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
311
+ var entry = this.tryEntries[i],
312
+ record = entry.completion;
313
+ if ("root" === entry.tryLoc) return handle("end");
314
+ if (entry.tryLoc <= this.prev) {
315
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
316
+ hasFinally = hasOwn.call(entry, "finallyLoc");
317
+ if (hasCatch && hasFinally) {
318
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
319
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
320
+ } else if (hasCatch) {
321
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
322
322
  } else {
323
- if (!u) throw new Error("try statement without catch or finally");
324
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
323
+ if (!hasFinally) throw new Error("try statement without catch or finally");
324
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
325
325
  }
326
326
  }
327
327
  }
328
328
  },
329
- abrupt: function (t, e) {
330
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
331
- var o = this.tryEntries[r];
332
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
333
- var i = o;
329
+ abrupt: function (type, arg) {
330
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
331
+ var entry = this.tryEntries[i];
332
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
333
+ var finallyEntry = entry;
334
334
  break;
335
335
  }
336
336
  }
337
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
338
- var a = i ? i.completion : {};
339
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
337
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
338
+ var record = finallyEntry ? finallyEntry.completion : {};
339
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
340
340
  },
341
- complete: function (t, e) {
342
- if ("throw" === t.type) throw t.arg;
343
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
341
+ complete: function (record, afterLoc) {
342
+ if ("throw" === record.type) throw record.arg;
343
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
344
344
  },
345
- finish: function (t) {
346
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
347
- var r = this.tryEntries[e];
348
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
345
+ finish: function (finallyLoc) {
346
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
347
+ var entry = this.tryEntries[i];
348
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
349
349
  }
350
350
  },
351
- catch: function (t) {
352
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
353
- var r = this.tryEntries[e];
354
- if (r.tryLoc === t) {
355
- var n = r.completion;
356
- if ("throw" === n.type) {
357
- var o = n.arg;
358
- resetTryEntry(r);
351
+ catch: function (tryLoc) {
352
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
353
+ var entry = this.tryEntries[i];
354
+ if (entry.tryLoc === tryLoc) {
355
+ var record = entry.completion;
356
+ if ("throw" === record.type) {
357
+ var thrown = record.arg;
358
+ resetTryEntry(entry);
359
359
  }
360
- return o;
360
+ return thrown;
361
361
  }
362
362
  }
363
363
  throw new Error("illegal catch attempt");
364
364
  },
365
- delegateYield: function (e, r, n) {
365
+ delegateYield: function (iterable, resultName, nextLoc) {
366
366
  return this.delegate = {
367
- iterator: values(e),
368
- resultName: r,
369
- nextLoc: n
370
- }, "next" === this.method && (this.arg = t), y;
371
- }
372
- }, e;
373
- }
374
- function _toPrimitive(t, r) {
375
- if ("object" != typeof t || !t) return t;
376
- var e = t[Symbol.toPrimitive];
377
- if (void 0 !== e) {
378
- var i = e.call(t, r || "default");
379
- if ("object" != typeof i) return i;
380
- throw new TypeError("@@toPrimitive must return a primitive value.");
381
- }
382
- return ("string" === r ? String : Number)(t);
383
- }
384
- function _toPropertyKey(t) {
385
- var i = _toPrimitive(t, "string");
386
- return "symbol" == typeof i ? i : String(i);
367
+ iterator: values(iterable),
368
+ resultName: resultName,
369
+ nextLoc: nextLoc
370
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
371
+ }
372
+ }, exports;
387
373
  }
388
- function _typeof(o) {
374
+ function _typeof(obj) {
389
375
  "@babel/helpers - typeof";
390
376
 
391
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
392
- return typeof o;
393
- } : function (o) {
394
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
395
- }, _typeof(o);
377
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
378
+ return typeof obj;
379
+ } : function (obj) {
380
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
381
+ }, _typeof(obj);
396
382
  }
397
383
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
398
384
  try {
@@ -550,6 +536,20 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
550
536
  }
551
537
  };
552
538
  }
539
+ function _toPrimitive(input, hint) {
540
+ if (typeof input !== "object" || input === null) return input;
541
+ var prim = input[Symbol.toPrimitive];
542
+ if (prim !== undefined) {
543
+ var res = prim.call(input, hint || "default");
544
+ if (typeof res !== "object") return res;
545
+ throw new TypeError("@@toPrimitive must return a primitive value.");
546
+ }
547
+ return (hint === "string" ? String : Number)(input);
548
+ }
549
+ function _toPropertyKey(arg) {
550
+ var key = _toPrimitive(arg, "string");
551
+ return typeof key === "symbol" ? key : String(key);
552
+ }
553
553
 
554
554
  function ApaasCascader(props) {
555
555
  return /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
@@ -8056,6 +8056,29 @@ function withFormItem(WrappedComponent) {
8056
8056
  */
8057
8057
  var extendRequest = request.extend({});
8058
8058
 
8059
+ function HoverTableRowDeleteIcon(_ref) {
8060
+ var index = _ref.index,
8061
+ hoveredRowIndex = _ref.hoveredRowIndex,
8062
+ handleClick = _ref.handleClick;
8063
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", {
8064
+ style: {
8065
+ display: hoveredRowIndex === index ? 'none' : 'inline'
8066
+ }
8067
+ }, index + 1), /*#__PURE__*/React__default['default'].createElement("span", {
8068
+ style: {
8069
+ cursor: 'pointer'
8070
+ },
8071
+ onClick: handleClick,
8072
+ title: "\u5220\u9664"
8073
+ }, /*#__PURE__*/React__default['default'].createElement(icons.MinusCircleFilled, {
8074
+ style: {
8075
+ fontSize: 18,
8076
+ color: '#1890ff',
8077
+ display: hoveredRowIndex === index ? 'inline' : 'none'
8078
+ }
8079
+ })));
8080
+ }
8081
+
8059
8082
  var WidgetMap = {
8060
8083
  INPUT: 'input',
8061
8084
  TEXTAREA: 'textarea'
@@ -8075,7 +8098,9 @@ var SubForm = function SubForm(props) {
8075
8098
  correlationList = _props$subConfig.correlationList,
8076
8099
  tableHeader = props.tableHeader,
8077
8100
  disabled = props.disabled,
8078
- platform = props.platform;
8101
+ platform = props.platform,
8102
+ manual = props.manual,
8103
+ maxCount = props.maxCount;
8079
8104
  var ref = React.useRef(null);
8080
8105
  var isRequest = React.useRef(false);
8081
8106
  var _useState = React.useState(false),
@@ -8102,6 +8127,10 @@ var SubForm = function SubForm(props) {
8102
8127
  _useState12 = _slicedToArray(_useState11, 2),
8103
8128
  hasMore = _useState12[0],
8104
8129
  setHasMore = _useState12[1];
8130
+ var _useState13 = React.useState(null),
8131
+ _useState14 = _slicedToArray(_useState13, 2),
8132
+ hoveredRowIndex = _useState14[0],
8133
+ setHoveredRowIndex = _useState14[1];
8105
8134
  var updateHandle = function updateHandle(val, index, type) {
8106
8135
  if (value === null || value === void 0 ? void 0 : value.length) {
8107
8136
  var valueItem = tableHeader.find(function (t) {
@@ -8135,11 +8164,14 @@ var SubForm = function SubForm(props) {
8135
8164
  title: '序号',
8136
8165
  width: 50,
8137
8166
  render: function render(val, record, index) {
8138
- return /*#__PURE__*/React__default['default'].createElement("div", {
8139
- style: {
8140
- width: 25
8167
+ return /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
8168
+ index: index,
8169
+ hoveredRowIndex: hoveredRowIndex,
8170
+ handleClick: function handleClick() {
8171
+ return deleteHandle(record.uuid);
8141
8172
  }
8142
- }, index + 1);
8173
+ });
8174
+ // return <div style={{ width: 25 }}>{index + 1}</div>;
8143
8175
  }
8144
8176
  }].concat(_toConsumableArray(newTableHeader.map(function (t) {
8145
8177
  return {
@@ -8180,13 +8212,28 @@ var SubForm = function SubForm(props) {
8180
8212
  dataIndex: 'operation',
8181
8213
  title: '操作',
8182
8214
  width: 70,
8215
+ fixed: 'right',
8183
8216
  render: function render(val, record, index) {
8184
- return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
8185
- type: "link",
8217
+ return /*#__PURE__*/React__default['default'].createElement(antd.Space, null, manual && /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8218
+ title: "\u6DFB\u52A0"
8219
+ }, /*#__PURE__*/React__default['default'].createElement(icons.PlusCircleFilled, {
8220
+ style: {
8221
+ fontSize: 18,
8222
+ color: '#1890ff'
8223
+ },
8224
+ onClick: function onClick() {
8225
+ return addHandle(index + 1);
8226
+ }
8227
+ })), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8228
+ title: "\u5220\u9664"
8229
+ }, /*#__PURE__*/React__default['default'].createElement(icons.MinusCircleFilled, {
8230
+ style: {
8231
+ fontSize: 18
8232
+ },
8186
8233
  onClick: function onClick() {
8187
8234
  return deleteHandle(record.uuid);
8188
8235
  }
8189
- }, "\u5220\u9664");
8236
+ })));
8190
8237
  }
8191
8238
  }]);
8192
8239
  var columsSearch = React.useMemo(function () {
@@ -8212,6 +8259,12 @@ var SubForm = function SubForm(props) {
8212
8259
  return prv;
8213
8260
  }, {});
8214
8261
  }, [newTableHeader]);
8262
+ var defaultValueMap = React.useMemo(function () {
8263
+ return Object.keys(valueMap).reduce(function (prv, next) {
8264
+ prv["".concat(valueMap[next])] = '';
8265
+ return prv;
8266
+ }, {});
8267
+ }, [valueMap]);
8215
8268
  var selectOptions = React.useMemo(function () {
8216
8269
  var _options$;
8217
8270
  var options = newTableHeader.map(function (item) {
@@ -8229,6 +8282,17 @@ var SubForm = function SubForm(props) {
8229
8282
  });
8230
8283
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
8231
8284
  };
8285
+ var addHandle = function addHandle(index) {
8286
+ if (maxCount && (value === null || value === void 0 ? void 0 : value.length) >= maxCount) {
8287
+ antd.message.error("\u8BE5\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u6761"));
8288
+ return;
8289
+ }
8290
+ var newValue = _toConsumableArray(value || []);
8291
+ newValue.splice(index, 0, _objectSpread2(_objectSpread2({}, defaultValueMap), {}, {
8292
+ uuid: kmkfUtils.uuid()
8293
+ }));
8294
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
8295
+ };
8232
8296
  var onScrollCapture = function onScrollCapture(e) {
8233
8297
  if (e.target.scrollTop + e.target.clientHeight >= e.target.scrollHeight - 20) {
8234
8298
  if (hasMore && !isRequest.current) {
@@ -8436,7 +8500,22 @@ var SubForm = function SubForm(props) {
8436
8500
  x: '100%'
8437
8501
  },
8438
8502
  locale: {
8439
- emptyText: '暂无数据'
8503
+ emptyText: !disabled && manual ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u6682\u65E0\u6570\u636E,", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
8504
+ type: "link",
8505
+ onClick: function onClick() {
8506
+ return addHandle(0);
8507
+ }
8508
+ }, "\u70B9\u51FB\u6DFB\u52A0")) : '暂无数据'
8509
+ },
8510
+ onRow: function onRow(_, index) {
8511
+ return {
8512
+ onMouseEnter: function onMouseEnter() {
8513
+ return setHoveredRowIndex(index !== null && index !== void 0 ? index : null);
8514
+ },
8515
+ onMouseLeave: function onMouseLeave() {
8516
+ return setHoveredRowIndex(null);
8517
+ }
8518
+ };
8440
8519
  }
8441
8520
  }));
8442
8521
  };
@@ -11733,7 +11812,7 @@ var typeInitValueMap = {
11733
11812
  }]
11734
11813
  };
11735
11814
  var jstGoods = function jstGoods(props) {
11736
- var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12;
11815
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12, _value$changeIndex13;
11737
11816
  var _props$value = props.value,
11738
11817
  value = _props$value === void 0 ? [] : _props$value,
11739
11818
  onChange = props.onChange,
@@ -11744,7 +11823,8 @@ var jstGoods = function jstGoods(props) {
11744
11823
  showField = _props$showField === void 0 ? '' : _props$showField,
11745
11824
  _props$platformType = props.platformType,
11746
11825
  platformType = _props$platformType === void 0 ? 'default' : _props$platformType,
11747
- onlyShowFieldSelect = props.onlyShowFieldSelect;
11826
+ onlyShowFieldSelect = props.onlyShowFieldSelect,
11827
+ logisticsCompanyFormType = props.logisticsCompanyFormType;
11748
11828
  var _useState = React.useState(0),
11749
11829
  _useState2 = _slicedToArray(_useState, 2),
11750
11830
  changeIndex = _useState2[0],
@@ -11835,13 +11915,20 @@ var jstGoods = function jstGoods(props) {
11835
11915
  return setChangeIndex(index);
11836
11916
  }
11837
11917
  }, "\u5305\u88F9".concat(index + 1)));
11838
- }))) : null, value.length || type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
11918
+ }))) : null, value.length || type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, logisticsCompanyFormType === 'input' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11919
+ disabled: disabled,
11920
+ placeholder: "\u7269\u6D41\u516C\u53F8",
11921
+ onChange: function onChange(e) {
11922
+ return changeInputHandle(e.target.value, 'logisticsCompany');
11923
+ },
11924
+ value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.logisticsCompany
11925
+ }) : /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
11839
11926
  disabled: disabled,
11840
11927
  placeholder: "\u7269\u6D41\u516C\u53F8",
11841
11928
  onChange: function onChange(val) {
11842
11929
  changeInputHandle(val, 'logisticsCompany');
11843
11930
  },
11844
- value: platformType === 'gy' ? expressDateInstance.getExpressNameByCode((_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex['logisticsCompany'], false) ? (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompany'] : (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompanyName'] : (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4['logisticsCompany'],
11931
+ value: platformType === 'gy' ? (expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompany'], false)) ? (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompany'] : (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4['logisticsCompanyName'] : (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5['logisticsCompany'],
11845
11932
  showSearch: true,
11846
11933
  dropdownMatchSelectWidth: false,
11847
11934
  filterOption: function filterOption(input, option) {
@@ -11852,34 +11939,34 @@ var jstGoods = function jstGoods(props) {
11852
11939
  maxWidth: '180px'
11853
11940
  },
11854
11941
  platformType: platformType
11855
- }) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11942
+ })) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11856
11943
  disabled: disabled,
11857
11944
  placeholder: "\u7269\u6D41\u5355\u53F7",
11858
11945
  onChange: function onChange(e) {
11859
11946
  return changeInputHandle(e.target.value, 'logisticsCode');
11860
11947
  },
11861
- value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.logisticsCode
11948
+ value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.logisticsCode
11862
11949
  }) : null) : null, type === 2 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11863
11950
  disabled: disabled,
11864
11951
  placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u7F16\u7801",
11865
11952
  onChange: function onChange(e) {
11866
11953
  return changeInputHandle(e.target.value, 'supplyId');
11867
11954
  },
11868
- value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.supplyId
11955
+ value: (_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.supplyId
11869
11956
  }), ['supplyName', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11870
11957
  disabled: disabled,
11871
11958
  placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u540D\u79F0",
11872
11959
  onChange: function onChange(e) {
11873
11960
  return changeInputHandle(e.target.value, 'supplyName');
11874
11961
  },
11875
- value: (_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.supplyName
11962
+ value: (_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.supplyName
11876
11963
  })) : null, type === 3 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['sendId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11877
11964
  disabled: disabled,
11878
11965
  placeholder: "\u8BF7\u8F93\u5165\u53D1\u8D27\u4ED3\u7F16\u7801",
11879
11966
  onChange: function onChange(e) {
11880
11967
  return changeInputHandle(e.target.value, 'sendId');
11881
11968
  },
11882
- value: (_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendId
11969
+ value: (_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendId
11883
11970
  }), ['sendName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
11884
11971
  style: {
11885
11972
  minWidth: '100px',
@@ -11890,7 +11977,7 @@ var jstGoods = function jstGoods(props) {
11890
11977
  showSearch: true,
11891
11978
  options: sendOptions,
11892
11979
  filterOption: filterOption,
11893
- value: ((_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendSnapshotId) || ((_value$changeIndex10 = value[changeIndex]) === null || _value$changeIndex10 === void 0 ? void 0 : _value$changeIndex10.sendName) || null,
11980
+ value: ((_value$changeIndex10 = value[changeIndex]) === null || _value$changeIndex10 === void 0 ? void 0 : _value$changeIndex10.sendSnapshotId) || ((_value$changeIndex11 = value[changeIndex]) === null || _value$changeIndex11 === void 0 ? void 0 : _value$changeIndex11.sendName) || null,
11894
11981
  onChange: function onChange(value, option) {
11895
11982
  return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
11896
11983
  }
@@ -11900,14 +11987,14 @@ var jstGoods = function jstGoods(props) {
11900
11987
  onChange: function onChange(e) {
11901
11988
  return changeInputHandle(e.target.value, 'sendName');
11902
11989
  },
11903
- value: (_value$changeIndex11 = value[changeIndex]) === null || _value$changeIndex11 === void 0 ? void 0 : _value$changeIndex11.sendName
11990
+ value: (_value$changeIndex12 = value[changeIndex]) === null || _value$changeIndex12 === void 0 ? void 0 : _value$changeIndex12.sendName
11904
11991
  }))) : null, type === 4 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11905
11992
  disabled: disabled,
11906
11993
  placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
11907
11994
  onChange: function onChange(e) {
11908
11995
  return changeInputHandle(e.target.value, 'deliveryNo');
11909
11996
  },
11910
- value: (_value$changeIndex12 = value[changeIndex]) === null || _value$changeIndex12 === void 0 ? void 0 : _value$changeIndex12.sendName
11997
+ value: (_value$changeIndex13 = value[changeIndex]) === null || _value$changeIndex13 === void 0 ? void 0 : _value$changeIndex13.sendName
11911
11998
  })) : null) : null);
11912
11999
  };
11913
12000
 
@@ -16571,6 +16658,34 @@ var getColumns$6 = function getColumns(_ref) {
16571
16658
  };
16572
16659
 
16573
16660
  var getColumns$7 = function getColumns(_ref) {
16661
+ var _ref$text = _ref.text,
16662
+ disabled = _ref.disabled,
16663
+ updateHandle = _ref.updateHandle,
16664
+ updateDataHandle = _ref.updateDataHandle;
16665
+ return {
16666
+ //[SKX]商品信息(ON)
16667
+ SKX_GOODS: [{
16668
+ dataIndex: 'skuEcode',
16669
+ title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
16670
+ width: 200
16671
+ }, {
16672
+ dataIndex: 'subOrderId',
16673
+ title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
16674
+ width: 300
16675
+ }, {
16676
+ dataIndex: 'onBillNo',
16677
+ title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
16678
+ width: 200
16679
+ }].map(function (item) {
16680
+ return _objectSpread2(_objectSpread2({}, item), {}, {
16681
+ align: 'center',
16682
+ ellipsis: true
16683
+ });
16684
+ })
16685
+ };
16686
+ };
16687
+
16688
+ var getColumns$8 = function getColumns(_ref) {
16574
16689
  var _ref$text = _ref.text,
16575
16690
  text = _ref$text === void 0 ? '' : _ref$text,
16576
16691
  disabled = _ref.disabled,
@@ -16683,7 +16798,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
16683
16798
  disabled = _ref.disabled,
16684
16799
  updateHandle = _ref.updateHandle,
16685
16800
  updateDataHandle = _ref.updateDataHandle;
16686
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
16801
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
16687
16802
  text: text,
16688
16803
  disabled: disabled,
16689
16804
  updateHandle: updateHandle
@@ -16712,8 +16827,12 @@ var getColumnsMap$1 = function getColumnsMap(args) {
16712
16827
  text: text,
16713
16828
  disabled: disabled,
16714
16829
  updateHandle: updateHandle
16830
+ })), getColumns$7({
16831
+ text: text,
16832
+ disabled: disabled,
16833
+ updateHandle: updateHandle
16715
16834
  })), {}, {
16716
- default: getColumns$7({
16835
+ default: getColumns$8({
16717
16836
  text: text,
16718
16837
  disabled: disabled,
16719
16838
  updateHandle: updateHandle
@@ -16842,29 +16961,6 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
16842
16961
  });
16843
16962
  };
16844
16963
 
16845
- function HoverTableRowDeleteIcon(_ref) {
16846
- var index = _ref.index,
16847
- hoveredRowIndex = _ref.hoveredRowIndex,
16848
- handleClick = _ref.handleClick;
16849
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", {
16850
- style: {
16851
- display: hoveredRowIndex === index ? 'none' : 'inline'
16852
- }
16853
- }, index + 1), /*#__PURE__*/React__default['default'].createElement("span", {
16854
- style: {
16855
- cursor: 'pointer'
16856
- },
16857
- onClick: handleClick,
16858
- title: "\u5220\u9664"
16859
- }, /*#__PURE__*/React__default['default'].createElement(icons.MinusCircleFilled, {
16860
- style: {
16861
- fontSize: 18,
16862
- color: '#1890ff',
16863
- display: hoveredRowIndex === index ? 'inline' : 'none'
16864
- }
16865
- })));
16866
- }
16867
-
16868
16964
  var isErpType = {
16869
16965
  isWdt: function isWdt(type) {
16870
16966
  return ['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type);
@@ -17179,10 +17275,13 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
17179
17275
  fixed: true,
17180
17276
  onChange: handleChangeSelectedKeys
17181
17277
  };
17278
+ var buttonTextMapping = {
17279
+ SKX_GOODS: '选择发货单商品'
17280
+ };
17182
17281
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
17183
17282
  type: "link",
17184
17283
  onClick: openModal
17185
- }, "\u9009\u62E9\u8BA2\u5355\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
17284
+ }, buttonTextMapping[type] || '选择订单商品'), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
17186
17285
  title: "\u8BA2\u5355\u5546\u54C1",
17187
17286
  visible: tradeGoodsVisible,
17188
17287
  footer: null,
@@ -17379,6 +17478,7 @@ var GoodItem$1 = function GoodItem(props) {
17379
17478
  case 'GY_RETURN_GOODS':
17380
17479
  case 'KM_GOODS':
17381
17480
  case 'KM_REISSUE_GOODS':
17481
+ case 'SKX_GOODS':
17382
17482
  {
17383
17483
  columns = getColumnsMap$1({
17384
17484
  text: text,
@@ -22225,6 +22325,358 @@ var KmVideo = function KmVideo(_ref) {
22225
22325
  }))));
22226
22326
  };
22227
22327
 
22328
+ var singletonMap$7 = new Map();
22329
+ var getAllGoods = function getAllGoods(params, setLoading) {
22330
+ var id = params.tid || params.onBillNo || '';
22331
+ if (!singletonMap$7.has(id)) {
22332
+ setLoading && setLoading(true);
22333
+ var p = new Promise(function (resolve, reject) {
22334
+ var doReject = function doReject(err) {
22335
+ // 清空掉错误的请求记录
22336
+ singletonMap$7.delete(id);
22337
+ reject(err);
22338
+ };
22339
+ extendRequest('/qy/gdfw/order/skxOrderDetail', {
22340
+ method: 'post',
22341
+ data: params
22342
+ }).then(function (res) {
22343
+ if (res === null || res === void 0 ? void 0 : res.success) {
22344
+ var _res$data, _res$data$orderDetail;
22345
+ if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$orderDetail = _res$data.orderDetailInfoList) === null || _res$data$orderDetail === void 0 ? void 0 : _res$data$orderDetail.length) {
22346
+ var orderDetailInfoList = res === null || res === void 0 ? void 0 : res.data.orderDetailInfoList;
22347
+ res.data.trades = orderDetailInfoList[0].subOrderList.map(function (subItem) {
22348
+ return {
22349
+ onBillNo: orderDetailInfoList[0].onBillNo,
22350
+ skuEcode: subItem.skuEcode,
22351
+ subOrderId: subItem.subOrderId
22352
+ };
22353
+ });
22354
+ }
22355
+ resolve(res.data);
22356
+ // 延迟10秒清除,保证订单的时效性
22357
+ setTimeout(function () {
22358
+ singletonMap$7.delete(id);
22359
+ }, 1000 * 10);
22360
+ } else {
22361
+ doReject(res);
22362
+ }
22363
+ }).catch(doReject).finally(function () {
22364
+ setLoading && setLoading(false);
22365
+ });
22366
+ });
22367
+ singletonMap$7.set(id, p);
22368
+ }
22369
+ return singletonMap$7.get(id);
22370
+ };
22371
+ var skxUtils = {
22372
+ getAllGoods: getAllGoods
22373
+ };
22374
+
22375
+ var typeMap$6 = {
22376
+ SKX_OUTBOUND_NOTICE_NO: {
22377
+ key: 'onBillNo',
22378
+ notDataText: '未获取到出库通知单号',
22379
+ placeholder: '请点击按钮选择或者输入ON出库通知单号',
22380
+ buttonText: '选择ON出库通知单号',
22381
+ columnHeaders: {
22382
+ title: '出库通知单号',
22383
+ subListName: 'subOrderList',
22384
+ leftColumn: {
22385
+ label: '[SKX]发货单明细-skuEcode',
22386
+ value: 'skuEcode'
22387
+ },
22388
+ rightColumn: {
22389
+ label: '[SKX]发货单—子订单号',
22390
+ value: 'subOrderId'
22391
+ }
22392
+ },
22393
+ asyncGetData: function () {
22394
+ var _asyncGetData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(tradeId) {
22395
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
22396
+ while (1) switch (_context.prev = _context.next) {
22397
+ case 0:
22398
+ return _context.abrupt("return", skxUtils.getAllGoods({
22399
+ tid: tradeId
22400
+ }).then(function (data) {
22401
+ var orderDetailInfoList = data.orderDetailInfoList || [];
22402
+ return orderDetailInfoList;
22403
+ }));
22404
+ case 1:
22405
+ case "end":
22406
+ return _context.stop();
22407
+ }
22408
+ }, _callee);
22409
+ }));
22410
+ function asyncGetData(_x) {
22411
+ return _asyncGetData.apply(this, arguments);
22412
+ }
22413
+ return asyncGetData;
22414
+ }()
22415
+ }
22416
+ };
22417
+ var IdInputSelect = function IdInputSelect(props) {
22418
+ var value = props.value,
22419
+ onChange = props.onChange,
22420
+ _onBlur = props.onBlur,
22421
+ disabled = props.disabled,
22422
+ form = props.form,
22423
+ templateDetail = props.templateDetail,
22424
+ type = props.type;
22425
+ var _useState = React.useState(value),
22426
+ _useState2 = _slicedToArray(_useState, 2),
22427
+ inputValue = _useState2[0],
22428
+ setInputValue = _useState2[1];
22429
+ // 控制Popover显示状态
22430
+ var _useState3 = React.useState(false),
22431
+ _useState4 = _slicedToArray(_useState3, 2),
22432
+ popoverVisible = _useState4[0],
22433
+ setPopoverVisible = _useState4[1];
22434
+ var _useState5 = React.useState(false),
22435
+ _useState6 = _slicedToArray(_useState5, 2),
22436
+ spinning = _useState6[0],
22437
+ setSpinning = _useState6[1];
22438
+ var divRef = React.useRef(null);
22439
+ var _useState7 = React.useState(340),
22440
+ _useState8 = _slicedToArray(_useState7, 2),
22441
+ width = _useState8[0],
22442
+ setWidth = _useState8[1];
22443
+ var tradeIdRef = React.useRef('');
22444
+ var _useState9 = React.useState([]),
22445
+ _useState10 = _slicedToArray(_useState9, 2),
22446
+ dataSource = _useState10[0],
22447
+ setDataSource = _useState10[1];
22448
+ React.useEffect(function () {
22449
+ if (!divRef.current) return;
22450
+ var measuredWidth = divRef.current.offsetWidth;
22451
+ setWidth(measuredWidth);
22452
+ }, []);
22453
+ //当外部数据源变化时更新内部状态;
22454
+ React.useEffect(function () {
22455
+ if (popoverVisible) {
22456
+ asyncQueryData();
22457
+ }
22458
+ }, [popoverVisible]);
22459
+ React.useEffect(function () {
22460
+ setInputValue(value);
22461
+ }, [value]);
22462
+ var asyncQueryData = /*#__PURE__*/function () {
22463
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
22464
+ var tradeId;
22465
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
22466
+ while (1) switch (_context2.prev = _context2.next) {
22467
+ case 0:
22468
+ tradeId = form.getFieldValue('m3ap1EvEyd');
22469
+ console.log('asyncQueryData---', {
22470
+ tradeId: tradeId,
22471
+ tradeIdRef: tradeIdRef.current,
22472
+ form: form
22473
+ });
22474
+ if (tradeId) {
22475
+ _context2.next = 5;
22476
+ break;
22477
+ }
22478
+ setDataSource([]);
22479
+ return _context2.abrupt("return");
22480
+ case 5:
22481
+ setSpinning(true);
22482
+ typeMap$6[type].asyncGetData(tradeId).then(function (data) {
22483
+ setDataSource(data);
22484
+ }).catch(function () {
22485
+ setDataSource([]);
22486
+ }).finally(function () {
22487
+ setSpinning(false);
22488
+ });
22489
+ case 7:
22490
+ case "end":
22491
+ return _context2.stop();
22492
+ }
22493
+ }, _callee2);
22494
+ }));
22495
+ return function asyncQueryData() {
22496
+ return _ref.apply(this, arguments);
22497
+ };
22498
+ }();
22499
+ // 渲染Popover内容
22500
+ var RenderPopoverContent = function RenderPopoverContent() {
22501
+ return /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
22502
+ spinning: spinning
22503
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
22504
+ style: {
22505
+ width: typeof width === 'number' ? width - 30 : 320,
22506
+ maxHeight: 400,
22507
+ minHeight: 36,
22508
+ overflow: 'auto'
22509
+ }
22510
+ }, !spinning && (!dataSource || dataSource.length === 0) && /*#__PURE__*/React__default['default'].createElement("div", {
22511
+ style: {
22512
+ textAlign: 'center',
22513
+ color: '#858585',
22514
+ padding: 10
22515
+ }
22516
+ }, typeMap$6[type].notDataText), dataSource && dataSource.length > 0 && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
22517
+ style: {
22518
+ display: 'flex',
22519
+ padding: '8px 12px',
22520
+ fontWeight: 500,
22521
+ color: '#333'
22522
+ }
22523
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
22524
+ style: {
22525
+ flex: 1
22526
+ }
22527
+ }, typeMap$6[type].columnHeaders.leftColumn.label), /*#__PURE__*/React__default['default'].createElement("div", {
22528
+ style: {
22529
+ flex: 1
22530
+ }
22531
+ }, typeMap$6[type].columnHeaders.rightColumn.label)), dataSource.map(function (group) {
22532
+ return /*#__PURE__*/React__default['default'].createElement("div", {
22533
+ key: group[typeMap$6[type].key]
22534
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
22535
+ style: {
22536
+ display: 'flex',
22537
+ alignItems: 'center',
22538
+ padding: '8px 12px',
22539
+ backgroundColor: '#f5f5f4'
22540
+ }
22541
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
22542
+ checked: value === group[typeMap$6[type].key],
22543
+ onChange: function onChange() {
22544
+ if (value !== group[typeMap$6[type].key]) {
22545
+ handleChange(group[typeMap$6[type].key]);
22546
+ kmkfUtils.skxSystemOrderBackValues({
22547
+ templateList: templateDetail,
22548
+ value: {
22549
+ allOrders: [group]
22550
+ },
22551
+ form: form
22552
+ });
22553
+ }
22554
+ },
22555
+ style: {
22556
+ marginRight: 12
22557
+ }
22558
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, typeMap$6[type].columnHeaders.title, ":", group[typeMap$6[type].key])), (group[typeMap$6[type].columnHeaders.subListName] || []).map(function (item, itemIndex) {
22559
+ return /*#__PURE__*/React__default['default'].createElement("div", {
22560
+ key: "".concat(group[typeMap$6[type].key], "-").concat(itemIndex),
22561
+ style: {
22562
+ padding: '8px 12px',
22563
+ display: 'flex'
22564
+ }
22565
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
22566
+ style: {
22567
+ flex: 1,
22568
+ wordBreak: 'break-all'
22569
+ }
22570
+ }, item[typeMap$6[type].columnHeaders.leftColumn.value]), /*#__PURE__*/React__default['default'].createElement("div", {
22571
+ style: {
22572
+ flex: 1,
22573
+ wordBreak: 'break-all'
22574
+ }
22575
+ }, item[typeMap$6[type].columnHeaders.rightColumn.value]));
22576
+ }));
22577
+ }))));
22578
+ };
22579
+ var handleChange = function handleChange(val) {
22580
+ onChange === null || onChange === void 0 ? void 0 : onChange(val);
22581
+ // 关闭浮窗
22582
+ setPopoverVisible(false);
22583
+ };
22584
+ return /*#__PURE__*/React__default['default'].createElement("div", {
22585
+ ref: divRef
22586
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
22587
+ placeholder: typeMap$6[type].placeholder,
22588
+ disabled: disabled,
22589
+ value: inputValue,
22590
+ onBlur: function onBlur(e) {
22591
+ handleChange(e.target.value);
22592
+ _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e);
22593
+ },
22594
+ onChange: function onChange(e) {
22595
+ setInputValue(e.target.value);
22596
+ }
22597
+ }), !disabled && /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
22598
+ content: /*#__PURE__*/React__default['default'].createElement(RenderPopoverContent, null),
22599
+ trigger: "click",
22600
+ visible: popoverVisible,
22601
+ onVisibleChange: setPopoverVisible
22602
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Tag, {
22603
+ color: "processing",
22604
+ style: {
22605
+ padding: '3px 8px',
22606
+ marginTop: 8,
22607
+ cursor: 'pointer'
22608
+ }
22609
+ }, typeMap$6[type].buttonText)));
22610
+ };
22611
+
22612
+ var typeMap$7 = {
22613
+ SKX_GOODS: {
22614
+ key: 'skxGoods',
22615
+ uniqueKey: 'skuEcode',
22616
+ requestParams: {
22617
+ key: 'onBillNo',
22618
+ sourceUniqueKey: '78CADF2951',
22619
+ request: skxUtils.getAllGoods
22620
+ },
22621
+ updateHandle: kmkfUtils.updateSkxGoodsHandle
22622
+ }
22623
+ };
22624
+ var SkxGoods = function SkxGoods(props) {
22625
+ var value = props.value,
22626
+ disabled = props.disabled,
22627
+ onChange = props.onChange,
22628
+ form = props.form,
22629
+ type = props.type;
22630
+ var changeHandle = function changeHandle(list) {
22631
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, typeMap$7[type].key, list)));
22632
+ };
22633
+ // 找到该订单号下所有商品
22634
+ var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
22635
+ var goodDetails = typeMap$7[type].updateHandle((value === null || value === void 0 ? void 0 : value.allGoods) || []);
22636
+ return goodDetails;
22637
+ };
22638
+ var selectedGoodsChange = React.useCallback(function (skuList) {
22639
+ var _uniqBy;
22640
+ var newValue = _objectSpread2({}, value);
22641
+ // 原订单商品
22642
+ var originTradeGoodList = getAllTradeGoodsDetails() || [];
22643
+ // 当前选中的所有商品【包含了原订单+商品库】
22644
+ var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value[typeMap$7[type].key]) || [];
22645
+ newValue[typeMap$7[type].key] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), typeMap$7[type].uniqueKey)) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
22646
+ return skuList.includes(item[typeMap$7[type].uniqueKey]);
22647
+ });
22648
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
22649
+ }, [value === null || value === void 0 ? void 0 : value[typeMap$7[type].key]]);
22650
+ // 商品信息组件暂存后 重新编辑,此时需要重新获取on单号下所有商品信息
22651
+ var getDataSourceAsync = function getDataSourceAsync() {
22652
+ var businessNo = form.getFieldValue(typeMap$7[type].requestParams.sourceUniqueKey);
22653
+ if (!businessNo) {
22654
+ return Promise.resolve([]);
22655
+ }
22656
+ return typeMap$7[type].requestParams.request(_defineProperty({}, typeMap$7[type].requestParams.key, businessNo)).then(function (data) {
22657
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
22658
+ allGoods: (data === null || data === void 0 ? void 0 : data.trades) || []
22659
+ }));
22660
+ });
22661
+ };
22662
+ return /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
22663
+ key: typeMap$7[type].key
22664
+ }, props), {}, {
22665
+ disabled: disabled,
22666
+ value: value === null || value === void 0 ? void 0 : value[typeMap$7[type].key],
22667
+ onChange: function onChange(val) {
22668
+ return changeHandle(val);
22669
+ },
22670
+ showModeBtn: false,
22671
+ tradeGoods: {
22672
+ uniqueKey: typeMap$7[type].uniqueKey,
22673
+ originDataSource: getAllTradeGoodsDetails(),
22674
+ getDataSourceAsync: getDataSourceAsync,
22675
+ selectedGoodsChange: selectedGoodsChange
22676
+ }
22677
+ }));
22678
+ };
22679
+
22228
22680
  exports.Address = ApaasAddress;
22229
22681
  exports.AliPay = AliPay;
22230
22682
  exports.ApaasAddress = Province;
@@ -22284,6 +22736,8 @@ exports.PublicReissue = PublicReissue;
22284
22736
  exports.Remark = RemarkInput;
22285
22737
  exports.ReturnLogistics = ExpressLogistics;
22286
22738
  exports.ShopName = ShopNameSelect;
22739
+ exports.SkxGoods = SkxGoods;
22740
+ exports.SkxIdInputSelect = IdInputSelect;
22287
22741
  exports.Status = Status;
22288
22742
  exports.SubForm = SubForm;
22289
22743
  exports.Supplier = Supplier;
@@ -22300,5 +22754,7 @@ exports.erpModalColumnsMap = index$2;
22300
22754
  exports.getGyColumns = getColumns$4;
22301
22755
  exports.getJstColumns = getColumns$5;
22302
22756
  exports.getKmColumns = getColumns$6;
22757
+ exports.getSkxColumns = getColumns$7;
22303
22758
  exports.getWdtColumns = getColumns$2;
22304
22759
  exports.getWlnColumns = getColumns$3;
22760
+ exports.skxUtils = skxUtils;