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