@kmkf-fe-packages/basic-components 2.2.13-beta.3 → 2.2.13-beta.6

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
@@ -14,377 +14,363 @@ import { internals, useTablePipeline, features, BaseTable } from 'ali-react-tabl
14
14
  import zh_CN from 'antd/lib/locale-provider/zh_CN';
15
15
  import BigNumber from 'bignumber.js';
16
16
 
17
- function _iterableToArrayLimit(r, l) {
18
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
19
- if (null != t) {
20
- var e,
21
- n,
22
- i,
23
- u,
24
- a = [],
25
- f = !0,
26
- o = !1;
17
+ function _iterableToArrayLimit(arr, i) {
18
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
19
+ if (null != _i) {
20
+ var _s,
21
+ _e,
22
+ _x,
23
+ _r,
24
+ _arr = [],
25
+ _n = !0,
26
+ _d = !1;
27
27
  try {
28
- if (i = (t = t.call(r)).next, 0 === l) {
29
- if (Object(t) !== t) return;
30
- f = !1;
31
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
32
- } catch (r) {
33
- o = !0, n = r;
28
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
29
+ if (Object(_i) !== _i) return;
30
+ _n = !1;
31
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
32
+ } catch (err) {
33
+ _d = !0, _e = err;
34
34
  } finally {
35
35
  try {
36
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
36
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
37
37
  } finally {
38
- if (o) throw n;
38
+ if (_d) throw _e;
39
39
  }
40
40
  }
41
- return a;
41
+ return _arr;
42
42
  }
43
43
  }
44
- function ownKeys(e, r) {
45
- var t = Object.keys(e);
44
+ function ownKeys(object, enumerableOnly) {
45
+ var keys = Object.keys(object);
46
46
  if (Object.getOwnPropertySymbols) {
47
- var o = Object.getOwnPropertySymbols(e);
48
- r && (o = o.filter(function (r) {
49
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
50
- })), t.push.apply(t, o);
47
+ var symbols = Object.getOwnPropertySymbols(object);
48
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
49
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
50
+ })), keys.push.apply(keys, symbols);
51
51
  }
52
- return t;
53
- }
54
- function _objectSpread2(e) {
55
- for (var r = 1; r < arguments.length; r++) {
56
- var t = null != arguments[r] ? arguments[r] : {};
57
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
58
- _defineProperty(e, r, t[r]);
59
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
60
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
52
+ return keys;
53
+ }
54
+ function _objectSpread2(target) {
55
+ for (var i = 1; i < arguments.length; i++) {
56
+ var source = null != arguments[i] ? arguments[i] : {};
57
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
58
+ _defineProperty(target, key, source[key]);
59
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
60
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
61
61
  });
62
62
  }
63
- return e;
63
+ return target;
64
64
  }
65
65
  function _regeneratorRuntime() {
66
66
  _regeneratorRuntime = function () {
67
- return e;
68
- };
69
- var t,
70
- e = {},
71
- r = Object.prototype,
72
- n = r.hasOwnProperty,
73
- o = Object.defineProperty || function (t, e, r) {
74
- t[e] = r.value;
67
+ return exports;
68
+ };
69
+ var exports = {},
70
+ Op = Object.prototype,
71
+ hasOwn = Op.hasOwnProperty,
72
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
73
+ obj[key] = desc.value;
75
74
  },
76
- i = "function" == typeof Symbol ? Symbol : {},
77
- a = i.iterator || "@@iterator",
78
- c = i.asyncIterator || "@@asyncIterator",
79
- u = i.toStringTag || "@@toStringTag";
80
- function define(t, e, r) {
81
- return Object.defineProperty(t, e, {
82
- value: r,
75
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
76
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
77
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
78
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
79
+ function define(obj, key, value) {
80
+ return Object.defineProperty(obj, key, {
81
+ value: value,
83
82
  enumerable: !0,
84
83
  configurable: !0,
85
84
  writable: !0
86
- }), t[e];
85
+ }), obj[key];
87
86
  }
88
87
  try {
89
88
  define({}, "");
90
- } catch (t) {
91
- define = function (t, e, r) {
92
- return t[e] = r;
89
+ } catch (err) {
90
+ define = function (obj, key, value) {
91
+ return obj[key] = value;
93
92
  };
94
93
  }
95
- function wrap(t, e, r, n) {
96
- var i = e && e.prototype instanceof Generator ? e : Generator,
97
- a = Object.create(i.prototype),
98
- c = new Context(n || []);
99
- return o(a, "_invoke", {
100
- value: makeInvokeMethod(t, r, c)
101
- }), a;
94
+ function wrap(innerFn, outerFn, self, tryLocsList) {
95
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
96
+ generator = Object.create(protoGenerator.prototype),
97
+ context = new Context(tryLocsList || []);
98
+ return defineProperty(generator, "_invoke", {
99
+ value: makeInvokeMethod(innerFn, self, context)
100
+ }), generator;
102
101
  }
103
- function tryCatch(t, e, r) {
102
+ function tryCatch(fn, obj, arg) {
104
103
  try {
105
104
  return {
106
105
  type: "normal",
107
- arg: t.call(e, r)
106
+ arg: fn.call(obj, arg)
108
107
  };
109
- } catch (t) {
108
+ } catch (err) {
110
109
  return {
111
110
  type: "throw",
112
- arg: t
111
+ arg: err
113
112
  };
114
113
  }
115
114
  }
116
- e.wrap = wrap;
117
- var h = "suspendedStart",
118
- l = "suspendedYield",
119
- f = "executing",
120
- s = "completed",
121
- y = {};
115
+ exports.wrap = wrap;
116
+ var ContinueSentinel = {};
122
117
  function Generator() {}
123
118
  function GeneratorFunction() {}
124
119
  function GeneratorFunctionPrototype() {}
125
- var p = {};
126
- define(p, a, function () {
120
+ var IteratorPrototype = {};
121
+ define(IteratorPrototype, iteratorSymbol, function () {
127
122
  return this;
128
123
  });
129
- var d = Object.getPrototypeOf,
130
- v = d && d(d(values([])));
131
- v && v !== r && n.call(v, a) && (p = v);
132
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
133
- function defineIteratorMethods(t) {
134
- ["next", "throw", "return"].forEach(function (e) {
135
- define(t, e, function (t) {
136
- return this._invoke(e, t);
124
+ var getProto = Object.getPrototypeOf,
125
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
126
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
127
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
128
+ function defineIteratorMethods(prototype) {
129
+ ["next", "throw", "return"].forEach(function (method) {
130
+ define(prototype, method, function (arg) {
131
+ return this._invoke(method, arg);
137
132
  });
138
133
  });
139
134
  }
140
- function AsyncIterator(t, e) {
141
- function invoke(r, o, i, a) {
142
- var c = tryCatch(t[r], t, o);
143
- if ("throw" !== c.type) {
144
- var u = c.arg,
145
- h = u.value;
146
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
147
- invoke("next", t, i, a);
148
- }, function (t) {
149
- invoke("throw", t, i, a);
150
- }) : e.resolve(h).then(function (t) {
151
- u.value = t, i(u);
152
- }, function (t) {
153
- return invoke("throw", t, i, a);
135
+ function AsyncIterator(generator, PromiseImpl) {
136
+ function invoke(method, arg, resolve, reject) {
137
+ var record = tryCatch(generator[method], generator, arg);
138
+ if ("throw" !== record.type) {
139
+ var result = record.arg,
140
+ value = result.value;
141
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
142
+ invoke("next", value, resolve, reject);
143
+ }, function (err) {
144
+ invoke("throw", err, resolve, reject);
145
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
146
+ result.value = unwrapped, resolve(result);
147
+ }, function (error) {
148
+ return invoke("throw", error, resolve, reject);
154
149
  });
155
150
  }
156
- a(c.arg);
151
+ reject(record.arg);
157
152
  }
158
- var r;
159
- o(this, "_invoke", {
160
- value: function (t, n) {
153
+ var previousPromise;
154
+ defineProperty(this, "_invoke", {
155
+ value: function (method, arg) {
161
156
  function callInvokeWithMethodAndArg() {
162
- return new e(function (e, r) {
163
- invoke(t, n, e, r);
157
+ return new PromiseImpl(function (resolve, reject) {
158
+ invoke(method, arg, resolve, reject);
164
159
  });
165
160
  }
166
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
161
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
167
162
  }
168
163
  });
169
164
  }
170
- function makeInvokeMethod(e, r, n) {
171
- var o = h;
172
- return function (i, a) {
173
- if (o === f) throw new Error("Generator is already running");
174
- if (o === s) {
175
- if ("throw" === i) throw a;
176
- return {
177
- value: t,
178
- done: !0
179
- };
180
- }
181
- for (n.method = i, n.arg = a;;) {
182
- var c = n.delegate;
183
- if (c) {
184
- var u = maybeInvokeDelegate(c, n);
185
- if (u) {
186
- if (u === y) continue;
187
- return u;
165
+ function makeInvokeMethod(innerFn, self, context) {
166
+ var state = "suspendedStart";
167
+ return function (method, arg) {
168
+ if ("executing" === state) throw new Error("Generator is already running");
169
+ if ("completed" === state) {
170
+ if ("throw" === method) throw arg;
171
+ return doneResult();
172
+ }
173
+ for (context.method = method, context.arg = arg;;) {
174
+ var delegate = context.delegate;
175
+ if (delegate) {
176
+ var delegateResult = maybeInvokeDelegate(delegate, context);
177
+ if (delegateResult) {
178
+ if (delegateResult === ContinueSentinel) continue;
179
+ return delegateResult;
188
180
  }
189
181
  }
190
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
191
- if (o === h) throw o = s, n.arg;
192
- n.dispatchException(n.arg);
193
- } else "return" === n.method && n.abrupt("return", n.arg);
194
- o = f;
195
- var p = tryCatch(e, r, n);
196
- if ("normal" === p.type) {
197
- if (o = n.done ? s : l, p.arg === y) continue;
182
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
183
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
184
+ context.dispatchException(context.arg);
185
+ } else "return" === context.method && context.abrupt("return", context.arg);
186
+ state = "executing";
187
+ var record = tryCatch(innerFn, self, context);
188
+ if ("normal" === record.type) {
189
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
198
190
  return {
199
- value: p.arg,
200
- done: n.done
191
+ value: record.arg,
192
+ done: context.done
201
193
  };
202
194
  }
203
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
195
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
204
196
  }
205
197
  };
206
198
  }
207
- function maybeInvokeDelegate(e, r) {
208
- var n = r.method,
209
- o = e.iterator[n];
210
- 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;
211
- var i = tryCatch(o, e.iterator, r.arg);
212
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
213
- var a = i.arg;
214
- 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);
199
+ function maybeInvokeDelegate(delegate, context) {
200
+ var methodName = context.method,
201
+ method = delegate.iterator[methodName];
202
+ 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;
203
+ var record = tryCatch(method, delegate.iterator, context.arg);
204
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
205
+ var info = record.arg;
206
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
215
207
  }
216
- function pushTryEntry(t) {
217
- var e = {
218
- tryLoc: t[0]
208
+ function pushTryEntry(locs) {
209
+ var entry = {
210
+ tryLoc: locs[0]
219
211
  };
220
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
212
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
221
213
  }
222
- function resetTryEntry(t) {
223
- var e = t.completion || {};
224
- e.type = "normal", delete e.arg, t.completion = e;
214
+ function resetTryEntry(entry) {
215
+ var record = entry.completion || {};
216
+ record.type = "normal", delete record.arg, entry.completion = record;
225
217
  }
226
- function Context(t) {
218
+ function Context(tryLocsList) {
227
219
  this.tryEntries = [{
228
220
  tryLoc: "root"
229
- }], t.forEach(pushTryEntry, this), this.reset(!0);
221
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
230
222
  }
231
- function values(e) {
232
- if (e || "" === e) {
233
- var r = e[a];
234
- if (r) return r.call(e);
235
- if ("function" == typeof e.next) return e;
236
- if (!isNaN(e.length)) {
237
- var o = -1,
238
- i = function next() {
239
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
240
- return next.value = t, next.done = !0, next;
223
+ function values(iterable) {
224
+ if (iterable) {
225
+ var iteratorMethod = iterable[iteratorSymbol];
226
+ if (iteratorMethod) return iteratorMethod.call(iterable);
227
+ if ("function" == typeof iterable.next) return iterable;
228
+ if (!isNaN(iterable.length)) {
229
+ var i = -1,
230
+ next = function next() {
231
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
232
+ return next.value = undefined, next.done = !0, next;
241
233
  };
242
- return i.next = i;
234
+ return next.next = next;
243
235
  }
244
236
  }
245
- throw new TypeError(typeof e + " is not iterable");
237
+ return {
238
+ next: doneResult
239
+ };
246
240
  }
247
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
241
+ function doneResult() {
242
+ return {
243
+ value: undefined,
244
+ done: !0
245
+ };
246
+ }
247
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
248
248
  value: GeneratorFunctionPrototype,
249
249
  configurable: !0
250
- }), o(GeneratorFunctionPrototype, "constructor", {
250
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
251
251
  value: GeneratorFunction,
252
252
  configurable: !0
253
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
254
- var e = "function" == typeof t && t.constructor;
255
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
256
- }, e.mark = function (t) {
257
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
258
- }, e.awrap = function (t) {
253
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
254
+ var ctor = "function" == typeof genFun && genFun.constructor;
255
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
256
+ }, exports.mark = function (genFun) {
257
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
258
+ }, exports.awrap = function (arg) {
259
259
  return {
260
- __await: t
260
+ __await: arg
261
261
  };
262
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
262
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
263
263
  return this;
264
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
265
- void 0 === i && (i = Promise);
266
- var a = new AsyncIterator(wrap(t, r, n, o), i);
267
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
268
- return t.done ? t.value : a.next();
264
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
265
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
266
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
267
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
268
+ return result.done ? result.value : iter.next();
269
269
  });
270
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
270
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
271
271
  return this;
272
- }), define(g, "toString", function () {
272
+ }), define(Gp, "toString", function () {
273
273
  return "[object Generator]";
274
- }), e.keys = function (t) {
275
- var e = Object(t),
276
- r = [];
277
- for (var n in e) r.push(n);
278
- return r.reverse(), function next() {
279
- for (; r.length;) {
280
- var t = r.pop();
281
- if (t in e) return next.value = t, next.done = !1, next;
274
+ }), exports.keys = function (val) {
275
+ var object = Object(val),
276
+ keys = [];
277
+ for (var key in object) keys.push(key);
278
+ return keys.reverse(), function next() {
279
+ for (; keys.length;) {
280
+ var key = keys.pop();
281
+ if (key in object) return next.value = key, next.done = !1, next;
282
282
  }
283
283
  return next.done = !0, next;
284
284
  };
285
- }, e.values = values, Context.prototype = {
285
+ }, exports.values = values, Context.prototype = {
286
286
  constructor: Context,
287
- reset: function (e) {
288
- 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);
287
+ reset: function (skipTempReset) {
288
+ 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);
289
289
  },
290
290
  stop: function () {
291
291
  this.done = !0;
292
- var t = this.tryEntries[0].completion;
293
- if ("throw" === t.type) throw t.arg;
292
+ var rootRecord = this.tryEntries[0].completion;
293
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
294
294
  return this.rval;
295
295
  },
296
- dispatchException: function (e) {
297
- if (this.done) throw e;
298
- var r = this;
299
- function handle(n, o) {
300
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
301
- }
302
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
303
- var i = this.tryEntries[o],
304
- a = i.completion;
305
- if ("root" === i.tryLoc) return handle("end");
306
- if (i.tryLoc <= this.prev) {
307
- var c = n.call(i, "catchLoc"),
308
- u = n.call(i, "finallyLoc");
309
- if (c && u) {
310
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
311
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
312
- } else if (c) {
313
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
296
+ dispatchException: function (exception) {
297
+ if (this.done) throw exception;
298
+ var context = this;
299
+ function handle(loc, caught) {
300
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
301
+ }
302
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
303
+ var entry = this.tryEntries[i],
304
+ record = entry.completion;
305
+ if ("root" === entry.tryLoc) return handle("end");
306
+ if (entry.tryLoc <= this.prev) {
307
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
308
+ hasFinally = hasOwn.call(entry, "finallyLoc");
309
+ if (hasCatch && hasFinally) {
310
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
311
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
312
+ } else if (hasCatch) {
313
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
314
314
  } else {
315
- if (!u) throw new Error("try statement without catch or finally");
316
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
315
+ if (!hasFinally) throw new Error("try statement without catch or finally");
316
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
317
317
  }
318
318
  }
319
319
  }
320
320
  },
321
- abrupt: function (t, e) {
322
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
323
- var o = this.tryEntries[r];
324
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
325
- var i = o;
321
+ abrupt: function (type, arg) {
322
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
323
+ var entry = this.tryEntries[i];
324
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
325
+ var finallyEntry = entry;
326
326
  break;
327
327
  }
328
328
  }
329
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
330
- var a = i ? i.completion : {};
331
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
329
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
330
+ var record = finallyEntry ? finallyEntry.completion : {};
331
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
332
332
  },
333
- complete: function (t, e) {
334
- if ("throw" === t.type) throw t.arg;
335
- 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;
333
+ complete: function (record, afterLoc) {
334
+ if ("throw" === record.type) throw record.arg;
335
+ 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;
336
336
  },
337
- finish: function (t) {
338
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
339
- var r = this.tryEntries[e];
340
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
337
+ finish: function (finallyLoc) {
338
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
339
+ var entry = this.tryEntries[i];
340
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
341
341
  }
342
342
  },
343
- catch: function (t) {
344
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
345
- var r = this.tryEntries[e];
346
- if (r.tryLoc === t) {
347
- var n = r.completion;
348
- if ("throw" === n.type) {
349
- var o = n.arg;
350
- resetTryEntry(r);
343
+ catch: function (tryLoc) {
344
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
345
+ var entry = this.tryEntries[i];
346
+ if (entry.tryLoc === tryLoc) {
347
+ var record = entry.completion;
348
+ if ("throw" === record.type) {
349
+ var thrown = record.arg;
350
+ resetTryEntry(entry);
351
351
  }
352
- return o;
352
+ return thrown;
353
353
  }
354
354
  }
355
355
  throw new Error("illegal catch attempt");
356
356
  },
357
- delegateYield: function (e, r, n) {
357
+ delegateYield: function (iterable, resultName, nextLoc) {
358
358
  return this.delegate = {
359
- iterator: values(e),
360
- resultName: r,
361
- nextLoc: n
362
- }, "next" === this.method && (this.arg = t), y;
363
- }
364
- }, e;
365
- }
366
- function _toPrimitive(t, r) {
367
- if ("object" != typeof t || !t) return t;
368
- var e = t[Symbol.toPrimitive];
369
- if (void 0 !== e) {
370
- var i = e.call(t, r || "default");
371
- if ("object" != typeof i) return i;
372
- throw new TypeError("@@toPrimitive must return a primitive value.");
373
- }
374
- return ("string" === r ? String : Number)(t);
375
- }
376
- function _toPropertyKey(t) {
377
- var i = _toPrimitive(t, "string");
378
- return "symbol" == typeof i ? i : String(i);
359
+ iterator: values(iterable),
360
+ resultName: resultName,
361
+ nextLoc: nextLoc
362
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
363
+ }
364
+ }, exports;
379
365
  }
380
- function _typeof(o) {
366
+ function _typeof(obj) {
381
367
  "@babel/helpers - typeof";
382
368
 
383
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
384
- return typeof o;
385
- } : function (o) {
386
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
387
- }, _typeof(o);
369
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
370
+ return typeof obj;
371
+ } : function (obj) {
372
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
373
+ }, _typeof(obj);
388
374
  }
389
375
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
390
376
  try {
@@ -542,6 +528,20 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
542
528
  }
543
529
  };
544
530
  }
531
+ function _toPrimitive(input, hint) {
532
+ if (typeof input !== "object" || input === null) return input;
533
+ var prim = input[Symbol.toPrimitive];
534
+ if (prim !== undefined) {
535
+ var res = prim.call(input, hint || "default");
536
+ if (typeof res !== "object") return res;
537
+ throw new TypeError("@@toPrimitive must return a primitive value.");
538
+ }
539
+ return (hint === "string" ? String : Number)(input);
540
+ }
541
+ function _toPropertyKey(arg) {
542
+ var key = _toPrimitive(arg, "string");
543
+ return typeof key === "symbol" ? key : String(key);
544
+ }
545
545
 
546
546
  function ApaasCascader(props) {
547
547
  return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
@@ -16757,7 +16757,8 @@ var Rate = function Rate(_ref) {
16757
16757
  var value = _ref.value,
16758
16758
  _onChange = _ref.onChange,
16759
16759
  placeholder = _ref.placeholder,
16760
- prefix = _ref.prefix;
16760
+ prefix = _ref.prefix,
16761
+ onSubmit = _ref.onSubmit;
16761
16762
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(InputNumber, {
16762
16763
  prefix: prefix,
16763
16764
  style: {
@@ -16767,7 +16768,8 @@ var Rate = function Rate(_ref) {
16767
16768
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[0],
16768
16769
  onChange: function onChange(val) {
16769
16770
  _onChange([val ? Number(val) : val, value === null || value === void 0 ? void 0 : value[1]]);
16770
- }
16771
+ },
16772
+ onBlur: onSubmit
16771
16773
  }), /*#__PURE__*/React.createElement("span", {
16772
16774
  style: {
16773
16775
  padding: '0px 8px'
@@ -16781,7 +16783,8 @@ var Rate = function Rate(_ref) {
16781
16783
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[1],
16782
16784
  onChange: function onChange(val) {
16783
16785
  _onChange([value === null || value === void 0 ? void 0 : value[0], val ? Number(val) : val]);
16784
- }
16786
+ },
16787
+ onBlur: onSubmit
16785
16788
  }));
16786
16789
  };
16787
16790
 
@@ -16865,6 +16868,7 @@ var _SelectInput = function SelectInput(props) {
16865
16868
  newValue.keywords = '';
16866
16869
  }
16867
16870
  onChange(newValue);
16871
+ props.onSubmit();
16868
16872
  };
16869
16873
  var handleInputChange = function handleInputChange(e) {
16870
16874
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
@@ -16887,7 +16891,8 @@ var _SelectInput = function SelectInput(props) {
16887
16891
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16888
16892
  value: value.keywords,
16889
16893
  allowClear: true,
16890
- onChange: handleInputChange
16894
+ onChange: handleInputChange,
16895
+ onBlur: props.onSubmit
16891
16896
  }) : null);
16892
16897
  };
16893
16898
  var _TradeInput = function TradeInput(props) {
@@ -16915,59 +16920,71 @@ var _TradeInput = function TradeInput(props) {
16915
16920
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16916
16921
  allowClear: true,
16917
16922
  value: value.value,
16918
- onChange: handleInputChange
16923
+ onChange: handleInputChange,
16924
+ onBlur: props.onSubmit
16919
16925
  }), isRepeat ) : /*#__PURE__*/React.createElement("div", {
16920
16926
  key: 'tradeInput'
16921
16927
  }, /*#__PURE__*/React.createElement(TrimInput, {
16922
16928
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16923
16929
  allowClear: true,
16924
16930
  value: value.value,
16925
- onChange: handleInputChange
16931
+ onChange: handleInputChange,
16932
+ onBlur: props.onSubmit
16926
16933
  }), isRepeat );
16927
16934
  };
16928
16935
  var componentMap$1 = {
16929
16936
  Input: function Input(props) {
16930
16937
  return "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
16931
16938
  title: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name)
16932
- }, /*#__PURE__*/React.createElement(TrimInput, _objectSpread2({
16939
+ }, /*#__PURE__*/React.createElement(TrimInput, _objectSpread2(_objectSpread2({
16933
16940
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16934
16941
  allowClear: true
16935
- }, props))) : /*#__PURE__*/React.createElement(TrimInput, _objectSpread2({
16942
+ }, props), {}, {
16943
+ onBlur: props.handleBlur
16944
+ }))) : /*#__PURE__*/React.createElement(TrimInput, _objectSpread2(_objectSpread2({
16936
16945
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16937
16946
  allowClear: true
16938
- }, props));
16947
+ }, props), {}, {
16948
+ onBlur: props.handleBlur
16949
+ }));
16939
16950
  },
16940
16951
  MultipleSelect: function MultipleSelect(props) {
16941
16952
  return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
16942
16953
  title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
16943
- }, /*#__PURE__*/React.createElement(Select, _objectSpread2({
16954
+ }, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
16944
16955
  mode: "multiple",
16945
16956
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16946
16957
  optionFilterProp: "label",
16947
16958
  allowClear: true,
16948
16959
  maxTagCount: "responsive"
16949
- }, props))) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
16960
+ }, props), {}, {
16961
+ onChange: props.handleChange
16962
+ }))) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
16950
16963
  mode: "multiple",
16951
16964
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16952
16965
  optionFilterProp: "label",
16953
16966
  allowClear: true,
16954
16967
  maxTagCount: "responsive"
16955
- }, props));
16968
+ }, props), {}, {
16969
+ onChange: props.handleChange
16970
+ }));
16956
16971
  },
16957
16972
  Date: function Date(props) {
16958
- return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2({
16973
+ return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
16959
16974
  placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
16960
16975
  allowClear: true,
16961
16976
  showTime: {
16962
16977
  defaultValue: [hooks().startOf('day'), hooks().endOf('day')]
16963
16978
  },
16964
16979
  maxTagCount: "responsive"
16965
- }, props));
16980
+ }, props), {}, {
16981
+ onChange: props.handleChange
16982
+ }));
16966
16983
  },
16967
16984
  Cascader: function Cascader$1(props) {
16968
16985
  return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
16969
16986
  title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
16970
- }, /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
16987
+ }, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({
16971
16988
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16972
16989
  allowClear: true,
16973
16990
  showSearch: true,
@@ -16977,7 +16994,9 @@ var componentMap$1 = {
16977
16994
  value: 'actived',
16978
16995
  children: 'children'
16979
16996
  }
16980
- }, props))) : /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
16997
+ }, props), {}, {
16998
+ onChange: props.handleChange
16999
+ }))) : /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({
16981
17000
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16982
17001
  allowClear: true,
16983
17002
  showSearch: true,
@@ -16987,7 +17006,9 @@ var componentMap$1 = {
16987
17006
  value: 'actived',
16988
17007
  children: 'children'
16989
17008
  }
16990
- }, props));
17009
+ }, props), {}, {
17010
+ onChange: props.handleChange
17011
+ }));
16991
17012
  },
16992
17013
  // ShopList: (props: any) => (
16993
17014
  // <ShopList
@@ -17010,9 +17031,11 @@ var componentMap$1 = {
17010
17031
  return /*#__PURE__*/React.createElement(_TradeInput, _objectSpread2({}, props));
17011
17032
  },
17012
17033
  AsyncSelect: function AsyncSelect$1(props) {
17013
- return /*#__PURE__*/React.createElement(AsyncSelect, _objectSpread2({
17034
+ return /*#__PURE__*/React.createElement(AsyncSelect, _objectSpread2(_objectSpread2({
17014
17035
  placeholder: "\u8BF7\u9009\u62E9".concat((props === null || props === void 0 ? void 0 : props.name) || '')
17015
- }, props));
17036
+ }, props), {}, {
17037
+ onChange: props.handleChange
17038
+ }));
17016
17039
  }
17017
17040
  };
17018
17041
  var FilterSelectOption = function FilterSelectOption(props) {
@@ -17022,8 +17045,26 @@ var FilterSelectOption = function FilterSelectOption(props) {
17022
17045
  componentProps = props.props,
17023
17046
  ShopList = props.ShopList,
17024
17047
  otherProps = _objectWithoutProperties(props, _excluded$g);
17048
+ var handleChange = function handleChange() {
17049
+ var _props$onChange, _props$onSubmit;
17050
+ for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
17051
+ params[_key] = arguments[_key];
17052
+ }
17053
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call.apply(_props$onChange, [props].concat(params));
17054
+ (_props$onSubmit = props.onSubmit) === null || _props$onSubmit === void 0 ? void 0 : _props$onSubmit.call(props);
17055
+ };
17056
+ var handleBlur = function handleBlur(props) {
17057
+ return function () {
17058
+ var _props$onBlur, _props$onSubmit2;
17059
+ for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
17060
+ params[_key2] = arguments[_key2];
17061
+ }
17062
+ (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call.apply(_props$onBlur, [props].concat(params));
17063
+ (_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 ? void 0 : _props$onSubmit2.call(props);
17064
+ };
17065
+ };
17025
17066
  var Comp = filterComponentType === 'ShopList' ? function (props) {
17026
- return /*#__PURE__*/React.createElement(ShopList, _objectSpread2({
17067
+ return /*#__PURE__*/React.createElement(ShopList, _objectSpread2(_objectSpread2({
17027
17068
  placeholder: "\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",
17028
17069
  showSearch: true,
17029
17070
  optionFilterProp: "label",
@@ -17033,7 +17074,9 @@ var FilterSelectOption = function FilterSelectOption(props) {
17033
17074
  style: {
17034
17075
  width: '190px'
17035
17076
  }
17036
- }, props));
17077
+ }, props), {}, {
17078
+ onChange: handleChange
17079
+ }));
17037
17080
  } : componentMap$1[filterComponentType];
17038
17081
  var newComponentProps = cloneDeep(componentProps);
17039
17082
  if (hasAddNullComponent.includes(props.type)) {
@@ -17208,7 +17251,10 @@ var FilterSelectOption = function FilterSelectOption(props) {
17208
17251
  })
17209
17252
  });
17210
17253
  }
17211
- if (Comp) return /*#__PURE__*/React.createElement(Comp, _objectSpread2(_objectSpread2({}, newComponentProps), otherProps));
17254
+ if (Comp) return /*#__PURE__*/React.createElement(Comp, _objectSpread2(_objectSpread2(_objectSpread2({}, newComponentProps), otherProps), {}, {
17255
+ handleChange: handleChange,
17256
+ handleBlur: handleBlur
17257
+ }));
17212
17258
  return null;
17213
17259
  };
17214
17260
 
@@ -17245,7 +17291,8 @@ var SearchHeader = function SearchHeader(_ref) {
17245
17291
  _ref$isShowTime = _ref.isShowTime,
17246
17292
  isShowTime = _ref$isShowTime === void 0 ? true : _ref$isShowTime,
17247
17293
  timeOptions = _ref.timeOptions,
17248
- ShopList = _ref.ShopList;
17294
+ ShopList = _ref.ShopList,
17295
+ onSubmit = _ref.onSubmit;
17249
17296
  // const fixedFieldsOptions = useMemo(() => {
17250
17297
  // return allFields.filter(item => fixedFields?.includes(item.id));
17251
17298
  // }, [fixedFields, allFields]);
@@ -17301,9 +17348,11 @@ var SearchHeader = function SearchHeader(_ref) {
17301
17348
  minWidth: '190px'
17302
17349
  },
17303
17350
  key: item.id
17304
- }, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2({
17351
+ }, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2(_objectSpread2({
17305
17352
  ShopList: ShopList
17306
- }, item)));
17353
+ }, item), {}, {
17354
+ onSubmit: onSubmit
17355
+ })));
17307
17356
  }), /*#__PURE__*/React.createElement(Form.Item, null, layout === 'inner' && /*#__PURE__*/React.createElement(React.Fragment, null, children)))), layout === 'block' && /*#__PURE__*/React.createElement(React.Fragment, null, children));
17308
17357
  };
17309
17358
 
@@ -17340,7 +17389,8 @@ var SearchForm$1 = function SearchForm(props) {
17340
17389
  ShopList: props.ShopList,
17341
17390
  fixedFields: filterItems || [],
17342
17391
  allFields: filterItems || [],
17343
- status: status === null || status === void 0 ? void 0 : status.open
17392
+ status: status === null || status === void 0 ? void 0 : status.open,
17393
+ onSubmit: submit
17344
17394
  }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
17345
17395
  type: "primary",
17346
17396
  onClick: submit
@@ -20245,7 +20295,7 @@ var getColumns$7 = function getColumns(_ref) {
20245
20295
  width: 150
20246
20296
  }, {
20247
20297
  dataIndex: 'goodsClass',
20248
- title: "\u8D27\u54C1ID",
20298
+ title: "\u8D27\u54C1\u7C7B\u522B",
20249
20299
  width: 150
20250
20300
  }, {
20251
20301
  dataIndex: 'code',
@@ -20281,12 +20331,6 @@ var getColumns$7 = function getColumns(_ref) {
20281
20331
  align: 'center',
20282
20332
  ellipsis: true,
20283
20333
  width: 150
20284
- }, {
20285
- dataIndex: 'productCode',
20286
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
20287
- align: 'center',
20288
- ellipsis: true,
20289
- width: 150
20290
20334
  }, {
20291
20335
  dataIndex: 'productId',
20292
20336
  title: "\u7CFB\u7EDF\u5546\u54C1ID",
@@ -20336,7 +20380,7 @@ var getColumns$7 = function getColumns(_ref) {
20336
20380
  ellipsis: true,
20337
20381
  width: 150
20338
20382
  }, {
20339
- dataIndex: 'sellcount',
20383
+ dataIndex: 'sellCount',
20340
20384
  title: "\u6570\u91CF",
20341
20385
  width: 100,
20342
20386
  render: function render(val, record, index) {
@@ -20438,10 +20482,6 @@ var getColumns$7 = function getColumns(_ref) {
20438
20482
  }]
20439
20483
  }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20440
20484
  }
20441
- }, {
20442
- dataIndex: 'skuNote',
20443
- title: "\u5546\u54C1\u5907\u6CE8",
20444
- width: 150
20445
20485
  }].map(function (item) {
20446
20486
  return _objectSpread2(_objectSpread2({}, item), {}, {
20447
20487
  align: 'center',
@@ -21130,6 +21170,13 @@ var processGoods$1 = function processGoods(_ref) {
21130
21170
  canUpdateNumber: canUpdateNumber,
21131
21171
  source: source
21132
21172
  });
21173
+ } else if (isErpType.isJy(type)) {
21174
+ newList = processJyGoods({
21175
+ list: list,
21176
+ type: type,
21177
+ canUpdateNumber: canUpdateNumber,
21178
+ source: source
21179
+ });
21133
21180
  } else {
21134
21181
  newList = processDefaultGoods({
21135
21182
  list: list,
@@ -21140,11 +21187,26 @@ var processGoods$1 = function processGoods(_ref) {
21140
21187
  }
21141
21188
  return newList;
21142
21189
  };
21143
- // 处理不同类型的商品数据
21144
- var processWdtGoods$1 = function processWdtGoods(_ref2) {
21190
+ var processJyGoods = function processJyGoods(_ref2) {
21145
21191
  var list = _ref2.list,
21146
- type = _ref2.type,
21147
21192
  canUpdateNumber = _ref2.canUpdateNumber;
21193
+ return list.map(function (item) {
21194
+ return _objectSpread2(_objectSpread2({}, item), {}, {
21195
+ uuid: uuid(),
21196
+ canDelete: true,
21197
+ sellCount: 1,
21198
+ sellPrice: 0,
21199
+ sellTotal: 0,
21200
+ canEdit: true,
21201
+ canUpdateNumber: canUpdateNumber
21202
+ });
21203
+ });
21204
+ };
21205
+ // 处理不同类型的商品数据
21206
+ var processWdtGoods$1 = function processWdtGoods(_ref3) {
21207
+ var list = _ref3.list,
21208
+ type = _ref3.type,
21209
+ canUpdateNumber = _ref3.canUpdateNumber;
21148
21210
  return list.map(function (item) {
21149
21211
  var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
21150
21212
  uuid: uuid(),
@@ -21162,9 +21224,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref2) {
21162
21224
  return processedItem;
21163
21225
  });
21164
21226
  };
21165
- var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
21166
- var list = _ref3.list,
21167
- canUpdateNumber = _ref3.canUpdateNumber;
21227
+ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
21228
+ var list = _ref4.list,
21229
+ canUpdateNumber = _ref4.canUpdateNumber;
21168
21230
  return list.map(function (item) {
21169
21231
  var specNo = item.specNo,
21170
21232
  specId = item.specId,
@@ -21199,9 +21261,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
21199
21261
  });
21200
21262
  });
21201
21263
  };
21202
- var processGyGoods$1 = function processGyGoods(_ref4) {
21203
- var list = _ref4.list,
21204
- source = _ref4.source;
21264
+ var processGyGoods$1 = function processGyGoods(_ref5) {
21265
+ var list = _ref5.list,
21266
+ source = _ref5.source;
21205
21267
  var isFormWorkOrder = source === 'workOrder';
21206
21268
  return list.map(function (item) {
21207
21269
  var goodName = item.goodName,
@@ -21228,8 +21290,8 @@ var processGyGoods$1 = function processGyGoods(_ref4) {
21228
21290
  });
21229
21291
  });
21230
21292
  };
21231
- var processJstGoods$1 = function processJstGoods(_ref5) {
21232
- var list = _ref5.list;
21293
+ var processJstGoods$1 = function processJstGoods(_ref6) {
21294
+ var list = _ref6.list;
21233
21295
  return list.map(function (item) {
21234
21296
  return {
21235
21297
  name: item.goodName,
@@ -21247,9 +21309,9 @@ var processJstGoods$1 = function processJstGoods(_ref5) {
21247
21309
  };
21248
21310
  });
21249
21311
  };
21250
- var processKmGoods$1 = function processKmGoods(_ref6) {
21251
- var list = _ref6.list,
21252
- type = _ref6.type;
21312
+ var processKmGoods$1 = function processKmGoods(_ref7) {
21313
+ var list = _ref7.list,
21314
+ type = _ref7.type;
21253
21315
  var initParamsMap = {
21254
21316
  KM_GOODS: {
21255
21317
  num: 1
@@ -21279,9 +21341,9 @@ var processKmGoods$1 = function processKmGoods(_ref6) {
21279
21341
  }, initParamsMap[type] || {});
21280
21342
  });
21281
21343
  };
21282
- var processDefaultGoods = function processDefaultGoods(_ref7) {
21283
- var list = _ref7.list,
21284
- canUpdateNumber = _ref7.canUpdateNumber;
21344
+ var processDefaultGoods = function processDefaultGoods(_ref8) {
21345
+ var list = _ref8.list,
21346
+ canUpdateNumber = _ref8.canUpdateNumber;
21285
21347
  return list.map(function (item) {
21286
21348
  var goodsId = item.goodsId,
21287
21349
  name = item.name,
@@ -22714,7 +22776,7 @@ var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
22714
22776
  singletonMap$6.delete(orderNo);
22715
22777
  reject(err);
22716
22778
  };
22717
- extendRequest('/qy/gdfw/oms/jyOrderDetail', {
22779
+ extendRequest('/qy/gdfw/order/jyOrderDetail', {
22718
22780
  method: 'post',
22719
22781
  data: {
22720
22782
  tid: orderNo
@@ -24023,6 +24085,11 @@ var processAllOrders = function processAllOrders(_ref) {
24023
24085
  newList = processWlnOrders({
24024
24086
  data: data
24025
24087
  });
24088
+ } else if (isErpType$1.isJy(type)) {
24089
+ newList = processJyOrders({
24090
+ data: data,
24091
+ orderNo: orderNo
24092
+ });
24026
24093
  } else {
24027
24094
  newList = processDefaultOrders({
24028
24095
  data: data
@@ -24054,12 +24121,20 @@ var processGyOrders = function processGyOrders(_ref4) {
24054
24121
  });
24055
24122
  return trades;
24056
24123
  };
24057
- var processWlnOrders = function processWlnOrders(_ref5) {
24058
- var data = _ref5.data;
24059
- return (data === null || data === void 0 ? void 0 : data.orders) || [];
24124
+ var processJyOrders = function processJyOrders(_ref5) {
24125
+ var data = _ref5.data,
24126
+ orderNo = _ref5.orderNo;
24127
+ var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
24128
+ return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
24129
+ });
24130
+ return trades;
24060
24131
  };
24061
- var processDefaultOrders = function processDefaultOrders(_ref6) {
24132
+ var processWlnOrders = function processWlnOrders(_ref6) {
24062
24133
  var data = _ref6.data;
24134
+ return (data === null || data === void 0 ? void 0 : data.orders) || [];
24135
+ };
24136
+ var processDefaultOrders = function processDefaultOrders(_ref7) {
24137
+ var data = _ref7.data;
24063
24138
  return data || [];
24064
24139
  };
24065
24140