@kmkf-fe-packages/basic-components 2.0.52 → 2.0.54-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,372 +1,386 @@
1
1
  import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
2
- import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography } from 'antd';
2
+ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton } from 'antd';
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
6
  import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, servers, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
7
- import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
7
+ import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, isEqual, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
8
8
  import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
9
9
  import zhCN from 'antd/lib/locale/zh_CN';
10
10
  import pubsub from 'pubsub-js';
11
11
  import BigNumber from 'bignumber.js';
12
12
 
13
- function _iterableToArrayLimit(arr, i) {
14
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
15
- if (null != _i) {
16
- var _s,
17
- _e,
18
- _x,
19
- _r,
20
- _arr = [],
21
- _n = !0,
22
- _d = !1;
13
+ function _iterableToArrayLimit(r, l) {
14
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15
+ if (null != t) {
16
+ var e,
17
+ n,
18
+ i,
19
+ u,
20
+ a = [],
21
+ f = !0,
22
+ o = !1;
23
23
  try {
24
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
25
- if (Object(_i) !== _i) return;
26
- _n = !1;
27
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
28
- } catch (err) {
29
- _d = !0, _e = err;
24
+ if (i = (t = t.call(r)).next, 0 === l) {
25
+ if (Object(t) !== t) return;
26
+ f = !1;
27
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
28
+ } catch (r) {
29
+ o = !0, n = r;
30
30
  } finally {
31
31
  try {
32
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
32
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
33
33
  } finally {
34
- if (_d) throw _e;
34
+ if (o) throw n;
35
35
  }
36
36
  }
37
- return _arr;
37
+ return a;
38
38
  }
39
39
  }
40
- function ownKeys(object, enumerableOnly) {
41
- var keys = Object.keys(object);
40
+ function ownKeys(e, r) {
41
+ var t = Object.keys(e);
42
42
  if (Object.getOwnPropertySymbols) {
43
- var symbols = Object.getOwnPropertySymbols(object);
44
- enumerableOnly && (symbols = symbols.filter(function (sym) {
45
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
46
- })), keys.push.apply(keys, symbols);
43
+ var o = Object.getOwnPropertySymbols(e);
44
+ r && (o = o.filter(function (r) {
45
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
46
+ })), t.push.apply(t, o);
47
47
  }
48
- return keys;
49
- }
50
- function _objectSpread2(target) {
51
- for (var i = 1; i < arguments.length; i++) {
52
- var source = null != arguments[i] ? arguments[i] : {};
53
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
54
- _defineProperty(target, key, source[key]);
55
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
56
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
48
+ return t;
49
+ }
50
+ function _objectSpread2(e) {
51
+ for (var r = 1; r < arguments.length; r++) {
52
+ var t = null != arguments[r] ? arguments[r] : {};
53
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
54
+ _defineProperty(e, r, t[r]);
55
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
56
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
57
57
  });
58
58
  }
59
- return target;
59
+ return e;
60
60
  }
61
61
  function _regeneratorRuntime() {
62
62
  _regeneratorRuntime = function () {
63
- return exports;
63
+ return e;
64
64
  };
65
- var exports = {},
66
- Op = Object.prototype,
67
- hasOwn = Op.hasOwnProperty,
68
- defineProperty = Object.defineProperty || function (obj, key, desc) {
69
- obj[key] = desc.value;
65
+ var t,
66
+ e = {},
67
+ r = Object.prototype,
68
+ n = r.hasOwnProperty,
69
+ o = Object.defineProperty || function (t, e, r) {
70
+ t[e] = r.value;
70
71
  },
71
- $Symbol = "function" == typeof Symbol ? Symbol : {},
72
- iteratorSymbol = $Symbol.iterator || "@@iterator",
73
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
74
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
75
- function define(obj, key, value) {
76
- return Object.defineProperty(obj, key, {
77
- value: value,
72
+ i = "function" == typeof Symbol ? Symbol : {},
73
+ a = i.iterator || "@@iterator",
74
+ c = i.asyncIterator || "@@asyncIterator",
75
+ u = i.toStringTag || "@@toStringTag";
76
+ function define(t, e, r) {
77
+ return Object.defineProperty(t, e, {
78
+ value: r,
78
79
  enumerable: !0,
79
80
  configurable: !0,
80
81
  writable: !0
81
- }), obj[key];
82
+ }), t[e];
82
83
  }
83
84
  try {
84
85
  define({}, "");
85
- } catch (err) {
86
- define = function (obj, key, value) {
87
- return obj[key] = value;
86
+ } catch (t) {
87
+ define = function (t, e, r) {
88
+ return t[e] = r;
88
89
  };
89
90
  }
90
- function wrap(innerFn, outerFn, self, tryLocsList) {
91
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
92
- generator = Object.create(protoGenerator.prototype),
93
- context = new Context(tryLocsList || []);
94
- return defineProperty(generator, "_invoke", {
95
- value: makeInvokeMethod(innerFn, self, context)
96
- }), generator;
91
+ function wrap(t, e, r, n) {
92
+ var i = e && e.prototype instanceof Generator ? e : Generator,
93
+ a = Object.create(i.prototype),
94
+ c = new Context(n || []);
95
+ return o(a, "_invoke", {
96
+ value: makeInvokeMethod(t, r, c)
97
+ }), a;
97
98
  }
98
- function tryCatch(fn, obj, arg) {
99
+ function tryCatch(t, e, r) {
99
100
  try {
100
101
  return {
101
102
  type: "normal",
102
- arg: fn.call(obj, arg)
103
+ arg: t.call(e, r)
103
104
  };
104
- } catch (err) {
105
+ } catch (t) {
105
106
  return {
106
107
  type: "throw",
107
- arg: err
108
+ arg: t
108
109
  };
109
110
  }
110
111
  }
111
- exports.wrap = wrap;
112
- var ContinueSentinel = {};
112
+ e.wrap = wrap;
113
+ var h = "suspendedStart",
114
+ l = "suspendedYield",
115
+ f = "executing",
116
+ s = "completed",
117
+ y = {};
113
118
  function Generator() {}
114
119
  function GeneratorFunction() {}
115
120
  function GeneratorFunctionPrototype() {}
116
- var IteratorPrototype = {};
117
- define(IteratorPrototype, iteratorSymbol, function () {
121
+ var p = {};
122
+ define(p, a, function () {
118
123
  return this;
119
124
  });
120
- var getProto = Object.getPrototypeOf,
121
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
122
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
123
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
124
- function defineIteratorMethods(prototype) {
125
- ["next", "throw", "return"].forEach(function (method) {
126
- define(prototype, method, function (arg) {
127
- return this._invoke(method, arg);
125
+ var d = Object.getPrototypeOf,
126
+ v = d && d(d(values([])));
127
+ v && v !== r && n.call(v, a) && (p = v);
128
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
129
+ function defineIteratorMethods(t) {
130
+ ["next", "throw", "return"].forEach(function (e) {
131
+ define(t, e, function (t) {
132
+ return this._invoke(e, t);
128
133
  });
129
134
  });
130
135
  }
131
- function AsyncIterator(generator, PromiseImpl) {
132
- function invoke(method, arg, resolve, reject) {
133
- var record = tryCatch(generator[method], generator, arg);
134
- if ("throw" !== record.type) {
135
- var result = record.arg,
136
- value = result.value;
137
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
138
- invoke("next", value, resolve, reject);
139
- }, function (err) {
140
- invoke("throw", err, resolve, reject);
141
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
142
- result.value = unwrapped, resolve(result);
143
- }, function (error) {
144
- return invoke("throw", error, resolve, reject);
136
+ function AsyncIterator(t, e) {
137
+ function invoke(r, o, i, a) {
138
+ var c = tryCatch(t[r], t, o);
139
+ if ("throw" !== c.type) {
140
+ var u = c.arg,
141
+ h = u.value;
142
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
143
+ invoke("next", t, i, a);
144
+ }, function (t) {
145
+ invoke("throw", t, i, a);
146
+ }) : e.resolve(h).then(function (t) {
147
+ u.value = t, i(u);
148
+ }, function (t) {
149
+ return invoke("throw", t, i, a);
145
150
  });
146
151
  }
147
- reject(record.arg);
152
+ a(c.arg);
148
153
  }
149
- var previousPromise;
150
- defineProperty(this, "_invoke", {
151
- value: function (method, arg) {
154
+ var r;
155
+ o(this, "_invoke", {
156
+ value: function (t, n) {
152
157
  function callInvokeWithMethodAndArg() {
153
- return new PromiseImpl(function (resolve, reject) {
154
- invoke(method, arg, resolve, reject);
158
+ return new e(function (e, r) {
159
+ invoke(t, n, e, r);
155
160
  });
156
161
  }
157
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
162
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
158
163
  }
159
164
  });
160
165
  }
161
- function makeInvokeMethod(innerFn, self, context) {
162
- var state = "suspendedStart";
163
- return function (method, arg) {
164
- if ("executing" === state) throw new Error("Generator is already running");
165
- if ("completed" === state) {
166
- if ("throw" === method) throw arg;
167
- return doneResult();
166
+ function makeInvokeMethod(e, r, n) {
167
+ var o = h;
168
+ return function (i, a) {
169
+ if (o === f) throw new Error("Generator is already running");
170
+ if (o === s) {
171
+ if ("throw" === i) throw a;
172
+ return {
173
+ value: t,
174
+ done: !0
175
+ };
168
176
  }
169
- for (context.method = method, context.arg = arg;;) {
170
- var delegate = context.delegate;
171
- if (delegate) {
172
- var delegateResult = maybeInvokeDelegate(delegate, context);
173
- if (delegateResult) {
174
- if (delegateResult === ContinueSentinel) continue;
175
- return delegateResult;
177
+ for (n.method = i, n.arg = a;;) {
178
+ var c = n.delegate;
179
+ if (c) {
180
+ var u = maybeInvokeDelegate(c, n);
181
+ if (u) {
182
+ if (u === y) continue;
183
+ return u;
176
184
  }
177
185
  }
178
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
179
- if ("suspendedStart" === state) throw state = "completed", context.arg;
180
- context.dispatchException(context.arg);
181
- } else "return" === context.method && context.abrupt("return", context.arg);
182
- state = "executing";
183
- var record = tryCatch(innerFn, self, context);
184
- if ("normal" === record.type) {
185
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
186
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
187
+ if (o === h) throw o = s, n.arg;
188
+ n.dispatchException(n.arg);
189
+ } else "return" === n.method && n.abrupt("return", n.arg);
190
+ o = f;
191
+ var p = tryCatch(e, r, n);
192
+ if ("normal" === p.type) {
193
+ if (o = n.done ? s : l, p.arg === y) continue;
186
194
  return {
187
- value: record.arg,
188
- done: context.done
195
+ value: p.arg,
196
+ done: n.done
189
197
  };
190
198
  }
191
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
199
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
192
200
  }
193
201
  };
194
202
  }
195
- function maybeInvokeDelegate(delegate, context) {
196
- var methodName = context.method,
197
- method = delegate.iterator[methodName];
198
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
199
- var record = tryCatch(method, delegate.iterator, context.arg);
200
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
201
- var info = record.arg;
202
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
203
+ function maybeInvokeDelegate(e, r) {
204
+ var n = r.method,
205
+ o = e.iterator[n];
206
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
207
+ var i = tryCatch(o, e.iterator, r.arg);
208
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
209
+ var a = i.arg;
210
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
203
211
  }
204
- function pushTryEntry(locs) {
205
- var entry = {
206
- tryLoc: locs[0]
212
+ function pushTryEntry(t) {
213
+ var e = {
214
+ tryLoc: t[0]
207
215
  };
208
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
216
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
209
217
  }
210
- function resetTryEntry(entry) {
211
- var record = entry.completion || {};
212
- record.type = "normal", delete record.arg, entry.completion = record;
218
+ function resetTryEntry(t) {
219
+ var e = t.completion || {};
220
+ e.type = "normal", delete e.arg, t.completion = e;
213
221
  }
214
- function Context(tryLocsList) {
222
+ function Context(t) {
215
223
  this.tryEntries = [{
216
224
  tryLoc: "root"
217
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
225
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
218
226
  }
219
- function values(iterable) {
220
- if (iterable) {
221
- var iteratorMethod = iterable[iteratorSymbol];
222
- if (iteratorMethod) return iteratorMethod.call(iterable);
223
- if ("function" == typeof iterable.next) return iterable;
224
- if (!isNaN(iterable.length)) {
225
- var i = -1,
226
- next = function next() {
227
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
228
- return next.value = undefined, next.done = !0, next;
227
+ function values(e) {
228
+ if (e || "" === e) {
229
+ var r = e[a];
230
+ if (r) return r.call(e);
231
+ if ("function" == typeof e.next) return e;
232
+ if (!isNaN(e.length)) {
233
+ var o = -1,
234
+ i = function next() {
235
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
236
+ return next.value = t, next.done = !0, next;
229
237
  };
230
- return next.next = next;
238
+ return i.next = i;
231
239
  }
232
240
  }
233
- return {
234
- next: doneResult
235
- };
236
- }
237
- function doneResult() {
238
- return {
239
- value: undefined,
240
- done: !0
241
- };
241
+ throw new TypeError(typeof e + " is not iterable");
242
242
  }
243
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
243
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
244
244
  value: GeneratorFunctionPrototype,
245
245
  configurable: !0
246
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
246
+ }), o(GeneratorFunctionPrototype, "constructor", {
247
247
  value: GeneratorFunction,
248
248
  configurable: !0
249
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
250
- var ctor = "function" == typeof genFun && genFun.constructor;
251
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
252
- }, exports.mark = function (genFun) {
253
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
254
- }, exports.awrap = function (arg) {
249
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
250
+ var e = "function" == typeof t && t.constructor;
251
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
252
+ }, e.mark = function (t) {
253
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
254
+ }, e.awrap = function (t) {
255
255
  return {
256
- __await: arg
256
+ __await: t
257
257
  };
258
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
258
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
259
259
  return this;
260
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
261
- void 0 === PromiseImpl && (PromiseImpl = Promise);
262
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
263
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
264
- return result.done ? result.value : iter.next();
260
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
261
+ void 0 === i && (i = Promise);
262
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
263
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
264
+ return t.done ? t.value : a.next();
265
265
  });
266
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
266
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
267
267
  return this;
268
- }), define(Gp, "toString", function () {
268
+ }), define(g, "toString", function () {
269
269
  return "[object Generator]";
270
- }), exports.keys = function (val) {
271
- var object = Object(val),
272
- keys = [];
273
- for (var key in object) keys.push(key);
274
- return keys.reverse(), function next() {
275
- for (; keys.length;) {
276
- var key = keys.pop();
277
- if (key in object) return next.value = key, next.done = !1, next;
270
+ }), e.keys = function (t) {
271
+ var e = Object(t),
272
+ r = [];
273
+ for (var n in e) r.push(n);
274
+ return r.reverse(), function next() {
275
+ for (; r.length;) {
276
+ var t = r.pop();
277
+ if (t in e) return next.value = t, next.done = !1, next;
278
278
  }
279
279
  return next.done = !0, next;
280
280
  };
281
- }, exports.values = values, Context.prototype = {
281
+ }, e.values = values, Context.prototype = {
282
282
  constructor: Context,
283
- reset: function (skipTempReset) {
284
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
283
+ reset: function (e) {
284
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
285
285
  },
286
286
  stop: function () {
287
287
  this.done = !0;
288
- var rootRecord = this.tryEntries[0].completion;
289
- if ("throw" === rootRecord.type) throw rootRecord.arg;
288
+ var t = this.tryEntries[0].completion;
289
+ if ("throw" === t.type) throw t.arg;
290
290
  return this.rval;
291
291
  },
292
- dispatchException: function (exception) {
293
- if (this.done) throw exception;
294
- var context = this;
295
- function handle(loc, caught) {
296
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
292
+ dispatchException: function (e) {
293
+ if (this.done) throw e;
294
+ var r = this;
295
+ function handle(n, o) {
296
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
297
297
  }
298
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
299
- var entry = this.tryEntries[i],
300
- record = entry.completion;
301
- if ("root" === entry.tryLoc) return handle("end");
302
- if (entry.tryLoc <= this.prev) {
303
- var hasCatch = hasOwn.call(entry, "catchLoc"),
304
- hasFinally = hasOwn.call(entry, "finallyLoc");
305
- if (hasCatch && hasFinally) {
306
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
307
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
308
- } else if (hasCatch) {
309
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
298
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
299
+ var i = this.tryEntries[o],
300
+ a = i.completion;
301
+ if ("root" === i.tryLoc) return handle("end");
302
+ if (i.tryLoc <= this.prev) {
303
+ var c = n.call(i, "catchLoc"),
304
+ u = n.call(i, "finallyLoc");
305
+ if (c && u) {
306
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
307
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
308
+ } else if (c) {
309
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
310
310
  } else {
311
- if (!hasFinally) throw new Error("try statement without catch or finally");
312
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
311
+ if (!u) throw new Error("try statement without catch or finally");
312
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
313
313
  }
314
314
  }
315
315
  }
316
316
  },
317
- abrupt: function (type, arg) {
318
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
319
- var entry = this.tryEntries[i];
320
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
321
- var finallyEntry = entry;
317
+ abrupt: function (t, e) {
318
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
319
+ var o = this.tryEntries[r];
320
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
321
+ var i = o;
322
322
  break;
323
323
  }
324
324
  }
325
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
326
- var record = finallyEntry ? finallyEntry.completion : {};
327
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
325
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
326
+ var a = i ? i.completion : {};
327
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
328
328
  },
329
- complete: function (record, afterLoc) {
330
- if ("throw" === record.type) throw record.arg;
331
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
329
+ complete: function (t, e) {
330
+ if ("throw" === t.type) throw t.arg;
331
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
332
332
  },
333
- finish: function (finallyLoc) {
334
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
335
- var entry = this.tryEntries[i];
336
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
333
+ finish: function (t) {
334
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
335
+ var r = this.tryEntries[e];
336
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
337
337
  }
338
338
  },
339
- catch: function (tryLoc) {
340
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
341
- var entry = this.tryEntries[i];
342
- if (entry.tryLoc === tryLoc) {
343
- var record = entry.completion;
344
- if ("throw" === record.type) {
345
- var thrown = record.arg;
346
- resetTryEntry(entry);
339
+ catch: function (t) {
340
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
341
+ var r = this.tryEntries[e];
342
+ if (r.tryLoc === t) {
343
+ var n = r.completion;
344
+ if ("throw" === n.type) {
345
+ var o = n.arg;
346
+ resetTryEntry(r);
347
347
  }
348
- return thrown;
348
+ return o;
349
349
  }
350
350
  }
351
351
  throw new Error("illegal catch attempt");
352
352
  },
353
- delegateYield: function (iterable, resultName, nextLoc) {
353
+ delegateYield: function (e, r, n) {
354
354
  return this.delegate = {
355
- iterator: values(iterable),
356
- resultName: resultName,
357
- nextLoc: nextLoc
358
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
359
- }
360
- }, exports;
355
+ iterator: values(e),
356
+ resultName: r,
357
+ nextLoc: n
358
+ }, "next" === this.method && (this.arg = t), y;
359
+ }
360
+ }, e;
361
+ }
362
+ function _toPrimitive(t, r) {
363
+ if ("object" != typeof t || !t) return t;
364
+ var e = t[Symbol.toPrimitive];
365
+ if (void 0 !== e) {
366
+ var i = e.call(t, r || "default");
367
+ if ("object" != typeof i) return i;
368
+ throw new TypeError("@@toPrimitive must return a primitive value.");
369
+ }
370
+ return ("string" === r ? String : Number)(t);
371
+ }
372
+ function _toPropertyKey(t) {
373
+ var i = _toPrimitive(t, "string");
374
+ return "symbol" == typeof i ? i : String(i);
361
375
  }
362
- function _typeof(obj) {
376
+ function _typeof(o) {
363
377
  "@babel/helpers - typeof";
364
378
 
365
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
366
- return typeof obj;
367
- } : function (obj) {
368
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
369
- }, _typeof(obj);
379
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
380
+ return typeof o;
381
+ } : function (o) {
382
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
383
+ }, _typeof(o);
370
384
  }
371
385
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
372
386
  try {
@@ -473,20 +487,6 @@ function _nonIterableSpread() {
473
487
  function _nonIterableRest() {
474
488
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
475
489
  }
476
- function _toPrimitive(input, hint) {
477
- if (typeof input !== "object" || input === null) return input;
478
- var prim = input[Symbol.toPrimitive];
479
- if (prim !== undefined) {
480
- var res = prim.call(input, hint || "default");
481
- if (typeof res !== "object") return res;
482
- throw new TypeError("@@toPrimitive must return a primitive value.");
483
- }
484
- return (hint === "string" ? String : Number)(input);
485
- }
486
- function _toPropertyKey(arg) {
487
- var key = _toPrimitive(arg, "string");
488
- return typeof key === "symbol" ? key : String(key);
489
- }
490
490
 
491
491
  function ApaasCascader(props) {
492
492
  return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
@@ -1176,8 +1176,8 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1176
1176
  };
1177
1177
  var index = /*#__PURE__*/forwardRef(ApaasUploadAsync);
1178
1178
 
1179
- var css_248z$2 = ".index-module_imageProBox__1u84Y {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageProBox__1u84Y .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageProBox__1u84Y .index-module_inputImage__nm5jb {\n width: 105px;\n height: 105px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageShow__1cG2j {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo {\n display: flex;\n width: 280px;\n height: 105px;\n padding: 8px;\n margin-bottom: 8px;\n margin-right: 8px;\n border-radius: 5px;\n background-color: rgba(240, 241, 242, 0.72);\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo textarea {\n max-width: 174px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo:hover .index-module_mask__L3q8p:before {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProInfo__iHM0C {\n width: 80px;\n height: 80px;\n border-radius: 5px;\n margin-right: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProRight__3rPiY {\n position: relative;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProOperate__1hFcg {\n position: absolute;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_deleteIcon__2LWG9 {\n color: #1890ff;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p:hover .index-module_actions__3Wwry {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry .index-module_icon__3oJ-1 {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 {\n display: inline-block;\n margin-right: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .index-module_fakeBox__3EXNG {\n width: 105px;\n height: 105px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .index-module_fakeBox__3EXNG .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .ant-upload {\n height: 105px;\n width: 105px;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .ant-upload .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_tips__z9Yjd {\n color: #4E5969;\n font-size: 12px;\n}\n";
1180
- var styles$2 = {"imageProBox":"index-module_imageProBox__1u84Y","inputImage":"index-module_inputImage__nm5jb","imageShow":"index-module_imageShow__1cG2j","imageProWrap":"index-module_imageProWrap__sx8lo","-webkit-mask":"index-module_mask__L3q8p","mask":"index-module_mask__L3q8p","imageProInfo":"index-module_imageProInfo__iHM0C","imageProRight":"index-module_imageProRight__3rPiY","imageProOperate":"index-module_imageProOperate__1hFcg","deleteIcon":"index-module_deleteIcon__2LWG9","actions":"index-module_actions__3Wwry","icon":"index-module_icon__3oJ-1","imagePaste":"index-module_imagePaste__1A8C5","fakeBox":"index-module_fakeBox__3EXNG","addBtn":"index-module_addBtn__1Dv95","upload":"index-module_upload__2nwd8","tips":"index-module_tips__z9Yjd"};
1179
+ var css_248z$2 = ".index-module_imageProBox__1u84Y {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageProBox__1u84Y .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageProBox__1u84Y .index-module_inputImage__nm5jb {\n width: 105px;\n height: 105px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageShow__1cG2j {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo {\n display: flex;\n width: 280px;\n height: 105px;\n border-radius: 5px;\n background-color: rgba(240, 241, 242, 0.72);\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo textarea {\n max-width: 174px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo:hover .index-module_mask__L3q8p:before {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProInfo__iHM0C {\n width: 80px;\n height: 80px;\n border-radius: 5px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProRight__3rPiY {\n position: relative;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProOperate__1hFcg {\n position: absolute;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p:hover .index-module_actions__3Wwry {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry .index-module_icon__3oJ-1 {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e {\n display: inline-block;\n margin-right: 8px !important;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e .index-module_fakeBox__3EXNG {\n width: 105px;\n height: 105px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e .index-module_fakeBox__3EXNG .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_uploadPro__3rAkl .ant-upload {\n height: 105px !important;\n width: 105px !important;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_uploadPro__3rAkl .ant-upload .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_tips__z9Yjd {\n color: #4E5969;\n font-size: 12px;\n}\n";
1180
+ var styles$2 = {"imageProBox":"index-module_imageProBox__1u84Y","inputImage":"index-module_inputImage__nm5jb","imageShow":"index-module_imageShow__1cG2j","imageProWrap":"index-module_imageProWrap__sx8lo","-webkit-mask":"index-module_mask__L3q8p","mask":"index-module_mask__L3q8p","imageProInfo":"index-module_imageProInfo__iHM0C","imageProRight":"index-module_imageProRight__3rPiY","imageProOperate":"index-module_imageProOperate__1hFcg","actions":"index-module_actions__3Wwry","icon":"index-module_icon__3oJ-1","imageProPaste":"index-module_imageProPaste__22O8e","fakeBox":"index-module_fakeBox__3EXNG","addBtn":"index-module_addBtn__1Dv95","uploadPro":"index-module_uploadPro__3rAkl","tips":"index-module_tips__z9Yjd"};
1181
1181
  styleInject(css_248z$2);
1182
1182
 
1183
1183
  var _excluded$7 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "actionUrl", "platform"];
@@ -1373,9 +1373,17 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1373
1373
  var showImage = /^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url;
1374
1374
  return /*#__PURE__*/React.createElement("div", {
1375
1375
  className: styles$2.imageProWrap,
1376
+ style: {
1377
+ padding: '8px',
1378
+ marginBottom: '8px',
1379
+ marginRight: '8px'
1380
+ },
1376
1381
  key: index
1377
1382
  }, /*#__PURE__*/React.createElement("div", {
1378
- className: styles$2.imageProInfo
1383
+ className: styles$2.imageProInfo,
1384
+ style: {
1385
+ marginRight: '8px'
1386
+ }
1379
1387
  }, /*#__PURE__*/React.createElement(Image, {
1380
1388
  src: finalImage,
1381
1389
  preview: {
@@ -1406,7 +1414,9 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1406
1414
  }), /*#__PURE__*/React.createElement("div", {
1407
1415
  className: styles$2.imageProOperate
1408
1416
  }, /*#__PURE__*/React.createElement(CloseOutlined, {
1409
- className: styles$2.deleteIcon,
1417
+ style: {
1418
+ color: '#1890ff'
1419
+ },
1410
1420
  onClick: handleDelete(index)
1411
1421
  }))));
1412
1422
  }));
@@ -1439,9 +1449,12 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1439
1449
  }, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u5F20\u56FE\u7247"), /*#__PURE__*/React.createElement("div", {
1440
1450
  className: styles$2.imageProBox
1441
1451
  }, !disabled && /*#__PURE__*/React.createElement("div", {
1442
- className: styles$2.imagePaste
1452
+ className: styles$2.imageProPaste
1443
1453
  }, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
1444
1454
  className: styles$2.fakeBox,
1455
+ style: {
1456
+ paddingTop: '16px'
1457
+ },
1445
1458
  onClick: function onClick() {
1446
1459
  setPasteDefaultStates(false);
1447
1460
  }
@@ -1464,7 +1477,7 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1464
1477
  name: "file",
1465
1478
  listType: "picture-card",
1466
1479
  maxCount: maxCount,
1467
- className: styles$2.upload,
1480
+ className: styles$2.uploadPro,
1468
1481
  beforeUpload: beforeUpload
1469
1482
  }, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
1470
1483
  className: "addBtn"
@@ -12178,53 +12191,145 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
12178
12191
  };
12179
12192
  var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
12180
12193
 
12181
- var getTableData = function getTableData(_ref, formData) {
12182
- var _formData$brandIds;
12183
- var current = _ref.current,
12184
- pageSize = _ref.pageSize;
12185
- var data = {
12186
- brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
12187
- skuCode: formData.skuCode || null,
12188
- skuName: formData.skuName || null,
12189
- goodName: formData.goodName || null,
12190
- goodNo: formData.goodNo || null
12191
- };
12192
- return extendRequest('/qy/gdfw/product/product/page', {
12193
- method: 'post',
12194
- data: _objectSpread2({
12195
- pageSize: pageSize,
12196
- pageNo: current,
12197
- platform: 'WDT_ERP'
12198
- }, data)
12199
- }).then(function (res) {
12200
- var _res$data = res.data,
12201
- _res$data$productSkuL = _res$data.productSkuList,
12202
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12203
- _res$data$total = _res$data.total,
12204
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12205
- var newProducts = productSkuList.map(function (item, index) {
12206
- return _objectSpread2(_objectSpread2({}, item), {}, {
12207
- index: index + 1
12208
- });
12209
- });
12210
- return {
12211
- total: total,
12212
- list: newProducts
12213
- };
12214
- });
12215
- };
12216
- var columns$1 = [{
12217
- dataIndex: 'index',
12218
- title: 'NO',
12219
- render: function render(val, record, index) {
12220
- return /*#__PURE__*/React.createElement("div", {
12194
+ var gyColumns = [{
12195
+ dataIndex: 'specName',
12196
+ title: 'SKU名称',
12197
+ width: 250,
12198
+ ellipsis: true
12199
+ }, {
12200
+ dataIndex: 'specNo',
12201
+ title: 'SKU编码',
12202
+ width: 200,
12203
+ ellipsis: true
12204
+ }, {
12205
+ dataIndex: 'goodName',
12206
+ title: '商品名称',
12207
+ width: 250,
12208
+ ellipsis: true
12209
+ }, {
12210
+ dataIndex: 'goodShortName',
12211
+ title: "\u5546\u54C1\u7B80\u79F0",
12212
+ ellipsis: true,
12213
+ width: 250
12214
+ }, {
12215
+ dataIndex: 'goodNo',
12216
+ title: '商品编码',
12217
+ width: 200,
12218
+ ellipsis: true
12219
+ }, {
12220
+ dataIndex: 'goodPicUrl',
12221
+ title: '商品图片',
12222
+ width: 100,
12223
+ render: function render(picUrl) {
12224
+ return /*#__PURE__*/React.createElement("img", {
12221
12225
  style: {
12222
- width: 25
12223
- }
12224
- }, index + 1);
12225
- },
12226
+ width: '40px',
12227
+ height: '40px',
12228
+ objectFit: 'contain'
12229
+ },
12230
+ src: picUrl
12231
+ });
12232
+ }
12233
+ }, {
12234
+ dataIndex: 'brandName',
12235
+ title: '品牌名称',
12236
+ width: 200,
12237
+ ellipsis: true
12238
+ }, {
12239
+ dataIndex: 'retailPrice',
12240
+ title: "\u6807\u51C6\u552E\u4EF7",
12241
+ ellipsis: true,
12242
+ width: 100
12243
+ }, {
12244
+ dataIndex: 'costPrice',
12245
+ title: "\u6210\u672C\u4EF7",
12246
+ ellipsis: true,
12226
12247
  width: 100
12248
+ }];
12249
+
12250
+ var jstColumns = [{
12251
+ dataIndex: 'goodName',
12252
+ title: '商品名称',
12253
+ width: 250,
12254
+ ellipsis: true
12255
+ }, {
12256
+ dataIndex: 'goodNo',
12257
+ title: '商品编码',
12258
+ width: 200,
12259
+ ellipsis: true
12260
+ }, {
12261
+ dataIndex: 'styleCode',
12262
+ title: '款式编码',
12263
+ width: 200,
12264
+ ellipsis: true
12265
+ }, {
12266
+ dataIndex: 'propertiesValue',
12267
+ title: '规格值',
12268
+ width: 200,
12269
+ ellipsis: true
12270
+ }, {
12271
+ dataIndex: 'goodPicUrl',
12272
+ title: '商品图片',
12273
+ width: 100,
12274
+ render: function render(picUrl) {
12275
+ return /*#__PURE__*/React.createElement("img", {
12276
+ style: {
12277
+ width: '40px',
12278
+ height: '40px',
12279
+ objectFit: 'contain'
12280
+ },
12281
+ src: picUrl
12282
+ });
12283
+ }
12284
+ }, {
12285
+ dataIndex: 'goodShortName',
12286
+ title: "\u5546\u54C1\u7B80\u79F0",
12287
+ ellipsis: true,
12288
+ width: 250
12289
+ }, {
12290
+ dataIndex: 'brandName',
12291
+ title: '品牌名称',
12292
+ width: 200,
12293
+ ellipsis: true
12294
+ }, {
12295
+ dataIndex: 'retailPrice',
12296
+ title: "\u9500\u552E\u4EF7\u683C",
12297
+ ellipsis: true,
12298
+ width: 100,
12299
+ render: function render(price) {
12300
+ return price || price === 0 ? Number(price).toFixed(2) : '';
12301
+ }
12302
+ }, {
12303
+ dataIndex: 'marketPrice',
12304
+ title: "\u5E02\u573A\u4EF7",
12305
+ ellipsis: true,
12306
+ width: 100,
12307
+ render: function render(price) {
12308
+ return price || price === 0 ? Number(price).toFixed(2) : '';
12309
+ }
12310
+ }, {
12311
+ dataIndex: 'costPrice',
12312
+ title: "\u6210\u672C\u4EF7",
12313
+ ellipsis: true,
12314
+ width: 100,
12315
+ render: function render(price) {
12316
+ return price || price === 0 ? Number(price).toFixed(2) : '';
12317
+ }
12227
12318
  }, {
12319
+ dataIndex: 'skuType',
12320
+ title: "\u5546\u54C1\u7C7B\u578B",
12321
+ ellipsis: true,
12322
+ width: 100,
12323
+ render: function render() {
12324
+ var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
12325
+ return {
12326
+ combine: '组合装商品',
12327
+ normal: '普通商品'
12328
+ }[type] || type;
12329
+ }
12330
+ }];
12331
+
12332
+ var wdtColumns = [{
12228
12333
  dataIndex: 'specName',
12229
12334
  title: 'SKU名称',
12230
12335
  width: 250,
@@ -12295,144 +12400,272 @@ var columns$1 = [{
12295
12400
  return Number(price).toFixed(2);
12296
12401
  }
12297
12402
  }];
12298
- var GoodList = function GoodList(props, ref) {
12299
- var _useState = useState([]),
12300
- _useState2 = _slicedToArray(_useState, 2),
12301
- selectList = _useState2[0],
12302
- setSelect = _useState2[1];
12303
- var _useState3 = useState([]),
12304
- _useState4 = _slicedToArray(_useState3, 2),
12305
- selectIds = _useState4[0],
12306
- setSelectIds = _useState4[1];
12307
- var _useState5 = useState([]),
12308
- _useState6 = _slicedToArray(_useState5, 2),
12309
- brandList = _useState6[0],
12310
- setBrandList = _useState6[1];
12311
- useImperativeHandle(ref, function () {
12312
- return {
12313
- getSelectGoodList: function getSelectGoodList() {
12314
- return selectList;
12315
- }
12316
- };
12317
- });
12318
- var _Form$useForm = Form.useForm(),
12319
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
12320
- form = _Form$useForm2[0];
12321
- var _useAntdTable = useAntdTable(getTableData, {
12322
- defaultPageSize: 10,
12323
- form: form
12324
- }),
12325
- tableProps = _useAntdTable.tableProps,
12326
- search = _useAntdTable.search,
12327
- params = _useAntdTable.params;
12328
- var submit = search.submit,
12329
- reset = search.reset;
12330
- var setGoodBrandList = function setGoodBrandList() {
12331
- var list = [];
12332
- var pageNo = 0;
12333
- var pageSize = 100;
12334
- var getMore = function getMore() {
12335
- extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
12336
- method: 'post',
12337
- data: {
12338
- pageSize: pageSize,
12339
- pageNo: pageNo
12340
- }
12341
- }).then(function (res) {
12342
- var _res$data2;
12343
- if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
12344
- var _res$data3, _res$data4;
12345
- list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
12346
- if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
12347
- pageNo += 1;
12348
- getMore();
12349
- } else {
12350
- setBrandList(list);
12351
- }
12352
- } else {
12353
- reject(res);
12403
+
12404
+ var bse3Columns = [{
12405
+ dataIndex: 'specNo',
12406
+ title: "SKU",
12407
+ ellipsis: true,
12408
+ width: 200
12409
+ }, {
12410
+ dataIndex: 'specId',
12411
+ title: "SKU ID",
12412
+ ellipsis: true,
12413
+ width: 80
12414
+ }, {
12415
+ dataIndex: 'goodName',
12416
+ title: "\u5546\u54C1\u540D\u79F0",
12417
+ ellipsis: true,
12418
+ width: 250
12419
+ }, {
12420
+ dataIndex: 'goodShortName',
12421
+ title: "\u5546\u54C1\u7B80\u79F0",
12422
+ ellipsis: true,
12423
+ width: 250
12424
+ },
12425
+ // {
12426
+ // dataIndex: 'goodPicUrl',
12427
+ // title: `商品图片`,
12428
+ // ellipsis: true,
12429
+ // width: 100,
12430
+ // render: (picUrl: string) => {
12431
+ // return (
12432
+ // <img
12433
+ // style={{
12434
+ // width: '40px',
12435
+ // height: '40px',
12436
+ // objectFit: 'contain',
12437
+ // }}
12438
+ // src={picUrl}
12439
+ // ></img>
12440
+ // );
12441
+ // },
12442
+ // },
12443
+ {
12444
+ dataIndex: 'goodNo',
12445
+ title: "\u8D27\u53F7",
12446
+ ellipsis: true,
12447
+ width: 150
12448
+ }, {
12449
+ dataIndex: 'goodId',
12450
+ title: "\u8D27\u53F7ID",
12451
+ ellipsis: true,
12452
+ width: 100
12453
+ }, {
12454
+ dataIndex: 'colorName',
12455
+ title: "\u989C\u8272\u540D\u79F0",
12456
+ ellipsis: true,
12457
+ width: 100
12458
+ }, {
12459
+ dataIndex: 'colorCode',
12460
+ title: "\u989C\u8272\u4EE3\u7801",
12461
+ ellipsis: true,
12462
+ width: 100
12463
+ }, {
12464
+ dataIndex: 'sizeName',
12465
+ title: "\u5C3A\u7801\u540D\u79F0",
12466
+ ellipsis: true,
12467
+ width: 100
12468
+ }, {
12469
+ dataIndex: 'sizeCode',
12470
+ title: "\u5C3A\u7801\u4EE3\u7801",
12471
+ ellipsis: true,
12472
+ width: 100
12473
+ }, {
12474
+ dataIndex: 'brandName',
12475
+ title: "\u54C1\u724C\u540D\u79F0",
12476
+ ellipsis: true,
12477
+ width: 100
12478
+ }, {
12479
+ dataIndex: 'marketPrice',
12480
+ title: "\u5E02\u573A\u4EF7",
12481
+ ellipsis: true,
12482
+ width: 100
12483
+ }, {
12484
+ dataIndex: 'retailPrice',
12485
+ title: "\u552E\u4EF7",
12486
+ ellipsis: true,
12487
+ width: 100
12488
+ }];
12489
+
12490
+ var getColumnsMap = function getColumnsMap() {
12491
+ return cloneDeep({
12492
+ gy: gyColumns,
12493
+ jst: jstColumns,
12494
+ wdt: wdtColumns,
12495
+ bse3: bse3Columns
12496
+ });
12497
+ };
12498
+ var getColumnsBaseInfo = function getColumnsBaseInfo() {
12499
+ var clone_columnsMap = cloneDeep(getColumnsMap());
12500
+ var newColumns = {};
12501
+ Object.keys(clone_columnsMap).forEach(function (key) {
12502
+ newColumns[key] = clone_columnsMap[key].map(function (col) {
12503
+ return {
12504
+ title: col.title,
12505
+ dataIndex: col.dataIndex
12506
+ };
12507
+ });
12508
+ });
12509
+ return newColumns;
12510
+ };
12511
+ var index$2 = getColumnsBaseInfo();
12512
+
12513
+ var initNo = {
12514
+ dataIndex: 'index',
12515
+ title: 'NO',
12516
+ render: function render(val, record, index) {
12517
+ return /*#__PURE__*/React.createElement("div", {
12518
+ style: {
12519
+ width: 25
12520
+ }
12521
+ }, index + 1);
12522
+ },
12523
+ width: 80
12524
+ };
12525
+ var asyncGetData = function asyncGetData(type) {
12526
+ return extendRequest('/qy/condition/list', {
12527
+ method: 'get',
12528
+ params: {
12529
+ typeKey: "erp_select_modal_".concat(type),
12530
+ configScope: 'company' //按企业查询
12531
+ }
12532
+ }).then(function (res) {
12533
+ if (res && res.data && res.data[0] && res.data[0].queryInfo && res.data[0].queryInfo.length > 0) {
12534
+ return JSON.parse(res.data[0].queryInfo);
12535
+ } else {
12536
+ return getColumnsMap()[type];
12537
+ }
12538
+ });
12539
+ };
12540
+ var useGetColumns = (function (type) {
12541
+ var _useState = useState([]),
12542
+ _useState2 = _slicedToArray(_useState, 2),
12543
+ columns = _useState2[0],
12544
+ setColumns = _useState2[1];
12545
+ var _useState3 = useState(false),
12546
+ _useState4 = _slicedToArray(_useState3, 2),
12547
+ loading = _useState4[0],
12548
+ setLoading = _useState4[1];
12549
+ var showColumnsDataIndexList = useMemo(function () {
12550
+ return columns.filter(function (item) {
12551
+ return Object.hasOwn(item, 'dataIndex');
12552
+ }).map(function (item) {
12553
+ return item.dataIndex;
12554
+ });
12555
+ }, [columns]);
12556
+ useEffect(function () {
12557
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12558
+ var initColumns, requestSortColumns, list, initDataIndexList;
12559
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
12560
+ while (1) switch (_context.prev = _context.next) {
12561
+ case 0:
12562
+ initColumns = getColumnsMap()[type];
12563
+ setLoading(true);
12564
+ _context.next = 4;
12565
+ return asyncGetData(type);
12566
+ case 4:
12567
+ requestSortColumns = _context.sent;
12568
+ setLoading(false);
12569
+ list = [initNo];
12570
+ if (requestSortColumns && requestSortColumns.length > 0) {
12571
+ initDataIndexList = initColumns.map(function (item) {
12572
+ return item.dataIndex;
12573
+ });
12574
+ requestSortColumns.forEach(function (item) {
12575
+ var dataIndex = item.dataIndex,
12576
+ show = item.show;
12577
+ if (show !== false && initDataIndexList.includes(dataIndex)) {
12578
+ list.push(initColumns.find(function (item) {
12579
+ return item.dataIndex === dataIndex;
12580
+ }));
12581
+ }
12582
+ });
12583
+ }
12584
+ setColumns(list);
12585
+ case 9:
12586
+ case "end":
12587
+ return _context.stop();
12354
12588
  }
12355
- }).catch(console.error);
12356
- };
12357
- getMore();
12358
- };
12359
- React.useEffect(function () {
12360
- setGoodBrandList();
12589
+ }, _callee);
12590
+ }))();
12361
12591
  }, []);
12362
- var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
12592
+ return [columns, showColumnsDataIndexList, loading];
12593
+ });
12594
+
12595
+ function SearchForm(_ref) {
12596
+ var searchFormData = _ref.searchFormData,
12597
+ form = _ref.form,
12598
+ showColumnsDataIndexList = _ref.showColumnsDataIndexList,
12599
+ submit = _ref.submit,
12600
+ reset = _ref.reset;
12601
+ var _useState = useState({}),
12602
+ _useState2 = _slicedToArray(_useState, 2),
12603
+ searchData = _useState2[0],
12604
+ setSearchData = _useState2[1];
12605
+ var submitForm = /*#__PURE__*/function () {
12606
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
12607
+ var values;
12608
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
12609
+ while (1) switch (_context.prev = _context.next) {
12610
+ case 0:
12611
+ _context.next = 2;
12612
+ return form.getFieldsValue();
12613
+ case 2:
12614
+ values = _context.sent;
12615
+ if (submitBtnClickFlag || !isEqual(values, searchData)) {
12616
+ setSearchData(values);
12617
+ submit();
12618
+ }
12619
+ case 4:
12620
+ case "end":
12621
+ return _context.stop();
12622
+ }
12623
+ }, _callee);
12624
+ }));
12625
+ return function submitForm(_x) {
12626
+ return _ref2.apply(this, arguments);
12627
+ };
12628
+ }();
12629
+ return /*#__PURE__*/React.createElement(Form, {
12363
12630
  layout: "inline",
12364
12631
  form: form
12365
- }, /*#__PURE__*/React.createElement(Form.Item, {
12366
- name: "skuName",
12367
- style: {
12368
- marginBottom: '12px'
12369
- }
12370
- }, /*#__PURE__*/React.createElement(Input, {
12371
- placeholder: "SKU\u540D\u79F0",
12372
- allowClear: true,
12373
- style: {
12374
- width: 150
12375
- }
12376
- })), /*#__PURE__*/React.createElement(Form.Item, {
12377
- name: "skuCode",
12378
- style: {
12379
- marginBottom: '12px'
12380
- }
12381
- }, /*#__PURE__*/React.createElement(Input, {
12382
- placeholder: "SKU\u7F16\u7801",
12383
- allowClear: true,
12384
- style: {
12385
- width: 150
12386
- }
12387
- })), /*#__PURE__*/React.createElement(Form.Item, {
12388
- name: "goodName",
12389
- style: {
12390
- marginBottom: '12px'
12391
- }
12392
- }, /*#__PURE__*/React.createElement(Input, {
12393
- placeholder: "\u5546\u54C1\u540D\u79F0",
12394
- allowClear: true,
12395
- style: {
12396
- width: 150
12397
- }
12398
- })), /*#__PURE__*/React.createElement(Form.Item, {
12399
- name: "goodNo",
12400
- style: {
12401
- marginBottom: '12px'
12402
- }
12403
- }, /*#__PURE__*/React.createElement(Input, {
12404
- placeholder: "\u5546\u54C1\u7F16\u7801",
12405
- allowClear: true,
12406
- style: {
12407
- width: 150
12408
- }
12409
- })), /*#__PURE__*/React.createElement(Form.Item, {
12410
- name: "brandIds",
12411
- style: {
12412
- marginBottom: '12px'
12413
- }
12414
- }, /*#__PURE__*/React.createElement(Select, {
12415
- mode: "multiple",
12416
- showSearch: true,
12417
- allowClear: true,
12418
- filterOption: function filterOption(input, option) {
12419
- return option.label.includes(input);
12420
- },
12421
- style: {
12422
- width: 150
12423
- },
12424
- placeholder: "\u54C1\u724C",
12425
- options: brandList.filter(function (item) {
12426
- return !item.isDisabled;
12427
- }).map(function (_ref2) {
12428
- var value = _ref2.brandId,
12429
- label = _ref2.brandName;
12430
- return {
12431
- value: value,
12432
- label: label
12433
- };
12434
- })
12435
- })), /*#__PURE__*/React.createElement(Form.Item, {
12632
+ }, searchFormData.map(function (item) {
12633
+ var label = item.label,
12634
+ name = item.name,
12635
+ dataIndex = item.dataIndex,
12636
+ type = item.type,
12637
+ _item$formItemProps = item.formItemProps,
12638
+ formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
12639
+ if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
12640
+ return /*#__PURE__*/React.createElement(Form.Item, {
12641
+ name: name,
12642
+ style: {
12643
+ marginBottom: '12px'
12644
+ }
12645
+ }, type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
12646
+ placeholder: label,
12647
+ showSearch: true,
12648
+ allowClear: true,
12649
+ style: {
12650
+ width: 150
12651
+ },
12652
+ onBlur: function onBlur() {
12653
+ return submitForm();
12654
+ }
12655
+ }, formItemProps)) : /*#__PURE__*/React.createElement(Input, _objectSpread2({
12656
+ placeholder: label,
12657
+ allowClear: true,
12658
+ style: {
12659
+ width: 150
12660
+ },
12661
+ onPressEnter: function onPressEnter() {
12662
+ return submitForm();
12663
+ },
12664
+ onBlur: function onBlur() {
12665
+ return submitForm();
12666
+ }
12667
+ }, formItemProps)));
12668
+ }), /*#__PURE__*/React.createElement(Form.Item, {
12436
12669
  style: {
12437
12670
  marginBottom: '12px'
12438
12671
  }
@@ -12441,10 +12674,154 @@ var GoodList = function GoodList(props, ref) {
12441
12674
  style: {
12442
12675
  marginRight: '8px'
12443
12676
  },
12444
- onClick: submit
12677
+ onClick: function onClick() {
12678
+ return submitForm(true);
12679
+ }
12445
12680
  }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
12446
12681
  onClick: reset
12447
12682
  }, "\u91CD\u7F6E")));
12683
+ }
12684
+
12685
+ var getTableData = function getTableData(_ref, formData) {
12686
+ var _formData$brandIds;
12687
+ var current = _ref.current,
12688
+ pageSize = _ref.pageSize;
12689
+ var data = {
12690
+ brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
12691
+ skuCode: formData.skuCode || null,
12692
+ skuName: formData.skuName || null,
12693
+ goodName: formData.goodName || null,
12694
+ goodNo: formData.goodNo || null
12695
+ };
12696
+ return extendRequest('/qy/gdfw/product/product/page', {
12697
+ method: 'post',
12698
+ data: _objectSpread2({
12699
+ pageSize: pageSize,
12700
+ pageNo: current,
12701
+ platform: 'WDT_ERP'
12702
+ }, data)
12703
+ }).then(function (res) {
12704
+ var _res$data = res.data,
12705
+ _res$data$productSkuL = _res$data.productSkuList,
12706
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12707
+ _res$data$total = _res$data.total,
12708
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
12709
+ var newProducts = productSkuList.map(function (item, index) {
12710
+ return _objectSpread2(_objectSpread2({}, item), {}, {
12711
+ index: index + 1
12712
+ });
12713
+ });
12714
+ return {
12715
+ total: total,
12716
+ list: newProducts
12717
+ };
12718
+ });
12719
+ };
12720
+ var GoodList = function GoodList(props, ref) {
12721
+ var _useState = useState([]),
12722
+ _useState2 = _slicedToArray(_useState, 2),
12723
+ selectList = _useState2[0],
12724
+ setSelect = _useState2[1];
12725
+ var _useState3 = useState([]),
12726
+ _useState4 = _slicedToArray(_useState3, 2),
12727
+ selectIds = _useState4[0],
12728
+ setSelectIds = _useState4[1];
12729
+ var _useState5 = useState([]),
12730
+ _useState6 = _slicedToArray(_useState5, 2),
12731
+ brandList = _useState6[0],
12732
+ setBrandList = _useState6[1];
12733
+ var _useGetColumns = useGetColumns('wdt'),
12734
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
12735
+ columns = _useGetColumns2[0],
12736
+ showColumnsDataIndexList = _useGetColumns2[1],
12737
+ loading = _useGetColumns2[2];
12738
+ useImperativeHandle(ref, function () {
12739
+ return {
12740
+ getSelectGoodList: function getSelectGoodList() {
12741
+ return selectList;
12742
+ }
12743
+ };
12744
+ });
12745
+ var _Form$useForm = Form.useForm(),
12746
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
12747
+ form = _Form$useForm2[0];
12748
+ var _useAntdTable = useAntdTable(getTableData, {
12749
+ defaultPageSize: 10,
12750
+ form: form
12751
+ }),
12752
+ tableProps = _useAntdTable.tableProps,
12753
+ search = _useAntdTable.search,
12754
+ params = _useAntdTable.params;
12755
+ var submit = search.submit,
12756
+ reset = search.reset;
12757
+ var setGoodBrandList = function setGoodBrandList() {
12758
+ var list = [];
12759
+ var pageNo = 0;
12760
+ var pageSize = 100;
12761
+ var getMore = function getMore() {
12762
+ extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
12763
+ method: 'post',
12764
+ data: {
12765
+ pageSize: pageSize,
12766
+ pageNo: pageNo
12767
+ }
12768
+ }).then(function (res) {
12769
+ var _res$data2;
12770
+ if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
12771
+ var _res$data3, _res$data4;
12772
+ list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
12773
+ if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
12774
+ pageNo += 1;
12775
+ getMore();
12776
+ } else {
12777
+ setBrandList(list);
12778
+ }
12779
+ } else {
12780
+ reject(res);
12781
+ }
12782
+ }).catch(console.error);
12783
+ };
12784
+ getMore();
12785
+ };
12786
+ React.useEffect(function () {
12787
+ setGoodBrandList();
12788
+ }, []);
12789
+ var searchFormData = [{
12790
+ label: 'SKU名称',
12791
+ name: 'skuName',
12792
+ dataIndex: 'specName'
12793
+ }, {
12794
+ label: 'SKU编码',
12795
+ name: 'skuCode',
12796
+ dataIndex: 'specNo'
12797
+ }, {
12798
+ label: '商品名称',
12799
+ name: 'goodName'
12800
+ }, {
12801
+ label: '商品编码',
12802
+ name: 'goodNo'
12803
+ }, {
12804
+ label: '品牌',
12805
+ name: 'brandIds',
12806
+ dataIndex: 'brandName',
12807
+ type: 'select',
12808
+ formItemProps: {
12809
+ mode: 'multiple',
12810
+ filterOption: function filterOption(input, option) {
12811
+ return option.label.includes(input);
12812
+ },
12813
+ options: brandList.filter(function (item) {
12814
+ return !item.isDisabled;
12815
+ }).map(function (_ref2) {
12816
+ var value = _ref2.brandId,
12817
+ label = _ref2.brandName;
12818
+ return {
12819
+ value: value,
12820
+ label: label
12821
+ };
12822
+ })
12823
+ }
12824
+ }];
12448
12825
  var rowSelection = {
12449
12826
  selectedRowKeys: selectIds,
12450
12827
  fixed: true,
@@ -12500,7 +12877,7 @@ var GoodList = function GoodList(props, ref) {
12500
12877
  }
12501
12878
  }, "\u5220\u9664");
12502
12879
  }
12503
- }].concat(takeRight(columns$1, columns$1.length - 1));
12880
+ }].concat(takeRight(columns, columns.length - 1));
12504
12881
  return selectList.length ? /*#__PURE__*/React.createElement("div", {
12505
12882
  style: {
12506
12883
  width: '100%',
@@ -12522,14 +12899,23 @@ var GoodList = function GoodList(props, ref) {
12522
12899
  }
12523
12900
  })) : null;
12524
12901
  };
12525
- return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
12902
+ return /*#__PURE__*/React.createElement(Skeleton, {
12903
+ active: true,
12904
+ loading: loading
12905
+ }, /*#__PURE__*/React.createElement(SearchForm, {
12906
+ searchFormData: searchFormData,
12907
+ form: form,
12908
+ showColumnsDataIndexList: showColumnsDataIndexList,
12909
+ submit: submit,
12910
+ reset: reset
12911
+ }), /*#__PURE__*/React.createElement("div", {
12526
12912
  style: {
12527
12913
  marginTop: '4px'
12528
12914
  }
12529
12915
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
12530
12916
  rowSelection: rowSelection,
12531
12917
  rowKey: "specNo",
12532
- columns: columns$1,
12918
+ columns: columns,
12533
12919
  scroll: {
12534
12920
  x: '100%',
12535
12921
  y: 250
@@ -12586,124 +12972,42 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
12586
12972
  ref: wdtGoodListRef
12587
12973
  })));
12588
12974
  };
12589
- var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
12590
-
12591
- var getTableData$1 = function getTableData(_ref, formData) {
12592
- var current = _ref.current,
12593
- pageSize = _ref.pageSize;
12594
- return extendRequest('/qy/gdfw/product/product/page', {
12595
- method: 'post',
12596
- data: _objectSpread2({
12597
- pageSize: pageSize,
12598
- pageNo: current,
12599
- platform: 'JST_ERP'
12600
- }, formData)
12601
- }).then(function (res) {
12602
- var _res$data = res.data,
12603
- _res$data$productSkuL = _res$data.productSkuList,
12604
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12605
- _res$data$total = _res$data.total,
12606
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12607
- var newProducts = productSkuList.map(function (item, index) {
12608
- return _objectSpread2({}, item);
12609
- });
12610
- return {
12611
- total: total,
12612
- list: newProducts
12613
- };
12614
- });
12615
- };
12616
- var columns$2 = [{
12617
- dataIndex: 'index',
12618
- title: 'NO',
12619
- render: function render(val, record, index) {
12620
- return /*#__PURE__*/React.createElement("div", {
12621
- style: {
12622
- width: 25
12623
- }
12624
- }, index + 1);
12625
- },
12626
- width: 80
12627
- }, {
12628
- dataIndex: 'goodName',
12629
- title: '商品名称',
12630
- width: 250,
12631
- ellipsis: true
12632
- }, {
12633
- dataIndex: 'goodNo',
12634
- title: '商品编码',
12635
- width: 200,
12636
- ellipsis: true
12637
- }, {
12638
- dataIndex: 'styleCode',
12639
- title: '款式编码',
12640
- width: 200,
12641
- ellipsis: true
12642
- }, {
12643
- dataIndex: 'propertiesValue',
12644
- title: '规格值',
12645
- width: 200,
12646
- ellipsis: true
12647
- }, {
12648
- dataIndex: 'goodPicUrl',
12649
- title: '商品图片',
12650
- width: 100,
12651
- render: function render(picUrl) {
12652
- return /*#__PURE__*/React.createElement("img", {
12653
- style: {
12654
- width: '40px',
12655
- height: '40px',
12656
- objectFit: 'contain'
12657
- },
12658
- src: picUrl
12975
+ var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
12976
+
12977
+ var getTableData$1 = function getTableData(_ref, formData) {
12978
+ var current = _ref.current,
12979
+ pageSize = _ref.pageSize;
12980
+ return extendRequest('/qy/gdfw/product/product/page', {
12981
+ method: 'post',
12982
+ data: _objectSpread2({
12983
+ pageSize: pageSize,
12984
+ pageNo: current,
12985
+ platform: 'JST_ERP'
12986
+ }, formData)
12987
+ }).then(function (res) {
12988
+ var _res$data = res.data,
12989
+ _res$data$productSkuL = _res$data.productSkuList,
12990
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12991
+ _res$data$total = _res$data.total,
12992
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
12993
+ var newProducts = productSkuList.map(function (item, index) {
12994
+ return _objectSpread2({}, item);
12659
12995
  });
12660
- }
12661
- }, {
12662
- dataIndex: 'goodShortName',
12663
- title: "\u5546\u54C1\u7B80\u79F0",
12664
- ellipsis: true,
12665
- width: 250
12666
- }, {
12667
- dataIndex: 'brandName',
12668
- title: '品牌名称',
12669
- width: 200,
12670
- ellipsis: true
12671
- }, {
12672
- dataIndex: 'retailPrice',
12673
- title: "\u9500\u552E\u4EF7\u683C",
12674
- ellipsis: true,
12675
- width: 100,
12676
- render: function render(price) {
12677
- return price || price === 0 ? Number(price).toFixed(2) : '';
12678
- }
12679
- }, {
12680
- dataIndex: 'marketPrice',
12681
- title: "\u5E02\u573A\u4EF7",
12682
- ellipsis: true,
12683
- width: 100,
12684
- render: function render(price) {
12685
- return price || price === 0 ? Number(price).toFixed(2) : '';
12686
- }
12996
+ return {
12997
+ total: total,
12998
+ list: newProducts
12999
+ };
13000
+ });
13001
+ };
13002
+ var searchFormData = [{
13003
+ label: '商品名称',
13004
+ name: 'goodName'
12687
13005
  }, {
12688
- dataIndex: 'costPrice',
12689
- title: "\u6210\u672C\u4EF7",
12690
- ellipsis: true,
12691
- width: 100,
12692
- render: function render(price) {
12693
- return price || price === 0 ? Number(price).toFixed(2) : '';
12694
- }
13006
+ label: '商品编码',
13007
+ name: 'goodNo'
12695
13008
  }, {
12696
- dataIndex: 'skuType',
12697
- title: "\u5546\u54C1\u7C7B\u578B",
12698
- ellipsis: true,
12699
- width: 100,
12700
- render: function render() {
12701
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
12702
- return {
12703
- 'combine': '组合装商品',
12704
- 'normal': '普通商品'
12705
- }[type] || type;
12706
- }
13009
+ label: '款式编码',
13010
+ name: 'styleCode'
12707
13011
  }];
12708
13012
  var GoodList$1 = function GoodList(props, ref) {
12709
13013
  var _useState = useState([]),
@@ -12714,6 +13018,11 @@ var GoodList$1 = function GoodList(props, ref) {
12714
13018
  _useState4 = _slicedToArray(_useState3, 2),
12715
13019
  selectIds = _useState4[0],
12716
13020
  setSelectIds = _useState4[1];
13021
+ var _useGetColumns = useGetColumns('jst'),
13022
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
13023
+ columns = _useGetColumns2[0],
13024
+ showColumnsDataIndexList = _useGetColumns2[1],
13025
+ loading = _useGetColumns2[2];
12717
13026
  useImperativeHandle(ref, function () {
12718
13027
  return {
12719
13028
  getSelectGoodList: function getSelectGoodList() {
@@ -12733,55 +13042,6 @@ var GoodList$1 = function GoodList(props, ref) {
12733
13042
  params = _useAntdTable.params;
12734
13043
  var submit = search.submit,
12735
13044
  reset = search.reset;
12736
- var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
12737
- layout: "inline",
12738
- form: form
12739
- }, /*#__PURE__*/React.createElement(Form.Item, {
12740
- name: "goodName",
12741
- style: {
12742
- marginBottom: '12px'
12743
- }
12744
- }, /*#__PURE__*/React.createElement(Input, {
12745
- placeholder: "\u5546\u54C1\u540D\u79F0",
12746
- allowClear: true,
12747
- style: {
12748
- width: 150
12749
- }
12750
- })), /*#__PURE__*/React.createElement(Form.Item, {
12751
- name: "goodNo",
12752
- style: {
12753
- marginBottom: '12px'
12754
- }
12755
- }, /*#__PURE__*/React.createElement(Input, {
12756
- placeholder: "\u5546\u54C1\u7F16\u7801",
12757
- allowClear: true,
12758
- style: {
12759
- width: 150
12760
- }
12761
- })), /*#__PURE__*/React.createElement(Form.Item, {
12762
- name: "styleCode",
12763
- style: {
12764
- marginBottom: '12px'
12765
- }
12766
- }, /*#__PURE__*/React.createElement(Input, {
12767
- placeholder: "\u6B3E\u5F0F\u7F16\u7801",
12768
- allowClear: true,
12769
- style: {
12770
- width: 150
12771
- }
12772
- })), /*#__PURE__*/React.createElement(Form.Item, {
12773
- style: {
12774
- marginBottom: '12px'
12775
- }
12776
- }, /*#__PURE__*/React.createElement(Button, {
12777
- type: "primary",
12778
- style: {
12779
- marginRight: '8px'
12780
- },
12781
- onClick: submit
12782
- }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
12783
- onClick: reset
12784
- }, "\u91CD\u7F6E")));
12785
13045
  var rowSelection = {
12786
13046
  selectedRowKeys: selectIds,
12787
13047
  fixed: true,
@@ -12846,7 +13106,7 @@ var GoodList$1 = function GoodList(props, ref) {
12846
13106
  }
12847
13107
  }, "\u5220\u9664");
12848
13108
  }
12849
- }].concat(takeRight(columns$2, columns$2.length - 1));
13109
+ }].concat(takeRight(columns, columns.length - 1));
12850
13110
  return selectList.length ? /*#__PURE__*/React.createElement("div", {
12851
13111
  style: {
12852
13112
  width: '100%',
@@ -12868,14 +13128,23 @@ var GoodList$1 = function GoodList(props, ref) {
12868
13128
  }
12869
13129
  })) : null;
12870
13130
  };
12871
- return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
13131
+ return /*#__PURE__*/React.createElement(Skeleton, {
13132
+ active: true,
13133
+ loading: loading
13134
+ }, /*#__PURE__*/React.createElement(SearchForm, {
13135
+ searchFormData: searchFormData,
13136
+ form: form,
13137
+ showColumnsDataIndexList: showColumnsDataIndexList,
13138
+ submit: submit,
13139
+ reset: reset
13140
+ }), /*#__PURE__*/React.createElement("div", {
12872
13141
  style: {
12873
13142
  marginTop: '4px'
12874
13143
  }
12875
13144
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
12876
13145
  rowSelection: rowSelection,
12877
13146
  rowKey: "goodNo",
12878
- columns: columns$2,
13147
+ columns: columns,
12879
13148
  scroll: {
12880
13149
  x: '100%',
12881
13150
  y: 250
@@ -12911,164 +13180,84 @@ var GyGoodsModal = function GyGoodsModal(props, ref) {
12911
13180
  setVisible = _useState2[1];
12912
13181
  var _useState3 = useState([]),
12913
13182
  _useState4 = _slicedToArray(_useState3, 2),
12914
- selectedRows = _useState4[0],
12915
- setSelectedRows = _useState4[1];
12916
- var gyGoodsListRef = useRef(null);
12917
- var _onCancel = function onCancel() {
12918
- setVisible(false);
12919
- };
12920
- var onOk = function onOk() {
12921
- var _gyGoodsListRef$curre;
12922
- var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
12923
- onSubmit(selectedList);
12924
- _onCancel();
12925
- };
12926
- return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
12927
- title: '选择商品',
12928
- okText: '确认',
12929
- cancelText: '取消',
12930
- visible: visible,
12931
- width: width || 850,
12932
- onCancel: function onCancel() {
12933
- _onCancel();
12934
- },
12935
- onOk: onOk,
12936
- wrapClassName: "goodModal"
12937
- }, /*#__PURE__*/React.createElement(GyGoodsList, {
12938
- ref: gyGoodsListRef,
12939
- selectedRows: selectedRows
12940
- })));
12941
- };
12942
- var JstGoodsModal = /*#__PURE__*/forwardRef(GyGoodsModal);
12943
-
12944
- var getTableData$2 = function getTableData(_ref, formData) {
12945
- var current = _ref.current,
12946
- pageSize = _ref.pageSize;
12947
- var data = {
12948
- goodNo: formData.goodNo || null,
12949
- goodName: formData.goodName || null,
12950
- skuCode: formData.skuCode || null,
12951
- skuId: formData.skuId || null
12952
- };
12953
- return extendRequest('/qy/gdfw/product/product/page', {
12954
- method: 'post',
12955
- data: _objectSpread2({
12956
- pageSize: pageSize,
12957
- pageNo: current,
12958
- platform: 'BS_E3_ERP'
12959
- }, data)
12960
- }).then(function (res) {
12961
- var _res$data = res.data,
12962
- _res$data$productSkuL = _res$data.productSkuList,
12963
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12964
- _res$data$total = _res$data.total,
12965
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12966
- var newProducts = productSkuList.map(function (item, index) {
12967
- return _objectSpread2(_objectSpread2({}, item), {}, {
12968
- index: index + 1
12969
- });
12970
- });
12971
- return {
12972
- total: total,
12973
- list: newProducts
12974
- };
12975
- });
12976
- };
12977
- var columns$3 = [{
12978
- dataIndex: 'index',
12979
- title: 'NO',
12980
- render: function render(val, record, index) {
12981
- return /*#__PURE__*/React.createElement("div", {
12982
- style: {
12983
- width: 25
12984
- }
12985
- }, index + 1);
12986
- },
12987
- width: 80
12988
- }, {
12989
- dataIndex: 'specNo',
12990
- title: "SKU",
12991
- ellipsis: true,
12992
- width: 200
12993
- }, {
12994
- dataIndex: 'specId',
12995
- title: "SKU ID",
12996
- ellipsis: true,
12997
- width: 80
12998
- }, {
12999
- dataIndex: 'goodName',
13000
- title: "\u5546\u54C1\u540D\u79F0",
13001
- ellipsis: true,
13002
- width: 250
13003
- }, {
13004
- dataIndex: 'goodShortName',
13005
- title: "\u5546\u54C1\u7B80\u79F0",
13006
- ellipsis: true,
13007
- width: 250
13008
- },
13009
- // {
13010
- // dataIndex: 'goodPicUrl',
13011
- // title: `商品图片`,
13012
- // ellipsis: true,
13013
- // width: 100,
13014
- // render: (picUrl: string) => {
13015
- // return (
13016
- // <img
13017
- // style={{
13018
- // width: '40px',
13019
- // height: '40px',
13020
- // objectFit: 'contain',
13021
- // }}
13022
- // src={picUrl}
13023
- // ></img>
13024
- // );
13025
- // },
13026
- // },
13027
- {
13028
- dataIndex: 'goodNo',
13029
- title: "\u8D27\u53F7",
13030
- ellipsis: true,
13031
- width: 150
13032
- }, {
13033
- dataIndex: 'goodId',
13034
- title: "\u8D27\u53F7ID",
13035
- ellipsis: true,
13036
- width: 100
13037
- }, {
13038
- dataIndex: 'colorName',
13039
- title: "\u989C\u8272\u540D\u79F0",
13040
- ellipsis: true,
13041
- width: 100
13042
- }, {
13043
- dataIndex: 'colorCode',
13044
- title: "\u989C\u8272\u4EE3\u7801",
13045
- ellipsis: true,
13046
- width: 100
13047
- }, {
13048
- dataIndex: 'sizeName',
13049
- title: "\u5C3A\u7801\u540D\u79F0",
13050
- ellipsis: true,
13051
- width: 100
13052
- }, {
13053
- dataIndex: 'sizeCode',
13054
- title: "\u5C3A\u7801\u4EE3\u7801",
13055
- ellipsis: true,
13056
- width: 100
13183
+ selectedRows = _useState4[0],
13184
+ setSelectedRows = _useState4[1];
13185
+ var gyGoodsListRef = useRef(null);
13186
+ var _onCancel = function onCancel() {
13187
+ setVisible(false);
13188
+ };
13189
+ var onOk = function onOk() {
13190
+ var _gyGoodsListRef$curre;
13191
+ var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
13192
+ onSubmit(selectedList);
13193
+ _onCancel();
13194
+ };
13195
+ return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
13196
+ title: '选择商品',
13197
+ okText: '确认',
13198
+ cancelText: '取消',
13199
+ visible: visible,
13200
+ width: width || 850,
13201
+ onCancel: function onCancel() {
13202
+ _onCancel();
13203
+ },
13204
+ onOk: onOk,
13205
+ wrapClassName: "goodModal"
13206
+ }, /*#__PURE__*/React.createElement(GyGoodsList, {
13207
+ ref: gyGoodsListRef,
13208
+ selectedRows: selectedRows
13209
+ })));
13210
+ };
13211
+ var JstGoodsModal = /*#__PURE__*/forwardRef(GyGoodsModal);
13212
+
13213
+ var getTableData$2 = function getTableData(_ref, formData) {
13214
+ var current = _ref.current,
13215
+ pageSize = _ref.pageSize;
13216
+ var data = {
13217
+ goodShortName: formData.goodShortName || null,
13218
+ goodNo: formData.goodNo || null,
13219
+ goodName: formData.goodName || null,
13220
+ skuCode: formData.skuCode || null,
13221
+ skuId: formData.skuId || null
13222
+ };
13223
+ return extendRequest('/qy/gdfw/product/product/page', {
13224
+ method: 'post',
13225
+ data: _objectSpread2({
13226
+ pageSize: pageSize,
13227
+ pageNo: current,
13228
+ platform: 'BS_E3_ERP'
13229
+ }, data)
13230
+ }).then(function (res) {
13231
+ var _res$data = res.data,
13232
+ _res$data$productSkuL = _res$data.productSkuList,
13233
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
13234
+ _res$data$total = _res$data.total,
13235
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
13236
+ var newProducts = productSkuList.map(function (item, index) {
13237
+ return _objectSpread2(_objectSpread2({}, item), {}, {
13238
+ index: index + 1
13239
+ });
13240
+ });
13241
+ return {
13242
+ total: total,
13243
+ list: newProducts
13244
+ };
13245
+ });
13246
+ };
13247
+ var searchFormData$1 = [{
13248
+ label: '商品货号',
13249
+ name: 'goodNo'
13057
13250
  }, {
13058
- dataIndex: 'brandName',
13059
- title: "\u54C1\u724C\u540D\u79F0",
13060
- ellipsis: true,
13061
- width: 100
13251
+ label: '商品名称',
13252
+ name: 'goodName'
13062
13253
  }, {
13063
- dataIndex: 'marketPrice',
13064
- title: "\u5E02\u573A\u4EF7",
13065
- ellipsis: true,
13066
- width: 100
13254
+ label: 'SKU',
13255
+ name: 'skuCode',
13256
+ dataIndex: 'specNo'
13067
13257
  }, {
13068
- dataIndex: 'retailPrice',
13069
- title: "\u552E\u4EF7",
13070
- ellipsis: true,
13071
- width: 100
13258
+ label: 'SKU ID',
13259
+ name: 'skuId',
13260
+ dataIndex: 'specId'
13072
13261
  }];
13073
13262
  var GoodList$2 = function GoodList(props, ref) {
13074
13263
  var _useState = useState([]),
@@ -13079,6 +13268,11 @@ var GoodList$2 = function GoodList(props, ref) {
13079
13268
  _useState4 = _slicedToArray(_useState3, 2),
13080
13269
  selectIds = _useState4[0],
13081
13270
  setSelectIds = _useState4[1];
13271
+ var _useGetColumns = useGetColumns('bse3'),
13272
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
13273
+ columns = _useGetColumns2[0],
13274
+ showColumnsDataIndexList = _useGetColumns2[1],
13275
+ loading = _useGetColumns2[2];
13082
13276
  useImperativeHandle(ref, function () {
13083
13277
  return {
13084
13278
  getSelectGoodList: function getSelectGoodList() {
@@ -13098,66 +13292,6 @@ var GoodList$2 = function GoodList(props, ref) {
13098
13292
  params = _useAntdTable.params;
13099
13293
  var submit = search.submit,
13100
13294
  reset = search.reset;
13101
- var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
13102
- layout: "inline",
13103
- form: form
13104
- }, /*#__PURE__*/React.createElement(Form.Item, {
13105
- name: "goodNo",
13106
- style: {
13107
- marginBottom: '12px'
13108
- }
13109
- }, /*#__PURE__*/React.createElement(Input, {
13110
- placeholder: "\u5546\u54C1\u8D27\u53F7",
13111
- allowClear: true,
13112
- style: {
13113
- width: 150
13114
- }
13115
- })), /*#__PURE__*/React.createElement(Form.Item, {
13116
- name: "goodName",
13117
- style: {
13118
- marginBottom: '12px'
13119
- }
13120
- }, /*#__PURE__*/React.createElement(Input, {
13121
- placeholder: "\u5546\u54C1\u540D\u79F0",
13122
- allowClear: true,
13123
- style: {
13124
- width: 150
13125
- }
13126
- })), /*#__PURE__*/React.createElement(Form.Item, {
13127
- name: "skuCode",
13128
- style: {
13129
- marginBottom: '12px'
13130
- }
13131
- }, /*#__PURE__*/React.createElement(Input, {
13132
- placeholder: "SKU",
13133
- allowClear: true,
13134
- style: {
13135
- width: 150
13136
- }
13137
- })), /*#__PURE__*/React.createElement(Form.Item, {
13138
- name: "skuId",
13139
- style: {
13140
- marginBottom: '12px'
13141
- }
13142
- }, /*#__PURE__*/React.createElement(Input, {
13143
- placeholder: "SKU ID",
13144
- allowClear: true,
13145
- style: {
13146
- width: 150
13147
- }
13148
- })), /*#__PURE__*/React.createElement(Form.Item, {
13149
- style: {
13150
- marginBottom: '12px'
13151
- }
13152
- }, /*#__PURE__*/React.createElement(Button, {
13153
- type: "primary",
13154
- style: {
13155
- marginRight: '8px'
13156
- },
13157
- onClick: submit
13158
- }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
13159
- onClick: reset
13160
- }, "\u91CD\u7F6E")));
13161
13295
  var rowSelection = {
13162
13296
  selectedRowKeys: selectIds,
13163
13297
  fixed: true,
@@ -13213,7 +13347,7 @@ var GoodList$2 = function GoodList(props, ref) {
13213
13347
  }
13214
13348
  }, "\u5220\u9664");
13215
13349
  }
13216
- }].concat(takeRight(columns$3, columns$3.length - 1));
13350
+ }].concat(takeRight(columns, columns.length - 1));
13217
13351
  return selectList.length ? /*#__PURE__*/React.createElement("div", {
13218
13352
  style: {
13219
13353
  width: '100%',
@@ -13235,14 +13369,23 @@ var GoodList$2 = function GoodList(props, ref) {
13235
13369
  }
13236
13370
  })) : null;
13237
13371
  };
13238
- return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
13372
+ return /*#__PURE__*/React.createElement(Skeleton, {
13373
+ active: true,
13374
+ loading: loading
13375
+ }, /*#__PURE__*/React.createElement(SearchForm, {
13376
+ searchFormData: searchFormData$1,
13377
+ form: form,
13378
+ showColumnsDataIndexList: showColumnsDataIndexList,
13379
+ submit: submit,
13380
+ reset: reset
13381
+ }), /*#__PURE__*/React.createElement("div", {
13239
13382
  style: {
13240
13383
  marginTop: '4px'
13241
13384
  }
13242
13385
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
13243
13386
  rowSelection: rowSelection,
13244
13387
  rowKey: "specNo",
13245
- columns: columns$3,
13388
+ columns: columns,
13246
13389
  scroll: {
13247
13390
  x: '100%',
13248
13391
  y: 250
@@ -13333,71 +13476,23 @@ var getTableData$3 = function getTableData(_ref, formData) {
13333
13476
  };
13334
13477
  });
13335
13478
  };
13336
- var columns$4 = [{
13337
- dataIndex: 'index',
13338
- title: 'NO',
13339
- render: function render(val, record, index) {
13340
- return /*#__PURE__*/React.createElement("div", {
13341
- style: {
13342
- width: 25
13343
- }
13344
- }, index + 1);
13345
- },
13346
- width: 80
13347
- }, {
13348
- dataIndex: 'specName',
13349
- title: 'SKU名称',
13350
- width: 250,
13351
- ellipsis: true
13352
- }, {
13353
- dataIndex: 'specNo',
13354
- title: 'SKU编码',
13355
- width: 200,
13356
- ellipsis: true
13357
- }, {
13358
- dataIndex: 'goodName',
13359
- title: '商品名称',
13360
- width: 250,
13361
- ellipsis: true
13362
- }, {
13363
- dataIndex: 'goodShortName',
13364
- title: "\u5546\u54C1\u7B80\u79F0",
13365
- ellipsis: true,
13366
- width: 250
13367
- }, {
13368
- dataIndex: 'goodNo',
13369
- title: '商品编码',
13370
- width: 200,
13371
- ellipsis: true
13479
+ var searchFormData$2 = [{
13480
+ label: '商品简称',
13481
+ name: 'goodShortName'
13372
13482
  }, {
13373
- dataIndex: 'goodPicUrl',
13374
- title: '商品图片',
13375
- width: 100,
13376
- render: function render(picUrl) {
13377
- return /*#__PURE__*/React.createElement("img", {
13378
- style: {
13379
- width: '40px',
13380
- height: '40px',
13381
- objectFit: 'contain'
13382
- },
13383
- src: picUrl
13384
- });
13385
- }
13483
+ label: '商品sku名称',
13484
+ name: 'skuName',
13485
+ dataIndex: 'specName'
13386
13486
  }, {
13387
- dataIndex: 'brandName',
13388
- title: '品牌名称',
13389
- width: 200,
13390
- ellipsis: true
13487
+ label: '商品sku编码',
13488
+ name: 'skuCode',
13489
+ dataIndex: 'specNo'
13391
13490
  }, {
13392
- dataIndex: 'retailPrice',
13393
- title: "\u6807\u51C6\u552E\u4EF7",
13394
- ellipsis: true,
13395
- width: 100
13491
+ label: '商品名称',
13492
+ name: 'goodName'
13396
13493
  }, {
13397
- dataIndex: 'costPrice',
13398
- title: "\u6210\u672C\u4EF7",
13399
- ellipsis: true,
13400
- width: 100
13494
+ label: '商品编码',
13495
+ name: 'goodNo'
13401
13496
  }];
13402
13497
  var GoodList$3 = function GoodList(props, ref) {
13403
13498
  var _useState = useState([]),
@@ -13408,6 +13503,11 @@ var GoodList$3 = function GoodList(props, ref) {
13408
13503
  _useState4 = _slicedToArray(_useState3, 2),
13409
13504
  selectIds = _useState4[0],
13410
13505
  setSelectIds = _useState4[1];
13506
+ var _useGetColumns = useGetColumns('gy'),
13507
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
13508
+ columns = _useGetColumns2[0],
13509
+ showColumnsDataIndexList = _useGetColumns2[1],
13510
+ loading = _useGetColumns2[2];
13411
13511
  useImperativeHandle(ref, function () {
13412
13512
  return {
13413
13513
  getSelectGoodList: function getSelectGoodList() {
@@ -13427,77 +13527,6 @@ var GoodList$3 = function GoodList(props, ref) {
13427
13527
  params = _useAntdTable.params;
13428
13528
  var submit = search.submit,
13429
13529
  reset = search.reset;
13430
- var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
13431
- layout: "inline",
13432
- form: form
13433
- }, /*#__PURE__*/React.createElement(Form.Item, {
13434
- name: "goodShortName",
13435
- style: {
13436
- marginBottom: '12px'
13437
- }
13438
- }, /*#__PURE__*/React.createElement(Input, {
13439
- placeholder: "\u5546\u54C1\u7B80\u79F0",
13440
- allowClear: true,
13441
- style: {
13442
- width: 150
13443
- }
13444
- })), /*#__PURE__*/React.createElement(Form.Item, {
13445
- name: "skuName",
13446
- style: {
13447
- marginBottom: '12px'
13448
- }
13449
- }, /*#__PURE__*/React.createElement(Input, {
13450
- placeholder: "\u5546\u54C1sku\u540D\u79F0",
13451
- allowClear: true,
13452
- style: {
13453
- width: 150
13454
- }
13455
- })), /*#__PURE__*/React.createElement(Form.Item, {
13456
- name: "skuCode",
13457
- style: {
13458
- marginBottom: '12px'
13459
- }
13460
- }, /*#__PURE__*/React.createElement(Input, {
13461
- placeholder: "\u5546\u54C1sku\u7F16\u7801",
13462
- allowClear: true,
13463
- style: {
13464
- width: 150
13465
- }
13466
- })), /*#__PURE__*/React.createElement(Form.Item, {
13467
- name: "goodName",
13468
- style: {
13469
- marginBottom: '12px'
13470
- }
13471
- }, /*#__PURE__*/React.createElement(Input, {
13472
- placeholder: "\u5546\u54C1\u540D\u79F0",
13473
- allowClear: true,
13474
- style: {
13475
- width: 150
13476
- }
13477
- })), /*#__PURE__*/React.createElement(Form.Item, {
13478
- name: "goodNo",
13479
- style: {
13480
- marginBottom: '12px'
13481
- }
13482
- }, /*#__PURE__*/React.createElement(Input, {
13483
- placeholder: "\u5546\u54C1\u7F16\u7801",
13484
- allowClear: true,
13485
- style: {
13486
- width: 150
13487
- }
13488
- })), /*#__PURE__*/React.createElement(Form.Item, {
13489
- style: {
13490
- marginBottom: '12px'
13491
- }
13492
- }, /*#__PURE__*/React.createElement(Button, {
13493
- type: "primary",
13494
- style: {
13495
- marginRight: '8px'
13496
- },
13497
- onClick: submit
13498
- }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
13499
- onClick: reset
13500
- }, "\u91CD\u7F6E")));
13501
13530
  var rowSelection = {
13502
13531
  selectedRowKeys: selectIds,
13503
13532
  fixed: true,
@@ -13553,7 +13582,7 @@ var GoodList$3 = function GoodList(props, ref) {
13553
13582
  }
13554
13583
  }, "\u5220\u9664");
13555
13584
  }
13556
- }].concat(takeRight(columns$4, columns$4.length - 1));
13585
+ }].concat(takeRight(columns, columns.length - 1));
13557
13586
  return selectList.length ? /*#__PURE__*/React.createElement("div", {
13558
13587
  style: {
13559
13588
  width: '100%',
@@ -13575,14 +13604,23 @@ var GoodList$3 = function GoodList(props, ref) {
13575
13604
  }
13576
13605
  })) : null;
13577
13606
  };
13578
- return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
13607
+ return /*#__PURE__*/React.createElement(Skeleton, {
13608
+ active: true,
13609
+ loading: loading
13610
+ }, /*#__PURE__*/React.createElement(SearchForm, {
13611
+ searchFormData: searchFormData$2,
13612
+ form: form,
13613
+ showColumnsDataIndexList: showColumnsDataIndexList,
13614
+ submit: submit,
13615
+ reset: reset
13616
+ }), /*#__PURE__*/React.createElement("div", {
13579
13617
  style: {
13580
13618
  marginTop: '4px'
13581
13619
  }
13582
13620
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
13583
13621
  rowSelection: rowSelection,
13584
13622
  rowKey: "id",
13585
- columns: columns$4,
13623
+ columns: columns,
13586
13624
  scroll: {
13587
13625
  x: '100%',
13588
13626
  y: 250
@@ -14062,7 +14100,7 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
14062
14100
  var disabled = _ref2.disabled,
14063
14101
  updateHandle = _ref2.updateHandle,
14064
14102
  operate = _ref2.operate;
14065
- return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
14103
+ return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
14066
14104
  var newItem = _objectSpread2({
14067
14105
  align: 'center',
14068
14106
  ellipsis: true
@@ -15585,7 +15623,7 @@ var getColumns$6 = function getColumns(_ref) {
15585
15623
  };
15586
15624
  };
15587
15625
 
15588
- var getColumnsMap = function getColumnsMap(args) {
15626
+ var getColumnsMap$1 = function getColumnsMap(args) {
15589
15627
  var _ref = args || {},
15590
15628
  _ref$text = _ref.text,
15591
15629
  text = _ref$text === void 0 ? '' : _ref$text,
@@ -15625,8 +15663,8 @@ var getColumnsMap = function getColumnsMap(args) {
15625
15663
  })['default']
15626
15664
  });
15627
15665
  };
15628
- var getColumnsBaseInfo = function getColumnsBaseInfo() {
15629
- var clone_columnsMap = cloneDeep(getColumnsMap());
15666
+ var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
15667
+ var clone_columnsMap = cloneDeep(getColumnsMap$1());
15630
15668
  var newColumns = {};
15631
15669
  Object.keys(clone_columnsMap).forEach(function (key) {
15632
15670
  newColumns[key] = clone_columnsMap[key].map(function (col) {
@@ -15638,7 +15676,7 @@ var getColumnsBaseInfo = function getColumnsBaseInfo() {
15638
15676
  });
15639
15677
  return newColumns;
15640
15678
  };
15641
- var columnsBaseInfoMap = getColumnsBaseInfo();
15679
+ var columnsBaseInfoMap = getColumnsBaseInfo$1();
15642
15680
 
15643
15681
  var renderFieldMap$1 = {
15644
15682
  goodsNumber: function goodsNumber(_ref) {
@@ -15705,7 +15743,7 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
15705
15743
  var disabled = _ref4.disabled,
15706
15744
  updateHandle = _ref4.updateHandle,
15707
15745
  operate = _ref4.operate;
15708
- return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
15746
+ return getColumnsMap$1()['BS_E3_REISSUE_GOODS'].map(function (item) {
15709
15747
  var newItem = _objectSpread2({
15710
15748
  align: 'center',
15711
15749
  ellipsis: true
@@ -15964,7 +16002,7 @@ var GoodItem$1 = function GoodItem(props) {
15964
16002
  case 'GY_REISSUE_GOODS':
15965
16003
  case 'GY_RETURN_GOODS':
15966
16004
  {
15967
- columns = getColumnsMap({
16005
+ columns = getColumnsMap$1({
15968
16006
  text: text,
15969
16007
  disabled: disabled || columnsOptions.disabled,
15970
16008
  updateHandle: updateHandle,
@@ -15991,7 +16029,7 @@ var GoodItem$1 = function GoodItem(props) {
15991
16029
  }
15992
16030
  break;
15993
16031
  default:
15994
- columns = getColumnsMap({
16032
+ columns = getColumnsMap$1({
15995
16033
  text: text,
15996
16034
  disabled: disabled || columnsOptions.disabled,
15997
16035
  updateHandle: updateHandle,
@@ -17128,7 +17166,7 @@ var rowKeyMap = {
17128
17166
  GY_SYSTEM_ORDER: 'billNo',
17129
17167
  JST_SYSTEM_ORDER: 'oId'
17130
17168
  };
17131
- var index$2 = (function (props) {
17169
+ var index$3 = (function (props) {
17132
17170
  var value = props.value,
17133
17171
  _onChange = props.onChange,
17134
17172
  disabled = props.disabled,
@@ -19133,7 +19171,7 @@ var Goods$1 = function Goods(props, ref) {
19133
19171
  userNick: userNick
19134
19172
  }));
19135
19173
  };
19136
- var index$3 = /*#__PURE__*/forwardRef(Goods$1);
19174
+ var index$4 = /*#__PURE__*/forwardRef(Goods$1);
19137
19175
 
19138
19176
  var _excluded$k = ["onChange", "value", "failValue"];
19139
19177
  function CommonStatus(props) {
@@ -19394,7 +19432,7 @@ var MsgStatus = function MsgStatus(props) {
19394
19432
  onClick: function onClick() {
19395
19433
  return setChangeIndex(index);
19396
19434
  }
19397
- }, msgTypeCh[key], item.ruleName);
19435
+ }, msgTypeCh[key] || key, item.ruleName);
19398
19436
  }))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
19399
19437
  showSearch: true,
19400
19438
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
@@ -20231,4 +20269,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
20231
20269
  })));
20232
20270
  };
20233
20271
 
20234
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };
20272
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, index$2 as erpModalColumnsMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };