@kmkf-fe-packages/basic-components 2.2.13-beta.0 → 2.2.13-beta.10

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
+ };
240
+ }
241
+ function doneResult() {
242
+ return {
243
+ value: undefined,
244
+ done: !0
245
+ };
246
246
  }
247
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
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({
@@ -9559,7 +9559,7 @@ var renderMap = {
9559
9559
  return /*#__PURE__*/React.createElement(FileRender, {
9560
9560
  id: "fileRender",
9561
9561
  fileList: value,
9562
- canDownload: !['ks', 'fxg'].includes(platform || '')
9562
+ canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform || '')
9563
9563
  });
9564
9564
  },
9565
9565
  CHECKBOX: function CHECKBOX(value) {
@@ -9662,7 +9662,7 @@ var EditFileRender = function EditFileRender(_ref7) {
9662
9662
  })), /*#__PURE__*/React.createElement(FileRender, {
9663
9663
  id: "fileEdit",
9664
9664
  fileList: val,
9665
- canDownload: !['ks', 'fxg'].includes(platform)
9665
+ canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform)
9666
9666
  }));
9667
9667
  };
9668
9668
  var EditRenderMap = {
@@ -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
@@ -17771,16 +17821,16 @@ var getTableData$5 = function getTableData(_ref, formData) {
17771
17821
  };
17772
17822
  var searchFormData$4 = [{
17773
17823
  label: '规格名称',
17774
- name: 'specName'
17824
+ name: 'skuName'
17775
17825
  }, {
17776
17826
  label: '规格编码',
17777
- name: 'specCode'
17827
+ name: 'skuCode'
17778
17828
  }, {
17779
17829
  label: '商品名称',
17780
- name: 'goodName'
17830
+ name: 'productName'
17781
17831
  }, {
17782
17832
  label: '商品编码',
17783
- name: 'goodNo'
17833
+ name: 'productCode'
17784
17834
  }];
17785
17835
  var GoodList$5 = function GoodList(props, ref) {
17786
17836
  var _useState = useState([]),
@@ -20234,7 +20284,7 @@ var getColumns$7 = function getColumns(_ref) {
20234
20284
  JY_GOODS: [{
20235
20285
  dataIndex: 'goodsName',
20236
20286
  title: "\u8D27\u54C1\u540D\u79F0",
20237
- width: 150
20287
+ width: 250
20238
20288
  }, {
20239
20289
  dataIndex: 'goodsCode',
20240
20290
  title: "\u8D27\u54C1\u7F16\u53F7",
@@ -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",
@@ -20310,7 +20354,7 @@ var getColumns$7 = function getColumns(_ref) {
20310
20354
  title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
20311
20355
  align: 'center',
20312
20356
  ellipsis: true,
20313
- width: 150
20357
+ width: 250
20314
20358
  }, {
20315
20359
  dataIndex: 'mallProductOutCode',
20316
20360
  title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
@@ -20322,21 +20366,21 @@ var getColumns$7 = function getColumns(_ref) {
20322
20366
  title: "\u5E73\u53F0\u5546\u54C1ID",
20323
20367
  align: 'center',
20324
20368
  ellipsis: true,
20325
- width: 150
20369
+ width: 250
20326
20370
  }, {
20327
20371
  dataIndex: 'mallSkuName',
20328
20372
  title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
20329
20373
  align: 'center',
20330
20374
  ellipsis: true,
20331
- width: 150
20375
+ width: 250
20332
20376
  }, {
20333
20377
  dataIndex: 'mallSkuId',
20334
20378
  title: "\u5E73\u53F0\u89C4\u683CID",
20335
20379
  align: 'center',
20336
20380
  ellipsis: true,
20337
- width: 150
20381
+ width: 250
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,310 +20482,212 @@ var getColumns$7 = function getColumns(_ref) {
20438
20482
  }]
20439
20483
  }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20440
20484
  }
20485
+ }].map(function (item) {
20486
+ return _objectSpread2(_objectSpread2({}, item), {}, {
20487
+ align: 'center',
20488
+ ellipsis: true
20489
+ });
20490
+ }),
20491
+ // 巨益补发商品信息
20492
+ JY_REISSUE_GOODS: [{
20493
+ dataIndex: 'goodsName',
20494
+ title: "\u8D27\u54C1\u540D\u79F0",
20495
+ width: 150
20441
20496
  }, {
20442
- dataIndex: 'skuNote',
20443
- title: "\u5546\u54C1\u5907\u6CE8",
20497
+ dataIndex: 'goodsCode',
20498
+ title: "\u8D27\u54C1\u7F16\u53F7",
20499
+ width: 200
20500
+ }, {
20501
+ dataIndex: 'goodsId',
20502
+ title: "\u8D27\u54C1ID",
20503
+ width: 150
20504
+ }, {
20505
+ dataIndex: 'goodsClass',
20506
+ title: "\u8D27\u54C1\u7C7B\u522B",
20507
+ width: 150
20508
+ }, {
20509
+ dataIndex: 'code',
20510
+ title: "\u6761\u7801",
20511
+ width: 150
20512
+ }, {
20513
+ dataIndex: 'specName',
20514
+ title: "\u89C4\u683C\u540D\u79F0",
20515
+ align: 'center',
20516
+ ellipsis: true,
20517
+ width: 200
20518
+ }, {
20519
+ dataIndex: 'specCode',
20520
+ title: "\u89C4\u683C\u7F16\u53F7",
20521
+ align: 'center',
20522
+ ellipsis: true,
20523
+ width: 150
20524
+ }, {
20525
+ dataIndex: 'specId',
20526
+ title: "\u89C4\u683CID",
20527
+ align: 'center',
20528
+ ellipsis: true,
20529
+ width: 150
20530
+ }, {
20531
+ dataIndex: 'productName',
20532
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20533
+ align: 'center',
20534
+ ellipsis: true,
20535
+ width: 150
20536
+ }, {
20537
+ dataIndex: 'productCode',
20538
+ title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
20539
+ align: 'center',
20540
+ ellipsis: true,
20541
+ width: 150
20542
+ }, {
20543
+ dataIndex: 'productId',
20544
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
20545
+ align: 'center',
20546
+ ellipsis: true,
20547
+ width: 150
20548
+ }, {
20549
+ dataIndex: 'skuName',
20550
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
20551
+ align: 'center',
20552
+ ellipsis: true,
20553
+ width: 150
20554
+ }, {
20555
+ dataIndex: 'skuCode',
20556
+ title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
20557
+ align: 'center',
20558
+ ellipsis: true,
20559
+ width: 150
20560
+ }, {
20561
+ dataIndex: 'mallProductName',
20562
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
20563
+ align: 'center',
20564
+ ellipsis: true,
20565
+ width: 150
20566
+ }, {
20567
+ dataIndex: 'mallProductOutCode',
20568
+ title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
20569
+ align: 'center',
20570
+ ellipsis: true,
20571
+ width: 150
20572
+ }, {
20573
+ dataIndex: 'mallProductId',
20574
+ title: "\u5E73\u53F0\u5546\u54C1ID",
20575
+ align: 'center',
20576
+ ellipsis: true,
20577
+ width: 150
20578
+ }, {
20579
+ dataIndex: 'mallSkuName',
20580
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
20581
+ align: 'center',
20582
+ ellipsis: true,
20583
+ width: 150
20584
+ }, {
20585
+ dataIndex: 'mallSkuId',
20586
+ title: "\u5E73\u53F0\u89C4\u683CID",
20587
+ align: 'center',
20588
+ ellipsis: true,
20589
+ width: 150
20590
+ }, {
20591
+ dataIndex: 'sellCount',
20592
+ title: "\u6570\u91CF",
20593
+ width: 100,
20594
+ render: function render(val, record, index) {
20595
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20596
+ style: {
20597
+ width: 70
20598
+ },
20599
+ value: val,
20600
+ min: 1,
20601
+ precision: 0,
20602
+ onChange: function onChange(num) {
20603
+ updateDataHandle({
20604
+ qty: num,
20605
+ amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20606
+ originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20607
+ }, index);
20608
+ }
20609
+ }) : /*#__PURE__*/React.createElement("span", null, val);
20610
+ }
20611
+ }, {
20612
+ dataIndex: 'sellPrice',
20613
+ title: "\u5355\u4EF7",
20614
+ width: 150,
20615
+ render: function render(val, record, index) {
20616
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20617
+ style: {
20618
+ width: 130
20619
+ },
20620
+ value: val,
20621
+ min: 0,
20622
+ precision: 2,
20623
+ onChange: function onChange(num) {
20624
+ updateDataHandle({
20625
+ price: num,
20626
+ amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20627
+ }, index);
20628
+ }
20629
+ }) : /*#__PURE__*/React.createElement("span", null, val);
20630
+ }
20631
+ }, {
20632
+ dataIndex: 'mallSellingPrice',
20633
+ title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
20634
+ width: 150
20635
+ }, {
20636
+ dataIndex: 'sellTotal',
20637
+ title: "\u91D1\u989D",
20444
20638
  width: 150
20639
+ }, {
20640
+ dataIndex: 'bfit',
20641
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
20642
+ width: 150,
20643
+ render: function render(val, record, index) {
20644
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20645
+ value: val,
20646
+ onChange: function onChange(value) {
20647
+ updateHandle(value, index, 'bfit');
20648
+ },
20649
+ options: [{
20650
+ label: '是',
20651
+ value: 1
20652
+ }, {
20653
+ label: '否',
20654
+ value: 0
20655
+ }]
20656
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20657
+ }
20658
+ }, {
20659
+ dataIndex: 'combinationName',
20660
+ title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
20661
+ width: 150
20662
+ }, {
20663
+ dataIndex: 'combinationCode',
20664
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20665
+ width: 150
20666
+ }, {
20667
+ dataIndex: 'gift',
20668
+ title: "\u662F\u5426\u8D60\u54C1",
20669
+ width: 150,
20670
+ render: function render(val, record, index) {
20671
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20672
+ value: val,
20673
+ onChange: function onChange(value) {
20674
+ updateHandle(value, index, 'gift');
20675
+ },
20676
+ options: [{
20677
+ label: '是',
20678
+ value: 1
20679
+ }, {
20680
+ label: '否',
20681
+ value: 0
20682
+ }]
20683
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20684
+ }
20445
20685
  }].map(function (item) {
20446
20686
  return _objectSpread2(_objectSpread2({}, item), {}, {
20447
20687
  align: 'center',
20448
20688
  ellipsis: true
20449
20689
  });
20450
20690
  })
20451
- //巨益补发商品信息
20452
- // JY_REISSUE_GOODS: [
20453
- // {
20454
- // dataIndex: 'goodName',
20455
- // title: `商品名称`,
20456
- // width: 150,
20457
- // },
20458
- // {
20459
- // dataIndex: 'goodShortName',
20460
- // title: `商品简称`,
20461
- // width: 150,
20462
- // },
20463
- // {
20464
- // dataIndex: 'goodNo',
20465
- // title: `商品编码`,
20466
- // width: 200,
20467
- // },
20468
- // {
20469
- // dataIndex: 'specName',
20470
- // title: `SKU名称`,
20471
- // align: 'center',
20472
- // ellipsis: true,
20473
- // width: 250,
20474
- // },
20475
- // {
20476
- // dataIndex: 'specNo',
20477
- // title: `SKU编码`,
20478
- // align: 'center',
20479
- // ellipsis: true,
20480
- // width: 150,
20481
- // },
20482
- // {
20483
- // dataIndex: 'qty',
20484
- // title: `数量`,
20485
- // width: 100,
20486
- // validator: (_rule: any, value: any) => {
20487
- // let goodsName = '';
20488
- // if (
20489
- // (value?.gyReissueGoods || []).some((goods: any) => {
20490
- // const qty = toNum(goods?.qty);
20491
- // const res = typeof qty === 'number' ? qty < 1 : true;
20492
- // if (res) {
20493
- // goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
20494
- // }
20495
- // return res;
20496
- // })
20497
- // ) {
20498
- // return Promise.reject(`${goodsName}数量必须大于0`);
20499
- // }
20500
- // },
20501
- // render: (val: any, record: any, index: number) =>
20502
- // !disabled ? (
20503
- // <InputNumber
20504
- // style={{ width: 70 }}
20505
- // value={val}
20506
- // min={1}
20507
- // precision={0}
20508
- // onChange={(num) => {
20509
- // updateDataHandle(
20510
- // {
20511
- // qty: num,
20512
- // amount:
20513
- // num && isNumberOrNumberString(record.price)
20514
- // ? num * record.price
20515
- // : null,
20516
- // originAmount:
20517
- // num && isNumberOrNumberString(record.originPrice)
20518
- // ? num * record.originPrice
20519
- // : null,
20520
- // },
20521
- // index,
20522
- // );
20523
- // }}
20524
- // ></InputNumber>
20525
- // ) : (
20526
- // <span>{val}</span>
20527
- // ),
20528
- // },
20529
- // {
20530
- // dataIndex: 'price',
20531
- // title: `实际单价`,
20532
- // width: 150,
20533
- // render: (val: any, record: any, index: number) =>
20534
- // !disabled ? (
20535
- // <InputNumber
20536
- // style={{ width: 130 }}
20537
- // value={val}
20538
- // min={0}
20539
- // precision={2}
20540
- // onChange={(num) => {
20541
- // updateDataHandle(
20542
- // {
20543
- // price: num,
20544
- // amount:
20545
- // num && isNumberOrNumberString(record.qty)
20546
- // ? num * record.qty
20547
- // : null,
20548
- // },
20549
- // index,
20550
- // );
20551
- // }}
20552
- // ></InputNumber>
20553
- // ) : (
20554
- // <span>{val}</span>
20555
- // ),
20556
- // },
20557
- // {
20558
- // dataIndex: 'amount',
20559
- // title: `实际金额`,
20560
- // width: 150,
20561
- // },
20562
- // {
20563
- // dataIndex: 'originPrice',
20564
- // title: `标准单价`,
20565
- // width: 150,
20566
- // },
20567
- // {
20568
- // dataIndex: 'originAmount',
20569
- // title: `标准金额`,
20570
- // width: 150,
20571
- // },
20572
- // {
20573
- // dataIndex: 'isGift',
20574
- // title: `是否赠品`,
20575
- // width: 150,
20576
- // render: (val: number, record: any, index: number) =>
20577
- // record.canEdit && !disabled ? (
20578
- // <Select
20579
- // value={val}
20580
- // onChange={(value) => {
20581
- // updateHandle(value, index, 'isGift');
20582
- // }}
20583
- // options={[
20584
- // { label: '是', value: 1 },
20585
- // { label: '否', value: 0 },
20586
- // ]}
20587
- // />
20588
- // ) : (
20589
- // <span>{getYesOrNo(val)}</span>
20590
- // ),
20591
- // },
20592
- // ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
20593
- // //巨益退货商品信息
20594
- // JY_RETURN_GOODS: [
20595
- // {
20596
- // dataIndex: 'goodName',
20597
- // title: `商品名称`,
20598
- // width: 150,
20599
- // },
20600
- // {
20601
- // dataIndex: 'goodShortName',
20602
- // title: `商品简称`,
20603
- // width: 150,
20604
- // },
20605
- // {
20606
- // dataIndex: 'goodNo',
20607
- // title: `商品编码`,
20608
- // width: 200,
20609
- // },
20610
- // {
20611
- // dataIndex: 'specName',
20612
- // title: `SKU名称`,
20613
- // align: 'center',
20614
- // ellipsis: true,
20615
- // width: 250,
20616
- // },
20617
- // {
20618
- // dataIndex: 'specNo',
20619
- // title: `SKU编码`,
20620
- // align: 'center',
20621
- // ellipsis: true,
20622
- // width: 150,
20623
- // },
20624
- // {
20625
- // dataIndex: 'qty',
20626
- // title: `数量`,
20627
- // width: 100,
20628
- // validator: (_rule: any, value: any) => {
20629
- // let goodsName = '';
20630
- // if (
20631
- // (value?.gyReturnGoods || []).some((goods: any) => {
20632
- // const qty = toNum(goods?.qty);
20633
- // const res = typeof qty === 'number' ? qty < 1 : true;
20634
- // if (res) {
20635
- // goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
20636
- // }
20637
- // return res;
20638
- // })
20639
- // ) {
20640
- // return Promise.reject(`${goodsName}数量必须大于0`);
20641
- // }
20642
- // },
20643
- // render: (val: any, record: any, index: number) =>
20644
- // !disabled ? (
20645
- // <InputNumber
20646
- // style={{ width: 70 }}
20647
- // value={val}
20648
- // min={1}
20649
- // precision={0}
20650
- // onChange={(num) => {
20651
- // updateDataHandle(
20652
- // {
20653
- // qty: num,
20654
- // amount:
20655
- // num && isNumberOrNumberString(record.price)
20656
- // ? num * record.price
20657
- // : null,
20658
- // originAmount:
20659
- // num && isNumberOrNumberString(record.originPrice)
20660
- // ? num * record.originPrice
20661
- // : null,
20662
- // },
20663
- // index,
20664
- // );
20665
- // }}
20666
- // ></InputNumber>
20667
- // ) : (
20668
- // <span>{val}</span>
20669
- // ),
20670
- // },
20671
- // {
20672
- // dataIndex: 'price',
20673
- // title: `实际单价`,
20674
- // width: 150,
20675
- // render: (val: any, record: any, index: number) =>
20676
- // !disabled ? (
20677
- // <InputNumber
20678
- // style={{ width: 130 }}
20679
- // value={val}
20680
- // min={0}
20681
- // precision={2}
20682
- // onChange={(num) => {
20683
- // updateDataHandle(
20684
- // {
20685
- // price: num,
20686
- // amount:
20687
- // num && isNumberOrNumberString(record.qty)
20688
- // ? num * record.qty
20689
- // : null,
20690
- // },
20691
- // index,
20692
- // );
20693
- // }}
20694
- // ></InputNumber>
20695
- // ) : (
20696
- // <span>{val}</span>
20697
- // ),
20698
- // },
20699
- // {
20700
- // dataIndex: 'amount',
20701
- // title: `实际金额`,
20702
- // width: 150,
20703
- // },
20704
- // {
20705
- // dataIndex: 'originPrice',
20706
- // title: `标准单价`,
20707
- // width: 150,
20708
- // },
20709
- // {
20710
- // dataIndex: 'originAmount',
20711
- // title: `标准金额`,
20712
- // width: 150,
20713
- // },
20714
- // {
20715
- // dataIndex: 'discountFee',
20716
- // title: `让利金额`,
20717
- // width: 150,
20718
- // },
20719
- // {
20720
- // dataIndex: 'amountAfter',
20721
- // title: `让利后金额`,
20722
- // width: 150,
20723
- // },
20724
- // {
20725
- // dataIndex: 'isGift',
20726
- // title: `是否赠品`,
20727
- // width: 150,
20728
- // render: (val: number, record: any, index: number) =>
20729
- // record.canEdit && !disabled ? (
20730
- // <Select
20731
- // value={val}
20732
- // onChange={(value) => {
20733
- // updateHandle(value, index, 'isGift');
20734
- // }}
20735
- // options={[
20736
- // { label: '是', value: 1 },
20737
- // { label: '否', value: 0 },
20738
- // ]}
20739
- // />
20740
- // ) : (
20741
- // <span>{getYesOrNo(val)}</span>
20742
- // ),
20743
- // },
20744
- // ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
20745
20691
  };
20746
20692
  };
20747
20693
 
@@ -21130,6 +21076,13 @@ var processGoods$1 = function processGoods(_ref) {
21130
21076
  canUpdateNumber: canUpdateNumber,
21131
21077
  source: source
21132
21078
  });
21079
+ } else if (isErpType.isJy(type)) {
21080
+ newList = processJyGoods({
21081
+ list: list,
21082
+ type: type,
21083
+ canUpdateNumber: canUpdateNumber,
21084
+ source: source
21085
+ });
21133
21086
  } else {
21134
21087
  newList = processDefaultGoods({
21135
21088
  list: list,
@@ -21140,11 +21093,26 @@ var processGoods$1 = function processGoods(_ref) {
21140
21093
  }
21141
21094
  return newList;
21142
21095
  };
21143
- // 处理不同类型的商品数据
21144
- var processWdtGoods$1 = function processWdtGoods(_ref2) {
21096
+ var processJyGoods = function processJyGoods(_ref2) {
21145
21097
  var list = _ref2.list,
21146
- type = _ref2.type,
21147
21098
  canUpdateNumber = _ref2.canUpdateNumber;
21099
+ return list.map(function (item) {
21100
+ return _objectSpread2(_objectSpread2({}, item), {}, {
21101
+ uuid: uuid(),
21102
+ canDelete: true,
21103
+ sellCount: 1,
21104
+ sellPrice: 0,
21105
+ sellTotal: 0,
21106
+ canEdit: true,
21107
+ canUpdateNumber: canUpdateNumber
21108
+ });
21109
+ });
21110
+ };
21111
+ // 处理不同类型的商品数据
21112
+ var processWdtGoods$1 = function processWdtGoods(_ref3) {
21113
+ var list = _ref3.list,
21114
+ type = _ref3.type,
21115
+ canUpdateNumber = _ref3.canUpdateNumber;
21148
21116
  return list.map(function (item) {
21149
21117
  var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
21150
21118
  uuid: uuid(),
@@ -21162,9 +21130,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref2) {
21162
21130
  return processedItem;
21163
21131
  });
21164
21132
  };
21165
- var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
21166
- var list = _ref3.list,
21167
- canUpdateNumber = _ref3.canUpdateNumber;
21133
+ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
21134
+ var list = _ref4.list,
21135
+ canUpdateNumber = _ref4.canUpdateNumber;
21168
21136
  return list.map(function (item) {
21169
21137
  var specNo = item.specNo,
21170
21138
  specId = item.specId,
@@ -21199,9 +21167,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
21199
21167
  });
21200
21168
  });
21201
21169
  };
21202
- var processGyGoods$1 = function processGyGoods(_ref4) {
21203
- var list = _ref4.list,
21204
- source = _ref4.source;
21170
+ var processGyGoods$1 = function processGyGoods(_ref5) {
21171
+ var list = _ref5.list,
21172
+ source = _ref5.source;
21205
21173
  var isFormWorkOrder = source === 'workOrder';
21206
21174
  return list.map(function (item) {
21207
21175
  var goodName = item.goodName,
@@ -21228,8 +21196,8 @@ var processGyGoods$1 = function processGyGoods(_ref4) {
21228
21196
  });
21229
21197
  });
21230
21198
  };
21231
- var processJstGoods$1 = function processJstGoods(_ref5) {
21232
- var list = _ref5.list;
21199
+ var processJstGoods$1 = function processJstGoods(_ref6) {
21200
+ var list = _ref6.list;
21233
21201
  return list.map(function (item) {
21234
21202
  return {
21235
21203
  name: item.goodName,
@@ -21247,9 +21215,9 @@ var processJstGoods$1 = function processJstGoods(_ref5) {
21247
21215
  };
21248
21216
  });
21249
21217
  };
21250
- var processKmGoods$1 = function processKmGoods(_ref6) {
21251
- var list = _ref6.list,
21252
- type = _ref6.type;
21218
+ var processKmGoods$1 = function processKmGoods(_ref7) {
21219
+ var list = _ref7.list,
21220
+ type = _ref7.type;
21253
21221
  var initParamsMap = {
21254
21222
  KM_GOODS: {
21255
21223
  num: 1
@@ -21279,9 +21247,9 @@ var processKmGoods$1 = function processKmGoods(_ref6) {
21279
21247
  }, initParamsMap[type] || {});
21280
21248
  });
21281
21249
  };
21282
- var processDefaultGoods = function processDefaultGoods(_ref7) {
21283
- var list = _ref7.list,
21284
- canUpdateNumber = _ref7.canUpdateNumber;
21250
+ var processDefaultGoods = function processDefaultGoods(_ref8) {
21251
+ var list = _ref8.list,
21252
+ canUpdateNumber = _ref8.canUpdateNumber;
21285
21253
  return list.map(function (item) {
21286
21254
  var goodsId = item.goodsId,
21287
21255
  name = item.name,
@@ -21325,6 +21293,7 @@ var GoodsModalMap = {
21325
21293
  KM_GOODS: KmGoodsModal,
21326
21294
  KM_REISSUE_GOODS: KmGoodsModal,
21327
21295
  JY_GOODS: JyGoodsModal$1,
21296
+ JY_REISSUE_GOODS: JyGoodsModal$1,
21328
21297
  OTHER_GOODS: GoodsModal$2
21329
21298
  };
21330
21299
  var systemOrderNoMap = {
@@ -21609,6 +21578,7 @@ var GoodItem$1 = function GoodItem(props) {
21609
21578
  case 'KM_GOODS':
21610
21579
  case 'KM_REISSUE_GOODS':
21611
21580
  case 'JY_GOODS':
21581
+ case 'JY_REISSUE_GOODS':
21612
21582
  case 'SKX_GOODS':
21613
21583
  case 'SKX_RETURN_GOODS':
21614
21584
  {
@@ -22714,16 +22684,17 @@ var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
22714
22684
  singletonMap$6.delete(orderNo);
22715
22685
  reject(err);
22716
22686
  };
22717
- extendRequest('/qy/gdfw/oms/jyOrderDetail', {
22687
+ extendRequest('/qy/gdfw/order/jyOrderDetail', {
22718
22688
  method: 'post',
22719
22689
  data: {
22720
- tid: orderNo
22690
+ billNo: orderNo
22721
22691
  }
22722
22692
  }).then(function (res) {
22723
22693
  if (res === null || res === void 0 ? void 0 : res.success) {
22724
- var _res$data;
22725
- if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
22726
- res.data.trades = filterJyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo);
22694
+ var _res$data, _res$data$tradeOrderD;
22695
+ if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$tradeOrderD = _res$data.tradeOrderDetails) === null || _res$data$tradeOrderD === void 0 ? void 0 : _res$data$tradeOrderD.length) {
22696
+ var _res$data2;
22697
+ res.data.trades = filterJyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo);
22727
22698
  }
22728
22699
  resolve(res.data);
22729
22700
  // 延迟10秒清除,保证订单的时效性
@@ -24023,6 +23994,11 @@ var processAllOrders = function processAllOrders(_ref) {
24023
23994
  newList = processWlnOrders({
24024
23995
  data: data
24025
23996
  });
23997
+ } else if (isErpType$1.isJy(type)) {
23998
+ newList = processJyOrders({
23999
+ data: data,
24000
+ orderNo: orderNo
24001
+ });
24026
24002
  } else {
24027
24003
  newList = processDefaultOrders({
24028
24004
  data: data
@@ -24054,12 +24030,20 @@ var processGyOrders = function processGyOrders(_ref4) {
24054
24030
  });
24055
24031
  return trades;
24056
24032
  };
24057
- var processWlnOrders = function processWlnOrders(_ref5) {
24058
- var data = _ref5.data;
24059
- return (data === null || data === void 0 ? void 0 : data.orders) || [];
24033
+ var processJyOrders = function processJyOrders(_ref5) {
24034
+ var data = _ref5.data,
24035
+ orderNo = _ref5.orderNo;
24036
+ var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
24037
+ return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
24038
+ });
24039
+ return trades;
24060
24040
  };
24061
- var processDefaultOrders = function processDefaultOrders(_ref6) {
24041
+ var processWlnOrders = function processWlnOrders(_ref6) {
24062
24042
  var data = _ref6.data;
24043
+ return (data === null || data === void 0 ? void 0 : data.orders) || [];
24044
+ };
24045
+ var processDefaultOrders = function processDefaultOrders(_ref7) {
24046
+ var data = _ref7.data;
24063
24047
  return data || [];
24064
24048
  };
24065
24049
 
@@ -25177,6 +25161,21 @@ var typeMap$2 = {
25177
25161
  outerOiIdKey: '',
25178
25162
  goodDetailsKey: 'subOrders',
25179
25163
  uniqueKey: 'id'
25164
+ },
25165
+ JY_REISSUE_GOODS: {
25166
+ compType: '补发',
25167
+ key: 'jyReissueGoods',
25168
+ typeName: 'jyReissueType',
25169
+ systemOrder: 'jySystemOrder',
25170
+ systemOrderNo: 'jySystemOrderNo',
25171
+ getOrderList: jyUtils.getJyOrderListSingleton,
25172
+ updateGoodsHandle: updateJyGoodsHandle,
25173
+ alwaysShowChooseErpGoodsBtn: true,
25174
+ orderTypeKey: 'orderType',
25175
+ oIdKey: 'tradeNo',
25176
+ outerOiIdKey: '',
25177
+ goodDetailsKey: 'subOrderDetails',
25178
+ uniqueKey: 'oid'
25180
25179
  }
25181
25180
  };
25182
25181
  var PublicReissue = function PublicReissue(props) {